public class DependencyServiceImpl extends AbstractDependencyService
BATCH_SIZE| Constructor and Description |
|---|
DependencyServiceImpl(org.bonitasoft.engine.persistence.ReadPersistenceService persistenceService,
org.bonitasoft.engine.recorder.Recorder recorder,
org.bonitasoft.engine.events.EventService eventService,
org.bonitasoft.engine.log.technical.TechnicalLoggerService logger,
org.bonitasoft.engine.services.QueriableLoggerService queriableLoggerService,
org.bonitasoft.engine.classloader.ClassLoaderService classLoaderService,
org.bonitasoft.engine.service.BroadcastService broadcastService,
org.bonitasoft.engine.sessionaccessor.ReadSessionAccessor readSessionAccessor,
org.bonitasoft.engine.transaction.UserTransactionService userTransactionService) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createDependencyMapping(org.bonitasoft.engine.dependency.model.SDependencyMapping dependencyMapping) |
org.bonitasoft.engine.dependency.model.SDependency |
createMappedDependency(String name,
byte[] jarContent,
String fileName,
long artifactId,
org.bonitasoft.engine.dependency.model.ScopeType scopeType) |
protected void |
delete(org.bonitasoft.engine.dependency.model.SDependency dependency) |
void |
deleteDependencyMapping(org.bonitasoft.engine.dependency.model.SDependencyMapping dependencyMapping) |
protected org.bonitasoft.engine.persistence.QueryOptions |
getDefaultQueryOptionForDependencyMapping() |
List<org.bonitasoft.engine.dependency.model.SDependency> |
getDependencies(Collection<Long> ids) |
protected List<org.bonitasoft.engine.dependency.model.SDependency> |
getDependencies(org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
org.bonitasoft.engine.dependency.model.SDependency |
getDependency(long id) |
protected org.bonitasoft.engine.dependency.model.SDependency |
getDependency(String name) |
protected List<org.bonitasoft.engine.dependency.model.SDependencyMapping> |
getDependencyMappings(long dependencyId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
List<org.bonitasoft.engine.dependency.model.SDependencyMapping> |
getDependencyMappings(org.bonitasoft.engine.persistence.QueryOptions queryOptions) |
org.bonitasoft.engine.dependency.model.SDependency |
getDependencyOfArtifact(long artifactId,
org.bonitasoft.engine.dependency.model.ScopeType artifactType,
String fileName) |
protected AbstractRefreshClassLoaderTask |
getRefreshClassLoaderTask(org.bonitasoft.engine.dependency.model.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(org.bonitasoft.engine.dependency.model.ScopeType type,
long id) |
deleteDependencies, deleteDependency, deleteDependency, getDependenciesResources, getDependencyIds, refreshClassLoaderAfterUpdatepublic DependencyServiceImpl(org.bonitasoft.engine.persistence.ReadPersistenceService persistenceService,
org.bonitasoft.engine.recorder.Recorder recorder,
org.bonitasoft.engine.events.EventService eventService,
org.bonitasoft.engine.log.technical.TechnicalLoggerService logger,
org.bonitasoft.engine.services.QueriableLoggerService queriableLoggerService,
org.bonitasoft.engine.classloader.ClassLoaderService classLoaderService,
org.bonitasoft.engine.service.BroadcastService broadcastService,
org.bonitasoft.engine.sessionaccessor.ReadSessionAccessor readSessionAccessor,
org.bonitasoft.engine.transaction.UserTransactionService userTransactionService)
protected List<org.bonitasoft.engine.dependency.model.SDependency> getDependencies(org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.dependency.SDependencyException
getDependencies in class AbstractDependencyServiceorg.bonitasoft.engine.dependency.SDependencyExceptionprotected org.bonitasoft.engine.dependency.model.SDependency getDependency(String name) throws org.bonitasoft.engine.dependency.SDependencyDeletionException, org.bonitasoft.engine.dependency.SDependencyNotFoundException
getDependency in class AbstractDependencyServiceorg.bonitasoft.engine.dependency.SDependencyDeletionExceptionorg.bonitasoft.engine.dependency.SDependencyNotFoundExceptionprotected AbstractRefreshClassLoaderTask getRefreshClassLoaderTask(org.bonitasoft.engine.dependency.model.ScopeType type, long id)
getRefreshClassLoaderTask in class AbstractDependencyServiceprotected List<org.bonitasoft.engine.dependency.model.SDependencyMapping> getDependencyMappings(long dependencyId, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.dependency.SDependencyException
getDependencyMappings in class AbstractDependencyServiceorg.bonitasoft.engine.dependency.SDependencyExceptionprotected org.bonitasoft.engine.persistence.QueryOptions getDefaultQueryOptionForDependencyMapping()
getDefaultQueryOptionForDependencyMapping in class AbstractDependencyServiceprotected void delete(org.bonitasoft.engine.dependency.model.SDependency dependency)
throws org.bonitasoft.engine.dependency.SDependencyDeletionException
delete in class AbstractDependencyServiceorg.bonitasoft.engine.dependency.SDependencyDeletionExceptionpublic void deleteDependencyMapping(org.bonitasoft.engine.dependency.model.SDependencyMapping dependencyMapping)
throws org.bonitasoft.engine.dependency.SDependencyException
deleteDependencyMapping in class AbstractDependencyServiceorg.bonitasoft.engine.dependency.SDependencyExceptionpublic List<org.bonitasoft.engine.dependency.model.SDependency> getDependencies(Collection<Long> ids) throws org.bonitasoft.engine.dependency.SDependencyException
org.bonitasoft.engine.dependency.SDependencyExceptionprotected org.bonitasoft.engine.persistence.SelectListDescriptor<Long> getSelectDescriptorForDependencyIds(org.bonitasoft.engine.persistence.QueryOptions queryOptions, Map<String,Object> parameters)
getSelectDescriptorForDependencyIds in class AbstractDependencyServicepublic List<org.bonitasoft.engine.dependency.model.SDependencyMapping> getDependencyMappings(org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.dependency.SDependencyException
org.bonitasoft.engine.dependency.SDependencyExceptionpublic org.bonitasoft.engine.dependency.model.SDependency getDependency(long id)
throws org.bonitasoft.engine.dependency.SDependencyNotFoundException
org.bonitasoft.engine.dependency.SDependencyNotFoundExceptionpublic void refreshClassLoader(org.bonitasoft.engine.dependency.model.ScopeType type,
long id)
throws org.bonitasoft.engine.dependency.SDependencyException
org.bonitasoft.engine.dependency.SDependencyExceptionprotected Long getTenantId() throws org.bonitasoft.engine.sessionaccessor.STenantIdNotSetException
getTenantId in class AbstractDependencyServiceorg.bonitasoft.engine.sessionaccessor.STenantIdNotSetExceptionpublic org.bonitasoft.engine.dependency.model.SDependency createMappedDependency(String name, byte[] jarContent, String fileName, long artifactId, org.bonitasoft.engine.dependency.model.ScopeType scopeType) throws org.bonitasoft.engine.dependency.SDependencyException
org.bonitasoft.engine.dependency.SDependencyExceptionprotected void createDependencyMapping(org.bonitasoft.engine.dependency.model.SDependencyMapping dependencyMapping)
throws org.bonitasoft.engine.dependency.SDependencyException
createDependencyMapping in class AbstractDependencyServiceorg.bonitasoft.engine.dependency.SDependencyExceptionpublic org.bonitasoft.engine.dependency.model.SDependency getDependencyOfArtifact(long artifactId,
org.bonitasoft.engine.dependency.model.ScopeType artifactType,
String fileName)
throws org.bonitasoft.engine.persistence.SBonitaReadException
org.bonitasoft.engine.persistence.SBonitaReadExceptionCopyright © 2016 Bonitasoft S.A.. All rights reserved.