Interface ArtifactManagingService
-
- All Known Implementing Classes:
ArtifactManagingServiceImpl
public interface ArtifactManagingServiceAdministration maven repository- Version:
- $Id: $
- Author:
- Gennady Azarenkov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddArtifact(org.exoplatform.services.jcr.ext.common.SessionProvider sp, ArtifactDescriptor artifact, InputStream jarIStream, InputStream pomIStream)adds (deploys) artifact including creating necessary group folders, pom and checksum filesvoidchangePermission(org.exoplatform.services.jcr.ext.common.SessionProvider sp, Descriptor artifact, String identity, String[] permissions, boolean delete)Changes acess permissions for the specified artifact ang given identityvoidexportArtifacts(org.exoplatform.services.jcr.ext.common.SessionProvider sp, FolderDescriptor parentFolder, File folder)voidexportArtifacts(org.exoplatform.services.jcr.ext.common.SessionProvider sp, FolderDescriptor parentFolder, OutputStream zipOutputStream)exports list of artifacts from maven repo into output streamList<Descriptor>getDescriptors(org.exoplatform.services.jcr.ext.common.SessionProvider sp, FolderDescriptor parentFolder)ListgetListErrors()ListgetPermission(org.exoplatform.services.jcr.ext.common.SessionProvider sp, Descriptor artifact)Returns acess control list for the specified artifactvoidimportArtifacts(org.exoplatform.services.jcr.ext.common.SessionProvider sp, File folder)voidimportArtifacts(org.exoplatform.services.jcr.ext.common.SessionProvider sp, InputStream zipInputStream)imports list of artifacts into maven repovoidremoveArtifact(org.exoplatform.services.jcr.ext.common.SessionProvider sp, Descriptor artifact)removes artifactList<Descriptor>searchArtifacts(org.exoplatform.services.jcr.ext.common.SessionProvider sp, SearchCriteria criteria)
-
-
-
Method Detail
-
getDescriptors
List<Descriptor> getDescriptors(org.exoplatform.services.jcr.ext.common.SessionProvider sp, FolderDescriptor parentFolder) throws javax.jcr.RepositoryException
- Parameters:
sp- the session providerparentFolder- the folder which children we need to get- Returns:
- list of child descriptors
- Throws:
javax.jcr.RepositoryException
-
addArtifact
void addArtifact(org.exoplatform.services.jcr.ext.common.SessionProvider sp, ArtifactDescriptor artifact, InputStream jarIStream, InputStream pomIStream) throws javax.jcr.RepositoryExceptionadds (deploys) artifact including creating necessary group folders, pom and checksum files- Parameters:
sp- the session providerartifact- descriptorjarIStream-pomIStream-- Throws:
javax.jcr.RepositoryException
-
removeArtifact
void removeArtifact(org.exoplatform.services.jcr.ext.common.SessionProvider sp, Descriptor artifact) throws javax.jcr.RepositoryExceptionremoves artifact- Parameters:
sp- the session providerartifact- descriptor- Throws:
javax.jcr.RepositoryException
-
searchArtifacts
List<Descriptor> searchArtifacts(org.exoplatform.services.jcr.ext.common.SessionProvider sp, SearchCriteria criteria) throws javax.jcr.RepositoryException
- Parameters:
sp- the session providercriteria- for search- Returns:
- list of descriptors
- Throws:
javax.jcr.RepositoryException
-
importArtifacts
void importArtifacts(org.exoplatform.services.jcr.ext.common.SessionProvider sp, InputStream zipInputStream) throws javax.jcr.RepositoryException, FileNotFoundExceptionimports list of artifacts into maven repo- Parameters:
sp- the session providerzipInputStream- input stream which contains artifact related files- Throws:
javax.jcr.RepositoryExceptionFileNotFoundException
-
importArtifacts
void importArtifacts(org.exoplatform.services.jcr.ext.common.SessionProvider sp, File folder) throws javax.jcr.RepositoryException, FileNotFoundException- Parameters:
sp- - Session providerfolder-- Throws:
javax.jcr.RepositoryExceptionFileNotFoundException
-
exportArtifacts
void exportArtifacts(org.exoplatform.services.jcr.ext.common.SessionProvider sp, FolderDescriptor parentFolder, OutputStream zipOutputStream) throws javax.jcr.RepositoryException, FileNotFoundExceptionexports list of artifacts from maven repo into output stream- Parameters:
sp- the session providerparentFolder- the folder which children we need to getzipOutputStream- output stream to export to- Throws:
javax.jcr.RepositoryExceptionFileNotFoundException
-
exportArtifacts
void exportArtifacts(org.exoplatform.services.jcr.ext.common.SessionProvider sp, FolderDescriptor parentFolder, File folder) throws javax.jcr.RepositoryException, FileNotFoundException- Parameters:
sp-parentFolder-folder-- Throws:
javax.jcr.RepositoryExceptionFileNotFoundException
-
getPermission
List getPermission(org.exoplatform.services.jcr.ext.common.SessionProvider sp, Descriptor artifact) throws javax.jcr.RepositoryException
Returns acess control list for the specified artifact- Parameters:
sp- the session providerartifact- the artifact which ACL we need to get- Throws:
javax.jcr.RepositoryException
-
changePermission
void changePermission(org.exoplatform.services.jcr.ext.common.SessionProvider sp, Descriptor artifact, String identity, String[] permissions, boolean delete) throws javax.jcr.RepositoryExceptionChanges acess permissions for the specified artifact ang given identity- Parameters:
sp- the session providerartifact- the artifact which will be changedidentity- identity for addin/removing permissionspermissions- array of permissions to set/removedelete-- Throws:
javax.jcr.RepositoryException
-
getListErrors
List getListErrors()
-
-