Class Role


  • @Entity
    public class Role
    extends AuditableModel
    This object stores the roles.
    • Constructor Detail

      • Role

        public Role()
      • Role

        public Role​(String name)
    • Method Detail

      • setId

        public void setId​(Long id)
        Specified by:
        setId in class Model
      • getName

        public String getName()
      • setName

        public void setName​(String name)
      • getDescription

        public String getDescription()
      • setDescription

        public void setDescription​(String description)
      • setMenus

        public void setMenus​(Set<MetaMenu> menus)
      • addMenu

        public void addMenu​(MetaMenu item)
        Add the given MetaMenu item to the menus collection.
        Parameters:
        item - the item to add
      • removeMenu

        public void removeMenu​(MetaMenu item)
        Remove the given MetaMenu item from the menus collection.
        Parameters:
        item - the item to remove
      • clearMenus

        public void clearMenus()
        Clear the menus collection.
      • setPermissions

        public void setPermissions​(Set<Permission> permissions)
      • addPermission

        public void addPermission​(Permission item)
        Add the given Permission item to the permissions collection.
        Parameters:
        item - the item to add
      • removePermission

        public void removePermission​(Permission item)
        Remove the given Permission item from the permissions collection.
        Parameters:
        item - the item to remove
      • clearPermissions

        public void clearPermissions()
        Clear the permissions collection.
      • setMetaPermissions

        public void setMetaPermissions​(Set<MetaPermission> metaPermissions)
      • addMetaPermission

        public void addMetaPermission​(MetaPermission item)
        Add the given MetaPermission item to the metaPermissions collection.
        Parameters:
        item - the item to add
      • removeMetaPermission

        public void removeMetaPermission​(MetaPermission item)
        Remove the given MetaPermission item from the metaPermissions collection.
        Parameters:
        item - the item to remove
      • clearMetaPermissions

        public void clearMetaPermissions()
        Clear the metaPermissions collection.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object