com.adobe.icc.services.api
Interface CategoryService


public interface CategoryService

Service interface for Category specific operations.


Method Summary
 Boolean categoryExists(String categoryName, int type)
          Check if a category exists by the given name and type.
 Category createCategory(String categoryName, int type)
          Create a Category with the given name and type.
 void deleteCategory(String categoryID)
          Delete the category given the Category GUID.
 List getAllCategories(Query query)
          Retrieve the list of categories, filtering as per the given Query.
 Category getCategory(String categoryID)
          Fetch a Category object by the given GUID.
 Category updateCategory(String categoryName, int categoryType, String newName, int newType)
          Update the Category specified by the given name and type, to the new name and type.
 

Method Detail

categoryExists

Boolean categoryExists(String categoryName,
                       int type)
                       throws ICCException
Check if a category exists by the given name and type.

Parameters:
categoryName - Name of the Category.
type - Type of the Category.
Returns:
True if exists, False otherwise.
Throws:
ICCException

deleteCategory

void deleteCategory(String categoryID)
                    throws ICCException
Delete the category given the Category GUID.

Parameters:
categoryID - GUID of the Category.
Throws:
ICCException

getCategory

Category getCategory(String categoryID)
                     throws ICCException
Fetch a Category object by the given GUID.

Parameters:
categoryID - GUID of the Category to be fetched.
Returns:
The Category object.
Throws:
ICCException

createCategory

Category createCategory(String categoryName,
                        int type)
                        throws ICCException
Create a Category with the given name and type.

Parameters:
categoryName - Name of the Category.
type - Type of the Category.
Returns:
The created Category object.
Throws:
ICCException

getAllCategories

List getAllCategories(Query query)
                      throws ICCException
Retrieve the list of categories, filtering as per the given Query.

Parameters:
query - Query to select categories (supports only first level attributes/properties of an object).
The "attributeName" used in the Statement object should be the name of the property in the object (Category object, in this case).
Returns:
List of Categories
Throws:
ICCException
See Also:
Statement} and {@link Query}.

updateCategory

Category updateCategory(String categoryName,
                        int categoryType,
                        String newName,
                        int newType)
                        throws ICCException
Update the Category specified by the given name and type, to the new name and type.

Parameters:
categoryName - Old Category name.
categoryType - Old Category type.
newName - New Category name.
newType - New Category type.
Returns:
Updated Category object.
Throws:
ICCException


[an error occurred while processing this directive] [an error occurred while processing this directive]