public class ArtifactManagingServiceImpl extends Object implements ArtifactManagingService, org.picocontainer.Startable
| Constructor and Description |
|---|
ArtifactManagingServiceImpl(org.exoplatform.container.xml.InitParams params,
org.exoplatform.services.jcr.RepositoryService repositoryService)
without registry service
|
ArtifactManagingServiceImpl(org.exoplatform.container.xml.InitParams initParams,
org.exoplatform.services.jcr.RepositoryService repositoryService,
org.exoplatform.services.jcr.ext.registry.RegistryService registryService) |
| Modifier and Type | Method and Description |
|---|---|
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
|
protected File |
createMultiMetadata(String groupId,
String artifactId,
String current_version,
List<String> v_list) |
protected File |
createSingleMetadata(String groupId,
String artifactId,
String version) |
void |
exportArtifacts(org.exoplatform.services.jcr.ext.common.SessionProvider sp,
FolderDescriptor parentFolder,
File destFolder) |
void |
exportArtifacts(org.exoplatform.services.jcr.ext.common.SessionProvider sp,
FolderDescriptor parentFolder,
OutputStream out)
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 in)
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) |
void |
start() |
void |
stop() |
public ArtifactManagingServiceImpl(org.exoplatform.container.xml.InitParams initParams,
org.exoplatform.services.jcr.RepositoryService repositoryService,
org.exoplatform.services.jcr.ext.registry.RegistryService registryService)
throws org.exoplatform.services.jcr.config.RepositoryConfigurationException
initParams - repositoryService - registryService - org.exoplatform.services.jcr.config.RepositoryConfigurationExceptionpublic ArtifactManagingServiceImpl(org.exoplatform.container.xml.InitParams params,
org.exoplatform.services.jcr.RepositoryService repositoryService)
throws org.exoplatform.services.jcr.config.RepositoryConfigurationException
params - repositoryService - org.exoplatform.services.jcr.config.RepositoryConfigurationExceptionpublic void addArtifact(org.exoplatform.services.jcr.ext.common.SessionProvider sp,
ArtifactDescriptor artifact,
InputStream jarIStream,
InputStream pomIStream)
throws javax.jcr.RepositoryException
ArtifactManagingServiceaddArtifact in interface ArtifactManagingServicesp - the session providerartifact - descriptorjavax.jcr.RepositoryExceptionpublic void exportArtifacts(org.exoplatform.services.jcr.ext.common.SessionProvider sp,
FolderDescriptor parentFolder,
OutputStream out)
throws javax.jcr.RepositoryException,
FileNotFoundException
ArtifactManagingServiceexportArtifacts in interface ArtifactManagingServicesp - the session providerparentFolder - the folder which children we need to getout - output stream to export tojavax.jcr.RepositoryExceptionFileNotFoundExceptionpublic void exportArtifacts(org.exoplatform.services.jcr.ext.common.SessionProvider sp,
FolderDescriptor parentFolder,
File destFolder)
throws javax.jcr.RepositoryException,
FileNotFoundException
exportArtifacts in interface ArtifactManagingServicejavax.jcr.RepositoryExceptionFileNotFoundExceptionpublic List<Descriptor> getDescriptors(org.exoplatform.services.jcr.ext.common.SessionProvider sp, FolderDescriptor parentFolder) throws javax.jcr.RepositoryException
getDescriptors in interface ArtifactManagingServicesp - the session providerparentFolder - the folder which children we need to getjavax.jcr.RepositoryExceptionpublic void importArtifacts(org.exoplatform.services.jcr.ext.common.SessionProvider sp,
InputStream in)
throws javax.jcr.RepositoryException,
FileNotFoundException
ArtifactManagingServiceimportArtifacts in interface ArtifactManagingServicesp - the session providerin - input stream which contains artifact related filesjavax.jcr.RepositoryExceptionFileNotFoundExceptionpublic void importArtifacts(org.exoplatform.services.jcr.ext.common.SessionProvider sp,
File folder)
throws javax.jcr.RepositoryException,
FileNotFoundException
importArtifacts in interface ArtifactManagingServicesp - - Session providerjavax.jcr.RepositoryExceptionFileNotFoundExceptionpublic void removeArtifact(org.exoplatform.services.jcr.ext.common.SessionProvider sp,
Descriptor artifact)
throws javax.jcr.RepositoryException
ArtifactManagingServiceremoveArtifact in interface ArtifactManagingServicesp - the session providerartifact - descriptorjavax.jcr.RepositoryExceptionpublic List getPermission(org.exoplatform.services.jcr.ext.common.SessionProvider sp, Descriptor artifact) throws javax.jcr.RepositoryException
ArtifactManagingServicegetPermission in interface ArtifactManagingServicesp - the session providerartifact - the artifact which ACL we need to getjavax.jcr.RepositoryExceptionpublic void changePermission(org.exoplatform.services.jcr.ext.common.SessionProvider sp,
Descriptor artifact,
String identity,
String[] permissions,
boolean delete)
throws javax.jcr.RepositoryException
ArtifactManagingServicechangePermission in interface ArtifactManagingServicesp - the session providerartifact - the artifact which will be changedidentity - identity for addin/removing permissionspermissions - array of permissions to set/removejavax.jcr.RepositoryExceptionpublic List<Descriptor> searchArtifacts(org.exoplatform.services.jcr.ext.common.SessionProvider sp, SearchCriteria criteria) throws javax.jcr.RepositoryException
searchArtifacts in interface ArtifactManagingServicesp - the session providercriteria - for searchjavax.jcr.RepositoryExceptionpublic void start()
start in interface org.picocontainer.Startablepublic void stop()
stop in interface org.picocontainer.Startableprotected File createSingleMetadata(String groupId, String artifactId, String version) throws FileNotFoundException
FileNotFoundExceptionprotected File createMultiMetadata(String groupId, String artifactId, String current_version, List<String> v_list) throws FileNotFoundException
FileNotFoundExceptionpublic List getListErrors()
getListErrors in interface ArtifactManagingServiceCopyright © 2003–2020 eXo Platform SAS. All rights reserved.