eXo JCR :: Ext :: Services 1.15.12-GA

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

All Known Implementing Classes:
ArtifactManagingServiceImpl

public interface ArtifactManagingService

Administration maven repository

Version:
$Id: $
Author:
Gennady Azarenkov

Method Summary
 void addArtifact(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 files
 void changePermission(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 identity
 void exportArtifacts(org.exoplatform.services.jcr.ext.common.SessionProvider sp, FolderDescriptor parentFolder, File folder)
           
 void exportArtifacts(org.exoplatform.services.jcr.ext.common.SessionProvider sp, FolderDescriptor parentFolder, OutputStream zipOutputStream)
          exports list of artifacts from maven repo into output stream
 List<Descriptor> getDescriptors(org.exoplatform.services.jcr.ext.common.SessionProvider sp, FolderDescriptor parentFolder)
           
 List getListErrors()
           
 List getPermission(org.exoplatform.services.jcr.ext.common.SessionProvider sp, Descriptor artifact)
          Returns acess control list for the specified artifact
 void importArtifacts(org.exoplatform.services.jcr.ext.common.SessionProvider sp, File folder)
           
 void importArtifacts(org.exoplatform.services.jcr.ext.common.SessionProvider sp, InputStream zipInputStream)
          imports list of artifacts into maven repo
 void removeArtifact(org.exoplatform.services.jcr.ext.common.SessionProvider sp, Descriptor artifact)
          removes artifact
 List<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 provider
parentFolder - 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.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(org.exoplatform.services.jcr.ext.common.SessionProvider sp,
                    Descriptor artifact)
                    throws javax.jcr.RepositoryException
removes artifact

Parameters:
sp - the session provider
artifact - 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 provider
criteria - 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,
                            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
FileNotFoundException

importArtifacts

void importArtifacts(org.exoplatform.services.jcr.ext.common.SessionProvider sp,
                     File folder)
                     throws javax.jcr.RepositoryException,
                            FileNotFoundException
Parameters:
sp - - Session provider
folder -
Throws:
javax.jcr.RepositoryException
FileNotFoundException

exportArtifacts

void exportArtifacts(org.exoplatform.services.jcr.ext.common.SessionProvider sp,
                     FolderDescriptor parentFolder,
                     OutputStream zipOutputStream)
                     throws javax.jcr.RepositoryException,
                            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
FileNotFoundException

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.RepositoryException
FileNotFoundException

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 provider
artifact - 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.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

List getListErrors()

eXo JCR :: Ext :: Services 1.15.12-GA

Copyright © 2015 eXo Platform SAS. All Rights Reserved.