Package org.jppf.admin.web.utils
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 TypeMethodDescriptionbooleanDetermine wehtehr this action is autothorized.booleanvoidsetAuthorized(org.apache.wicket.authroles.authorization.strategies.role.Roles roles) Determine wehtehr this action is autothorized for the specified roles.voidsetEnabled(List<DefaultMutableTreeNode> selected) Compute the enabled stated of this action.
-
Method Details
-
isEnabled
boolean isEnabled()- Returns:
- whether this action is enabled.
-
setEnabled
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:
trueif this action is authroized,falseotherwise.
-
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.
-