Interface ContactForm

All Superinterfaces:
Extensible, Identifiable, OsidBrowsableForm, OsidExtensibleForm, OsidForm, OsidIdentifiableForm, OsidObjectForm, OsidRelationshipForm, OsidTemporalForm, Suppliable
All Known Subinterfaces:
ContactBatchForm

public interface ContactForm extends OsidRelationshipForm

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

  • Method Details

    • getAddresseeMetadata

      Metadata getAddresseeMetadata()
      Gets the metadata for the addressee.
      Returns:
      metadata for the addressee
      Compliance:
      mandatory - This method must be implemented.
    • setAddressee

      void setAddressee(Id resourceId)
      Sets the addressee.
      Parameters:
      resourceId - a resource Id
      Throws:
      InvalidArgumentException - resourceId is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - resourceId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearAddressee

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

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