Interface WorkflowPersistenceTemplateDAO

    • Method Detail

      • save

        boolean save​(WorkflowPersistenceTemplate persistenceTemplate,
                     WorkflowPersistenceTemplateDAO.WORKFLOW_STAGE workflow_stage)
        This method saves the persistence workflow template with the given workflow stage.
        Parameters:
        persistenceTemplate - The persistence workflow template to be saved
        workflow_stage - The workflow stage
        Returns:
        true if the template has been correctly saved
      • delete

        boolean delete​(WorkflowPersistenceTemplate persistenceTemplate)
        This method deletes the given persistence workflow template.
        Parameters:
        persistenceTemplate - The persistence workflow template to be deleted
        Returns:
        true if the template has been correctly deleted
      • load

        WorkflowPersistenceTemplate load​(long tenantId,
                                         String name,
                                         WorkflowPersistenceTemplateDAO.WORKFLOW_STAGE workflow_stage)
        This method loads the persistence workflow template with the given name and with the given workflow stage.
        Parameters:
        tenantId - The persistence workflow template tenant
        name - The persistence workflow template name
        workflow_stage - The workflow stage
        Returns:
        The persistence workflow template
      • deploy

        boolean deploy​(WorkflowPersistenceTemplate persistenceTemplate)
                throws com.logicaldoc.core.PersistenceException
        This method stores the given persistence workflow template
        Parameters:
        persistenceTemplate - The persistence workflow template
        Returns:
        true if the template has been correctly deployed
        Throws:
        com.logicaldoc.core.PersistenceException - error in the database
      • findAllDeployed

        List<WorkflowPersistenceTemplate> findAllDeployed​(Long tenantId)
        This method loads all the workflow already deployed
        Parameters:
        tenantId - optional tenant specification
        Returns:
        list of persistence workflow template
      • findByName

        WorkflowPersistenceTemplate findByName​(long tenantId,
                                               String name)
        This method finds a workflow template by name
        Parameters:
        tenantId - identifier of the tenant
        name - name of the workflow template
        Returns:
        WorkflowPersistenceTemplate with given name
      • read

        WorkflowPersistenceTemplate read​(File file)
        De-serialize a template from a file
        Parameters:
        file - the file storing the template
        Returns:
        object representation of the template