Class SecuredListAction

All Implemented Interfaces:
Action, Action.HasPrimaryState, Action.HasSecurityConstraint, Action.HasTarget, Action.SecuredAction
Direct Known Subclasses:
AssignToUsersAction, BulkEditAction, ChangePasswordAction, EditAction, ExcludeAction, ItemOrderableAction, ItemTrackingAction, RelatedAction, RemoveAction, ResetPasswordAction, ShowEntityInfoAction, ShowRoleAssignmentsAction, ShowUserSubstitutionsAction, ViewAction

public abstract class SecuredListAction extends ListAction implements Action.HasSecurityConstraint
Action that changes its enabled property depending on a selected item in a bound ListComponent.
  • Field Details

    • constraintEntityOp

      protected EntityOp constraintEntityOp
    • accessManager

      protected AccessManager accessManager
    • metadata

      protected Metadata metadata
    • applicationContext

      protected org.springframework.context.ApplicationContext applicationContext
  • Constructor Details

    • SecuredListAction

      protected SecuredListAction(String id)
    • SecuredListAction

      public SecuredListAction(String id, @Nullable String shortcut)
  • Method Details

    • setAccessManager

      @Autowired protected void setAccessManager(AccessManager accessManager)
    • setMetadata

      @Autowired protected void setMetadata(Metadata metadata)
    • setApplicationContext

      @Autowired protected void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
    • isApplicable

      protected boolean isApplicable()
      Description copied from class: BaseAction
      Callback method which is invoked by the action to determine its enabled state.
      Overrides:
      isApplicable in class BaseAction
      Returns:
      true if the action is enabled for the current context, e.g. there is a selected row in a table
    • isPermitted

      protected boolean isPermitted()
      Description copied from class: BaseAction
      Callback method which is invoked by the action to determine its enabled state.
      Overrides:
      isPermitted in class BaseAction
      Returns:
      true if the action is enabled for the current user
    • setConstraintEntityOp

      public void setConstraintEntityOp(@Nullable EntityOp entityOp)
      Specified by:
      setConstraintEntityOp in interface Action.HasSecurityConstraint
    • getConstraintEntityOp

      @Nullable public EntityOp getConstraintEntityOp()
      Specified by:
      getConstraintEntityOp in interface Action.HasSecurityConstraint