@Deprecated
public interface DiscussionBodyService
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 |
createMessage$UPDATES
Deprecated.
|
static boolean |
createMessages$UPDATES
Deprecated.
|
static boolean |
readBodies$UPDATES
Deprecated.
|
static boolean |
readBody$UPDATES
Deprecated.
|
static boolean |
updateMessage$UPDATES
Deprecated.
|
static boolean |
updateMessages$UPDATES
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
createMessage(Message m_)
Deprecated.
Stores the body for a new message
|
void |
createMessages(Message[] ms_)
Deprecated.
Stores the body for multiple messages
|
java.lang.String[] |
readBodies(Message[] ms_)
Deprecated.
Read multiple message bodies.
|
java.lang.String[] |
readBodies(java.lang.String[] locations_)
Deprecated.
Read multiple message bodies from given locations.
|
java.lang.String[] |
readBodies(ThreadedMessage[] tms_)
Deprecated.
Read multiple message bodies.
|
java.lang.String |
readBody(java.lang.String location_)
Deprecated.
Read the message body at the given location.
|
void |
updateMessage(Message m_)
Deprecated.
Updates a message body
|
void |
updateMessages(Message[] ms_)
Deprecated.
Updates multiple message bodies
|
static final boolean readBody$UPDATES
static final boolean readBodies$UPDATES
static final boolean createMessage$UPDATES
static final boolean createMessages$UPDATES
static final boolean updateMessage$UPDATES
static final boolean updateMessages$UPDATES
java.lang.String readBody(java.lang.String location_)
location_
- The location of the body, i.e. filenamenull
, if not found.ServiceException
- if any system-level error occurs.java.lang.NullPointerException
- if the the given String is null.java.lang.String[] readBodies(java.lang.String[] locations_)
locations_
- The locations of the bodies.null
, if
not found (this applies for null locations). If the array is empty then it
also returns an empty array.ServiceException
- if any system-level error occursjava.lang.NullPointerException
- if the the given array is null.java.lang.String[] readBodies(Message[] ms_)
ms_
- The Message
objects for which to obtain
bodies; the bodyLocation
field should be populated.null
, if
not found (this applies for null locations). If the array is empty then it
also returns an empty array.ServiceException
- if any system-level error occursjava.lang.NullPointerException
- if the the given array is null.java.lang.String[] readBodies(ThreadedMessage[] tms_)
tms_
- The threaded Message
objects for which to
obtain bodies; the bodyLocation
field should be populated.null
, if
not found (this applies for null locations). If the array is empty then it
also returns an empty array.ServiceException
- if any system-level error occursjava.lang.NullPointerException
- if the the given array is null.void createMessage(Message m_)
m_
- The Message
to be stored;
the bodyLocation
field should be populated.ServiceException
- if any system-level error occursvoid createMessages(Message[] ms_)
ms_
- The Message
to be stored;
the bodyLocation
field should be populated.ServiceException
- if any system-level error occursjava.lang.NullPointerException
- if the the given message array is null.void updateMessage(Message m_)
m_
- The Message
to be updated;
the bodyLocation
field should be populated.ServiceException
- if any system-level error occursvoid updateMessages(Message[] ms_)
ms_
- The messages to be updated;
the bodyLocation
field should be populated.ServiceException
- if any system-level error occursjava.lang.NullPointerException
- if the the given message array is null.Copyright © 2003-2024 Appian Corporation. All Rights Reserved.