public class AuthorizationConstraintImpl extends Descriptor implements AuthorizationConstraint
DESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGEDBASIC_METHOD, FORM_METHOD, MUTUAL_METHOD| Constructor and Description |
|---|
AuthorizationConstraintImpl()
Default constructor that creates an AuthorizationConstraint
with no roles.
|
AuthorizationConstraintImpl(AuthorizationConstraintImpl other)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSecurityRole(SecurityRole securityRole)
Adds a role to the authorization constraint.
|
void |
addSecurityRole(String roleName)
Adds a role to the authorization constraint
|
Enumeration |
getSecurityRoles()
Return the security roles involved in this constraint.
|
void |
print(StringBuffer toStringBuffer)
Prints a formatted representation of this object.
|
void |
removeSecurityRole(SecurityRole securityRole)
Removes the given role from the autrhorization constraint.
|
addDescriptorExtension, addPrefixMapping, createUniqueFilenameAmongst, createUniqueNameAmongst, createUniqueNameAmongstNamedDescriptors, fillDocType, getDeploymentExtensions, getDescription, getDescriptorExtension, getDescriptorExtensions, getDisplayName, getDocType, getLargeIconUri, getLocalizedDescription, getLocalizedDescriptions, getLocalizedDisplayName, getLocalizedDisplayNames, getLocalizedLargeIconUri, getLocalizedLargeIconUris, getLocalizedSmallIconUri, getLocalizedSmallIconUris, getName, getPrefixMapping, getSmallIconUri, isBoundsChecking, setBoundsChecking, setDescription, setDisplayName, setLargeIconUri, setLocalizedDescription, setLocalizedDisplayName, setLocalizedLargeIconUri, setLocalizedSmallIconUri, setName, setSmallIconUri, visitaddExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toStringaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDescription, getLargeIconUri, getName, getSmallIconUri, setDescription, setLargeIconUri, setName, setSmallIconUripublic AuthorizationConstraintImpl()
public AuthorizationConstraintImpl(AuthorizationConstraintImpl other)
public Enumeration getSecurityRoles()
getSecurityRoles in interface AuthorizationConstraintpublic void addSecurityRole(SecurityRole securityRole)
addSecurityRole in interface AuthorizationConstraintthe - role to be added.public void addSecurityRole(String roleName)
the - role name to be addedpublic void removeSecurityRole(SecurityRole securityRole)
the - role to be removed.public void print(StringBuffer toStringBuffer)
print in class DescriptorCopyright © 2017. All rights reserved.