Package com.axelor.auth.db
Class Role
java.lang.Object
com.axelor.db.Model
com.axelor.auth.db.AuditableModel
com.axelor.auth.db.Role
This object stores the roles.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add the givenMetaMenu
item to themenus
collection.void
Add the givenMetaPermission
item to themetaPermissions
collection.void
addPermission
(Permission item) Add the givenPermission
item to thepermissions
collection.void
Clear themenus
collection.void
Clear themetaPermissions
collection.void
Clear thepermissions
collection.boolean
getId()
getMenus()
getName()
int
hashCode()
void
removeMenu
(MetaMenu item) Remove the givenMetaMenu
item from themenus
collection.void
Remove the givenMetaPermission
item from themetaPermissions
collection.void
removePermission
(Permission item) Remove the givenPermission
item from thepermissions
collection.void
setDescription
(String description) void
void
void
setMetaPermissions
(Set<MetaPermission> metaPermissions) void
void
setPermissions
(Set<Permission> permissions) toString()
Methods inherited from class com.axelor.auth.db.AuditableModel
getCreatedBy, getCreatedOn, getUpdatedBy, getUpdatedOn
Methods inherited from class com.axelor.db.Model
getArchived, getCid, getVersion, isSelected, setArchived, setCid, setSelected, setVersion
-
Constructor Details
-
Role
public Role() -
Role
-
-
Method Details
-
getId
-
setId
-
getName
-
setName
-
getDescription
-
setDescription
-
getMenus
-
setMenus
-
addMenu
Add the givenMetaMenu
item to themenus
collection.- Parameters:
item
- the item to add
-
removeMenu
Remove the givenMetaMenu
item from themenus
collection.- Parameters:
item
- the item to remove
-
clearMenus
public void clearMenus()Clear themenus
collection. -
getPermissions
-
setPermissions
-
addPermission
Add the givenPermission
item to thepermissions
collection.- Parameters:
item
- the item to add
-
removePermission
Remove the givenPermission
item from thepermissions
collection.- Parameters:
item
- the item to remove
-
clearPermissions
public void clearPermissions()Clear thepermissions
collection. -
getMetaPermissions
-
setMetaPermissions
-
addMetaPermission
Add the givenMetaPermission
item to themetaPermissions
collection.- Parameters:
item
- the item to add
-
removeMetaPermission
Remove the givenMetaPermission
item from themetaPermissions
collection.- Parameters:
item
- the item to remove
-
clearMetaPermissions
public void clearMetaPermissions()Clear themetaPermissions
collection. -
equals
-
hashCode
public int hashCode() -
toString
-