|
Oracle Content Services Web Services Java API Reference 10g Release 1 (10.1.2.3) B25584-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Category management Facade interface
Method Summary | |
Item |
addMetaDataAttribute(long mdscatId, NamedValue attributedef, AttributeRequest[] attrrequest) Adds an attribute to a category subclass. |
Item |
createCategorySubClass(NamedValue[] attributes, AttributeRequest[] attrrequest) Creates a Category subclass. |
void |
deleteCategory(long categoryId) Deprecated. use FileManager.updateDocuments |
void |
freeCategoryClass(long ahcclassId) Frees the given class object. |
Item[] |
getRequiredCategories(long folderId, AttributeRequest[] requestedAttributes) Deprecated. Request REQUIRED_CATEGORIES on CategoryConfiguration |
Item |
modifyCategorySubClass(long mdscatId, NamedValue[] attributes, AttributeRequest[] attrrequest) Modifies the given Category subclass. |
Item |
modifyMetaDataAttribute(long attributeId, NamedValue attributedef, AttributeRequest[] attrrequest) Given an Attribute description, modify the attribute to the given class and return the modified classobject id. |
void |
removeCategoryAttribute(long mdscatId, java.lang.String attrName) Deprecated. use removeMetaDataAttibute |
void |
removeCategoryConfiguration(long folderId) remove the existing CategoryConfiguration for a Folder. |
void |
removeMetaDataAttribute(long attributeId) Remove an attribute from a MetaDataCategory class. |
void |
setCategoryConfiguration(long folderId, NamedValue[] config) Sets or updates the CategoryConfiguration for a Folder. |
Item |
updateCategory(long catId, NamedValue[] ahcDef, AttributeRequest[] attributes) Deprecated. use FileManager.updateDocuments |
Method Detail |
public Item createCategorySubClass(NamedValue[] attributes, AttributeRequest[] attrrequest) throws FdkException
Given an array of Attributes that describes a class object, create the Category class object and return the classobject id. If Workflow is enabled AND 'CreateUserCategory' is workflow enabled, then an item of type 'REQUEST' is returned. Otherwise, the function returns the created category. UI implementers should check the type of the Item returned and act accordingly (If it's a request, inform user the request needs to be approved before the category can be created.).
attributes
- array of attributes for creating the category class
attrrequest
- requested attributes for each item, or null.FdkException
- if the operation failspublic Item addMetaDataAttribute(long mdscatId, NamedValue attributedef, AttributeRequest[] attrrequest) throws FdkException
mdscatId
- id of category to which to add this attributeattributedef
- array of NamedValue for adding a new attribute {Attributes.ATTRIBUTE_DETAIL, NamedValue[]}
attrrequest
- requested attributes for each item, or null.FdkException
- if the operation failspublic Item modifyMetaDataAttribute(long attributeId, NamedValue attributedef, AttributeRequest[] attrrequest) throws FdkException
attributeId
- id of attribute to be modified.attributedef
- array of NamedValue for adding a new attribute Attributes.ATTRIBUTE_DETAIL, NamedValue[]
attrrequest
- requested attributes for each item, or null.FdkException
- if the operation failspublic Item modifyCategorySubClass(long mdscatId, NamedValue[] attributes, AttributeRequest[] attrrequest) throws FdkException
attributes
- array of attributes for creating the category class
FdkException
- if the operation failspublic void removeCategoryAttribute(long mdscatId, java.lang.String attrName) throws FdkException
This operation cannot be undone.
mdscatId
- id of category whose attribute will be modifiedattrName
- name of attribute to remove.FdkException
- if the operation failspublic void removeMetaDataAttribute(long attributeId) throws FdkException
This operation cannot be undone.
attributeId
- id of MetaDataAttribute to remove.FdkException
- if the operation failspublic void setCategoryConfiguration(long folderId, NamedValue[] config) throws FdkException
The entire configuration will replaced as a set and not added to the existing one. AttributeOverrides are replaced as a set. To change one, you must specify all overrides. To remove all overrides, explicitly set ATTRIBUTE_OVERRIDE to null.
folderId
- the folder for which to set the Category configurationconfig
- the Category configuration options to set; must include one or more of the following Attributes:
FdkException
- if the operation fails.public void removeCategoryConfiguration(long folderId) throws FdkException
folderId
- the folder for which to remove the Category configurationFdkException
- if the operation fails.public void freeCategoryClass(long ahcclassId) throws FdkException
Only succeeds if no instances or subclasses exists.
ahcclassId
- - the Id representing the Category ClassObjectFdkException
- if the operation failspublic Item[] getRequiredCategories(long folderId, AttributeRequest[] requestedAttributes) throws FdkException
folderId
- folder for to fetch the categoriesrequestedAttributes
- list of attributes needed for each itemFdkException
- if the operation failspublic Item updateCategory(long catId, NamedValue[] ahcDef, AttributeRequest[] attributes) throws FdkException
FileManager.updateDocuments
Note, this method will not return the new category if this update causes the associated document to create a new version. Use FileManager.updateDocuments
instead, which will return the new document Item (and its associated categories, which will reflect the update).
catId
- Category to be updatedahcDef
- the attributes to update.
attributes
- requested attributes for each item, or null.FdkException
- if the operation failspublic void deleteCategory(long categoryId) throws FdkException
FileManager.updateDocuments
categoryId
- the category ID to be deleted.FdkException
- if the operation fails.
|
Oracle Content Services Web Services Java API Reference 10g Release 1 (10.1.2.3) B25584-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |