public class Sandbox
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
Sandbox(WebProject webproject,
SandboxInfo si) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteSandbox()
Delete this sandbox
|
Asset |
getAsset(java.lang.String path)
Get the specified asset (Either folder or file)
|
Asset |
getAssetWebApp(java.lang.String webApp,
java.lang.String path)
Get the specified asset with a path relative to the specified web app.
|
java.util.Date |
getCreatedDate() |
java.lang.String |
getCreatedDateAsISO8601() |
java.lang.String |
getCreator() |
Asset[] |
getModifiedAssets()
Get the modified assets within this sandbox
|
Asset[] |
getModifiedAssetsWebApp(java.lang.String webApp)
Get the modified assets within this sandbox
|
java.lang.String |
getName()
Display name for the sandbox
|
java.lang.String |
getSandboxRef()
Get the unique reference for this sandbox
|
java.lang.String[] |
getStoreNames()
Get the store names
|
WebProject |
getWebproject()
Get the web project that owns this sandbox
|
boolean |
isAuthorSandbox()
Is this an author sandbox ?
|
boolean |
isStagingSandbox()
Is this a staging sandbox ?
|
void |
revert(java.lang.String[] files)
Revert the specified files and directories modified contents of this sandbox
|
void |
revertAll()
Revert all modified contents within this sandbox
|
void |
revertAllWebApp(java.lang.String webApp)
Revert all modified contents within this sandbox
|
void |
revertAssets(Asset[] files)
Revert the specified assets (files and directories) modified contents of this sandbox
|
void |
save() |
void |
setName(java.lang.String name) |
void |
setSandboxRef(java.lang.String sandboxRef)
Set the unique reference for this sandbox - no-op, read only
|
void |
submit(java.lang.String[] files,
java.lang.String submitLabel,
java.lang.String submitComment)
Submit the specified files and directories modified contents of this sandbox
|
void |
submitAll(java.lang.String submitLabel,
java.lang.String submitComment)
Submit the modified contents of this sandbox
|
void |
submitAllWebApp(java.lang.String webApp,
java.lang.String submitLabel,
java.lang.String submitComment)
Submit the modified contents of the webapp within this sandbox
|
void |
submitAssets(Asset[] files,
java.lang.String submitLabel,
java.lang.String submitComment)
Submit the specified assets (files and directories) modified contents of this sandbox
|
public Sandbox(WebProject webproject, SandboxInfo si)
public void setName(java.lang.String name)
public java.lang.String getName()
public void setSandboxRef(java.lang.String sandboxRef)
sandboxRef - public void submitAll(java.lang.String submitLabel,
java.lang.String submitComment)
public void revertAssets(Asset[] files)
public void revert(java.lang.String[] files)
public void submitAssets(Asset[] files, java.lang.String submitLabel, java.lang.String submitComment)
public void submit(java.lang.String[] files,
java.lang.String submitLabel,
java.lang.String submitComment)
public void submitAllWebApp(java.lang.String webApp,
java.lang.String submitLabel,
java.lang.String submitComment)
public void revertAll()
public void revertAllWebApp(java.lang.String webApp)
public java.lang.String getSandboxRef()
public java.lang.String getCreator()
public java.util.Date getCreatedDate()
public java.lang.String getCreatedDateAsISO8601()
public void deleteSandbox()
public void save()
public java.lang.String[] getStoreNames()
public boolean isAuthorSandbox()
public boolean isStagingSandbox()
public Asset[] getModifiedAssets()
public Asset getAsset(java.lang.String path)
path - the full path e.g. /www/web_apps/ROOT/index.htmlpublic Asset getAssetWebApp(java.lang.String webApp, java.lang.String path)
path - e.g. index.htmlwebApp - e.g. ROOTpublic Asset[] getModifiedAssetsWebApp(java.lang.String webApp)
public WebProject getWebproject()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.