public interface Subject extends Named<Integer>, AuthSubject
Subject
is a fully featured user-account managed by appNG.Modifier and Type | Method and Description |
---|---|
List<Group> |
getGroups()
|
UserType |
getUserType()
Returns the
UserType . |
boolean |
hasApplication(Application application)
|
boolean |
isAuthenticated()
Checks whether this
Subject is authenticated. |
boolean |
isAuthorized(Authorizable<?> authorizable)
Checks whether this
Subject has authorization for the given Authorizable . |
getDescription, getName
getId
getDigest, getSalt, setDigest, setSalt
getAuthName, getEmail, getLanguage, getRealname, getTimeZone
boolean isAuthenticated()
Subject
is authenticated.true
if this Subject
is authenticated, false
otherwiseboolean isAuthorized(Authorizable<?> authorizable)
Subject
has authorization for the given Authorizable
.authorizable
- the Authorizable
true
if this Subject
has authorization for the given Authorizable
, false
otherwiseboolean hasApplication(Application application)
application
- the Application
true
if this Subject
owns at least one Role
of the the given Application
, false
otherwiseCopyright © 2011–2017 aiticon GmbH. All rights reserved.