public class PlatformDependencyServiceImpl extends AbstractDependencyService
BATCH_SIZEDEPENDENCY, DEPENDENCYMAPPING| Constructor and Description |
|---|
PlatformDependencyServiceImpl(org.bonitasoft.engine.services.PersistenceService platformPersistenceService,
org.bonitasoft.engine.classloader.ClassLoaderService classLoaderService,
org.bonitasoft.engine.service.BroadcastService broadcastService,
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) |
protected 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 PlatformDependencyServiceImpl(org.bonitasoft.engine.services.PersistenceService platformPersistenceService,
org.bonitasoft.engine.classloader.ClassLoaderService classLoaderService,
org.bonitasoft.engine.service.BroadcastService broadcastService,
UserTransactionService userTransactionService)
public List<SDependency> getDependencies(Collection<Long> ids) throws SDependencyException
DependencyServiceids - Identifiers of dependenciesSDependencyExceptionprotected void delete(SDependency dependency) throws SDependencyDeletionException
delete in class AbstractDependencyServiceSDependencyDeletionExceptionprotected List<SDependency> getDependencies(org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws SDependencyException
getDependencies in class AbstractDependencyServiceSDependencyExceptionpublic SDependency getDependency(long id) throws SDependencyNotFoundException
DependencyServiceid - Identifier of dependencySDependencyNotFoundException - Error thrown if no dependency have an id corresponding to the parameter.protected SDependency getDependency(String name) throws SDependencyNotFoundException
getDependency in class AbstractDependencyServiceSDependencyNotFoundExceptionprotected void createDependencyMapping(SDependencyMapping dependencyMapping) throws SDependencyException
createDependencyMapping in class AbstractDependencyServiceSDependencyExceptionprotected void deleteDependencyMapping(SDependencyMapping dependencyMapping) throws SDependencyException
deleteDependencyMapping in class AbstractDependencyServiceSDependencyExceptionpublic List<SDependencyMapping> getDependencyMappings(org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws SDependencyException
DependencyServicequeryOptions - QueryOptions object, it contains some query conditions.SDependencyExceptionprotected List<SDependencyMapping> getDependencyMappings(long dependencyId, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws SDependencyException
getDependencyMappings in class AbstractDependencyServiceSDependencyExceptionprotected org.bonitasoft.engine.persistence.SelectListDescriptor<Long> getSelectDescriptorForDependencyIds(org.bonitasoft.engine.persistence.QueryOptions queryOptions, Map<String,Object> parameters)
getSelectDescriptorForDependencyIds in class AbstractDependencyServicepublic SDependency createMappedDependency(String name, byte[] jarContent, String fileName, long artifactId, ScopeType scopeType) throws SDependencyException
SDependencyExceptionpublic SDependency getDependencyOfArtifact(long artifactId, ScopeType artifactType, String fileName)
public Optional<Long> getIdOfDependencyOfArtifact(Long artifactId, ScopeType artifactType, String fileName) throws org.bonitasoft.engine.persistence.SBonitaReadException
org.bonitasoft.engine.persistence.SBonitaReadExceptionprotected org.bonitasoft.engine.persistence.QueryOptions getDefaultQueryOptionForDependencyMapping()
getDefaultQueryOptionForDependencyMapping in class AbstractDependencyServiceprotected AbstractRefreshClassLoaderTask getRefreshClassLoaderTask(ScopeType type, long id)
getRefreshClassLoaderTask in class AbstractDependencyServiceprotected Long getTenantId() throws STenantIdNotSetException
getTenantId in class AbstractDependencyServiceSTenantIdNotSetExceptionpublic void refreshClassLoader(ScopeType type, long id) throws SDependencyException
DependencyServiceSDependencyExceptionpublic SDependency updateDependencyOfArtifact(String name, byte[] jarContent, String fileName, long artifactId, ScopeType scopeType) throws SDependencyException
SDependencyExceptionCopyright © 2018 Bonitasoft S.A.. All rights reserved.