Class GetSinglePrincipal
java.lang.Object
ch.tocco.nice2.userbase.api.GetSinglePrincipal
- All Implemented Interfaces:
OptionalTask<String,Entity>, PersistTask<String, Entity>
Returns either the entity of the principal with the given username or
null. If
more than one principal is found, an IllegalStateException is thrown.-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface OptionalTask
runMethods inherited from interface PersistTask
andThenDo, compose, compose2, composeWhen, discardResult, expand, expand, getDescription, ifElse, orWhen, orWhenNot, passWhen, passWhenNot, skipErrors, unwrap
-
Constructor Details
-
GetSinglePrincipal
public GetSinglePrincipal()
-
-
Method Details
-
doRun
- Specified by:
doRunin interfaceOptionalTask<String,Entity>
-
getQuery
-
toString
-