Class DispatchRouteAccessControl

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

public class DispatchRouteAccessControl extends AccessControl
An Access controller for dispatch data.
Since:
2.1
Version:
7.0
Author:
Luke
See Also:
  • Constructor Details

    • DispatchRouteAccessControl

      public DispatchRouteAccessControl(SecurityContext ctx, DispatchRoute rt)
      Initializes the Access Controller.
      Parameters:
      ctx - the Security context
      rt - the Dispatch Route
  • Method Details

    • validate

      public void validate()
      Calculates access rights.
      Specified by:
      validate in class AccessControl
    • getCanCreate

      public boolean getCanCreate()
      Returns whether new Dispatch routes can be created.
      Returns:
      TRUE if new routes can be created, otherwise FALSE
    • getCanView

      public boolean getCanView()
      Returns whether the dispatch data can be viewed.
      Returns:
      TRUE if it can be viewed, otherwise FALSE
    • getCanDisable

      public boolean getCanDisable()
      Returns whether the Dispatch route can be disabled.
      Returns:
      TRUE if it can be disabled, otherwise FALSE
    • getCanDelete

      public boolean getCanDelete()
      Returns whether the dispatch data can be deleted.
      Returns:
      TRUE if it can be deleted, otherwise FALSE