|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.ram.common.data.Artifact
com.ibm.ram.common.data.FolderArtifact
com.ibm.ram.client.RAMFolderArtifact
com.ibm.ram.client.LocalFolderArtifact
com.ibm.ram.client.LocalArchiveFolderArtifact
public class LocalArchiveFolderArtifact
Enables the use of a local archive file as a folder in your asset. Note: This artifact will be treated as read only. You cannot add artifacts to it. You must extract the archive to a local folder and make that folder the root.
| Field Summary |
|---|
| Fields inherited from class com.ibm.ram.client.LocalFolderArtifact |
|---|
fLocalFolder |
| Fields inherited from class com.ibm.ram.common.data.Artifact |
|---|
FILE_DELIM, TYPE_FILE, TYPE_FOLDER, TYPE_URL |
| Constructor Summary | |
|---|---|
LocalArchiveFolderArtifact(java.io.File file)
Create RAM Folder artifact for an asset where all the children will be the expanded contents of an archive file (zip, jar, war, ear, ras, etc) Add this artifact to an asset or set it as the root |
|
LocalArchiveFolderArtifact(RAMAsset targetAsset,
Asset sourceAsset,
IProgressMonitor monitor)
Given a source asset create a zipped archive as the root of the target asset |
|
| Method Summary | |
|---|---|
void |
addArtifact(Artifact artifact)
Add an new artifact as a child of this folder artifact. |
void |
addArtifact(java.lang.String relativePath,
Artifact artifactimpl)
Add an artifact relative to this folder artifact. |
Artifact[] |
computeArtifactsAsFlatList(IProgressMonitor monitor)
Normalize the list of children artifacts as a flat list. |
java.io.File |
getArchiveFile()
|
Artifact |
getChild(java.lang.String path)
Returns a child artifact from a given path or null if it does not exist |
Artifact[] |
getChildren()
Returns all the children artifacts |
java.io.File |
getFolder()
Return the underlying File object |
boolean |
hasChildren()
Returns true if the folder has children |
boolean |
removeArtifact(Artifact artifact)
Remove a child artifact. |
boolean |
removeArtifact(java.lang.String relativePath)
Remove an artifact relative to this folder artifact paths should have no leading or trailing slashes |
void |
setChildren(Artifact[] children)
|
| Methods inherited from class com.ibm.ram.client.RAMFolderArtifact |
|---|
getArtifactFullPath, getAsset, getCreationDate, getLabel, getName, getPath, getReference, getSize, setAsset, setCreationDate, setLabel, setName, setPath, setReference, setSize, setType |
| Methods inherited from class com.ibm.ram.common.data.FolderArtifact |
|---|
getType |
| Methods inherited from class com.ibm.ram.common.data.Artifact |
|---|
getChecksum, getMimeType, setChecksum, setMimeType, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LocalArchiveFolderArtifact(java.io.File file)
file - the archive
public LocalArchiveFolderArtifact(RAMAsset targetAsset,
Asset sourceAsset,
IProgressMonitor monitor)
throws RAMRuntimeException,
java.io.IOException
asset -
RAMRuntimeException
java.io.IOException| Method Detail |
|---|
public java.io.File getArchiveFile()
public java.io.File getFolder()
LocalFolderArtifact
getFolder in class LocalFolderArtifact
public void addArtifact(Artifact artifact)
throws RAMRuntimeException
RAMFolderArtifact
addArtifact in class RAMFolderArtifactRAMRuntimeException
public void addArtifact(java.lang.String relativePath,
Artifact artifactimpl)
RAMFolderArtifact
addArtifact in class RAMFolderArtifactpublic Artifact[] computeArtifactsAsFlatList(IProgressMonitor monitor)
RAMFolderArtifact
computeArtifactsAsFlatList in class RAMFolderArtifactpublic Artifact[] getChildren()
LocalFolderArtifact
getChildren in class LocalFolderArtifactpublic boolean hasChildren()
LocalFolderArtifact
hasChildren in class LocalFolderArtifactpublic Artifact getChild(java.lang.String path)
RAMFolderArtifact
getChild in class RAMFolderArtifactpath - use / for a delimiter. Do not include a leading or
trailing slash.public boolean removeArtifact(Artifact artifact)
RAMFolderArtifact
removeArtifact in class RAMFolderArtifactpublic boolean removeArtifact(java.lang.String relativePath)
RAMFolderArtifact
removeArtifact in class RAMFolderArtifactpublic void setChildren(Artifact[] children)
setChildren in class RAMFolderArtifactchildren - The list of child artifacts.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||