Interface PostForm

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

public interface PostForm extends OsidObjectForm

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

  • Method Details

    • getTimestampMetadata

      Metadata getTimestampMetadata()
      Gets the metadata for the timestamp.
      Returns:
      metadata for the timestamp
      Compliance:
      mandatory - This method must be implemented.
    • setTimestamp

      void setTimestamp(DateTime timestamp)
      Sets the timestamp.
      Parameters:
      timestamp - the new timestamp
      Throws:
      InvalidArgumentException - timestamp is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - timestamp is null
      Compliance:
      mandatory - This method must be implemented.
    • clearTimestamp

      void clearTimestamp()
      Clears the poster.
      Throws:
      NoAccessException - Metadata.isRequired() or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getPosterMetadata

      Metadata getPosterMetadata()
      Gets the metadata for the poster.
      Returns:
      metadata for the poster
      Compliance:
      mandatory - This method must be implemented.
    • setPoster

      void setPoster(Id resourceId)
      Sets the poster.
      Parameters:
      resourceId - the new poster
      Throws:
      InvalidArgumentException - resourceId is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - resourceId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearPoster

      void clearPoster()
      Clears the poster.
      Throws:
      NoAccessException - Metadata.isRequired() or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getSubjectLineMetadata

      Metadata getSubjectLineMetadata()
      Gets the metadata for the subject line.
      Returns:
      metadata for the subject line
      Compliance:
      mandatory - This method must be implemented.
    • setSubjectLine

      void setSubjectLine(String subjectLine)
      Sets the subject line.
      Parameters:
      subjectLine - the new subject line
      Throws:
      InvalidArgumentException - subjectLine is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - subjectLine is null
      Compliance:
      mandatory - This method must be implemented.
    • clearSubjectLine

      void clearSubjectLine()
      Clears the subject line.
      Throws:
      NoAccessException - Metadata.isRequired() or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getTextMetadata

      Metadata getTextMetadata()
      Gets the metadata for the text.
      Returns:
      metadata for the text
      Compliance:
      mandatory - This method must be implemented.
    • setText

      void setText(String text)
      Sets the text.
      Parameters:
      text - the new text
      Throws:
      InvalidArgumentException - text is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - text is null
      Compliance:
      mandatory - This method must be implemented.
    • clearText

      void clearText()
      Clears the text.
      Throws:
      NoAccessException - Metadata.isRequired() or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getPostFormRecord

      PostFormRecord getPostFormRecord(Type postRecordType) throws OperationFailedException
      Gets the PostFormRecord corresponding to the given post record Type.
      Parameters:
      postRecordType - the post record type
      Returns:
      the post form record
      Throws:
      NullArgumentException - postRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(postRecordType) is false
      Compliance:
      mandatory - This method must be implemented.