Class AdaptationHome
Note: In previous versions, a dataspace was known as a branch, and a snapshot was known as a version.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the specified dataset or record based on itsAdaptationName.findAllChildren(Adaptation aDataSetOrRecord) Returns a list of all datasets or records that are direct children of the one specified.findAllDescendants(Adaptation aDataSetOrRecord) Returns a list of all the datasets and records that inherit from the one specified, either as direct children or as descendants (recursive).Returns all the dataset roots of thisAdaptationHome.findParent(Adaptation aDataSetOrRecord) Deprecated.Returns the dataspaces which have been created from thisAdaptationHome.Returns the creation date of this dataspace or snapshot.Returns the creator profile of this dataspace or snapshot in the current repository.Returns the internationalized description of this dataspace or snapshot.getDescription(Locale aLocale) Returns the description of this dataspace or snapshot for a given locale.getKey()Returns the key that identifies this dataspace or snapshot in the current repository.getLabel()Returns the internationalized label of this dataspace or snapshot.Returns the label of this dataspace or snapshot for a given locale.getLabelOrName(Locale aLocale) Returns the label of this dataspace or snapshot for a given locale.Returns the internationalized label of this dataspace or snapshot.getOwner()Returns the owner profile of this dataspace or snapshot in the current repository.Returns the parent dataspace of thisAdaptationHome.Returns the parent dataspace or snapshot of thisAdaptationHome.Returns the repository that contains thisAdaptationHome.Returns the date this dataspace or snapshot was closed, if it is closed.getValidationReportsMap(Severity minimalSeverity) Returns a map of all validation reports of datasets in thisAdaptationHomethat have at least one validation item of the specified severity or higher.Returns the snapshots which have been created from thisAdaptationHome.booleanisAncestorOf(AdaptationHome anotherHome) Returnstrueif thisAdaptationHomeis an ancestor of the specifiedAdaptationHome(theAdaptationHomeitself is excluded).booleanisBranch()Returnstrueif thisAdaptationHomeis a dataspace.booleanbooleanReturnstrueif thisAdaptationHomeis an initial snapshot of a dataspace.booleanReturnstrueif thisAdaptationHomeis a locked dataspace.booleanReturnstrueif thisAdaptationHomeis marked for history purge.booleanDeprecated.booleanisOpen()Returnstrueif thisAdaptationHomeis either an open snapshot or an open dataspace.booleanReturnstrueif thisAdaptationHomeis an open dataspace.booleanReturnstrueif thisAdaptationHomeis an open snapshot.final booleanReturnstrueif thisAdaptationHomeis a technical dataspace.final booleanReturnstrueif thisAdaptationHomeis a technical snapshot.booleanReturnstrueif thisAdaptationHomeis a snapshot.final voidResets the validation reports of the datasets contained in this dataspace.final StringtoDisplayString(Locale aLocale) Returns a user-friendly string that specifies the type of this object, for example, "Dataspace <key>" or "Snapshot <key>".toString()
-
Method Details
-
findAdaptationOrNull
Returns the specified dataset or record based on itsAdaptationName. Returnsnullif it cannot be found.- See Also:
-
findParent
Deprecated.Replaced byAdaptation.getParent(). -
findAllChildren
Returns a list of all datasets or records that are direct children of the one specified. -
findAllDescendants
Returns a list of all the datasets and records that inherit from the one specified, either as direct children or as descendants (recursive). -
findAllRoots
Returns all the dataset roots of thisAdaptationHome.- See Also:
-
getKey
Returns the key that identifies this dataspace or snapshot in the current repository. -
getOwner
Returns the owner profile of this dataspace or snapshot in the current repository. -
getCreator
Returns the creator profile of this dataspace or snapshot in the current repository.Returns
nullif no creator is defined. For example, technical reserved branches are created by the 'System User'. -
getLabel
Returns the internationalized label of this dataspace or snapshot.Returns
nullif no labels are defined in any language. -
getLabel
Returns the label of this dataspace or snapshot for a given locale. Returnsnullif no label is defined for the locale provided. -
getLabelOrName
Returns the label of this dataspace or snapshot for a given locale. Returns the key name if no label is defined for the locale provided. -
getLabelOrNameAsUserMessage
Returns the internationalized label of this dataspace or snapshot. Returns the key name if no labels are defined in any locale. -
getDescription
Returns the internationalized description of this dataspace or snapshot.Returns
nullif no descriptions are defined in any language. -
getDescription
Returns the description of this dataspace or snapshot for a given locale. Returnsnullif no description is defined for the locale provided. -
getCreationDate
Returns the creation date of this dataspace or snapshot. -
getTerminationDate
Returns the date this dataspace or snapshot was closed, if it is closed.Returns
nullif the dataspace or snapshot is open. -
getParent
Returns the parent dataspace of thisAdaptationHome. Returnsnullif this is thereference dataspace.For a dataspace, its parent is always its initial snapshot. For a snapshot, its parent is always its parent dataspace.
-
getParentBranch
Returns the parent dataspace or snapshot of thisAdaptationHome. Returnsnullif thisAdaptationHomeis thereference dataspace.Note: For a dataspace, its direct parent is its initial snapshot, hence its parent dataspace is the parent of this initial snapshot. For a snapshot, its parent dataspace is its direct parent.
- See Also:
-
getBranchChildren
Returns the dataspaces which have been created from thisAdaptationHome.Note: A dataspace has no direct dataspace children; when a dataspace is created from another dataspace, first an initial snapshot is created, then the new dataspace is created from this initial snapshot.
- See Also:
-
getVersionChildren
Returns the snapshots which have been created from thisAdaptationHome.A snapshot is always created from a dataspace.
- See Also:
-
getRepository
Returns the repository that contains thisAdaptationHome. -
isBranch
public boolean isBranch()Returnstrueif thisAdaptationHomeis a dataspace. -
isBranchReference
public boolean isBranchReference() -
isOpenBranch
public boolean isOpenBranch()Returnstrueif thisAdaptationHomeis an open dataspace. -
isOpenVersion
public boolean isOpenVersion()Returnstrueif thisAdaptationHomeis an open snapshot. -
isOpen
public boolean isOpen()Returnstrueif thisAdaptationHomeis either an open snapshot or an open dataspace. -
isLockedBranch
public boolean isLockedBranch()Returnstrueif thisAdaptationHomeis a locked dataspace.- See Also:
-
isMarkedForPurge
Deprecated.Always returnsfalse. -
isMarkedForHistoryPurge
public boolean isMarkedForHistoryPurge()Returnstrueif thisAdaptationHomeis marked for history purge. -
isAncestorOf
Returnstrueif thisAdaptationHomeis an ancestor of the specifiedAdaptationHome(theAdaptationHomeitself is excluded). -
isVersion
public boolean isVersion()Returnstrueif thisAdaptationHomeis a snapshot. -
isInitialVersion
public boolean isInitialVersion()Returnstrueif thisAdaptationHomeis an initial snapshot of a dataspace.When a dataspace is created from another dataspace, first an initial snapshot is created, then the new dataspace is created from this initial snapshot.
- See Also:
-
toDisplayString
Returns a user-friendly string that specifies the type of this object, for example, "Dataspace <key>" or "Snapshot <key>".- See Also:
-
toString
-
getValidationReportsMap
Returns a map of all validation reports of datasets in thisAdaptationHomethat have at least one validation item of the specified severity or higher.Since this method calls
Adaptation.getValidationReport(false)on each dataset, it does not require the datasets to be activated.The rules for ensuring that data in EBX® remains valid, with respect to potential concurrent updates, are explained in section Consistency and validation.
- Returns:
- a map whose keys are
AdaptationNames and valuesValidationReports - See Also:
-
resetValidationReports
public final void resetValidationReports()Resets the validation reports of the datasets contained in this dataspace.- Since:
- 5.9.0
- See Also:
-
isTechnicalBranch
public final boolean isTechnicalBranch()Returnstrueif thisAdaptationHomeis a technical dataspace. A technical dataspace is used internally used by EBX®, and cannot be closed or merged. -
isTechnicalVersion
public final boolean isTechnicalVersion()Returnstrueif thisAdaptationHomeis a technical snapshot. A snapshot is technical if it is a snapshot of a technical dataspace.- See Also:
-
Adaptation.getParent().