Class RoleImpl

java.lang.Object
org.bonitasoft.engine.identity.impl.RoleImpl
All Implemented Interfaces:
Serializable, BonitaObject, Role

public class RoleImpl extends Object implements Role
Author:
Yanyan Liu, Bole Zhang, Matthieu Chaffotte
See Also:
  • Constructor Details

    • RoleImpl

      public RoleImpl(long id, String name)
  • Method Details

    • 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)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object