Package com.axelor.auth.db
Class Permission
- java.lang.Object
-
- com.axelor.db.Model
-
- com.axelor.auth.db.AuditableModel
-
- com.axelor.auth.db.Permission
-
@Entity public class Permission extends AuditableModel
This object stores the permissions.
-
-
Constructor Summary
Constructors Constructor Description Permission()
Permission(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Boolean
getCanCreate()
Whether to grant create access.Boolean
getCanExport()
Whether to grant export access.Boolean
getCanRead()
Whether to grant read access.Boolean
getCanRemove()
Whether to grant remove access.Boolean
getCanWrite()
Whether to grant write access.String
getCondition()
Domain filter as condition.String
getConditionParams()
Comma separated list of params for the condition.Long
getId()
String
getName()
An unique permission name.String
getObject()
Fully qualified object name or wild card package name.int
hashCode()
void
setCanCreate(Boolean canCreate)
void
setCanExport(Boolean canExport)
void
setCanRead(Boolean canRead)
void
setCanRemove(Boolean canRemove)
void
setCanWrite(Boolean canWrite)
void
setCondition(String condition)
void
setConditionParams(String conditionParams)
void
setId(Long id)
void
setName(String name)
void
setObject(String object)
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
-
Permission
public Permission()
-
Permission
public Permission(String name)
-
-
Method Detail
-
getName
public String getName()
An unique permission name.- Returns:
- the property value
-
setName
public void setName(String name)
-
getObject
public String getObject()
Fully qualified object name or wild card package name.- Returns:
- the property value
-
setObject
public void setObject(String object)
-
getCanRead
public Boolean getCanRead()
Whether to grant read access.- Returns:
- the property value
-
setCanRead
public void setCanRead(Boolean canRead)
-
getCanWrite
public Boolean getCanWrite()
Whether to grant write access.- Returns:
- the property value
-
setCanWrite
public void setCanWrite(Boolean canWrite)
-
getCanCreate
public Boolean getCanCreate()
Whether to grant create access.- Returns:
- the property value
-
setCanCreate
public void setCanCreate(Boolean canCreate)
-
getCanRemove
public Boolean getCanRemove()
Whether to grant remove access.- Returns:
- the property value
-
setCanRemove
public void setCanRemove(Boolean canRemove)
-
getCanExport
public Boolean getCanExport()
Whether to grant export access.- Returns:
- the property value
-
setCanExport
public void setCanExport(Boolean canExport)
-
getCondition
public String getCondition()
Domain filter as condition.- Returns:
- the property value
-
setCondition
public void setCondition(String condition)
-
getConditionParams
public String getConditionParams()
Comma separated list of params for the condition.- Returns:
- the property value
-
setConditionParams
public void setConditionParams(String conditionParams)
-
-