Class RoleImpl

    • Constructor Detail

      • RoleImpl

        public RoleImpl​(long id,
                        String name)
    • Method Detail

      • setDisplayName

        public void setDisplayName​(String displayName)
      • setDescription

        public void setDescription​(String description)
      • setCreatedBy

        public void setCreatedBy​(long createdBy)
      • setCreationDate

        public void setCreationDate​(Date creationDate)
      • setLastUpdate

        public void setLastUpdate​(Date lastUpdate)
      • getId

        public long getId()
        Specified by:
        getId in interface Role
        Returns:
        the role id
      • getName

        public String getName()
        Specified by:
        getName in interface Role
        Returns:
        the role's name
      • getDisplayName

        public String getDisplayName()
        Specified by:
        getDisplayName in interface Role
        Returns:
        the role's name to display
      • getDescription

        public String getDescription()
        Specified by:
        getDescription in interface Role
        Returns:
        the role's description
      • getCreatedBy

        public long getCreatedBy()
        Specified by:
        getCreatedBy in interface Role
        Returns:
        the id of the user that created the role
      • getCreationDate

        public Date getCreationDate()
        Specified by:
        getCreationDate in interface Role
        Returns:
        the role's creation's date
      • getLastUpdate

        public Date getLastUpdate()
        Specified by:
        getLastUpdate in interface Role
        Returns:
        the role's last update date
      • getIconId

        public Long getIconId()
        Specified by:
        getIconId in interface Role
        Returns:
        the icon id of the role or null if there is no icon
      • setIconId

        public void setIconId​(Long iconId)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object