Interface DeleteOperation
public interface DeleteOperation
Operation providing means to delete
elements
on the server.- Since:
- 5.2.1804
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Interface representing the result of thedelete operation
. -
Field Summary
Modifier and TypeFieldDescriptionstatic final OperationType<DeleteOperation>
The operation's type. -
Method Summary
Modifier and TypeMethodDescription@NotNull DeleteOperation
ignoreIncomingReferences
(boolean ignoreIncomingReferences) Sets whether incoming references should be ignored when deleting elements or not.@NotNull DeleteOperation.Result
perform
(@NotNull IDProvider... elements) Performs the operation and deletes the given elements on the server.
-
Field Details
-
TYPE
The operation's type.- Since:
- 5.2.1804
-
-
Method Details
-
ignoreIncomingReferences
Sets whether incoming references should be ignored when deleting elements or not.
If set tofalse
, incoming references will be checked and trying to delete elements with incoming references will fail. Those elements will be contained inDeleteOperation.Result.getReferencedElements()
.
If set totrue
, incoming references will be ignored during the deletion process.default: false = do NOT ignore references
- Since:
- 5.2.1804
-
perform
@NotNull @NotNull DeleteOperation.Result perform(@NotNull @NotNull IDProvider... elements) throws Exception Performs the operation and deletes the given elements on the server. Note that at least one element must be the given and all elements must be != null.- 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.1804
-