Interface DocumentTemplateService
- All Superinterfaces:
BaseFinder<DocumentTemplateTable, Long>, EditableService<DocumentTemplateTable, Long>
KROTKI OPIS...
- Author:
- Marek MastyĆo 11-08-2013
-
Method Summary
Modifier and TypeMethodDescriptionaddDocumentTemplate(DocumentTemplateTable documentTemplate) addDocumentTemplate(String templateName, String processId, InputStream inputStream, String fileName) getAllDocumentTemplatesForProcess(String processDefId) Returns the document template with the given non-guessable identifier.getByNameAndProcess(String name, String processDefinitionId, String... joins) longgetDocumentTemplatesCountForProcess(String processId) getDocumentTemplatesForProcess(String processId, int start, int limit, String sortBy, SortDirection sortDirection) voidupdateDocumentTemplate(DocumentTemplateTable documentTemplate) voidupdateDocumentTemplate(Long templateId, String templateName, InputStream inputStream, String fileName) Methods inherited from interface BaseFinder
count, countAll, findByCriteria, findByCriteria, findByProperty, findOne, findOneByProperty, get, get, getAll, getAll, getCountedResult, getCountedResult, scrollByCriteria, scrollByCriteriaMethods inherited from interface EditableService
delete, save, update
-
Method Details
-
getByName
-
getByNameAndProcess
-
getByGuid
Returns the document template with the given non-guessable identifier.- Parameters:
guid- template identifier used in the template file download address- Returns:
- the template, or empty if no template has this identifier
-
getAllDocumentTemplatesForProcess
-
getDocumentTemplatesForProcess
List<DocumentTemplateTable> getDocumentTemplatesForProcess(String processId, int start, int limit, String sortBy, SortDirection sortDirection) -
getDocumentTemplatesCountForProcess
-
addDocumentTemplate
-
addDocumentTemplate
Long addDocumentTemplate(String templateName, String processId, InputStream inputStream, String fileName) throws IOException - Throws:
IOException
-
updateDocumentTemplate
-
updateDocumentTemplate
void updateDocumentTemplate(Long templateId, String templateName, InputStream inputStream, String fileName) throws IOException - Throws:
IOException
-