Package org.europa.together.domain.acl
Class PermissionDO
java.lang.Object
org.europa.together.domain.acl.PermissionDO
- All Implemented Interfaces:
Serializable
PERMISSION OBJECT.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the used database table for this domain object. -
Constructor Summary
ConstructorsConstructorDescriptionDefault Constructor.PermissionDO(RolesDO role, ResourcesDO resource) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the resources for a permission.getRole()Get the role for a permission.getUuid()get the Identifier.inthashCode()booleanisChange()Indicate the CHANGE (update) permission for a resource.booleanisCreate()Indicate the CREATE permission for a resource.booleanisDelete()Indicate the DELETE permission for a resource.booleanisRead()Indicate the READ permission for a resource.voidsetChange(boolean change) Define the CHANGE (update) permission for a resource.voidsetCreate(boolean create) Define the CREATE permission for a resource.voidsetDelete(boolean delete) Define the DELETE permission for a resource.voidsetRead(boolean read) Define the READ permission for a resource.voidsetResource(ResourcesDO resource) Set the resources for a permission.voidSet the role for a permission.voidSet the identifier.toString()
-
Field Details
-
TABLE_NAME
The name of the used database table for this domain object.- See Also:
-
-
Constructor Details
-
PermissionDO
public PermissionDO()Default Constructor. -
PermissionDO
Constructor.- Parameters:
role- as RoleDOresource- as ResourceDO
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
toString
-
getUuid
get the Identifier.- Returns:
- uuid as String
-
setUuid
Set the identifier.- Parameters:
uuid- as String
-
getResource
Get the resources for a permission.- Returns:
- a resource as Object.
-
setResource
Set the resources for a permission.- Parameters:
resource- as Object
-
getRole
Get the role for a permission.- Returns:
- role as object
-
setRole
Set the role for a permission.- Parameters:
role- as Object
-
isRead
public boolean isRead()Indicate the READ permission for a resource.- Returns:
- true on success
-
setRead
public void setRead(boolean read) Define the READ permission for a resource.- Parameters:
read- as boolean
-
isCreate
public boolean isCreate()Indicate the CREATE permission for a resource.- Returns:
- true on success
-
setCreate
public void setCreate(boolean create) Define the CREATE permission for a resource.- Parameters:
create- as boolean
-
isChange
public boolean isChange()Indicate the CHANGE (update) permission for a resource.- Returns:
- true on success
-
setChange
public void setChange(boolean change) Define the CHANGE (update) permission for a resource.- Parameters:
change- as boolean
-
isDelete
public boolean isDelete()Indicate the DELETE permission for a resource.- Returns:
- true on success
-
setDelete
public void setDelete(boolean delete) Define the DELETE permission for a resource.- Parameters:
delete- as boolean
-