Package org.opencms.gwt.shared
Class CmsCoreData.UserInfo
java.lang.Object
org.opencms.gwt.shared.CmsCoreData.UserInfo
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
- Enclosing class:
- CmsCoreData
public static class CmsCoreData.UserInfo
extends Object
implements com.google.gwt.user.client.rpc.IsSerializable
Bean class containing info about the current user.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
Gets the user name.Returns the user icon path.boolean
isAdmin()
Returns true if the user is an administrator.boolean
Returns true if the user is a category manager.boolean
Returns true if the user is a template developer.boolean
Returns if the user is managed.boolean
Returns true if the current user is a workplace user.
-
Constructor Details
-
UserInfo
public UserInfo(String name, String userIcon, boolean isAdmin, boolean isDeveloper, boolean isCategoryManager, boolean isWorkplaceUser, boolean isManaged) Creates a new instance.- Parameters:
name
- the user nameuserIcon
- the user icon pathisAdmin
- true if the user is an administratorisDeveloper
- true if the user is a template developerisCategoryManager
- true if the user is a category managerisWorkplaceUser
- true if the user is a workplace userisManaged
- true if the user is managed
-
UserInfo
protected UserInfo()Default constructor, needed for serialization.
-
-
Method Details
-
getName
Gets the user name.- Returns:
- the user name
-
getUserIcon
Returns the user icon path.- Returns:
- the user icon path
-
isAdmin
Returns true if the user is an administrator.- Returns:
- true if the user is an administrator
-
isCategoryManager
Returns true if the user is a category manager.- Returns:
- true if the user is a category manager
-
isDeveloper
Returns true if the user is a template developer.- Returns:
- true if the user is a template developer
-
isManaged
Returns if the user is managed.- Returns:
true
if the user is managed
-
isWorkplaceUser
Returns true if the current user is a workplace user.- Returns:
- true if the current user is a workplace user
-