Class DetachFileAction


  • public class DetachFileAction
    extends AbstractAction
    Detaches a file from an inventory object and deletes it from the file system.
    Author:
    Charles Edward Bedon Cortazar <charles.bedon@kuwaiba.org>
    • Field Detail

      • PARAM_FILE_OBJECT_ID

        public static String PARAM_FILE_OBJECT_ID
        The id of the attachment to be removed.
      • PARAM_CLASS_NAME

        public static String PARAM_CLASS_NAME
        The class name of the object the attachment is related to.
      • PARAM_OBJECT_ID

        public static String PARAM_OBJECT_ID
        The id of the object the attachment is related to.
    • Constructor Detail

      • DetachFileAction

        public DetachFileAction()
    • Method Detail

      • init

        @PostConstruct
        protected void init()
      • getRequiredAccessLevel

        public int getRequiredAccessLevel()
        Description copied from class: AbstractAction
        Returns the privilege needed to execute the current action. This access level should be matched with the permissions granted to the user and the renderer must decide if it will gray-out the action or simply not show it.
        Specified by:
        getRequiredAccessLevel in class AbstractAction
        Returns:
        The access level needed to execute this action. See Privilege.ACCESS_LEVEL_XXX for possible values.
      • requiresConfirmation

        public boolean requiresConfirmation()
        Description copied from class: AbstractAction
        Does this action requires confirmation before executing it? This is typically true for actions that will delete or otherwise dispose of some resources. The consumer of the action might ignore this flag and simply execute the action.
        Specified by:
        requiresConfirmation in class AbstractAction
        Returns: