Interface DiscussionMetadataCoreService
- All Superinterfaces:
com.appiancorp.services.ContextSensitiveService,Service
LocalObject, such as a Document or Knowledge Center.
Forums can be public or private. Anyone can view and post to a public forum,
whereas only selected users can view and post to a private forum (as specified
in the actors role map).
A user can subscribe to a topic/thread, in which case he/she will receive a notification whenever a new message is posted to the thread. If the user subscribes to a forum, he/she will receive a notification whenever a new message is posted to any of the topics in the forum.
Individual topics can be sponsored, which provides a way of flagging more important topics. Topics can then be retrieved or sorted based on the sponsored flag. Sponsoring is not connected to the user who marks the topic as sponsored (the topic is simply marked as "sponsored").
Individual messages can be rated by users.
Security for discussion forums is managed through the ForumsRoleMap
class.
NOTE: This service only deals with discussion forums metadata, it does not
write any content to disk. The DiscussionBodyService should be used
to save content.
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 IntegerDeprecated.The index of the element in theallowedActionsfield of theForumbean that indicates whether the user can create threads in the forumstatic final IntegerDeprecated.The index of the element in theallowedActionsfield of theForumbean that indicates whether the user can delete the forumstatic final IntegerDeprecated.The index of the element in theallowedActionsfield of theForumbean that indicates whether the user can sponsor a thread in the forumstatic final IntegerDeprecated.The index of the element in theallowedActionsfield of theForumbean that indicates whether the user can subscribe to the forumstatic final IntegerDeprecated.The index of the element in theallowedActionsfield of theForumbean that indicates whether the user can unsponsor a thread in the forumstatic final IntegerDeprecated.The index of the element in theallowedActionsfield of theForumbean that indicates whether the user can unsubscribe from the forumstatic final IntegerDeprecated.The index of the element in theallowedActionsfield of theForumbean that indicates whether the user can update the forumstatic final IntegerDeprecated.The index of the element in theallowedActionsfield of theForumbean that indicates whether the user can view the forumstatic final IntegerDeprecated.The index of the element in theallowedActionsfield of theMessagebean that indicates whether the user can add a rating to the messagestatic final IntegerDeprecated.The index of the element in theallowedActionsfield of theMessagebean that indicates whether the user can delete the messagestatic final IntegerDeprecated.The index of the element in theallowedActionsfield of theMessagebean that indicates whether the user can delete the message and its descendentsstatic final IntegerDeprecated.The index of the element in theallowedActionsfield of theMessagebean that indicates whether the user can set the rating of the messagestatic final IntegerDeprecated.The index of the element in theallowedActionsfield of theMessagebean that indicates whether the user can update the messagestatic final IntegerDeprecated.The index of the element in theallowedActionsfield of theMessagebean that indicates whether the user can view the messagestatic final IntegerDeprecated.The index of the element in theallowedActionsfield of theMessagebean that indicates whether the user can anonymously view the messagestatic final IntegerDeprecated.The index of the element in theallowedActionsfield of theThreadSummarybean that indicates whether the user can add a resource to the threadstatic final IntegerDeprecated.The index of the element in theallowedActionsfield of theThreadSummarybean that indicates whether the user can create a message in the threadstatic final IntegerDeprecated.The index of the element in theallowedActionsfield of theThreadSummarybean that indicates whether the user can delete the threadstatic final IntegerDeprecated.The index of the element in theallowedActionsfield of theThreadSummarybean that indicates whether the user can invite other users to the threadstatic final IntegerDeprecated.The index of the element in theallowedActionsfield of theThreadSummarybean that indicates whether the user can move the threadstatic final IntegerDeprecated.The index of the element in theallowedActionsfield of theThreadSummarybean that indicates whether the user can remove a resource from the threadstatic final IntegerDeprecated.The index of the element in theallowedActionsfield of theThreadSummarybean that indicates whether the user can sponsor the threadstatic final IntegerDeprecated.The index of the element in theallowedActionsfield of theThreadSummarybean that indicates whether the user can subscribe to the threadstatic final IntegerDeprecated.The index of the element in theallowedActionsfield of theThreadSummarybean that indicates whether the user can unsponsor the threadstatic final IntegerDeprecated.The index of the element in theallowedActionsfield of theThreadSummarybean that indicates whether the user can unsubscribe from the threadstatic final IntegerDeprecated.The index of the element in theallowedActionsfield of theThreadSummarybean that indicates whether the user can update the threadstatic final IntegerDeprecated.The index of the element in theallowedActionsfield of theThreadSummarybean that indicates whether the user can view the threadstatic 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.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.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.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.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.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.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.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.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.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.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.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.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.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.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final intDeprecated.Indicates that the user is allowed to view the messagestatic final intDeprecated.Indicates that the user is not allowed to view the messagestatic final intDeprecated.Indicates that no permissions can be obtained for the message because the specified message was null or does not existstatic 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.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.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.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.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.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.Fields inherited from interface com.appiancorp.services.ContextSensitiveService
SET_SERVICE_CONTEXT_METHOD_NAME -
Method Summary
Modifier and TypeMethodDescriptionvoidacceptThreadInvitation(Long threadId_) Deprecated.Called by the invitee to accept the invitation.boolean[]activateUserSession(Long[] memberGroups_, Long[] adminGroups_, Long userTypeId_) Deprecated.voidaddActorsToRolesInForums(Long forumId_, String[] usernames_, Long[] groupIds_, String role_) Deprecated.Add users/groups to a given role in a forum.voidDeprecated.Average a new individual rating into the message's overall average rating.voidaddThreadResource(Long threadId_, Attachment resource_) Deprecated.Add an attachment to a thread.voidaddThreadResources(Long threadId_, Attachment[] resources_) Deprecated.Add multiple attachments to a thread.booleanallowedAnonymousPosting(Long forumId_) Deprecated.Returns whether anonymous posting is allowed for a given forum.voidchangePartitionPaths(String originalPath, String newPath) Deprecated.Changes where message texts are stored from one path to another.voidDeprecated.createForum(Forum f_) Deprecated.Create a discussion forum.Long[]createForums(Forum[] forums_) Deprecated.Create multiple discussion forums.createMessage(Long forumId_, Message m_) Deprecated.Create a message.Message[]createMessages(Long[] forumIds_, Message[] msgs_) Deprecated.Create multiple messages, one per forum.voiddeleteForum(Long forumId_) Deprecated.Delete a forum (and all of its threads).voiddeleteMessage(Long messageId_) Deprecated.Delete a given message (connects any children of the given message to the parent of the message).voiddeleteMessageAndDescendants(Long messageId_) Deprecated.Delete a message and all its descendants.voiddeleteThread(Long threadId_) Deprecated.Delete a thread (and all of its messages).voiddenyThreadInvitation(Long threadId_) Deprecated.Called by the invitee to deny the invitation.voiddisableForumAnonymousPosting(Long forumId_) Deprecated.Disallows anonymous posting for a given forum (can only be set by a forums administrator or a user having equivalent/higher privileges).voidenableForumAnonymousPosting(Long forumId_) Deprecated.Allow anonymous posting for a given forumfindForumsPaging(String nameSearchString_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.Find forums by name (gets the forums whose name matches a given query string).getAllDeletedMessagesPaging(int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.Get all the messages that have been deleted, paging.getAllForumsPaging(int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.Get all forums, paging.getAllForumSummariesPaging(int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.Get the summaries of all forums, paging.Deprecated.Gets the name of the application on which this service is running.boolean[]Deprecated.Returns boolean[3] of system permissions which is set in session.getChildrenForMessagePaging(Long messageId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.Get all the child messages (ie replies) of a given message, paging.Deprecated.Get a forum.Long[]getForumIdsByRelated(LocalObject related_) getForumIdsByRelatedPaging(LocalObject related_, int startIndex_, int batchSize_, Integer sortOrder_) Deprecated.Get the ids of the forums related to a given Appian Type object (an Appian Type is any type that has a corresponding TYPE_XXX constant defined inObjectTypeMapping).Forum[]getForumsList(Long[] forumIds_) Deprecated.Gets the specified forums, returning the valid results even if all the results cannot be retrieved (for instance, if some of the forums corresponding to the passed ids no longer exist).getForumsPaging(Long[] forumIds_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.Gets multiple forums, paging.getForumSummariesPaging(Long[] forumIds_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.Get the summaries of multiple forums, paging.getMessage(Long messageId_) Deprecated.Get a message.getMessageCountByUsers(String[] usernameList) Deprecated.Returns the number of message posts grouped by a list of users.getMessageCountByUsers(String[] usernameList, Date fromDate, Date toDate) Deprecated.Returns the number of message posts grouped by a list of users from the fromDate to the toDate.getMessageCountByUsersForForum(String[] usernameList, Date fromDate, Date toDate, Long forumId) Deprecated.Returns the number of message posts grouped by a list of users from the fromDate to the toDate.Message[]getMessages(Long[] messageIds_) getMessagesByUserPaging(String username, int startIndex, int batchSize, int sortProperty, int sortOrder) Deprecated.This function gets all messages for a specific user.Message[]getMessagesForThread(Long threadId_, Integer sortProperty_, Integer sortOrder_, int startIndex_, int count_) getMessagesForThreadPaging(Long threadId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.Get all the messages in a given thread, paging.getMessagesList(Long[] messageIds_) Deprecated.Gets the specified messages, returning the valid results even if all the results cannot be retrieved (for instance, if some of the messages corresponding to the passed ids no longer exist).getMessagesPaging(Long[] messageIds_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.Get multiple messages, paging.int[]getPermissionsForMessageIdsForSessionUser(Long[] messageIds_) Deprecated.Get the permissions that the current user has for the given messages.int[]getPermissionsForMessageIdsForUser(Long[] messageIds_, String username_) Deprecated.Get the permissions that a given user has for the given messages.getRoleMapForForum(Long forumId_) Deprecated.Get the rolemap of a forum.getRoleMapForThread(Long threadId_) Deprecated.Get the rolemap of a thread; currently a thread always inherits the rolemap from its parent forum.getSponsoredThreadSummariesPaging(Long[] forumIds_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.Get the summaries of all the sponsored threads in multiple forums, paging.getSponsoredThreadSummariesPaging(Long forumId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.Get the summaries of all the sponsored threads in a forum, paging.getSubscribedForumsPaging(int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.Get all the forums to which the current user is subscribed, paging.getSubscribedThreadsPaging(int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.Get all the threads to which the current user is subscribed, paging.String[]getSubscribersForForum(Long forumId_) Deprecated.Returns the usernames of the users subscribed to a given forum.String[]getSubscribersForThread(Long threadId_) Deprecated.Get the usernames of the users subscribed to a thread.Deprecated.Get a thread.getThreadedMessagesPaging(Long forumId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.Get all the messages in a forum asThreadedMessageobjects.getThreads(Long[] threadIds_) getThreadsForForum(Long forumId_, Integer sortProperty_, Integer sortOrder_, int startIndex_, int count_) getThreadsForForumPaging(Long forumId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.Get all the threads in a given forum, paging.getThreadsList(Long[] threadIds_) Deprecated.Gets the specified threads, returning the valid results even if all the results cannot be retrieved (for instance, if some of the threads corresponding to the passed ids no longer exist).getThreadsPaging(Long[] threadIds_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.Get multiple threads, paging.getThreadSummariesForForumPaging(Long forumId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.Get the summaries of all the threads in a forum, paging.getThreadSummariesPaging(Long[] threadIds_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.Get the summaries of multiple threads, paging.getTopUsersForForum(Date fromDate, Date toDate, Long forumId, int topNUsers) Deprecated.Returns which users are the most active when posting into a particular forum.getTopUsersForSite(Date fromDate, Date toDate, int topNUsers) Deprecated.Returns which users are the most active when posting into the entire site.String[]getUsersToNotify(Long threadId_) Deprecated.Get the usernames of the users who should receive notifications when updates are made to a given thread.String[]getUsersToNotifyForForum(Long forumId_) Deprecated.Get the usernames of the users who should receive notification when updates are made to a given forum or any of its threads.getValidForumSummariesPaging(Long[] forumIds_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.Get the summaries of valid multiple forums, paging.String[]Deprecated.Gets the current memory profile for the workspace.Message[]importMessages(Long[] forumIds_, Message[] msgs_) Deprecated.Import multiple messages, one per forum.voidinviteUsersToThread(String[] usernames_, Long threadId_) Deprecated.Add invitation for the given users to the giventhread.booleanisForumPublic(Long forumId_) Deprecated.Returns whether a forum is public.boolean[]isInvitedToThreads(Long[] threadIds_) Deprecated.Called to check if the invitation to threads for current user are valid.booleanisSubscribedToForum(Long forumId_) Deprecated.Get the current user's subscription status for a given forum.booleanisSubscribedToThread(Long threadId_) Deprecated.Determine whether the current user is subscribed to a thread.voidmoveThread(Long threadId_, Long toForumId_) Deprecated.Move a thread to a different forum.voidnotifyUserCreation(String username_) Deprecated.done automatically by UserService.createUservoidnotifyUsersCreation(String[] usernames_) Deprecated.Notifies this service that new users have been created (seenotifyUserCreation(java.lang.String)).voidDeprecated.reloading properties is now automatic, so this call is now unnecessary and does nothing.voidremoveThreadResource(Long threadId_, Attachment resource_) Deprecated.Remove an attachment from a thread.voidremoveThreadResources(Long threadId_, Attachment[] resources_) Deprecated.Remove multiple resources from a thread.voidDeprecated.voidsetAdministratorGroup(Long groupId_) Deprecated.Sets the group to which a user must belong to be a forums administrator.voidsetForumPrivate(Long forumId_) Deprecated.Set a forum to be private, ie allow only users/groups that are participants and administrators to see the forum and participate.voidsetForumPublic(Long forumId_) Deprecated.Set a forum to be public, ie allow all users to see the forum and participate.voidDeprecated.Set the average rating for a message.voidsetRoleMapForForum(Long forumId_, ForumsRoleMap r_) Deprecated.Set the rolemap of a forum.voidDeprecated.Set a backend timezone.voidsetTimeZoneSameAs(BackendTimeZoneSimple tz, String sameAsId) Deprecated.voidDeprecated.Sponsor a thread (simply marks the thread as 'sponsored').voidsponsorForMessage(Long messageId_) Deprecated.Sponsor a thread through a thread message (sponsors the thread that contains the message whose id is passed).voidsubscribeToForum(Long forumId_) Deprecated.Subscribe the current user to a given forum.voidsubscribeToThread(Long threadId_) Deprecated.Subscribe the current user to a thread.voidsubscribeUsersToThread(Long threadId_, String[] users_) Deprecated.the combination ofinviteUsersToThread(java.lang.String[], java.lang.Long)andacceptThreadInvitation(java.lang.Long)is more secure, and should be used insteadvoidDeprecated.Unsponsor a thread.voidunsponsorForMessage(Long messageId_) Deprecated.Unsponsor a thread through a thread message (unsponsors the thread that contains the message whose id is passed).voidunsubscribeFromForum(Long forumId_) Deprecated.Unsubscribes the current user from a given forum.voidunsubscribeFromThread(Long threadId_) Deprecated.Unsubscribe the current user from a thread.voidupdateForum(Forum f_) Deprecated.Update the properties of a discussion forum.voidupdateForums(Forum[] forums_) Deprecated.Update the properties of multiple discussion forums.updateMessage(Message m_) Deprecated.Update the properties of a message.String[]updateMessages(Message[] m_) Deprecated.Update the properties of multiple messages.voidupdateUsernames(String[] oldUsernames_, String[] newUsernames_, long maxExpirationTimeInSeconds_) Deprecated.validate()Deprecated.Runs validation tests against the database to check whether it is corrupt, and returns a line-separated list of validation resultsbooleanvalidateGroupMembership(Long[] memGroupIds_, Long[] admGroupIds_) Deprecated.No longer necessary with credential systembooleanvalidateTypedValues(TypedValue[] typedValues) Deprecated.Validates given TypedValues.Methods inherited from interface com.appiancorp.services.ContextSensitiveService
setServiceContext
-
Field Details
-
MESSAGE_PERMISSION_INVALID
static final int MESSAGE_PERMISSION_INVALIDDeprecated.Indicates that no permissions can be obtained for the message because the specified message was null or does not exist- See Also:
-
MESSAGE_PERMISSION_CANNOT_VIEW
static final int MESSAGE_PERMISSION_CANNOT_VIEWDeprecated.Indicates that the user is not allowed to view the message- See Also:
-
MESSAGE_PERMISSION_CAN_VIEW
static final int MESSAGE_PERMISSION_CAN_VIEWDeprecated.Indicates that the user is allowed to view the message- See Also:
-
ACTION_FORUM_CREATE_THREAD
Deprecated.The index of the element in theallowedActionsfield of theForumbean that indicates whether the user can create threads in the forum -
ACTION_FORUM_UPDATE
Deprecated.The index of the element in theallowedActionsfield of theForumbean that indicates whether the user can update the forum -
ACTION_FORUM_DELETE
Deprecated.The index of the element in theallowedActionsfield of theForumbean that indicates whether the user can delete the forum -
ACTION_FORUM_VIEW
Deprecated.The index of the element in theallowedActionsfield of theForumbean that indicates whether the user can view the forum -
ACTION_FORUM_SUBSCRIBE
Deprecated.The index of the element in theallowedActionsfield of theForumbean that indicates whether the user can subscribe to the forum -
ACTION_FORUM_UNSUBSCRIBE
Deprecated.The index of the element in theallowedActionsfield of theForumbean that indicates whether the user can unsubscribe from the forum -
ACTION_FORUM_SPONSOR_THREAD
Deprecated.The index of the element in theallowedActionsfield of theForumbean that indicates whether the user can sponsor a thread in the forum -
ACTION_FORUM_UNSPONSOR_THREAD
Deprecated.The index of the element in theallowedActionsfield of theForumbean that indicates whether the user can unsponsor a thread in the forum -
ACTION_THREAD_CREATE_MESSAGE
Deprecated.The index of the element in theallowedActionsfield of theThreadSummarybean that indicates whether the user can create a message in the thread -
ACTION_THREAD_UPDATE
Deprecated.The index of the element in theallowedActionsfield of theThreadSummarybean that indicates whether the user can update the thread -
ACTION_THREAD_DELETE
Deprecated.The index of the element in theallowedActionsfield of theThreadSummarybean that indicates whether the user can delete the thread -
ACTION_THREAD_MOVE
Deprecated.The index of the element in theallowedActionsfield of theThreadSummarybean that indicates whether the user can move the thread -
ACTION_THREAD_VIEW
Deprecated.The index of the element in theallowedActionsfield of theThreadSummarybean that indicates whether the user can view the thread -
ACTION_THREAD_ADD_RESOURCE
Deprecated.The index of the element in theallowedActionsfield of theThreadSummarybean that indicates whether the user can add a resource to the thread -
ACTION_THREAD_REMOVE_RESOURCE
Deprecated.The index of the element in theallowedActionsfield of theThreadSummarybean that indicates whether the user can remove a resource from the thread -
ACTION_THREAD_SUBSCRIBE
Deprecated.The index of the element in theallowedActionsfield of theThreadSummarybean that indicates whether the user can subscribe to the thread -
ACTION_THREAD_UNSUBSCRIBE
Deprecated.The index of the element in theallowedActionsfield of theThreadSummarybean that indicates whether the user can unsubscribe from the thread -
ACTION_THREAD_SPONSOR
Deprecated.The index of the element in theallowedActionsfield of theThreadSummarybean that indicates whether the user can sponsor the thread -
ACTION_THREAD_UNSPONSOR
Deprecated.The index of the element in theallowedActionsfield of theThreadSummarybean that indicates whether the user can unsponsor the thread -
ACTION_THREAD_INVITE_OTHER_USERS
Deprecated.The index of the element in theallowedActionsfield of theThreadSummarybean that indicates whether the user can invite other users to the thread -
ACTION_MESSAGE_UPDATE
Deprecated.The index of the element in theallowedActionsfield of theMessagebean that indicates whether the user can update the message -
ACTION_MESSAGE_DELETE
Deprecated.The index of the element in theallowedActionsfield of theMessagebean that indicates whether the user can delete the message -
ACTION_MESSAGE_DELETE_WITH_DESCENDANTS
Deprecated.The index of the element in theallowedActionsfield of theMessagebean that indicates whether the user can delete the message and its descendents -
ACTION_MESSAGE_ADD_RATING
Deprecated.The index of the element in theallowedActionsfield of theMessagebean that indicates whether the user can add a rating to the message -
ACTION_MESSAGE_SET_RATING
Deprecated.The index of the element in theallowedActionsfield of theMessagebean that indicates whether the user can set the rating of the message -
ACTION_MESSAGE_VIEW
Deprecated.The index of the element in theallowedActionsfield of theMessagebean that indicates whether the user can view the message -
ACTION_MESSAGE_VIEW_ANONYMOUS
Deprecated.The index of the element in theallowedActionsfield of theMessagebean that indicates whether the user can anonymously view the message -
createForum$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
setAdministratorGroup$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
updateForum$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
updateForums$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
deleteForum$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getForum$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getForums$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getForumIdsByRelated$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
deleteThread$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getThread$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getThreads$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getThreadsForForum$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getThreadsForForumPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
moveThread$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
addThreadResource$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
addThreadResources$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
removeThreadResource$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
removeThreadResources$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
subscribeToThread$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
subscribeUsersToThread$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
unsubscribeFromThread$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
isSubscribedToThread$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getSubscribersForThread$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
sponsor$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
unsponsor$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
sponsorForMessage$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
unsponsorForMessage$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:
-
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:
-
getMessage$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getMessages$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getMessagesForThread$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
addRating$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
setRating$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
deleteMessageAndDescendants$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
deleteMessage$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
setRoleMapForForum$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getRoleMapForForum$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getRoleMapForThread$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
activateUserSession$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getUsersToNotify$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getUsersToNotifyForForum$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
isSubscribedToForum$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
subscribeToForum$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
unsubscribeFromForum$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
enableForumAnonymousPosting$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
disableForumAnonymousPosting$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
setForumPublic$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
setForumPrivate$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getForumsPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
findForumsPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getAllForumsPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getAllForumSummariesPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getThreadsPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getMessagesPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getForumIdsByRelatedPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getMessagesForThreadPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getForumSummariesPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getValidForumSummariesPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getThreadSummariesPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getSponsoredThreadSummariesPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getThreadedMessagesPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getThreadSummariesForForumPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
addActorsToRolesInForums$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
allowedAnonymousPosting$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getAllDeletedMessagesPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getPermissionsForMessageIdsForSessionUser$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getPermissionsForMessageIdsForUser$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getSubscribersForForum$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
isForumPublic$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
notifyUserCreation$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
notifyUsersCreation$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getSubscribedThreadsPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getSubscribedForumsPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getChildrenForMessagePaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getApplicationName$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getApplicationPermissions$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getWorkspace$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:
-
createForums$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
importMessages$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getThreadsList$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getForumsList$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getMessagesList$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
validateGroupMembership$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
updateUsernames$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
commitUpdateUsernames$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
rollbackUpdateUsernames$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
inviteUsersToThread$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
acceptThreadInvitation$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
denyThreadInvitation$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
isInvitedToThreads$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
changePartitionPaths$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
reloadProperties$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
validate$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
validateTypedValues$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
setTimeZone$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
setTimeZoneSameAs$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getMessageCountByUsers$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getMessageCountByUsersForForum$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getTopUsersForForum$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getTopUsersForSite$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getMessagesByUserPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
-
Method Details
-
createForum
Deprecated.Create a discussion forum.- Parameters:
f_- The forum to be created. The following fields of the passed object must be set:name,creatoranddateCreated. The value of theidfield is ignored (can benull), since it will be assigned by the server.- Returns:
- The server-assigned forum id (local id).
- Throws:
PrivilegeException- if the current user does not have sufficient privileges to create a forum. Only SYSADMIN, APPADMIN, OWNER, ADMINISTRATOR, WRITER, READER, and USER roles inForumsRoleMapmay create forums.DuplicateUuidException- if the UUID of the forum already existsServiceException- if any system-level error occurs
-
setAdministratorGroup
Deprecated.Sets the group to which a user must belong to be a forums administrator. A forums administrator has additional privileges providing access to restricted functionality, such as viewing the deleted messages, etc.- Parameters:
groupId_- The id of the group to be set as the forums administrator group.- Throws:
NullPointerException- ifgroupId_is nullServiceException- if any system-level error occurs
-
updateForum
Deprecated.Update the properties of a discussion forum. The fieldsidandremoteIdare not changed.- Parameters:
f_- TheForumobject whose properties should be used to update the existing forum. Theidfield of the passed object should be set to the id of the forum to update. The existing forum's properties are overwritten with the corresponding values contained in the passed object.- Throws:
PrivilegeException- if the current user does not have sufficient privileges to update the forum. Only SYSADMIN, APPADMIN, OWNER, and ADMINISTRATOR roles inForumsRoleMapmay update forums.InvalidForumException- if the passed forum id is invalidServiceException- if any system-level error occurs
-
updateForums
@Write(K_FORUMS) void updateForums(Forum[] forums_) throws PrivilegeException, InvalidForumException Deprecated.Update the properties of multiple discussion forums. The fieldsidandremoteIdare not changed.- Parameters:
forums_- An array ofForumobjects containing the properties that should be used to update the corresponding exisitng forums. Theidfield of each object should be set to the id of the forum to update. Each existing forum's properties are overwritten with the corresponding values contained in the passed object.- Throws:
PrivilegeException- if the current user does not have sufficient privileges to update at least one of the forums. Only SYSADMIN, APPADMIN, OWNER, and ADMINISTRATOR roles inForumsRoleMapmay update forums.InvalidForumException- if any one of the forum ids is invalidServiceException- if any system-level error occurs
-
deleteForum
Deprecated.Delete a forum (and all of its threads).- Parameters:
forumId_- The local id of the forum to be deleted (ie theidfield of aForumobject).- Throws:
PrivilegeException- if the current user does not have sufficient privileges to delete the forum. Only SYSADMIN, APPADMIN, OWNER, and ADMINISTRATOR roles inForumsRoleMapmay delete forums.InvalidForumException- if the passed forum id is invalidServiceException- if any system-level error occurs
-
getForum
Deprecated.Get a forum.- Parameters:
id_- The local id of the forum to be retrieved (ie theidfield of aForumobject).- Returns:
- The desired forum.
- Throws:
PrivilegeException- if the current user does not have sufficient privileges to view this forum. Only SYSADMIN, APPADMIN, OWNER, ADMINISTRATOR, WRITER, and READER roles inForumsRoleMapmay view forums.InvalidForumException- if the passed forum id is invalidServiceException- if any system-level error occurs
-
getForums
@Deprecated @Read(K_FORUMS) Forum[] getForums(Long[] ids_) throws PrivilegeException, InvalidForumException Get multiple forums.- Parameters:
ids_- The local ids of the forums to be returned.- Returns:
- The desired forums.
- Throws:
PrivilegeException- if the current user does not have sufficient privileges to view any one of the forums. Only SYSADMIN, APPADMIN, OWNER, ADMINISTRATOR, WRITER, and READER roles inForumsRoleMapmay view forums.InvalidForumException- if any one of the forum ids is invalidServiceException- if any system-level error occurs
-
getForumIdsByRelated
Deprecated.Get the ids of the forums related to a given Appian Type object (an Appian Type is any type that has a corresponding TYPE_XXX constant defined inObjectTypeMapping).- Parameters:
related_- The identifier specifiying the object for which related forums are to be returned.- Returns:
- The ids of the forums that are related to the passed object.
- Throws:
ServiceException- if any system-level error occurs
-
deleteThread
@Write(K_FORUMS) void deleteThread(Long threadId_) throws PrivilegeException, InvalidThreadException Deprecated.Delete a thread (and all of its messages).- Parameters:
threadId_- The id of the thread to delete.- Throws:
PrivilegeException- if the user does not have sufficient privileges to delete the thread. Only SYSADMIN, APPADMIN, OWNER, and ADMINISTRATOR roles inForumsRoleMapmay delete threads.InvalidThreadException- if the passed thread id is invalidServiceException- if any system-level error occurs
-
getThread
@Read(K_FORUMS) DiscussionThread getThread(Long threadId_) throws PrivilegeException, InvalidThreadException Deprecated.Get a thread.- Parameters:
threadId_- The id of the thread to be returned.- Returns:
- The desired thread.
- Throws:
PrivilegeException- if the user does not have sufficient privileges to view this thread. Only SYSADMIN, APPADMIN, OWNER, ADMINISTRATOR, WRITER, and READER roles inForumsRoleMapmay view threads.InvalidThreadException- if the passed id is invalidServiceException- if any system-level error occurs
-
getThreads
@Deprecated @Read(K_FORUMS) DiscussionThread[] getThreads(Long[] threadIds_) throws PrivilegeException, InvalidThreadException Get multiple threads.- Parameters:
threadIds_- The ids of the threads to be returned.- Returns:
- The desired threads.
- Throws:
NullPointerException- if any one of the passed ids isnullPrivilegeException- if the user does not have sufficient privileges to view any of the threads. Only SYSADMIN, APPADMIN, OWNER, ADMINISTRATOR, WRITER, and READER roles inForumsRoleMapmay view threads.InvalidThreadException- if any of the threads is invalidServiceException- if any system-level error occurs
-
getThreadsForForum
@Deprecated @Read(K_FORUMS) DiscussionThread[] getThreadsForForum(Long forumId_, Integer sortProperty_, Integer sortOrder_, int startIndex_, int count_) throws InvalidForumException Deprecated.Get a set of threads from a forum.- Parameters:
forumId_- The local id of the forum from which to get the threads.sortProperty_- the property by which the results will be sorted. Use aSORT_PROPERTY_THREAD_XXXconstant.sortOrder_- the order in which to sort the results. This is one ofConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDINGstartIndex_- the index into the collection of total results at which to start. Negative numbers are treated as zeros.count_- the number of results to return. UseConstants.COUNT_ALLto return the entire collection, but this is STRONGLY discouraged.- Returns:
- The desired threads.
- Throws:
InvalidForumException- if the passed forum id is invalidServiceException- if any system-level error occurs
-
getThreadsForForumPaging
@Read(K_FORUMS) ResultPage getThreadsForForumPaging(Long forumId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws InvalidForumException Deprecated.Get all the threads in a given forum, paging.- Parameters:
forumId_- The id (local id) of the forum from which to get 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. UseConstants.COUNT_ALLto return all results fromstartIndex_to the end, but this is STRONGLY discouraged.sortProperty_- The property by which the results should be sorted. This should be one of theSORT_BY_XXXconstants defined inDiscussionThread.sortOrder_- The order in which to sort the results. This is eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING.- Returns:
- A
Resultpagecontaining an array ofDiscussionThreadobjects. - Throws:
InvalidForumException- if the passed forum id is invalidServiceException- if any system-level error occurs
-
moveThread
@Write(K_FORUMS) void moveThread(Long threadId_, Long toForumId_) throws PrivilegeException, InvalidThreadException, InvalidForumException Deprecated.Move a thread to a different forum.- Parameters:
threadId_- The id of the thread to move.toForumId_- The id of the forum to which to move the thread.- Throws:
PrivilegeException- if the current user does not have sufficient privileges to move the thread. Only SYSADMIN, APPADMIN, OWNER, and ADMINISTRATOR roles inForumsRoleMapmay move threads.InvalidThreadException- if the passed thread id is invalidInvalidForumException- if the passed forum id is invalidServiceException- if any system-level error occurs
-
addThreadResource
@Write(K_FORUMS) void addThreadResource(Long threadId_, Attachment resource_) throws PrivilegeException, InvalidThreadException Deprecated.Add an attachment to a thread.- Parameters:
threadId_- The id of the thread to which to add the attachment.resource_- The resource attachment to add. Theattachedfield of the object must be set. If the same attachment was already added by another user, the attachement will not be readded.- Throws:
PrivilegeException- if the current user does not have sufficient privileges to attach the resource to the thread. Only SYSADMIN, APPADMIN, OWNER, ADMINISTRATOR, and WRITER roles inForumsRoleMapmay add resources to threads.InvalidThreadException- if the passed thread id is invalidServiceException- if any system-level error occurs
-
addThreadResources
@Write(K_FORUMS) void addThreadResources(Long threadId_, Attachment[] resources_) throws PrivilegeException, InvalidThreadException Deprecated.Add multiple attachments to a thread.- Parameters:
threadId_- The id of the thread to which to add the attachments.resources_- The resource attachments to add. Theattachedfield of each object must be set. If the same attachment was already added by another user, the attachement will not be readded.- Throws:
PrivilegeException- if the current user does not have sufficient privileges to attach any one of the resources. Only SYSADMIN, APPADMIN, OWNER, ADMINISTRATOR, and WRITER roles inForumsRoleMapmay add resources to threads.InvalidThreadException- if the passed thread id is invalidServiceException- if any system-level error occurs
-
removeThreadResource
@Write(K_FORUMS) void removeThreadResource(Long threadId_, Attachment resource_) throws PrivilegeException, InvalidThreadException Deprecated.Remove an attachment from a thread.- Parameters:
threadId_- The id of the thread from which to remove the attachment.resource_- The resource attachment to remove. Theattachedfield of the object must be set.- Throws:
PrivilegeException- if the current user does not have sufficient privileges to remove the resource from the thread. Only SYSADMIN, APPADMIN, OWNER, and ADMINISTRATOR roles inForumsRoleMapmay remove resources from threads.InvalidThreadException- if the passed thread id is invalidServiceException- if any system-level error occurs
-
removeThreadResources
@Write(K_FORUMS) void removeThreadResources(Long threadId_, Attachment[] resources_) throws PrivilegeException, InvalidThreadException Deprecated.Remove multiple resources from a thread.- Parameters:
threadId_- The id of the thread from which to remove the attachments.resources_- The resource attachments to remove. Theattachedfield of each object must be set.- Throws:
PrivilegeException- if the current user does not have sufficient privileges to remove the resource. Only SYSADMIN, APPADMIN, OWNER, and ADMINISTRATOR roles inForumsRoleMapmay remove resources from threads.InvalidThreadException- if the passed thread id is invalidServiceException- if any system-level error occurs
-
subscribeToThread
@Write(K_FORUMS) void subscribeToThread(Long threadId_) throws PrivilegeException, InvalidThreadException Deprecated.Subscribe the current user to a thread.- Parameters:
threadId_- The id of the thread to subscribe to.- Throws:
PrivilegeException- if the current user does not have sufficient privileges to subscribe to the thread. Only SYSADMIN, APPADMIN, OWNER, ADMINISTRATOR, WRITER, and READER roles inForumsRoleMapmay subscribe to threads.InvalidThreadException- if the passed thread id is invalidServiceException- if any system-level error occurs
-
subscribeUsersToThread
@Deprecated @Write(K_FORUMS) void subscribeUsersToThread(Long threadId_, String[] users_) throws InvalidUserException, InvalidThreadException, PrivilegeException Deprecated.the combination ofinviteUsersToThread(java.lang.String[], java.lang.Long)andacceptThreadInvitation(java.lang.Long)is more secure, and should be used insteadSubscribe a set of users to a thread.- Parameters:
threadId_- The id of the thread to subscribe to.users_- The logins (usernames) of the users to subscribe to the thread.- Throws:
InvalidUserException- if any of the passed usernames is invalidInvalidThreadException- if the passed thread id is invalidPrivilegeException- if the current user does not have sufficient privileges to subscirbe the passed users to the thread. Only SYSADMIN, APPADMIN, OWNER, and ADMINISTRATOR roles inForumsRoleMapmay remove resources from threads.ServiceException- if any system-level error occurs
-
unsubscribeFromThread
@Write(K_FORUMS) void unsubscribeFromThread(Long threadId_) throws PrivilegeException, InvalidThreadException Deprecated.Unsubscribe the current user from a thread.- Parameters:
threadId_- The id of the thread to unsubscribe from.- Throws:
PrivilegeException- if the current user does not have sufficient privileges to unsubscribe from the thread. Only SYSADMIN, APPADMIN, OWNER, ADMINISTRATOR, WRITER, and READER roles inForumsRoleMapmay unsubscribe from threads.InvalidThreadException- if the passed thread id is invalidServiceException- if any system-level error occurs
-
isSubscribedToThread
Deprecated.Determine whether the current user is subscribed to a thread.- Parameters:
threadId_- The id of a thread.- Returns:
trueif the current user is subscribed to the passed, thread, andfalseotherwise- Throws:
ServiceException- if any system-level error occursInvalidThreadException- if the passed thread id is invalid
-
getSubscribersForThread
Deprecated.Get the usernames of the users subscribed to a thread.- Parameters:
threadId_- The id of a thread.- Returns:
- The usernames of the users subscribed to the thread.
- Throws:
InvalidThreadException- if the passed thread id is invalidServiceException- if any system-level error occurs
-
sponsor
Deprecated.Sponsor a thread (simply marks the thread as 'sponsored').- Parameters:
threadId_- The id of the thread to sponsor.- Throws:
PrivilegeException- if the current user does not have sufficient privileges to sponsor the thread. Only SYSADMIN, APPADMIN, OWNER, and ADMINISTRATOR roles inForumsRoleMapmay sponsor threads.InvalidThreadException- if the passed thread id is invalidServiceException- if any system-level error occurs
-
unsponsor
Deprecated.Unsponsor a thread.- Parameters:
threadId_- The id of the thread to unsponsor.- Throws:
PrivilegeException- if the current user does not have sufficient privileges to unsponsor the thread. Only SYSADMIN, APPADMIN, OWNER, and ADMINISTRATOR roles inForumsRoleMapmay unsponsor threads.InvalidThreadException- if the passed thread id is invalidServiceException- if any system-level error occurs
-
sponsorForMessage
@Write(K_FORUMS) void sponsorForMessage(Long messageId_) throws PrivilegeException, InvalidMessageException Deprecated.Sponsor a thread through a thread message (sponsors the thread that contains the message whose id is passed).- Parameters:
messageId_- The id of a message in the thread that will be sponsored.- Throws:
PrivilegeException- if the current user does not have sufficient privileges to sponsor the thread. Only SYSADMIN, APPADMIN, OWNER, and ADMINISTRATOR roles inForumsRoleMapmay sponsor threads.InvalidMessageException- if the passed message id is invalidServiceException- if any system-level error occurs
-
unsponsorForMessage
@Write(K_FORUMS) void unsponsorForMessage(Long messageId_) throws PrivilegeException, InvalidMessageException Deprecated.Unsponsor a thread through a thread message (unsponsors the thread that contains the message whose id is passed).- Parameters:
messageId_- The id of a message in the thread to unsponsor.- Throws:
PrivilegeException- if the current user does not have sufficient privileges to unsponsor the thread. Only SYSADMIN, APPADMIN, OWNER, and ADMINISTRATOR roles inForumsRoleMapmay unsponsor threads.InvalidMessageException- if the passed message id is invalidServiceException- if any system-level error occurs
-
createMessage
@Write(K_FORUMS) Message createMessage(Long forumId_, Message m_) throws InvalidForumException, InvalidMessageException, IllegalArgumentException, PrivilegeException Deprecated.Create a message. NOTE: To physically store the message to disk, this call must be followed by a call toDiscussionBodyService.createMessage(com.appiancorp.suiteapi.forums.Message), using thefilenamereturned by this method.- Parameters:
forumId_- The id of the forum in which to create the new message.m_- TheMessageobject from which to create the message. The minimum required fields that must be set in the object are:threadId,parentId,subject, andanonymousAuthor. When creating a new thread, thethreadIdandparentIdfields should be set to 0 or null. Theid,remoteId, andfilenamewill be assigned by the server.- Returns:
- The new message, with the
id,remoteId, andfilenamefields properly populated. - Throws:
PrivilegeException- if the current user does not have sufficient privileges to create the message. Only SYSADMIN, APPADMIN, OWNER, ADMINISTRATOR, and WRITER roles inForumsRoleMapmay create messages.InvalidMessageException- if theparentIdof the passed message is invalidIllegalArgumentException- if the user attempts to post the message anonymously but the Forum does not accept anonymous postsInvalidForumException- if the passed forum id is invalidServiceException- if any system-level error occursNullPointerException- if them_message is null
-
updateMessage
@Write(K_FORUMS) String updateMessage(Message m_) throws PrivilegeException, IllegalArgumentException, InvalidMessageException Deprecated.Update the properties of a message. Theid,remoteId, andfilenamefields are not changed.- Parameters:
m_- TheMessageobject whose properties should be used to update the existing message. Theidfield of the passed object should be set to the id of the message to update. The existing message's properties are overwritten with the corresponding values contained in the passed object (with the exception ofid,remoteId, andfilenamewhich are not changed).- Returns:
- The
filenamefor the body of the message. - Throws:
PrivilegeException- if the current user does not have sufficient privileges to update the message. Only SYSADMIN, APPADMIN, OWNER, and ADMINISTRATOR roles inForumsRoleMapmay update messages.IllegalArgumentException- if the user attempts to post the message anonymously but the Forum does not accept anonymous postsInvalidMessageException- if no message exists with the same id as the message passed inServiceException- if any system-level error occurs
-
updateMessages
@Write(K_FORUMS) String[] updateMessages(Message[] m_) throws PrivilegeException, InvalidMessageException Deprecated.Update the properties of multiple messages. Theid,remoteId, andfilenamefields are not changed.- Parameters:
m_- An array ofMessageobjects containing the properties that should be used to update the corresponding existing messages. Theidfield of each passed object should be set to the id of the message to update. Each existing message's properties are overwritten with the corresponding values contained in the passed object (with the exception ofid,remoteId, andfilenamewhich are not changed).- Returns:
- An array of filenames for the message bodies.
- Throws:
PrivilegeException- if the user does not have sufficient privileges to update at least one of the messages. Only SYSADMIN, APPADMIN, OWNER, and ADMINISTRATOR roles inForumsRoleMapmay uupdate messages.InvalidMessageException- if no message exists with the same id as the message passed inServiceException- if any system-level error occurs
-
getMessage
@Read(K_FORUMS) Message getMessage(Long messageId_) throws PrivilegeException, InvalidMessageException Deprecated.Get a message.- Parameters:
messageId_- The id of the message to be returned.- Returns:
- The desired message.
- Throws:
PrivilegeException- if the current user does not have sufficient privileges to view this message. Only SYSADMIN, APPADMIN, OWNER, ADMINISTRATOR, WRITER, and READER roles inForumsRoleMapmay view messages.InvalidMessageException- if the message does not exist or has been deletedServiceException- if any system-level error occurs
-
getMessages
@Deprecated @Read(K_FORUMS) Message[] getMessages(Long[] messageIds_) throws PrivilegeException, InvalidMessageException Deprecated.Get multiple messages.- Parameters:
messageIds_- The ids of the messages to be returned.- Returns:
- The desired messages.
- Throws:
NullPointerException- if the passedmessageIdsarray contains anullelementPrivilegeException- if the current user does not have sufficient privileges to view any one of the messages. Only SYSADMIN, APPADMIN, OWNER, ADMINISTRATOR, WRITER, and READER roles inForumsRoleMapmay view messages.InvalidMessageException- if any one of the messages does not exist or has been deletedServiceException- if any system-level error occurs
-
getMessagesForThread
@Deprecated @Read(K_FORUMS) Message[] getMessagesForThread(Long threadId_, Integer sortProperty_, Integer sortOrder_, int startIndex_, int count_) throws InvalidThreadException Deprecated.Get a set of messages in a thread.- Parameters:
threadId_- The local id of the thread from which to get the messages.sortProperty_- The column by which to sort. Use aSORT_PROPERTY_MESSAGEconstant.sortOrder_- the order in which to sort the results. This is one ofConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDINGstartIndex_- the index into the collection of total results at which to start. Negative numbers are treated as zeros.count_- the number of results to return. UseConstants.COUNT_ALLto return the entire collection, but this is STRONGLY discouraged.- Returns:
- The desired messages.
- Throws:
InvalidThreadException- of the thread is invalidServiceException- if any system-level error occurs
-
addRating
@Write(K_FORUMS) void addRating(Long messageId_, int rating_) throws InvalidMessageException, PrivilegeException Deprecated.Average a new individual rating into the message's overall average rating.- Parameters:
messageId_- The id of the message being rated.rating_- The new individual rating.- Throws:
PrivilegeException- if the current user does not have sufficient privileges to add the rating. Only SYSADMIN, APPADMIN, OWNER, ADMINISTRATOR, WRITER, and READER roles inForumsRoleMapmay add ratings to messages.InvalidMessageException- if the passed message id is invalidServiceException- if any system-level error occurs
-
setRating
@Write(K_FORUMS) void setRating(Long messageId_, double averageRating_, int ratingCount_) throws InvalidMessageException, PrivilegeException Deprecated.Set the average rating for a message.- Parameters:
messageId_- The id of a message.averageRating_- The new average rating.ratingCount_- The new number of individual ratings that were used to determine the passed average rating.- Throws:
PrivilegeException- if the current user does not have sufficient privileges to set the rating. Only SYSADMIN, APPADMIN, OWNER, ADMINISTRATOR, WRITER, and READER roles inForumsRoleMapmay set ratings of messages.InvalidMessageException- if the message is invalidServiceException- if any system-level error occurs- See Also:
-
deleteMessageAndDescendants
@Write(K_FORUMS) void deleteMessageAndDescendants(Long messageId_) throws InvalidMessageException, PrivilegeException Deprecated.Delete a message and all its descendants.- Parameters:
messageId_- The id of a message.- Throws:
PrivilegeException- if the current user does not have sufficient privileges to delete the message. Only SYSADMIN, APPADMIN, OWNER, and ADMINISTRATOR roles inForumsRoleMapmay delete messages.InvalidMessageException- if the passed message id is invalidServiceException- if any system-level error occurs
-
deleteMessage
@Write(K_FORUMS) void deleteMessage(Long messageId_) throws InvalidMessageException, PrivilegeException Deprecated.Delete a given message (connects any children of the given message to the parent of the message).- Parameters:
messageId_- The id of the message to delete.- Throws:
PrivilegeException- if the current user does not have sufficient privileges to delete the message. Only SYSADMIN, APPADMIN, OWNER, and ADMINISTRATOR roles inForumsRoleMapmay delete messages.InvalidMessageException- if the passed message id is invalidServiceException- if any system-level error occurs
-
setRoleMapForForum
@Write(K_FORUMS) void setRoleMapForForum(Long forumId_, ForumsRoleMap r_) throws InvalidForumException, PrivilegeException Deprecated.Set the rolemap of a forum. Users and Groups can be either forum participants or administrators.- Parameters:
forumId_- The id of a forumr_- The role map to set.- Throws:
InvalidForumException- if the passed forum id is invalidServiceException- if any system-level error occursPrivilegeException
-
getRoleMapForForum
Deprecated.Get the rolemap of a forum. Users and Groups can be either forum participants or administrators.- Parameters:
forumId_- The id of a forum.- Returns:
- The role map for the given forum.
- Throws:
InvalidForumException- if the passed forum id is invalidServiceException- if any system-level error occurs
-
getRoleMapForThread
Deprecated.Get the rolemap of a thread; currently a thread always inherits the rolemap from its parent forum.- Parameters:
threadId_- The id of a thread.- Returns:
- The role map for the given thread.
- Throws:
InvalidThreadException- if the passed thread id is invalidServiceException- if any system-level error occurs
-
activateUserSession
@Deprecated @Write(K_FORUMS) boolean[] activateUserSession(Long[] memberGroups_, Long[] adminGroups_, Long userTypeId_) throws InvalidUserException Deprecated.Initializes the group permissions for the current user's session. This method should be called every time the group membership role of the current user is changed (eg: from member to admin, etc), or when a new group is created, or when the current user was newly created.- Parameters:
memberGroups_- Groups of which the current user is a member.adminGroups_- Groups of which the current user is an admin.userTypeId_- this is one ofUserProfile.USER_TYPE_BASICorUserProfile.USER_TYPE_SYS_ADMIN- Returns:
- A
booleanarray of three system permissions. Element [0] of the returned array indicates whether the current user cancreateForum; element [1] of the array indicates whether the current user cangetAllDeletedMessagesPaging; and [2] indicates whether the current user canimportMessages. See the forums security map description in the overall service description. - Throws:
InvalidUserException- if the user calling this method is invalidServiceException- if any system-level error occurs
-
getUsersToNotify
Deprecated.Get the usernames of the users who should receive notifications when updates are made to a given thread. This set of users is the union of the users subscribed to the thread and the users subscribed to the parent forum of the thread.- Parameters:
threadId_- The id of a thread.- Returns:
- The usernames of the users to notify of updates to the thread.
- Throws:
InvalidThreadException- if the passed thread id is invalidServiceException- if any system-level error occurs
-
getUsersToNotifyForForum
Deprecated.Get the usernames of the users who should receive notification when updates are made to a given forum or any of its threads. This is the list of users that are subscribed to the forum.- Parameters:
forumId_- The id of a forum.- Returns:
- The usernames of users to notify of updates to the forum or any of its threads.
- Throws:
InvalidForumException- if the passed forum id is invalidServiceException- if any system-level error occurs
-
isSubscribedToForum
Deprecated.Get the current user's subscription status for a given forum.- Parameters:
forumId_- The id of a forum.- Returns:
trueif the current user is subscribed to the forum, andfalseotherwise- Throws:
InvalidForumException- if the passed forum id is invalidServiceException- if any system-level error occurs
-
subscribeToForum
@Write(K_FORUMS) void subscribeToForum(Long forumId_) throws InvalidForumException, PrivilegeException Deprecated.Subscribe the current user to a given forum.- Parameters:
forumId_- The id of the forum to subscribe to.- Throws:
InvalidForumException- if the passed forum id is invalidPrivilegeException- if the current user does not have sufficient privileges to subscribe to the forum. Only SYSADMIN, APPADMIN, OWNER, ADMINISTRATOR, READER, and WRITER roles inForumsRoleMapmay subscribe to forums.ServiceException- if any system-level error occurs
-
unsubscribeFromForum
@Write(K_FORUMS) void unsubscribeFromForum(Long forumId_) throws InvalidForumException, PrivilegeException Deprecated.Unsubscribes the current user from a given forum.- Parameters:
forumId_- The id of the forum to unsubscribe from.- Throws:
InvalidForumException- if the passed forum id is invalidPrivilegeException- if the current user does not have sufficient privileges to unsubscribe from the forum. Only SYSADMIN, APPADMIN, OWNER, ADMINISTRATOR, READER, and WRITER roles inForumsRoleMapmay unsubscribe from forums.ServiceException- if any system-level error occurs
-
enableForumAnonymousPosting
@Write(K_FORUMS) void enableForumAnonymousPosting(Long forumId_) throws PrivilegeException, InvalidForumException Deprecated.Allow anonymous posting for a given forum- Parameters:
forumId_- The id of a forum.- Throws:
PrivilegeException- if the current user does not have sufficient privileges to perform this operation. Only SYSADMIN, APPADMIN, OWNER, and ADMINISTRATOR roles inForumsRoleMapmay enable anonymous posting on forums.InvalidForumException- if the passed forum id is invalidServiceException- if any system-level error occurs
-
disableForumAnonymousPosting
@Write(K_FORUMS) void disableForumAnonymousPosting(Long forumId_) throws PrivilegeException, InvalidForumException Deprecated.Disallows anonymous posting for a given forum (can only be set by a forums administrator or a user having equivalent/higher privileges).- Parameters:
forumId_- The id of a forum.- Throws:
PrivilegeException- if the current user does not have sufficient privileges to perform this operation. Only SYSADMIN, APPADMIN, OWNER, and ADMINISTRATOR roles inForumsRoleMapmay disable anonymous posting on forums.InvalidForumException- if the passed forum id is invalidServiceException- if any system-level error occurs
-
setForumPublic
@Write(K_FORUMS) void setForumPublic(Long forumId_) throws PrivilegeException, InvalidForumException Deprecated.Set a forum to be public, ie allow all users to see the forum and participate.- Parameters:
forumId_- The id of a forum.- Throws:
PrivilegeException- if the current user does not have sufficient privileges to set forums as public. Only SYSADMIN, APPADMIN, OWNER, and ADMINISTRATOR roles inForumsRoleMapmay set forums as public.InvalidForumException- if the passed forum id is invalidServiceException- if any system-level error occurs
-
setForumPrivate
@Write(K_FORUMS) void setForumPrivate(Long forumId_) throws PrivilegeException, InvalidForumException Deprecated.Set a forum to be private, ie allow only users/groups that are participants and administrators to see the forum and participate.- Parameters:
forumId_- The id of a forum.- Throws:
PrivilegeException- if the current user does not have sufficient privileges to set forums as private. Only SYSADMIN, APPADMIN, OWNER, and ADMINISTRATOR roles inForumsRoleMapmay set forums as private.InvalidForumException- if the passed forum id is invalidServiceException- if any system-level error occurs
-
getForumsPaging
@Read(K_FORUMS) ResultPage getForumsPaging(Long[] forumIds_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws PrivilegeException, InvalidForumException Deprecated.Gets multiple forums, paging.- Parameters:
forumIds_- The ids (local ids) of the forums to retrieve.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. UseConstants.COUNT_ALLto return all results fromstartIndex_to the end, but this is STRONGLY discouraged.sortProperty_- The property by which the results should be sorted. This should be one of theSORT_BY_XXXconstants defined inForum.sortOrder_- The order in which to sort the results. This is eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING.- Returns:
- A
Resultpagecontaining an array ofForumobjects. - Throws:
PrivilegeException- if the current user does not have sufficient privileges to view any of the forums. Only SYSADMIN, APPADMIN, OWNER, ADMINISTRATOR, WRITER, and READER roles inForumsRoleMapmay view forums.InvalidForumException- if any one of the passed forum ids is invalidServiceException- if any system-level error occurs
-
findForumsPaging
@Read(K_FORUMS) ResultPage findForumsPaging(String nameSearchString_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.Find forums by name (gets the forums whose name matches a given query string).- Parameters:
nameSearchString_- The query string to use to search for forums by name. The query string is interpreted as a regular expression but ignoring case.nullis a wildcard, meaning any value of the name field.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. UseConstants.COUNT_ALLto return all results fromstartIndex_to the end, but this is STRONGLY discouraged.sortProperty_- The property by which the results should be sorted. This should be one of theSORT_BY_XXXconstants defined inForum.sortOrder_- The order in which to sort the results. This is eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING.- Returns:
- A
Resultpagecontaining an array ofForumobjects. - Throws:
ServiceException- if any system-level error occurs
-
getAllForumsPaging
@Read(K_FORUMS) ResultPage getAllForumsPaging(int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.Get all forums, paging.- 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. UseConstants.COUNT_ALLto return all results fromstartIndex_to the end, but this is STRONGLY discouraged.sortProperty_- The property by which the results should be sorted. This should be one of theSORT_BY_XXXconstants defined inForum.sortOrder_- The order in which to sort the results. This is eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING.- Returns:
- A
Resultpagecontaining an array ofForumobjects. - Throws:
ServiceException- if any system-level error occurs
-
getAllForumSummariesPaging
@Read(K_FORUMS) ResultPage getAllForumSummariesPaging(int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.Get the summaries of all forums, paging.- 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. UseConstants.COUNT_ALLto return all results fromstartIndex_to the end, but this is STRONGLY discouraged.sortProperty_- The property by which the results should be sorted. This should be one of theSORT_BY_XXXconstants defined inForumSummary.sortOrder_- The order in which to sort the results. This is eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING.- Returns:
- A
Resultpagecontaining an array ofForumSummaryobjects. - Throws:
ServiceException- if any system-level error occurs
-
getThreadsPaging
@Read(K_FORUMS) ResultPage getThreadsPaging(Long[] threadIds_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws PrivilegeException, InvalidThreadException Deprecated.Get multiple threads, paging.- Parameters:
threadIds_- The ids of the threads to retrieve.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. UseConstants.COUNT_ALLto return all results fromstartIndex_to the end, but this is STRONGLY discouraged.sortProperty_- The property by which the results should be sorted. This should be one of theSORT_BY_XXXconstants defined inDiscussionThread.sortOrder_- The order in which to sort the results. This is eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING.- Returns:
- A
Resultpagecontaining an array ofDiscussionThreadobjects. - Throws:
PrivilegeException- if the current user does not have sufficient privileges to view any of the threads. Only SYSADMIN, APPADMIN, OWNER, ADMINISTRATOR, WRITER, and READER roles inForumsRoleMapmay view threads.InvalidThreadException- if any one of the passed thread ids is invalidServiceException- if any system-level error occurs
-
getMessagesPaging
@Read(K_FORUMS) ResultPage getMessagesPaging(Long[] messageIds_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws PrivilegeException, InvalidMessageException Deprecated.Get multiple messages, paging.- Parameters:
messageIds_- The ids of the messages to retrieve.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. UseConstants.COUNT_ALLto return all results fromstartIndex_to the end, but this is STRONGLY discouraged.sortProperty_- The property by which the results should be sorted. This should be one of theSORT_BY_XXXconstants defined inMessage.sortOrder_- The order in which to sort the results. This is eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING.- Returns:
- A
Resultpagecontaining an array ofMessageobjects. - Throws:
PrivilegeException- if the current user does not have sufficient privileges to view any of the messages. Only SYSADMIN, APPADMIN, OWNER, ADMINISTRATOR, WRITER, and READER roles inForumsRoleMapmay view messages.InvalidMessageException- if any one of the passed message ids is invalidServiceException- if any system-level error occurs
-
getForumIdsByRelatedPaging
@Read(K_FORUMS) ResultPage getForumIdsByRelatedPaging(LocalObject related_, int startIndex_, int batchSize_, Integer sortOrder_) Deprecated.Get the ids of the forums related to a given Appian Type object (an Appian Type is any type that has a corresponding TYPE_XXX constant defined inObjectTypeMapping).- Parameters:
related_- The identifier specifiying the object for which related forums are to be returned (thetype, and eitheridorstringIdfileds of the passed object must be set).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. UseConstants.COUNT_ALLto return all results fromstartIndex_to the end, but this is STRONGLY discouraged.sortOrder_- The order in which to sort the results. This is eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING.- Returns:
- A
Resultpagecontaining an array ofLongobjects. - Throws:
ServiceException- if any system-level error occurs
-
getMessagesForThreadPaging
@Read(K_FORUMS) ResultPage getMessagesForThreadPaging(Long threadId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws InvalidThreadException Deprecated.Get all the messages in a given thread, paging.- Parameters:
threadId_- The thread IDstartIndex_- 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. UseConstants.COUNT_ALLto return all results fromstartIndex_to the end, but this is STRONGLY discouraged.sortProperty_- The property by which the results should be sorted. This should be one of theSORT_BY_XXXconstants defined inMessage.sortOrder_- The order in which to sort the results. This is eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING.- Returns:
- A
Resultpagecontaining an array ofMessageobjects. - Throws:
InvalidThreadException- if the passed thread id is invalidServiceException- if any system-level error occurs
-
getForumSummariesPaging
@Read(K_FORUMS) ResultPage getForumSummariesPaging(Long[] forumIds_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws PrivilegeException, InvalidForumException Deprecated.Get the summaries of multiple forums, paging.- Parameters:
forumIds_- The ids of the forums to retrieve.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. UseConstants.COUNT_ALLto return all results fromstartIndex_to the end, but this is STRONGLY discouraged.sortProperty_- The property by which the results should be sorted. This should be one of theSORT_BY_XXXconstants defined inForumSummary.sortOrder_- The order in which to sort the results. This is eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING.- Returns:
- A
Resultpagecontaining an array ofForumSummaryobjects. - Throws:
PrivilegeException- if the current user does not have sufficient privileges to view any of the forums. Only SYSADMIN, APPADMIN, OWNER, ADMINISTRATOR, WRITER, and READER roles inForumsRoleMapmay view forums.InvalidForumException- if any one of the passed forum ids is invalidServiceException- if any system-level error occurs
-
getValidForumSummariesPaging
@Read(K_FORUMS) ResultPage getValidForumSummariesPaging(Long[] forumIds_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.Get the summaries of valid multiple forums, paging. This function will return every forum that is valid and visible to the user.- Parameters:
forumIds_- The ids of the forums to retrieve.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. UseConstants.COUNT_ALLto return all results fromstartIndex_to the end, but this is STRONGLY discouraged.sortProperty_- The property by which the results should be sorted. This should be one of theSORT_BY_XXXconstants defined inForumSummary.sortOrder_- The order in which to sort the results. This is eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING.- Returns:
- A
Resultpagecontaining an array ofForumSummaryobjects.
-
getThreadSummariesPaging
@Read(K_FORUMS) ResultPage getThreadSummariesPaging(Long[] threadIds_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws PrivilegeException, InvalidThreadException Deprecated.Get the summaries of multiple threads, paging.- Parameters:
threadIds_- The ids of the threads to retrieve.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. UseConstants.COUNT_ALLto return all results fromstartIndex_to the end, but this is STRONGLY discouraged.sortProperty_- The property by which the results should be sorted. This should be one of theSORT_BY_XXXconstants defined inThreadSummary.sortOrder_- The order in which to sort the results. This is eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING.- Returns:
- A
Resultpagecontaining an array ofThreadSummaryobjects. - Throws:
PrivilegeException- if the current user does not have sufficient privileges to perform this operation. Only SYSADMIN, APPADMIN, OWNER, ADMINISTRATOR, WRITER, and READER roles inForumsRoleMapmay get thread summaries.InvalidThreadException- if any one of the passed thread ids is invalidServiceException- if any system-level error occurs
-
getSponsoredThreadSummariesPaging
@Read(K_FORUMS) ResultPage getSponsoredThreadSummariesPaging(Long forumId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws PrivilegeException, InvalidForumException Deprecated.Get the summaries of all the sponsored threads in a forum, paging.- Parameters:
forumId_- The id of a forum.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. UseConstants.COUNT_ALLto return all results fromstartIndex_to the end, but this is STRONGLY discouraged.sortProperty_- The property by which the results should be sorted. This should be one of theSORT_BY_XXXconstants defined inThreadSummary.sortOrder_- The order in which to sort the results. This is eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING.- Returns:
- A
Resultpagecontaining an array ofThreadSummaryobjects. - Throws:
PrivilegeException- if the current user does not have sufficient privileges to sponsor threads. Only SYSADMIN, APPADMIN, OWNER, and ADMINISTRATOR roles inForumsRoleMapmay sponsor threads.InvalidForumException- if the passed forum id is invalidServiceException- if any system-level error occurs
-
getSponsoredThreadSummariesPaging
@Read(K_FORUMS) ResultPage getSponsoredThreadSummariesPaging(Long[] forumIds_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws PrivilegeException, InvalidForumException Deprecated.Get the summaries of all the sponsored threads in multiple forums, paging.- Parameters:
forumIds_- The ids of the forums.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. UseConstants.COUNT_ALLto return all results fromstartIndex_to the end, but this is STRONGLY discouraged.sortProperty_- The property by which the results should be sorted. This should be one of theSORT_BY_XXXconstants defined inThreadSummary.sortOrder_- The order in which to sort the results. This is eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING.- Returns:
- A
Resultpagecontaining an array ofThreadSummaryobjects. - Throws:
PrivilegeException- if the current user does not have sufficient privileges to sponsor threads in any of the forums. Only SYSADMIN, APPADMIN, OWNER, and ADMINISTRATOR roles inForumsRoleMapmay sponsor threads.InvalidForumException- if any one of the passed forum ids is invalidServiceException- if any system-level error occurs
-
getThreadedMessagesPaging
@Read(K_FORUMS) ResultPage getThreadedMessagesPaging(Long forumId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws InvalidForumException Deprecated.Get all the messages in a forum asThreadedMessageobjects.- Parameters:
forumId_- The id of a forum.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. UseConstants.COUNT_ALLto return all results fromstartIndex_to the end, but this is STRONGLY discouraged.sortProperty_- The property by which the results should be sorted. This should be one of theSORT_BY_XXXconstants defined inThreadedMessage.sortOrder_- The order in which to sort the results. This is eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING.- Returns:
- A
Resultpagecontaining an array ofThreadedMessageobjects. - Throws:
InvalidForumException- if the passed forum id is invalidServiceException- if any system-level error occurs
-
getThreadSummariesForForumPaging
@Read(K_FORUMS) ResultPage getThreadSummariesForForumPaging(Long forumId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws PrivilegeException, InvalidForumException Deprecated.Get the summaries of all the threads in a forum, paging.- Parameters:
forumId_- The id of a forum.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. UseConstants.COUNT_ALLto return all results fromstartIndex_to the end, but this is STRONGLY discouraged.sortProperty_- The property by which the results should be sorted. This should be one of theSORT_BY_XXXconstants defined inThreadSummary.sortOrder_- The order in which to sort the results. This is eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING.- Returns:
- A
Resultpagecontaining an array ofThreadSummaryobjects. - Throws:
PrivilegeException- if the current user does not have sufficient privileges to view any of the threads. Only SYSADMIN, APPADMIN, OWNER, ADMINISTRATOR, WRITER, and READER roles inForumsRoleMapmay view threads.InvalidForumException- if the passed forum id is invalidServiceException- if any system-level error occurs
-
addActorsToRolesInForums
@Write(K_FORUMS) void addActorsToRolesInForums(Long forumId_, String[] usernames_, Long[] groupIds_, String role_) throws InvalidForumException Deprecated.Add users/groups to a given role in a forum.- Parameters:
forumId_- The id of a forum.usernames_- The users to add to the role.groupIds_- The groups to add to the role.role_- The role, which should be one of theROLE_XXXconstants defined inForumsRoleMap.- Throws:
InvalidForumException- if the passed forum id is invalidServiceException- if any system-level error occurs
-
allowedAnonymousPosting
Deprecated.Returns whether anonymous posting is allowed for a given forum.- Parameters:
forumId_- The id of a forum.- Returns:
trueif anonymous posting is allowed in the forum, andfalseotherwise- Throws:
InvalidForumException- if the passed forum id is invalidServiceException- if any system-level error occurs
-
getAllDeletedMessagesPaging
@Read(K_FORUMS) ResultPage getAllDeletedMessagesPaging(int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws PrivilegeException Deprecated.Get all the messages that have been deleted, paging.- 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. UseConstants.COUNT_ALLto return all results fromstartIndex_to the end, but this is STRONGLY discouraged.sortProperty_- The property by which the results should be sorted. This should be one of theSORT_BY_XXXconstants defined inMessage.sortOrder_- The order in which to sort the results. This is eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING.- Returns:
- A
Resultpagecontaining an array ofMessageobjects. - Throws:
PrivilegeException- if the current user does not have sufficient privileges to view deleted messages. Only SYSADMIN and APPADMIN roles inForumsRoleMapmay view deleted messages.ServiceException- if any system-level error occurs
-
getPermissionsForMessageIdsForSessionUser
Deprecated.Get the permissions that the current user has for the given messages.- Parameters:
messageIds_- The ids of messages.- Returns:
- An array of
ints, each of which represents the current user's permission level for the corresponding message. This is one of theMESSAGE_PERMISSION_XXXconstants defined by this class. - Throws:
ServiceException- if any system-level error occurs
-
getPermissionsForMessageIdsForUser
Deprecated.Get the permissions that a given user has for the given messages.- Parameters:
messageIds_- The ids of messages.username_- The username (ie login) of a user. If the username is invalid, the method will execute as if for an anonymous user.- Returns:
- An array of
ints, each of which represents the passed user's permission level for the corresponding message. This is one of theMESSAGE_PERMISSION_XXXconstants defined by this class. - Throws:
ServiceException- if any system-level error occurs
-
getSubscribersForForum
Deprecated.Returns the usernames of the users subscribed to a given forum.- Parameters:
forumId_- The id of the forum whose subscribers should be retrieved.- Returns:
- The usernames of the forum subscribers.
- Throws:
InvalidForumException- if the passed forum id is invalidServiceException- if any system-level error occurs
-
isForumPublic
Deprecated.Returns whether a forum is public.- Parameters:
forumId_- The id of a forum.- Returns:
trueif the given forum is public, andfalseotherwise- Throws:
InvalidForumException- if the passed forum id is invalidServiceException- if any system-level error occurs
-
notifyUserCreation
Deprecated.done automatically by UserService.createUserNotifies this service that a new user has been created. This call is used when a user has has been created in the Personalization server, but has not logged in to forums yet (ieactivateUserSessionhas not been called) and the administrator wants to add the user to a rolemap, etc. In that case, the Forums server will not know the user exists unless this call is made first.- Parameters:
username_- The username (ie login) of the new user.- Throws:
ServiceException- if any system-level error occurs
-
notifyUsersCreation
Deprecated.Notifies this service that new users have been created (seenotifyUserCreation(java.lang.String)).- Parameters:
usernames_- The usernames (ie logins) of the new users.- Throws:
ServiceException- if any system-level error occurs
-
getSubscribedThreadsPaging
@Read(K_FORUMS) ResultPage getSubscribedThreadsPaging(int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.Get all the threads to which the current user is subscribed, paging.- 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. UseConstants.COUNT_ALLto return all results fromstartIndex_to the end, but this is STRONGLY discouraged.sortProperty_- The property by which the results should be sorted. This should be one of theSORT_BY_XXXconstants defined inDiscussionThread.sortOrder_- The order in which to sort the results. This is eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING.- Returns:
- A
Resultpagecontaining an array ofDiscussionThreadobjects. - Throws:
ServiceException- if any system-level error occurs
-
getSubscribedForumsPaging
@Read(K_FORUMS) ResultPage getSubscribedForumsPaging(int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.Get all the forums to which the current user is subscribed, paging.- 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. UseConstants.COUNT_ALLto return all results fromstartIndex_to the end, but this is STRONGLY discouraged.sortProperty_- The property by which the results should be sorted. This should be one of theSORT_BY_XXXconstants defined inForum.sortOrder_- The order in which to sort the results. This is eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING.- Returns:
- A
Resultpagecontaining an array ofForumobjects. - Throws:
ServiceException- if any system-level error occurs
-
getChildrenForMessagePaging
@Read(K_FORUMS) ResultPage getChildrenForMessagePaging(Long messageId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws InvalidMessageException, PrivilegeException Deprecated.Get all the child messages (ie replies) of a given message, paging.- Parameters:
messageId_- The id of a message.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. UseConstants.COUNT_ALLto return all results fromstartIndex_to the end, but this is STRONGLY discouraged.sortProperty_- The property by which the results should be sorted. This should be one of theSORT_BY_XXXconstants defined inMessage.sortOrder_- The order in which to sort the results. This is eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING.- Returns:
- A
Resultpagecontaining an array ofMessageobjects. - Throws:
InvalidMessageException- if the passed message id is invalidPrivilegeException- if the current user does not have sufficient permissios to view messages. Only SYSADMIN, APPADMIN, OWNER, ADMINISTRATOR, WRITER, and READER roles inForumsRoleMapmay view messages.ServiceException- if any system-level error occurs
-
getApplicationName
Deprecated.Gets the name of the application on which this service is running.- Returns:
- the name of the application
- Throws:
ServiceException- if any system-level error occurs
-
getApplicationPermissions
Deprecated.Returns boolean[3] of system permissions which is set in session.- Returns:
- A
booleanarray of three system permissions. Element [0] of the returned array indicates whether the current user cancreateForum; element [1] of the array indicates whether the current user cangetAllDeletedMessagesPaging; and [2] indicates whether the current user canimportMessages. See the forums security map description in the overall service description.
-
getWorkspace
Deprecated.Gets the current memory profile for the workspace.- Returns:
- array of Strings of length 4 describing memory usage:
- [0]Used - Memory Used by the Server so far for storage
- [1]Allocated - Memory allocated for use. Often if a large data item was allocated by a server and subsequently freed, this value will be large compared to "Used". If nearly all memory allocated is in use, this value will be close to (but always higher than) "Used"
- [2]Mapped - is the space used by memory-mapped files
- [3]Available - is the total available memory for the Server process
- Throws:
ServiceException- if any system-level error occurs
-
createMessages
@Write(K_FORUMS) Message[] createMessages(Long[] forumIds_, Message[] msgs_) throws InvalidForumException, InvalidMessageException, IllegalArgumentException, PrivilegeException Deprecated.Create multiple messages, one per forum. NOTE: To physically store the messages to disk, this call must be followed by a call toDiscussionBodyService.createMessages(com.appiancorp.suiteapi.forums.Message[]), using thefilenames returned by this method.- Parameters:
forumIds_- The ids of the forums in which to create the new messages.msgs_- TheMessageobjects from which to create the messages. The minimum required fields that must be set in each object are:threadId,parentId,subject, andanonymousAuthor. When creating a new thread, thethreadIdandparentIdfields should be set to0. Theid,remoteId, andfilenamefields will be assigned by the server.- Returns:
- The new messages, with the
id,remoteId, andfilenamefields properly populated. - Throws:
InvalidForumException- if any one of the passed forum ids is invalidInvalidMessageException- if theparentIdof any one of the passed messages does not existIllegalArgumentException- if theforumIds_array is not the same length as themsgs_arrayPrivilegeException- if the current user does not have sufficient privileges to create messages. Only SYSADMIN, APPADMIN, OWNER, ADMINISTRATOR, and WRITER roles inForumsRoleMapmay create messages.ServiceException- if any system-level error occursNullPointerException- if themsgs_array or one or more elements in the the array is null.
-
createForums
@Write(K_FORUMS) Long[] createForums(Forum[] forums_) throws PrivilegeException, DuplicateUuidException Deprecated.Create multiple discussion forums. Forums contain threads which contain messages.- Parameters:
forums_- The forums to be created. The following fields of the passed objects must be set:name,creatoranddateCreated. The value of theidfield is ignored (can benull), since it will be assigned by the server.- Returns:
- The server-assigned forum ids (local ids).
- Throws:
PrivilegeException- if the current user does not have sufficient privileges to perform this operation. Only SYSADMIN, APPADMIN, OWNER, ADMINISTRATOR, WRITER, READER, and USER roles inForumsRoleMapmay create forums.DuplicateUuidException- if the UUID of any of the forums already exists or if the same UUID is passed in for several forumsServiceException- if any system-level error occurs
-
importMessages
@Write(K_FORUMS) Message[] importMessages(Long[] forumIds_, Message[] msgs_) throws InvalidForumException, InvalidMessageException, IllegalArgumentException, PrivilegeException Deprecated.Import multiple messages, one per forum. This method will use thedatePostedandauthorvalues specified in the passedMessageobjects instead of assigning them on the server. NOTE: To physically store the messages to disk, this call must be followed by a call toDiscussionBodyService.createMessages(com.appiancorp.suiteapi.forums.Message[]), using thefilenames returned by this method.- Parameters:
forumIds_- The ids of the forums in which to create the messages.msgs_- TheMessageobjects from which to create the messages. The minimum required fields that must be set in each object are:threadId,parentId,subject,anonymousAuthor,datePosted, andauthor. When creating a new thread, thethreadIdandparentIdfields should be set to0. Theid,remoteId, andfilenamefields will be assigned by the server.- Returns:
- The imported messages, with the
id,remoteId, andfilenamefields properly populated. - Throws:
InvalidForumException- if any one of the passed forum ids is invalidInvalidMessageException- if theparentIdof any one of the passed messages is invalidIllegalArgumentException- if theforumIds_array is not the same length as themsgs_arrayPrivilegeException- if the current user does not have sufficient privileges to create messages. Only SYSADMIN, APPADMIN, OWNER, ADMINISTRATOR, and WRITER roles inForumsRoleMapmay create messages.ServiceException- if any system-level error occurs
-
getThreadsList
Deprecated.Gets the specified threads, returning the valid results even if all the results cannot be retrieved (for instance, if some of the threads corresponding to the passed ids no longer exist).- Parameters:
threadIds_- The ids of the threads to retrieve.- Returns:
- A
ResultListcontaining threads and result codes. theResult.getResults()method should be used to get all the threads that were successfully retrieved. In additionResultList.getResultCodes()can be used to get the list of result codes corresponding to each of the passed thread ids. Each code represents the successful retrieval of a thread, or, if the thread could not be retrieved, the reason for the failure. Possible result codes:ResultList.CODE_INVALID= the thread specified does not exist,ResultList.CODE_NO_PERMISSION= the user can't see the thread, andResultList.CODE_VALID= the user can see the thread - Throws:
ServiceException- if any system-level error occurs
-
getForumsList
Deprecated.Gets the specified forums, returning the valid results even if all the results cannot be retrieved (for instance, if some of the forums corresponding to the passed ids no longer exist).- Parameters:
forumIds_- The ids of the threads to retrieve.- Returns:
- A
ResultListcontaining forums and result codes. theResult.getResults()method should be used to get all the forums that were successfully retrieved. In additionResultList.getResultCodes()can be used to get the list of result codes corresponding to each of the passed forum ids. Each code represents the successful retrieval of a forum, or, if the forum could not be retrieved, the reason for the failure. See theCODE_XXXconstants inResultListfor details. - Throws:
ServiceException- if any system-level error occursInvalidUserException
-
getMessagesList
Deprecated.Gets the specified messages, returning the valid results even if all the results cannot be retrieved (for instance, if some of the messages corresponding to the passed ids no longer exist).- Parameters:
messageIds_- The ids of the messages to retrieve.- Returns:
- A
ResultListcontaining messages and result codes. theResult.getResults()method should be used to get all the messages that were successfully retrieved. In additionResultList.getResultCodes()can be used to get the list of result codes corresponding to each of the passed message ids. Each code represents the successful retrieval of a message, or, if the message could not be retrieved, the reason for the failure. See theCODE_XXXconstants inResultListfor details. - Throws:
ServiceException- if any system-level error occurs
-
validateGroupMembership
@Deprecated @Read(K_FORUMS) boolean validateGroupMembership(Long[] memGroupIds_, Long[] admGroupIds_) throws InvalidUserException Deprecated.No longer necessary with credential systemValidates if the association of a user as 'Member' and as an 'Administrator has changed or not.- Parameters:
memGroupIds_- Groups for which the User is a memberadmGroupIds_- Groups for which the User is an administrator- Returns:
- true if there is not change in the membership of the user
- Throws:
InvalidUserException- if the user calling this method does not existServiceException- if any system-level error occurs
-
updateUsernames
@Deprecated @Write(K_FORUMS) void updateUsernames(String[] oldUsernames_, String[] newUsernames_, long maxExpirationTimeInSeconds_) throws IllegalArgumentException, PrivilegeException, DuplicateNameException Deprecated.DEPRECATED: SeeUserService.renameUsersByUuid(java.lang.String[], java.lang.String[])Updates a list of old usernames to new usernames.If successful, this method must be followed by
commitUpdateUsernames(). AftercommitUpdateUsernameshas been called, the old usernames will still be active, but will expire after the interval specified bymaxExpirationTimeInSeconds_; ifupdateUsernamesis successful butcommitUpdateUsernamesis not called, the new usernames will not become active.If unsuccessful, this method should be followed by
rollbackUpdateUsernames(). This will simply free memory dedicated to mapping old usernames to new usernames.- Parameters:
oldUsernames_- the usernames to be updatednewUsernames_- the usernames to which the old usernames will be updatedmaxExpirationTimeInSeconds_- the interval, in seconds, aftercommitUpdateUsernameshas been called, after which the old usernames will expire. If this parameter is zero or a negative value the old usernames will expire instantly. After expiration, the old usernames will no longer be valid.- Throws:
IllegalArgumentException- if the length ofoldUsernames_is not the same as the length ofnewUsernames_.PrivilegeException- if the current user is not a system administratorDuplicateNameException- if anyoldUsernames_ornewUsernames_contain any duplicates, or if an old username is being updated to a username that already existsServiceException- if any system-level error occurs
-
commitUpdateUsernames
Deprecated.DEPRECATED: SeeUserService.renameUsersByUuid(java.lang.String[], java.lang.String[])Commits an update of usernames.This method should be preceded by a call to
updateUsernames(String[], String[], long). After the commit, the old usernames will be temporarily active, and will expire after the interval specified bymaxExpirationTimeInSeconds_; ifcommitUpdateUsernamesis not called, the new usernames will not become active.- Throws:
ServiceException- if any system-level error occurs
-
rollbackUpdateUsernames
Deprecated.DEPRECATED: SeeUserService.renameUsersByUuid(java.lang.String[], java.lang.String[])Rolls back an update of usernames.This method should be called if
updateUsernames(String[], String[], long)is unsuccessful. The rollback will simply free memory dedicated to mapping old usernames to new usernames.- Throws:
ServiceException- if any system-level error occurs
-
inviteUsersToThread
@Write(K_FORUMS) void inviteUsersToThread(String[] usernames_, Long threadId_) throws InvalidThreadException, PrivilegeException Deprecated.Add invitation for the given users to the giventhread. Later, the invitee can accept the invitation byacceptThreadInvitationor deny the invitation bydenyThreadInvitation, after which the invitation becomes void.- Parameters:
usernames_- the users to invitethreadId_- the thread to which they are invites- Throws:
InvalidThreadException- if the thread does not existPrivilegeException- if the requesting user cannot subscribe other users to thread. Only SYSADMIN, APPADMIN, ADMINISTRATOR, and OWNER can subscribe other users.
-
acceptThreadInvitation
@Write(K_FORUMS) void acceptThreadInvitation(Long threadId_) throws InvalidThreadException, PrivilegeException Deprecated.Called by the invitee to accept the invitation.- Parameters:
threadId_- the thread to which the user wants to subscribe- Throws:
InvalidThreadException- if the thread does not existPrivilegeException- if the user wasn't invited
-
denyThreadInvitation
Deprecated.Called by the invitee to deny the invitation. If the user wasn't invited, this method does effectively nothing.- Parameters:
threadId_- the thread to which the user does not want to subscribe- Throws:
InvalidThreadException- if the thread does not exist
-
isInvitedToThreads
Deprecated.Called to check if the invitation to threads for current user are valid.- Parameters:
threadIds_- the threads for which to check the user's invitation.- Returns:
- array of boolean's, true if the user's invitation to the thread is valid, otherwise false.
- Throws:
InvalidThreadException- if any of the threads does not exist
-
changePartitionPaths
Deprecated.Changes where message texts are stored from one path to another. This is method is useful when switching server environments. For example, if switching from Windows to Linux this method could change the partition path from c:\forums to /home/usr/forums.- Parameters:
originalPath- The path where forum texts were previously stored.newPath- The path where forum texts will now be stored.- Throws:
ServiceException- if any system-level error occurs
-
reloadProperties
Deprecated.reloading properties is now automatic, so this call is now unnecessary and does nothing.Reloads all database-level properties files (*.xml, *.properties) without interrupting API services- Throws:
ServiceException- if any system-level error occurs
-
validate
Deprecated.Runs validation tests against the database to check whether it is corrupt, and returns a line-separated list of validation results- Returns:
- the validation results
- Throws:
ServiceException- if any system-level error occurs
-
validateTypedValues
Deprecated.Validates given TypedValues. This method is free to throw an exception or to return false if any TypedValue passed is invalid for this engine. This engine supports: AppianType.FORUM AppianType.DISCUSSION_THREAD AppianType.MESSAGE- Parameters:
typedValues-- Returns:
- true if valid, false if invalid
-
setTimeZone
Deprecated.Set a backend timezone.- Parameters:
tz-
-
setTimeZoneSameAs
Deprecated.Set the time zone information using the format used by the engines to encapsulate time zone information. This method sets the time zone for the forums engine only. NOTE: Using this method could lead to data inconsistency, useGlobalizationService.setTimeZone(com.appiancorp.suiteapi.portal.BackendTimeZoneSimple)to set the time zone across all engines (rarely required).- Parameters:
tz- The specially formatted time zone object used by the engines
-
getMessageCountByUsers
@Read(K_FORUMS) UserMessageCount[] getMessageCountByUsers(String[] usernameList) throws PrivilegeException Deprecated.Returns the number of message posts grouped by a list of users. Duplicated and invalid usernames are skipped. The order of the usernames is preserved. They are returned as they appeared in the input array.- Parameters:
usernameList- The list of usernames that the service is going to search for- Returns:
- Returns an array of UserMessageCount objects: Each object has the username and the corresponding number (as an integer) of messages posted. If username is invalid, return zero. It does not return results with invalid users
- Throws:
PrivilegeException- thrown if user does not have admin privileges
-
getMessageCountByUsers
@Read(K_FORUMS) UserMessageCount[] getMessageCountByUsers(String[] usernameList, Date fromDate, Date toDate) throws PrivilegeException Deprecated.Returns the number of message posts grouped by a list of users from the fromDate to the toDate. Dates are inclusive and times are GMT. Duplicated and invalid usernames are skipped. The order of the usernames is preserved. They are returned as they appeared in the input array.- Parameters:
usernameList- The list of usernames that the service is going to search forfromDate- The initial date for the querytoDate- The end date for the query- Returns:
- Returns an array of UserMessageCount objects: Each object has the username and the corresponding number (as an integer) of messages posted. If username is invalid, return zero. It does not return results with invalid users
- Throws:
PrivilegeException- thrown if user does not have admin privileges
-
getMessageCountByUsersForForum
@Read(K_FORUMS) UserMessageCount[] getMessageCountByUsersForForum(String[] usernameList, Date fromDate, Date toDate, Long forumId) throws InvalidForumException, PrivilegeException Deprecated.Returns the number of message posts grouped by a list of users from the fromDate to the toDate. Messages are filtered with a specific forum. Dates are inclusive and times are GMT. Duplicated and invalid usernames are skipped. The order of the usernames is preserved. They are returned as they appeared in the input array.- Parameters:
usernameList- The list of usernames that the service is going to search forfromDate- The initial date for the querytoDate- The end date for the queryforumId- Identifier of the forum to get statistics from- Returns:
- Returns an array of UserMessageCount objects: Each object has the username and the corresponding number (as an integer) of messages posted. If the username is invalid, it will return a message count of zero for that user.
- Throws:
PrivilegeException- thrown if user does not have admin privilegesInvalidForumException
-
getTopUsersForForum
@Read(K_FORUMS) UserMessageCount[] getTopUsersForForum(Date fromDate, Date toDate, Long forumId, int topNUsers) throws InvalidForumException, PrivilegeException Deprecated.Returns which users are the most active when posting into a particular forum. The length of the returned array can be difined by changing the value of the parameter topNUsers.- Parameters:
fromDate- The initial date for the querytoDate- The end date for the queryforumId- Identifier of the forum to get statistics fromtopNUsers- The number of users you expect as an output of the function- Returns:
- Returns the Top N Active Users in descending order by number of posts
- Throws:
InvalidForumException- thrown if Forum Id is invalidPrivilegeException- thrown if user does not have admin privileges
-
getTopUsersForSite
@Read(K_FORUMS) UserMessageCount[] getTopUsersForSite(Date fromDate, Date toDate, int topNUsers) throws PrivilegeException Deprecated.Returns which users are the most active when posting into the entire site. The length of the returned array can be defined by changing the value of the parameter topNUsers. Starting a topic or replying to a topic counts as a post.- Parameters:
fromDate- The initial date for the querytoDate- The end date for the querytopNUsers- The number of users you expect as an output of the function- Returns:
- Returns the Top N Active Users in descending order by number of posts
- Throws:
PrivilegeException- thrown if user does not have admin privileges
-
getMessagesByUserPaging
@Read(K_FORUMS) ResultPage getMessagesByUserPaging(String username, int startIndex, int batchSize, int sortProperty, int sortOrder) throws PrivilegeException Deprecated.This function gets all messages for a specific user.- Parameters:
username- User whose messages are going to be retreivedstartIndex- The index into the collection of total results at which to startbatchSize- The number of results to returnsortProperty- The property by which the results should be sorted This should be one of the SORT_BY_XXX constants defined in {com.appiancorp.suiteapi.forums.DiscussionThread}sortOrder- The order in which results are going to be sorted {com.appiancorp.suiteapi.common.Constants#SORT_ORDER_ASCENDING} or {com.appiancorp.suiteapi.common.Constants#SORT_ORDER_DESCENDING}- Returns:
- Returns all messages for the user
- Throws:
PrivilegeException- thrown if user does not have admin privileges
-