org.exoplatform.services.jcr.ext.artifact
Interface ArtifactManagingService

All Known Implementing Classes:
ArtifactManagingServiceImpl

public interface ArtifactManagingService

Administration maven repository

Version:
$Id: ArtifactManagingService.java 35186 2009-08-07 14:23:43Z pnedonosko $
Author:
Gennady Azarenkov

Method Summary
 void addArtifact(SessionProvider sp, ArtifactDescriptor artifact, java.io.InputStream jarIStream, java.io.InputStream pomIStream)
          adds (deploys) artifact including creating necessary group folders, pom and checksum files
 void changePermission(SessionProvider sp, Descriptor artifact, java.lang.String identity, java.lang.String[] permissions, boolean delete)
          Changes acess permissions for the specified artifact ang given identity
 void exportArtifacts(SessionProvider sp, FolderDescriptor parentFolder, java.io.File folder)
           
 void exportArtifacts(SessionProvider sp, FolderDescriptor parentFolder, java.io.OutputStream zipOutputStream)
          exports list of artifacts from maven repo into output stream
 java.util.List<Descriptor> getDescriptors(SessionProvider sp, FolderDescriptor parentFolder)
           
 java.util.List getListErrors()
           
 java.util.List getPermission(SessionProvider sp, Descriptor artifact)
          Returns acess control list for the specified artifact
 void importArtifacts(SessionProvider sp, java.io.File folder)
           
 void importArtifacts(SessionProvider sp, java.io.InputStream zipInputStream)
          imports list of artifacts into maven repo
 void removeArtifact(SessionProvider sp, Descriptor artifact)
          removes artifact
 java.util.List<Descriptor> searchArtifacts(SessionProvider sp, SearchCriteria criteria)
           
 

Method Detail

getDescriptors

java.util.List<Descriptor> getDescriptors(SessionProvider sp,
                                          FolderDescriptor parentFolder)
                                          throws javax.jcr.RepositoryException
Parameters:
sp - the session provider
parentFolder - the folder which children we need to get
Returns:
list of child descriptors
Throws:
javax.jcr.RepositoryException

addArtifact

void addArtifact(SessionProvider sp,
                 ArtifactDescriptor artifact,
                 java.io.InputStream jarIStream,
                 java.io.InputStream pomIStream)
                 throws javax.jcr.RepositoryException
adds (deploys) artifact including creating necessary group folders, pom and checksum files

Parameters:
sp - the session provider
artifact - descriptor
jarFile -
Throws:
javax.jcr.RepositoryException

removeArtifact

void removeArtifact(SessionProvider sp,
                    Descriptor artifact)
                    throws javax.jcr.RepositoryException
removes artifact

Parameters:
sp - the session provider
artifact - descriptor
Throws:
javax.jcr.RepositoryException

searchArtifacts

java.util.List<Descriptor> searchArtifacts(SessionProvider sp,
                                           SearchCriteria criteria)
                                           throws javax.jcr.RepositoryException
Parameters:
sp - the session provider
criteria - for search
Returns:
list of descriptors
Throws:
javax.jcr.RepositoryException

importArtifacts

void importArtifacts(SessionProvider sp,
                     java.io.InputStream zipInputStream)
                     throws javax.jcr.RepositoryException,
                            java.io.FileNotFoundException
imports list of artifacts into maven repo

Parameters:
sp - the session provider
in - input stream which contains artifact related files
Throws:
javax.jcr.RepositoryException
java.io.FileNotFoundException

importArtifacts

void importArtifacts(SessionProvider sp,
                     java.io.File folder)
                     throws javax.jcr.RepositoryException,
                            java.io.FileNotFoundException
Parameters:
sp - - Session provider
folder -
Throws:
javax.jcr.RepositoryException
java.io.FileNotFoundException

exportArtifacts

void exportArtifacts(SessionProvider sp,
                     FolderDescriptor parentFolder,
                     java.io.OutputStream zipOutputStream)
                     throws javax.jcr.RepositoryException,
                            java.io.FileNotFoundException
exports list of artifacts from maven repo into output stream

Parameters:
sp - the session provider
parentFolder - the folder which children we need to get
out - output stream to export to
Throws:
javax.jcr.RepositoryException
java.io.FileNotFoundException

exportArtifacts

void exportArtifacts(SessionProvider sp,
                     FolderDescriptor parentFolder,
                     java.io.File folder)
                     throws javax.jcr.RepositoryException,
                            java.io.FileNotFoundException
Parameters:
sp -
parentFolder -
folder -
Throws:
javax.jcr.RepositoryException
java.io.FileNotFoundException

getPermission

java.util.List getPermission(SessionProvider sp,
                             Descriptor artifact)
                             throws javax.jcr.RepositoryException
Returns acess control list for the specified artifact

Parameters:
sp - the session provider
artifact - the artifact which ACL we need to get
Throws:
javax.jcr.RepositoryException

changePermission

void changePermission(SessionProvider sp,
                      Descriptor artifact,
                      java.lang.String identity,
                      java.lang.String[] permissions,
                      boolean delete)
                      throws javax.jcr.RepositoryException
Changes acess permissions for the specified artifact ang given identity

Parameters:
sp - the session provider
artifact - the artifact which will be changed
identity - identity for addin/removing permissions
permissions - array of permissions to set/remove
delete -
Throws:
javax.jcr.RepositoryException

getListErrors

java.util.List getListErrors()


Copyright © 2012 eXo Platform SAS. All Rights Reserved.