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 Constructor Description CategorizationAppSoapMockStub(String soapServerUrl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddProjectToCategory(String sessionId, String projectId, String categoryId)Simulate a call to addProjectToCategoryCategorySoapDOcreateCategory(String sessionId, String parentId, String title, String description)Simulate a call to createCategoryvoiddeleteCategory(String sessionId, String categoryId)Simulate a call to deleteCategoryCategorySoapListgetAllCategories(String sessionId)Simulate a call to getAllCategoriesCategorySoapDOgetCategoryData(String sessionId, String categoryId)Simulate a call to getCategoryDataProjectSoapListgetCategoryProjects(String sessionId, String categoryId, boolean includeSubcategories)Simulate a call to getCategoryProjectsCategorySoapListgetProjectCategories(String sessionId, String projectId)Simulate a call to getProjectCategoriesCategorySoapDOgetRootCategoryData(String sessionId)Simulate a call to getRootCategoryDataCategorySoapListgetSubcategories(String sessionId, String categoryId, boolean recursive)Simulate a call to getSubcategoriesProjectSoapListgetUncategorizedProjects(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 setCategoryData-
Methods 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 Detail
-
CategorizationAppSoapMockStub
public CategorizationAppSoapMockStub(String soapServerUrl)
-
-
Method Detail
-
prepareIsCategorizationEnabled
public void prepareIsCategorizationEnabled(String sessionId, Object returnValue)
Prepare a simulated response to isCategorizationEnabled
-
isCategorizationEnabled
public boolean isCategorizationEnabled(String sessionId) throws RemoteException
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:
CategorizationAppSoap.isCategorizationEnabled(java.lang.String)
-
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:
CategorizationAppSoap.createCategory(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
-
prepareGetCategoryData
public void prepareGetCategoryData(String sessionId, String categoryId, Object returnValue)
Prepare a simulated response to getCategoryData
-
getCategoryData
public CategorySoapDO getCategoryData(String sessionId, String categoryId) throws RemoteException
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:
CategorizationAppSoap.getCategoryData(java.lang.String, java.lang.String)
-
prepareGetRootCategoryData
public void prepareGetRootCategoryData(String sessionId, Object returnValue)
Prepare a simulated response to getRootCategoryData
-
getRootCategoryData
public CategorySoapDO getRootCategoryData(String sessionId) throws RemoteException
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:
CategorizationAppSoap.getRootCategoryData(java.lang.String)
-
prepareSetCategoryData
public void prepareSetCategoryData(String sessionId, CategorySoapDO categoryData)
Prepare a simulated response to setCategoryData
-
prepareSetCategoryData
public void prepareSetCategoryData(String sessionId, CategorySoapDO categoryData, Exception exception)
Prepare a simulated response to setCategoryData
-
setCategoryData
public void setCategoryData(String sessionId, CategorySoapDO categoryData) throws RemoteException
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:
CategorizationAppSoap.setCategoryData(java.lang.String, com.collabnet.ce.soap60.webservices.categorization.CategorySoapDO)
-
prepareDeleteCategory
public void prepareDeleteCategory(String sessionId, String categoryId)
Prepare a simulated response to deleteCategory
-
prepareDeleteCategory
public void prepareDeleteCategory(String sessionId, String categoryId, Exception exception)
Prepare a simulated response to deleteCategory
-
deleteCategory
public void deleteCategory(String sessionId, String categoryId) throws RemoteException
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:
CategorizationAppSoap.deleteCategory(java.lang.String, java.lang.String)
-
prepareGetAllCategories
public void prepareGetAllCategories(String sessionId, Object returnValue)
Prepare a simulated response to getAllCategories
-
getAllCategories
public CategorySoapList getAllCategories(String sessionId) throws RemoteException
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:
CategorizationAppSoap.getAllCategories(java.lang.String)
-
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:
CategorizationAppSoap.getSubcategories(java.lang.String, java.lang.String, boolean)
-
prepareMoveCategory
public void prepareMoveCategory(String sessionId, String categoryId, String dstCategoryId)
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:
CategorizationAppSoap.moveCategory(java.lang.String, java.lang.String, java.lang.String)
-
prepareAddProjectToCategory
public void prepareAddProjectToCategory(String sessionId, String projectId, String categoryId)
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:
CategorizationAppSoap.addProjectToCategory(java.lang.String, java.lang.String, java.lang.String)
-
prepareRemoveProjectFromCategory
public void prepareRemoveProjectFromCategory(String sessionId, String projectId, String categoryId)
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:
CategorizationAppSoap.removeProjectFromCategory(java.lang.String, java.lang.String, java.lang.String)
-
prepareGetProjectCategories
public void prepareGetProjectCategories(String sessionId, String projectId, Object returnValue)
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:
CategorizationAppSoap.getProjectCategories(java.lang.String, java.lang.String)
-
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:
CategorizationAppSoap.getCategoryProjects(java.lang.String, java.lang.String, boolean)
-
prepareGetUncategorizedProjects
public void prepareGetUncategorizedProjects(String sessionId, Object returnValue)
Prepare a simulated response to getUncategorizedProjects
-
getUncategorizedProjects
public ProjectSoapList getUncategorizedProjects(String sessionId) throws RemoteException
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:
CategorizationAppSoap.getUncategorizedProjects(java.lang.String)
-
-