org.gcube.vremanagement.softwarerepository.repository.artifact
Class Artifact
java.lang.Object
org.gcube.vremanagement.softwarerepository.repository.artifact.Artifact
- Direct Known Subclasses:
- MavenArtifact
public abstract class Artifact
- extends java.lang.Object
- Author:
- Luca Frosini (ISTI-CNR)
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Artifact
public Artifact()
setArchiveFiles
public void setArchiveFiles(java.util.List<java.io.File> archiveFiles)
- Parameters:
archiveFiles
- the artifact file
generateArtifact
public abstract java.util.List<java.io.File> generateArtifact()
throws java.lang.Exception
- Returns:
- the artifact file list
- Throws:
java.lang.Exception
- if artifact generation fails
installArtifacts
public abstract void installArtifacts()
throws java.lang.Exception
- Throws:
java.lang.Exception
- if fails
getArtifactFiles
public java.util.List<java.io.File> getArtifactFiles()
- Returns:
- the artifact file list
getRootDirectory
public java.io.File getRootDirectory()
- Get the root directory
- Returns:
- root directory
setRootDirectory
public void setRootDirectory(java.io.File rootDirectory)
- Set root directory
- Parameters:
rootDirectory
- root directory
setDependencies
public void setDependencies(java.util.List<ArtifactCoordinates> dependencies)
throws java.lang.Exception
- Add a dependencies to artifact
- Parameters:
dependencies
- for for the artifact
- Throws:
java.lang.Exception
- if fails
getArtifactCoordinates
public ArtifactCoordinates getArtifactCoordinates()
- Returns:
- the articArtifactCoordinates
setArtifactCoordinates
public void setArtifactCoordinates(ArtifactCoordinates artifactCoordinates)
- Parameters:
artifactCoordinates
- the articArtifactCoordinates to set
getArtifactParentDirectoryAbsolutePath
public abstract java.lang.String getArtifactParentDirectoryAbsolutePath()
throws java.lang.Exception
- Returns:
- Artifact Parent Directory Absolute Path
- Throws:
java.lang.Exception
- if fail
getArtifactParentDirectoryURL
public abstract java.lang.String getArtifactParentDirectoryURL()
throws java.lang.Exception
- Returns:
- Artifact Parent Directory URL
- Throws:
java.lang.Exception
- if fail
getArtifactURL
public abstract java.lang.String getArtifactURL()
throws java.lang.Exception
- Returns:
- Artifact URL
- Throws:
java.lang.Exception
- if fail
getDependencies
public java.util.List<ArtifactCoordinates> getDependencies()
- Returns:
- the dependencies
getReverseDependencies
public java.util.List<ArtifactCoordinates> getReverseDependencies()
- Returns:
- the reverse dependencies
setReverseDependencies
public void setReverseDependencies(java.util.List<ArtifactCoordinates> reverseDependencies)
- Parameters:
reverseDependencies
- the reverse dependencies to set