Package org.openprovenance.prov.service
Class TemplateQuery
java.lang.Object
org.openprovenance.prov.service.TemplateQuery
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTemplateQuery(Querier querier, TemplateDispatcher templateDispatcher, Map<String, TemplateService.Linker> compositeLinker, com.fasterxml.jackson.databind.ObjectMapper om, Map<String, FileBuilder> documentBuilderDispatcher, String ioMapString) -
Method Summary
Modifier and TypeMethodDescriptionvoidandAccessControl(String principal, StringBuilder sb) computeHash(String template, int id, Object[] record) computeHash(String template, int id, List<Object[]> records) org.openprovenance.prov.model.DocumentconstructDocument(Map<String, FileBuilder> documentBuilderDispatcher, List<Object[]> the_records) voidgenerateViz(Integer id, String template, String property, Map<String, Map<String, String>> baseTypes, String principal, OutputStream out) voidjoinAccessControl(String template, String principal, StringBuilder sb) voidjoinAccessControl(String template, String principal, StringBuilder sb, String label, String id) makeSignatureMap(List<String> hash) queryComposite(String template, Integer id, boolean withTitles, String principal) querySimple(String template, Integer id, boolean withTitles, String principal) queryTemplates(TableKeyList tableKeyList, boolean withTitles, String principal) queryTemplatesRecords(SearchConfig config, String principal, boolean includeComposite) queryTemplatesRecordsById(String base_relation, Integer id, Integer limit, String principal) recursiveTraversal(Integer id, String template, String property, String principal) retrieveHash(String template, int id, String principal) voidvoidwhereAccessControl(String principal, StringBuilder sb)
-
Field Details
-
PARAM_ID
- See Also:
-
PARAM_PROPERTY
- See Also:
-
PARAM_TEMPLATE
- See Also:
-
IN_TEMPLATE
- See Also:
-
IN_PROPERTY
- See Also:
-
IN_ID
- See Also:
-
OUT_ID
- See Also:
-
OUT_TEMPLATE
- See Also:
-
OUT_PROPERTY
- See Also:
-
COMPOSITE_LINKER_COLUMNS
-
SHA_3_512
- See Also:
-
-
Constructor Details
-
TemplateQuery
public TemplateQuery(Querier querier, TemplateDispatcher templateDispatcher, Map<String, TemplateService.Linker> compositeLinker, com.fasterxml.jackson.databind.ObjectMapper om, Map<String, FileBuilder> documentBuilderDispatcher, String ioMapString)
-
-
Method Details
-
generateViz
-
computeHash
-
computeHash
-
updateHash
-
retrieveHash
-
makeSignatureMap
-
recursiveTraversal
-
constructDocument
public org.openprovenance.prov.model.Document constructDocument(Map<String, FileBuilder> documentBuilderDispatcher, List<Object[]> the_records) -
query
-
querySimple
-
whereAccessControl
-
andAccessControl
-
joinAccessControl
-
joinAccessControl
public void joinAccessControl(String template, String principal, StringBuilder sb, String label, String id) -
queryTemplatesRecords
public List<TemplateQuery.RecordEntry2> queryTemplatesRecords(SearchConfig config, String principal, boolean includeComposite) -
queryTemplatesRecordsById
-
queryComposite
-
queryTemplates
public List<Object[]> queryTemplates(TableKeyList tableKeyList, boolean withTitles, String principal) -
getIoMap
-
generateBackwardTemplateTraversal
-