Interface ReleaseOperation
public interface ReleaseOperation
Operation providing means to release
elements
on the server.- Since:
- 5.2.180606, 5.2.180702
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Interface representing the result of therelease operation
. -
Field Summary
Modifier and TypeFieldDescriptionstatic final OperationType<ReleaseOperation>
The operation's type. -
Method Summary
Modifier and TypeMethodDescription@NotNull ReleaseOperation
checkOnly
(boolean checkOnly) Defines if an release should actually be accomplished or only checked.@NotNull ReleaseOperation
dependentReleaseType
(IDProvider.DependentReleaseType dependentReleaseType) The dependent type specifying the behaviour for referenced elements of the given releaseStartNode (seeIDProvider.DependentReleaseType
for details).@NotNull ReleaseOperation
ensureAccessibility
(boolean ensureAccessibility) Iftrue
each element on the parent path of each element (except for datasets) will be released.@NotNull ReleaseOperation.ReleaseResult
perform
(@NotNull IDProvider... elements) Performs the operation and releases the givenelements
on the server.@NotNull ReleaseOperation.ReleaseResult
perform
(@NotNull Collection<IDProvider> elements) Performs the operation and releases the givenCollection
ofelements
on the server.@NotNull ReleaseOperation
recursive
(boolean recursive) Iftrue
the subtree of each element (except for datasets) will be released recursive.@NotNull ReleaseOperation
withComment
(@Nullable String comment) The release comment, may benull
.
-
Field Details
-
TYPE
The operation's type.- Since:
- 5.2.180606, 5.2.180702
-
-
Method Details
-
dependentReleaseType
@NotNull @NotNull ReleaseOperation dependentReleaseType(@Nullable IDProvider.DependentReleaseType dependentReleaseType) The dependent type specifying the behaviour for referenced elements of the given releaseStartNode (seeIDProvider.DependentReleaseType
for details). Ifnull
thenIDProvider.DependentReleaseType.NO_DEPENDENT_RELEASE
is used.- Parameters:
dependentReleaseType
- seeIDProvider.DependentReleaseType
- Returns:
- the current ReleaseOperation object
- Since:
- 5.2.180606, 5.2.180702
-
ensureAccessibility
Iftrue
each element on the parent path of each element (except for datasets) will be released.- Parameters:
ensureAccessibility
- iftrue
each element on the parent path of each element (except for datasets) will be released.- Returns:
- the current ReleaseOperation object
- Since:
- 5.2.180606, 5.2.180702
-
recursive
Iftrue
the subtree of each element (except for datasets) will be released recursive.- Parameters:
recursive
- iftrue
the subtree of each element (except for datasets) will be released recursive.- Returns:
- the current ReleaseOperation object
- Since:
- 5.2.180606, 5.2.180702
-
checkOnly
Defines if an release should actually be accomplished or only checked.- Parameters:
checkOnly
- iftrue
the release will only be checked- Returns:
- the current ReleaseOperation object
- Since:
- 5.2.180606, 5.2.180702
-
withComment
The release comment, may benull
.- Parameters:
comment
- the comment for this release- Returns:
- the current ReleaseOperation object
- Since:
- 5.2.180606, 5.2.180702
-
perform
@NotNull @NotNull ReleaseOperation.ReleaseResult perform(@NotNull @NotNull IDProvider... elements) throws Exception Performs the operation and releases the givenelements
on the server. Note that at least oneelement
must be given and all elements must be != null.- Parameters:
elements
- theelements
to be released- Returns:
- the result of this release operation
- Throws:
IllegalArgumentException
- if the amount of given elements is 0NullPointerException
- if one of the given elements is nullException
- if any server side error occurred during the operations execution- Since:
- 5.2.180606, 5.2.180702
-
perform
@NotNull @NotNull ReleaseOperation.ReleaseResult perform(@NotNull @NotNull Collection<IDProvider> elements) throws Exception Performs the operation and releases the givenCollection
ofelements
on the server. Note that at least oneelement
must be given and all elements must be != null.- Parameters:
elements
- the collectionelements
to be released- Returns:
- the result of this release operation
- Throws:
IllegalArgumentException
- if the amount of given elements is 0NullPointerException
- if one of the given elements is nullException
- if any server side error occurred during the operations execution- Since:
- 5.2.180606, 5.2.180702
-