-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move custom processing of search updates to EnforcementFlow to allow …
…usage of the available thing json data in the extension, add reason to search update metadata (e.g. if it was caused by thing update or background sync) Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch.io>
- Loading branch information
Showing
13 changed files
with
170 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
...main/java/org/eclipse/ditto/thingsearch/service/persistence/write/model/UpdateReason.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* Copyright (c) 2021 Contributors to the Eclipse Foundation | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information regarding copyright ownership. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0 | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
package org.eclipse.ditto.thingsearch.service.persistence.write.model; | ||
|
||
/** | ||
* Describes the reason why a thing is being updated in the search index. | ||
*/ | ||
public enum UpdateReason { | ||
|
||
/** | ||
* The policy referenced by a thing was updated. | ||
*/ | ||
POLICY_UPDATE, | ||
/** | ||
* The thing is indexed as part of a manual re-indexing. | ||
*/ | ||
MANUAL_REINDEXING, | ||
/** | ||
* The thing is indexed as part of the automatic background sync. | ||
*/ | ||
BACKGROUND_SYNC, | ||
/** | ||
* The thing was updated. | ||
*/ | ||
THING_UPDATE, | ||
/** | ||
* Reason not known. | ||
*/ | ||
UNKNOWN | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.