Package com.axelor.meta.db
Class MetaPermission
- java.lang.Object
-
- com.axelor.db.Model
-
- com.axelor.auth.db.AuditableModel
-
- com.axelor.meta.db.MetaPermission
-
@Entity public class MetaPermission extends AuditableModel
-
-
Constructor Summary
Constructors Constructor Description MetaPermission()
MetaPermission(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRule(MetaPermissionRule item)
Add the givenMetaPermissionRule
item to therules
collection.void
clearRules()
Clear therules
collection.boolean
equals(Object obj)
Boolean
getActive()
Long
getId()
String
getName()
String
getObject()
List<MetaPermissionRule>
getRules()
int
hashCode()
void
removeRule(MetaPermissionRule item)
Remove the givenMetaPermissionRule
item from therules
collection.void
setActive(Boolean active)
void
setId(Long id)
void
setName(String name)
void
setObject(String object)
void
setRules(List<MetaPermissionRule> rules)
String
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 Detail
-
MetaPermission
public MetaPermission()
-
MetaPermission
public MetaPermission(String name)
-
-
Method Detail
-
getName
public String getName()
-
setName
public void setName(String name)
-
getObject
public String getObject()
-
setObject
public void setObject(String object)
-
getActive
public Boolean getActive()
-
setActive
public void setActive(Boolean active)
-
getRules
public List<MetaPermissionRule> getRules()
-
setRules
public void setRules(List<MetaPermissionRule> rules)
-
addRule
public void addRule(MetaPermissionRule item)
Add the givenMetaPermissionRule
item to therules
collection.It sets
item.metaPermission = this
to ensure the proper relationship.- Parameters:
item
- the item to add
-
removeRule
public void removeRule(MetaPermissionRule item)
Remove the givenMetaPermissionRule
item from therules
collection.- Parameters:
item
- the item to remove
-
clearRules
public void clearRules()
Clear therules
collection.
-
-