org.openpermis.repository.basic
Class InternalSubjectRepository
java.lang.Object
org.openpermis.repository.basic.InternalSubjectRepository
- All Implemented Interfaces:
- SubjectRepository
public class InternalSubjectRepository
- extends Object
- implements SubjectRepository
A subject repository that retrieves subjects for a set of explicitly configured persons.
- Since:
- 0.1.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
subjectMap
private final Map<URI,Subject> subjectMap
- Since:
- 0.1.0
InternalSubjectRepository
public InternalSubjectRepository()
- Creates an empty repository.
- Since:
- 0.1.0
storeSubject
public void storeSubject(Subject subject)
- Stores the specified subject in this repository.
- Parameters:
subject
- a Subject
that will be returned by retrieveSubject(URI)
for URIs that matche Identifiable.getIdentity()
.- Since:
- 0.1.0
retrieveSubject
public Subject retrieveSubject(URI identity)
throws SubjectRepositoryException
- Description copied from interface:
SubjectRepository
- Returns a subject whose identity matches the one specified.
- Specified by:
retrieveSubject
in interface SubjectRepository
- 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:
SubjectRepositoryException
- when the repository fails to retrieve the roles
for the specified identity.- Since:
- 0.1.0
PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:14:59
Copyright (c) 2002-2007 Ergon Informatik AG