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_WILDCARD
Fields inherited from class com.collabnet.ce.soap60.webservices.ClientSoapStub
DEFAULT_CLIENT_TIME_OUT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSimulate a call to addPageImagevoid
assertAttributesNotEmpty
(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 createPagevoid
deletePage
(String sessionId, String pageId) Simulate a call to deletePagevoid
deletePageComponent
(String sessionId, String pageComponentId) Simulate a call to deletePageComponentvoid
deletePageImage
(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 getTextComponentContentboolean
hasViewPermission
(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 listPageImagesvoid
Simulate a call to movePagevoid
prepareAddPageImage
(String sessionId, String projectId, String fileId, String filename, String mimetype, Object returnValue) Prepare a simulated response to addPageImagevoid
prepareAssertAttributesNotEmpty
(SoapNamedValues attributes) Prepare a simulated response to assertAttributesNotEmptyvoid
prepareAssertAttributesNotEmpty
(SoapNamedValues attributes, Exception exception) Prepare a simulated response to assertAttributesNotEmptyvoid
prepareCreateComponent
(String sessionId, String pageId, String compName, String componentType, boolean topOfPage, int visibility, SoapNamedValues attributes, String content, Object returnValue) Prepare a simulated response to createComponentvoid
prepareCreateComponent2
(String sessionId, String pageId, String compName, String componentType, boolean topOfPage, int visibility, SoapNamedValues attributes, String content, Object returnValue) Prepare a simulated response to createComponent2void
prepareCreatePage
(String sessionId, String projectId, String parentId, String title, boolean visible, boolean freeform, Object returnValue) Prepare a simulated response to createPagevoid
prepareDeletePage
(String sessionId, String pageId) Prepare a simulated response to deletePagevoid
prepareDeletePage
(String sessionId, String pageId, Exception exception) Prepare a simulated response to deletePagevoid
prepareDeletePageComponent
(String sessionId, String pageComponentId) Prepare a simulated response to deletePageComponentvoid
prepareDeletePageComponent
(String sessionId, String pageComponentId, Exception exception) Prepare a simulated response to deletePageComponentvoid
prepareDeletePageImage
(String sessionId, String projectId, String attachmentId) Prepare a simulated response to deletePageImagevoid
prepareDeletePageImage
(String sessionId, String projectId, String attachmentId, Exception exception) Prepare a simulated response to deletePageImagevoid
prepareGetHTMLSource
(com.vasoftware.sf.server.services.page.PageComponentDO htmlPageCompDO, String loggedInUser, Object returnValue) Prepare a simulated response to getHTMLSourcevoid
prepareGetPageComponent
(String sessionId, String pageComponentId, Object returnValue) Prepare a simulated response to getPageComponentvoid
prepareGetPageComponents
(String sessionId, String pageId, Object returnValue) Prepare a simulated response to getPageComponentsvoid
prepareGetPageData
(String sessionId, String pageId, Object returnValue) Prepare a simulated response to getPageDatavoid
prepareGetPageImageUrl
(String sessionId, String projectId, String attachmentId, Object returnValue) Prepare a simulated response to getPageImageUrlvoid
prepareGetPageList
(String sessionId, String projectId, Object returnValue) Prepare a simulated response to getPageListvoid
prepareGetTextComponentContent
(String sessionId, String pageCompId, Object returnValue) Prepare a simulated response to getTextComponentContentvoid
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 hasViewPermissionvoid
prepareListPageImages
(String sessionId, String projectId, Object returnValue) Prepare a simulated response to listPageImagesvoid
prepareMovePage
(String sessionId, String pageFolderPath, String destPath) Prepare a simulated response to movePagevoid
prepareMovePage
(String sessionId, String pageFolderPath, String destPath, Exception exception) Prepare a simulated response to movePagevoid
prepareSetComponentDisplayOrder
(String sessionId, String pageId, String[] componentIds) Prepare a simulated response to setComponentDisplayOrdervoid
prepareSetComponentDisplayOrder
(String sessionId, String pageId, String[] componentIds, Exception exception) Prepare a simulated response to setComponentDisplayOrdervoid
prepareSetLifecycleMetricComponentContent
(String sessionId, PageComponent2SoapDO pageComponent, String content) Prepare a simulated response to setLifecycleMetricComponentContentvoid
prepareSetLifecycleMetricComponentContent
(String sessionId, PageComponent2SoapDO pageComponent, String content, Exception exception) Prepare a simulated response to setLifecycleMetricComponentContentvoid
prepareSetPageComponentData
(String sessionId, PageComponentSoapDO pageComponent) Prepare a simulated response to setPageComponentDatavoid
prepareSetPageComponentData
(String sessionId, PageComponentSoapDO pageComponent, Exception exception) Prepare a simulated response to setPageComponentDatavoid
prepareSetPageData
(String sessionId, PageSoapDO pageData) Prepare a simulated response to setPageDatavoid
prepareSetPageData
(String sessionId, PageSoapDO pageData, Exception exception) Prepare a simulated response to setPageDatavoid
prepareSetPageDisplayOrder
(String sessionId, String folderId, String[] childrenPageIds, Object returnValue) Prepare a simulated response to setPageDisplayOrdervoid
prepareSetTextComponentContent
(String sessionId, String pageCompId, String content) Prepare a simulated response to setTextComponentContentvoid
prepareSetTextComponentContent
(String sessionId, String pageCompId, String content, Exception exception) Prepare a simulated response to setTextComponentContentvoid
prepareValidateMetricProperties
(com.vasoftware.sf.server.types.UserSessionKey sessionKey, com.vasoftware.sf.server.types.NamedValues metricProperties, String loggedInUser) Prepare a simulated response to validateMetricPropertiesvoid
prepareValidateMetricProperties
(com.vasoftware.sf.server.types.UserSessionKey sessionKey, com.vasoftware.sf.server.types.NamedValues metricProperties, String loggedInUser, Exception exception) Prepare a simulated response to validateMetricPropertiesvoid
setComponentDisplayOrder
(String sessionId, String pageId, String[] componentIds) Simulate a call to setComponentDisplayOrdervoid
setLifecycleMetricComponentContent
(String sessionId, PageComponent2SoapDO pageComponent, String content) Simulate a call to setLifecycleMetricComponentContentvoid
setPageComponentData
(String sessionId, PageComponentSoapDO pageComponent) Simulate a call to setPageComponentDatavoid
setPageData
(String sessionId, PageSoapDO pageData) Simulate a call to setPageDataboolean
setPageDisplayOrder
(String sessionId, String folderId, String[] childrenPageIds) Simulate a call to setPageDisplayOrdervoid
setTextComponentContent
(String sessionId, String pageCompId, String content) Simulate a call to setTextComponentContentvoid
validateMetricProperties
(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, simulateCall
Methods 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:
getPageData
in 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:
getTextComponentContent
in 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:
setTextComponentContent
in 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:
setLifecycleMetricComponentContent
in 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:
getPageList
in 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:
createPage
in 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:
setPageData
in 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:
getPageComponents
in 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:
deletePage
in 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:
deletePageComponent
in 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:
setComponentDisplayOrder
in 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:
createComponent
in 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:
createComponent2
in 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:
setPageComponentData
in 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:
setPageDisplayOrder
in 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:
movePage
in 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:
addPageImage
in 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:
listPageImages
in 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:
getPageImageUrl
in 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:
deletePageImage
in 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:
getPageComponent
in 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:
-