public class ResultList extends Result
ResultList
will return successfully even if
some of the requested entities cannot be retrieved on the server (unlike
methods which return a ResultPage
, which throw an exception if
any one of the requested entities cannot be retrieved).
The results that were successfully retrieved by the service call can be
accessed using the Result.getResults()
method of the Result
base class. Additionally,
getResultCodes()
can be used to retrive the list of result codes
that represent the successful retrieval of an entity, or, if the entity
could not be retrieved on the server, the reason for the failure. Some
possible result codes are defined by this class, although individual methods
may list separate result codes.
Every service method that returns a ResultList
should document the code constants that are returned by that specific call.Result
,
ResultPage
,
Serialized FormModifier and Type | Field and Description |
---|---|
static int |
CODE_INVALID
Constant indicating that a particular result in the
ResultList is invalid (typically, there is no entity in
the database which corresponds to the given ID). |
static int |
CODE_NO_PERMISSION
Constant indicating that the user does not have sufficient
privilege to view a particular result in the
ResultList . |
static int |
CODE_SUBPROCESS_CANNOT_PUBLISH
Constant indicating that user does not permission to publish a subprocess
within the process model.
|
static int |
CODE_SUBPROCESS_INVALID
Constant indicating that the subprocess within a process model is invalid
and hence cannot be published.
|
static int |
CODE_VALID
Constant indicating that a particular result in the
ResultList is valid. |
static int |
COLLAB_CODE_CAN_ADMINISTRATE
Constant used in the collaboration application, which indicates
that the user has administrator privileges to a particular result in the
ResultList . |
static int |
COLLAB_CODE_CAN_EDIT
Constant used in the collaboration application, which indicates
that the user has editor privileges to a particular result in the
ResultList . |
static int |
PORTAL_CODE_CAN_ADMINISTRATE
Constant used in the portal application, which indicates
that the user has administrator privileges to a particular result in the
ResultList . |
static int |
PORTAL_CODE_CAN_EDIT
Constant used in the portal application, which indicates
that the user has editor privileges to a particular result in the
ResultList . |
Constructor and Description |
---|
ResultList() |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer[] |
getResultCodes()
Returns the result codes for each of the requested ids.
|
void |
setResultCodes(java.lang.Integer[] resultCodes_)
See
getResultCodes() . |
java.lang.String |
toString() |
getNumResults, getResults, setResults
public static final int COLLAB_CODE_CAN_ADMINISTRATE
ResultList
.public static final int COLLAB_CODE_CAN_EDIT
ResultList
.public static final int PORTAL_CODE_CAN_ADMINISTRATE
ResultList
.public static final int PORTAL_CODE_CAN_EDIT
ResultList
.public static final int CODE_NO_PERMISSION
ResultList
.public static final int CODE_INVALID
ResultList
is invalid (typically, there is no entity in
the database which corresponds to the given ID).public static final int CODE_VALID
ResultList
is valid.public static final int CODE_SUBPROCESS_CANNOT_PUBLISH
public static final int CODE_SUBPROCESS_INVALID
public java.lang.Integer[] getResultCodes()
ResultList
should
document the code constants that are returned by that specific call.setResultCodes(Integer[])
public void setResultCodes(java.lang.Integer[] resultCodes_)
getResultCodes()
.resultCodes_
- The result codes for each of the requested ids.getResultCodes()
Copyright © 2003-2024 Appian Corporation. All Rights Reserved.