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 LoggedInUserpublic String getFirstName()
getFirstName in interface LoggedInUserpublic String getLastName()
getLastName in interface LoggedInUserpublic String getFullName()
getFullName in interface LoggedInUserpublic String getPassword()
getPassword in interface LoggedInUserpublic void setPassword(String password)
public boolean isUser()
isUser in interface LoggedInUserpublic void setUser(boolean isUser)
public boolean isAdmin()
isAdmin in interface LoggedInUserpublic void setAdmin(boolean isAdmin)
public void addSecurityRoleGroup(Group securityRoleGroup)
public List<Group> getSecurityRoles()
getSecurityRoles in interface LoggedInUserpublic List<Group> getGroups()
getGroups in interface LoggedInUserpublic void addGroup(Group group)
Copyright © 2016 Alfresco. All rights reserved.