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 String
The name of the used database table for this domain object. -
Constructor Summary
ConstructorsConstructorDescriptionDefault Constructor.PermissionDO
(RolesDO role, ResourcesDO resource) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Get the resources for a permission.getRole()
Get the role for a permission.getUuid()
get the Identifier.int
hashCode()
boolean
isChange()
Indicate the CHANGE (update) permission for a resource.boolean
isCreate()
Indicate the CREATE permission for a resource.boolean
isDelete()
Indicate the DELETE permission for a resource.boolean
isRead()
Indicate the READ permission for a resource.void
setChange
(boolean change) Define the CHANGE (update) permission for a resource.void
setCreate
(boolean create) Define the CREATE permission for a resource.void
setDelete
(boolean delete) Define the DELETE permission for a resource.void
setRead
(boolean read) Define the READ permission for a resource.void
setResource
(ResourcesDO resource) Set the resources for a permission.void
Set the role for a permission.void
Set 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
-