Interface DiscussionMetadataConvenienceService
- All Superinterfaces:
com.appiancorp.services.ContextSensitiveService,Service
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.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final IntegerDeprecated.A constant sort property for ThreadSummarystatic final IntegerDeprecated.A constant sort property for ThreadSummarystatic final IntegerDeprecated.A constant sort property for ThreadSummaryFields inherited from interface com.appiancorp.services.ContextSensitiveService
SET_SERVICE_CONTEXT_METHOD_NAME -
Method Summary
Modifier and TypeMethodDescriptiongetForumSummaries(Long[] ids_) Deprecated.use getForumSummariesPaging insteadgetForumSummariesPaging(Long[] ids_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.Get the summaries that the current user can access for a set of forumsgetForumSummary(Long id_) Deprecated.Get the summary for a forum.getSponsoredThreadSummaries(Long[] forumIds_, Integer sortProperty_, Integer sortOrder_, int startIndex_, int batchSize_) Deprecated.use getSponsoredThreadSummariesPaging insteadgetSponsoredThreadSummaries(Long forumId_, Integer sortProperty_, Integer sortOrder_, int startIndex_, int batchSize_) Deprecated.use getSponsoredThreadSummariesPaging insteadgetSponsoredThreadSummariesPaging(Long[] forumIds_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.Get a set of summaries for the sponsored threads in a set of forums.getSponsoredThreadSummariesPaging(Long forumId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.Get a set of summaries for the sponsored threads in a forum.getSubscribedForumSummaries(Integer sortProperty_, Integer sortOrder_, int startIndex_, int batchSize_) Deprecated.use getSubscribedForumSummariesPaging insteadgetSubscribedForumSummariesPaging(int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.Gets the forums to which the user is subscribed as ResultPage.getSubscribedThreadSummaries(Integer sortProperty_, Integer sortOrder_, int startIndex_, int batchSize_) Deprecated.use getSubscribedThreadSummariesPaging insteadgetSubscribedThreadSummariesPaging(int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.Gets the summaries of threads to which the user is subscribed as ResultPages.getThreadedMessages(Long forumId_, Integer sortProperty_, Integer sortOrder_, int startIndex_, int count_) Deprecated.use getThreadedMessagesPaging insteadgetThreadedMessagesPaging(Long forumId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.Get messages that the current user can access for a forum.getThreadSummaries(Long[] threadIds_) Deprecated.use getThreadSummariesPaging insteadgetThreadSummariesForForum(Long forumId_, Integer sortProperty_, Integer sortOrder_, int startIndex_, int batchSize_) Deprecated.use getThreadSummariesForForumPaging insteadgetThreadSummariesForForumPaging(Long forumId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.Gets the summaries of threads in the forum as ResultPage.getThreadSummariesPaging(Long[] threadIds_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.Get the summaries for threads.getThreadSummary(Long threadId_) Deprecated.Get the summary for a thread.Methods inherited from interface com.appiancorp.services.ContextSensitiveService
setServiceContext
-
Field Details
-
SORT_PROPERTY_THREAD_SUMMARY_DATE_MODIFIED
Deprecated.A constant sort property for ThreadSummary -
SORT_PROPERTY_THREAD_SUMMARY_ROOT_SUBJECT
Deprecated.A constant sort property for ThreadSummary -
SORT_PROPERTY_THREAD_SUMMARY_MESSAGE_COUNT
Deprecated.A constant sort property for ThreadSummary -
getForumSummary$UPDATES
static final boolean getForumSummary$UPDATESDeprecated.- See Also:
-
getForumSummaries$UPDATES
static final boolean getForumSummaries$UPDATESDeprecated.- See Also:
-
getForumSummariesPaging$UPDATES
static final boolean getForumSummariesPaging$UPDATESDeprecated.- See Also:
-
getThreadSummary$UPDATES
static final boolean getThreadSummary$UPDATESDeprecated.- See Also:
-
getThreadSummaries$UPDATES
static final boolean getThreadSummaries$UPDATESDeprecated.- See Also:
-
getThreadSummariesPaging$UPDATES
static final boolean getThreadSummariesPaging$UPDATESDeprecated.- See Also:
-
getSponsoredThreadSummaries$UPDATES
static final boolean getSponsoredThreadSummaries$UPDATESDeprecated.- See Also:
-
getSponsoredThreadSummariesPaging$UPDATES
static final boolean getSponsoredThreadSummariesPaging$UPDATESDeprecated.- See Also:
-
getThreadedMessages$UPDATES
static final boolean getThreadedMessages$UPDATESDeprecated.- See Also:
-
getThreadedMessagesPaging$UPDATES
static final boolean getThreadedMessagesPaging$UPDATESDeprecated.- See Also:
-
getSubscribedForumSummaries$UPDATES
static final boolean getSubscribedForumSummaries$UPDATESDeprecated.- See Also:
-
getSubscribedForumSummariesPaging$UPDATES
static final boolean getSubscribedForumSummariesPaging$UPDATESDeprecated.- See Also:
-
getSubscribedThreadSummaries$UPDATES
static final boolean getSubscribedThreadSummaries$UPDATESDeprecated.- See Also:
-
getSubscribedThreadSummariesPaging$UPDATES
static final boolean getSubscribedThreadSummariesPaging$UPDATESDeprecated.- See Also:
-
getThreadSummariesForForum$UPDATES
static final boolean getThreadSummariesForForum$UPDATESDeprecated.- See Also:
-
getThreadSummariesForForumPaging$UPDATES
static final boolean getThreadSummariesForForumPaging$UPDATESDeprecated.- See Also:
-
-
Method Details
-
getForumSummary
Deprecated.Get the summary for a forum.- Parameters:
id_- The local id of the forum to be summarized.- Returns:
- A
ForumSummaryobject relating to the given id. - Throws:
InvalidForumException- if the forum is invalidPrivilegeException- If the user is not contained in the list of participants withinForumsRoleMapfor the given forum.ServiceException- if any system-level error occurs
-
getForumSummaries
Deprecated.use getForumSummariesPaging insteadGet the summaries that the current user can access for a set of forums.- Parameters:
ids_- The local ids of the forums to be summarized.- Returns:
- An array of
ForumSummaryobjects in the same order as the incoming ids. Forums which the user does not have access to will simply not be returned with the results. - Throws:
InvalidForumException- if any of the forums is invalidServiceException- if any system-level error occurs
-
getForumSummariesPaging
ResultPage getForumSummariesPaging(Long[] ids_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws InvalidForumException, PrivilegeException Deprecated.Get the summaries that the current user can access for a set of forums- Parameters:
ids_- The local ids of the forums to be summarized.startIndex_- the index into the collection of total results at which to start. Negative numbers are treated as zeros.batchSize_- the number of results to return. use ofConstants.COUNT_ALLwill result in the entire collection being returned, but this is STRONGLY discouraged.sortProperty_- the property by which the results will be sorted This is one of theSORT_PROPERTY_FORUM_XXXconstants inForumSummarysortOrder_-Constants.SORT_ORDER_ASCENDINGfor sorting results in ascending order,Constants.SORT_ORDER_DESCENDINGfor sorting results in descending order- Returns:
- a
ResultPagecontaining the list of theForumSummaryobjects for forums in the same order as the incoming ids. - Throws:
InvalidForumException- if any of the forums is invalidPrivilegeException- If the user is not contained in the list of participants withinForumsRoleMapfor the given forum.ServiceException- if any system-level error occurs
-
getThreadSummary
Deprecated.Get the summary for a thread.- Parameters:
threadId_- The id of the thread.- Returns:
- A
ThreadSummaryobject corresponding to the given thread id. - Throws:
InvalidThreadException- if the thread does not existPrivilegeException- If the user is not contained in the list of participants withinThreadRoleMapfor the given thread.ServiceException- if any system-level error occurs
-
getThreadSummaries
@Deprecated ThreadSummary[] getThreadSummaries(Long[] threadIds_) throws InvalidThreadException, PrivilegeException Deprecated.use getThreadSummariesPaging insteadGet the summaries for threads.- Parameters:
threadIds_- The ids of the threads.- Returns:
- An array of
ThreadSummaryobjects in the order of the given thread ids. - Throws:
InvalidThreadException- if any of the threads does not existPrivilegeException- If the user is not contained in the list of participants withinThreadRoleMapfor any of the given threads.ServiceException- if any system-level error occurs
-
getThreadSummariesPaging
ResultPage getThreadSummariesPaging(Long[] threadIds_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws InvalidThreadException, PrivilegeException Deprecated.Get the summaries for threads.- Parameters:
threadIds_- The ids of the threads.startIndex_- the index into the collection of total results at which to start. Negative numbers are treated as zeros.batchSize_- the number of results to return. use ofConstants.COUNT_ALLwill result in the entire collection being returned, but this is STRONGLY discouraged.sortProperty_- the property by which the results will be sorted This is one of theSORT_PROPERTY_THREAD_SUMMARY_XXXconstants inThreadSummarysortOrder_-Constants.SORT_ORDER_ASCENDINGfor sorting results in ascending order,Constants.SORT_ORDER_DESCENDINGfor sorting results in descending order- Returns:
- a ResultPage containing the list of
ThreadSummaryobjects representing the thread summaries forthreadIds_ - Throws:
InvalidThreadException- if any of the threads does not existPrivilegeException- If the user is not contained in the list of participants withinThreadRoleMapfor any of the given threads.ServiceException- if any system-level error occurs
-
getSponsoredThreadSummaries
@Deprecated ThreadSummary[] getSponsoredThreadSummaries(Long forumId_, Integer sortProperty_, Integer sortOrder_, int startIndex_, int batchSize_) throws InvalidForumException, PrivilegeException Deprecated.use getSponsoredThreadSummariesPaging insteadGet a set of summaries for the sponsored threads in a forum.- Parameters:
forumId_- The local id of the forum containing the sponsored threads.sortProperty_- the property by which the results will be sorted This is one of theSORT_PROPERTY_THREAD_SUMMARY_XXXconstants inThreadSummarysortOrder_-Constants.SORT_ORDER_ASCENDINGfor sorting results in ascending order,Constants.SORT_ORDER_DESCENDINGfor sorting results in descending orderstartIndex_- the index into the collection of total results at which to start. Negative numbers are treated as zeros.batchSize_- the number of results to return. use ofConstants.COUNT_ALLwill result in the entire collection being returned, but this is STRONGLY discouraged.- Returns:
- An array of
ThreadSummaryobjects corresponding to the sponsored threads within the given forum - Throws:
InvalidForumException- if the forum is invalidPrivilegeException- If the user is not contained in the list of participants withinForumsRoleMapthe given forum.ServiceException- if any system-level error occurs
-
getSponsoredThreadSummariesPaging
ResultPage getSponsoredThreadSummariesPaging(Long forumId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws InvalidForumException, PrivilegeException Deprecated.Get a set of summaries for the sponsored threads in a forum.- Parameters:
forumId_- The local id of the forum containing the sponsored threads.startIndex_- the index into the collection of total results at which to start. Negative numbers are treated as zeros.batchSize_- the number of results to return. use ofConstants.COUNT_ALLwill result in the entire collection being returned, but this is STRONGLY discouraged.sortProperty_- the property by which the results will be sorted This is one of theSORT_PROPERTY_THREAD_SUMMARY_XXXconstants inThreadSummarysortOrder_-Constants.SORT_ORDER_ASCENDINGfor sorting results in ascending order,Constants.SORT_ORDER_DESCENDINGfor sorting results in descending order- Returns:
- a
ResultPagecontaining the list ofThreadSummaryobjects for each sponsored thread within the given forum. - Throws:
InvalidForumException- if the forum is invalidPrivilegeException- If the user is not contained in the list of participants withinForumsRoleMapthe given forum.ServiceException- if any system-level error occurs
-
getSponsoredThreadSummaries
@Deprecated ThreadSummary[] getSponsoredThreadSummaries(Long[] forumIds_, Integer sortProperty_, Integer sortOrder_, int startIndex_, int batchSize_) throws InvalidForumException, PrivilegeException Deprecated.use getSponsoredThreadSummariesPaging insteadGet a set of summaries for the sponsored threads in a set of forums.- Parameters:
forumIds_- The local ids of the forums containing the sponsored threads.sortProperty_- the property by which the results will be sorted This is one of theSORT_PROPERTY_THREAD_SUMMARY_XXXconstants inThreadSummarysortOrder_-Constants.SORT_ORDER_ASCENDINGfor sorting results in ascending order,Constants.SORT_ORDER_DESCENDINGfor sorting results in descending orderstartIndex_- the index into the collection of total results at which to start. Negative numbers are treated as zeros.batchSize_- the number of results to return. use ofConstants.COUNT_ALLwill result in the entire collection being returned, but this is STRONGLY discouraged.- Returns:
- An array of
ThreadSummaryobjects corresponding to the sponsored sponsored threads within the given forums - Throws:
InvalidForumException- if any of the forums is invalidPrivilegeException- If the user is not contained in the list of participants withinForumsRoleMapfor any of the given forums.ServiceException- if any system-level error occurs
-
getSponsoredThreadSummariesPaging
ResultPage getSponsoredThreadSummariesPaging(Long[] forumIds_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws InvalidForumException, PrivilegeException Deprecated.Get a set of summaries for the sponsored threads in a set of forums.- Parameters:
forumIds_- The local ids of the forums containing the sponsored threads.startIndex_- the index into the collection of total results at which to start. Negative numbers are treated as zeros.batchSize_- the number of results to return. use ofConstants.COUNT_ALLwill result in the entire collection being returned, but this is STRONGLY discouraged.sortProperty_- the property by which the results will be sorted This is one of theSORT_PROPERTY_THREAD_SUMMARY_XXXconstants inThreadSummarysortOrder_-Constants.SORT_ORDER_ASCENDINGfor sorting results in ascending order,Constants.SORT_ORDER_DESCENDINGfor sorting results in descending order- Returns:
- a
ResultPagecontaining the list ofThreadSummaryobjects for each sponsored thread within the given forums. - Throws:
InvalidForumException- if any of the forums is invalidPrivilegeException- If the user is not contained in the list of participants withinForumsRoleMapfor any of the given forums.ServiceException- if any system-level error occurs
-
getThreadedMessages
@Deprecated ThreadedMessage[] getThreadedMessages(Long forumId_, Integer sortProperty_, Integer sortOrder_, int startIndex_, int count_) throws InvalidForumException Deprecated.use getThreadedMessagesPaging insteadGet messages that the current user can access for a forum- Parameters:
forumId_- The id of the forum containing the messages.sortProperty_- the property by which the results will be sorted This is one of theSORT_BY_XXXconstants inThreadedMessagesortOrder_-Constants.SORT_ORDER_ASCENDINGfor sorting results in ascending order,Constants.SORT_ORDER_DESCENDINGfor sorting results in descending ordercount_-Constants.COUNT_ALLwill result in the entire collection being returned, but this is STRONGLY discouraged.- Returns:
- The array of
ThreadedMessageobjects. A zero-length array if there are no messages. - Throws:
InvalidForumException- if the forum is invalidServiceException- if any system-level error occurs
-
getThreadedMessagesPaging
ResultPage getThreadedMessagesPaging(Long forumId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws InvalidForumException Deprecated.Get messages that the current user can access for a forum.- Parameters:
forumId_- The id of the forum containing the messages.startIndex_- the index into the collection of total results at which to start. Negative numbers are treated as zeros.batchSize_- the number of results to return. use ofConstants.COUNT_ALLwill result in the entire collection being returned, but this is STRONGLY discouraged.sortProperty_- the property by which the results will be sorted This is one of theSORT_BY__XXXconstants inThreadedMessagesortOrder_-Constants.SORT_ORDER_ASCENDINGfor sorting results in ascending order,Constants.SORT_ORDER_DESCENDINGfor sorting results in descending order- Returns:
- a ResultPage containing the list of
ThreadedMessageobjects representing the messages in the forum - Throws:
InvalidForumException- if the forum is invalidServiceException- if any system-level error occurs
-
getSubscribedForumSummaries
@Deprecated ForumSummary[] getSubscribedForumSummaries(Integer sortProperty_, Integer sortOrder_, int startIndex_, int batchSize_) Deprecated.use getSubscribedForumSummariesPaging insteadGets the forums to which the user is subscribed.- Parameters:
sortProperty_- the property by which the results will be sorted This is one of theSORT_PROPERTY_FORUM_XXXconstants inForumSummarysortOrder_-Constants.SORT_ORDER_ASCENDINGfor sorting results in ascending order,Constants.SORT_ORDER_DESCENDINGfor sorting results in descending orderstartIndex_- the index into the collection of total results at which to start. Negative numbers are treated as zeros.batchSize_- the number of results to return. use ofConstants.COUNT_ALLwill result in the entire collection being returned, but this is STRONGLY discouraged.- Returns:
- An array of
ForumSummaryobjects corresponding to the forums to which the user is subscribed. - Throws:
ServiceException- if any system-level error occurs
-
getSubscribedForumSummariesPaging
ResultPage getSubscribedForumSummariesPaging(int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.Gets the forums to which the user is subscribed as ResultPage.- Parameters:
startIndex_- the index into the collection of total results at which to start. Negative numbers are treated as zeros.batchSize_- the number of results to return. use ofConstants.COUNT_ALLwill result in the entire collection being returned, but this is STRONGLY discouraged.sortProperty_- the property by which the results will be sorted This is one of theSORT_PROPERTY_FORUM_XXXconstants inForumSummarysortOrder_-Constants.SORT_ORDER_ASCENDINGfor sorting results in ascending order,Constants.SORT_ORDER_DESCENDINGfor sorting results in descending order- Returns:
- a
ResultPagecontaining a list of theForumSummaryobjects representing the forums to which the user is subscribed. - Throws:
ServiceException- if any system-level error occurs
-
getSubscribedThreadSummaries
@Deprecated ThreadSummary[] getSubscribedThreadSummaries(Integer sortProperty_, Integer sortOrder_, int startIndex_, int batchSize_) Deprecated.use getSubscribedThreadSummariesPaging insteadGets the threads to which the user is subscribed.- Parameters:
sortProperty_- the property by which the results will be sorted This is one of theSORT_PROPERTY_THREAD_SUMMARY_XXXconstants inThreadSummarysortOrder_-Constants.SORT_ORDER_ASCENDINGfor sorting results in ascending order,Constants.SORT_ORDER_DESCENDINGfor sorting results in descending orderstartIndex_- the index into the collection of total results at which to start. Negative numbers are treated as zeros.batchSize_- the number of results to return. use ofConstants.COUNT_ALLwill result in the entire collection being returned, but this is STRONGLY discouraged.- Returns:
- an array of
ThreadSummarycorresponding to the threads to which the user is subscribed. - Throws:
ServiceException- if any system-level error occurs
-
getSubscribedThreadSummariesPaging
ResultPage getSubscribedThreadSummariesPaging(int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.Gets the summaries of threads to which the user is subscribed as ResultPages.- Parameters:
startIndex_- the index into the collection of total results at which to start. Negative numbers are treated as zeros.batchSize_- the number of results to return. use ofConstants.COUNT_ALLwill result in the entire collection being returned, but this is STRONGLY discouraged.sortProperty_- the property by which the results will be sorted This is one of theSORT_PROPERTY_THREAD_SUMMARY_XXXconstants inThreadSummarysortOrder_-Constants.SORT_ORDER_ASCENDINGfor sorting results in ascending order,Constants.SORT_ORDER_DESCENDINGfor sorting results in descending order- Returns:
- a
ResultPagecontaining the list ofThreadSummaryobjects representing the threads to which the user is subscribed - Throws:
ServiceException- if any system-level error occurs
-
getThreadSummariesForForum
@Deprecated ThreadSummary[] getThreadSummariesForForum(Long forumId_, Integer sortProperty_, Integer sortOrder_, int startIndex_, int batchSize_) throws InvalidForumException, PrivilegeException Deprecated.use getThreadSummariesForForumPaging insteadGets the summaries of threads in the forum.- Parameters:
forumId_- The forum id.startIndex_- the index into the collection of total results at which to start. Negative numbers are treated as zeros.batchSize_- the number of results to return. use ofConstants.COUNT_ALLwill result in the entire collection being returned, but this is STRONGLY discouraged.sortProperty_- the property by which the results will be sorted This is one of theSORT_PROPERTY_THREAD_SUMMARY_XXXconstants inThreadSummarysortOrder_-Constants.SORT_ORDER_ASCENDINGfor sorting results in ascending order,Constants.SORT_ORDER_DESCENDINGfor sorting results in descending order- Returns:
- an array of
ThreadSummaryobjects containing the summaries of threads in the given forum. - Throws:
InvalidForumException- if the forum does not existPrivilegeException- If the user is not contained in the list of participants withinForumsRoleMapfor the given forum.ServiceException- if any system-level error occurs
-
getThreadSummariesForForumPaging
ResultPage getThreadSummariesForForumPaging(Long forumId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws InvalidForumException, PrivilegeException Deprecated.Gets the summaries of threads in the forum as ResultPage.- Parameters:
forumId_- The forum id.startIndex_- the index into the collection of total results at which to start. Negative numbers are treated as zeros.batchSize_- the number of results to return. use ofConstants.COUNT_ALLwill result in the entire collection being returned, but this is STRONGLY discouraged.sortProperty_- the property by which the results will be sorted This is one of theSORT_PROPERTY_THREAD_SUMMARY_XXXconstants inThreadSummarysortOrder_-Constants.SORT_ORDER_ASCENDINGfor sorting results in ascending order,Constants.SORT_ORDER_DESCENDINGfor sorting results in descending order- Returns:
- a
ResultPagecontaining the list ofThreadSummaryobjects representing the thread summaries for the forum - Throws:
InvalidForumException- if the forum does not existPrivilegeException- If the user is not contained in the list of participants withinForumsRoleMapfor the given forum.ServiceException- if any system-level error occurs
-