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_WILDCARDFields inherited from class com.collabnet.ce.soap60.webservices.ClientSoapStub
DEFAULT_CLIENT_TIME_OUT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProjectToCategory(String sessionId, String projectId, String categoryId) Simulate a call to addProjectToCategorycreateCategory(String sessionId, String parentId, String title, String description) Simulate a call to createCategoryvoiddeleteCategory(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 getUncategorizedProjectsbooleanisCategorizationEnabled(String sessionId) Simulate a call to isCategorizationEnabledvoidmoveCategory(String sessionId, String categoryId, String dstCategoryId) Simulate a call to moveCategoryvoidprepareAddProjectToCategory(String sessionId, String projectId, String categoryId) Prepare a simulated response to addProjectToCategoryvoidprepareAddProjectToCategory(String sessionId, String projectId, String categoryId, Exception exception) Prepare a simulated response to addProjectToCategoryvoidprepareCreateCategory(String sessionId, String parentId, String title, String description, Object returnValue) Prepare a simulated response to createCategoryvoidprepareDeleteCategory(String sessionId, String categoryId) Prepare a simulated response to deleteCategoryvoidprepareDeleteCategory(String sessionId, String categoryId, Exception exception) Prepare a simulated response to deleteCategoryvoidprepareGetAllCategories(String sessionId, Object returnValue) Prepare a simulated response to getAllCategoriesvoidprepareGetCategoryData(String sessionId, String categoryId, Object returnValue) Prepare a simulated response to getCategoryDatavoidprepareGetCategoryProjects(String sessionId, String categoryId, boolean includeSubcategories, Object returnValue) Prepare a simulated response to getCategoryProjectsvoidprepareGetProjectCategories(String sessionId, String projectId, Object returnValue) Prepare a simulated response to getProjectCategoriesvoidprepareGetRootCategoryData(String sessionId, Object returnValue) Prepare a simulated response to getRootCategoryDatavoidprepareGetSubcategories(String sessionId, String categoryId, boolean recursive, Object returnValue) Prepare a simulated response to getSubcategoriesvoidprepareGetUncategorizedProjects(String sessionId, Object returnValue) Prepare a simulated response to getUncategorizedProjectsvoidprepareIsCategorizationEnabled(String sessionId, Object returnValue) Prepare a simulated response to isCategorizationEnabledvoidprepareMoveCategory(String sessionId, String categoryId, String dstCategoryId) Prepare a simulated response to moveCategoryvoidprepareMoveCategory(String sessionId, String categoryId, String dstCategoryId, Exception exception) Prepare a simulated response to moveCategoryvoidprepareRemoveProjectFromCategory(String sessionId, String projectId, String categoryId) Prepare a simulated response to removeProjectFromCategoryvoidprepareRemoveProjectFromCategory(String sessionId, String projectId, String categoryId, Exception exception) Prepare a simulated response to removeProjectFromCategoryvoidprepareSetCategoryData(String sessionId, CategorySoapDO categoryData) Prepare a simulated response to setCategoryDatavoidprepareSetCategoryData(String sessionId, CategorySoapDO categoryData, Exception exception) Prepare a simulated response to setCategoryDatavoidremoveProjectFromCategory(String sessionId, String projectId, String categoryId) Simulate a call to removeProjectFromCategoryvoidsetCategoryData(String sessionId, CategorySoapDO categoryData) Simulate a call to setCategoryDataMethods inherited from class com.collabnet.ce.soap60.webservices.ClientSoapMockStub
addSimulatedResult, addSimulatedResult, addSimulatedResult, getCallCount, getCallParameters, getUnusedCalls, simulateCallMethods 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:
isCategorizationEnabledin 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:
createCategoryin 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:
getCategoryDatain 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:
getRootCategoryDatain 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:
setCategoryDatain 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:
deleteCategoryin 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:
getAllCategoriesin 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:
getSubcategoriesin 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:
moveCategoryin 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:
addProjectToCategoryin 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:
removeProjectFromCategoryin 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:
getProjectCategoriesin 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:
getCategoryProjectsin 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:
getUncategorizedProjectsin 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:
-