public class DefaultSandboxInfoCache extends DefaultSandbox implements SandboxInfoCache
Constructor and Description |
---|
DefaultSandboxInfoCache(java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
Sandbox |
asSandbox()
Returns this object as a
Sandbox object. |
SandboxConstraints |
getConstraints()
Returns the constraints associated with this sandbox if any.
|
java.lang.String |
getCreatedBy()
Returns the user who creates this sandbox.
|
java.util.Date |
getCreationDate()
Gets the date when this sandbox was created.
|
java.lang.String |
getDescription()
Gets the description of this sandbox.
|
java.util.Date |
getPublishDate()
Returns the date when the changes in this sandbox were permanently merged
into the repositories.
|
java.lang.String |
getPublishedBy()
Gets the name of the user that published this sandbox.
|
java.util.Date |
getRefreshDate()
Returns the last date when the changes made in mainline were merged into
this sandbox.
|
java.lang.String |
getRefreshedBy()
Returns the user who merged the changes made in mainline into this sandbox
by refreshing the sandbox
|
SandboxState |
getState()
Gets the state of this sandbox.
|
java.util.Date |
getUpdateDate()
Gets the date when this sandbox was last updated.
|
java.lang.String |
getUpdatedBy()
Returns the user who last updated this sandbox.
|
boolean |
isPrivate()
Returns
true if this sandbox is private. |
boolean |
isPublishable()
Returns
true if this sandbox is publishable. |
boolean |
isRefreshNeeded()
Returns
true if any participating repository needs to be
refreshed. |
boolean |
isRefreshRequired()
Returns
true if this sandbox requires refresh. |
boolean |
isVisualBuilderEnabled()
Returns
true if Visual Builder feature is enabled in this
sandbox and at least one associated repository used by the
feature reports changes. |
getConstraintsSummary, getId, getName, getOperationLog, getRepositoryBaseline, getRepositoryBranchDate, getRepositoryBranchId, getRepositoryRefreshDate, getRepositoryState, hasConflict, isAdministrator, isArchive, isFeatureEnabled, isRepositoryBranched, toString
addListener, fireRepositoryChanged, getBranchId, getListeners, getUserSandbox, removeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getId, getName, isArchive
public Sandbox asSandbox()
SandboxInfoCache
Sandbox
object.asSandbox
in interface SandboxInfoCache
Sandbox
objectpublic java.lang.String getDescription()
Sandbox
getDescription
in interface SandboxInfoCache
getDescription
in class DefaultSandbox
public SandboxState getState()
Sandbox
getState
in interface SandboxInfoCache
getState
in class DefaultSandbox
public java.util.Date getCreationDate()
Sandbox
getCreationDate
in interface SandboxInfoCache
getCreationDate
in class DefaultSandbox
public java.lang.String getCreatedBy()
Sandbox
getCreatedBy
in interface SandboxInfoCache
getCreatedBy
in class DefaultSandbox
public java.util.Date getUpdateDate()
Sandbox
getUpdateDate
in interface SandboxInfoCache
getUpdateDate
in class DefaultSandbox
public java.lang.String getUpdatedBy()
Sandbox
getUpdatedBy
in interface SandboxInfoCache
getUpdatedBy
in class DefaultSandbox
public java.util.Date getRefreshDate()
Sandbox
getRefreshDate
in interface SandboxInfoCache
getRefreshDate
in class DefaultSandbox
null
if this sandbox has never been
updated since creationpublic java.lang.String getRefreshedBy()
Sandbox
getRefreshedBy
in interface SandboxInfoCache
getRefreshedBy
in class DefaultSandbox
null
if this sandbox has never been
refreshed since creationpublic java.util.Date getPublishDate()
Sandbox
getPublishDate
in interface SandboxInfoCache
getPublishDate
in class DefaultSandbox
null
if this sandbox is still activepublic java.lang.String getPublishedBy()
Sandbox
getPublishedBy
in interface SandboxInfoCache
getPublishedBy
in class DefaultSandbox
public SandboxConstraints getConstraints()
Sandbox
getConstraints
in interface SandboxInfoCache
getConstraints
in class DefaultSandbox
null
if
this sandbox does not have any constraintspublic boolean isPrivate()
Sandbox
true
if this sandbox is private. A private sandbox
can only be accessed by its owner.isPrivate
in interface SandboxInfoCache
isPrivate
in class DefaultSandbox
true
if this sandbox is privatepublic boolean isPublishable()
Sandbox
true
if this sandbox is publishable. If a sandbox is
not publishable, it cannot be published.isPublishable
in interface SandboxInfoCache
isPublishable
in class DefaultSandbox
true
if this sandbox is publishablepublic boolean isRefreshRequired()
Sandbox
true
if this sandbox requires refresh. If a sandbox
requires refresh, it should not be used. Usually a refresh is required when
mainline is patched and sandbox should be refreshed before it is be used.isRefreshRequired
in interface SandboxInfoCache
isRefreshRequired
in class DefaultSandbox
true
if this sandbox requies refreshpublic boolean isRefreshNeeded()
Sandbox
true
if any participating repository needs to be
refreshed.isRefreshNeeded
in interface SandboxInfoCache
isRefreshNeeded
in class DefaultSandbox
true
if any participating repository needs to be
refreshedpublic boolean isVisualBuilderEnabled()
Sandbox
true
if Visual Builder feature is enabled in this
sandbox and at least one associated repository used by the
feature reports changes.isVisualBuilderEnabled
in interface SandboxInfoCache
isVisualBuilderEnabled
in class DefaultSandbox
true
if Visual Builder feature is enabled in this
sandbox and at least one associated repository used by the
eature reports changesAssociatedRepository
,
RepositoryAssociation