|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IWSContentCategoryMgmt
WS content category mgmt interface for local use
| Method Summary | |
|---|---|
void |
addCategorySortingScoreExpression(String token,
String expression,
int scoreBoost)
Add a score expression to the catalog defined by the token's nature. |
String |
createContentCategory(String token,
String parentCategoryID,
String name,
String filter)
Creates a new, empty catalog content category. |
void |
createSourceContentCategoryReplication(String token,
String sourceCategoryID,
String targetCategoryID,
WSTReplicationCreationType replicationCreationType)
Creates a source content replication. |
void |
deleteContentCategory(String token,
String categoryID)
Deletes a content category and all subcategories. |
ArrayList<WSTContentCategory> |
getCatalogContentCategoryRoots(String token)
Retrieves all content category roots (i.e. |
ArrayList<WSTContentCategory> |
getCatalogContentCategoryRootsBySearchSource(String token,
int minimumDocuments,
ArrayList<String> sources)
Retrieves the roots for a user. |
ArrayList<WSTContentCategory> |
getCatalogContentCategoryRootsForUser(String token,
int subCategoryLevel,
int minimumDocuments)
Retrieves the roots for a user. |
ArrayList<WSTContentCategoryScoreExpression> |
getCategoryScoreExpressions(String token)
Get a list with all score expressions applicable to the catalog denoted by the token's nature. |
ArrayList<WSTContentCategory> |
getChildren(String token,
String contentCategoryID,
int minimumDocuments,
int offset,
int count)
Retrieves the direct children of a content category ordered by name. |
ArrayList<WSTContentCategory> |
getChildrenBySearchSource(String token,
String contentCategoryID,
int minimumDocuments,
ArrayList<String> sources,
int offset,
int count)
Retrieves the direct children of a content category ordered by name. |
WSTContentCategory |
getContentCategory(String token,
String contentCategoryID,
boolean includeSubCategories,
String sortBy,
boolean invert,
int offset,
int count)
Retrieves a content category |
WSTContentCategory |
getContentCategoryBySearchSource(String token,
String contentCategoryID,
boolean includeSubCategories,
String search,
ArrayList<String> sources,
String sortBy,
boolean invert,
int offset,
int count)
Retrieves a content category |
WSTContentCategory |
getContentCategoryConstrained(String token,
String contentCategoryID,
boolean includeSubCategories,
String search,
String sortBy,
boolean invert,
int offset,
int count)
Retrieves a content category |
WSTContentCategory |
getContentCategoryRoot(String token)
Deprecated. use getCatalogContentCategoryRoots(String) instead. |
ArrayList<WSTContentCategory> |
getContentCategoryRootForUser(String token,
int subCategoryLevel,
int minimumDocuments)
Deprecated. use getCatalogContentCategoryRootsForUser(String, int, int) , this method will insert a virtual root category. |
WSTContentSourceCategory |
getContentSourceCategory(String token,
String categoryID)
Get the content source category of the given ID. |
ArrayList<WSTContentCategory> |
getParents(String token,
String contentCategoryID,
int offset,
int count)
Deprecated. a category has only a single parent, use getContentCategory(String, String, boolean, String, boolean, int, int) instead. Note, offset, count will be
ignored. |
ArrayList<String> |
getSourceCategoriesForCatalogCategory(String token,
String categoryID)
Get the replication sources for the given category. |
ArrayList<WSTContentSourceCategory> |
getSourceContentCategoriesForDocument(String token,
String documentID)
Retrieves all source content categories for the given document. |
ArrayList<WSTContentSourceCategory> |
getSourceContentCategoryRoots(String token)
Retrieves all source content category roots. |
void |
rebuildScoreCache(String token)
Rebuild the score cache to apply changes to score expressions. |
void |
removeCategorySortingScoreExpression(String token,
String expression)
Remove the score given expression from the list applicable to the catalog denoted by the token's nature. |
void |
updateContentCategory(String token,
String categoryID,
String name,
String filter)
Updates a content category. |
| Method Detail |
|---|
WSTContentCategory getContentCategory(String token,
String contentCategoryID,
boolean includeSubCategories,
@Nullable
String sortBy,
boolean invert,
int offset,
int count)
throws WSException
token - the session ID, must be != null and validcontentCategoryID - the ID of the content category where the documents resideincludeSubCategories - if the documents of sub categories should be returned, toosortBy - sort the documents by this search field, may be nullinvert - if true, sorting order will be reversedoffset - the offset of the first document of the category to be included in the resultcount - the maximum number of documents to include in the result. Use -1 to indicate that all elements should be included
WSException - if an exception occurs
WSTContentCategory getContentCategoryConstrained(String token,
String contentCategoryID,
boolean includeSubCategories,
@Nullable
String search,
@Nullable
String sortBy,
boolean invert,
int offset,
int count)
throws WSException
token - the session ID, must be != null and validcontentCategoryID - the ID of the content category where the documents resideincludeSubCategories - if the documents of sub categories should be returned, toosearch - the search String. This is either a plain String to search all attributes, or a fielded String like "field:value". All attribute IDs are valid field IDs. You
can also user their lowercased english localizations, so "author:gaddis" is equivalent to "20514d7d-7591-49a4-a62d-f5c02a8f5edd:gaddis". There are some special
(non-attribute) fields: currentVersionFormat, currentVersionNumber, originalURL, displayName and fileName. Search terms separated by spaces are ANDed. Boolean
Operators OR and AND NOT are allowed, so are brackets.sortBy - sort the documents by this search field, may be nullinvert - if true, sorting order will be reversedoffset - the offset of the first document of the category to be included in the resultcount - the maximum number of documents to include in the result. Use -1 to indicate that all elements should be included
WSException - if an exception occurs
WSTContentCategory getContentCategoryBySearchSource(String token,
String contentCategoryID,
boolean includeSubCategories,
@Nullable
String search,
@Nullable
ArrayList<String> sources,
@Nullable
String sortBy,
boolean invert,
int offset,
int count)
throws WSException
token - the session ID, must be != null and validcontentCategoryID - the ID of the content category where the documents resideincludeSubCategories - if the documents of sub categories should be returned, toosearch - the search String. This is either a plain String to search all attributes, or a fielded String like "field:value". All attribute IDs are valid field IDs. You
can also user their lowercased english localizations, so "author:gaddis" is equivalent to "20514d7d-7591-49a4-a62d-f5c02a8f5edd:gaddis". There are some special
(non-attribute) fields: currentVersionFormat, currentVersionNumber, originalURL, displayName and fileName. Search terms separated by spaces are ANDed. Boolean
Operators OR and AND NOT are allowed, so are brackets.sources - see WSTDocumentSearchSource, excluding WSTDocumentSearchSource.OWN and WSTDocumentSearchSource.OTHERsortBy - sort the documents by this search field, may be nullinvert - if true, sorting order will be reversedoffset - the offset of the first document of the category to be included in the resultcount - the maximum number of documents to include in the result. Use -1 to indicate that all elements should be included
WSException - if an exception occurs
@Deprecated
WSTContentCategory getContentCategoryRoot(String token)
throws WSException
getCatalogContentCategoryRoots(String) instead.
token - the session ID, must be != null and valid
WSException - if an exception occurs
ArrayList<WSTContentCategory> getCatalogContentCategoryRoots(String token)
throws WSException
token - the session ID, must be != null and valid
WSException - if an exception occurs
ArrayList<WSTContentSourceCategory> getSourceContentCategoryRoots(String token)
throws WSException
token - the session ID, must be != null and valid
WSException - if an exception occurs
@Deprecated
ArrayList<WSTContentCategory> getParents(String token,
String contentCategoryID,
int offset,
int count)
throws WSException
getContentCategory(String, String, boolean, String, boolean, int, int) instead. Note, offset, count will be
ignored.
token - the session ID, must be != null and validcontentCategoryID - the ID of the content category where the documents resideoffset - the offset of the first content category of the list to be included in the resultcount - the maximum number of content categories to include in the result. Use -1 to indicate that all elements should be included
WSException - if an exception occurs
ArrayList<WSTContentCategory> getChildren(String token,
String contentCategoryID,
int minimumDocuments,
int offset,
int count)
throws WSException
token - the session ID, must be != null and validcontentCategoryID - the ID of the content category where the documents resideminimumDocuments - skip categories that do not have at least this many documents (including sub-categories)offset - the offset of the first content category of the list to be included in the resultcount - the maximum number of content categories to include in the result. Use -1 to indicate that all elements should be included
WSException - if an exception occurs
ArrayList<WSTContentCategory> getChildrenBySearchSource(String token,
String contentCategoryID,
int minimumDocuments,
@Nullable
ArrayList<String> sources,
int offset,
int count)
throws WSException
token - the session ID, must be != null and validcontentCategoryID - the ID of the content category where the documents resideminimumDocuments - skip categories that do not have at least this many documents (including sub-categories) in the sources providedsources - see WSTDocumentSearchSource, excluding WSTDocumentSearchSource.OWN and WSTDocumentSearchSource.OTHERoffset - the offset of the first content category of the list to be included in the resultcount - the maximum number of content categories to include in the result. Use -1 to indicate that all elements should be included
WSException - if an exception occurs
@Deprecated
ArrayList<WSTContentCategory> getContentCategoryRootForUser(String token,
int subCategoryLevel,
int minimumDocuments)
throws WSException
getCatalogContentCategoryRootsForUser(String, int, int) , this method will insert a virtual root category.
token - a valid tokensubCategoryLevel - how many levels of sub categories to get (-1 for unlimited, 0 for the virtual root, 1 for the real root categories only, 2 for the real root categories and children)minimumDocuments - skip categories that do not have at least this many documents (including sub-categories)
WSException - if an exception occurs
ArrayList<WSTContentCategory> getCatalogContentCategoryRootsForUser(String token,
int subCategoryLevel,
int minimumDocuments)
throws WSException
token - a valid tokensubCategoryLevel - how many levels of sub categories to get (-1 for unlimited, 0 for the root categories only, 1 for root categories and children)minimumDocuments - skip categories that do not have at least this many documents (including sub-categories)
WSException - if an exception occurs
ArrayList<WSTContentCategory> getCatalogContentCategoryRootsBySearchSource(String token,
int minimumDocuments,
@Nullable
ArrayList<String> sources)
throws WSException
token - a valid tokenminimumDocuments - skip categories that do not have at least this many documents (including sub-categories) in the sources providedsources - see WSTDocumentSearchSource, excluding WSTDocumentSearchSource.OWN and WSTDocumentSearchSource.OTHER
WSException - if an exception occurs
String createContentCategory(String token,
String parentCategoryID,
String name,
String filter)
throws WSException
token - a valid tokenparentCategoryID - the parent of the new content categoryname - the name of the new content categoryfilter - a filter in lucene query language. This is for future use, do not use now, pass null
WSException - if an exception occurs
void deleteContentCategory(String token,
String categoryID)
throws WSException
token - a valid tokencategoryID - the parent of the new content category
WSException - if an exception occurs
void updateContentCategory(String token,
String categoryID,
@Nullable
String name,
@Nullable
String filter)
throws WSException
token - a valid tokencategoryID - the ID of the content category to updatename - the new name of the category, may be null for no changefilter - the new filter for the category, may be null for no change
WSException - if an exception occurs
@Nonnull
WSTContentSourceCategory getContentSourceCategory(@Nonnull
String token,
@Nonnull
String categoryID)
throws WSException
token - a token.categoryID - a category id.
WSException - in case of errors.
@Nonnull
ArrayList<String> getSourceCategoriesForCatalogCategory(@Nonnull
String token,
@Nonnull
String categoryID)
throws WSException
token - a token.categoryID - a catalog category id.
WSException - in case of errors.
void createSourceContentCategoryReplication(String token,
String sourceCategoryID,
String targetCategoryID,
WSTReplicationCreationType replicationCreationType)
throws WSException
token - a valid tokensourceCategoryID - the ID of the source category to be replicatedtargetCategoryID - the ID of the category into which the content shall be replicated. Must belong to the executing user's user nature.replicationCreationType - depending on the creation type, a simple mapping, a merged tree, or a flattened mapping will be created.
WSException - if an exception occurs
void addCategorySortingScoreExpression(@Nonnull
String token,
@Nonnull
String expression,
int scoreBoost)
throws WSException
token - a token with right EDIT_CATALOG_CATEGORIES.expression - a lucene expression.scoreBoost - an increment or decrement to the score if the expression matches.
WSException - in case of errors.
void removeCategorySortingScoreExpression(@Nonnull
String token,
@Nonnull
String expression)
throws WSException
token - a token with right EDIT_CATALOG_CATEGORIES.expression - a lucene expression.
WSException - in case of errors.
@Nonnull
ArrayList<WSTContentCategoryScoreExpression> getCategoryScoreExpressions(@Nonnull
String token)
throws WSException
token - a token with right EDIT_CATALOG_CATEGORIES.
WSException - in case of errors.
void rebuildScoreCache(@Nonnull
String token)
throws WSException
token - a token with right EDIT_CATALOG_CATEGORIES.
WSException - in case of errors.
ArrayList<WSTContentSourceCategory> getSourceContentCategoriesForDocument(String token,
String documentID)
throws WSException
token - the session ID, must be != null and validdocumentID - the document id.
WSException - if an exception occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||