Interface AuditBatchAdminSession

All Superinterfaces:
AuditAdminSession, AutoCloseable, Closeable, OsidSession, OsidSession

public interface AuditBatchAdminSession extends AuditAdminSession

This session creates and deletes Audits in bulk. The data for create is provided by the consumer via the form object. OsidForms are requested for each create or update and may not be reused.

To create an Audit , an AuditForm is requested using getAuditFormsForCreate() specifying the desired record Types or none if no record Types are needed. Each of the returned AuditForms will indicate that it is to be used with a create operation and can be used to examine metdata or validate data prior to creation. Once an AuditForm is submiited to a create operation, it cannot be reused with another create operation unless the first operation was unsuccessful. Each AuditForms corresponds to an attempted transaction.

The AuditForms returned from getSubtaskFormsForCreate() may be linked to the originating request through the peer Ids of the AuditForm . In the case where there may be duplicates, any AuditForm of the same peer Ids may be used for a create operation.

Once a batch of AuditForms are submitted for create, a CreateResponse is returned for each AuditForms , although the ordering is not defined. Only errors that pertain to the entire create operation are returned from createSubtasks() , errors specific to an individual AuditForm are indicated in the corresponding CreateResponse . CreateResponses may be linked to the originating AuditForm through the AuditForm Id .