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
-
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 TypeMethodDescriptionSimulate a call to addPageImagevoidassertAttributesNotEmpty(SoapNamedValues attributes) Simulate a call to assertAttributesNotEmptycreateComponent(String sessionId, String pageId, String compName, String componentType, boolean topOfPage, int visibility, SoapNamedValues attributes, String content) Simulate a call to createComponentcreateComponent2(String sessionId, String pageId, String compName, String componentType, boolean topOfPage, int visibility, SoapNamedValues attributes, String content) Simulate a call to createComponent2createPage(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 deletePageImagegetHTMLSource(com.vasoftware.sf.server.services.page.PageComponentDO htmlPageCompDO, String loggedInUser) Simulate a call to getHTMLSourcegetPageComponent(String sessionId, String pageComponentId) Simulate a call to getPageComponentgetPageComponents(String sessionId, String pageId) Simulate a call to getPageComponentsgetPageData(String sessionId, String pageId) Simulate a call to getPageDatagetPageImageUrl(String sessionId, String projectId, String attachmentId) Simulate a call to getPageImageUrlgetPageList(String sessionId, String projectId) Simulate a call to getPageListgetTextComponentContent(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 hasViewPermissionlistPageImages(String sessionId, String projectId) Simulate a call to listPageImagesvoidSimulate 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 validateMetricPropertiesMethods 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
-
PageAppSoapMockStub
-
-
Method Details
-
prepareGetPageData
Prepare a simulated response to getPageData -
getPageData
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:
-
prepareGetTextComponentContent
Prepare a simulated response to getTextComponentContent -
getTextComponentContent
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:
-
prepareSetTextComponentContent
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:
-
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:
-
prepareGetPageList
Prepare a simulated response to getPageList -
getPageList
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:
-
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:
-
prepareSetPageData
Prepare a simulated response to setPageData -
prepareSetPageData
Prepare a simulated response to setPageData -
setPageData
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:
-
prepareGetPageComponents
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:
-
prepareDeletePage
Prepare a simulated response to deletePage -
prepareDeletePage
Prepare a simulated response to deletePage -
deletePage
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:
-
prepareDeletePageComponent
Prepare a simulated response to deletePageComponent -
prepareDeletePageComponent
public void prepareDeletePageComponent(String sessionId, String pageComponentId, Exception exception) Prepare a simulated response to deletePageComponent -
deletePageComponent
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:
-
prepareSetComponentDisplayOrder
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:
-
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:
-
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:
-
prepareSetPageComponentData
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:
-
prepareAssertAttributesNotEmpty
Prepare a simulated response to assertAttributesNotEmpty- See Also:
-
PageAppSoap.assertAttributesNotEmpty(com.collabnet.ce.soap60.types.SoapNamedValues)
-
prepareAssertAttributesNotEmpty
Prepare a simulated response to assertAttributesNotEmpty- See Also:
-
PageAppSoap.assertAttributesNotEmpty(com.collabnet.ce.soap60.types.SoapNamedValues)
-
assertAttributesNotEmpty
Simulate a call to assertAttributesNotEmpty- Throws:
RemoteException- See Also:
-
PageAppSoap.assertAttributesNotEmpty(com.collabnet.ce.soap60.types.SoapNamedValues)
-
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- See Also:
-
PageAppSoap.validateMetricProperties(com.vasoftware.sf.server.types.UserSessionKey, com.vasoftware.sf.server.types.NamedValues, java.lang.String)
-
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- See Also:
-
PageAppSoap.validateMetricProperties(com.vasoftware.sf.server.types.UserSessionKey, com.vasoftware.sf.server.types.NamedValues, java.lang.String)
-
validateMetricProperties
public void validateMetricProperties(com.vasoftware.sf.server.types.UserSessionKey sessionKey, com.vasoftware.sf.server.types.NamedValues metricProperties, String loggedInUser) throws RemoteException Simulate a call to validateMetricProperties- Throws:
RemoteException- See Also:
-
PageAppSoap.validateMetricProperties(com.vasoftware.sf.server.types.UserSessionKey, com.vasoftware.sf.server.types.NamedValues, java.lang.String)
-
prepareGetHTMLSource
public void prepareGetHTMLSource(com.vasoftware.sf.server.services.page.PageComponentDO htmlPageCompDO, String loggedInUser, Object returnValue) Prepare a simulated response to getHTMLSource- See Also:
-
PageAppSoap.getHTMLSource(com.vasoftware.sf.server.services.page.PageComponentDO, java.lang.String)
-
getHTMLSource
public String getHTMLSource(com.vasoftware.sf.server.services.page.PageComponentDO htmlPageCompDO, String loggedInUser) throws RemoteException Simulate a call to getHTMLSource- Throws:
RemoteException- See Also:
-
PageAppSoap.getHTMLSource(com.vasoftware.sf.server.services.page.PageComponentDO, java.lang.String)
-
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- See Also:
-
PageAppSoap.hasViewPermission(com.vasoftware.sf.server.types.UserSessionKey, com.vasoftware.sf.server.types.FolderPath, com.vasoftware.sf.server.types.PageKey, java.lang.String)
-
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 RemoteException Simulate a call to hasViewPermission- Throws:
RemoteException- See Also:
-
PageAppSoap.hasViewPermission(com.vasoftware.sf.server.types.UserSessionKey, com.vasoftware.sf.server.types.FolderPath, com.vasoftware.sf.server.types.PageKey, java.lang.String)
-
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:
-
prepareMovePage
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:
-
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:
-
prepareListPageImages
Prepare a simulated response to listPageImages -
listPageImages
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:
-
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:
-
prepareDeletePageImage
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:
-
prepareGetPageComponent
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:
-