|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A query folder is a representation of a query based taxonomies category.
To get a query folder follow this example:
IIndexService indexService = (IIndexService)ResourceFactory.getInstance().getServiceFactory().getService(IServiceTypesConst.INDEX_SERVICE);
IQBClassificationIndex qbcIndex = (IQBClassificationIndex)indexService.getIndex("");
IQueryFolder queryFolder = qbcIndex.getQueryFolder(RID.getRID("/taxonomies///"));
| Method Summary | |
IQueryFolder |
copy(RID destination,
IResourceContext context)
Reflects a copy of a folder in the taxonomy repository to perform the copy also in the hierarchical query structure. |
void |
delete(IResourceContext context)
Deletes the query folder in the QBC-engine and in the CM persistence. |
java.lang.String |
getIndexID()
Gets the ID of the index where the query is stored. |
IQueryEntryList |
getQuery(IResourceContext context)
Gets the query of the query folder. |
ISearchResultList |
getQueryDocuments(IResourceContext context)
Documents of the index that match the query of the folder. |
RID |
getRID()
Gets the resource ID of the query folder. |
boolean |
isDirty(IResourceContext context)
A flag for the query folder that indicates whether the documents of the category match the current query or not. |
boolean |
isQueryDefined(IResourceContext context)
Checks for existence of a query for the query folder. |
IQueryFolder |
move(RID destination,
IResourceContext context)
Reflects a move of a folder in the taxonomy repository to perform the move also in the hierarchical query structure. |
void |
setDirty(boolean isDirty,
IResourceContext context)
Sets a flag for the query folder that indicates that the documents of the category don't match the current query. |
void |
setQuery(IQueryEntryList query,
IResourceContext context)
Sets a query for the query folder. |
void |
setQueryFast(IQueryEntryList query,
IResourceContext context)
Sets a query for the query folder. |
| Method Detail |
public java.lang.String getIndexID()
public RID getRID()
public IQueryEntryList getQuery(IResourceContext context)
throws WcmException
context - user context
public void setQuery(IQueryEntryList query,
IResourceContext context)
throws WcmException
IQBClassificationIndex#updateCategoryContents must be executed.query - query to set for this query foldercontext - user context
public void setQueryFast(IQueryEntryList query,
IResourceContext context)
throws WcmException
IQBClassificationIndex#updateCategoryContents must be executed.
This is the faster version for Trex than setQuery.query - query to set for this query foldercontext - user context
public IQueryFolder move(RID destination,
IResourceContext context)
throws WcmException
destination - resource ID of the query folder after the movecontext - user context
public IQueryFolder copy(RID destination,
IResourceContext context)
throws WcmException
destination - resource ID of the query folder after the copy
public void delete(IResourceContext context)
throws WcmException
context - user context
public void setDirty(boolean isDirty,
IResourceContext context)
throws WcmException
IQBClassificationIndex#updateCategoryContents
must be executed.isDirty - true if the query of the folder has been updated but the
documents of the folder are still the old.context - user context
public boolean isDirty(IResourceContext context)
throws WcmException
context - user context
public ISearchResultList getQueryDocuments(IResourceContext context)
throws WcmException
context - user context
public boolean isQueryDefined(IResourceContext context)
throws WcmException
context - user context
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||