Interface PageService

All Superinterfaces:
com.appiancorp.services.ContextSensitiveService, Service

@Deprecated public interface PageService extends com.appiancorp.services.ContextSensitiveService
Deprecated.
The Portal functionality will be removed in a future release. Use the Tempo Interface for similar functionality.
Defines methods for access and modification of pages. There are two kinds of pages: portal pages are pages that contain portlets (all information must be displayed through portlets); custom pages are custom-made external JSP/HTML pages. All pages can be associated with categories for searching/browsing. A page can also be associated with a group (Department/Team) in which case it will be listed in the main left navigation bar under the group name if the user has sufficient privileges for viewing the page.

Portal pages have a "zone count" attribute which specifies the number of zones the page has for placing portlets. The portlets contained in a portal page can be Deactivated or Deleted; deactivating a portlet just hides it from the page, while deleting a portlet removes it permanently along with all its content (for shared portlets, all instances of the portlet on other pages will also be removed).

Pages can be private or public. The security for private pages is defined as follows:

  • a Portal Administrator can Delete, Edit, Approve, View, Target, Rename, Change Template, and Categorize the page (all the possible opertions)
  • a Page Creator can Delete, Edit, View, Target, Rename, Change Template, and Categorize the page (same as Portal Administrator, but can't Approve)
  • a Page Administrator can Delete, Edit, View, Target, Rename, Change Template, and Categorize the page (same as Page Creator)
  • a Page Editor can View and Edit the page
  • a Page Approver can View and Approve the page
  • a Page Viewer can View the page
  • an Anonymous User or Basic User with no explicit privileges (such as Page Admin/Editor/Approver/Viewer) cannot perform any operations
For public pages, the security is the same, except that everyone is allowed to view the page (including Anonymous and Basic Users). Personal and Department/Team pages are defined as private.

Portlets within portal pages have an additional separate security map defined as follows:

  • a Portal Administrator, Portlet Creator, or Portlet Administrator can Delete, Edit, View, Rename, Change Container, and Target the portlet (all the possible opertions)
  • a Portlet Editor can View and Edit the portlet
  • a Portlet Viewer can View the portlet
  • an Anonymous User or Basic User with no explicit privileges (such as Portlet Admin/Editor/Approver/Viewer) cannot perform any operations

When a user edits a page, the page is locked and a draft is created. Unless a user has the privileges to break the lock on the page, he/she will not be able to edit the page. If the page options are set such that modifications to the page require approval, the draft first has to be approved at which point it is published. Once a draft is published, it will be visible to page viewers.

Contributions are a way to log and keep track of all the content additions made by users. When a user submits new/updated content, or removes content, addContribution(com.appiancorp.suiteapi.portal.Contribution)/updateContribution(com.appiancorp.suiteapi.portal.Contribution) or deleteContribution(com.appiancorp.suiteapi.portal.Contribution) should be called to log the event. This should be done for modifications of all content (not just pages but all Appian Type objects such as forums, documents, etc). The getContributionsForTypePaging(com.appiancorp.suiteapi.portal.Contribution, int, int, java.lang.Integer, java.lang.Integer) method can then be used later to retrieve the logged user content modifications.

Methods of service classes can all throw the unchecked exception ServiceException if any system-level error (for example, server failure) occurs, and will in general throw a checked exception (InvalidXXXException) when an entity to be retrieved is inaccessible, instead of returning null. Exceptions to this paradigm (including the use of ResultList as described below) are noted. All checked exceptions extend AppianException.

It may be necessary to retrieve a subset of results as opposed to an entire collection, and also to sort the subset by some property of the returned object. "Paging" methods which return a ResultPage are provided in certain instances for this purpose. The ResultPage will contain the sorted subset of results (via Result.getResults()), and the total number of items in the available result set (via ResultPage.getAvailableItems()).

It may also be necessary to retrieve some results, even if all results cannot be retrieved (for instance, some of the entities corresponding to a list of entity IDs may no longer exist). Methods which return a ResultList are provided for this purpose. The Result.getResults() method in this case will return all results which can be retrieved. In addition, there will be a list of result codes (ResultList.getResultCodes()) that represent the successful retrieval of an entity, or, if the entity could not be retrieved, the reason for the failure. See the CODE_XXX constants in ResultList for details.

See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final Integer
    Deprecated.
    A constant representing the deactivation of a portlet
    static final Integer
    Deprecated.
    A constant representing the deletion of a portlet
    static final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    static final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.

    Fields inherited from interface com.appiancorp.services.ContextSensitiveService

    SET_SERVICE_CONTEXT_METHOD_NAME
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated.
    This functionality is no longer supported and will be removed in the next release.
    void
    addPortlet(Long pageId_, Long portletId_, Integer zone_, int index_)
    Deprecated.
    Attempts to lock the current draft of the specified page and add a portlet.
    void
    addPortlets(Long pageId_, Long[] portletIds_, Integer[] zones_, int[] indices_)
    Deprecated.
    Attempts to lock the current draft of the specified page and add portlets.
    void
    approveDraft(Long pageId_)
    Deprecated.
    Applies the changes made to the draft of the specified page, and clears the draft.
    void
    changePageDescription(Long pageId_, String newDescription_)
    Deprecated.
    Changes the description of the specified page.
    void
    changePageTemplate(Long pageId_, String newTemplateName_, int newZoneCount_)
    Deprecated.
    Attempts to lock the current draft for the specified page (i.e., put the page into draft state) and changes the template in the draft.
    Deprecated.
    Creates a page using the attributes specified in the passed object.
    createPages(Page[] pages_)
    Deprecated.
    Creates pages in bulk using the attributes specified in the passed objects.
    void
    Deprecated.
    This functionality is no longer supported and will be removed in the next release.
    void
    deleteDraft(Long pageId_)
    Deprecated.
    Cancels the changes made to the draft for the specified page, and clears the draft.
    void
    deletePage(Long pageId_)
    Deprecated.
    Deletes the specified page.
    int
    Deprecated.
    Gets the current user's access level for the given page.
    int[]
    Deprecated.
    Gets the current user's access levels for the given pages.
    Deprecated.
    This functionality is no longer supported and will be removed in the next release.
    Deprecated.
    This functionality is no longer supported and will be removed in the next release.
    getContributionsForTypePaging(Contribution contribution_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_)
    Deprecated.
    This functionality is no longer supported and will be removed in the next release.
    getDraft(Long pageId_)
    Deprecated.
    Retrieves the draft version of the specified page.
    int
    Deprecated.
    This functionality is no longer supported and will be removed in the next release.
    getPage(Long pageId_)
    Deprecated.
    Gets the specified portal page.
    getPages(Long[] pageIds_)
    getPagesList(Long[] pageIds_)
    Deprecated.
    Gets the specified portal pages, returning the valid results even if all the results cannot be retrieved (for instance, if some of the pages corresponding to the IDs no longer exist).
    getPagesPaging(Long[] pageIds_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_)
    Deprecated.
    Gets the specified portal pages as an array of Page objects in a ResultPage.
    Deprecated.
    Get the role map of a page, specifiying the administrators, editors and viewers of the page.
    void
    movePortlet(Long pageId_, Long portletId_, Integer zone_, int index_)
    Deprecated.
    Attempts to lock the current draft of the specified page and move a portlet within the page.
    peekDraft(Long pageId_)
    Deprecated.
    Retrieves the pending draft if present or the published page, without setting the draft owner.
    void
    publishDraft(Long pageId_)
    Deprecated.
    Submits the current draft of the specified page for publication, and releases any lock on the draft.
    void
    publishDrafts(Long[] pageIds_)
    Deprecated.
    Submits the current drafts of the specified pages for publication, and releases any lock on the drafts.
    void
    removePortlet(Long pageId_, Long portletId_, Integer action_)
    Deprecated.
    Attempts to lock the current draft of the specified page and remove a portlet.
    void
    renamePage(Long pageId_, String newName_)
    Deprecated.
    Renames the specified page to the specified name.
    void
    returnDraft(Long pageId_)
    Deprecated.
    Returns a submitted page back to a draft state (Page.STATE_NEW_DRAFT or Page.STATE_DRAFT).
    void
    setIsPagePublic(Long pageId_, boolean isPublic_)
    Deprecated.
    Changes whether the page is publicly viewable.
    void
    Deprecated.
    This functionality is no longer supported and will be removed in the next release.
    void
    setPageApproval(Long pageId_, boolean approvalRequired_)
    Deprecated.
    Sets whether approval is required for page modifications.
    void
    setPageCategory(Long pageId_, Long categoryId_)
    Deprecated.
    Changes the category for the specified page.
    void
    setPageDataContextType(Long pageId, Long dataContextType)
    Deprecated.
    Sets the type of data that will be sent to the page when it is requested.
    void
    setPageUrl(Long pageId_, String url_)
    Deprecated.
    Changes the URL for the specified custom page.
    void
    Deprecated.
    Set the role map for a page
    takeDraft(Long pageId_)
    Deprecated.
    Retrieves the draft version of the specified page and locks it for editing.
    void
    unlockDraft(Long pageId_)
    Deprecated.
    Releases the lock on the draft for the specified page, if the current user owns the draft.
    void
    Deprecated.
    This functionality is no longer supported and will be removed in the next release.
    void
    Deprecated.
    Updates a page using the attributes specified in the passed object.
    void
    updatePages(Page[] pages_)
    Deprecated.
    Updates pages in bulk using the attributes specified in the passed objects.
    boolean
    Deprecated.
    Validates given TypedValues.

    Methods inherited from interface com.appiancorp.services.ContextSensitiveService

    setServiceContext