public class DefaultSandbox extends Sandbox
oracle.adf.share.sandbox.Sandbox.| Constructor and Description |
|---|
DefaultSandbox(java.lang.String id)
Constructs an instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
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.lang.String |
getId()
Gets the ID of this sandbox.
|
java.lang.String |
getName()
Gets the name of this sandbox.
|
SandboxLog |
getOperationLog()
Returns the log from the last sandbox operation.
|
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
|
MetadataRepositoryBaseline |
getRepositoryBaseline(java.lang.String reposId)
Gets the repository baseline of a repository branch in this sandbox.
|
java.util.Date |
getRepositoryBranchDate(java.lang.String reposId)
Returns the time when a repository was branched for this sandbox.
|
java.lang.String |
getRepositoryBranchId(java.lang.String reposId)
Returns the ID of the repository branch for this sandbox.
|
java.util.Date |
getRepositoryRefreshDate(java.lang.String reposId)
Returns the time when a sandboxed repository was last refreshed.
|
SandboxState |
getRepositoryState(java.lang.String reposId)
Gets the state of a repository in this 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 |
hasConflict()
Returns
true if the last refresh/publish of this sandbox
reported conflict. |
boolean |
isAdministrator(java.lang.String userName)
Returns
true if a user is an administrator of this sandbox. |
boolean |
isArchive()
Returns
true if the contents of this sandbox are from an
archive. |
boolean |
isFeatureEnabled(java.lang.String featureClassName)
Returns
true if a given feature is enabled in 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 |
isRepositoryBranched(java.lang.String reposId)
Returns
true if the specified repository is branched for
this sandbox. |
java.lang.String |
toString() |
addListener, fireRepositoryChanged, getBranchId, getListeners, getUserSandbox, removeListenerpublic DefaultSandbox(java.lang.String id)
id - the ID of the sandboxpublic boolean isArchive()
Sandboxtrue if the contents of this sandbox are from an
archive.public boolean hasConflict()
Sandboxtrue if the last refresh/publish of this sandbox
reported conflict.hasConflict in class Sandboxtrue if the contents of this sandbox are conflicting
with mainline.public boolean isPrivate()
Sandboxtrue if this sandbox is private. A private sandbox
can only be accessed by its owner.public boolean isPublishable()
Sandboxtrue if this sandbox is publishable. If a sandbox is
not publishable, it cannot be published.isPublishable in class Sandboxtrue if this sandbox is publishablepublic boolean isFeatureEnabled(java.lang.String featureClassName)
Sandboxtrue if a given feature is enabled in this sandbox.isFeatureEnabled in class SandboxfeatureClassName - the fully qualified name of the feature classtrue if the feature is enabled in this sandboxpublic boolean isRefreshNeeded()
Sandboxtrue if any participating repository needs to be
refreshed.isRefreshNeeded in class Sandboxtrue if any participating repository needs to be
refreshedpublic boolean isRefreshRequired()
Sandboxtrue 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 class Sandboxtrue if this sandbox requies refreshpublic MetadataRepositoryBaseline getRepositoryBaseline(java.lang.String reposId)
SandboxgetRepositoryBaseline in class SandboxreposId - the ID of the repositorynull if such information is unavailablepublic boolean isRepositoryBranched(java.lang.String reposId)
Sandboxtrue if the specified repository is branched for
this sandbox.isRepositoryBranched in class SandboxreposId - the ID of the repositorytrue if the specified repository is branched for
this sandboxpublic java.util.Date getRepositoryBranchDate(java.lang.String reposId)
SandboxgetRepositoryBranchDate in class SandboxreposId - the repository IDpublic java.lang.String getRepositoryBranchId(java.lang.String reposId)
SandboxgetRepositoryBranchId in class SandboxreposId - the ID of the repositorypublic java.util.Date getRepositoryRefreshDate(java.lang.String reposId)
SandboxgetRepositoryRefreshDate in class SandboxreposId - the repository IDpublic SandboxState getRepositoryState(java.lang.String reposId)
SandboxgetRepositoryState in class SandboxreposId - the repository IDpublic final java.lang.String getId()
Sandboxpublic java.lang.String getName()
Sandboxpublic java.lang.String getDescription()
SandboxgetDescription in class Sandboxpublic SandboxState getState()
Sandboxpublic java.util.Date getCreationDate()
SandboxgetCreationDate in class Sandboxpublic java.lang.String getCreatedBy()
SandboxgetCreatedBy in class Sandboxpublic java.util.Date getUpdateDate()
SandboxgetUpdateDate in class Sandboxpublic java.lang.String getUpdatedBy()
SandboxgetUpdatedBy in class Sandboxpublic java.util.Date getRefreshDate()
SandboxgetRefreshDate in class Sandboxnull if this sandbox has never been
updated since creationpublic java.lang.String getRefreshedBy()
SandboxgetRefreshedBy in class Sandboxnull if this sandbox has never been
refreshed since creationpublic SandboxLog getOperationLog()
SandboxgetOperationLog in class Sandboxnull if not
availablepublic java.util.Date getPublishDate()
SandboxgetPublishDate in class Sandboxnull if this sandbox is still activepublic java.lang.String getPublishedBy()
SandboxgetPublishedBy in class Sandboxpublic SandboxConstraints getConstraints()
SandboxgetConstraints in class Sandboxnull if
this sandbox does not have any constraintspublic boolean isAdministrator(java.lang.String userName)
Sandboxtrue if a user is an administrator of this sandbox.isAdministrator in class SandboxuserName - the user to be checkedtrue if the user is an administrator of this sandboxpublic java.lang.String toString()
toString in class java.lang.Object