public interface ArtifactManagingService
| Modifier and Type | Method and Description |
|---|---|
void |
addArtifact(SessionProvider sp,
ArtifactDescriptor artifact,
InputStream jarIStream,
InputStream pomIStream)
adds (deploys) artifact including creating necessary group folders, pom and checksum files
|
void |
changePermission(SessionProvider sp,
Descriptor artifact,
String identity,
String[] permissions,
boolean delete)
Changes acess permissions for the specified artifact ang given identity
|
void |
exportArtifacts(SessionProvider sp,
FolderDescriptor parentFolder,
File folder) |
void |
exportArtifacts(SessionProvider sp,
FolderDescriptor parentFolder,
OutputStream zipOutputStream)
exports list of artifacts from maven repo into output stream
|
List<Descriptor> |
getDescriptors(SessionProvider sp,
FolderDescriptor parentFolder) |
List |
getListErrors() |
List |
getPermission(SessionProvider sp,
Descriptor artifact)
Returns acess control list for the specified artifact
|
void |
importArtifacts(SessionProvider sp,
File folder) |
void |
importArtifacts(SessionProvider sp,
InputStream zipInputStream)
imports list of artifacts into maven repo
|
void |
removeArtifact(SessionProvider sp,
Descriptor artifact)
removes artifact
|
List<Descriptor> |
searchArtifacts(SessionProvider sp,
SearchCriteria criteria) |
List<Descriptor> getDescriptors(SessionProvider sp, FolderDescriptor parentFolder) throws javax.jcr.RepositoryException
sp - the session providerparentFolder - the folder which children we need to getjavax.jcr.RepositoryExceptionvoid addArtifact(SessionProvider sp, ArtifactDescriptor artifact, InputStream jarIStream, InputStream pomIStream) throws javax.jcr.RepositoryException
sp - the session providerartifact - descriptorjarIStream - pomIStream - javax.jcr.RepositoryExceptionvoid removeArtifact(SessionProvider sp, Descriptor artifact) throws javax.jcr.RepositoryException
sp - the session providerartifact - descriptorjavax.jcr.RepositoryExceptionList<Descriptor> searchArtifacts(SessionProvider sp, SearchCriteria criteria) throws javax.jcr.RepositoryException
sp - the session providercriteria - for searchjavax.jcr.RepositoryExceptionvoid importArtifacts(SessionProvider sp, InputStream zipInputStream) throws javax.jcr.RepositoryException, FileNotFoundException
sp - the session providerzipInputStream - input stream which contains artifact related filesjavax.jcr.RepositoryExceptionFileNotFoundExceptionvoid importArtifacts(SessionProvider sp, File folder) throws javax.jcr.RepositoryException, FileNotFoundException
sp - - Session providerfolder - javax.jcr.RepositoryExceptionFileNotFoundExceptionvoid exportArtifacts(SessionProvider sp, FolderDescriptor parentFolder, OutputStream zipOutputStream) throws javax.jcr.RepositoryException, FileNotFoundException
sp - the session providerparentFolder - the folder which children we need to getzipOutputStream - output stream to export tojavax.jcr.RepositoryExceptionFileNotFoundExceptionvoid exportArtifacts(SessionProvider sp, FolderDescriptor parentFolder, File folder) throws javax.jcr.RepositoryException, FileNotFoundException
sp - parentFolder - folder - javax.jcr.RepositoryExceptionFileNotFoundExceptionList getPermission(SessionProvider sp, Descriptor artifact) throws javax.jcr.RepositoryException
sp - the session providerartifact - the artifact which ACL we need to getjavax.jcr.RepositoryExceptionvoid changePermission(SessionProvider sp, Descriptor artifact, String identity, String[] permissions, boolean delete) throws javax.jcr.RepositoryException
sp - the session providerartifact - the artifact which will be changedidentity - identity for addin/removing permissionspermissions - array of permissions to set/removedelete - javax.jcr.RepositoryExceptionList getListErrors()
Copyright © 2019 eXo Platform SAS. All Rights Reserved.