Interface BlockForm

All Superinterfaces:
Extensible, Identifiable, OsidBrowsableForm, OsidExtensibleForm, OsidForm, OsidIdentifiableForm, OsidObjectForm, Suppliable
All Known Subinterfaces:
BlockBatchForm

public interface BlockForm extends OsidObjectForm

This is the form for creating and updating Blocks .Like all OsidForm objects, various data elements may be set here for use in the create and update methods in the BlockAdminSession . For each data element that may be set, metadata may be examined to provide display hints or data constraints.

  • Method Details

    • getIssuesMetadata

      Metadata getIssuesMetadata()
      Gets the metadata for the issues.
      Returns:
      metadata for the issues
      Compliance:
      mandatory - This method must be implemented.
    • setIssues

      void setIssues(Id[] issueIds)
      Sets the issues.
      Parameters:
      issueIds - the new issues
      Throws:
      InvalidArgumentException - issueIds is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - issueIds is null
      Compliance:
      mandatory - This method must be implemented.
    • clearIssues

      void clearIssues()
      Removes the issues.
      Throws:
      NoAccessException - Metadata.isRequired() is true or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getBlockFormRecord

      BlockFormRecord getBlockFormRecord(Type blockRecordType) throws OperationFailedException, PermissionDeniedException
      Gets the BlockFormRecord corresponding to the given block record Type .
      Parameters:
      blockRecordType - a block record type
      Returns:
      the block form record
      Throws:
      NullArgumentException - blockRecordType is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure occurred
      UnsupportedException - hasRecordType(blockRecordType) is false
      Compliance:
      mandatory - This method must be implemented.