Class MessageAccessControl

java.lang.Object
org.deltava.security.command.AccessControl
org.deltava.security.command.MessageAccessControl
All Implemented Interfaces:
Serializable

public final class MessageAccessControl extends AccessControl
An Access Controller for Message Templates.
Since:
1.0
Version:
7.2
Author:
Luke
See Also:
  • Constructor Details

    • MessageAccessControl

      public MessageAccessControl(SecurityContext ctx, MessageTemplate mt)
      Initialize the Access Controller.
      Parameters:
      ctx - the Security context
      mt - the MessageTemplate
  • Method Details

    • validate

      public void validate()
      Calculates a User's access.
      Specified by:
      validate in class AccessControl
    • 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