Interface ArtifactManagingService

  • All Known Implementing Classes:
    ArtifactManagingServiceImpl

    public interface ArtifactManagingService
    Administration maven repository
    Version:
    $Id: $
    Author:
    Gennady Azarenkov
    • 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
        jarIStream -
        pomIStream -
        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
        zipInputStream - 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
        zipOutputStream - 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()