Interface EntryForm

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

public interface EntryForm extends OsidObjectForm, OsidSourceableForm

This is the form for creating and updating Entries . Like all OsidForm objects, various data elements may be set here for use in the create and update methods in the EntryAdminSession . 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.
    • getSummaryMetadata

      Metadata getSummaryMetadata()
      Gets the metadata for the summary.
      Returns:
      metadata for the summary
      Compliance:
      mandatory - This method must be implemented.
    • setSummary

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

      void clearSummary()
      Clears the summary.
      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.
    • getCopyrightMetadata

      Metadata getCopyrightMetadata()
      Gets the metadata for the copyright.
      Returns:
      metadata for the copyright
      Compliance:
      mandatory - This method must be implemented.
    • setCopyright

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

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

      EntryFormRecord getEntryFormRecord(Type entryRecordType) throws OperationFailedException
      Gets the EntryFormRecord corresponding to the given Entry record Type .
      Parameters:
      entryRecordType - the entry record type
      Returns:
      the entry form record
      Throws:
      NullArgumentException - entryRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(entryRecordType) is false
      Compliance:
      mandatory - This method must be implemented.