Package de.espirit.firstspirit.storage
Class RevisionFilter
java.lang.Object
de.espirit.firstspirit.storage.RevisionFilter
This class provides useful revision filters e.g. for
Use
Project#getRevisions(..)
:
RELEASE_FILTER
CREATE_FILTER
DELETE_FILTER
MODIFY_FILTER
createRevisionFilter(de.espirit.firstspirit.storage.RevisionOperation.OperationType...)
createRevisionFilter(RevisionOperation.OperationType ... types)}
Use
Filter.Util
to combine filter.- Since:
- 4.0.124
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionThis filter accepts all revisions withoperations
belonging to create operations (CreateOperation
,ContentOperation
withcreated entities
This filter accepts all revisions withoperations
belonging to delete operations (DeleteOperation
,ContentOperation
withdeleted entities
This filter accepts all revisions withoperations
belonging to modify operations (ModifyOperation
,MoveOperation
,ContentOperation
withdeleted entities
This filter accepts all revisions withoperations
belonging to release operations (ReleaseOperation
,ServerReleaseOperation
,ContentOperation
withreleased entities
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateRevisionFilter
(RevisionOperation.OperationType... operationTypes) Returns a filter which accepts all revisions with arevision operation type
containing in given operationTypes.
-
Field Details
-
RELEASE_FILTER
This filter accepts all revisions withoperations
belonging to release operations (ReleaseOperation
,ServerReleaseOperation
,ContentOperation
withreleased entities
- Since:
- 4.0.124
- See Also:
-
CREATE_FILTER
This filter accepts all revisions withoperations
belonging to create operations (CreateOperation
,ContentOperation
withcreated entities
- Since:
- 4.0.124
- See Also:
-
DELETE_FILTER
This filter accepts all revisions withoperations
belonging to delete operations (DeleteOperation
,ContentOperation
withdeleted entities
- Since:
- 4.0.124
- See Also:
-
MODIFY_FILTER
This filter accepts all revisions withoperations
belonging to modify operations (ModifyOperation
,MoveOperation
,ContentOperation
withdeleted entities
- Since:
- 4.0.124
- See Also:
-
-
Constructor Details
-
RevisionFilter
public RevisionFilter()
-
-
Method Details
-
createRevisionFilter
public static Filter<Revision> createRevisionFilter(RevisionOperation.OperationType... operationTypes) Returns a filter which accepts all revisions with arevision operation type
containing in given operationTypes.- Parameters:
operationTypes
- the allowed operation types for the created filter- Returns:
- a filter accepting all revisions matching the given operation types
- Since:
- 4.0.124
-