com.sas.hls.security.role
Class AssignedRole

java.lang.Object
  extended by com.sas.hls.security.role.AssignedRole
All Implemented Interfaces:
Serializable

public class AssignedRole
extends Object
implements Serializable

Client representation of a role which has been made available in a context.

See Also:
Serialized Form

Constructor Summary
AssignedRole(String identifier, ObjectIdentity roleContext, RoleDescriptor roleDescriptor, boolean inherited)
          Constructor
 
Method Summary
 AssignedRole clone()
          Create and return a copy of this object.
 boolean equals(Object obj)
          Indicate whether some other object is "equal to" this one.
 String getIdentifier()
          Get the identifier of this assignedRole
 ObjectIdentity getRoleContext()
          Get the context that a role is being assigned to
 RoleDescriptor getRoleDescriptor()
          Get the role being assigned to a context.
 int hashCode()
          Return a hash code value for the object.
 boolean isInherited()
          is this roleAssignment inheriting the role definition
 void setRoleContext(ObjectIdentity roleContext)
          Set the context that a role is being assigned to
 void setRoleDescriptor(RoleDescriptor roleDescriptor)
          Set the role being assigned to a context.
 String toString()
          Return a string representation of the object.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AssignedRole

public AssignedRole(String identifier,
                    ObjectIdentity roleContext,
                    RoleDescriptor roleDescriptor,
                    boolean inherited)
Constructor

Parameters:
identifier - the identifier for this assignedRole
roleContext - the context for this assignedRole
roleDescriptor - the role being made available in the specified context.
inherited - boolean flag indicating if the role is defined in this context or if it is defined in a parent context.
Method Detail

getRoleContext

public ObjectIdentity getRoleContext()
Get the context that a role is being assigned to

Returns:
the context

setRoleContext

public void setRoleContext(ObjectIdentity roleContext)
Set the context that a role is being assigned to

Parameters:
roleContext -

getRoleDescriptor

public RoleDescriptor getRoleDescriptor()
Get the role being assigned to a context.

Returns:
the role being assigned to a context

setRoleDescriptor

public void setRoleDescriptor(RoleDescriptor roleDescriptor)
Set the role being assigned to a context.

Parameters:
roleDescriptor -

isInherited

public boolean isInherited()
is this roleAssignment inheriting the role definition

Returns:
the inherited

getIdentifier

public String getIdentifier()
Get the identifier of this assignedRole

Returns:
the identifier

hashCode

public int hashCode()
Return a hash code value for the object.

Overrides:
hashCode in class Object
See Also:
Object.hashCode()

equals

public boolean equals(Object obj)
Indicate whether some other object is "equal to" this one.

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

toString

public String toString()
Return a string representation of the object.

Overrides:
toString in class Object
See Also:
Object.toString()

clone

public AssignedRole clone()
                   throws CloneNotSupportedException
Create and return a copy of this object.

Overrides:
clone in class Object
Throws:
CloneNotSupportedException
See Also:
Object.clone()


Copyright (c) 2012, SAS Institute Inc., Cary, NC, USA