public class CategoryServiceImpl extends Object implements org.bonitasoft.engine.core.category.CategoryService
| Constructor and Description |
|---|
CategoryServiceImpl(org.bonitasoft.engine.persistence.ReadPersistenceService persistenceService,
org.bonitasoft.engine.recorder.Recorder recorder,
org.bonitasoft.engine.events.EventService eventService,
SessionService sessionService,
org.bonitasoft.engine.sessionaccessor.ReadSessionAccessor sessionAccessor,
org.bonitasoft.engine.services.QueriableLoggerService queriableLoggerService) |
| Modifier and Type | Method and Description |
|---|---|
void |
addProcessDefinitionsToCategory(long categoryId,
List<Long> processDefinitionIds) |
void |
addProcessDefinitionToCategory(long categoryId,
long processDefinitionId) |
org.bonitasoft.engine.core.category.model.SCategory |
createCategory(String name,
String description) |
void |
deleteCategory(long categoryId) |
long |
deleteProcessCategoryMappings(List<org.bonitasoft.engine.core.category.model.SProcessCategoryMapping> mappings) |
List<org.bonitasoft.engine.core.category.model.SCategory> |
getCategories(int fromIndex,
int numberOfCategories,
String field,
org.bonitasoft.engine.persistence.OrderByType order) |
List<org.bonitasoft.engine.core.category.model.SCategory> |
getCategoriesOfProcessDefinition(long processDefinitionId,
int fromIndex,
int numberOfCategories,
org.bonitasoft.engine.persistence.OrderByType order) |
List<org.bonitasoft.engine.core.category.model.SCategory> |
getCategoriesUnrelatedToProcessDefinition(long processDefinitionId,
int fromIndex,
int numberOfCategories,
org.bonitasoft.engine.persistence.OrderByType order) |
org.bonitasoft.engine.core.category.model.SCategory |
getCategory(long id) |
org.bonitasoft.engine.core.category.model.SCategory |
getCategoryByName(String name) |
long |
getNumberOfCategories() |
long |
getNumberOfCategoriesOfProcess(long processDefinitionId) |
long |
getNumberOfCategoriesUnrelatedToProcess(long processDefinitionId) |
long |
getNumberOfCategorizedProcessIds(List<Long> processIds) |
long |
getNumberOfProcessDeploymentInfosOfCategory(long categoryId) |
void |
removeCategoriesFromProcessDefinition(long processDefinitionId,
List<Long> categoryIds) |
List<org.bonitasoft.engine.core.category.model.SProcessCategoryMapping> |
searchProcessCategoryMappings(org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
void |
updateCategory(long categoryId,
org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor descriptor) |
public CategoryServiceImpl(org.bonitasoft.engine.persistence.ReadPersistenceService persistenceService,
org.bonitasoft.engine.recorder.Recorder recorder,
org.bonitasoft.engine.events.EventService eventService,
SessionService sessionService,
org.bonitasoft.engine.sessionaccessor.ReadSessionAccessor sessionAccessor,
org.bonitasoft.engine.services.QueriableLoggerService queriableLoggerService)
public org.bonitasoft.engine.core.category.model.SCategory createCategory(String name, String description) throws org.bonitasoft.engine.core.category.exception.SCategoryAlreadyExistsException, org.bonitasoft.engine.core.category.exception.SCategoryCreationException
createCategory in interface org.bonitasoft.engine.core.category.CategoryServiceorg.bonitasoft.engine.core.category.exception.SCategoryAlreadyExistsExceptionorg.bonitasoft.engine.core.category.exception.SCategoryCreationExceptionpublic org.bonitasoft.engine.core.category.model.SCategory getCategory(long id)
throws org.bonitasoft.engine.core.category.exception.SCategoryNotFoundException
getCategory in interface org.bonitasoft.engine.core.category.CategoryServiceorg.bonitasoft.engine.core.category.exception.SCategoryNotFoundExceptionpublic org.bonitasoft.engine.core.category.model.SCategory getCategoryByName(String name) throws org.bonitasoft.engine.core.category.exception.SCategoryNotFoundException
getCategoryByName in interface org.bonitasoft.engine.core.category.CategoryServiceorg.bonitasoft.engine.core.category.exception.SCategoryNotFoundExceptionpublic void updateCategory(long categoryId,
org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor descriptor)
throws org.bonitasoft.engine.core.category.exception.SCategoryException
updateCategory in interface org.bonitasoft.engine.core.category.CategoryServiceorg.bonitasoft.engine.core.category.exception.SCategoryExceptionpublic void deleteCategory(long categoryId)
throws org.bonitasoft.engine.core.category.exception.SCategoryNotFoundException,
org.bonitasoft.engine.core.category.exception.SCategoryDeletionException
deleteCategory in interface org.bonitasoft.engine.core.category.CategoryServiceorg.bonitasoft.engine.core.category.exception.SCategoryNotFoundExceptionorg.bonitasoft.engine.core.category.exception.SCategoryDeletionExceptionpublic long getNumberOfCategories()
throws org.bonitasoft.engine.core.category.exception.SCategoryException
getNumberOfCategories in interface org.bonitasoft.engine.core.category.CategoryServiceorg.bonitasoft.engine.core.category.exception.SCategoryExceptionpublic List<org.bonitasoft.engine.core.category.model.SCategory> getCategories(int fromIndex, int numberOfCategories, String field, org.bonitasoft.engine.persistence.OrderByType order) throws org.bonitasoft.engine.core.category.exception.SCategoryException
getCategories in interface org.bonitasoft.engine.core.category.CategoryServiceorg.bonitasoft.engine.core.category.exception.SCategoryExceptionpublic void addProcessDefinitionToCategory(long categoryId,
long processDefinitionId)
throws org.bonitasoft.engine.core.category.exception.SCategoryException
addProcessDefinitionToCategory in interface org.bonitasoft.engine.core.category.CategoryServiceorg.bonitasoft.engine.core.category.exception.SCategoryExceptionpublic void addProcessDefinitionsToCategory(long categoryId,
List<Long> processDefinitionIds)
throws org.bonitasoft.engine.core.category.exception.SCategoryException
addProcessDefinitionsToCategory in interface org.bonitasoft.engine.core.category.CategoryServiceorg.bonitasoft.engine.core.category.exception.SCategoryExceptionpublic long getNumberOfCategoriesOfProcess(long processDefinitionId)
throws org.bonitasoft.engine.core.category.exception.SCategoryException
getNumberOfCategoriesOfProcess in interface org.bonitasoft.engine.core.category.CategoryServiceorg.bonitasoft.engine.core.category.exception.SCategoryExceptionpublic long getNumberOfCategoriesUnrelatedToProcess(long processDefinitionId)
throws org.bonitasoft.engine.core.category.exception.SCategoryException
getNumberOfCategoriesUnrelatedToProcess in interface org.bonitasoft.engine.core.category.CategoryServiceorg.bonitasoft.engine.core.category.exception.SCategoryExceptionpublic List<org.bonitasoft.engine.core.category.model.SCategory> getCategoriesOfProcessDefinition(long processDefinitionId, int fromIndex, int numberOfCategories, org.bonitasoft.engine.persistence.OrderByType order) throws org.bonitasoft.engine.core.category.exception.SCategoryException
getCategoriesOfProcessDefinition in interface org.bonitasoft.engine.core.category.CategoryServiceorg.bonitasoft.engine.core.category.exception.SCategoryExceptionpublic List<org.bonitasoft.engine.core.category.model.SCategory> getCategoriesUnrelatedToProcessDefinition(long processDefinitionId, int fromIndex, int numberOfCategories, org.bonitasoft.engine.persistence.OrderByType order) throws org.bonitasoft.engine.core.category.exception.SCategoryException
getCategoriesUnrelatedToProcessDefinition in interface org.bonitasoft.engine.core.category.CategoryServiceorg.bonitasoft.engine.core.category.exception.SCategoryExceptionpublic void removeCategoriesFromProcessDefinition(long processDefinitionId,
List<Long> categoryIds)
throws org.bonitasoft.engine.core.category.exception.SCategoryException
removeCategoriesFromProcessDefinition in interface org.bonitasoft.engine.core.category.CategoryServiceorg.bonitasoft.engine.core.category.exception.SCategoryExceptionpublic List<org.bonitasoft.engine.core.category.model.SProcessCategoryMapping> searchProcessCategoryMappings(org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
searchProcessCategoryMappings in interface org.bonitasoft.engine.core.category.CategoryServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic long deleteProcessCategoryMappings(List<org.bonitasoft.engine.core.category.model.SProcessCategoryMapping> mappings)
deleteProcessCategoryMappings in interface org.bonitasoft.engine.core.category.CategoryServicepublic long getNumberOfCategorizedProcessIds(List<Long> processIds) throws org.bonitasoft.engine.core.category.exception.SCategoryException
getNumberOfCategorizedProcessIds in interface org.bonitasoft.engine.core.category.CategoryServiceorg.bonitasoft.engine.core.category.exception.SCategoryExceptionpublic long getNumberOfProcessDeploymentInfosOfCategory(long categoryId)
throws org.bonitasoft.engine.persistence.SBonitaReadException
getNumberOfProcessDeploymentInfosOfCategory in interface org.bonitasoft.engine.core.category.CategoryServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionCopyright © 2014 Bonitasoft S.A.. All rights reserved.