public class DependencyServiceImpl extends AbstractDependencyService
BATCH_SIZEDEPENDENCY, DEPENDENCYMAPPING| Constructor and Description |
|---|
DependencyServiceImpl(org.bonitasoft.engine.persistence.ReadPersistenceService persistenceService,
Recorder recorder,
EventService eventService,
TechnicalLoggerService logger,
QueriableLoggerService queriableLoggerService,
org.bonitasoft.engine.classloader.ClassLoaderService classLoaderService,
org.bonitasoft.engine.service.BroadcastService broadcastService,
ReadSessionAccessor readSessionAccessor,
UserTransactionService userTransactionService) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createDependencyMapping(SDependencyMapping dependencyMapping) |
SDependency |
createMappedDependency(String name,
byte[] jarContent,
String fileName,
long artifactId,
ScopeType scopeType) |
protected void |
delete(SDependency dependency) |
void |
deleteDependencyMapping(SDependencyMapping dependencyMapping) |
protected org.bonitasoft.engine.persistence.QueryOptions |
getDefaultQueryOptionForDependencyMapping() |
List<SDependency> |
getDependencies(Collection<Long> ids)
Get dependencies for the specified ids
|
protected List<SDependency> |
getDependencies(org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
SDependency |
getDependency(long id)
Get dependency by its id
|
protected SDependency |
getDependency(String name) |
protected List<SDependencyMapping> |
getDependencyMappings(long dependencyId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
List<SDependencyMapping> |
getDependencyMappings(org.bonitasoft.engine.persistence.QueryOptions queryOptions)
Get all dependencyMappings for specific the queryOptions
|
SDependency |
getDependencyOfArtifact(long artifactId,
ScopeType artifactType,
String fileName) |
Optional<Long> |
getIdOfDependencyOfArtifact(Long artifactId,
ScopeType artifactType,
String fileName) |
protected AbstractRefreshClassLoaderTask |
getRefreshClassLoaderTask(ScopeType type,
long id) |
protected org.bonitasoft.engine.persistence.SelectListDescriptor<Long> |
getSelectDescriptorForDependencyIds(org.bonitasoft.engine.persistence.QueryOptions queryOptions,
Map<String,Object> parameters) |
protected Long |
getTenantId() |
void |
refreshClassLoader(ScopeType type,
long id)
refresh classloader on this node only
|
SDependency |
updateDependencyOfArtifact(String name,
byte[] jarContent,
String fileName,
long artifactId,
ScopeType scopeType) |
deleteDependencies, deleteDependency, deleteDependency, getDependenciesResources, getDependencyIds, refreshClassLoaderAfterUpdatepublic DependencyServiceImpl(org.bonitasoft.engine.persistence.ReadPersistenceService persistenceService,
Recorder recorder,
EventService eventService,
TechnicalLoggerService logger,
QueriableLoggerService queriableLoggerService,
org.bonitasoft.engine.classloader.ClassLoaderService classLoaderService,
org.bonitasoft.engine.service.BroadcastService broadcastService,
ReadSessionAccessor readSessionAccessor,
UserTransactionService userTransactionService)
protected List<SDependency> getDependencies(org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws SDependencyException
getDependencies in class AbstractDependencyServiceSDependencyExceptionprotected SDependency getDependency(String name) throws SDependencyDeletionException, SDependencyNotFoundException
getDependency in class AbstractDependencyServiceSDependencyDeletionExceptionSDependencyNotFoundExceptionprotected AbstractRefreshClassLoaderTask getRefreshClassLoaderTask(ScopeType type, long id)
getRefreshClassLoaderTask in class AbstractDependencyServiceprotected List<SDependencyMapping> getDependencyMappings(long dependencyId, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws SDependencyException
getDependencyMappings in class AbstractDependencyServiceSDependencyExceptionprotected org.bonitasoft.engine.persistence.QueryOptions getDefaultQueryOptionForDependencyMapping()
getDefaultQueryOptionForDependencyMapping in class AbstractDependencyServiceprotected void delete(SDependency dependency) throws SDependencyDeletionException
delete in class AbstractDependencyServiceSDependencyDeletionExceptionpublic void deleteDependencyMapping(SDependencyMapping dependencyMapping) throws SDependencyException
deleteDependencyMapping in class AbstractDependencyServiceSDependencyExceptionpublic List<SDependency> getDependencies(Collection<Long> ids) throws SDependencyException
DependencyServiceids - Identifiers of dependenciesSDependencyExceptionprotected org.bonitasoft.engine.persistence.SelectListDescriptor<Long> getSelectDescriptorForDependencyIds(org.bonitasoft.engine.persistence.QueryOptions queryOptions, Map<String,Object> parameters)
getSelectDescriptorForDependencyIds in class AbstractDependencyServicepublic List<SDependencyMapping> getDependencyMappings(org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws SDependencyException
DependencyServicequeryOptions - QueryOptions object, it contains some query conditions.SDependencyExceptionpublic SDependency getDependency(long id) throws SDependencyNotFoundException
DependencyServiceid - Identifier of dependencySDependencyNotFoundException - Error thrown if no dependency have an id corresponding to the parameter.public void refreshClassLoader(ScopeType type, long id) throws SDependencyException
DependencyServiceSDependencyExceptionprotected Long getTenantId() throws STenantIdNotSetException
getTenantId in class AbstractDependencyServiceSTenantIdNotSetExceptionpublic SDependency createMappedDependency(String name, byte[] jarContent, String fileName, long artifactId, ScopeType scopeType) throws SDependencyException
SDependencyExceptionpublic SDependency updateDependencyOfArtifact(String name, byte[] jarContent, String fileName, long artifactId, ScopeType scopeType) throws SDependencyException
SDependencyExceptionprotected void createDependencyMapping(SDependencyMapping dependencyMapping) throws SDependencyException
createDependencyMapping in class AbstractDependencyServiceSDependencyExceptionpublic SDependency getDependencyOfArtifact(long artifactId, ScopeType artifactType, String fileName) throws org.bonitasoft.engine.persistence.SBonitaReadException
org.bonitasoft.engine.persistence.SBonitaReadExceptionCopyright © 2018 Bonitasoft S.A.. All rights reserved.