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 TypeMethodDescriptionvoidAdd the givenMetaMenuitem to themenuscollection.voidAdd the givenMetaPermissionitem to themetaPermissionscollection.voidaddPermission(Permission item) Add the givenPermissionitem to thepermissionscollection.voidClear themenuscollection.voidClear themetaPermissionscollection.voidClear thepermissionscollection.booleangetId()getMenus()getName()inthashCode()voidremoveMenu(MetaMenu item) Remove the givenMetaMenuitem from themenuscollection.voidRemove the givenMetaPermissionitem from themetaPermissionscollection.voidremovePermission(Permission item) Remove the givenPermissionitem from thepermissionscollection.voidsetDescription(String description) voidvoidvoidsetMetaPermissions(Set<MetaPermission> metaPermissions) voidvoidsetPermissions(Set<Permission> permissions) toString()Methods inherited from class com.axelor.auth.db.AuditableModel
getCreatedBy, getCreatedOn, getUpdatedBy, getUpdatedOnMethods 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 givenMetaMenuitem to themenuscollection.- Parameters:
item- the item to add
-
removeMenu
Remove the givenMetaMenuitem from themenuscollection.- Parameters:
item- the item to remove
-
clearMenus
public void clearMenus()Clear themenuscollection. -
getPermissions
-
setPermissions
-
addPermission
Add the givenPermissionitem to thepermissionscollection.- Parameters:
item- the item to add
-
removePermission
Remove the givenPermissionitem from thepermissionscollection.- Parameters:
item- the item to remove
-
clearPermissions
public void clearPermissions()Clear thepermissionscollection. -
getMetaPermissions
-
setMetaPermissions
-
addMetaPermission
Add the givenMetaPermissionitem to themetaPermissionscollection.- Parameters:
item- the item to add
-
removeMetaPermission
Remove the givenMetaPermissionitem from themetaPermissionscollection.- Parameters:
item- the item to remove
-
clearMetaPermissions
public void clearMetaPermissions()Clear themetaPermissionscollection. -
equals
-
hashCode
public int hashCode() -
toString
-