Interface DataspaceSet
- All Known Subinterfaces:
ActivationContextOnAssociation
,ActivationContextOnAssociationRecord
,ActivationContextOnDataset
,ActivationContextOnDataspace
,ActivationContextOnHierarchy
,ActivationContextOnHierarchyNode
,ActivationContextOnRecord
,ActivationContextOnTableView
,ActivationContextWithDatasetSet<S>
,ActivationContextWithSchemaNodeSet<S>
,BeanFacetDataspaceSet
By default, if no include/exclude is provided, the set contains all the opened non-technical branches of the repository. As soon as an exclude restriction is set, an include restriction must also be specified.
It is worth noticing that the order of the declaration of the includes/excludes does not matter.
- Since:
- 5.8.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
Inclusion policies for the children of a current dataspace in a current subset.static enum
Defines all the types that a dataspace can be. -
Method Summary
Modifier and TypeMethodDescriptionvoid
excludeDataspacesMatching
(HomeKey aHomeKey, DataspaceSet.DataspaceChildrenPolicy aChildrenPolicy) From the set of dataspaces created thanks to the include methods, excludes the dataspace matching the given key and its descendants according to the provided children policy.void
excludeDataspacesMatching
(Pattern aPattern, DataspaceSet.DataspaceType aType, DataspaceSet.DataspaceChildrenPolicy aChildrenPolicy) From the set of dataspaces created thanks to the include methods, excludes the dataspaces matching the specified pattern of the specified type, and its descendants according to the provided children policy.void
Includes all the dataspaces of the specified type.void
includeDataspacesMatching
(HomeKey aHomeKey, DataspaceSet.DataspaceChildrenPolicy aChildrenPolicy) Includes the dataspace matching the given key and its descendants according to the provided children policy.void
includeDataspacesMatching
(Pattern aPattern, DataspaceSet.DataspaceType aType, DataspaceSet.DataspaceChildrenPolicy aChildrenPolicy) Includes the dataspaces matching the specified pattern of the specified type, and its descendants according to the provided children policy.void
setIgnoreDataspacesDefaultExcludes
(boolean ignoreDefaultExcludes) By default, the reserved branches and snapshots are not taken into account by the includes and excludes.
-
Method Details
-
includeAllDataspaces
Includes all the dataspaces of the specified type.Nevertheless, it is still possible to exclude a subset of dataspaces thanks to the methods
excludeDataspacesMatching(HomeKey, DataspaceChildrenPolicy)
orexcludeDataspacesMatching(Pattern, DataspaceType, DataspaceChildrenPolicy)
.Reserved branches and snapshots won't be included until
setIgnoreDataspacesDefaultExcludes(boolean)
is called. -
includeDataspacesMatching
void includeDataspacesMatching(HomeKey aHomeKey, DataspaceSet.DataspaceChildrenPolicy aChildrenPolicy) Includes the dataspace matching the given key and its descendants according to the provided children policy.Nevertheless, it is still possible to exclude a subset of dataspaces thanks to the methods
excludeDataspacesMatching(HomeKey, DataspaceChildrenPolicy)
orexcludeDataspacesMatching(Pattern, DataspaceType, DataspaceChildrenPolicy)
.Reserved branches and snapshots won't be included until
setIgnoreDataspacesDefaultExcludes(boolean)
is called.- Parameters:
aHomeKey
- the home key which will be included.aChildrenPolicy
- the policy that will be applied to the matching dataspaces.
-
includeDataspacesMatching
void includeDataspacesMatching(Pattern aPattern, DataspaceSet.DataspaceType aType, DataspaceSet.DataspaceChildrenPolicy aChildrenPolicy) Includes the dataspaces matching the specified pattern of the specified type, and its descendants according to the provided children policy.Nevertheless, it is still possible to exclude an subset of dataspaces thanks to the method
excludeDataspacesMatching(HomeKey, DataspaceChildrenPolicy)
orexcludeDataspacesMatching(Pattern, DataspaceType, DataspaceChildrenPolicy)
.Reserved branches and snapshots won't be included until
setIgnoreDataspacesDefaultExcludes(boolean)
is called.- Parameters:
aPattern
- the pattern that will be applied.aType
- the type of dataspaces that must match.aChildrenPolicy
- the policy applied to the children.
-
excludeDataspacesMatching
void excludeDataspacesMatching(HomeKey aHomeKey, DataspaceSet.DataspaceChildrenPolicy aChildrenPolicy) From the set of dataspaces created thanks to the include methods, excludes the dataspace matching the given key and its descendants according to the provided children policy.- Parameters:
aHomeKey
- the home key which will be excluded.aChildrenPolicy
- the policy that will be applied to the matching dataspaces. Note that ifaHomeKey
targets a dataspace, the associated initial snapshot is not concerned by this exclude children policy.- See Also:
-
excludeDataspacesMatching
void excludeDataspacesMatching(Pattern aPattern, DataspaceSet.DataspaceType aType, DataspaceSet.DataspaceChildrenPolicy aChildrenPolicy) From the set of dataspaces created thanks to the include methods, excludes the dataspaces matching the specified pattern of the specified type, and its descendants according to the provided children policy.- Parameters:
aPattern
- the pattern that will be applied.aType
- the type of dataspaces that must match.aChildrenPolicy
- the policy applied to the children.- See Also:
-
setIgnoreDataspacesDefaultExcludes
void setIgnoreDataspacesDefaultExcludes(boolean ignoreDefaultExcludes) By default, the reserved branches and snapshots are not taken into account by the includes and excludes. This method allows to override this default behavior.- Parameters:
ignoreDefaultExcludes
-false
by default. Set totrue
so that the reserved branches and snapshots are no longer excluded.
-