public class AuthorizationConstraintImpl extends Descriptor implements AuthorizationConstraint
DESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED
BASIC_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<SecurityRole> |
getSecurityRoles()
Return the security roles involved in this constraint.
|
void |
print(StringBuilder toStringBuilder)
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, visit
addExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toString
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDescription, getLargeIconUri, getName, getSmallIconUri, setDescription, setLargeIconUri, setName, setSmallIconUri
public AuthorizationConstraintImpl()
public AuthorizationConstraintImpl(AuthorizationConstraintImpl other)
public Enumeration<SecurityRole> getSecurityRoles()
getSecurityRoles
in interface AuthorizationConstraint
public void addSecurityRole(SecurityRole securityRole)
addSecurityRole
in interface AuthorizationConstraint
the
- 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(StringBuilder toStringBuilder)
print
in class Descriptor
Copyright © 2021. All rights reserved.