OSID Logo
OSID Specifications
contact package
Version 3.0.0
Release Candidate Preview
Interfaceosid.contact.ContactForm
Implementsosid.OsidRelationshipForm
Description

This is the form for creating and updating Contact objects. 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.

MethodgetAddresseeMetadata
Description

Gets the metadata for the addressee.

Returnosid.Metadatametadata for the addressee
CompliancemandatoryThis method must be implemented.
MethodsetAddressee
Description

Sets the addressee.

Parametersosid.id.IdresourceIda resource Id
ErrorsINVALID_ARGUMENT resourceId is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT resourceId is null
CompliancemandatoryThis method must be implemented.
MethodclearAddressee
Description

Clears the addressee.

ErrorsNO_ACCESS Metadata.isRequired() or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetContactFormRecord
Description

Gets the ContactFormRecord corresponding to the given contact record Type.

Parametersosid.type.TypecontactRecordTypethe contact record type
Returnosid.contact.records.ContactFormRecordthe contact form record
ErrorsNULL_ARGUMENT contactRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(contactRecordType) is false
CompliancemandatoryThis method must be implemented.