public interface IPageAppSoap
PageComponent2SoapDO
Modifier and Type | Method and Description |
---|---|
java.lang.String |
addPageImage(java.lang.String sessionId,
java.lang.String projectId,
java.lang.String fileId,
java.lang.String filename,
java.lang.String mimetype)
Adds an uploaded file as an image for a page.
|
PageComponentSoapDO |
createComponent(java.lang.String sessionId,
java.lang.String pageId,
java.lang.String compName,
java.lang.String componentType,
boolean topOfPage,
int visibility,
SoapNamedValues attributes,
java.lang.String content)
Creates a page component.
|
PageComponent2SoapDO |
createComponent2(java.lang.String sessionId,
java.lang.String pageId,
java.lang.String compName,
java.lang.String componentType,
boolean topOfPage,
int visibility,
SoapNamedValues attributes,
java.lang.String content)
Creates a page component.
|
PageSoapDO |
createPage(java.lang.String sessionId,
java.lang.String projectId,
java.lang.String parentId,
java.lang.String title,
boolean visible,
boolean freeform)
Creates a new project page.
|
void |
deletePage(java.lang.String sessionId,
java.lang.String pageId)
Deletes an existing page
|
void |
deletePageComponent(java.lang.String sessionId,
java.lang.String pageComponentId)
Deletes an existing page component
|
void |
deletePageImage(java.lang.String sessionId,
java.lang.String projectId,
java.lang.String attachmentId)
Deletes the specified attachment of the specified object.
|
PageComponent2SoapDO |
getPageComponent(java.lang.String sessionId,
java.lang.String pageComponentId)
Gets page component meta data and settings for a given page component id.
|
PageComponentSoapDO[] |
getPageComponents(java.lang.String sessionId,
java.lang.String pageId)
Gets an array of page components for a page (in the correct order)
|
PageSoapDO |
getPageData(java.lang.String sessionId,
java.lang.String pageId)
Gets a project page.
|
java.lang.String |
getPageImageUrl(java.lang.String sessionId,
java.lang.String projectId,
java.lang.String attachmentId)
Gets relative URL to access to the uploaded image from an HTML page.
|
PageSoapList |
getPageList(java.lang.String sessionId,
java.lang.String projectId)
Gets all pages for a user in the specified project (in the correct order).
|
java.lang.String |
getTextComponentContent(java.lang.String sessionId,
java.lang.String pageCompId)
Gets the content of a Text component.
|
AttachmentSoapList |
listPageImages(java.lang.String sessionId,
java.lang.String projectId)
Lists the images for a project.
|
void |
movePage(java.lang.String sessionId,
java.lang.String pageFolderPath,
java.lang.String destPath)
Moves a page (including sub pages and contents).
|
void |
setComponentDisplayOrder(java.lang.String sessionId,
java.lang.String pageId,
java.lang.String[] componentIds)
Sets the display order for components within a page
|
void |
setLifecycleMetricComponentContent(java.lang.String sessionId,
PageComponent2SoapDO pageComponent,
java.lang.String content)
Sets Lifecycle metric component.
|
void |
setPageComponentData(java.lang.String sessionId,
PageComponentSoapDO pageComponent)
Updates a page component
|
void |
setPageData(java.lang.String sessionId,
PageSoapDO pageData)
Edits an existing page.
|
boolean |
setPageDisplayOrder(java.lang.String sessionId,
java.lang.String folderId,
java.lang.String[] childrenPageIds)
Sets the page display order.
|
void |
setTextComponentContent(java.lang.String sessionId,
java.lang.String pageCompId,
java.lang.String content)
Sets the content of a Text component.
|
PageSoapDO getPageData(java.lang.String sessionId, java.lang.String pageId) throws java.rmi.RemoteException
sessionId
- User session id.pageId
- the pageId for which data is to be fetched.com.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.NoSuchObjectFault
- when the specified page id is invalid.com.collabnet.ce.soap60.fault.PermissionDeniedFault
- when the user has insufficient privileges.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system level error occurs.java.rmi.RemoteException
java.lang.String getTextComponentContent(java.lang.String sessionId, java.lang.String pageCompId) throws java.rmi.RemoteException
sessionId
- User session id.pageCompId
- page component id for which the content/source is to be fetched.com.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.NoSuchObjectFault
- when the specified page component id is invalid.com.collabnet.ce.soap60.fault.InvalidComponentTypeFault
- if the type of the component is not Textcom.collabnet.ce.soap60.fault.PermissionDeniedFault
- when the user has insufficient privileges.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system level error occurs.java.rmi.RemoteException
void setTextComponentContent(java.lang.String sessionId, java.lang.String pageCompId, java.lang.String content) throws java.rmi.RemoteException
sessionId
- User session id.pageCompId
- page component id for which the content/source is to be fetched.content
- the new contentcom.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.NoSuchObjectFault
- when the specified page component id is invalid.com.collabnet.ce.soap60.fault.InvalidComponentTypeFault
- if the type of the component is not Textcom.collabnet.ce.soap60.fault.VersionMismatchFault
- when component data is stalecom.collabnet.ce.soap60.fault.IllegalArgumentFault
- for invalid contentcom.collabnet.ce.soap60.fault.PermissionDeniedFault
- when the user has insufficient privileges.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system level error occurs.java.rmi.RemoteException
void setLifecycleMetricComponentContent(java.lang.String sessionId, PageComponent2SoapDO pageComponent, java.lang.String content) throws java.rmi.RemoteException
sessionId
- User session id.pageComponent
- the page component to be updated.content
- the html contentcom.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.NoSuchObjectFault
- when the specified page component id is invalid.com.collabnet.ce.soap60.fault.InvalidComponentTypeFault
- if the type of the component is not metricscom.collabnet.ce.soap60.fault.VersionMismatchFault
- when component data is stalecom.collabnet.ce.soap60.fault.IllegalArgumentFault
- for invalid contentcom.collabnet.ce.soap60.fault.PermissionDeniedFault
- when the user has insufficient privileges.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system level error occurs.java.rmi.RemoteException
PageSoapList getPageList(java.lang.String sessionId, java.lang.String projectId) throws java.rmi.RemoteException
sessionId
- User session id.projectId
- the project for which the pages are to be fetchedcom.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.NoSuchObjectFault
- when the specified page component id is invalid.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system level error occurs.java.rmi.RemoteException
PageSoapDO createPage(java.lang.String sessionId, java.lang.String projectId, java.lang.String parentId, java.lang.String title, boolean visible, boolean freeform) throws java.rmi.RemoteException
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 created, if null
then a top level page under the project will be created.title
- title of the pagevisible
- visibility of the pagefreeform
- true if the page link must be hidden in the left navigationcom.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.NoSuchObjectFault
- when the specified page component id is invalid.com.collabnet.ce.soap60.fault.PermissionDeniedFault
- when the user has insufficient privileges.com.collabnet.ce.soap60.fault.ObjectAlreadyExistsFault
- If a page with the same name already exists in the projectcom.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system level error occurs.java.rmi.RemoteException
void setPageData(java.lang.String sessionId, PageSoapDO pageData) throws java.rmi.RemoteException
sessionId
- User session id.pageData
- the page to be edited.com.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.PermissionDeniedFault
- when the user has insufficient privileges.com.collabnet.ce.soap60.fault.NoSuchObjectFault
- when the specified page component id is invalid.com.collabnet.ce.soap60.fault.VersionMismatchFault
- when page data is stalecom.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system level error occurs.java.rmi.RemoteException
PageComponentSoapDO[] getPageComponents(java.lang.String sessionId, java.lang.String pageId) throws java.rmi.RemoteException
sessionId
- User session id.pageId
- the id of the page from which to get the list of componentscom.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.PermissionDeniedFault
- when the user has insufficient privileges.com.collabnet.ce.soap60.fault.NoSuchObjectFault
- when the specified page component id is invalid.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system level error occurs.java.rmi.RemoteException
void deletePage(java.lang.String sessionId, java.lang.String pageId) throws java.rmi.RemoteException
sessionId
- User session id.pageId
- the page to be deleted.com.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.NoSuchObjectFault
- when the specified page id is invalid.com.collabnet.ce.soap60.fault.PermissionDeniedFault
- when the user has insufficient privileges.com.collabnet.ce.soap60.fault.CannotDeleteHomePageFault
- when the user tries to delete the home page.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system level error occurs.java.rmi.RemoteException
void deletePageComponent(java.lang.String sessionId, java.lang.String pageComponentId) throws java.rmi.RemoteException
sessionId
- User session id.pageComponentId
- the id of the page component to be deleted.com.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.NoSuchObjectFault
- when the specified page id is invalid.com.collabnet.ce.soap60.fault.PermissionDeniedFault
- when the specified page id is invalid.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system level error occurs.java.rmi.RemoteException
void setComponentDisplayOrder(java.lang.String sessionId, java.lang.String pageId, java.lang.String[] componentIds) throws java.rmi.RemoteException
sessionId
- User session id.pageId
- the id of the page where the components belongcomponentIds
- ids of component in the order which is to be setcom.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.NoSuchObjectFault
- when the specified page component id is invalid.com.collabnet.ce.soap60.fault.PermissionDeniedFault
- when the user has insufficient privileges.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system level error occurs.java.rmi.RemoteException
PageComponentSoapDO createComponent(java.lang.String sessionId, java.lang.String pageId, java.lang.String compName, java.lang.String componentType, boolean topOfPage, int visibility, SoapNamedValues attributes, java.lang.String content) throws java.rmi.RemoteException
sessionId
- User session id.pageId
- the id of the page where the component is to be created.compName
- component namecomponentType
- component type. Valid component types are defined as constants in PageComponentSoapDO
.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. The values varies with the component: COMPONENT_TYPE_DOCUMENTS
, attribute documentFolder
must be specified.COMPONENT_TYPE_GRAPH
, no attributes are required but cannot be null.COMPONENT_TYPE_TEXT
, no attributes are required but cannot be null.COMPONENT_TYPE_NEWS
, no attributes are required but cannot be null.COMPONENT_TYPE_TRACKER
, attributes trackerSearchesIds
and count
must be specified.COMPONENT_TYPE_WIKI
, attribute wikiTopic
must be specified.COMPONENT_TYPE_SUBPROJECTS
, attribute subprojects
must be specified.PageComponentSoapDO
has constant declarations for all attribute keys to be used for the attributes.content
- text component content, applicable for Text components and Lifecycle metrics components.com.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.NoSuchObjectFault
- when the specified page component id is invalid.com.collabnet.ce.soap60.fault.IllegalArgumentFault
- for incorrect parameter valuescom.collabnet.ce.soap60.fault.PermissionDeniedFault
- when the user has insufficient privileges.com.collabnet.ce.soap60.fault.ObjectAlreadyExistsFault
- If a component with the same name already exists in the pagecom.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system level error occurs.java.rmi.RemoteException
PageComponent2SoapDO createComponent2(java.lang.String sessionId, java.lang.String pageId, java.lang.String compName, java.lang.String componentType, boolean topOfPage, int visibility, SoapNamedValues attributes, java.lang.String content) throws java.rmi.RemoteException
createComponent
but also creates COMPONENT_TYPE_LIFECYCLE_METRICS
and returns PageComponent2SoapDO
object. For COMPONENT_TYPE_TEXT
and COMPONENT_TYPE_LIFECYCLE_METRICS
html source can be fetched from readOnlyTextSource
property of PageComponent2SoapDO
sessionId
- User session id.pageId
- the id of the page where the component is to be created.compName
- component namecomponentType
- component type. Valid component types are defined as constants in PageComponent2SoapDO
.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. The values varies with the component: COMPONENT_TYPE_DOCUMENTS
, attribute documentFolder
must be specified.COMPONENT_TYPE_GRAPH
, no attributes are required but cannot be null.COMPONENT_TYPE_TEXT
, no attributes are required but cannot be null.COMPONENT_TYPE_LIFECYCLE_METRICS
, no attributes are required but cannot be null.COMPONENT_TYPE_NEWS
, no attributes are required but cannot be null.COMPONENT_TYPE_TRACKER
, attributes trackerSearchesIds
and count
must be specified.COMPONENT_TYPE_WIKI
, attribute wikiTopic
must be specified.COMPONENT_TYPE_SUBPROJECTS
, attribute subprojects
must be specified.PageComponent2SoapDO
has constant declarations for all attribute keys to be used for the attributes.content
- text component content, applicable for Text components and Lifecycle metrics components.com.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.NoSuchObjectFault
- when the specified page component id is invalid.com.collabnet.ce.soap60.fault.IllegalArgumentFault
- for incorrect parameter valuescom.collabnet.ce.soap60.fault.PermissionDeniedFault
- when the user has insufficient privileges.com.collabnet.ce.soap60.fault.ObjectAlreadyExistsFault
- If a component with the same name already exists in the pagecom.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system level error occurs.java.rmi.RemoteException
void setPageComponentData(java.lang.String sessionId, PageComponentSoapDO pageComponent) throws java.rmi.RemoteException
sessionId
- User session id.pageComponent
- the page component to be updated.com.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.NoSuchObjectFault
- when the specified page id is invalid.com.collabnet.ce.soap60.fault.PermissionDeniedFault
- when the specified page id is invalid.com.collabnet.ce.soap60.fault.VersionMismatchFault
- when the component data is stale.com.collabnet.ce.soap60.fault.IllegalArgumentFault
- for incorrect data.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system level error occurs.java.rmi.RemoteException
boolean setPageDisplayOrder(java.lang.String sessionId, java.lang.String folderId, java.lang.String[] childrenPageIds) throws java.rmi.RemoteException
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.com.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.PermissionDeniedFault
- when the user has insufficient privileges.com.collabnet.ce.soap60.fault.NoSuchObjectFault
- when the specified page component id is invalid.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system level error occurs.java.rmi.RemoteException
void movePage(java.lang.String sessionId, java.lang.String pageFolderPath, java.lang.String destPath) throws java.rmi.RemoteException
sessionId
- User session id.pageFolderPath
- The path to the page to movedestPath
- The path of the destination parent foldercom.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.PermissionDeniedFault
- when the user has insufficient privileges.com.collabnet.ce.soap60.fault.NoSuchObjectFault
- when the specified folder component id is invalid.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system level error occurs.java.rmi.RemoteException
java.lang.String addPageImage(java.lang.String sessionId, java.lang.String projectId, java.lang.String fileId, java.lang.String filename, java.lang.String mimetype) throws java.rmi.RemoteException
sessionId
- User session id.projectId
- Project id.fileId
- Image file ID returned by FileStorageApp/SimpleFileStorageApp webservice.filename
- Image file name.mimetype
- Image file type.com.collabnet.ce.soap60.fault.InvalidSessionFault
- when the sessionId is invalid.com.collabnet.ce.soap60.fault.PermissionDeniedFault
- when permission is denied for the specified operation.com.collabnet.ce.soap60.fault.NoSuchObjectFault
- when the specified object is invalid.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system error occurs.java.rmi.RemoteException
AttachmentSoapList listPageImages(java.lang.String sessionId, java.lang.String projectId) throws java.rmi.RemoteException
sessionId
- User session id.projectId
- Project id.com.collabnet.ce.soap60.fault.InvalidSessionFault
- when the sessionId is invalid.com.collabnet.ce.soap60.fault.PermissionDeniedFault
- when permission is denied for the specified operation.com.collabnet.ce.soap60.fault.NoSuchObjectFault
- when the specified object is invalid.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system error occurs.java.rmi.RemoteException
java.lang.String getPageImageUrl(java.lang.String sessionId, java.lang.String projectId, java.lang.String attachmentId) throws java.rmi.RemoteException
sessionId
- User session id.projectId
- Project id.attachmentId
- Attachment id of the image.com.collabnet.ce.soap60.fault.InvalidSessionFault
- when the sessionId is invalid.com.collabnet.ce.soap60.fault.PermissionDeniedFault
- when permission is denied for the specified operation.com.collabnet.ce.soap60.fault.NoSuchObjectFault
- when the specified object is invalid.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system error occurs.java.rmi.RemoteException
void deletePageImage(java.lang.String sessionId, java.lang.String projectId, java.lang.String attachmentId) throws java.rmi.RemoteException
sessionId
- User session id.projectId
- Project id.attachmentId
- The attachment id.com.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.NoSuchObjectFault
- when the specified object id is invalid.com.collabnet.ce.soap60.fault.PermissionDeniedFault
- when the user has insufficient privileges.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system error occurs.java.rmi.RemoteException
PageComponent2SoapDO getPageComponent(java.lang.String sessionId, java.lang.String pageComponentId) throws java.rmi.RemoteException
COMPONENT_TYPE_TEXT
and COMPONENT_TYPE_LIFECYCLE_METRICS
html source can be fetched from readOnlyTextSource
property of PageComponent2SoapDO
sessionId
- User session id.pageComponentId
- the id of the page component from which to get the componentcom.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.PermissionDeniedFault
- when the user has insufficient privileges.com.collabnet.ce.soap60.fault.NoSuchObjectFault
- when the specified page component id is invalid.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system level error occurs.java.rmi.RemoteException