Class CategorizationAppSoapMockStub
java.lang.Object
com.collabnet.ce.soap60.webservices.ClientSoapStub
com.collabnet.ce.soap60.webservices.ClientSoapMockStub
com.collabnet.ce.soap60.webservices.categorization.CategorizationAppSoapMockStub
- All Implemented Interfaces:
ICategorizationAppSoap
public class CategorizationAppSoapMockStub
extends ClientSoapMockStub
implements ICategorizationAppSoap
-
Field Summary
Fields inherited from class com.collabnet.ce.soap60.webservices.ClientSoapMockStub
DATE_WILDCARD, GUIDKEY_WILDCARD, INTEGER_WILDCARD, LONG_WILDCARD, STRING_WILDCARD
Fields inherited from class com.collabnet.ce.soap60.webservices.ClientSoapStub
DEFAULT_CLIENT_TIME_OUT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addProjectToCategory
(String sessionId, String projectId, String categoryId) Simulate a call to addProjectToCategorycreateCategory
(String sessionId, String parentId, String title, String description) Simulate a call to createCategoryvoid
deleteCategory
(String sessionId, String categoryId) Simulate a call to deleteCategorygetAllCategories
(String sessionId) Simulate a call to getAllCategoriesgetCategoryData
(String sessionId, String categoryId) Simulate a call to getCategoryDatagetCategoryProjects
(String sessionId, String categoryId, boolean includeSubcategories) Simulate a call to getCategoryProjectsgetProjectCategories
(String sessionId, String projectId) Simulate a call to getProjectCategoriesgetRootCategoryData
(String sessionId) Simulate a call to getRootCategoryDatagetSubcategories
(String sessionId, String categoryId, boolean recursive) Simulate a call to getSubcategoriesgetUncategorizedProjects
(String sessionId) Simulate a call to getUncategorizedProjectsboolean
isCategorizationEnabled
(String sessionId) Simulate a call to isCategorizationEnabledvoid
moveCategory
(String sessionId, String categoryId, String dstCategoryId) Simulate a call to moveCategoryvoid
prepareAddProjectToCategory
(String sessionId, String projectId, String categoryId) Prepare a simulated response to addProjectToCategoryvoid
prepareAddProjectToCategory
(String sessionId, String projectId, String categoryId, Exception exception) Prepare a simulated response to addProjectToCategoryvoid
prepareCreateCategory
(String sessionId, String parentId, String title, String description, Object returnValue) Prepare a simulated response to createCategoryvoid
prepareDeleteCategory
(String sessionId, String categoryId) Prepare a simulated response to deleteCategoryvoid
prepareDeleteCategory
(String sessionId, String categoryId, Exception exception) Prepare a simulated response to deleteCategoryvoid
prepareGetAllCategories
(String sessionId, Object returnValue) Prepare a simulated response to getAllCategoriesvoid
prepareGetCategoryData
(String sessionId, String categoryId, Object returnValue) Prepare a simulated response to getCategoryDatavoid
prepareGetCategoryProjects
(String sessionId, String categoryId, boolean includeSubcategories, Object returnValue) Prepare a simulated response to getCategoryProjectsvoid
prepareGetProjectCategories
(String sessionId, String projectId, Object returnValue) Prepare a simulated response to getProjectCategoriesvoid
prepareGetRootCategoryData
(String sessionId, Object returnValue) Prepare a simulated response to getRootCategoryDatavoid
prepareGetSubcategories
(String sessionId, String categoryId, boolean recursive, Object returnValue) Prepare a simulated response to getSubcategoriesvoid
prepareGetUncategorizedProjects
(String sessionId, Object returnValue) Prepare a simulated response to getUncategorizedProjectsvoid
prepareIsCategorizationEnabled
(String sessionId, Object returnValue) Prepare a simulated response to isCategorizationEnabledvoid
prepareMoveCategory
(String sessionId, String categoryId, String dstCategoryId) Prepare a simulated response to moveCategoryvoid
prepareMoveCategory
(String sessionId, String categoryId, String dstCategoryId, Exception exception) Prepare a simulated response to moveCategoryvoid
prepareRemoveProjectFromCategory
(String sessionId, String projectId, String categoryId) Prepare a simulated response to removeProjectFromCategoryvoid
prepareRemoveProjectFromCategory
(String sessionId, String projectId, String categoryId, Exception exception) Prepare a simulated response to removeProjectFromCategoryvoid
prepareSetCategoryData
(String sessionId, CategorySoapDO categoryData) Prepare a simulated response to setCategoryDatavoid
prepareSetCategoryData
(String sessionId, CategorySoapDO categoryData, Exception exception) Prepare a simulated response to setCategoryDatavoid
removeProjectFromCategory
(String sessionId, String projectId, String categoryId) Simulate a call to removeProjectFromCategoryvoid
setCategoryData
(String sessionId, CategorySoapDO categoryData) Simulate a call to setCategoryDataMethods inherited from class com.collabnet.ce.soap60.webservices.ClientSoapMockStub
addSimulatedResult, addSimulatedResult, addSimulatedResult, getCallCount, getCallParameters, getUnusedCalls, simulateCall
Methods inherited from class com.collabnet.ce.soap60.webservices.ClientSoapStub
getServiceCall, getSoapServer, getTimeout, setTimeout, soapParam
-
Constructor Details
-
CategorizationAppSoapMockStub
-
-
Method Details
-
prepareIsCategorizationEnabled
Prepare a simulated response to isCategorizationEnabled -
isCategorizationEnabled
Simulate a call to isCategorizationEnabled- Specified by:
isCategorizationEnabled
in interfaceICategorizationAppSoap
- Parameters:
sessionId
- User session id.- Returns:
- true/false
- Throws:
InvalidSessionFault
- when the specified session id is invalid.SystemFault
- when an unexpected system error occurs.RemoteException
- See Also:
-
prepareCreateCategory
public void prepareCreateCategory(String sessionId, String parentId, String title, String description, Object returnValue) Prepare a simulated response to createCategory -
createCategory
public CategorySoapDO createCategory(String sessionId, String parentId, String title, String description) throws RemoteException Simulate a call to createCategory- Specified by:
createCategory
in interfaceICategorizationAppSoap
- Parameters:
sessionId
- User session id.parentId
- ID of the parent categorytitle
- Title of the categorydescription
- Description- Returns:
- A category data object representing the newly created category
- Throws:
InvalidSessionFault
- when the specified session id is invalid.PermissionDeniedFault
- when the user has insufficient privileges.SystemFault
- when an unexpected system error occurs.NoSuchObjectFault
- when the specified object id is invalid.ObjectAlreadyExistsFault
- if an existing category already existsRemoteException
- See Also:
-
prepareGetCategoryData
Prepare a simulated response to getCategoryData -
getCategoryData
Simulate a call to getCategoryData- Specified by:
getCategoryData
in interfaceICategorizationAppSoap
- Parameters:
sessionId
- User session id.categoryId
- Category id.- Returns:
- Detailed data on the category.
- Throws:
InvalidSessionFault
- when the specified session id is invalid.NoSuchObjectFault
- when the specified object id is invalid.SystemFault
- when an unexpected system error occurs.RemoteException
- See Also:
-
prepareGetRootCategoryData
Prepare a simulated response to getRootCategoryData -
getRootCategoryData
Simulate a call to getRootCategoryData- Specified by:
getRootCategoryData
in interfaceICategorizationAppSoap
- Parameters:
sessionId
- User session id.- Returns:
- Detailed data on the root category.
- Throws:
InvalidSessionFault
- when the specified session id is invalid.NoSuchObjectFault
- when the specified object id is invalid.SystemFault
- when an unexpected system error occurs.RemoteException
- See Also:
-
prepareSetCategoryData
Prepare a simulated response to setCategoryData -
prepareSetCategoryData
public void prepareSetCategoryData(String sessionId, CategorySoapDO categoryData, Exception exception) Prepare a simulated response to setCategoryData -
setCategoryData
Simulate a call to setCategoryData- Specified by:
setCategoryData
in interfaceICategorizationAppSoap
- Parameters:
sessionId
- User session id.categoryData
- Detailed data on the category to set.- Throws:
InvalidSessionFault
- when the specified session id is invalid.NoSuchObjectFault
- when the specified object id is invalid.PermissionDeniedFault
- when the user has insufficient privileges.SystemFault
- when an unexpected system error occurs.IllegalArgumentFault
- when invalid data is specified.VersionMismatchFault
- when the object version mismatches the application server.RemoteException
- See Also:
-
prepareDeleteCategory
Prepare a simulated response to deleteCategory -
prepareDeleteCategory
Prepare a simulated response to deleteCategory -
deleteCategory
Simulate a call to deleteCategory- Specified by:
deleteCategory
in interfaceICategorizationAppSoap
- Parameters:
sessionId
- User session id.categoryId
- Category id.- Throws:
InvalidSessionFault
- when the specified session id is invalid.NoSuchObjectFault
- when the specified object id is invalid.PermissionDeniedFault
- when the user has insufficient privileges.SystemFault
- when an unexpected system level error occurs.RemoteException
- See Also:
-
prepareGetAllCategories
Prepare a simulated response to getAllCategories -
getAllCategories
Simulate a call to getAllCategories- Specified by:
getAllCategories
in interfaceICategorizationAppSoap
- Parameters:
sessionId
- User session id.- Returns:
- List of categories within the project.
- Throws:
InvalidSessionFault
- when the specified session id is invalid.NoSuchObjectFault
- when the specified object id is invalid.SystemFault
- when an unexpected system error occurs.RemoteException
- See Also:
-
prepareGetSubcategories
public void prepareGetSubcategories(String sessionId, String categoryId, boolean recursive, Object returnValue) Prepare a simulated response to getSubcategories -
getSubcategories
public CategorySoapList getSubcategories(String sessionId, String categoryId, boolean recursive) throws RemoteException Simulate a call to getSubcategories- Specified by:
getSubcategories
in interfaceICategorizationAppSoap
- Parameters:
sessionId
- User session id.categoryId
- category whose immediate subcategories should be returnedrecursive
- set to true to get categories recursively- Returns:
- List of categories in the root category.
- Throws:
InvalidSessionFault
- when the specified session id is invalid.NoSuchObjectFault
- when the specified object id is invalid.SystemFault
- when an unexpected system error occurs.RemoteException
- See Also:
-
prepareMoveCategory
Prepare a simulated response to moveCategory -
prepareMoveCategory
public void prepareMoveCategory(String sessionId, String categoryId, String dstCategoryId, Exception exception) Prepare a simulated response to moveCategory -
moveCategory
public void moveCategory(String sessionId, String categoryId, String dstCategoryId) throws RemoteException Simulate a call to moveCategory- Specified by:
moveCategory
in interfaceICategorizationAppSoap
- Parameters:
sessionId
- User session id.categoryId
- Category to movedstCategoryId
- Destination parent category- Throws:
InvalidSessionFault
- when the specified session id is invalid.PermissionDeniedFault
- when the user has insufficient privileges.SystemFault
- when an unexpected system error occurs.RemoteException
- See Also:
-
prepareAddProjectToCategory
Prepare a simulated response to addProjectToCategory -
prepareAddProjectToCategory
public void prepareAddProjectToCategory(String sessionId, String projectId, String categoryId, Exception exception) Prepare a simulated response to addProjectToCategory -
addProjectToCategory
public void addProjectToCategory(String sessionId, String projectId, String categoryId) throws RemoteException Simulate a call to addProjectToCategory- Specified by:
addProjectToCategory
in interfaceICategorizationAppSoap
- Parameters:
sessionId
- User session id.projectId
- ID of the project to add to a categorycategoryId
- ID of the category to add the project to- Throws:
InvalidSessionFault
- when the specified session id is invalid.NoSuchObjectFault
- when the specified object id is invalid.ObjectAlreadyExistsFault
- when the specified object id is invalid.PermissionDeniedFault
- when the user has insufficient privileges.SystemFault
- when an unexpected system error occurs.RemoteException
- See Also:
-
prepareRemoveProjectFromCategory
Prepare a simulated response to removeProjectFromCategory -
prepareRemoveProjectFromCategory
public void prepareRemoveProjectFromCategory(String sessionId, String projectId, String categoryId, Exception exception) Prepare a simulated response to removeProjectFromCategory -
removeProjectFromCategory
public void removeProjectFromCategory(String sessionId, String projectId, String categoryId) throws RemoteException Simulate a call to removeProjectFromCategory- Specified by:
removeProjectFromCategory
in interfaceICategorizationAppSoap
- Parameters:
sessionId
- User session id.projectId
- ID of the project to remove from a categorycategoryId
- ID of the category to remove the project from- Throws:
InvalidSessionFault
- when the specified session id is invalid.NoSuchObjectFault
- when the specified object id is invalid.PermissionDeniedFault
- when the user has insufficient privileges.SystemFault
- when an unexpected system error occurs.RemoteException
- See Also:
-
prepareGetProjectCategories
Prepare a simulated response to getProjectCategories -
getProjectCategories
public CategorySoapList getProjectCategories(String sessionId, String projectId) throws RemoteException Simulate a call to getProjectCategories- Specified by:
getProjectCategories
in interfaceICategorizationAppSoap
- Parameters:
sessionId
- User session id.projectId
- ID of the project- Returns:
- List of categories the project is in
- Throws:
InvalidSessionFault
- when the specified session id is invalid.PermissionDeniedFault
- when the user has insufficient privileges.NoSuchObjectFault
- when the specified object id is invalid.SystemFault
- when an unexpected system error occurs.RemoteException
- See Also:
-
prepareGetCategoryProjects
public void prepareGetCategoryProjects(String sessionId, String categoryId, boolean includeSubcategories, Object returnValue) Prepare a simulated response to getCategoryProjects -
getCategoryProjects
public ProjectSoapList getCategoryProjects(String sessionId, String categoryId, boolean includeSubcategories) throws RemoteException Simulate a call to getCategoryProjects- Specified by:
getCategoryProjects
in interfaceICategorizationAppSoap
- Parameters:
sessionId
- User session id.categoryId
- category idincludeSubcategories
- boolean, if true, includes projects in subcategories- Returns:
- List of projects that are in the category
- Throws:
InvalidSessionFault
- when the specified session id is invalid.NoSuchObjectFault
- when the specified object id is invalid.SystemFault
- when an unexpected system error occurs.RemoteException
- See Also:
-
prepareGetUncategorizedProjects
Prepare a simulated response to getUncategorizedProjects -
getUncategorizedProjects
Simulate a call to getUncategorizedProjects- Specified by:
getUncategorizedProjects
in interfaceICategorizationAppSoap
- Parameters:
sessionId
- User session id.- Returns:
- List of projects that are in the category
- Throws:
InvalidSessionFault
- when the specified session id is invalid.SystemFault
- when an unexpected system error occurs.RemoteException
- See Also:
-