|
||||||||||
| 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.EnvironmentProperty
com.sun.enterprise.deployment.RoleReference
public class RoleReference
Special kind of environment property that encapsulates the primitive roles as defined by the bean developer. The name of a primitive role will appear in the bean code, the value will be mapped to the name of a Role chosen by the application assembler which is referenced by the EjbBundle being assembled.
| Field Summary |
|---|
| Fields inherited from class com.sun.enterprise.deployment.EnvironmentProperty |
|---|
lookupName, mappedName |
| Fields inherited from class com.sun.enterprise.deployment.Descriptor |
|---|
DESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED |
| Constructor Summary | |
|---|---|
RoleReference()
Default constructor. |
|
RoleReference(EnvironmentProperty environmentProperty)
Construct the role reference with the same name and rolename the same as the environment property value. |
|
RoleReference(java.lang.String name,
java.lang.String description)
Construct a role reference from the given name and description. |
|
| Method Summary | |
|---|---|
Role |
getRole()
Return the role object from this descriptor. |
java.lang.String |
getRolename()
Return the coded name. |
SecurityRole |
getSecurityRoleLink()
Return the rolename. |
void |
print(java.lang.StringBuffer toStringBuffer)
Returns a formatted version of this object as a String. |
void |
setRolename(java.lang.String rolename)
Sets the coded name. |
void |
setSecurityRoleLink(SecurityRole securityRole)
Sets the rolename. |
| Methods inherited from class com.sun.enterprise.deployment.EnvironmentProperty |
|---|
addInjectionTarget, equals, getComponentEnvName, getInjectionTargets, getInjectResourceType, getLookupName, getMappedName, getResolvedValue, getResolvedValueObject, getType, getValue, getValueObject, getValueType, hasAValue, hashCode, hasInjectionTargetFromXml, hasLookupName, isConflictResourceGroup, isInjectable, isSetValueCalled, printInjectableResourceInfo, setInjectResourceType, setLookupName, setMappedName, setType, setValue |
| 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, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.sun.enterprise.deployment.web.SecurityRoleReference |
|---|
getDescription, setDescription |
| Methods inherited from interface com.sun.enterprise.deployment.web.WebDescriptor |
|---|
getDescription, getLargeIconUri, getName, getSmallIconUri, setDescription, setLargeIconUri, setName, setSmallIconUri |
| Methods inherited from interface com.sun.enterprise.deployment.web.NameValuePair |
|---|
getDescription, getName, setDescription, setName |
| Constructor Detail |
|---|
public RoleReference()
public RoleReference(java.lang.String name,
java.lang.String description)
public RoleReference(EnvironmentProperty environmentProperty)
the - environment property instance.| Method Detail |
|---|
public Role getRole()
public SecurityRole getSecurityRoleLink()
getSecurityRoleLink in interface SecurityRoleReferencepublic void setSecurityRoleLink(SecurityRole securityRole)
setSecurityRoleLink in interface SecurityRoleReferencethe - rolename.public java.lang.String getRolename()
getRolename in interface SecurityRoleReferencepublic void setRolename(java.lang.String rolename)
setRolename in interface SecurityRoleReferencethe - role name used in the bean code.public void print(java.lang.StringBuffer toStringBuffer)
print in class EnvironmentProperty
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||