Interface UpdatableAction

All Known Implementing Classes:
AbstractAdminRoleAction, AbstractManagerRoleAction, AbstractUpdatableAction, CancelJobLink.Action, CancelPendingActionLink.Action, DriverStopRestartAction, GCLink.Action, HeapDumpLink.Action, LoadBalancingAction, LoadBalancingLink.Action, MaxNodesAction, NodeConfigAction, NodeThreadsAction, PriorityAction, ProvisioningAction, ResetTaskCounterLink.Action, ResumeJobLink.Action, ServerResetStatsLink.Action, StopRestartNodeLink.Action, SuspendJobLink.Action, SuspendNodeLink.Action, SystemInfoAction, ThreadDumpAction, ThresholdsAction

public interface UpdatableAction
Interface for actions whose enabled state can be updated based on the elements selected in a tree.
Author:
Laurent Cohen
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Determine wehtehr this action is autothorized.
    boolean
     
    void
    setAuthorized(org.apache.wicket.authroles.authorization.strategies.role.Roles roles)
    Determine wehtehr this action is autothorized for the specified roles.
    void
    Compute the enabled stated of this action.
  • Method Details

    • isEnabled

      boolean isEnabled()
      Returns:
      whether this action is enabled.
    • setEnabled

      void setEnabled(List<DefaultMutableTreeNode> selected)
      Compute the enabled stated of this action.
      Parameters:
      selected - a list of the selected elements, in depth-first traversal order of the tree model.
    • isAuthorized

      boolean isAuthorized()
      Determine wehtehr this action is autothorized.
      Returns:
      true if this action is authroized, false otherwise.
    • setAuthorized

      void setAuthorized(org.apache.wicket.authroles.authorization.strategies.role.Roles roles)
      Determine wehtehr this action is autothorized for the specified roles.
      Parameters:
      roles - the roles to check for authorization.