public class RecordClient
extends Object
Modifier and Type | Method and Description |
---|---|
AddRecordResponseBody |
addRecord(AddRecordRequest request)
Adds 1 record to an App.
|
long |
addRecord(long app,
Record record)
Adds 1 record to an App.
|
AddRecordCommentResponseBody |
addRecordComment(AddRecordCommentRequest request)
Add a comment to a record in an app.
|
long |
addRecordComment(long app,
long recordId,
RecordComment comment)
Add a comment to a record in an app.
|
AddRecordsResponseBody |
addRecords(AddRecordsRequest request)
Adds multiple records to an App.
|
List<Long> |
addRecords(long app,
List<Record> records)
Adds multiple records to an App.
|
long |
countRecords(long app)
Get the number of records.
|
long |
countRecords(long app,
String query)
Get the number of records.
|
CreateCursorResponseBody |
createCursor(CreateCursorRequest request)
Creates a cursor so that large amount of records can be obtained from an App.
|
String |
createCursor(long app)
Creates a cursor so that large amount of records can be obtained from an App.
|
String |
createCursor(long app,
List<String> fields,
String query)
Creates a cursor so that large amount of records can be obtained from an App.
|
DeleteCursorResponseBody |
deleteCursor(DeleteCursorRequest request)
Deletes a cursor by specifying the cursor ID.
|
void |
deleteCursor(String id)
Deletes a cursor by specifying the cursor ID.
|
DeleteRecordCommentResponseBody |
deleteRecordComment(DeleteRecordCommentRequest request)
Delete a comment in a record in an app.
|
void |
deleteRecordComment(long app,
long recordId,
long commentId)
Delete a comment in a record in an app.
|
DeleteRecordsResponseBody |
deleteRecords(DeleteRecordsRequest request)
Deletes multiple records in an app.
|
void |
deleteRecords(long app,
List<Long> recordIds)
Deletes multiple records in an app.
|
void |
deleteRecords(long app,
List<Long> recordIds,
List<Long> revisions)
Deletes multiple records in an app.
|
GetRecordResponseBody |
getRecord(GetRecordRequest request)
Retrieves details of 1 record from an App by specifying the App ID and record ID.
|
Record |
getRecord(long app,
long recordId)
Retrieves details of 1 record from an App by specifying the App ID and record ID.
|
GetRecordCommentsResponseBody |
getRecordComments(GetRecordCommentsRequest request)
Retrieves multiple comments from a record in an app.
|
List<PostedRecordComment> |
getRecordComments(long app,
long recordId)
Retrieves multiple comments from a record in an app.
|
List<PostedRecordComment> |
getRecordComments(long app,
long recordId,
Order order,
Long offset,
Long limit)
Retrieves multiple comments from a record in an app.
|
GetRecordsResponseBody |
getRecords(GetRecordsRequest request)
Retrieves details of multiple records from an App.
|
List<Record> |
getRecords(long app)
Retrieves details of multiple records from an App.
|
List<Record> |
getRecords(long app,
int limit,
long offset)
Retrieves details of multiple records from an App.
|
List<Record> |
getRecords(long app,
List<String> fields,
int limit,
long offset)
Retrieves details of multiple records from an App.
|
List<Record> |
getRecords(long app,
List<String> fields,
String query)
Retrieves details of multiple records from an App by specifying a query string.
|
List<Record> |
getRecords(long app,
String query)
Retrieves details of multiple records from an App by specifying a query string.
|
GetRecordsByCursorResponseBody |
getRecordsByCursor(GetRecordsByCursorRequest request)
Retrieves multiple records from an App by specifying the cursor ID.
|
GetRecordsByCursorResponseBody |
getRecordsByCursor(String id)
Retrieves multiple records from an App by specifying the cursor ID.
|
long |
updateRecord(long app,
long recordId,
Record record)
Updates details of 1 record in an App by specifying its record number.
|
long |
updateRecord(long app,
UpdateKey updateKey,
Record record)
Updates details of 1 record in an App by specifying a different unique key.
|
UpdateRecordResponseBody |
updateRecord(UpdateRecordRequest request)
Updates details of 1 record in an App by specifying its record number, or a different unique
key.
|
long |
updateRecordAssignees(long app,
long recordId,
List<String> assignees)
Updates the Assignees of a record status, that was set with the Process Management feature.
|
UpdateRecordAssigneesResponseBody |
updateRecordAssignees(UpdateRecordAssigneesRequest request)
Updates the Assignees of a record status, that was set with the Process Management feature.
|
List<RecordRevision> |
updateRecords(long app,
List<RecordForUpdate> records)
Updates details of multiple records in an App, by specifying their record numbers, or their
unique keys.
|
UpdateRecordsResponseBody |
updateRecords(UpdateRecordsRequest request)
Updates details of multiple records in an App.
|
long |
updateRecordStatus(long app,
long recordId,
String action)
Updates the Status of a record of an App, that was set with the Process Management feature.
|
long |
updateRecordStatus(long app,
long recordId,
String action,
String assignee)
Updates the Status of a record of an App, that was set with the Process Management feature.
|
UpdateRecordStatusResponseBody |
updateRecordStatus(UpdateRecordStatusRequest request)
Updates the Status of a record of an App, that was set with the Process Management feature.
|
List<RecordRevision> |
updateRecordStatuses(long app,
List<StatusAction> statusActions)
Updates the Statuses of multiple records of an App, that were set with the Process Management
feature.
|
UpdateRecordStatusesResponseBody |
updateRecordStatuses(UpdateRecordStatusesRequest request)
Updates the Statuses of multiple records of an App, that were set with the Process Management
feature.
|
public long addRecord(long app, Record record)
app
- the App IDrecord
- the record object. See Record
public AddRecordResponseBody addRecord(AddRecordRequest request)
request
- the request parameters. See AddRecordRequest
AddRecordResponseBody
public long addRecordComment(long app, long recordId, RecordComment comment)
app
- the App IDrecordId
- the record IDcomment
- an object including comment detailspublic AddRecordCommentResponseBody addRecordComment(AddRecordCommentRequest request)
request
- the request parameters. See AddRecordCommentRequest
AddRecordCommentResponseBody
public List<Long> addRecords(long app, List<Record> records)
app
- the App IDrecords
- a list of records. See Record
public AddRecordsResponseBody addRecords(AddRecordsRequest request)
request
- the request parameters. See AddRecordsRequest
AddRecordsResponseBody
public long countRecords(long app)
app
- the App IDpublic long countRecords(long app, String query)
app
- the App IDquery
- the query stringpublic String createCursor(long app)
app
- the App IDpublic String createCursor(long app, List<String> fields, String query)
app
- the App IDfields
- the field codes to be included in the response when using the Get Cursor APIquery
- the query string that will specify what records will be responded when using the
Get Cursor APIpublic CreateCursorResponseBody createCursor(CreateCursorRequest request)
request
- the request parameters. See CreateCursorRequest
CreateCursorResponseBody
public void deleteCursor(String id)
id
- the cursor IDpublic DeleteCursorResponseBody deleteCursor(DeleteCursorRequest request)
request
- the request parameters. See DeleteCursorRequest
DeleteCursorResponseBody
public void deleteRecordComment(long app, long recordId, long commentId)
app
- the App IDrecordId
- the record IDcommentId
- the comment IDpublic DeleteRecordCommentResponseBody deleteRecordComment(DeleteRecordCommentRequest request)
request
- the request parameters. See DeleteRecordCommentRequest
DeleteRecordCommentResponseBody
public void deleteRecords(long app, List<Long> recordIds)
app
- the app IDrecordIds
- a list of record IDs that will be deletedpublic void deleteRecords(long app, List<Long> recordIds, List<Long> revisions)
app
- the app IDrecordIds
- a list of record IDs that will be deletedrevisions
- the expected revision numbers. The first id number will correspond to the
first revision number in the list, the second id to the second revision number, and so on.public DeleteRecordsResponseBody deleteRecords(DeleteRecordsRequest request)
request
- the request parameters. See DeleteRecordsRequest
DeleteRecordsResponseBody
public Record getRecord(long app, long recordId)
app
- the App IDrecordId
- the record IDRecord
public GetRecordResponseBody getRecord(GetRecordRequest request)
request
- the request parameters. See GetRecordRequest
GetRecordResponseBody
public List<PostedRecordComment> getRecordComments(long app, long recordId)
app
- the App IDrecordId
- the record IDpublic List<PostedRecordComment> getRecordComments(long app, long recordId, Order order, Long offset, Long limit)
app
- the App IDrecordId
- the record IDorder
- the sort order of the Comment ID. Specifying Order.ASC
will sort the
comments in ascending order, and Order.DESC
will sort the comments in descending
order.offset
- This skips the retrieval of the first number of comments.limit
- the number of records to retrievePostedRecordComment
public GetRecordCommentsResponseBody getRecordComments(GetRecordCommentsRequest request)
request
- the request parameters. See GetRecordCommentsRequest
GetRecordCommentsResponseBody
public List<Record> getRecords(long app)
app
- the App IDRecord
public List<Record> getRecords(long app, int limit, long offset)
app
- the App IDlimit
- the maximum number of records to be retrievedoffset
- This skips retrieving the first number of records.Record
public List<Record> getRecords(long app, List<String> fields, int limit, long offset)
app
- the App IDfields
- the field codes to be included in the response. Ignoring this parameter will
return all accessible fields that exist in the App.limit
- the maximum number of records to be retrievedoffset
- This skips retrieving the first number of records.Record
public List<Record> getRecords(long app, String query)
app
- the App IDquery
- the query string that specifies what records to include in the responseRecord
public List<Record> getRecords(long app, List<String> fields, String query)
app
- the App IDfields
- the field codes to be included in the response. Ignoring this parameter will
return all accessible fields that exist in the App.query
- the query string that specifies what records to include in the responseRecord
public GetRecordsResponseBody getRecords(GetRecordsRequest request)
request
- the request parameters. See GetRecordsRequest
GetRecordsResponseBody
public GetRecordsByCursorResponseBody getRecordsByCursor(String id)
id
- the cursor IDGetRecordsByCursorResponseBody
public GetRecordsByCursorResponseBody getRecordsByCursor(GetRecordsByCursorRequest request)
request
- the request parameters. See GetRecordsByCursorRequest
GetRecordsByCursorResponseBody
public long updateRecord(long app, long recordId, Record record)
app
- the App IDrecordId
- the record IDrecord
- the record object. See Record
public long updateRecord(long app, UpdateKey updateKey, Record record)
app
- the App IDupdateKey
- the unique key of the record to be updatedrecord
- the record object. See Record
public UpdateRecordResponseBody updateRecord(UpdateRecordRequest request)
request
- the request parameters. See UpdateRecordRequest
UpdateRecordResponseBody
public long updateRecordAssignees(long app, long recordId, List<String> assignees)
app
- the App IDrecordId
- the record IDassignees
- the user codes of the Assignee(s)public UpdateRecordAssigneesResponseBody updateRecordAssignees(UpdateRecordAssigneesRequest request)
request
- the request parameters. See UpdateRecordAssigneesRequest
UpdateRecordAssigneesResponseBody
public List<RecordRevision> updateRecords(long app, List<RecordForUpdate> records)
app
- the App IDrecords
- a list of objects that include id/updateKey, revision and record objectsRecordRevision
public UpdateRecordsResponseBody updateRecords(UpdateRecordsRequest request)
request
- the request parameters. See UpdateRecordsRequest
UpdateRecordsResponseBody
public long updateRecordStatus(long app, long recordId, String action)
app
- the App IDrecordId
- the record IDaction
- the Action name of the action to runpublic long updateRecordStatus(long app, long recordId, String action, String assignee)
app
- the App IDrecordId
- the record IDaction
- the Action name of the action to runassignee
- the next Assignee. Specify the Assignee's code.public UpdateRecordStatusResponseBody updateRecordStatus(UpdateRecordStatusRequest request)
request
- the request parameters. See UpdateRecordStatusRequest
UpdateRecordStatusResponseBody
public List<RecordRevision> updateRecordStatuses(long app, List<StatusAction> statusActions)
app
- the App IDstatusActions
- a list including information of the status actions to proceedRecordRevision
public UpdateRecordStatusesResponseBody updateRecordStatuses(UpdateRecordStatusesRequest request)
request
- the request parameters. See UpdateRecordStatusesRequest
UpdateRecordStatusesResponseBody