org.gcube.vremanagement.softwarerepository.repository
Interface Repository

All Known Implementing Classes:
MavenRepository

public interface Repository

Author:
Luca Frosini (ISTI-CNR)

Method Summary
 java.lang.String getArtifact(Artifact artifact)
          Get URL where to download the Artifact
 java.util.List<Artifact> getDependendenciesList(Artifact artifact)
          Calculate the dependencies List of the given Artifact
 ArtifactTreeNode getDependendenciesTree(Artifact artifact)
          Calculate the dependencies tree the given Artifact
 java.util.List<Artifact> getReverseDependendenciesList(Artifact artifact)
          Calculate the reverse dependencies list of the given Artifact
 void storeArtifact(Artifact artifact)
          Store an Artifact on Backend Repository
 

Method Detail

storeArtifact

void storeArtifact(Artifact artifact)
                   throws java.lang.Exception
Store an Artifact on Backend Repository

Parameters:
artifact - to store
Throws:
java.lang.Exception - if fails

getArtifact

java.lang.String getArtifact(Artifact artifact)
                             throws java.lang.Exception
Get URL where to download the Artifact

Parameters:
artifact - to retrieve
Returns:
String representation of URL where download the Artifact
Throws:
java.lang.Exception - if fails

getDependendenciesList

java.util.List<Artifact> getDependendenciesList(Artifact artifact)
                                                throws java.lang.Exception
Calculate the dependencies List of the given Artifact

Parameters:
artifact - to resolve the dependency
Returns:
List of Artifact dependencies
Throws:
java.lang.Exception - if fails

getDependendenciesTree

ArtifactTreeNode getDependendenciesTree(Artifact artifact)
                                        throws java.lang.Exception
Calculate the dependencies tree the given Artifact

Parameters:
artifact - to resolve the dependency
Returns:
Tree of Artifact
Throws:
java.lang.Exception - if fails

getReverseDependendenciesList

java.util.List<Artifact> getReverseDependendenciesList(Artifact artifact)
                                                       throws java.lang.Exception
Calculate the reverse dependencies list of the given Artifact

Parameters:
artifact - to resolve the dependency
Returns:
List of Artifact dependencies
Throws:
java.lang.Exception - if fails