|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IInfoStore
IInfoStore represents the BusinessObjects Enterprise InfoStore service.
The InfoStore service provides access to the contents of the BusinessObjects Enterprise repository, in which objects
(or references to objects), such as reports and folders, are stored. The InfoStore service is used to store, remove,
schedule and move objects in the repository.
Note: This object is serializable and can be used in environments
that support fail-over.
To ensure the object can be recreated in the event of an application server
failure, use a session variable to persist the object across pages. The
object can then be retrieved from the session variable from any server in
the cluster.
| Method Summary | |
|---|---|
void |
commit(IInfoObjects objects)
Commits to the CMS any changes that are made to InfoObject collections. |
void |
commit(IInfoObjects objects,
boolean atomic)
Commits to the CMS any changes that are made to InfoObject collections. |
ICommitResult |
commit(IInfoObjects objects,
boolean atomic,
CommitMode mode)
Commits to the CMS any changes that are made to InfoObject collections using the commit mode specified. |
ICommitResult |
commit(IInfoObjects objects,
boolean atomic,
CommitMode mode,
java.lang.String renamePattern)
|
ICMSQuery |
createCMSQuery(java.lang.String initQuery)
Creates an ICMSQuery object that represents a CMS query string, but provides
advanced functionality to retrieve large results in 'pages', and the ability to manage the
lifetime of the query's result cache on the CMS. |
ICMSQuery |
createCMSQuery(java.lang.String initQuery,
boolean maintainTopN)
Creates an ICMSQuery object that represents a CMS query string, but provides
advanced functionality to retrieve large results in 'pages', and the ability to manage the
lifetime of the query's result cache on the CMS. |
void |
deliverToInbox(IInfoObjects objects)
Delivers the objects to inboxes of specified principals. |
IInfoObjects |
find(int propertySet,
SearchPattern searchPattern,
SortType sortType)
Searches through the repository with the specified pattern. |
int |
getBatchExpiryTimeSeconds()
Gets the batch expiry time that will be used for commits |
IFolder |
getMyFavoritesFolder()
Retrieves the user's favorite folder. |
IInbox |
getMyInbox()
Retrieves the user's inbox folder. |
ICategory |
getMyPersonalCategory()
Retrieves the users' personal category in the system. |
IPagingQuery |
getPagingQuery()
Deprecated. Since 4.0. CMS now supports paged queries, use ICMSQuery instead. |
IPageResult |
getPagingQuery(java.lang.String uri,
PagingQueryOptions options)
Executes the specified URI query, and returns a page result object. |
IPluginMgr |
getPluginMgr()
Returns the PluginManager object that is being used by the InfoStore. |
int |
getSessionFolderID()
|
IStatelessPageInfo |
getStatelessPageInfo(java.lang.String uri,
PagingQueryOptions options)
Retrieves a subsequent page's info passing in the page index representing the page desired. |
IStreamingQuery |
getStreamingQuery(java.lang.String query)
Getting streaming query support to stream the query result out |
ICategoryPager |
getTopCategories()
Retrieves a pager for all categories in the system. |
ICategoryPager |
getTopCategories(int propertySet,
SearchPattern searchPattern,
SortType sortType)
Retrieves a pager for categories in the system. |
IFolderPager |
getTopFolders()
Retrieves a pager for the top level folders |
IFolderPager |
getTopFolders(int propertySet,
SearchPattern searchPattern,
SortType sortType)
Retrieves a pager for top folders in the system. |
IInfoObjects |
newInfoObjectCollection()
Creates a new, empty InfoObjects collection. |
IProperties |
newPropertyCollection()
Creates a new, empty, property bag. |
IInfoObjects |
query(ICMSQuery query)
|
IInfoObjects |
query(java.lang.String query)
Executes a query against the CMS. |
IInfoObjects[] |
query(java.lang.String[] queries)
Executes queries against the CMS. |
void |
schedule(IInfoObjects objects)
Creates runnable instances for every object in the collection. |
void |
sendTo(IInfoObjects objects)
Sends the objects to the destination specified. |
void |
setBatchExpiryTimeSeconds(int batchExpiryTimeSeconds)
Use for setting the batch expiry time for commits. |
| Method Detail |
|---|
void commit(IInfoObjects objects)
throws SDKException
CommitMode.STRICT mode is used for this commit.
objects - The InfoObjects collection for which changes are to be committed.
SDKException - This is thrown if the Commit is unsuccessful.
void commit(IInfoObjects objects,
boolean atomic)
throws SDKException
CommitMode.STRICT mode is used for this commit.
objects - The InfoObjects collection for which changes are to be committed.atomic - True for batch commit, false for non-batch commit.
SDKException - This is thrown if the Commit is unsuccessful.
ICommitResult commit(IInfoObjects objects,
boolean atomic,
CommitMode mode)
objects - The InfoObjects collection for which changes are to be committed.atomic - True for batch commit, false for non-batch commit.mode - CommitMode specifies the commit mode to be used.
ICommitResult that contains information on any errors or warnings that occurred during the commit.
ICommitResult commit(IInfoObjects objects,
boolean atomic,
CommitMode mode,
java.lang.String renamePattern)
IInfoObjects newInfoObjectCollection()
IInfoObjects object.IProperties newPropertyCollection()
IProperties object.IPluginMgr getPluginMgr()
IPluginManager object being used by the InfoStore.
IInfoObjects query(java.lang.String query)
throws SDKException
query - The SQL-style query string used to request a collection of objects.
IInfoObjects object that matches the query.
SDKException - This exception is thrown if the query fails.
IInfoObjects query(ICMSQuery query)
throws SDKException
SDKException
IInfoObjects[] query(java.lang.String[] queries)
throws SDKException
query - The array of SQL-style query strings used to request collections of objects.
IInfoObjects objects that match each query.
SDKException - This exception is thrown if the query fails.
void schedule(IInfoObjects objects)
throws SDKException
objects - An IInfoObjects interface that represents IInfoObject objects to be scheduled.
SDKException - This exception is thrown if the process fails.
void sendTo(IInfoObjects objects)
throws SDKException
objects - An IInfoObjects interface that represents a collection of IInfoObject objects to be sent.
SDKException - This exception is thrown if the process fails.
void deliverToInbox(IInfoObjects objects)
throws SDKException
objects - An IInfoObjects interface that represents a collection of IInfoObject objects to be delivered.
SDKException - This exception is thrown if the process fails.
int getSessionFolderID()
throws SDKException
SDKException
IPageResult getPagingQuery(java.lang.String uri,
PagingQueryOptions options)
throws SDKException
uri parameter must contain a query that follows the URI path query conventions.
Here are some examples:
An Enterprise (SQL-like) query:
query://{SELECT SI_ID, SI_NAME FROM CI_INFOOBJECTS WHERE SI_PARENTID=456 ORDER BY SI_NAME ASC}
A path query:
path://InfoObjects/Root Folder/My Reports/*A CUID query:
cuid://<ASHnC0S_Pw5LhKFbZ.iA_j4,ARQfpQ0vnA1Nl6KrJDMSmVs>
For more information, see the BusinessObjects Enterprise Java SDK Developer Guide.
uri - the URI containing the query to performoptions - the options to use when indexing the initial query
SDKException - if the URI is invalid and can not be parsedIStatelessPageInfo,
IPageResult,
PagingQueryOptions
IStatelessPageInfo getStatelessPageInfo(java.lang.String uri,
PagingQueryOptions options)
throws SDKException
pagingQuery - A String representing one of the page URIs returned from a previous getStatelessPagingQuery calloptions - A StatelessPagingQueryOptions representing the options to use while building this page's info
IStatelessPageInfo containing the SQL needed to execute to retrieve that page's set of info objects
SDKException - if the uri is invalid and can not be parsedIStatelessPageInfo,
IStatelessPageResult,
StatelessPagingQueryOptions
@Deprecated
IPagingQuery getPagingQuery()
throws SDKException
ICMSQuery instead.
IPagingQuer object
SDKException
IInfoObjects find(int propertySet,
SearchPattern searchPattern,
SortType sortType)
throws SDKException
propertySet - The IInfoObject.propertySet to get from the repository.searchPattern - The SearchPattern to use to find an object.sortType - The SortType to sort the list of objects retrieved from the repository.
SDKException
IFolderPager getTopFolders()
throws SDKException
IFolderPager object.
SDKException
IFolderPager getTopFolders(int propertySet,
SearchPattern searchPattern,
SortType sortType)
throws SDKException
propertySet - The IInfoObject.propertySet to get from the repository.searchPattern - The SearchPattern to use to find an object.sortType - The SortType to sort the list of objects retrieved from the repository.
IFolderPager collection.
SDKException
IFolder getMyFavoritesFolder()
throws SDKException
IFolder which is the user's favorite folder
SDKException
ICategoryPager getTopCategories()
throws SDKException
ICategoryPager object.
SDKException
ICategoryPager getTopCategories(int propertySet,
SearchPattern searchPattern,
SortType sortType)
throws SDKException
propertySet - The IInfoObject.propertySet to get from the repository.searchPattern - The SearchPattern to use to find an object.sortType - The SortType to sort the list of objects retrieved from the repository.
ICategoryPager collection.
SDKException
ICategory getMyPersonalCategory()
throws SDKException
ICategories collection.
SDKException
IInbox getMyInbox()
throws SDKException
IFolder which is the user's faviourite folder
SDKException
IStreamingQuery getStreamingQuery(java.lang.String query)
throws SDKException
query - InfoStore query string
IStreamingQuery interface for returning the query results in batches
SDKException
ICMSQuery createCMSQuery(java.lang.String initQuery)
throws SDKException
Creates an ICMSQuery object that represents a CMS query string, but provides
advanced functionality to retrieve large results in 'pages', and the ability to manage the
lifetime of the query's result cache on the CMS.
initQuery - The CMS query to build ICMSQuery off of
ICMSQuery object
SDKException
ICMSQuery createCMSQuery(java.lang.String initQuery,
boolean maintainTopN)
throws SDKException
Creates an ICMSQuery object that represents a CMS query string, but provides
advanced functionality to retrieve large results in 'pages', and the ability to manage the
lifetime of the query's result cache on the CMS.
initQuery - The CMS query to build ICMSQuery off ofmaintainTopN - The TOP M-N specification in initQuery will be maintained regardless of paging specifications
ICMSQuery object
SDKExceptionint getBatchExpiryTimeSeconds()
SDKExceptionvoid setBatchExpiryTimeSeconds(int batchExpiryTimeSeconds)
batchExpiryTimeSeconds - - The amount of time the CMS should wait before timing out the commit batches. If
you are getting the "Invalid batch id" error from the CMS then send up the batches faster (default is 10 seconds)
or increase the batch timeout. Having a batch on the server means database resources are locked until done. So
do not use this parameter for client applications that would typically have an unlimited number of concurrent
callers. A value less than or equal to zero mean the CMS will use the default time.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||