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

    Constructors
    Modifier
    Constructor
    Description
    protected
    Default constructor, needed for serialization.
     
    UserInfo(String name, String userIcon, boolean isAdmin, boolean isDeveloper, boolean isCategoryManager, boolean isWorkplaceUser, boolean isManaged)
    Creates a new instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the user name.
    Returns the user icon path.
    boolean
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 name
      userIcon - the user icon path
      isAdmin - true if the user is an administrator
      isDeveloper - true if the user is a template developer
      isCategoryManager - true if the user is a category manager
      isWorkplaceUser - true if the user is a workplace user
      isManaged - true if the user is managed
    • UserInfo

      protected UserInfo()
      Default constructor, needed for serialization.

  • Method Details

    • getName

      public String getName()
      Gets the user name.

      Returns:
      the user name
    • getUserIcon

      public 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