|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
com.sun.enterprise.deployment.DynamicAttributesDescriptor
com.sun.enterprise.deployment.Descriptor
com.sun.enterprise.deployment.AuthorizationConstraintImpl
public class AuthorizationConstraintImpl
This descriptor represents an authorization contraint on a security constraint in a web application.
| Field Summary |
|---|
| Fields inherited from class com.sun.enterprise.deployment.Descriptor |
|---|
DESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED |
| Fields inherited from interface com.sun.enterprise.deployment.web.AuthorizationConstraint |
|---|
BASIC_METHOD, FORM_METHOD, MUTUAL_METHOD |
| Constructor Summary | |
|---|---|
AuthorizationConstraintImpl()
Default constructor that creates an AuthorizationConstraint with no roles. |
|
AuthorizationConstraintImpl(AuthorizationConstraintImpl other)
Copy constructor. |
|
| Method Summary | |
|---|---|
void |
addSecurityRole(SecurityRole securityRole)
Adds a role to the authorization constraint. |
void |
addSecurityRole(java.lang.String roleName)
Adds a role to the authorization constraint |
java.util.Enumeration |
getSecurityRoles()
Return the security roles involved in this constraint. |
void |
print(java.lang.StringBuffer toStringBuffer)
Prints a formatted representation of this object. |
void |
removeSecurityRole(SecurityRole securityRole)
Removes the given role from the autrhorization constraint. |
| Methods inherited from class com.sun.enterprise.deployment.DynamicAttributesDescriptor |
|---|
addExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toString |
| Methods inherited from class java.util.Observable |
|---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.sun.enterprise.deployment.web.WebDescriptor |
|---|
getDescription, getLargeIconUri, getName, getSmallIconUri, setDescription, setLargeIconUri, setName, setSmallIconUri |
| Constructor Detail |
|---|
public AuthorizationConstraintImpl()
public AuthorizationConstraintImpl(AuthorizationConstraintImpl other)
| Method Detail |
|---|
public java.util.Enumeration getSecurityRoles()
getSecurityRoles in interface AuthorizationConstraintpublic void addSecurityRole(SecurityRole securityRole)
addSecurityRole in interface AuthorizationConstraintthe - role to be added.public void addSecurityRole(java.lang.String roleName)
the - role name to be addedpublic void removeSecurityRole(SecurityRole securityRole)
the - role to be removed.public void print(java.lang.StringBuffer toStringBuffer)
print in class Descriptor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||