public interface User extends Serializable
Modifier and Type | Method and Description |
---|---|
String |
getEmail()
Get the email property of this user.
|
String |
getFirstName()
Get the first name property of this user.
|
String |
getId()
Get the id of the user.
|
Calendar |
getLastLogin()
Get the last login property of this user.
|
String |
getLastName()
Get the last name property of this user.
|
Set<String> |
getMemberships()
Get the immutable set of
Group identities this user is a member of, which can be used to
lookup the referenced Group object(s) through SecurityService.getGroup(String) . |
String |
getProperty(String propertyName)
Get an additional user property by name.
|
Set<String> |
getPropertyNames()
Get the names of the available additional user properties (with a value type String)
|
Set<String> |
getUserRoles()
Get the directly assigned user role names for this user.
|
boolean |
isActive()
Whether this user is marked as active.
|
boolean |
isExternal()
Whether this is an external user
|
boolean |
isSystemUser()
Whether this user is marked as a system User (which is something totally different than a
JCR System Session having all privileges everywhere). |
String getId()
boolean isSystemUser()
JCR System Session
having all privileges everywhere).
When isSystemUser()
returns true
it means that the user is required for the
running system, for example the 'liveuser' in case of the delivery tier.
boolean isActive()
boolean isExternal()
Set<String> getMemberships()
Group identities
this user is a member of, which can be used to
lookup the referenced Group
object(s) through SecurityService.getGroup(String)
.Group identities
this user is a member of.Set<String> getUserRoles()
The user role names are not resolved, nor include possible implied user roles names
String getFirstName()
null
if not presentString getLastName()
null
if not presentString getEmail()
null
if not presentCalendar getLastLogin()
null
if not presentSet<String> getPropertyNames()
getProperty(String)
String getProperty(String propertyName)
Only single properties of type String, Boolean, Date, Double or Long are returned, while internal properties are hidden.
propertyName
,
or null
if not present/availableCopyright © 2007–2019 Hippo B.V. (http://www.onehippo.com). All rights reserved.