@Exported
public interface User
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getACLs()
Get the current user's ACLs
|
String |
getDescription()
Gets the user description
|
String |
getEmail()
Gets the user email
|
List<String> |
getGroups()
Get the user's security Groups
|
String |
getId()
Gets the user id
|
Timestamp |
getLastLoggedIn()
Get the last logged in time for the user.
|
Locale |
getLocalePreference()
Get the prefered Locale for the user
|
String |
getName()
Gets the username
|
Map<String,String> |
getOtherAttributes() |
String |
getPassword()
Gets the encrypted password
|
List<String> |
getRoles(String site)
Gets the user roles for a given site
|
Set<String> |
getSites()
Gets the list of site that the user could access
|
String |
getTimezonePreference()
Get the prefered timezone for the user
|
String |
getUserImage()
Gets the user image
|
Map<String,List<Object>> |
getUserProperties()
Gets the user general properties
|
void |
setACLs(List<String> ACLs)
Set the user's ACL
|
void |
setDescription(String desc)
Sets the user description
|
void |
setEmail(String email)
Sets the user email
|
void |
setId(String id)
Sets the user id
|
void |
setLastLoggedIn(Timestamp lastTime)
Sets the last logged in time for the user
|
void |
setLocalePreference(Locale locale)
Sets the perfered Local for the user
|
void |
setName(String name)
Sets the username
|
void |
setPassword(String password)
Sets the encrypted password
|
void |
setRoles(String site,
List<String> roles)
Sets the user roles for a given site, passing null or empty list for roles will result in the user being deleted from
the site
|
void |
setTimezonePreference(String timezone)
Sets the perfered timezone for the user
|
void |
setUserImage(String base64)
Sets the user image as base 64 String
|
String getName()
void setName(String name)
name - the String usernameString getPassword()
void setPassword(String password)
password - the String format of the encrypted passwordString getUserImage()
void setUserImage(String base64)
base64 - the base64 string for user image.String getDescription()
void setDescription(String desc)
desc - the String format of the user descriptionSet<String> getSites()
List<String> getRoles(String site)
site - there site where the roles would be get for this current uservoid setRoles(String site, List<String> roles)
site - the site to set the user rolesroles - the role listsString getId()
void setId(String id)
id - the user idString getEmail()
void setEmail(String email)
email - the emailLocale getLocalePreference()
void setLocalePreference(Locale locale)
locale - the LocaleString getTimezonePreference()
void setTimezonePreference(String timezone)
timezone - the timezoneMap<String,List<Object>> getUserProperties()
void setLastLoggedIn(Timestamp lastTime)
lastTime - last loggedTimestamp getLastLoggedIn()