FileDocCategorySizeDatePackage
Role.javaAPI DocGlassfish v2 API2907Fri May 04 22:31:22 BST 2007com.sun.enterprise.deployment

Role

public class Role extends PrincipalImpl
In EJBs, ACL checking is done using the Roles. Roles are an abstraction of an application specific Logical Principals. These Principals do not have any properties of Principals within a Security Domain (or Realm). They merely serve as abstraction to application specific entities.
author
Harish Prabandham

Fields Summary
private String
description
Constructors Summary
public Role(String name)
Creates a new Role with a given name

	super(name);
    
Methods Summary
public booleanequals(java.lang.Object other)

	boolean ret = false;
	if(other instanceof Role) {
	    ret =  getName().equals(((Role)other).getName());
	}
	
	return ret;
    
public java.lang.StringgetDescription()

	if (this.description == null) {
	    this.description = "";
	}
	return this.description;
    
public voidsetDescription(java.lang.String description)

	this.description = description;