Classification Web Service Future Additions

From AlfrescoWiki

Jump to: navigation, search

Back to Classification Web Service.

Future additions to the classification web service.

Contents

[edit] Types

[edit] Category

  • Reference reference - the category reference
  • xsd:string title - the title of the category
  • xsd:string description - the description of the category

[edit] Classification

  • Name classification - the name of the classification
  • Reference[] rootCategories - the root categories
  • string title - the title of the classification
  • string description - the description of the classification

[edit] Methods

[edit] createClassification

Create a new classification.

Classification createClassification(Store store, string aspectName, string propertyName)

Parmeters:

  • store - the store to create the classification in
  • aspectName - the name of the classification aspect. This should be the string representation of a QName.
  • propertyName - the name of the property on the classification aspect that will be used to store the classification value within. This should be the string representation of a QName.

[edit] createRootCategory

Classification createRootCategory(Classification classification, string categoryName)

[edit] createCategory

Category createCategory(Category parentCategory, string categoryName)

[edit] deleteClassification

Delete a classification from the respository.

void deleteClassification(Classification classification)

Parameters:

  • classification - the classification to delete

[edit] deleteCategory

Delete a category.

void deleteCategory(Category category)

Parameters:

  • category - the category to delete


[edit] Notes

  • Should a name attribute be added to the category type? (currently title is being used as the name)