Class MessageAccessControl
java.lang.Object
org.deltava.security.command.AccessControl
org.deltava.security.command.MessageAccessControl
- All Implemented Interfaces:
Serializable
An Access Controller for Message Templates.
- Since:
- 1.0
- Version:
- 7.2
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class org.deltava.security.command.AccessControl
_ctx
-
Constructor Summary
ConstructorsConstructorDescriptionInitialize the Access Controller. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns if the user can create a new Message Template.boolean
Returns if the user can delete this Message Template.boolean
Returns if the user can edit this Message Template.void
validate()
Calculates a User's access.Methods inherited from class org.deltava.security.command.AccessControl
validateContext
-
Constructor Details
-
MessageAccessControl
Initialize the Access Controller.- Parameters:
ctx
- the Security contextmt
- the MessageTemplate
-
-
Method Details
-
validate
-
getCanCreate
public boolean getCanCreate()Returns if the user can create a new Message Template.- Returns:
- TRUE if a Message Template can be created, otherwise FALSE
-
getCanEdit
public boolean getCanEdit()Returns if the user can edit this Message Template.- Returns:
- TRUE if a Message Template can be edited, otherwise FALSE
-
getCanDelete
public boolean getCanDelete()Returns if the user can delete this Message Template.- Returns:
- TRUE if this Message Template can be deleted, otherwise FALSE
-