public class RoleReference extends EnvironmentProperty implements SecurityRoleReference
lookupName, mappedNameDESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED| Constructor and Description |
|---|
RoleReference()
Default constructor.
|
RoleReference(EnvironmentProperty environmentProperty)
Construct the role reference with the same name and rolename the same as the environment property value.
|
RoleReference(String name,
String description)
Construct a role reference from the given name and description.
|
| Modifier and Type | Method and Description |
|---|---|
Role |
getRole()
Return the role object from this descriptor.
|
String |
getRoleName()
Return the coded name.
|
SecurityRole |
getSecurityRoleLink()
Return the rolename.
|
void |
print(StringBuilder toStringBuilder)
Returns a formatted version of this object as a String.
|
void |
setRoleName(String rolename)
Sets the coded name.
|
void |
setSecurityRoleLink(SecurityRole securityRole)
Sets the rolename.
|
addInjectionTarget, equals, getComponentEnvName, getInjectionTargets, getInjectResourceType, getLookupName, getMappedName, getResolvedValue, getResolvedValueObject, getType, getValue, getValueObject, getValueType, hasAValue, hashCode, hasInjectionTargetFromXml, hasLookupName, isConflict, isConflictResourceGroup, isInjectable, isSetValueCalled, printInjectableResourceInfo, setInjectResourceType, setLookupName, setMappedName, setType, setValueaddDescriptorExtension, 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, finalize, getClass, notify, notifyAll, wait, wait, waitgetDescription, setDescriptiongetDescription, getLargeIconUri, getName, getSmallIconUri, setDescription, setLargeIconUri, setName, setSmallIconUrigetDescription, getName, setDescription, setNamepublic RoleReference()
public RoleReference(String name, String description)
public RoleReference(EnvironmentProperty environmentProperty)
the - environment property instance.public Role getRole()
public SecurityRole getSecurityRoleLink()
getSecurityRoleLink in interface SecurityRoleReferencepublic void setSecurityRoleLink(SecurityRole securityRole)
setSecurityRoleLink in interface SecurityRoleReferencethe - rolename.public String getRoleName()
getRoleName in interface SecurityRoleReferencepublic void setRoleName(String rolename)
setRoleName in interface SecurityRoleReferencethe - role name used in the bean code.public void print(StringBuilder toStringBuilder)
print in class EnvironmentPropertyCopyright © 2019. All rights reserved.