public abstract class AbstractDependencyService extends Object implements DependencyService
| Modifier and Type | Field and Description |
|---|---|
protected static int |
BATCH_SIZE |
DEPENDENCY, DEPENDENCYMAPPING| Constructor and Description |
|---|
AbstractDependencyService(org.bonitasoft.engine.service.BroadcastService broadcastService,
UserTransactionService userTransactionService,
org.bonitasoft.engine.persistence.ReadPersistenceService persistenceService) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
createDependencyMapping(SDependencyMapping dependencyMapping) |
protected abstract void |
delete(SDependency dependency) |
void |
deleteDependencies(long id,
ScopeType type) |
void |
deleteDependency(SDependency dependency)
Delete the specific dependency
|
void |
deleteDependency(String name)
Delete the dependency specified by name
|
protected abstract void |
deleteDependencyMapping(SDependencyMapping dependencyMapping) |
protected abstract org.bonitasoft.engine.persistence.QueryOptions |
getDefaultQueryOptionForDependencyMapping() |
protected abstract List<SDependency> |
getDependencies(org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
protected Map<String,byte[]> |
getDependenciesResources(ScopeType type,
long id) |
protected abstract SDependency |
getDependency(String name) |
List<Long> |
getDependencyIds(long artifactId,
ScopeType artifactType,
int startIndex,
int maxResult)
Get all dependency ids for specific artifact
|
protected abstract List<SDependencyMapping> |
getDependencyMappings(long dependencyId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
protected abstract AbstractRefreshClassLoaderTask |
getRefreshClassLoaderTask(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(ScopeType type,
long id)
Refresh classloader after a dependency update
difference with #refreshClassLoader is that this one is done on all nodes
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateMappedDependency, getDependencies, getDependency, getDependencyMappings, getDependencyOfArtifact, getIdOfDependencyOfArtifact, refreshClassLoader, updateDependencyOfArtifactprotected static final int BATCH_SIZE
public AbstractDependencyService(org.bonitasoft.engine.service.BroadcastService broadcastService,
UserTransactionService userTransactionService,
org.bonitasoft.engine.persistence.ReadPersistenceService persistenceService)
protected abstract void delete(SDependency dependency) throws SDependencyDeletionException
SDependencyDeletionExceptionprotected abstract List<SDependency> getDependencies(org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws SDependencyException
SDependencyExceptionprotected abstract SDependency getDependency(String name) throws SDependencyNotFoundException, SDependencyDeletionException
public void deleteDependency(String name) throws SDependencyException
DependencyServicedeleteDependency in interface DependencyServiceSDependencyNotFoundException - Error thrown if no dependency have a name corresponding to the parameter.SDependencyDeletionException - Error thrown if has exception during the dependency deletion.SDependencyExceptionpublic void refreshClassLoaderAfterUpdate(ScopeType type, long id) throws SDependencyException
DependencyServicerefreshClassLoaderAfterUpdate in interface DependencyServiceSDependencyExceptionprotected abstract AbstractRefreshClassLoaderTask getRefreshClassLoaderTask(ScopeType type, long id)
protected Map<String,byte[]> getDependenciesResources(ScopeType type, long id) throws SDependencyException
SDependencyExceptionprotected abstract Long getTenantId() throws STenantIdNotSetException
STenantIdNotSetExceptionprotected abstract void createDependencyMapping(SDependencyMapping dependencyMapping) throws SDependencyException
SDependencyExceptionprotected abstract void deleteDependencyMapping(SDependencyMapping dependencyMapping) throws SDependencyException
SDependencyExceptionprotected abstract List<SDependencyMapping> getDependencyMappings(long dependencyId, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws SDependencyException
SDependencyExceptionpublic List<Long> getDependencyIds(long artifactId, ScopeType artifactType, int startIndex, int maxResult) throws SDependencyException
DependencyServicegetDependencyIds in interface DependencyServiceartifactId - Identifier of artifactartifactType - Type of artifactSDependencyExceptionprotected 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(SDependency dependency) throws SDependencyException
DependencyServicedeleteDependency in interface DependencyServicedependency - The dependency will be deletedSDependencyNotFoundException - Error thrown if the dependency not found.SDependencyDeletionException - Error thrown if has exception during the dependency deletion.SDependencyExceptionpublic void deleteDependencies(long id,
ScopeType type)
throws SDependencyException
deleteDependencies in interface DependencyServiceSDependencyExceptionCopyright © 2018 Bonitasoft S.A.. All rights reserved.