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 TypeMethodDescriptionvoidaddRule(MetaPermissionRule item) Add the givenMetaPermissionRuleitem to therulescollection.voidClear therulescollection.booleangetId()getName()getRules()inthashCode()voidremoveRule(MetaPermissionRule item) Remove the givenMetaPermissionRuleitem from therulescollection.voidvoidvoidvoidvoidsetRules(List<MetaPermissionRule> rules) 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
-
MetaPermission
public MetaPermission() -
MetaPermission
-
-
Method Details
-
getId
-
setId
-
getName
-
setName
-
getObject
-
setObject
-
getActive
-
setActive
-
getRules
-
setRules
-
addRule
Add the givenMetaPermissionRuleitem to therulescollection.It sets
item.metaPermission = thisto ensure the proper relationship.- Parameters:
item- the item to add
-
removeRule
Remove the givenMetaPermissionRuleitem from therulescollection.- Parameters:
item- the item to remove
-
clearRules
public void clearRules()Clear therulescollection. -
equals
-
hashCode
public int hashCode() -
toString
-