Interface IManualActionPrerequisiteService

  • All Superinterfaces:
    fr.paris.lutece.plugins.workflowcore.service.prerequisite.IAutomaticActionPrerequisiteService

    public interface IManualActionPrerequisiteService
    extends fr.paris.lutece.plugins.workflowcore.service.prerequisite.IAutomaticActionPrerequisiteService
    Interface for prerequisite services of manual actions.
    Before displaying an action, every prerequisite of the action are checked. If one of them failed, the action is not displayed.

    Implementations of this interface must be declared as Spring beans.
    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default boolean canManualActionBePerformed​(fr.paris.lutece.api.user.User user, int nIdResource, String strResourceType, fr.paris.lutece.plugins.workflowcore.business.prerequisite.IPrerequisiteConfig config, int nIdAction)
      Check if a resource matches this prerequisite.
      • Methods inherited from interface fr.paris.lutece.plugins.workflowcore.service.prerequisite.IAutomaticActionPrerequisiteService

        canActionBePerformed, getConfigHtml, getConfigurationDaoBeanName, getEmptyConfiguration, getPrerequisiteType, getTitleI18nKey, hasConfiguration
    • Method Detail

      • canManualActionBePerformed

        default boolean canManualActionBePerformed​(fr.paris.lutece.api.user.User user,
                                                   int nIdResource,
                                                   String strResourceType,
                                                   fr.paris.lutece.plugins.workflowcore.business.prerequisite.IPrerequisiteConfig config,
                                                   int nIdAction)
        Check if a resource matches this prerequisite.
        Parameters:
        user - The user trying to do the action
        nIdResource - The id of the resource
        strResourceType - The resource type
        config - The configuration of the prerequisite, or null if the prerequisite has no configuration
        nIdAction - The id of the action that will be performed if the resource matches every prerequisites
        Returns:
        True if the resource matches this prerequisite, false otherwise