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.
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
Modifier and TypeMethodDescriptiondefault booleancanManualActionBePerformed(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 Details
-
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 actionnIdResource- The id of the resourcestrResourceType- The resource typeconfig- The configuration of the prerequisite, or null if the prerequisite has no configurationnIdAction- 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
-