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 java.lang.Object implements com.google.gwt.user.client.rpc.IsSerializable
Bean class containing info about the current user.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
UserInfo()
Default constructor, needed for serialization.UserInfo(java.lang.String name, java.lang.String userIcon, boolean isAdmin, boolean isDeveloper, boolean isCategoryManager, boolean isWorkplaceUser, boolean isManaged)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
Gets the user name.java.lang.String
getUserIcon()
Returns the user icon path.boolean
isAdmin()
Returns true if the user is an administrator.boolean
isCategoryManager()
Returns true if the user is a category manager.boolean
isDeveloper()
Returns true if the user is a template developer.boolean
isManaged()
Returns if the user is managed.boolean
isWorkplaceUser()
Returns true if the current user is a workplace user.
-
-
-
Constructor Detail
-
UserInfo
public UserInfo(java.lang.String name, java.lang.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 Detail
-
getName
public java.lang.String getName()
Gets the user name.- Returns:
- the user name
-
getUserIcon
public java.lang.String getUserIcon()
Returns the user icon path.- Returns:
- the user icon path
-
isAdmin
public boolean isAdmin()
Returns true if the user is an administrator.- Returns:
- true if the user is an administrator
-
isCategoryManager
public boolean isCategoryManager()
Returns true if the user is a category manager.- Returns:
- true if the user is a category manager
-
isDeveloper
public boolean isDeveloper()
Returns true if the user is a template developer.- Returns:
- true if the user is a template developer
-
isManaged
public boolean isManaged()
Returns if the user is managed.- Returns:
true
if the user is managed
-
isWorkplaceUser
public boolean isWorkplaceUser()
Returns true if the current user is a workplace user.- Returns:
- true if the current user is a workplace user
-
-