@NotFinalAPI public interface QueryManagementService
Modifier and Type | Method and Description |
---|---|
Query |
deleteQuery(String queryName)
Deletes a query, query reference, or perspective application from the server.
|
Collection<? extends Query> |
getAllQueries()
Returns the entire queries list, including those not in the folders tree.
|
Map<String,Collection<String>> |
getAllQueriesBundleNames()
Returns a map from defined query name to a collection of its bundles' names.
|
Map<String,Collection<Query>> |
getAllQueriesFromBundles(Set<String> bundles)
Returns the entire queries list, including those not in the folders tree.
|
Map<String,Collection<String>> |
getBundleNamesToQueries()
Returns a map from name of bundle to the collection of its bundled queries.
|
Map<String,Collection<String>> |
getBundleNamesToQueries(Collection<String> bundleNames)
Returns a map from name of bundle to the collection of its bundled queries.
|
Map<String,Collection<String>> |
getBundleNamesToQueriesWithoutPermission(Collection<String> bundleNames)
Returns a map from name of bundle to the collection of its bundled queries without permissions.
|
TopologyQueryFactory |
getFactory() |
ResourceFolderTreeNode |
getFolderNode(List<String> folderPath,
String resourceType) |
FoldersManagementSubService<QueryFolder,Query> |
getQueriesFoldersSubService()
Returns the sub service for folder management.
|
QueryFolder |
getQueriesTree()
Returns the query folders tree.
|
ExecutableQuery |
getQueryDefinition(String queryName) |
QueryType |
getQueryType(String queryName) |
FolderResourcesGetResult |
getResourcesUnderFolder(List<String> folderPath,
String resourceType,
int start,
int limit,
boolean showEmptyFolder,
List<String> bundles) |
List<ResourceFolderTreeNode> |
getSearchResult(String queryString) |
QueryChangeResult |
modifyQuery(QueryChangeCommand queryChangeCommand)
Modifies an existing query according to the given command.
|
String |
registerQueryDependenciesChangeListener(QueryDependenciesChangeListener listener,
QueryManagementListenerFilter filter)
Registers a listener to be called when the dependencies of the query have changed.
|
String |
registerQueryManagementListener(QueryManagementListener listener,
QueryManagementListenerFilter filter)
Registers a listener to be called when query management change occurs.
|
Query |
saveMultipleReferencesWithFunctionDefinition(MultipleReferencesWithFunctionDefinition queryReferenceDefinition)
Deprecated.
|
void |
savePerspectiveApplication(String topLevelName,
List<Set<String>> perspectiveHierarhcy,
String seedQueryName,
QueryDefinitionRecalcPriority recalcPriority,
QueryDefinitionFirstLoadStrategy firstLoadStrategy)
Saves the perspective application of the perspective hierarchy over the seed query.
|
Query |
saveQuery(QueryDefinition queryDefinition)
Saves the query definition to the server, updating an existing query by the same name if such exists.
|
Query |
saveQuery(QueryReferenceDefinition<?> queryReferenceDefinition)
Saves the query reference definition to the server, updating an existing query by the same name if such exists.
|
Query |
saveQuery(String str)
Saves the query definition from XML string to the server, updating an existing query by the same name if such exists.
|
Query |
saveSingleQueryReferenceDefinition(SingleQueryReferenceDefinition queryReferenceDefinition)
Deprecated.
|
void |
unregisterQueryDependenciesChangeListener(String listenerId)
Unregisters the query dependencies change listener.
|
void |
unregisterQueryManagementListener(String listenerId)
Unregisters the query management listener.
|
void |
validateBulk(QueryValidationBulk bulk) |
DependsOnQuery |
whoDependsOn(String queryName) |
TopologyQueryFactory getFactory()
Query saveQuery(QueryDefinition queryDefinition)
queryDefinition
- the definition to save.Map.put(K, V)
).Query saveQuery(String str)
str
- the definition XML string to save.Map.put(K, V)
).Query saveQuery(QueryReferenceDefinition<?> queryReferenceDefinition)
queryReferenceDefinition
- the definition to save.Map.put(K, V)
).@Deprecated @NotFinalAPI Query saveSingleQueryReferenceDefinition(SingleQueryReferenceDefinition queryReferenceDefinition)
saveQuery(QueryReferenceDefinition)
@Deprecated @NotFinalAPI Query saveMultipleReferencesWithFunctionDefinition(MultipleReferencesWithFunctionDefinition queryReferenceDefinition)
saveQuery(QueryReferenceDefinition)
@NotFinalAPI void savePerspectiveApplication(String topLevelName, List<Set<String>> perspectiveHierarhcy, String seedQueryName, QueryDefinitionRecalcPriority recalcPriority, QueryDefinitionFirstLoadStrategy firstLoadStrategy)
PerspectiveContactable.setAsPerspectiveContact()
). A perspective contact node is restricted
by the "previous result" (see below) while the rest of the perspective is not restricted. This can allow
perspectives to enrich the "previous result" with more information.
Perspectives are executed in partial order, defined by a List of Set. Each perspective from a specific "level"
in the list (N) is restricted by the results of the unioned previous level (N-1). The results of all perspectives
from the level are then unioned with the results of the previous level.
The "zero-th" perspective "level" is the seed query.
The end result can be fetched by executing the query with the "top level name", which is the union of the top-most
perspective level.
All of the perspectives and the seed query name must be saved before this operation.
While it is possible to define recalculation priority and first load strategy, the actual recaculation priority and
first load strategy is the minimum of those given and those from the seed query.
You cannot parameterize a saved perspective application using ExecutableQuery.
topLevelName
- the name of the top level union query. This name should be used to execute the
perspective application.perspectiveHierarhcy
- the partial order of perspective query names.seedQueryName
- the seed query name.recalcPriority
- the recalculation prioirty of the entire perspective structure.firstLoadStrategy
- the first load strategy of the entire perspective structure.Query deleteQuery(String queryName)
queryName
- the query to delete.Map.remove(java.lang.Object)
).@NotFinalAPI QueryFolder getQueriesTree()
@NotFinalAPI Map<String,Collection<String>> getBundleNamesToQueries()
@NotFinalAPI Map<String,Collection<String>> getBundleNamesToQueries(Collection<String> bundleNames)
@NotFinalAPI Map<String,Collection<String>> getBundleNamesToQueriesWithoutPermission(Collection<String> bundleNames)
@NotFinalAPI Map<String,Collection<String>> getAllQueriesBundleNames()
@NotFinalAPI Collection<? extends Query> getAllQueries()
@NotFinalAPI Map<String,Collection<Query>> getAllQueriesFromBundles(Set<String> bundles)
bundles
- the names of the bundles@NotFinalAPI FoldersManagementSubService<QueryFolder,Query> getQueriesFoldersSubService()
@NotFinalAPI String registerQueryManagementListener(QueryManagementListener listener, QueryManagementListenerFilter filter)
listener
- a listener to be called when a query management change occurs.filter
- filters query management changes.@NotFinalAPI void unregisterQueryManagementListener(String listenerId)
listenerId
- registration ID of the listener@NotFinalAPI String registerQueryDependenciesChangeListener(QueryDependenciesChangeListener listener, QueryManagementListenerFilter filter)
listener
- a listener to be called when the dependencies of the query have changed.filter
- filters the changes by name and/or bundles of a root resource (dependent).@NotFinalAPI void unregisterQueryDependenciesChangeListener(String listenerId)
listenerId
- registration ID of the listener@NotFinalAPI QueryChangeResult modifyQuery(QueryChangeCommand queryChangeCommand)
queryChangeCommand
- the command. Can be created using TopologyQueryFactory.createQueryChangeCommand(String)
.ExecutionException
- if the change could not be made.@NotFinalAPI DependsOnQuery whoDependsOn(String queryName)
@NotFinalAPI void validateBulk(QueryValidationBulk bulk)
@NotFinalAPI QueryType getQueryType(String queryName)
ExecutableQuery getQueryDefinition(String queryName)
List<ResourceFolderTreeNode> getSearchResult(String queryString)
FolderResourcesGetResult getResourcesUnderFolder(List<String> folderPath, String resourceType, int start, int limit, boolean showEmptyFolder, List<String> bundles)
ResourceFolderTreeNode getFolderNode(List<String> folderPath, String resourceType)
Documentation Feedback
Copyright 2011 - 2018 Micro Focus or one of its affiliates.