Interface WorkflowTemplateDAO

  • All Superinterfaces:
    com.logicaldoc.core.PersistentObjectDAO<WorkflowTemplate>
    All Known Implementing Classes:
    HibernateWorkflowTemplateDAO

    public interface WorkflowTemplateDAO
    extends com.logicaldoc.core.PersistentObjectDAO<WorkflowTemplate>
    DAO for Persistent WorkFlow Templates handling.
    Since:
    5.0
    Author:
    Sebastian Wenzky, Matteo Caruso - LogicalDOC
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      WorkflowTemplate createFromFile​(File file)
      De-serialize a template from a file
      boolean deploy​(WorkflowTemplate persistenceTemplate)
      This method deploys the given persistence workflow template that is it copies the draft scheme in the currently used scheme.
      List<WorkflowTemplate> findAllDeployed​(Long tenantId)
      This method loads all the workflow already deployed
      WorkflowTemplate findByName​(long tenantId, String name)
      This method finds a workflow template by name
      • Methods inherited from interface com.logicaldoc.core.PersistentObjectDAO

        bulkUpdate, delete, delete, deleteAll, deleteAll, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, initialize, isOracle, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForObject, queryForRowSet, queryForString, store
    • Method Detail

      • deploy

        boolean deploy​(WorkflowTemplate persistenceTemplate)
                throws com.logicaldoc.core.PersistenceException
        This method deploys the given persistence workflow template that is it copies the draft scheme in the currently used scheme.
        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<WorkflowTemplate> findAllDeployed​(Long tenantId)
        This method loads all the workflow already deployed
        Parameters:
        tenantId - optional tenant specification
        Returns:
        list of persistence workflow template
      • findByName

        WorkflowTemplate 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:
        WorkflowTemplate with given name
      • createFromFile

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