public interface ContactForm extends OsidRelationshipForm
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.
Modifier and Type | Method and Description |
---|---|
void |
clearAddressee()
Clears the addressee.
|
Metadata |
getAddresseeMetadata()
Gets the metadata for the addressee.
|
ContactFormRecord |
getContactFormRecord(Type contactRecordType)
Gets the
ContactFormRecord corresponding to the given
contact record Type. |
void |
setAddressee(Id resourceId)
Sets the addressee.
|
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusType
getRequiredRecordTypes
getRecordTypes, hasRecordType
getDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocale
getId, isCurrent
clearEndDate, clearStartDate, getEndDateMetadata, getStartDateMetadata, setEndDate, setStartDate
Metadata getAddresseeMetadata()
mandatory
- This method must be implemented. void setAddressee(Id resourceId)
resourceId
- a resource Id
InvalidArgumentException
- resourceId
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- resourceId
is
null
mandatory
- This method must be implemented. void clearAddressee()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. ContactFormRecord getContactFormRecord(Type contactRecordType) throws OperationFailedException
ContactFormRecord
corresponding to the given
contact record Type.
contactRecordType
- the contact record typeNullArgumentException
- contactRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(contactRecordType)
is false
mandatory
- This method must be implemented.