public interface DependencyService
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEPENDENCY |
static java.lang.String |
DEPENDENCYMAPPING |
| Modifier and Type | Method and Description |
|---|---|
SDependency |
createMappedDependency(java.lang.String name,
byte[] jarContent,
java.lang.String fileName,
long artifactId,
ScopeType scopeType) |
void |
deleteDependencies(long id,
ScopeType type) |
void |
deleteDependency(SDependency dependency)
Delete the specific dependency
|
void |
deleteDependency(java.lang.String name)
Delete the dependency specified by name
|
java.util.List<SDependency> |
getDependencies(java.util.Collection<java.lang.Long> ids)
Get dependencies for the specified ids
|
SDependency |
getDependency(long id)
Get dependency by its id
|
DependencyContent |
getDependencyContentOnly(long id)
Get only the content and file name of a dependency.
|
java.util.List<java.lang.Long> |
getDependencyIds(long artifactId,
ScopeType artifactType,
int startIndex,
int maxResult)
Get all dependency ids for specific artifact
|
java.util.List<SDependencyMapping> |
getDependencyMappings(QueryOptions queryOptions)
Get all dependencyMappings for specific the queryOptions
|
SDependency |
getDependencyOfArtifact(long artifactId,
ScopeType artifactType,
java.lang.String fileName) |
java.util.Optional<java.lang.Long> |
getIdOfDependencyOfArtifact(java.lang.Long artifactId,
ScopeType artifactType,
java.lang.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 and after transaction
Multiple call to this method will have no effects, it will only register the refresh to be done after the transaction.
|
SDependency |
updateDependencyOfArtifact(java.lang.String name,
byte[] jarContent,
java.lang.String fileName,
long artifactId,
ScopeType scopeType) |
static final java.lang.String DEPENDENCY
static final java.lang.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(java.lang.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.DependencyContent getDependencyContentOnly(long id) throws SDependencyNotFoundException, SBonitaReadException
id - of the dependencySDependencyNotFoundExceptionSBonitaReadExceptionjava.util.List<SDependency> getDependencies(java.util.Collection<java.lang.Long> ids) throws SDependencyException
ids - Identifiers of dependenciesSDependencyExceptionjava.util.List<SDependencyMapping> getDependencyMappings(QueryOptions queryOptions) throws SDependencyException
queryOptions - QueryOptions object, it contains some query conditions.SDependencyExceptionvoid refreshClassLoaderAfterUpdate(ScopeType type, long id) throws SDependencyException
type - id - SDependencyExceptionjava.util.List<java.lang.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(java.lang.String name, byte[] jarContent, java.lang.String fileName, long artifactId, ScopeType scopeType) throws SDependencyException
SDependencyExceptionSDependency updateDependencyOfArtifact(java.lang.String name, byte[] jarContent, java.lang.String fileName, long artifactId, ScopeType scopeType) throws SDependencyException
SDependencyExceptionSDependency getDependencyOfArtifact(long artifactId, ScopeType artifactType, java.lang.String fileName) throws SBonitaReadException
SBonitaReadExceptionjava.util.Optional<java.lang.Long> getIdOfDependencyOfArtifact(java.lang.Long artifactId,
ScopeType artifactType,
java.lang.String fileName)
throws SBonitaReadException
SBonitaReadException