-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
48dba3f
commit 445a43c
Showing
18 changed files
with
92 additions
and
98 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
5 changes: 5 additions & 0 deletions
5
stroom-pipeline/src/main/java/stroom/pipeline/xsltfunctions/PlanBLookup.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,5 @@ | ||
package stroom.pipeline.xsltfunctions; | ||
|
||
public interface PlanBLookup extends StateLookupProvider { | ||
|
||
} |
32 changes: 1 addition & 31 deletions
32
stroom-pipeline/src/main/java/stroom/pipeline/xsltfunctions/StateLookup.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 |
---|---|---|
@@ -1,35 +1,5 @@ | ||
package stroom.pipeline.xsltfunctions; | ||
|
||
import stroom.pipeline.refdata.LookupIdentifier; | ||
import stroom.pipeline.refdata.ReferenceDataResult; | ||
public interface StateLookup extends StateLookupProvider { | ||
|
||
import jakarta.inject.Inject; | ||
|
||
import java.util.Set; | ||
|
||
public class StateLookup { | ||
|
||
private final Set<StateLookupProvider> providers; | ||
|
||
@Inject | ||
StateLookup(final Set<StateLookupProvider> providers) { | ||
this.providers = providers; | ||
} | ||
|
||
/** | ||
* <p> | ||
* Given a {@link LookupIdentifier} and a store doc ref, ensure that | ||
* the data required to perform the lookup is in the ref store. This method will not | ||
* perform the lookup, instead it will populate the {@link ReferenceDataResult} with | ||
* a proxy object that can later be used to do the lookup. | ||
* </p> | ||
* | ||
* @param docRef A reference to the state doc. | ||
* @param lookupIdentifier The identifier to lookup in the reference data | ||
* @param result The reference result object containing the proxy object for performing the lookup | ||
*/ | ||
public void lookup(LookupIdentifier lookupIdentifier, | ||
ReferenceDataResult result) { | ||
providers.forEach(provider -> provider.lookup(lookupIdentifier, result)); | ||
} | ||
} |
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
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
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
Oops, something went wrong.