@Deprecated
public interface PortalSearchService
extends com.appiancorp.services.ContextSensitiveService
Method generateSearchIndex(java.sql.Timestamp)
wil generate an index file for all
pages and portlets created or updated after a particular time. This index
file can be used by the search engine to facilitate searching on pages
and portlets.
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.
Modifier and Type | Field and Description |
---|---|
static java.lang.Integer |
ADMIN
Deprecated.
Constant for indicating that the current user has administrative access to
the page or portlet
|
static java.lang.Integer |
CANTSEE
Deprecated.
Constant for indicating that the current user cannot see the page or
portlet
|
static java.lang.Integer |
EDITOR
Deprecated.
Constant for indicating that the current user has editor access to the
page or portlet
|
static boolean |
generateSearchIndex$UPDATES
Deprecated.
|
static boolean |
getPermissionsForPageIds$UPDATES
Deprecated.
|
static boolean |
getPermissionsForPageIdsForUser$UPDATES
Deprecated.
|
static boolean |
getPermissionsForPortletIds$UPDATES
Deprecated.
|
static boolean |
getPermissionsForPortletIdsForUser$UPDATES
Deprecated.
|
static java.lang.Integer |
PAGE_VER_DRAFT
Deprecated.
Constant indicating that the page is in draft state
|
static java.lang.Integer |
PAGE_VER_PUBLISHED
Deprecated.
Constant indicating that the page is in published state
|
static java.lang.Integer |
READER
Deprecated.
Constant for indicating that the current user has read-only access to the
page or portlet
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
generateSearchIndex(java.sql.Timestamp timeStamp_)
Deprecated.
|
int[] |
getPermissionsForPageIds(java.lang.Long[] ids_)
Deprecated.
Gets the permissions for the current user for the pages with the specified
ids
|
int[] |
getPermissionsForPageIdsForUser(java.lang.Long[] ids_,
java.lang.String userName_)
Deprecated.
Gets the permissions for the given user for the pages with the specified
ids
|
int[] |
getPermissionsForPortletIds(java.lang.Long[] ids_)
Deprecated.
Gets the permissions for the current user for the portlets with the
specified ids
|
int[] |
getPermissionsForPortletIdsForUser(java.lang.Long[] ids_,
java.lang.String userName_)
Deprecated.
Gets the permissions for the given user for the portlets with the specified
ids
|
static final java.lang.Integer CANTSEE
static final java.lang.Integer READER
static final java.lang.Integer EDITOR
static final java.lang.Integer ADMIN
static final java.lang.Integer PAGE_VER_DRAFT
static final java.lang.Integer PAGE_VER_PUBLISHED
static final boolean generateSearchIndex$UPDATES
static final boolean getPermissionsForPageIds$UPDATES
static final boolean getPermissionsForPageIdsForUser$UPDATES
static final boolean getPermissionsForPortletIds$UPDATES
static final boolean getPermissionsForPortletIdsForUser$UPDATES
java.lang.String generateSearchIndex(java.sql.Timestamp timeStamp_)
timeStamp_
- only include portlets and pagess modified since this
time; pass null
to do a full indexingServiceException
- if any system-level error occursint[] getPermissionsForPageIds(java.lang.Long[] ids_) throws InvalidUserException, InvalidAnonymousUserException
ids_
- of pages for which to return the permission levelsids_
, where each element is a
constant representing access privileges for the current user to
the given page. The possible return values are:
ServiceException
- if any system-level error occursInvalidUserException
- if the user calling this method is invalidInvalidAnonymousUserException
- if the user calling this method is
anonymous, but anonymous access has not been enabledint[] getPermissionsForPageIdsForUser(java.lang.Long[] ids_, java.lang.String userName_) throws InvalidUserException, InvalidAnonymousUserException
ids_
- of pages for which to return the permission levelsuserName_
- the user name to find the access privileges ofids_
, where each element is a
constant representing access permissions for the user with the given user
name to the page with the given id. The possible return values are:
ServiceException
- if any system-level error occursInvalidUserException
- if the user calling this method is invalidInvalidAnonymousUserException
- if the user calling this method is
anonymous, but anonymous access has not been enabledint[] getPermissionsForPortletIds(java.lang.Long[] ids_) throws InvalidUserException, InvalidAnonymousUserException
ids_
- of portlets for which to return the permission levelsServiceException
- if any system-level error occursInvalidUserException
- if the user calling this method is invalidInvalidAnonymousUserException
- if the user calling this method is
anonymous, but anonymous access has not been enabledint[] getPermissionsForPortletIdsForUser(java.lang.Long[] ids_, java.lang.String userName_) throws InvalidUserException, InvalidAnonymousUserException
ids_
- IDs of portlets for which to return the permission levelsuserName_
- user name to find the access capabilities forids_
, where each element is a
constant representing access permissions for the user with the given
userName to the given portlet. The possible return values are:
ServiceException
- if any system-level error occursInvalidUserException
- if the user calling this method is invalidInvalidAnonymousUserException
- if the user calling this method is
anonymous, but anonymous access has not been enabledCopyright © 2003-2024 Appian Corporation. All Rights Reserved.