org.openpermis.subject
Class MutableSubjectFinder
java.lang.Object
org.openpermis.subject.MutableSubjectFinder
- All Implemented Interfaces:
- SubjectFinder
public final class MutableSubjectFinder
- extends Object
- implements SubjectFinder
Finds mutable subjects by identities.
- Since:
- 0.9.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MutableSubjectFinder
public MutableSubjectFinder(RoleAssignmentController<?> controller)
- Creates a mutable subject finder that uses the specified controller to issue and revoke
role assignments.
- Parameters:
controller
- the controller used to issue and revoke role assignments.- Since:
- 0.9.0
findSubject
public MutableSubject findSubject(URI identity)
throws SubjectFinderException
- Description copied from interface:
SubjectFinder
- Returns a subject whose identity matches the one specified.
- Specified by:
findSubject
in interface SubjectFinder
- Parameters:
identity
- a URI
that identifies a subject.
- Returns:
- a
Subject
associating a person with her assigned roles. The returned
subject is never null
, but will have no assigned roles for unknown identities.
- Throws:
SubjectFinderException
- when the finder fails to retrieve a subject.- 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