Class PageAppSoapMockStub
- java.lang.Object
-
- com.collabnet.ce.soap60.webservices.ClientSoapStub
-
- com.collabnet.ce.soap60.webservices.ClientSoapMockStub
-
- com.collabnet.ce.soap60.webservices.page.PageAppSoapMockStub
-
- All Implemented Interfaces:
IPageAppSoap
public class PageAppSoapMockStub extends ClientSoapMockStub implements IPageAppSoap
-
-
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 PageAppSoapMockStub(String soapServerUrl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaddPageImage(String sessionId, String projectId, String fileId, String filename, String mimetype)Simulate a call to addPageImagevoidassertAttributesNotEmpty(SoapNamedValues attributes)Simulate a call to assertAttributesNotEmptyPageComponentSoapDOcreateComponent(String sessionId, String pageId, String compName, String componentType, boolean topOfPage, int visibility, SoapNamedValues attributes, String content)Simulate a call to createComponentPageComponent2SoapDOcreateComponent2(String sessionId, String pageId, String compName, String componentType, boolean topOfPage, int visibility, SoapNamedValues attributes, String content)Simulate a call to createComponent2PageSoapDOcreatePage(String sessionId, String projectId, String parentId, String title, boolean visible, boolean freeform)Simulate a call to createPagevoiddeletePage(String sessionId, String pageId)Simulate a call to deletePagevoiddeletePageComponent(String sessionId, String pageComponentId)Simulate a call to deletePageComponentvoiddeletePageImage(String sessionId, String projectId, String attachmentId)Simulate a call to deletePageImageStringgetHTMLSource(com.vasoftware.sf.server.services.page.PageComponentDO htmlPageCompDO, String loggedInUser)Simulate a call to getHTMLSourcePageComponent2SoapDOgetPageComponent(String sessionId, String pageComponentId)Simulate a call to getPageComponentPageComponentSoapDO[]getPageComponents(String sessionId, String pageId)Simulate a call to getPageComponentsPageSoapDOgetPageData(String sessionId, String pageId)Simulate a call to getPageDataStringgetPageImageUrl(String sessionId, String projectId, String attachmentId)Simulate a call to getPageImageUrlPageSoapListgetPageList(String sessionId, String projectId)Simulate a call to getPageListStringgetTextComponentContent(String sessionId, String pageCompId)Simulate a call to getTextComponentContentbooleanhasViewPermission(com.vasoftware.sf.server.types.UserSessionKey sessionKey, com.vasoftware.sf.server.types.FolderPath folderPath, com.vasoftware.sf.server.types.PageKey pageKey, String loggedInUser)Simulate a call to hasViewPermissionAttachmentSoapListlistPageImages(String sessionId, String projectId)Simulate a call to listPageImagesvoidmovePage(String sessionId, String pageFolderPath, String destPath)Simulate a call to movePagevoidprepareAddPageImage(String sessionId, String projectId, String fileId, String filename, String mimetype, Object returnValue)Prepare a simulated response to addPageImagevoidprepareAssertAttributesNotEmpty(SoapNamedValues attributes)Prepare a simulated response to assertAttributesNotEmptyvoidprepareAssertAttributesNotEmpty(SoapNamedValues attributes, Exception exception)Prepare a simulated response to assertAttributesNotEmptyvoidprepareCreateComponent(String sessionId, String pageId, String compName, String componentType, boolean topOfPage, int visibility, SoapNamedValues attributes, String content, Object returnValue)Prepare a simulated response to createComponentvoidprepareCreateComponent2(String sessionId, String pageId, String compName, String componentType, boolean topOfPage, int visibility, SoapNamedValues attributes, String content, Object returnValue)Prepare a simulated response to createComponent2voidprepareCreatePage(String sessionId, String projectId, String parentId, String title, boolean visible, boolean freeform, Object returnValue)Prepare a simulated response to createPagevoidprepareDeletePage(String sessionId, String pageId)Prepare a simulated response to deletePagevoidprepareDeletePage(String sessionId, String pageId, Exception exception)Prepare a simulated response to deletePagevoidprepareDeletePageComponent(String sessionId, String pageComponentId)Prepare a simulated response to deletePageComponentvoidprepareDeletePageComponent(String sessionId, String pageComponentId, Exception exception)Prepare a simulated response to deletePageComponentvoidprepareDeletePageImage(String sessionId, String projectId, String attachmentId)Prepare a simulated response to deletePageImagevoidprepareDeletePageImage(String sessionId, String projectId, String attachmentId, Exception exception)Prepare a simulated response to deletePageImagevoidprepareGetHTMLSource(com.vasoftware.sf.server.services.page.PageComponentDO htmlPageCompDO, String loggedInUser, Object returnValue)Prepare a simulated response to getHTMLSourcevoidprepareGetPageComponent(String sessionId, String pageComponentId, Object returnValue)Prepare a simulated response to getPageComponentvoidprepareGetPageComponents(String sessionId, String pageId, Object returnValue)Prepare a simulated response to getPageComponentsvoidprepareGetPageData(String sessionId, String pageId, Object returnValue)Prepare a simulated response to getPageDatavoidprepareGetPageImageUrl(String sessionId, String projectId, String attachmentId, Object returnValue)Prepare a simulated response to getPageImageUrlvoidprepareGetPageList(String sessionId, String projectId, Object returnValue)Prepare a simulated response to getPageListvoidprepareGetTextComponentContent(String sessionId, String pageCompId, Object returnValue)Prepare a simulated response to getTextComponentContentvoidprepareHasViewPermission(com.vasoftware.sf.server.types.UserSessionKey sessionKey, com.vasoftware.sf.server.types.FolderPath folderPath, com.vasoftware.sf.server.types.PageKey pageKey, String loggedInUser, Object returnValue)Prepare a simulated response to hasViewPermissionvoidprepareListPageImages(String sessionId, String projectId, Object returnValue)Prepare a simulated response to listPageImagesvoidprepareMovePage(String sessionId, String pageFolderPath, String destPath)Prepare a simulated response to movePagevoidprepareMovePage(String sessionId, String pageFolderPath, String destPath, Exception exception)Prepare a simulated response to movePagevoidprepareSetComponentDisplayOrder(String sessionId, String pageId, String[] componentIds)Prepare a simulated response to setComponentDisplayOrdervoidprepareSetComponentDisplayOrder(String sessionId, String pageId, String[] componentIds, Exception exception)Prepare a simulated response to setComponentDisplayOrdervoidprepareSetLifecycleMetricComponentContent(String sessionId, PageComponent2SoapDO pageComponent, String content)Prepare a simulated response to setLifecycleMetricComponentContentvoidprepareSetLifecycleMetricComponentContent(String sessionId, PageComponent2SoapDO pageComponent, String content, Exception exception)Prepare a simulated response to setLifecycleMetricComponentContentvoidprepareSetPageComponentData(String sessionId, PageComponentSoapDO pageComponent)Prepare a simulated response to setPageComponentDatavoidprepareSetPageComponentData(String sessionId, PageComponentSoapDO pageComponent, Exception exception)Prepare a simulated response to setPageComponentDatavoidprepareSetPageData(String sessionId, PageSoapDO pageData)Prepare a simulated response to setPageDatavoidprepareSetPageData(String sessionId, PageSoapDO pageData, Exception exception)Prepare a simulated response to setPageDatavoidprepareSetPageDisplayOrder(String sessionId, String folderId, String[] childrenPageIds, Object returnValue)Prepare a simulated response to setPageDisplayOrdervoidprepareSetTextComponentContent(String sessionId, String pageCompId, String content)Prepare a simulated response to setTextComponentContentvoidprepareSetTextComponentContent(String sessionId, String pageCompId, String content, Exception exception)Prepare a simulated response to setTextComponentContentvoidprepareValidateMetricProperties(com.vasoftware.sf.server.types.UserSessionKey sessionKey, com.vasoftware.sf.server.types.NamedValues metricProperties, String loggedInUser)Prepare a simulated response to validateMetricPropertiesvoidprepareValidateMetricProperties(com.vasoftware.sf.server.types.UserSessionKey sessionKey, com.vasoftware.sf.server.types.NamedValues metricProperties, String loggedInUser, Exception exception)Prepare a simulated response to validateMetricPropertiesvoidsetComponentDisplayOrder(String sessionId, String pageId, String[] componentIds)Simulate a call to setComponentDisplayOrdervoidsetLifecycleMetricComponentContent(String sessionId, PageComponent2SoapDO pageComponent, String content)Simulate a call to setLifecycleMetricComponentContentvoidsetPageComponentData(String sessionId, PageComponentSoapDO pageComponent)Simulate a call to setPageComponentDatavoidsetPageData(String sessionId, PageSoapDO pageData)Simulate a call to setPageDatabooleansetPageDisplayOrder(String sessionId, String folderId, String[] childrenPageIds)Simulate a call to setPageDisplayOrdervoidsetTextComponentContent(String sessionId, String pageCompId, String content)Simulate a call to setTextComponentContentvoidvalidateMetricProperties(com.vasoftware.sf.server.types.UserSessionKey sessionKey, com.vasoftware.sf.server.types.NamedValues metricProperties, String loggedInUser)Simulate a call to validateMetricProperties-
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
-
PageAppSoapMockStub
public PageAppSoapMockStub(String soapServerUrl)
-
-
Method Detail
-
prepareGetPageData
public void prepareGetPageData(String sessionId, String pageId, Object returnValue)
Prepare a simulated response to getPageData
-
getPageData
public PageSoapDO getPageData(String sessionId, String pageId) throws RemoteException
Simulate a call to getPageData- Specified by:
getPageDatain interfaceIPageAppSoap- Parameters:
sessionId- User session id.pageId- the pageId for which data is to be fetched.- Returns:
- the page data
- Throws:
InvalidSessionFault- when the specified session id is invalid.NoSuchObjectFault- when the specified page id is invalid.PermissionDeniedFault- when the user has insufficient privileges.SystemFault- when an unexpected system level error occurs.RemoteException- See Also:
PageAppSoap.getPageData(java.lang.String, java.lang.String)
-
prepareGetTextComponentContent
public void prepareGetTextComponentContent(String sessionId, String pageCompId, Object returnValue)
Prepare a simulated response to getTextComponentContent
-
getTextComponentContent
public String getTextComponentContent(String sessionId, String pageCompId) throws RemoteException
Simulate a call to getTextComponentContent- Specified by:
getTextComponentContentin interfaceIPageAppSoap- Parameters:
sessionId- User session id.pageCompId- page component id for which the content/source is to be fetched.- Returns:
- content of the text component as string
- Throws:
InvalidSessionFault- when the specified session id is invalid.NoSuchObjectFault- when the specified page component id is invalid.InvalidComponentTypeFault- if the type of the component is not TextPermissionDeniedFault- when the user has insufficient privileges.SystemFault- when an unexpected system level error occurs.RemoteException- See Also:
PageAppSoap.getTextComponentContent(java.lang.String, java.lang.String)
-
prepareSetTextComponentContent
public void prepareSetTextComponentContent(String sessionId, String pageCompId, String content)
Prepare a simulated response to setTextComponentContent
-
prepareSetTextComponentContent
public void prepareSetTextComponentContent(String sessionId, String pageCompId, String content, Exception exception)
Prepare a simulated response to setTextComponentContent
-
setTextComponentContent
public void setTextComponentContent(String sessionId, String pageCompId, String content) throws RemoteException
Simulate a call to setTextComponentContent- Specified by:
setTextComponentContentin interfaceIPageAppSoap- Parameters:
sessionId- User session id.pageCompId- page component id for which the content/source is to be fetched.content- the new content- Throws:
InvalidSessionFault- when the specified session id is invalid.NoSuchObjectFault- when the specified page component id is invalid.InvalidComponentTypeFault- if the type of the component is not TextVersionMismatchFault- when component data is staleIllegalArgumentFault- for invalid contentPermissionDeniedFault- when the user has insufficient privileges.SystemFault- when an unexpected system level error occurs.RemoteException- See Also:
PageAppSoap.setTextComponentContent(java.lang.String, java.lang.String, java.lang.String)
-
prepareSetLifecycleMetricComponentContent
public void prepareSetLifecycleMetricComponentContent(String sessionId, PageComponent2SoapDO pageComponent, String content)
Prepare a simulated response to setLifecycleMetricComponentContent
-
prepareSetLifecycleMetricComponentContent
public void prepareSetLifecycleMetricComponentContent(String sessionId, PageComponent2SoapDO pageComponent, String content, Exception exception)
Prepare a simulated response to setLifecycleMetricComponentContent
-
setLifecycleMetricComponentContent
public void setLifecycleMetricComponentContent(String sessionId, PageComponent2SoapDO pageComponent, String content) throws RemoteException
Simulate a call to setLifecycleMetricComponentContent- Specified by:
setLifecycleMetricComponentContentin interfaceIPageAppSoap- Parameters:
sessionId- User session id.pageComponent- the page component to be updated.content- the html content- Throws:
InvalidSessionFault- when the specified session id is invalid.NoSuchObjectFault- when the specified page component id is invalid.InvalidComponentTypeFault- if the type of the component is not metricsVersionMismatchFault- when component data is staleIllegalArgumentFault- for invalid contentPermissionDeniedFault- when the user has insufficient privileges.SystemFault- when an unexpected system level error occurs.RemoteException- See Also:
PageAppSoap.setLifecycleMetricComponentContent(java.lang.String, com.collabnet.ce.soap60.webservices.page.PageComponent2SoapDO, java.lang.String)
-
prepareGetPageList
public void prepareGetPageList(String sessionId, String projectId, Object returnValue)
Prepare a simulated response to getPageList
-
getPageList
public PageSoapList getPageList(String sessionId, String projectId) throws RemoteException
Simulate a call to getPageList- Specified by:
getPageListin interfaceIPageAppSoap- Parameters:
sessionId- User session id.projectId- the project for which the pages are to be fetched- Returns:
- list of pages for the user in the project
- Throws:
InvalidSessionFault- when the specified session id is invalid.NoSuchObjectFault- when the specified page component id is invalid.SystemFault- when an unexpected system level error occurs.RemoteException- See Also:
PageAppSoap.getPageList(java.lang.String, java.lang.String)
-
prepareCreatePage
public void prepareCreatePage(String sessionId, String projectId, String parentId, String title, boolean visible, boolean freeform, Object returnValue)
Prepare a simulated response to createPage
-
createPage
public PageSoapDO createPage(String sessionId, String projectId, String parentId, String title, boolean visible, boolean freeform) throws RemoteException
Simulate a call to createPage- Specified by:
createPagein interfaceIPageAppSoap- Parameters:
sessionId- User session id.projectId- Id of the project in which the page is to be createdparentId- parent folder id under which the page is to be createdtitle- title of the pagevisible- visibility of the pagefreeform- true if the page link must be hidden in the left navigation- Returns:
- the newly created page
- Throws:
InvalidSessionFault- when the specified session id is invalid.NoSuchObjectFault- when the specified page component id is invalid.PermissionDeniedFault- when the user has insufficient privileges.ObjectAlreadyExistsFault- If a page with the same name already exists in the projectSystemFault- when an unexpected system level error occurs.RemoteException- See Also:
PageAppSoap.createPage(java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean, boolean)
-
prepareSetPageData
public void prepareSetPageData(String sessionId, PageSoapDO pageData)
Prepare a simulated response to setPageData
-
prepareSetPageData
public void prepareSetPageData(String sessionId, PageSoapDO pageData, Exception exception)
Prepare a simulated response to setPageData
-
setPageData
public void setPageData(String sessionId, PageSoapDO pageData) throws RemoteException
Simulate a call to setPageData- Specified by:
setPageDatain interfaceIPageAppSoap- Parameters:
sessionId- User session id.pageData- the page to be edited.- Throws:
InvalidSessionFault- when the specified session id is invalid.PermissionDeniedFault- when the user has insufficient privileges.NoSuchObjectFault- when the specified page component id is invalid.VersionMismatchFault- when page data is staleSystemFault- when an unexpected system level error occurs.RemoteException- See Also:
PageAppSoap.setPageData(java.lang.String, com.collabnet.ce.soap60.webservices.page.PageSoapDO)
-
prepareGetPageComponents
public void prepareGetPageComponents(String sessionId, String pageId, Object returnValue)
Prepare a simulated response to getPageComponents
-
getPageComponents
public PageComponentSoapDO[] getPageComponents(String sessionId, String pageId) throws RemoteException
Simulate a call to getPageComponents- Specified by:
getPageComponentsin interfaceIPageAppSoap- Parameters:
sessionId- User session id.pageId- the id of the page from which to get the list of components- Returns:
- array of page components
- Throws:
InvalidSessionFault- when the specified session id is invalid.PermissionDeniedFault- when the user has insufficient privileges.NoSuchObjectFault- when the specified page component id is invalid.SystemFault- when an unexpected system level error occurs.RemoteException- See Also:
PageAppSoap.getPageComponents(java.lang.String, java.lang.String)
-
prepareDeletePage
public void prepareDeletePage(String sessionId, String pageId)
Prepare a simulated response to deletePage
-
prepareDeletePage
public void prepareDeletePage(String sessionId, String pageId, Exception exception)
Prepare a simulated response to deletePage
-
deletePage
public void deletePage(String sessionId, String pageId) throws RemoteException
Simulate a call to deletePage- Specified by:
deletePagein interfaceIPageAppSoap- Parameters:
sessionId- User session id.pageId- the page to be deleted.- Throws:
InvalidSessionFault- when the specified session id is invalid.NoSuchObjectFault- when the specified page id is invalid.PermissionDeniedFault- when the user has insufficient privileges.CannotDeleteHomePageFault- when the user tries to delete the home page.SystemFault- when an unexpected system level error occurs.RemoteException- See Also:
PageAppSoap.deletePage(java.lang.String, java.lang.String)
-
prepareDeletePageComponent
public void prepareDeletePageComponent(String sessionId, String pageComponentId)
Prepare a simulated response to deletePageComponent
-
prepareDeletePageComponent
public void prepareDeletePageComponent(String sessionId, String pageComponentId, Exception exception)
Prepare a simulated response to deletePageComponent
-
deletePageComponent
public void deletePageComponent(String sessionId, String pageComponentId) throws RemoteException
Simulate a call to deletePageComponent- Specified by:
deletePageComponentin interfaceIPageAppSoap- Parameters:
sessionId- User session id.pageComponentId- the id of the page component to be deleted.- Throws:
InvalidSessionFault- when the specified session id is invalid.NoSuchObjectFault- when the specified page id is invalid.PermissionDeniedFault- when the specified page id is invalid.SystemFault- when an unexpected system level error occurs.RemoteException- See Also:
PageAppSoap.deletePageComponent(java.lang.String, java.lang.String)
-
prepareSetComponentDisplayOrder
public void prepareSetComponentDisplayOrder(String sessionId, String pageId, String[] componentIds)
Prepare a simulated response to setComponentDisplayOrder
-
prepareSetComponentDisplayOrder
public void prepareSetComponentDisplayOrder(String sessionId, String pageId, String[] componentIds, Exception exception)
Prepare a simulated response to setComponentDisplayOrder
-
setComponentDisplayOrder
public void setComponentDisplayOrder(String sessionId, String pageId, String[] componentIds) throws RemoteException
Simulate a call to setComponentDisplayOrder- Specified by:
setComponentDisplayOrderin interfaceIPageAppSoap- Parameters:
sessionId- User session id.pageId- the id of the page where the components belongcomponentIds- ids of component in the order which is to be set- Throws:
InvalidSessionFault- when the specified session id is invalid.NoSuchObjectFault- when the specified page component id is invalid.PermissionDeniedFault- when the user has insufficient privileges.SystemFault- when an unexpected system level error occurs.RemoteException- See Also:
PageAppSoap.setComponentDisplayOrder(java.lang.String, java.lang.String, java.lang.String[])
-
prepareCreateComponent
public void prepareCreateComponent(String sessionId, String pageId, String compName, String componentType, boolean topOfPage, int visibility, SoapNamedValues attributes, String content, Object returnValue)
Prepare a simulated response to createComponent
-
createComponent
public PageComponentSoapDO createComponent(String sessionId, String pageId, String compName, String componentType, boolean topOfPage, int visibility, SoapNamedValues attributes, String content) throws RemoteException
Simulate a call to createComponent- Specified by:
createComponentin interfaceIPageAppSoap- Parameters:
sessionId- User session id.pageId- the id of the page where the component is to be created.compName- component namecomponentType- component type.topOfPage- true if the component is to be created at top of the pagevisibility- defines the visibility of this component, 1= visible, 0 = hidden.attributes- component attributes.content- text component content, applicable for Text components and Lifecycle metrics components.- Returns:
- the newly created component
- Throws:
InvalidSessionFault- when the specified session id is invalid.NoSuchObjectFault- when the specified page component id is invalid.IllegalArgumentFault- for incorrect parameter valuesPermissionDeniedFault- when the user has insufficient privileges.ObjectAlreadyExistsFault- If a component with the same name already exists in the pageSystemFault- when an unexpected system level error occurs.RemoteException- See Also:
PageAppSoap.createComponent(java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean, int, com.collabnet.ce.soap60.types.SoapNamedValues, java.lang.String)
-
prepareCreateComponent2
public void prepareCreateComponent2(String sessionId, String pageId, String compName, String componentType, boolean topOfPage, int visibility, SoapNamedValues attributes, String content, Object returnValue)
Prepare a simulated response to createComponent2
-
createComponent2
public PageComponent2SoapDO createComponent2(String sessionId, String pageId, String compName, String componentType, boolean topOfPage, int visibility, SoapNamedValues attributes, String content) throws RemoteException
Simulate a call to createComponent2- Specified by:
createComponent2in interfaceIPageAppSoap- Parameters:
sessionId- User session id.pageId- the id of the page where the component is to be created.compName- component namecomponentType- component type.topOfPage- true if the component is to be created at top of the pagevisibility- defines the visibility of this component, 1= visible, 0 = hidden.attributes- component attributes.content- text component content, applicable for Text components and Lifecycle metrics components.- Returns:
- the newly created component
- Throws:
InvalidSessionFault- when the specified session id is invalid.NoSuchObjectFault- when the specified page component id is invalid.IllegalArgumentFault- for incorrect parameter valuesPermissionDeniedFault- when the user has insufficient privileges.ObjectAlreadyExistsFault- If a component with the same name already exists in the pageSystemFault- when an unexpected system level error occurs.RemoteException- See Also:
PageAppSoap.createComponent2(java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean, int, com.collabnet.ce.soap60.types.SoapNamedValues, java.lang.String)
-
prepareSetPageComponentData
public void prepareSetPageComponentData(String sessionId, PageComponentSoapDO pageComponent)
Prepare a simulated response to setPageComponentData
-
prepareSetPageComponentData
public void prepareSetPageComponentData(String sessionId, PageComponentSoapDO pageComponent, Exception exception)
Prepare a simulated response to setPageComponentData
-
setPageComponentData
public void setPageComponentData(String sessionId, PageComponentSoapDO pageComponent) throws RemoteException
Simulate a call to setPageComponentData- Specified by:
setPageComponentDatain interfaceIPageAppSoap- Parameters:
sessionId- User session id.pageComponent- the page component to be updated.- Throws:
InvalidSessionFault- when the specified session id is invalid.NoSuchObjectFault- when the specified page id is invalid.PermissionDeniedFault- when the specified page id is invalid.VersionMismatchFault- when the component data is stale.IllegalArgumentFault- for incorrect data.SystemFault- when an unexpected system level error occurs.RemoteException- See Also:
PageAppSoap.setPageComponentData(java.lang.String, com.collabnet.ce.soap60.webservices.page.PageComponentSoapDO)
-
prepareAssertAttributesNotEmpty
public void prepareAssertAttributesNotEmpty(SoapNamedValues attributes)
Prepare a simulated response to assertAttributesNotEmpty
-
prepareAssertAttributesNotEmpty
public void prepareAssertAttributesNotEmpty(SoapNamedValues attributes, Exception exception)
Prepare a simulated response to assertAttributesNotEmpty
-
assertAttributesNotEmpty
public void assertAttributesNotEmpty(SoapNamedValues attributes) throws RemoteException
Simulate a call to assertAttributesNotEmpty
-
prepareValidateMetricProperties
public void prepareValidateMetricProperties(com.vasoftware.sf.server.types.UserSessionKey sessionKey, com.vasoftware.sf.server.types.NamedValues metricProperties, String loggedInUser)Prepare a simulated response to validateMetricProperties
-
prepareValidateMetricProperties
public void prepareValidateMetricProperties(com.vasoftware.sf.server.types.UserSessionKey sessionKey, com.vasoftware.sf.server.types.NamedValues metricProperties, String loggedInUser, Exception exception)Prepare a simulated response to validateMetricProperties
-
validateMetricProperties
public void validateMetricProperties(com.vasoftware.sf.server.types.UserSessionKey sessionKey, com.vasoftware.sf.server.types.NamedValues metricProperties, String loggedInUser) throws RemoteExceptionSimulate a call to validateMetricProperties
-
prepareGetHTMLSource
public void prepareGetHTMLSource(com.vasoftware.sf.server.services.page.PageComponentDO htmlPageCompDO, String loggedInUser, Object returnValue)Prepare a simulated response to getHTMLSource
-
getHTMLSource
public String getHTMLSource(com.vasoftware.sf.server.services.page.PageComponentDO htmlPageCompDO, String loggedInUser) throws RemoteException
Simulate a call to getHTMLSource
-
prepareHasViewPermission
public void prepareHasViewPermission(com.vasoftware.sf.server.types.UserSessionKey sessionKey, com.vasoftware.sf.server.types.FolderPath folderPath, com.vasoftware.sf.server.types.PageKey pageKey, String loggedInUser, Object returnValue)Prepare a simulated response to hasViewPermission
-
hasViewPermission
public boolean hasViewPermission(com.vasoftware.sf.server.types.UserSessionKey sessionKey, com.vasoftware.sf.server.types.FolderPath folderPath, com.vasoftware.sf.server.types.PageKey pageKey, String loggedInUser) throws RemoteExceptionSimulate a call to hasViewPermission
-
prepareSetPageDisplayOrder
public void prepareSetPageDisplayOrder(String sessionId, String folderId, String[] childrenPageIds, Object returnValue)
Prepare a simulated response to setPageDisplayOrder
-
setPageDisplayOrder
public boolean setPageDisplayOrder(String sessionId, String folderId, String[] childrenPageIds) throws RemoteException
Simulate a call to setPageDisplayOrder- Specified by:
setPageDisplayOrderin interfaceIPageAppSoap- Parameters:
sessionId- User session id.folderId- the folder to be used.childrenPageIds- page keys in the new intended order based on array order must pass in all pages.- Returns:
- true is the update went perfectly
- Throws:
InvalidSessionFault- when the specified session id is invalid.PermissionDeniedFault- when the user has insufficient privileges.NoSuchObjectFault- when the specified page component id is invalid.SystemFault- when an unexpected system level error occurs.RemoteException- See Also:
PageAppSoap.setPageDisplayOrder(java.lang.String, java.lang.String, java.lang.String[])
-
prepareMovePage
public void prepareMovePage(String sessionId, String pageFolderPath, String destPath)
Prepare a simulated response to movePage
-
prepareMovePage
public void prepareMovePage(String sessionId, String pageFolderPath, String destPath, Exception exception)
Prepare a simulated response to movePage
-
movePage
public void movePage(String sessionId, String pageFolderPath, String destPath) throws RemoteException
Simulate a call to movePage- Specified by:
movePagein interfaceIPageAppSoap- Parameters:
sessionId- User session id.pageFolderPath- The path to the page to movedestPath- The path of the destination parent folder- Throws:
InvalidSessionFault- when the specified session id is invalid.PermissionDeniedFault- when the user has insufficient privileges.NoSuchObjectFault- when the specified folder component id is invalid.SystemFault- when an unexpected system level error occurs.RemoteException- See Also:
PageAppSoap.movePage(java.lang.String, java.lang.String, java.lang.String)
-
prepareAddPageImage
public void prepareAddPageImage(String sessionId, String projectId, String fileId, String filename, String mimetype, Object returnValue)
Prepare a simulated response to addPageImage
-
addPageImage
public String addPageImage(String sessionId, String projectId, String fileId, String filename, String mimetype) throws RemoteException
Simulate a call to addPageImage- Specified by:
addPageImagein interfaceIPageAppSoap- Parameters:
sessionId- User session id.projectId- Project id.fileId- Image file ID returned by FileStorageApp/SimpleFileStorageApp webservice.filename- Image file name.mimetype- Image file type.- Returns:
- attachment id of the added image
- Throws:
InvalidSessionFault- when the sessionId is invalid.PermissionDeniedFault- when permission is denied for the specified operation.NoSuchObjectFault- when the specified object is invalid.SystemFault- when an unexpected system error occurs.RemoteException- See Also:
PageAppSoap.addPageImage(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
-
prepareListPageImages
public void prepareListPageImages(String sessionId, String projectId, Object returnValue)
Prepare a simulated response to listPageImages
-
listPageImages
public AttachmentSoapList listPageImages(String sessionId, String projectId) throws RemoteException
Simulate a call to listPageImages- Specified by:
listPageImagesin interfaceIPageAppSoap- Parameters:
sessionId- User session id.projectId- Project id.- Returns:
- List of page images as AttachmentSoapList.
- Throws:
InvalidSessionFault- when the sessionId is invalid.PermissionDeniedFault- when permission is denied for the specified operation.NoSuchObjectFault- when the specified object is invalid.SystemFault- when an unexpected system error occurs.RemoteException- See Also:
PageAppSoap.listPageImages(java.lang.String, java.lang.String)
-
prepareGetPageImageUrl
public void prepareGetPageImageUrl(String sessionId, String projectId, String attachmentId, Object returnValue)
Prepare a simulated response to getPageImageUrl
-
getPageImageUrl
public String getPageImageUrl(String sessionId, String projectId, String attachmentId) throws RemoteException
Simulate a call to getPageImageUrl- Specified by:
getPageImageUrlin interfaceIPageAppSoap- Parameters:
sessionId- User session id.projectId- Project id.attachmentId- Attachment id of the image.- Returns:
- the relative URL for the image.
- Throws:
InvalidSessionFault- when the sessionId is invalid.PermissionDeniedFault- when permission is denied for the specified operation.NoSuchObjectFault- when the specified object is invalid.SystemFault- when an unexpected system error occurs.RemoteException- See Also:
PageAppSoap.getPageImageUrl(java.lang.String, java.lang.String, java.lang.String)
-
prepareDeletePageImage
public void prepareDeletePageImage(String sessionId, String projectId, String attachmentId)
Prepare a simulated response to deletePageImage
-
prepareDeletePageImage
public void prepareDeletePageImage(String sessionId, String projectId, String attachmentId, Exception exception)
Prepare a simulated response to deletePageImage
-
deletePageImage
public void deletePageImage(String sessionId, String projectId, String attachmentId) throws RemoteException
Simulate a call to deletePageImage- Specified by:
deletePageImagein interfaceIPageAppSoap- Parameters:
sessionId- User session id.projectId- Project id.attachmentId- The attachment 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 error occurs.RemoteException- See Also:
PageAppSoap.deletePageImage(java.lang.String, java.lang.String, java.lang.String)
-
prepareGetPageComponent
public void prepareGetPageComponent(String sessionId, String pageComponentId, Object returnValue)
Prepare a simulated response to getPageComponent
-
getPageComponent
public PageComponent2SoapDO getPageComponent(String sessionId, String pageComponentId) throws RemoteException
Simulate a call to getPageComponent- Specified by:
getPageComponentin interfaceIPageAppSoap- Parameters:
sessionId- User session id.pageComponentId- the id of the page component from which to get the component- Returns:
- page component
- Throws:
InvalidSessionFault- when the specified session id is invalid.PermissionDeniedFault- when the user has insufficient privileges.NoSuchObjectFault- when the specified page component id is invalid.SystemFault- when an unexpected system level error occurs.RemoteException- See Also:
PageAppSoap.getPageComponent(java.lang.String, java.lang.String)
-
-