org.openpermis.subject.assignment
Class RoleAssignment<T extends RoleAssignmentContext>

java.lang.Object
  extended by org.openpermis.subject.assignment.RoleAssignment<T>
Type Parameters:
T - the context of this role assignment.

public final class RoleAssignment<T extends RoleAssignmentContext>
extends Object

Represents an assignment of roles by an issuer for a specific time period.

Since:
0.9.0

Constructor Summary
RoleAssignment(T context, URI issuer, Set<RoleDefinition> roles, Date validFrom, Date validTo)
          Creates a new role assignment.
RoleAssignment(T context, URI issuer, Set<RoleDefinition> roles, TimePeriod validity)
          Creates a new role assignment.
 
Method Summary
 T getContext()
          Returns the context of this assignment.
 URI getIssuer()
          Returns the issuer of this assignment.
 Set<RoleDefinition> getRoleDefinitions()
          Returns the assigned role definitions.
 TimePeriod getValidity()
          Returns the valid time period of this assignment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoleAssignment

public RoleAssignment(T context,
                      URI issuer,
                      Set<RoleDefinition> roles,
                      TimePeriod validity)
Creates a new role assignment.

Parameters:
context - the context of this assignment.
issuer - the issuer of the specified roles.
roles - the assigned roles.
validity - the valid time period.
Since:
0.9.0

RoleAssignment

public RoleAssignment(T context,
                      URI issuer,
                      Set<RoleDefinition> roles,
                      Date validFrom,
                      Date validTo)
Creates a new role assignment.

Parameters:
context - the context of this assignment.
issuer - the issuer of the specified roles.
roles - the assigned roles.
validFrom - validity start of this assignment.
validTo - validity end of this assignment.
Since:
0.9.0
Method Detail

getContext

public T getContext()
Returns the context of this assignment.

Returns:
the context of this assignment.
Since:
0.9.0

getIssuer

public URI getIssuer()
Returns the issuer of this assignment.

Returns:
the issuer of this assignment.
Since:
0.9.0

getValidity

public TimePeriod getValidity()
Returns the valid time period of this assignment.

Returns:
the valid time period of this assignment.
Since:
0.9.0

getRoleDefinitions

public Set<RoleDefinition> getRoleDefinitions()
Returns the assigned role definitions.

Returns:
the assigned role definitions.
Since:
0.9.0


OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:16:59
Copyright (c) 2002-2007 Ergon Informatik AG