Package com.axelor.meta.db
Class MetaPermission
java.lang.Object
com.axelor.db.Model
com.axelor.auth.db.AuditableModel
com.axelor.meta.db.MetaPermission
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addRule
(MetaPermissionRule item) Add the givenMetaPermissionRule
item to therules
collection.void
Clear therules
collection.boolean
getId()
getName()
getRules()
int
hashCode()
void
removeRule
(MetaPermissionRule item) Remove the givenMetaPermissionRule
item from therules
collection.void
void
void
void
void
setRules
(List<MetaPermissionRule> rules) 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
-
MetaPermission
public MetaPermission() -
MetaPermission
-
-
Method Details
-
getId
-
setId
-
getName
-
setName
-
getObject
-
setObject
-
getActive
-
setActive
-
getRules
-
setRules
-
addRule
Add the givenMetaPermissionRule
item to therules
collection.It sets
item.metaPermission = this
to ensure the proper relationship.- Parameters:
item
- the item to add
-
removeRule
Remove the givenMetaPermissionRule
item from therules
collection.- Parameters:
item
- the item to remove
-
clearRules
public void clearRules()Clear therules
collection. -
equals
-
hashCode
public int hashCode() -
toString
-