public abstract class AbstractDependencyService extends Object implements org.bonitasoft.engine.dependency.DependencyService
| Modifier and Type | Field and Description |
|---|---|
protected static int |
BATCH_SIZE |
| Constructor and Description |
|---|
AbstractDependencyService(org.bonitasoft.engine.service.BroadcastService broadcastService,
org.bonitasoft.engine.transaction.UserTransactionService userTransactionService,
org.bonitasoft.engine.persistence.ReadPersistenceService persistenceService) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
createDependencyMapping(org.bonitasoft.engine.dependency.model.SDependencyMapping dependencyMapping) |
protected abstract void |
delete(org.bonitasoft.engine.dependency.model.SDependency dependency) |
void |
deleteDependencies(long id,
org.bonitasoft.engine.dependency.model.ScopeType type) |
void |
deleteDependency(org.bonitasoft.engine.dependency.model.SDependency dependency) |
void |
deleteDependency(String name) |
protected abstract void |
deleteDependencyMapping(org.bonitasoft.engine.dependency.model.SDependencyMapping dependencyMapping) |
protected abstract org.bonitasoft.engine.persistence.QueryOptions |
getDefaultQueryOptionForDependencyMapping() |
protected abstract List<org.bonitasoft.engine.dependency.model.SDependency> |
getDependencies(org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
protected Map<String,byte[]> |
getDependenciesResources(org.bonitasoft.engine.dependency.model.ScopeType type,
long id) |
protected abstract org.bonitasoft.engine.dependency.model.SDependency |
getDependency(String name) |
List<Long> |
getDependencyIds(long artifactId,
org.bonitasoft.engine.dependency.model.ScopeType artifactType,
int startIndex,
int maxResult) |
protected abstract List<org.bonitasoft.engine.dependency.model.SDependencyMapping> |
getDependencyMappings(long dependencyId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
protected abstract AbstractRefreshClassLoaderTask |
getRefreshClassLoaderTask(org.bonitasoft.engine.dependency.model.ScopeType type,
long id) |
protected abstract org.bonitasoft.engine.persistence.SelectListDescriptor<Long> |
getSelectDescriptorForDependencyIds(org.bonitasoft.engine.persistence.QueryOptions queryOptions,
Map<String,Object> parameters) |
protected abstract Long |
getTenantId() |
void |
refreshClassLoaderAfterUpdate(org.bonitasoft.engine.dependency.model.ScopeType type,
long id) |
protected static final int BATCH_SIZE
public AbstractDependencyService(org.bonitasoft.engine.service.BroadcastService broadcastService,
org.bonitasoft.engine.transaction.UserTransactionService userTransactionService,
org.bonitasoft.engine.persistence.ReadPersistenceService persistenceService)
protected abstract void delete(org.bonitasoft.engine.dependency.model.SDependency dependency)
throws org.bonitasoft.engine.dependency.SDependencyDeletionException
org.bonitasoft.engine.dependency.SDependencyDeletionExceptionprotected abstract List<org.bonitasoft.engine.dependency.model.SDependency> getDependencies(org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.dependency.SDependencyException
org.bonitasoft.engine.dependency.SDependencyExceptionprotected abstract org.bonitasoft.engine.dependency.model.SDependency getDependency(String name) throws org.bonitasoft.engine.dependency.SDependencyNotFoundException, org.bonitasoft.engine.dependency.SDependencyDeletionException
org.bonitasoft.engine.dependency.SDependencyNotFoundExceptionorg.bonitasoft.engine.dependency.SDependencyDeletionExceptionpublic void deleteDependency(String name) throws org.bonitasoft.engine.dependency.SDependencyException
deleteDependency in interface org.bonitasoft.engine.dependency.DependencyServiceorg.bonitasoft.engine.dependency.SDependencyExceptionpublic void refreshClassLoaderAfterUpdate(org.bonitasoft.engine.dependency.model.ScopeType type,
long id)
throws org.bonitasoft.engine.dependency.SDependencyException
refreshClassLoaderAfterUpdate in interface org.bonitasoft.engine.dependency.DependencyServiceorg.bonitasoft.engine.dependency.SDependencyExceptionprotected abstract AbstractRefreshClassLoaderTask getRefreshClassLoaderTask(org.bonitasoft.engine.dependency.model.ScopeType type, long id)
protected Map<String,byte[]> getDependenciesResources(org.bonitasoft.engine.dependency.model.ScopeType type, long id) throws org.bonitasoft.engine.dependency.SDependencyException
org.bonitasoft.engine.dependency.SDependencyExceptionprotected abstract Long getTenantId() throws org.bonitasoft.engine.sessionaccessor.STenantIdNotSetException
org.bonitasoft.engine.sessionaccessor.STenantIdNotSetExceptionprotected abstract void createDependencyMapping(org.bonitasoft.engine.dependency.model.SDependencyMapping dependencyMapping)
throws org.bonitasoft.engine.dependency.SDependencyException
org.bonitasoft.engine.dependency.SDependencyExceptionprotected abstract void deleteDependencyMapping(org.bonitasoft.engine.dependency.model.SDependencyMapping dependencyMapping)
throws org.bonitasoft.engine.dependency.SDependencyException
org.bonitasoft.engine.dependency.SDependencyExceptionprotected abstract List<org.bonitasoft.engine.dependency.model.SDependencyMapping> getDependencyMappings(long dependencyId, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.dependency.SDependencyException
org.bonitasoft.engine.dependency.SDependencyExceptionpublic List<Long> getDependencyIds(long artifactId, org.bonitasoft.engine.dependency.model.ScopeType artifactType, int startIndex, int maxResult) throws org.bonitasoft.engine.dependency.SDependencyException
getDependencyIds in interface org.bonitasoft.engine.dependency.DependencyServiceorg.bonitasoft.engine.dependency.SDependencyExceptionprotected abstract org.bonitasoft.engine.persistence.SelectListDescriptor<Long> getSelectDescriptorForDependencyIds(org.bonitasoft.engine.persistence.QueryOptions queryOptions, Map<String,Object> parameters)
protected abstract org.bonitasoft.engine.persistence.QueryOptions getDefaultQueryOptionForDependencyMapping()
public void deleteDependency(org.bonitasoft.engine.dependency.model.SDependency dependency)
throws org.bonitasoft.engine.dependency.SDependencyException
deleteDependency in interface org.bonitasoft.engine.dependency.DependencyServiceorg.bonitasoft.engine.dependency.SDependencyExceptionpublic void deleteDependencies(long id,
org.bonitasoft.engine.dependency.model.ScopeType type)
throws org.bonitasoft.engine.dependency.SDependencyException
deleteDependencies in interface org.bonitasoft.engine.dependency.DependencyServiceorg.bonitasoft.engine.dependency.SDependencyExceptionCopyright © 2016 Bonitasoft S.A.. All rights reserved.