|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ViewService
Provides viewing system services.
Method Summary | |
---|---|
View |
createViewStub(java.lang.String viewName)
Creates a View - a "stub" that holds the view name and allows retrieval of the view definition. |
boolean |
deleteView(java.lang.String viewName)
Deletes a view identified by viewName from the UCMDB. |
com.hp.ucmdb.api.view.result.ViewResult |
executeView(java.lang.String viewName)
Executes a view identified in the UCMDB by the view name and returns the result. |
com.hp.ucmdb.api.view.result.ViewResult |
executeView(java.lang.String viewName,
ViewExecutionOptions options)
Executes a view identified in the UCMDB by the view name and returns the result. |
com.hp.ucmdb.api.view.result.ViewResult |
executeView(View view)
Executes the given view and returns the result. |
com.hp.ucmdb.api.view.result.ViewResult |
executeView(View view,
ViewExecutionOptions options)
Executes the given view and returns the result. |
com.hp.ucmdb.api.view.result.ViewResult |
executeViewDefinition(ViewDefinition viewDefinition,
ExecutableQuery query)
Executes the given view definition and returns the result. |
com.hp.ucmdb.api.view.result.ViewResult |
executeViewDefinition(ViewDefinition viewDefinition,
ExecutableQuery query,
ViewExecutionOptions options)
Executes the given view definition and returns the result. |
java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> |
getAllViewsBundleNames()
Returns a map between each bundle name that contains views to a collection of its bundled views. |
java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> |
getBundleNamesToViews()
Returns a map between each bundle name that contains views to a collection of its bundled views. |
ViewFactory |
getFactory()
|
FoldersManagementSubService<ViewFolder,View> |
getViewsFoldersSubService()
Returns the sub service regarding folder management. |
ViewFolder |
getViewTree()
Queries the whole views tree organized in folder structure. |
java.util.Set<java.lang.String> |
hasChanges(java.util.Map<java.lang.String,com.hp.ucmdb.api.view.result.ViewResultVersion> views2check)
Returns a set of view names for which: the results of the query under it were changed since the result version was created, the view definition creating it was changed, or the query definition under it was changed. |
boolean |
hasChanges(java.lang.String viewName,
java.lang.String viewResultVersionAsString)
Same as hasChanges(String, ViewResultVersion) , but accepts the result of {ViewResultVersion#asString()}. |
boolean |
hasChanges(java.lang.String viewName,
com.hp.ucmdb.api.view.result.ViewResultVersion viewResultVersion)
Returns true if the results of the query under the given view were changed since the result version was created, if the view definition creating this view was changed, or if the query definition under the view definition was changed. |
java.lang.String |
registerViewDependenciesChangeListener(ViewDependenciesChangeListener listener,
ViewManagementListenerFilter filter)
Registers a listener to be called when a change occurs in view dependencies |
java.lang.String |
registerViewManagementListener(ViewManagementListener listener,
ViewManagementListenerFilter filter)
Registers a listener to be called when view management change occurs. |
void |
saveView(ViewDefinition viewDefinition)
Saves the view definition to the server, updating an existing view by the same name if such exists. |
ViewDefinition |
stringToViewDefinition(java.lang.String str)
Given a string created by viewDefinitionToString(com.hp.ucmdb.api.view.ViewDefinition) , this methods returns a copy of the original
ViewDefinition. |
void |
unregisterViewDependenciesChangeListener(java.lang.String listenerId)
Unregisters the specified view dependencies change listener. |
void |
unregisterViewManagementListener(java.lang.String listenerId)
Unregisters the specified view management listener. |
void |
validateBulk(ViewValidationBulk bulk)
|
java.lang.String |
viewDefinitionToString(ViewDefinition viewDefinition)
Given a ViewDefinition this method returns the view's string representation. |
DependsOnView |
whoDependsOn(java.lang.String viewName)
|
Method Detail |
---|
ViewFactory getFactory()
View createViewStub(java.lang.String viewName)
View
for details.
ViewFolder getViewTree()
com.hp.ucmdb.api.view.result.ViewResult executeView(java.lang.String viewName)
ViewExecutionOptions
for details.
com.hp.ucmdb.api.view.result.ViewResult executeView(java.lang.String viewName, ViewExecutionOptions options)
@NotFinalAPI com.hp.ucmdb.api.view.result.ViewResult executeView(View view)
ViewExecutionOptions
for details.
@NotFinalAPI com.hp.ucmdb.api.view.result.ViewResult executeView(View view, ViewExecutionOptions options)
@NotFinalAPI com.hp.ucmdb.api.view.result.ViewResult executeViewDefinition(ViewDefinition viewDefinition, ExecutableQuery query)
ViewExecutionOptions
for details.
If a PerspectiveBasedViewReferenceDefinition is passed, the specified
ExecutableQuery is ignored.
@NotFinalAPI com.hp.ucmdb.api.view.result.ViewResult executeViewDefinition(ViewDefinition viewDefinition, ExecutableQuery query, ViewExecutionOptions options)
@NotFinalAPI void saveView(ViewDefinition viewDefinition)
viewDefinition
- the definition to save.@NotFinalAPI boolean deleteView(java.lang.String viewName)
viewName
from the UCMDB.
If the view is a perspective based view, the entire (auto-generated) perspective instances hierarhcy is deleted.
@NotFinalAPI FoldersManagementSubService<ViewFolder,View> getViewsFoldersSubService()
@NotFinalAPI java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> getBundleNamesToViews()
@NotFinalAPI java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> getAllViewsBundleNames()
@NotFinalAPI java.lang.String registerViewManagementListener(ViewManagementListener listener, ViewManagementListenerFilter filter)
listener
- a listener to be called when a view management change occursfilter
- filters view management changes
@NotFinalAPI void unregisterViewManagementListener(java.lang.String listenerId)
listenerId
- registration ID of the listener@NotFinalAPI java.lang.String registerViewDependenciesChangeListener(ViewDependenciesChangeListener listener, ViewManagementListenerFilter filter)
listener
- a listener to be called when a view management change occursfilter
- filters the changes by name and/or bundles of a root view (dependent)
@NotFinalAPI void unregisterViewDependenciesChangeListener(java.lang.String listenerId)
listenerId
- registration ID of the listener@NotFinalAPI boolean hasChanges(java.lang.String viewName, com.hp.ucmdb.api.view.result.ViewResultVersion viewResultVersion)
TopologyQueryService.hasChanges(java.lang.String, com.hp.ucmdb.api.topology.QueryResultVersion)
However, this method:
TopologyQueryService.hasChanges
apply to this method.
viewName
- the view whose query is to be checked.viewResultVersion
- the version to check changes from.
@NotFinalAPI java.util.Set<java.lang.String> hasChanges(java.util.Map<java.lang.String,com.hp.ucmdb.api.view.result.ViewResultVersion> views2check)
TopologyQueryService.hasChanges
apply to this method.
views2check
- view names whose query is to be checked.
@NotFinalAPI boolean hasChanges(java.lang.String viewName, java.lang.String viewResultVersionAsString)
hasChanges(String, ViewResultVersion)
, but accepts the result of {ViewResultVersion#asString()}.
viewName
- the view whose query is to be checked.viewResultVersionAsString
- the asString() result of the version to check changes from.
hasChanges(String, ViewResultVersion)
@NotFinalAPI DependsOnView whoDependsOn(java.lang.String viewName)
@NotFinalAPI void validateBulk(ViewValidationBulk bulk)
java.lang.String viewDefinitionToString(ViewDefinition viewDefinition) throws UcmdbException
ViewDefinition
this method returns the view's string representation.
The conversion from ViewDefinition
to string is done in the
server, requiring a server request.
This string representation is not guaranteed to be version compatible and should not be serialized
for long term storage.
viewDefinition
- - the view definition to convert
UcmdbException
ViewDefinition stringToViewDefinition(java.lang.String str) throws UcmdbException
viewDefinitionToString(com.hp.ucmdb.api.view.ViewDefinition)
, this methods returns a copy of the original
ViewDefinition.
The actual conversion from string to ViewDefinition
is done
in the server, requiring a server request.
str
- - view's string representation
UcmdbException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |