@Deprecated
public interface PageNavigationService
extends com.appiancorp.services.ContextSensitiveService
Defines methods for structured access to pages. Provides the ability to handle home pages for users and groups, manage tabs and bookmarks, organize pages into categories, and retrieve pages of direct interest to users.
Page categories provide a mechanism for organizing pages based on their content - pages of similar content can be associated with the same category. Similarly, pages may be associated with a group, so that members of that group may have centralized access to content pertaining to that group. Finally, home pages may be designated for users and for groups. In the former case, this page will be the first page that a user sees when logging into the application; in the latter, this page will be the first page that members of the group see when viewing group pages.
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()
).
When sorting the results for
getHomePagesForGroupsPaging(Long[], int, int, Integer, Integer)
it is important to consider the following scenarios for the sort property:
SORT_BY_XXX
constant values
inside PageInfo
PageInfo.SORT_BY_NAME
will be used insteadPageInfo.SORT_BY_ACCESS_LEVEL
(12) then
PageInfo.SORT_BY_ACCESS_LEVEL
will be used instead
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.
Modifier and Type | Field and Description |
---|---|
static boolean |
addBookmark$UPDATES
Deprecated.
|
static boolean |
addCategory$UPDATES
Deprecated.
|
static java.lang.Long |
CATEGORY_TOP
Deprecated.
A constant used to indicated that sorting hierarchical tree structures of
portal pages starts at the top.
|
static boolean |
cleanUpPageReferences$UPDATES
Deprecated.
|
static boolean |
findPages$UPDATES
Deprecated.
|
static boolean |
findPagesPaging$UPDATES
Deprecated.
|
static boolean |
getAllCategories$UPDATES
Deprecated.
|
static boolean |
getAllCategoriesPaging$UPDATES
Deprecated.
|
static boolean |
getBookmarks$UPDATES
Deprecated.
|
static boolean |
getBookmarksPaging$UPDATES
Deprecated.
|
static boolean |
getCategoriesPageCounts$UPDATES
Deprecated.
|
static boolean |
getCategoryDescendants$UPDATES
Deprecated.
|
static boolean |
getEditablePagesNotCreatedByCurrentUser$UPDATES
Deprecated.
|
static boolean |
getEditablePagesNotCreatedByCurrentUserPaging$UPDATES
Deprecated.
|
static boolean |
getHomePage$UPDATES
Deprecated.
|
static boolean |
getHomePageForGroup$UPDATES
Deprecated.
|
static boolean |
getHomePagesForGroups$UPDATES
Deprecated.
|
static boolean |
getHomePagesForGroupsPaging$UPDATES
Deprecated.
|
static boolean |
getLoginData$UPDATES
Deprecated.
|
static boolean |
getPagesCreatedByCurrentUser$UPDATES
Deprecated.
|
static boolean |
getPagesCreatedByCurrentUserPaging$UPDATES
Deprecated.
|
static boolean |
getPagesCreatedByUser$UPDATES
Deprecated.
|
static boolean |
getPagesCreatedByUserPaging$UPDATES
Deprecated.
|
static boolean |
getPagesForGroup$UPDATES
Deprecated.
|
static boolean |
getPagesForGroupPaging$UPDATES
Deprecated.
|
static boolean |
getPagesForGroups$UPDATES
Deprecated.
|
static boolean |
getPagesInCategory$UPDATES
Deprecated.
|
static boolean |
getPagesInCategoryPaging$UPDATES
Deprecated.
|
static boolean |
getPagesPendingApprovalByCurrentUser$UPDATES
Deprecated.
|
static boolean |
getPagesPendingApprovalByCurrentUserPaging$UPDATES
Deprecated.
|
static boolean |
getRootCategories$UPDATES
Deprecated.
|
static boolean |
getRootCategoriesPaging$UPDATES
Deprecated.
|
static boolean |
getVisiblePagesForGroups$UPDATES
Deprecated.
|
static boolean |
removeBookmark$UPDATES
Deprecated.
|
static boolean |
removeBookmarks$UPDATES
Deprecated.
|
static boolean |
removeCategory$UPDATES
Deprecated.
|
static boolean |
removeCategoryAndDescendants$UPDATES
Deprecated.
|
static boolean |
renameCategory$UPDATES
Deprecated.
|
static boolean |
setGroupAssociationForPage$UPDATES
Deprecated.
|
static boolean |
setHomePage$UPDATES
Deprecated.
|
static boolean |
setHomePageForAnonymous$UPDATES
Deprecated.
|
static boolean |
setHomePageForGroup$UPDATES
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addBookmark(java.lang.Long pageId_)
Deprecated.
Adds the specified page to the current user's bookmarks.
|
java.lang.Long |
addCategory(java.lang.String name_,
java.lang.Long parentCategoryId_)
Deprecated.
Add a category.
|
void |
cleanUpPageReferences()
Deprecated.
Deletes any references to invalid pages for that user or his member groups.
|
PageInfo[] |
findPages(java.lang.String searchTerms_)
Deprecated.
|
ResultPage |
findPagesPaging(java.lang.String searchTerms_,
int startIndex_,
int batchSize_,
java.lang.Integer sortProperty_,
java.lang.Integer sortOrder_)
Deprecated.
Searches through names and descriptions of the portal pages the current
user can view.
|
Tree[] |
getAllCategories()
Deprecated.
|
ResultPage |
getAllCategoriesPaging(int startIndex_,
int batchSize_,
java.lang.Integer sortProperty_,
java.lang.Integer sortOrder_)
Deprecated.
Gets a
ResultPage containing all categories
Each node in the returned trees (and their breadcrumbs) will be populated
with id (the ID of the category) and
name (the name of the category). |
PageInfo[] |
getBookmarks()
Deprecated.
|
ResultPage |
getBookmarksPaging(int startIndex_,
int batchSize_,
java.lang.Integer sortProperty_,
java.lang.Integer sortOrder_)
Deprecated.
Gets a
ResultPage containing the list of bookmarked pages for
the
current user. |
java.lang.Long[] |
getCategoriesPageCounts(java.lang.Long[] categoryIds_)
Deprecated.
Gets the number of pages in each category, for a list
of categories
|
TreePivot |
getCategoryDescendants(java.lang.Long categoryId_,
int levels_)
Deprecated.
Gets the descendants of a category up to the specified depth.
|
PageInfo[] |
getEditablePagesNotCreatedByCurrentUser()
|
ResultPage |
getEditablePagesNotCreatedByCurrentUserPaging(int startIndex_,
int batchSize_,
java.lang.Integer sortProperty_,
java.lang.Integer sortOrder_)
Deprecated.
Gets a ResultPage containing a list of pages editable by the current
user but not created by him
|
PageInfo |
getHomePage()
Deprecated.
Gets the home page for the current user.
|
PageInfo |
getHomePageForGroup(java.lang.Long groupId_)
Deprecated.
Gets the home page of the specified group.
|
PageInfo[] |
getHomePagesForGroups(java.lang.Long[] groupIds_)
Deprecated.
|
ResultPage |
getHomePagesForGroupsPaging(java.lang.Long[] groupIds_,
int startIndex_,
int batchSize_,
java.lang.Integer sortProperty_,
java.lang.Integer sortOrder_)
Deprecated.
Gets a
ResultPage containing the home pages of the specified
groups. |
LoginData |
getLoginData(int bookmarkPagingStartIndex_,
int bookmarkPagingBatchSize_,
java.lang.Integer bookmarkPagingSortProperty_,
java.lang.Integer bookmarkPagingSortOrder_)
Deprecated.
Gets a
LoginData bean containing the list of bookmarked pages for
the current user, as well as a flag representing whether the user, or any of
his member groups, references an invalid page. |
PageInfo[] |
getPagesCreatedByCurrentUser()
Deprecated.
|
ResultPage |
getPagesCreatedByCurrentUserPaging(int startIndex_,
int batchSize_,
java.lang.Integer sortProperty_,
java.lang.Integer sortOrder_)
Deprecated.
Gets a
ResultPage containing a list of pages created by the
current user |
PageInfo[] |
getPagesCreatedByUser(java.lang.String username_)
Deprecated.
|
ResultPage |
getPagesCreatedByUserPaging(java.lang.String username_,
int startIndex_,
int batchSize_,
java.lang.Integer sortProperty_,
java.lang.Integer sortOrder_)
Deprecated.
Gets a
ResultPage containing those pages created by the
specified user that the current user has permission to view. |
PageInfo[] |
getPagesForGroup(java.lang.Long groupId_)
Deprecated.
|
ResultPage |
getPagesForGroupPaging(java.lang.Long groupId_,
int startIndex_,
int batchSize_,
java.lang.Integer sortProperty_,
java.lang.Integer sortOrder_)
Deprecated.
Gets a
ResultPage containing all pages that are associated
with the
specified group and that the user has permission to view. |
PageInfo[][] |
getPagesForGroups(java.lang.Long[] groupIds_)
Deprecated.
Gets all pages that are associated with the specified groups and that the
user has permission to view.
|
PageInfo[] |
getPagesInCategory(java.lang.Long categoryId_)
Deprecated.
|
ResultPage |
getPagesInCategoryPaging(java.lang.Long categoryId_,
int startIndex_,
int batchSize_,
java.lang.Integer sortProperty_,
java.lang.Integer sortOrder_)
Deprecated.
Gets a ResultPage containing all the pages that are in a specified
category, and that the current user has permission to view.
|
PageInfo[] |
getPagesPendingApprovalByCurrentUser()
Deprecated.
|
ResultPage |
getPagesPendingApprovalByCurrentUserPaging(int startIndex_,
int batchSize_,
java.lang.Integer sortProperty_,
java.lang.Integer sortOrder_)
Deprecated.
Gets a
ResultPage containing a list of pages pending for
approval that the current user has permission to approve. |
Tree[] |
getRootCategories(int levels_)
Deprecated.
|
ResultPage |
getRootCategoriesPaging(int levels_,
int startIndex_,
int batchSize_,
java.lang.Integer sortProperty_,
java.lang.Integer sortOrder_)
Deprecated.
Gets the root categories
Each node in the returned trees (and their breadcrumbs) will be populated
with
id (the ID of the category) and
name (the name of the category). |
java.lang.Boolean[] |
getVisiblePagesForGroups(java.lang.Long[] groupIds_)
Deprecated.
Discover whether each element in an array of groups has at least
one associated page that the user has permission to view.
|
void |
removeBookmark(java.lang.Long pageId_)
Deprecated.
Removes the specified page from the current user's bookmarks.
|
void |
removeBookmarks(java.lang.Long[] pageIds_)
Deprecated.
Removes the specified pages from the current user's bookmarks.
|
void |
removeCategory(java.lang.Long categoryId_)
Deprecated.
Remove a category.
|
void |
removeCategoryAndDescendants(java.lang.Long categoryId_)
Deprecated.
Remove a category and all of its descendants.
|
void |
renameCategory(java.lang.Long pCategoryId_,
java.lang.String pCategoryName_)
Deprecated.
|
void |
setGroupAssociationForPage(java.lang.Long pageId_,
java.lang.Long groupId_)
Deprecated.
Associates a page to a group and a group to a page for the page and the group specified.
|
void |
setHomePage(java.lang.Long pageId_)
Deprecated.
Sets the home page for the current user.
|
void |
setHomePageForAnonymous(java.lang.Long pageId_)
Deprecated.
anonymous user access was removed in 6.2
|
void |
setHomePageForGroup(java.lang.Long pageId_,
java.lang.Long groupId_)
Deprecated.
Sets the home page for the specified group.
|
static final java.lang.Long CATEGORY_TOP
getCategoryDescendants(Long, int)
for an example.static final boolean setHomePage$UPDATES
static final boolean setHomePageForGroup$UPDATES
static final boolean getHomePage$UPDATES
static final boolean getHomePageForGroup$UPDATES
static final boolean getHomePagesForGroupsPaging$UPDATES
static final boolean getHomePagesForGroups$UPDATES
static final boolean getVisiblePagesForGroups$UPDATES
static final boolean getPagesForGroupPaging$UPDATES
static final boolean getPagesForGroup$UPDATES
static final boolean getPagesForGroups$UPDATES
static final boolean getPagesCreatedByUserPaging$UPDATES
static final boolean getPagesCreatedByUser$UPDATES
static final boolean getPagesCreatedByCurrentUserPaging$UPDATES
static final boolean getPagesCreatedByCurrentUser$UPDATES
static final boolean getEditablePagesNotCreatedByCurrentUserPaging$UPDATES
static final boolean getEditablePagesNotCreatedByCurrentUser$UPDATES
static final boolean getPagesPendingApprovalByCurrentUserPaging$UPDATES
static final boolean getPagesPendingApprovalByCurrentUser$UPDATES
static final boolean findPagesPaging$UPDATES
static final boolean findPages$UPDATES
static final boolean addBookmark$UPDATES
static final boolean removeBookmark$UPDATES
static final boolean removeBookmarks$UPDATES
static final boolean getBookmarksPaging$UPDATES
static final boolean getBookmarks$UPDATES
static final boolean getCategoryDescendants$UPDATES
static final boolean getRootCategories$UPDATES
static final boolean getRootCategoriesPaging$UPDATES
static final boolean getCategoriesPageCounts$UPDATES
static final boolean getAllCategoriesPaging$UPDATES
static final boolean getAllCategories$UPDATES
static final boolean getPagesInCategoryPaging$UPDATES
static final boolean getPagesInCategory$UPDATES
static final boolean addCategory$UPDATES
static final boolean removeCategory$UPDATES
static final boolean removeCategoryAndDescendants$UPDATES
static final boolean setGroupAssociationForPage$UPDATES
static final boolean setHomePageForAnonymous$UPDATES
static final boolean renameCategory$UPDATES
static final boolean getLoginData$UPDATES
static final boolean cleanUpPageReferences$UPDATES
void setHomePage(java.lang.Long pageId_) throws InvalidAnonymousUserException, InvalidUserException, PrivilegeException, InvalidPageException
pageId_
- the unique Id of the page to be set as the home page for the
current userInvalidUserException
- if the user calling this method is invalidPrivilegeException
- if the current user is not authorized to view
the pageInvalidPageException
- if the specified page does not existServiceException
- if any system-level error occursjava.lang.NullPointerException
- if the pageId_
is null
InvalidAnonymousUserException
void setHomePageForGroup(java.lang.Long pageId_, java.lang.Long groupId_) throws InvalidAnonymousUserException, InvalidUserException, PrivilegeException, InvalidPageException
This method does not validate that the group id belongs to an existent or non-deleted group, so the caller should check that the group id is valid before passing it (known issue).
pageId_
- the unique Id of the page to be set as the home page for
the specified groupgroupId_
- the unique Id of the specified groupInvalidUserException
- if the user calling this method is invalidPrivilegeException
- if the current user is not an administrator of
the specified group; if the user does not have permission to view the page,
this exception is not thrown and the action succeeds (known issue)InvalidPageException
- if the specified page does not existServiceException
- if any system-level error occursjava.lang.NullPointerException
- if any argument is null
InvalidAnonymousUserException
PageInfo getHomePage() throws PrivilegeException, InvalidAnonymousUserException, InvalidUserException, InvalidPageException
InvalidPageException
is thrown.PageInfo
object that represents
the current user's home pagePrivilegeException
- if the user does not have sufficient privileges
to view the pageInvalidUserException
- if the user calling this method is invalidInvalidPageException
- if both the explicitly set home page and the default home
page are not available, that is, the pages have since been deletedServiceException
- if any system-level error occursInvalidAnonymousUserException
PageInfo getHomePageForGroup(java.lang.Long groupId_) throws InvalidAnonymousUserException, InvalidUserException, PrivilegeException, InvalidPageException
This method does not validate that the group id belongs to an existent or non-deleted group, so the caller should check that the group id is valid before passing it (known issue).
groupId_
- the unique Id of the group for which the home page should
be retrievedPageInfo
object
representing the home page of the specified group, or the first page
associated with the group if no home page is specified. Returns null
if
there are no pages associated with the group.InvalidAnonymousUserException
- never thrown (known issue)InvalidUserException
- if the user calling this method is invalidPrivilegeException
- if the user does not have sufficient privileges
to view the pagejava.lang.NullPointerException
- if the argument is null
InvalidPageException
- if the page associated with the group no
longer existsServiceException
- if any system-level error occursResultPage getHomePagesForGroupsPaging(java.lang.Long[] groupIds_, int startIndex_, int batchSize_, java.lang.Integer sortProperty_, java.lang.Integer sortOrder_) throws InvalidPageException
ResultPage
containing the home pages of the specified
groups.groupIds_
- the groups for which the home page should be retrievedstartIndex_
- the index into the collection of total results at which
to start. Negative numbers are treated as zeros.batchSize_
- the number of results to return.
Use Constants.COUNT_ALL
to return
the entire collection, but this is STRONGLY discouraged.sortProperty_
- the property by which the results will be sorted
This is one of the SORT_BY_XXX
constants in PageInfo
.sortOrder_
- The order in which to sort the results. This is either
Constants.SORT_ORDER_ASCENDING
or
Constants.SORT_ORDER_DESCENDING
ResultPage
containing the home pages as an array
of PageInfo
objects for the requested
groups, null
items if the
current user does not have permission to view the corresponding pages (or
if there are no pages associated with the corresponding groups). The
ResultPage
will be empty if the first id in the array belongs
to an non-existent or deleted group or if that group has a null home page
(known issue)InvalidPageException
- if any of the pages associated with the groups
has been deletedjava.lang.NullPointerException
- if the passed groupIds_
array
or any of its elements is null
ServiceException
- if any system-level error occurs@Deprecated PageInfo[] getHomePagesForGroups(java.lang.Long[] groupIds_) throws InvalidPageException, java.lang.NullPointerException, InvalidUserException
getHomePagesForGroupsPaging(java.lang.Long[], int, int, java.lang.Integer, java.lang.Integer)
insteadgroupIds_
- an array of the unique Ids of the groups whose
home pages should be retrievedPageInfo
objects representing the home
pages of the requested groups. A null
item will be set in
the array for those groups that do not have pages associated . If the
current user does not have permission to view the corresponding pages
then null
items will be set.InvalidPageException
- if any of the specified pages does not exist,
that is, if any associated page has since been deletedjava.lang.NullPointerException
- if the argument is null
InvalidUserException
- if the context of the user who made the call
is invalidServiceException
- if any system-level error occursjava.lang.Boolean[] getVisiblePagesForGroups(java.lang.Long[] groupIds_) throws java.lang.NullPointerException
false
for that index
(i.e. it does NOT have a visible page)groupIds_
- the unique Ids of the groups for which the existence of
associated pages should be returned.Boolean
objects, parallel to the input
array, where each
element indicates whether the corresponding group has any associated pages.java.lang.NullPointerException
- if the argument is null
ServiceException
- if any system-level error occursResultPage getPagesForGroupPaging(java.lang.Long groupId_, int startIndex_, int batchSize_, java.lang.Integer sortProperty_, java.lang.Integer sortOrder_) throws java.lang.NullPointerException
ResultPage
containing all pages that are associated
with the
specified group and that the user has permission to view.groupId_
- the group for which the associated pages should be retrievedstartIndex_
- the index into the collection of total results at which
to start. Negative numbers are treated as zeros.batchSize_
- the number of results to return.
Use Constants.COUNT_ALL
to return
the entire collection, but this is STRONGLY discouraged.sortProperty_
- the property by which the results will be sorted
This is one of the SORT_BY_XXX
constants in
PageInfo
.sortOrder_
- The order in which to sort the results. This is either
Constants.SORT_ORDER_ASCENDING
or
Constants.SORT_ORDER_DESCENDING
ResultPage
containing the pages, as an array of
PageInfo
objects that are associated with the groupServiceException
- if any system-level error occursjava.lang.NullPointerException
- if groupId_
is null
@Deprecated PageInfo[] getPagesForGroup(java.lang.Long groupId_) throws java.lang.NullPointerException
getPagesForGroupPaging(java.lang.Long, int, int, java.lang.Integer, java.lang.Integer)
insteadgroupId_
- the unique Id of the group for which the associated pages
should be retrievedPageInfo
objects representing the pages
that are associated with the groupjava.lang.NullPointerException
- if argument is null
ServiceException
- if any system-level error occursPageInfo[][] getPagesForGroups(java.lang.Long[] groupIds_) throws java.lang.NullPointerException
groupIds_
- the groups for which the associated pages should be
retrievedPageInfo
objects, each
representing the pages that are associated with the groups in an optimized
array. Each row will correspond to the pages of the group with the
same index in the parameter. The array will be heterogeneous in that
each row will only have as many elements as the group has associated
pages.java.lang.NullPointerException
- if the argument is null
ServiceException
- if any system-level error occursResultPage getPagesCreatedByUserPaging(java.lang.String username_, int startIndex_, int batchSize_, java.lang.Integer sortProperty_, java.lang.Integer sortOrder_) throws InvalidUserException, java.lang.NullPointerException
ResultPage
containing those pages created by the
specified user that the current user has permission to view.username_
- the user whose created pages should be retrievedstartIndex_
- the index into the collection of total results at which
to start. Negative numbers are treated as zeros.batchSize_
- the number of results to return.
Use Constants.COUNT_ALL
to return
the entire collection, but this is STRONGLY discouraged.sortProperty_
- the property by which the results will be sorted
This is one of the SORT_BY_XXX
constants in
PageInfo
.sortOrder_
- The order in which to sort the results. This is either
Constants.SORT_ORDER_ASCENDING
or
Constants.SORT_ORDER_DESCENDING
ResultPage
containing the pages, as array of
PageInfo
objects that were created by the given userInvalidUserException
- if specified user does not existjava.lang.NullPointerException
- if username_
is null
ServiceException
- if any system-level error occurs@Deprecated PageInfo[] getPagesCreatedByUser(java.lang.String username_) throws InvalidUserException, java.lang.NullPointerException
getPagesCreatedByUserPaging(java.lang.String, int, int, java.lang.Integer, java.lang.Integer)
insteadusername_
- the user whose created pages should be retrievedPageInfo
objects representing the pages
that were created by the user.InvalidUserException
- if specified user does not existjava.lang.NullPointerException
- if username_
is null
ServiceException
- if any system-level error occursResultPage getPagesCreatedByCurrentUserPaging(int startIndex_, int batchSize_, java.lang.Integer sortProperty_, java.lang.Integer sortOrder_)
ResultPage
containing a list of pages created by the
current userstartIndex_
- the index into the collection of total results at which
to start. Negative numbers are treated as zeros.batchSize_
- the number of results to return.
Use Constants.COUNT_ALL
to return
the entire collection, but this is STRONGLY discouraged.sortProperty_
- the property by which the results will be sorted
This is one of the SORT_BY_XXX
constants in
PageInfo
.sortOrder_
- The order in which to sort the results. This is either
Constants.SORT_ORDER_ASCENDING
or
Constants.SORT_ORDER_DESCENDING
ResultPage
containing list of portal pages as an
array of PageInfo
objectsServiceException
- if any system-level error occurs@Deprecated PageInfo[] getPagesCreatedByCurrentUser()
getPagesCreatedByCurrentUserPaging(int, int, java.lang.Integer, java.lang.Integer)
insteadPageInfo
representing the portal pages
created by the current userServiceException
- if any system-level error occursResultPage getEditablePagesNotCreatedByCurrentUserPaging(int startIndex_, int batchSize_, java.lang.Integer sortProperty_, java.lang.Integer sortOrder_) throws InvalidAnonymousUserException, InvalidUserException
startIndex_
- the index into the collection of total results at which
to start. Negative numbers are treated as zeros.batchSize_
- the number of results to return.
Use Constants.COUNT_ALL
to return
the entire collection, but this is STRONGLY discouraged.sortProperty_
- the property by which the results will be sorted
This is one of the SORT_BY_XXX
constants in
PageInfo
.sortOrder_
- The order in which to sort the results. This is either
Constants.SORT_ORDER_ASCENDING
or
Constants.SORT_ORDER_DESCENDING
ResultPage
containing an array of
PageInfo
objectsInvalidUserException
- if the user calling this method is invalidServiceException
- if any system-level error occursInvalidAnonymousUserException
@Deprecated PageInfo[] getEditablePagesNotCreatedByCurrentUser() throws InvalidAnonymousUserException, InvalidUserException
getEditablePagesNotCreatedByCurrentUserPaging(int, int, java.lang.Integer, java.lang.Integer)
InvalidUserException
- if the user calling this method is invalidServiceException
- if any system-level error occursInvalidAnonymousUserException
ResultPage getPagesPendingApprovalByCurrentUserPaging(int startIndex_, int batchSize_, java.lang.Integer sortProperty_, java.lang.Integer sortOrder_) throws InvalidAnonymousUserException, InvalidUserException
ResultPage
containing a list of pages pending for
approval that the current user has permission to approve.startIndex_
- the index into the collection of total results at which
to start. Negative numbers are treated as zeros.batchSize_
- the number of results to return.
Use Constants.COUNT_ALL
to return
the entire collection, but this is STRONGLY discouraged.sortProperty_
- the property by which the results will be sorted
This is one of the SORT_BY_XXX
constants in
PageInfo
.sortOrder_
- The order in which to sort the results. This is either
Constants.SORT_ORDER_ASCENDING
or
Constants.SORT_ORDER_DESCENDING
ResultPage
containing an array of
PageInfo
objects representing the portal pages pending
approvalInvalidUserException
- if the user calling this method is invalidServiceException
- if any system-level error occursInvalidAnonymousUserException
@Deprecated PageInfo[] getPagesPendingApprovalByCurrentUser() throws InvalidAnonymousUserException, InvalidUserException
getPagesPendingApprovalByCurrentUserPaging(int, int, java.lang.Integer, java.lang.Integer)
insteadInvalidUserException
- if the user calling this method is invalidServiceException
- if any system-level error occursInvalidAnonymousUserException
ResultPage findPagesPaging(java.lang.String searchTerms_, int startIndex_, int batchSize_, java.lang.Integer sortProperty_, java.lang.Integer sortOrder_) throws InvalidAnonymousUserException, InvalidUserException, java.lang.NullPointerException
searchTerms_
- the string to search bystartIndex_
- the index into the collection of total results at which
to start. Negative numbers are treated as zeros.batchSize_
- the number of results to return.
Use Constants.COUNT_ALL
to return
the entire collection, but this is STRONGLY discouraged.sortProperty_
- the property by which the results will be sorted
This is one of the SORT_BY_XXX
constants in
PageInfo
.sortOrder_
- The order in which to sort the results. This is either
Constants.SORT_ORDER_ASCENDING
or
Constants.SORT_ORDER_DESCENDING
ResultPage
containing the list of pages, as array
of PageInfo
matching the search termsInvalidUserException
- if the user calling this method is invalidServiceException
- if any system-level error occursjava.lang.NullPointerException
- if searchTerms_
is
null
InvalidAnonymousUserException
@Deprecated PageInfo[] findPages(java.lang.String searchTerms_) throws InvalidAnonymousUserException, InvalidUserException, java.lang.NullPointerException
findPagesPaging(java.lang.String, int, int, java.lang.Integer, java.lang.Integer)
insteadsearchTerms_
- the string to search byPageInfo
objects representing
the list of pages matching the search termsInvalidUserException
- if the user calling this method is invalidServiceException
- if any system-level error occursjava.lang.NullPointerException
- if searchTerms_
is
null
InvalidAnonymousUserException
void addBookmark(java.lang.Long pageId_) throws InvalidAnonymousUserException, InvalidUserException, PrivilegeException, InvalidPageException
pageId_
- specifies the page that should be added to the bookmarksInvalidUserException
- if the user calling this method is invalidPrivilegeException
- if the current user cannot view the pageInvalidPageException
- if the specified page does not existServiceException
- if any system-level error occursInvalidAnonymousUserException
void removeBookmark(java.lang.Long pageId_) throws InvalidAnonymousUserException, InvalidUserException, InvalidPageException
pageId_
- specifies the page that should be removed from the bookmarksInvalidUserException
- if the user calling this method is invalidInvalidPageException
- if the specified page does not existServiceException
- if any system-level error occursInvalidAnonymousUserException
void removeBookmarks(java.lang.Long[] pageIds_) throws InvalidAnonymousUserException, InvalidUserException, InvalidPageException, java.lang.NullPointerException
pageIds_
- specifies the pages that should be removed from the
bookmarksInvalidUserException
- if the user calling this method is invalidInvalidPageException
- if any of the specified pages does not existServiceException
- if any system-level error occursjava.lang.NullPointerException
- if the argument is null
InvalidAnonymousUserException
ResultPage getBookmarksPaging(int startIndex_, int batchSize_, java.lang.Integer sortProperty_, java.lang.Integer sortOrder_) throws InvalidAnonymousUserException, InvalidUserException
ResultPage
containing the list of bookmarked pages for
the
current user.
A null
is returned for each page that does not exist, or that
the user is not authorized to view.startIndex_
- the index into the collection of total results at which
to start. Negative numbers are treated as zeros.batchSize_
- the number of results to return.
Use Constants.COUNT_ALL
to return
the entire collection, but this is STRONGLY discouraged.sortProperty_
- the property by which the results will be sorted
This is one of the SORT_BY_XXX
constants in
PageInfo
.sortOrder_
- The order in which to sort the results. This is either
Constants.SORT_ORDER_ASCENDING
or
Constants.SORT_ORDER_DESCENDING
ResultPage
containing the list of pages, as an array
of PageInfo
, representing the current user's
bookmarksInvalidUserException
- if the user calling this method is invalidServiceException
- if any system-level error occursInvalidAnonymousUserException
@Deprecated PageInfo[] getBookmarks() throws InvalidAnonymousUserException, InvalidUserException
getBookmarksPaging(int, int, java.lang.Integer, java.lang.Integer)
insteadnull
is returned for each page that does not exist, or that
the user is not authorized to view.InvalidUserException
- if the user calling this method is invalidServiceException
- if any system-level error occursInvalidAnonymousUserException
TreePivot getCategoryDescendants(java.lang.Long categoryId_, int levels_) throws InvalidAnonymousUserException, InvalidUserException, InvalidCategoryException
CATEGORY_TOP
for categoryId.
Each node in the subtree and breadcrumbs retrieved from the returned
TreePivot
will be populated with id
(the ID of
the category) and name
(the name of the category). The
data
field of the node is not populated.categoryId_
- the categorylevels_
- the depths of the tree to returncategoryId_
InvalidUserException
- if the user calling this method is invalidInvalidCategoryException
- if the specified category does not existServiceException
- if any system-level error occursInvalidAnonymousUserException
@Deprecated Tree[] getRootCategories(int levels_)
getRootCategoriesPaging(int, int, int, java.lang.Integer, java.lang.Integer)
insteadid
(the ID of the category) and
name
(the name of the category). The data
field
of the node is not populated.levels_
- the number of levels of children to get. This value must be
greater than or equal to 0.Tree
objects representing the root
categoriesServiceException
- if any system-level error occursResultPage getRootCategoriesPaging(int levels_, int startIndex_, int batchSize_, java.lang.Integer sortProperty_, java.lang.Integer sortOrder_)
id
(the ID of the category) and
name
(the name of the category). The data
field
of the node is not populated.levels_
- the number of levels of children to get. This value must be
greater than or equal to 0.startIndex_
- the index into the collection of total results at which
to start. Negative numbers are treated as zeros.batchSize_
- the number of results to return.
Use Constants.COUNT_ALL
to return
the entire collection, but this is STRONGLY discouraged.sortProperty_
- the property by which the results will be sorted
This is one of the SORT_BY_XXX
constants in
Tree
.sortOrder_
- The order in which to sort the results. This is either
Constants.SORT_ORDER_ASCENDING
or
Constants.SORT_ORDER_DESCENDING
Tree
objects
representing the root categoriesServiceException
- if any system-level error occursjava.lang.Long[] getCategoriesPageCounts(java.lang.Long[] categoryIds_)
categoryIds_
- the Ids of the categoriesnull
will be returned for that categoryServiceException
- if any system-level error occursResultPage getAllCategoriesPaging(int startIndex_, int batchSize_, java.lang.Integer sortProperty_, java.lang.Integer sortOrder_)
ResultPage
containing all categories
Each node in the returned trees (and their breadcrumbs) will be populated
with id
(the ID of the category) and
name
(the name of the category). The data
field
of the node is not populated.startIndex_
- the index into the collection of total results at which
to start. Negative numbers are treated as zeros.batchSize_
- the number of results to return.
Use Constants.COUNT_ALL
to return
the entire collection, but this is STRONGLY discouraged.sortProperty_
- the property by which the results will be sorted
This is one of the SORT_BY_XXX
constants in
Tree
.sortOrder_
- The order in which to sort the results. This is either
Constants.SORT_ORDER_ASCENDING
or
Constants.SORT_ORDER_DESCENDING
ResultPage
of Tree
objectsServiceException
- if any system-level error occurs@Deprecated Tree[] getAllCategories()
getAllCategoriesPaging(int, int, java.lang.Integer, java.lang.Integer)
insteadid
(the ID of the category) and
name
(the name of the category). The data
field
of the node is not populated.Tree
s representing all the categoriesServiceException
- if any system-level error occursResultPage getPagesInCategoryPaging(java.lang.Long categoryId_, int startIndex_, int batchSize_, java.lang.Integer sortProperty_, java.lang.Integer sortOrder_) throws InvalidCategoryException
null
to return all pages in all categories that the current
user has permission to view.categoryId_
- the category idstartIndex_
- the index into the collection of total results at which
to start. Negative numbers are treated as zeros.batchSize_
- the number of results to return.
Use Constants.COUNT_ALL
to return
the entire collection, but this is STRONGLY discouraged.sortProperty_
- the property by which the results will be sorted
This is one of the SORT_BY_XXX
constants in
PageInfo
.sortOrder_
- The order in which to sort the results. This is either
Constants.SORT_ORDER_ASCENDING
or
Constants.SORT_ORDER_DESCENDING
ResultPage
containing an array of
PageInfo
objects, representing the pages in the given categoryInvalidCategoryException
- if category id is not null
,
and does not correspond to a valid categoryServiceException
- if any system-level error occurs@Deprecated PageInfo[] getPagesInCategory(java.lang.Long categoryId_) throws InvalidCategoryException
getPagesInCategoryPaging(java.lang.Long, int, int, java.lang.Integer, java.lang.Integer)
insteadnull
to return all pages in all categories that the current
user has permission to view.categoryId_
- the category idInvalidCategoryException
- if category id is not null
,
and does not correspond to a valid categoryServiceException
- if any system-level error occursjava.lang.Long addCategory(java.lang.String name_, java.lang.Long parentCategoryId_) throws InvalidAnonymousUserException, InvalidUserException, PrivilegeException, InvalidCategoryException
CATEGORY_TOP
for parentId.name_
- the name of the categoryparentCategoryId_
- the id of its parentInvalidUserException
- if the user calling this method is invalidPrivilegeException
- if the current user is not a portal
administratorInvalidCategoryException
- if the parentId is not
CATEGORY_TOP
and this category does not existServiceException
- if any system-level error occursInvalidAnonymousUserException
void removeCategory(java.lang.Long categoryId_) throws InvalidAnonymousUserException, InvalidUserException, PrivilegeException, InvalidOperationException, InvalidCategoryException, NotEmptyException
categoryId_
- the id of the category to be removedInvalidUserException
- if the user calling this method is invalidInvalidOperationException
- if the category has descendants.
To delete the catgory and its descendants,
use removeCategoryAndDescendants(java.lang.Long)
insteadPrivilegeException
- if the current user is not a portal
administratorInvalidCategoryException
- if the specified category does not existNotEmptyException
- if the specified category is not emptyServiceException
- if any system-level error occursInvalidAnonymousUserException
removeCategoryAndDescendants(Long)
void removeCategoryAndDescendants(java.lang.Long categoryId_) throws InvalidAnonymousUserException, InvalidUserException, PrivilegeException, InvalidCategoryException
categoryId_
- the id of the category to be removedInvalidUserException
- if the user calling this method is invalidPrivilegeException
- if the current user is not a portal
administratorInvalidCategoryException
- if the specified category does not existServiceException
- if any system-level error occursInvalidAnonymousUserException
void setGroupAssociationForPage(java.lang.Long pageId_, java.lang.Long groupId_) throws InvalidAnonymousUserException, InvalidUserException, PrivilegeException, InvalidPageException
null
for groupId_
dissociates the group from the page
specified (that it was originally associated with), and also the page from that group.pageId_
- the id of the pagegroupId_
- the id of the group. Set to null to delete the reference.InvalidUserException
- if the user calling this method is invalidPrivilegeException
- if the user does not have sufficient privileges
to perform this actionInvalidPageException
- if the page does not existServiceException
- if any system-level error occursInvalidAnonymousUserException
@Deprecated void setHomePageForAnonymous(java.lang.Long pageId_) throws InvalidAnonymousUserException, InvalidUserException, PrivilegeException, InvalidPageException
pageId_
- the unique Id of the page to be set as the home page for
anonymous usersInvalidUserException
- if the user calling this method is invalidInvalidPageException
- if the specified page does not existPrivilegeException
- if the current user is not an administrator of
the specified groupServiceException
- if any system-level error occursInvalidAnonymousUserException
@Deprecated void renameCategory(java.lang.Long pCategoryId_, java.lang.String pCategoryName_) throws PrivilegeException, InvalidUserException, InvalidCategoryException, InvalidAnonymousUserException
addCategory(java.lang.String, java.lang.Long)
and removeCategory(java.lang.Long)
insteadpCategoryId_
to the new
pCategoryName_
pCategoryId_
- Id of the page category to be renamed.pCategoryName_
- new name for the page category.PrivilegeException
- if the user does not have sufficient privileges
to perform this actionInvalidUserException
- if the user calling this method is invalidInvalidCategoryException
- if the specified category does not existInvalidAnonymousUserException
LoginData getLoginData(int bookmarkPagingStartIndex_, int bookmarkPagingBatchSize_, java.lang.Integer bookmarkPagingSortProperty_, java.lang.Integer bookmarkPagingSortOrder_) throws InvalidAnonymousUserException, InvalidUserException
LoginData
bean containing the list of bookmarked pages for
the current user, as well as a flag representing whether the user, or any of
his member groups, references an invalid page.
A null
is returned for each bookmarked page that does not exist,
or that the user is not authorized to view.bookmarkPagingStartIndex_
- the index into the collection of total bookmarks
at which to start. Negative numbers are treated as zeros.bookmarkPagingBatchSize_
- the number of bookmarks to return.
Use Constants.COUNT_ALL
to return
the entire collection, but this is STRONGLY discouraged.bookmarkPagingSortProperty_
- the property by which the results will be sorted
This is one of the SORT_BY_XXX
constants in
PageInfo
.bookmarkPagingSortOrder_
- The order in which to sort the results. This is either
Constants.SORT_ORDER_ASCENDING
or
Constants.SORT_ORDER_DESCENDING
LoginData
containing the list of pages as the
_bookmarks
field, as an array of PageInfo
, representing
the current user's bookmarksInvalidUserException
- if the user calling this method is invalidServiceException
- if any system-level error occursInvalidAnonymousUserException
void cleanUpPageReferences() throws InvalidAnonymousUserException, InvalidUserException
InvalidUserException
- if the user calling this method is invalidServiceException
- if any system-level error occursInvalidAnonymousUserException
Copyright © 2003-2024 Appian Corporation. All Rights Reserved.