@Deprecated
public interface DiscussionPortletService
extends com.appiancorp.services.ContextSensitiveService
Methods of service classes can all throw the unchecked exception
ServiceException
if any
system-level error (for example, server failure) occurs, and will in general
throw a checked exception (InvalidXXXException
) when an entity
to be retrieved is inaccessible, instead of returning null
.
Exceptions to this paradigm (including the use of ResultList
as
described below) are noted. All checked exceptions extend
AppianException
.
It may be necessary to retrieve a subset of results as opposed to an entire
collection, and also to sort the subset by some property of the returned
object. "Paging" methods which return a
ResultPage
are provided in certain
instances for this purpose. The ResultPage
will contain the
sorted subset of results
(via Result.getResults()
), and the
total number of items in the available result set
(via ResultPage.getAvailableItems()
).
It may also be necessary to retrieve some results, even if all results
cannot be retrieved (for instance, some of the entities corresponding
to a list of entity IDs may no longer exist). Methods which return a
ResultList
are provided for this
purpose. The Result.getResults()
method in this case will return all results which can be retrieved. In
addition, there will be a list of result codes
(ResultList.getResultCodes()
) that
represent the successful retrieval of an entity, or, if the entity could
not be retrieved, the reason for the failure. See the CODE_XXX
constants in ResultList
for details.
Modifier and Type | Field and Description |
---|---|
static boolean |
addForumForDiscussionPortlet$UPDATES
Deprecated.
|
static boolean |
getApplicationName$UPDATES
Deprecated.
|
static boolean |
getForumsForDiscussionPortlet$UPDATES
Deprecated.
|
static boolean |
getPublicForums$UPDATES
Deprecated.
|
static boolean |
getWorkspace$UPDATES
Deprecated.
|
static boolean |
removeForumForDiscussionPortlet$UPDATES
Deprecated.
|
static boolean |
setForumsForDiscussionPortlet$UPDATES
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addForumForDiscussionPortlet(java.lang.Long portletId_,
java.lang.Long forumId_)
Deprecated.
Add a discussion forum to a portlet
|
java.lang.String |
getApplicationName()
Deprecated.
Gets the name of the application
|
Forum[] |
getForumsForDiscussionPortlet(java.lang.Long portletId_)
Deprecated.
Retrieve the forums attached to a portlet
|
java.lang.Long[] |
getPublicForums()
Deprecated.
Gets forums in public portlets in public pages
|
java.lang.String[] |
getWorkspace()
Deprecated.
Gets the current memory profile for the workspace.
|
void |
removeForumForDiscussionPortlet(java.lang.Long portletId_,
java.lang.Long forumId_)
Deprecated.
Remove a forum from a portlet
|
void |
setForumsForDiscussionPortlet(java.lang.Long portletId_,
java.lang.Long[] forumIds_)
Deprecated.
Set the forums to be attached to a portlet
|
static final boolean addForumForDiscussionPortlet$UPDATES
static final boolean getForumsForDiscussionPortlet$UPDATES
static final boolean setForumsForDiscussionPortlet$UPDATES
static final boolean removeForumForDiscussionPortlet$UPDATES
static final boolean getPublicForums$UPDATES
static final boolean getApplicationName$UPDATES
static final boolean getWorkspace$UPDATES
void addForumForDiscussionPortlet(java.lang.Long portletId_, java.lang.Long forumId_) throws java.lang.IllegalArgumentException, InvalidPortletException
portletId_
- the portlet IDforumId_
- the forum ID of the forum to add to the portletjava.lang.IllegalArgumentException
- if the portlet ID does not correspond
to a discussion forum portletInvalidPortletException
- if no portlet with the given ID existsServiceException
- if any system-level error occursForum[] getForumsForDiscussionPortlet(java.lang.Long portletId_) throws java.lang.IllegalArgumentException, InvalidPortletException
portletId_
- the portlet IDForum
objects attached to the portletjava.lang.IllegalArgumentException
- if the portlet ID does not correspond
to a discussion forum portletInvalidPortletException
- if no portlet with the given ID existsServiceException
- if any system-level error occursvoid setForumsForDiscussionPortlet(java.lang.Long portletId_, java.lang.Long[] forumIds_) throws java.lang.IllegalArgumentException, InvalidPortletException
portletId_
- the portlet IDforumIds_
- the IDs of the forums to attach to the portletjava.lang.IllegalArgumentException
- if the portlet ID does not correspond
to a discussion forum portletInvalidPortletException
- if no portlet with the given ID existsServiceException
- if any system-level error occursvoid removeForumForDiscussionPortlet(java.lang.Long portletId_, java.lang.Long forumId_) throws java.lang.IllegalArgumentException, InvalidPortletException
portletId_
- the portlet IDforumId_
- the forum ID of the forum to be removedjava.lang.IllegalArgumentException
- if the portlet ID does not correspond
to a discussion forum portletInvalidPortletException
- if no portlet with the given ID existsServiceException
- if any system-level error occursjava.lang.Long[] getPublicForums()
ServiceException
- if any system-level error occursjava.lang.String getApplicationName()
ServiceException
- if any system-level error occursjava.lang.String[] getWorkspace()
ServiceException
- if any system-level error occursCopyright © 2003-2023 Appian Corporation. All Rights Reserved.