@Deprecated
public interface LeaderMessageService
extends com.appiancorp.services.ContextSensitiveService
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 boolean |
createLeaderMessage$UPDATES
Deprecated.
|
static boolean |
deleteLeaderMessage$UPDATES
Deprecated.
|
static boolean |
findLeaderMessagesInPortletPaging$UPDATES
Deprecated.
|
static boolean |
findLeaderMessagesPaging$UPDATES
Deprecated.
|
static boolean |
getApplicationName$UPDATES
Deprecated.
|
static boolean |
getLeaderMessagesPage$UPDATES
Deprecated.
|
static boolean |
getWorkspace$UPDATES
Deprecated.
|
static boolean |
moveLeaderMessage$UPDATES
Deprecated.
|
static boolean |
shiftLeaderMessage$UPDATES
Deprecated.
|
static boolean |
updateLeaderMessage$UPDATES
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
createLeaderMessage(java.lang.Long portletId_,
LeaderMessage lm_)
Deprecated.
Create a leader message.
|
void |
deleteLeaderMessage(java.lang.Long leaderMessageId_)
Deprecated.
Delete a leader message.
|
ResultPage |
findLeaderMessagesInPortletPaging(LeaderMessage message_,
java.lang.Long portletId_,
int index_,
int count_)
Deprecated.
Searches through names of the leader messages the user can see, for a given
portlet.
|
ResultPage |
findLeaderMessagesPaging(LeaderMessage message_,
int index_,
int count_)
Deprecated.
Searches through names of leader messages that the current user can see.
|
java.lang.String |
getApplicationName()
Deprecated.
Gets the name of the application on which this service is running.
|
ResultPage |
getLeaderMessagesPage(java.lang.Long portletId_,
int startPosition_,
int batchSize_)
Deprecated.
Get a page of leader messages.
|
java.lang.String[] |
getWorkspace()
Deprecated.
Gets the current memory profile for the workspace.
|
void |
moveLeaderMessage(java.lang.Long leaderMessageId_,
int newPosition_)
Deprecated.
Move a leader message within the total list of messages for a portlet
This method takes an absolute position.
|
java.lang.Void |
shiftLeaderMessage(java.lang.Long leaderMessageId_,
int numShift_)
Deprecated.
Shift a leader message to a new specified position within the list of
messages for a portlet.
|
void |
updateLeaderMessage(LeaderMessage lm_)
Deprecated.
Update a leader message.
|
static final boolean createLeaderMessage$UPDATES
static final boolean updateLeaderMessage$UPDATES
static final boolean deleteLeaderMessage$UPDATES
static final boolean getLeaderMessagesPage$UPDATES
static final boolean moveLeaderMessage$UPDATES
static final boolean shiftLeaderMessage$UPDATES
static final boolean findLeaderMessagesPaging$UPDATES
static final boolean findLeaderMessagesInPortletPaging$UPDATES
static final boolean getApplicationName$UPDATES
static final boolean getWorkspace$UPDATES
java.lang.Long createLeaderMessage(java.lang.Long portletId_, LeaderMessage lm_) throws InvalidPortletException
link
portletId_
- the ID of the portlet in which this leader message is being
created.lm_
- the leader message to create. ID will be ignored.InvalidPortletException
- if no portlet exists with the given IDServiceException
- if any system-level error occursvoid updateLeaderMessage(LeaderMessage lm_) throws InvalidLeaderMessageException
lm_
- the new values for the leader message.InvalidLeaderMessageException
- if the ID of the leader message
does not correspond to a valid leader messageServiceException
- if any system-level error occursvoid deleteLeaderMessage(java.lang.Long leaderMessageId_) throws InvalidLeaderMessageException
leaderMessageId_
- the ID of the leader message to delete.InvalidLeaderMessageException
- if the ID does not correspond to a
valid leader messageServiceException
- if any system-level error occursResultPage getLeaderMessagesPage(java.lang.Long portletId_, int startPosition_, int batchSize_) throws InvalidPortletException
portletId_
- the ID of the portlet whose leader messages are to be
retrieved.startPosition_
- the 0-based index into the collection of total
results at which to start. Negative numbers are treated as zerosbatchSize_
- the number of results to return. Use
Constants.COUNT_ALL
will result in
the entire collection being returned, but this is STRONGLY discouraged.ResultPage
containing a list of
LeaderMessage
objectsInvalidPortletException
- if no portlet exists with the given IDServiceException
- if any system-level error occursvoid moveLeaderMessage(java.lang.Long leaderMessageId_, int newPosition_) throws InvalidLeaderMessageException
leaderMessageId_
- the ID of the leader message to move.newPosition_
- the leader message's new position. Position is 0-based.
If the position index is equal to or greater than the number of leader
messages the message is moved to the end.InvalidLeaderMessageException
- if the ID does not correspond to a
valid leader messageServiceException
- if any system-level error occursjava.lang.Void shiftLeaderMessage(java.lang.Long leaderMessageId_, int numShift_) throws InvalidLeaderMessageException
leaderMessageId_
- the ID of the leader message to move.numShift_
- the number of spaces to shift the leadership message.
If the number is equal to or greater than the
number of leader messages the message is moved to the end.InvalidLeaderMessageException
- if the ID does not correspond to a
valid leader messageServiceException
- if any system-level error occursResultPage findLeaderMessagesPaging(LeaderMessage message_, int index_, int count_)
java.lang.String
items are matched using regular expressions
(e.g., "ab*" matches those items beginning with "ab")message_
- the LeaderMessage
used in the search. If
null
, null
will be returned.index_
- the index of the first LeaderMessage
that will
be returnedcount_
- the number of leader messages to be returned in the
ResultPage
ResultPage
containing the list of
LeaderMessage
objects matching the search termsServiceException
- if any system-level error occursResultPage findLeaderMessagesInPortletPaging(LeaderMessage message_, java.lang.Long portletId_, int index_, int count_)
java.lang.String
items are matched using regular expressions
(e.g., "ab*" matches those items beginning with "ab")message_
- the LeaderMessage
used in the search. If
null
, null
will be returned.portletId_
- the ID of the portlet in which to searchindex_
- the index of the first LeaderMessage
that will
be returnedcount_
- the number of leader messages to be returned in the
ResultPage
ResultPage
containing the list of
LeaderMessage
objects matching the search termsServiceException
- if any system-level error occursjava.lang.String getApplicationName()
ServiceException
- if any system-level error occursjava.lang.String[] getWorkspace()
ServiceException
- if any system-level error occursCopyright © 2003-2024 Appian Corporation. All Rights Reserved.