|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.system.repository.artifact.LocalArtifactRepositoryService
public class LocalArtifactRepositoryService
A local artifact repository implementation. Folders strucutre is :
$PETALS/artifacts/
- $PETALS/artifacts/components
- $PETALS/artifacts/sa
- $PETALS/artifacts/sl
| Constructor Summary | |
|---|---|
LocalArtifactRepositoryService(java.io.File rootPath)
|
|
| Method Summary | |
|---|---|
boolean |
addArtifact(Artifact artifact)
Add the artifact to the repository |
protected java.lang.String |
getComponentName(java.io.File file)
Get the component name from the artifact. |
java.util.List<Artifact> |
getComponents()
Get the list of components which are available in the repository |
java.util.List<java.lang.String> |
getComponentsName()
|
java.io.File |
getComponentsPath()
|
java.io.File |
getRootPath()
Get the artifact repository root path |
java.io.File |
getSaPath()
|
java.util.List<Artifact> |
getServiceAssemblies()
|
java.util.List<java.lang.String> |
getServiceAssembliesName()
|
protected java.lang.String |
getServiceAssemblyName(java.io.File file)
|
java.io.File |
getServiceAssemblyPath()
|
java.util.List<Artifact> |
getSharedLibraries()
|
java.util.List<java.lang.String> |
getSharedLibrariesName()
|
protected java.lang.String |
getSharedLibraryName(java.io.File file)
|
java.io.File |
getSharedLibraryPath()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LocalArtifactRepositoryService(java.io.File rootPath)
| Method Detail |
|---|
public java.util.List<Artifact> getComponents()
ArtifactRepositoryService
getComponents in interface ArtifactRepositoryServicepublic java.util.List<Artifact> getServiceAssemblies()
getServiceAssemblies in interface ArtifactRepositoryServicepublic java.util.List<java.lang.String> getComponentsName()
getComponentsName in interface ArtifactRepositoryServicepublic java.io.File getComponentsPath()
getComponentsPath in interface ArtifactRepositoryServicepublic java.io.File getSaPath()
public java.io.File getRootPath()
ArtifactRepositoryService
getRootPath in interface ArtifactRepositoryService
public boolean addArtifact(Artifact artifact)
throws org.ow2.petals.kernel.api.server.PetalsException
ArtifactRepositoryService
addArtifact in interface ArtifactRepositoryServiceorg.ow2.petals.kernel.api.server.PetalsExceptionprotected java.lang.String getComponentName(java.io.File file)
file -
protected java.lang.String getSharedLibraryName(java.io.File file)
file -
protected java.lang.String getServiceAssemblyName(java.io.File file)
public java.util.List<java.lang.String> getServiceAssembliesName()
getServiceAssembliesName in interface ArtifactRepositoryServicepublic java.io.File getServiceAssemblyPath()
getServiceAssemblyPath in interface ArtifactRepositoryServicepublic java.util.List<java.lang.String> getSharedLibrariesName()
getSharedLibrariesName in interface ArtifactRepositoryServicepublic java.io.File getSharedLibraryPath()
getSharedLibraryPath in interface ArtifactRepositoryServicepublic java.util.List<Artifact> getSharedLibraries()
getSharedLibraries in interface ArtifactRepositoryService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||