public class LoggedInUserImpl extends Object implements LoggedInUser
User
, containing the data of a logged in user
and adding data such as security roles, etc.Modifier and Type | Field and Description |
---|---|
protected String |
alternativeId |
protected List<Group> |
groups |
protected boolean |
isAdmin |
protected boolean |
isUser |
protected String |
password |
protected List<Group> |
securityRoles |
protected User |
user |
Constructor and Description |
---|
LoggedInUserImpl(User user,
String password) |
Modifier and Type | Method and Description |
---|---|
void |
addGroup(Group group) |
void |
addSecurityRoleGroup(Group securityRoleGroup) |
String |
getFirstName() |
String |
getFullName() |
List<Group> |
getGroups() |
String |
getId() |
String |
getLastName() |
String |
getPassword() |
List<Group> |
getSecurityRoles() |
boolean |
isAdmin() |
boolean |
isUser() |
void |
setAdmin(boolean isAdmin) |
void |
setPassword(String password) |
void |
setUser(boolean isUser) |
protected User user
protected String password
protected String alternativeId
protected boolean isUser
protected boolean isAdmin
public String getId()
getId
in interface LoggedInUser
public String getFirstName()
getFirstName
in interface LoggedInUser
public String getLastName()
getLastName
in interface LoggedInUser
public String getFullName()
getFullName
in interface LoggedInUser
public String getPassword()
getPassword
in interface LoggedInUser
public void setPassword(String password)
public boolean isUser()
isUser
in interface LoggedInUser
public void setUser(boolean isUser)
public boolean isAdmin()
isAdmin
in interface LoggedInUser
public void setAdmin(boolean isAdmin)
public void addSecurityRoleGroup(Group securityRoleGroup)
public List<Group> getSecurityRoles()
getSecurityRoles
in interface LoggedInUser
public List<Group> getGroups()
getGroups
in interface LoggedInUser
public void addGroup(Group group)
Copyright © 2016 Alfresco. All rights reserved.