public class PlatformDependencyServiceImpl extends AbstractDependencyService
BATCH_SIZEDEPENDENCY, DEPENDENCYMAPPING| Constructor and Description |
|---|
PlatformDependencyServiceImpl(PersistenceService platformPersistenceService,
ClassLoaderService classLoaderService,
org.bonitasoft.engine.service.BroadcastService broadcastService,
UserTransactionService userTransactionService) |
deleteDependencies, deleteDependency, deleteDependency, getDependenciesResources, getDependencyIds, refreshClassLoaderAfterUpdatepublic PlatformDependencyServiceImpl(PersistenceService platformPersistenceService, 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(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(QueryOptions queryOptions) throws SDependencyException
DependencyServicequeryOptions - QueryOptions object, it contains some query conditions.SDependencyExceptionprotected List<SDependencyMapping> getDependencyMappings(long dependencyId, QueryOptions queryOptions) throws SDependencyException
getDependencyMappings in class AbstractDependencyServiceSDependencyExceptionprotected SelectListDescriptor<Long> getSelectDescriptorForDependencyIds(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 SBonitaReadException
SBonitaReadExceptionprotected 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.