Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 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 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