com.hp.ucmdb.api.view
Interface View


@NotFinalAPI
public interface View

Represents a view defined on the uCMDB server or a new view to be executed or saved on the uCMDB server.

A view is a hierarchical presentation of a query result (Topology). This presentation omits all Relations and orders the CIs in a tree-like structure, which might or might not be a spanning tree over the topology. This structure may be defined in various ways - direct definition (using ViewWithFoldingDefinition), definition by reference (using SingleViewReferenceDefinition) or definition by multiple building blocks (PerspectiveBasedViewReferenceDefinition).

The view may be executed using the ViewService to get a the hierarchical presentation as a ViewResult object.

Note: If the view was created using ViewFactory.createView(String), the first call to either viewDefinition or viewVersion will result in a server call to fetch the view information.

Since:
8.0

Method Summary
 java.lang.String description()
          Deprecated. use viewDefinition().description();
 com.hp.ucmdb.api.view.foldingdefinition.FoldingDefinition foldingDefinition()
          Deprecated. use viewDefinition().asViewWithFoldingDefinition().foldingDefinition(). Check view type!
 java.lang.String getDescription()
          Deprecated. use viewDefinition().description();
 java.lang.String getName()
          Deprecated. use name();
 java.lang.String getQueryName()
          Deprecated. use viewDefinition().asViewWithFoldingDefinition().queryName(). Check view type!
 java.lang.String name()
          Returns the name of the view.
 java.lang.String queryName()
          Deprecated. use viewDefinition().asViewWithFoldingDefinition().queryName(). Check view type!
 ViewDefinition viewDefinition()
          Returns a client-side representation of the definition of the view on the server.
 ViewVersion viewVersion()
          Returns the version of this view as it was saved on the server.
 

Method Detail

name

java.lang.String name()
Returns the name of the view.


viewDefinition

ViewDefinition viewDefinition()
                              throws ViewDoesNotExistException
Returns a client-side representation of the definition of the view on the server. The returned object is used to run a view.

Modifying the returned object does not change the query definition stored in the UCMDB.

Returns:
the view definition as it was saved on the server.
Throws:
ViewDoesNotExistException - if the View object was created using ViewFactory.createView(String) and a view by the given name does exist on the server.

viewVersion

@NotFinalAPI
ViewVersion viewVersion()
Returns the version of this view as it was saved on the server. Versions are updated on save. Views or View object created from view definition (ViewDefinition.toView()) but not saved have a default version that is lower than all other versions.


foldingDefinition

@Deprecated
com.hp.ucmdb.api.view.foldingdefinition.FoldingDefinition foldingDefinition()
                                                                            throws ViewDoesNotExistException
Deprecated. use viewDefinition().asViewWithFoldingDefinition().foldingDefinition(). Check view type!

Throws:
ViewDoesNotExistException

getDescription

@Deprecated
java.lang.String getDescription()
Deprecated. use viewDefinition().description();


description

@Deprecated
java.lang.String description()
                             throws ViewDoesNotExistException
Deprecated. use viewDefinition().description();

Throws:
ViewDoesNotExistException

getQueryName

@Deprecated
java.lang.String getQueryName()
Deprecated. use viewDefinition().asViewWithFoldingDefinition().queryName(). Check view type!


queryName

@Deprecated
java.lang.String queryName()
                           throws ViewDoesNotExistException
Deprecated. use viewDefinition().asViewWithFoldingDefinition().queryName(). Check view type!

Throws:
ViewDoesNotExistException

getName

@Deprecated
java.lang.String getName()
Deprecated. use name();



Documentation Feedback
Copyright 2010 Hewlett-Packard Development Company, L.P.