Class GetSinglePrincipal

java.lang.Object
ch.tocco.nice2.userbase.api.GetSinglePrincipal
All Implemented Interfaces:
OptionalTask<String,Entity>, PersistTask<String,Entity>

public class GetSinglePrincipal extends Object implements OptionalTask<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.