public interface NotesContentService
ProcessExecutionService
. When creating
a note this service must be called immediately after creating the
NoteMetadata
using
ProcessExecutionService.createNoteMetadata(NoteMetadata)
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 |
assembleNote$UPDATES |
static boolean |
assembleNotes$UPDATES |
static boolean |
createNoteContent$UPDATES |
static boolean |
updateNoteContent$UPDATES |
Modifier and Type | Method and Description |
---|---|
Note |
assembleNote(NoteMetadata nm_)
Assembles a note from note metadata.
|
Note[] |
assembleNotes(NoteMetadata[] nms_)
Assembles an array of notes from note metadata.
|
void |
createNoteContent(NoteMetadata nm_,
java.lang.String content_)
Creates note content at the location on disk specified by the note metadata
The location refers to the full path of a file on disk.
|
void |
createNoteContent(java.lang.String location_,
java.lang.String content_)
Creates new note content at the specified location on disk.
|
void |
updateNoteContent(NoteMetadata nm_,
java.lang.String content_)
Updates the note content at the location on disk specified by the note
metadata.
|
void |
updateNoteContent(java.lang.String location_,
java.lang.String content_)
Updates the note content at the specified location on disk.
|
static final boolean assembleNote$UPDATES
static final boolean assembleNotes$UPDATES
static final boolean createNoteContent$UPDATES
static final boolean updateNoteContent$UPDATES
Note assembleNote(NoteMetadata nm_) throws AppianException
NoteMetadata.getLocation()
. The
location refers to the full path of a file on disk. If
no note content file exists at the location, the returned note will be
populated with default content (text indicating that the note could not
be found).
NoteMetaData
fields required for Note
creation
are: none.nm_
- the metadata to assemble from which to assemble a noteNote
object populated from NoteMetadataAppianException
- if any error is encountered executing the
methodServiceException
- if any system-level error occursNote[] assembleNotes(NoteMetadata[] nms_) throws AppianException
assembleNote(com.appiancorp.suiteapi.process.NoteMetadata)
nms_
- an array of metadata from which to assemble the notesAppianException
- if any error is encountered executing the
methodServiceException
- if any system-level error occursvoid createNoteContent(java.lang.String location_, java.lang.String content_) throws WriteException
location_
- the location on disk where note content is to be stored.content_
- the content to be stored at the given locationAppianException
- if any error is encountered executing the
methodServiceException
- if any system-level error occursWriteException
void createNoteContent(NoteMetadata nm_, java.lang.String content_) throws WriteException
nm_
- the note metadata specifying the location on disk where content
is to be created (specifically, content will be created at the location
specified by NoteMetadata.getLocation()
)content_
- the content to be stored at the given locationAppianException
- if any error is encountered executing the
methodServiceException
- if any system-level error occursWriteException
void updateNoteContent(java.lang.String location_, java.lang.String content_) throws WriteException
location_
- the location on disk of the note contentcontent_
- the new content to be stored at the given locationAppianException
- if any error is encountered executing the
methodServiceException
- if any system-level error occursWriteException
void updateNoteContent(NoteMetadata nm_, java.lang.String content_) throws WriteException
nm_
- the note metadata specifying the location on disk where content
is to be updated (specifically, content will be updated at the location
specified by NoteMetadata.getLocation()
)content_
- the content to be stored at the given locationAppianException
- if any error is encountered executing the
methodServiceException
- if any system-level error occursWriteException
Copyright © 2003-2024 Appian Corporation. All Rights Reserved.