|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openpermis.subject.assignment.RoleAssignmentController<T>
T
- the context of this role assignment controller.public abstract class RoleAssignmentController<T extends RoleAssignmentContext>
Controls role assignments.
Constructor Summary | |
---|---|
RoleAssignmentController()
|
Method Summary | |
---|---|
protected abstract T |
createContext(URI identity,
URI issuer,
Set<RoleDefinition> roles,
Date validFrom,
Date validTo)
Creates a context for a role assignment. |
RoleAssignment<T> |
issue(URI identity,
URI issuer,
Set<RoleDefinition> roles,
Date validFrom,
Date validTo)
Issues a new role assignment. |
abstract List<RoleAssignment<T>> |
list(URI identity)
Lists all role assignments that are held by the specified identity. |
abstract void |
revoke(RoleAssignment<T> roleAssignment)
Revokes a role assignment. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.openpermis.subject.norm.SubjectIdentityNormalizer |
---|
normalize |
Constructor Detail |
---|
public RoleAssignmentController()
Method Detail |
---|
protected abstract T createContext(URI identity, URI issuer, Set<RoleDefinition> roles, Date validFrom, Date validTo) throws RoleAssignmentControllerException
identity
- holder of the role assignment.issuer
- the issuer of the role assignment.roles
- roles of the role assignment,validFrom
- validity start of the role assignment.validTo
- validity end of the role assignment.
RoleAssignmentControllerException
- signals that the assignment failed.public abstract List<RoleAssignment<T>> list(URI identity)
identity
- an URI
that specifies the holder of role assignments.
public RoleAssignment<T> issue(URI identity, URI issuer, Set<RoleDefinition> roles, Date validFrom, Date validTo) throws RoleAssignmentControllerException
identity
- holder of the role assignment.issuer
- the issuer of the role assignment.roles
- roles of the role assignment,validFrom
- validity start of the role assignment.validTo
- validity end of the role assignment.
RoleAssignmentControllerException
- signals that the assignment failed.public abstract void revoke(RoleAssignment<T> roleAssignment) throws RoleAssignmentControllerException
roleAssignment
- the role assignment to revoke.
RoleAssignmentControllerException
- signals that the revocation failed.
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:16:59
Copyright (c) 2002-2007 Ergon Informatik AG