public interface DependencyService
| Modifier and Type | Field and Description |
|---|---|
static String |
DEPENDENCY |
static String |
DEPENDENCYMAPPING |
| Modifier and Type | Method and Description |
|---|---|
SDependency |
createMappedDependency(String name,
byte[] jarContent,
String fileName,
long artifactId,
ScopeType scopeType) |
void |
deleteDependencies(long id,
ScopeType type) |
void |
deleteDependency(SDependency dependency)
Delete the specific dependency
|
void |
deleteDependency(String name)
Delete the dependency specified by name
|
List<SDependency> |
getDependencies(Collection<Long> ids)
Get dependencies for the specified ids
|
SDependency |
getDependency(long id)
Get dependency by its id
|
List<Long> |
getDependencyIds(long artifactId,
ScopeType artifactType,
int startIndex,
int maxResult)
Get all dependency ids for specific artifact
|
List<SDependencyMapping> |
getDependencyMappings(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) |
void |
refreshClassLoader(ScopeType type,
long id)
refresh classloader on this node only
|
void |
refreshClassLoaderAfterUpdate(ScopeType type,
long id)
Refresh classloader after a dependency update
difference with #refreshClassLoader is that this one is done on all nodes
|
SDependency |
updateDependencyOfArtifact(String name,
byte[] jarContent,
String fileName,
long artifactId,
ScopeType scopeType) |
static final String DEPENDENCY
static final String DEPENDENCYMAPPING
void deleteDependency(SDependency dependency) throws SDependencyException
dependency - The dependency will be deletedSDependencyNotFoundException - Error thrown if the dependency not found.SDependencyDeletionException - Error thrown if has exception during the dependency deletion.SDependencyExceptionvoid deleteDependency(String name) throws SDependencyException
name - SDependencyNotFoundException - Error thrown if no dependency have a name corresponding to the parameter.SDependencyDeletionException - Error thrown if has exception during the dependency deletion.SDependencyExceptionSDependency getDependency(long id) throws SDependencyNotFoundException
id - Identifier of dependencySDependencyNotFoundException - Error thrown if no dependency have an id corresponding to the parameter.List<SDependency> getDependencies(Collection<Long> ids) throws SDependencyException
ids - Identifiers of dependenciesSDependencyExceptionList<SDependencyMapping> getDependencyMappings(QueryOptions queryOptions) throws SDependencyException
queryOptions - QueryOptions object, it contains some query conditions.SDependencyExceptionvoid refreshClassLoaderAfterUpdate(ScopeType type, long id) throws SDependencyException
type - id - SDependencyExceptionList<Long> getDependencyIds(long artifactId, ScopeType artifactType, int startIndex, int maxResult) throws SDependencyException
artifactId - Identifier of artifactartifactType - Type of artifactstartIndex - maxResult - SDependencyExceptionvoid deleteDependencies(long id,
ScopeType type)
throws SDependencyException
id - type - SDependencyExceptionvoid refreshClassLoader(ScopeType type, long id) throws SDependencyException
type - id - SDependencyExceptionSDependency createMappedDependency(String name, byte[] jarContent, String fileName, long artifactId, ScopeType scopeType) throws SDependencyException
SDependencyExceptionSDependency updateDependencyOfArtifact(String name, byte[] jarContent, String fileName, long artifactId, ScopeType scopeType) throws SDependencyException
SDependencyExceptionSDependency getDependencyOfArtifact(long artifactId, ScopeType artifactType, String fileName) throws SBonitaReadException
SBonitaReadExceptionOptional<Long> getIdOfDependencyOfArtifact(Long artifactId, ScopeType artifactType, String fileName) throws SBonitaReadException
SBonitaReadExceptionCopyright © 2018 Bonitasoft S.A.. All rights reserved.