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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateMessage(Message m_) Deprecated.Stores the body for a new messagevoidcreateMessages(Message[] ms_) Deprecated.Stores the body for multiple messagesString[]readBodies(Message[] ms_) Deprecated.Read multiple message bodies.String[]readBodies(ThreadedMessage[] tms_) Deprecated.Read multiple message bodies.String[]readBodies(String[] locations_) Deprecated.Read multiple message bodies from given locations.Deprecated.Read the message body at the given location.voidupdateMessage(Message m_) Deprecated.Updates a message bodyvoidupdateMessages(Message[] ms_) Deprecated.Updates multiple message bodies
-
Field Details
-
readBody$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
readBodies$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
createMessage$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
createMessages$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
updateMessage$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
updateMessages$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
-
Method Details
-
readBody
Deprecated.Read the message body at the given location.- Parameters:
location_- The location of the body, i.e. filename- Returns:
- The body, if found;
null, if not found. - Throws:
ServiceException- if any system-level error occurs.NullPointerException- if the given String is null.
-
readBodies
Deprecated.Read multiple message bodies from given locations.- Parameters:
locations_- The locations of the bodies.- Returns:
- An array containing: the body, if found; a
null, if not found (this applies for null locations). If the array is empty then it also returns an empty array. - Throws:
ServiceException- if any system-level error occursNullPointerException- if the given array is null.
-
readBodies
Deprecated.Read multiple message bodies.- Parameters:
ms_- TheMessageobjects for which to obtain bodies; thebodyLocationfield should be populated.- Returns:
- An array containing: the body, if found; a
null, if not found (this applies for null locations). If the array is empty then it also returns an empty array. - Throws:
ServiceException- if any system-level error occursNullPointerException- if the given array is null.
-
readBodies
Deprecated.Read multiple message bodies.- Parameters:
tms_- The threadedMessageobjects for which to obtain bodies; thebodyLocationfield should be populated.- Returns:
- An array containing: the body, if found; a
null, if not found (this applies for null locations). If the array is empty then it also returns an empty array. - Throws:
ServiceException- if any system-level error occursNullPointerException- if the given array is null.
-
createMessage
Deprecated.Stores the body for a new message- Parameters:
m_- TheMessageto be stored; thebodyLocationfield should be populated.- Throws:
ServiceException- if any system-level error occurs
-
createMessages
Deprecated.Stores the body for multiple messages- Parameters:
ms_- TheMessageto be stored; thebodyLocationfield should be populated.- Throws:
ServiceException- if any system-level error occursNullPointerException- if the given message array is null.
-
updateMessage
Deprecated.Updates a message body- Parameters:
m_- TheMessageto be updated; thebodyLocationfield should be populated.- Throws:
ServiceException- if any system-level error occurs
-
updateMessages
Deprecated.Updates multiple message bodies- Parameters:
ms_- The messages to be updated; thebodyLocationfield should be populated.- Throws:
ServiceException- if any system-level error occursNullPointerException- if the given message array is null.
-