Methods Summary |
---|
public void | addSecurityRole(com.sun.enterprise.deployment.web.SecurityRole securityRole)Adds a role to the authorization constraint.
this.getSecurityRoleSet().add(securityRole);
|
public void | addSecurityRole(java.lang.String roleName)Adds a role to the authorization constraint
SecurityRoleDescriptor sr = new SecurityRoleDescriptor();
sr.setName(roleName);
addSecurityRole(sr);
|
private java.util.Set | getSecurityRoleSet()Return the set of roles.
if (this.securityRoles == null) {
this.securityRoles = new HashSet();
}
return this.securityRoles;
|
public java.util.Enumeration | getSecurityRoles()Return the security roles involved in this constraint. The
enumeration is empty if there are none.
if (this.securityRoles == null) {
this.securityRoles = new HashSet();
}
return (new Vector(this.getSecurityRoleSet())).elements();
|
public void | print(java.lang.StringBuffer toStringBuffer)Prints a formatted representation of this object.
toStringBuffer.append("AuthorizationConstraint ");
super.print(toStringBuffer);
toStringBuffer.append(" securityRoles ").append(this.securityRoles);
|
public void | removeSecurityRole(com.sun.enterprise.deployment.web.SecurityRole securityRole)Removes the given role from the autrhorization constraint.
this.getSecurityRoleSet().remove(securityRole);
|