org.openpermis.builder
Class EmptySubjectFinder

java.lang.Object
  extended by org.openpermis.builder.EmptySubjectFinder
All Implemented Interfaces:
SubjectFinder

public final class EmptySubjectFinder
extends Object
implements SubjectFinder

Returns subjects without any roles.

Since:
0.9.0

Constructor Summary
EmptySubjectFinder()
           
 
Method Summary
 Subject findSubject(URI identity)
          Returns a subject whose identity matches the one specified.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptySubjectFinder

public EmptySubjectFinder()
Method Detail

findSubject

public Subject 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