Class HibernateWorkflowTemplateDAO

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      WorkflowTemplate createFromFile​(File file)
      De-serialize a template from a file
      boolean deploy​(WorkflowTemplate wfTemplate)
      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 findById​(long id)  
      WorkflowTemplate findByName​(long tenantId, String name)
      This method finds a workflow template by name
      • Methods inherited from class com.logicaldoc.core.HibernatePersistentObjectDAO

        bulkUpdate, delete, delete, deleteAll, deleteAll, findAll, findAll, findAllIds, findAllIds, findById, findByObjectQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, getSessionFactory, initialize, isOracle, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForObject, queryForRowSet, queryForString, setSessionFactory, store
      • Methods inherited from interface com.logicaldoc.core.PersistentObjectDAO

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

      • findById

        public WorkflowTemplate findById​(long id)
        Specified by:
        findById in interface com.logicaldoc.core.PersistentObjectDAO<WorkflowTemplate>
        Overrides:
        findById in class com.logicaldoc.core.HibernatePersistentObjectDAO<WorkflowTemplate>
      • deploy

        public boolean deploy​(WorkflowTemplate wfTemplate)
                       throws com.logicaldoc.core.PersistenceException
        Description copied from interface: WorkflowTemplateDAO
        This method deploys the given persistence workflow template that is it copies the draft scheme in the currently used scheme.
        Specified by:
        deploy in interface WorkflowTemplateDAO
        Parameters:
        wfTemplate - The persistence workflow template
        Returns:
        true if the template has been correctly deployed
        Throws:
        com.logicaldoc.core.PersistenceException - error in the database