public interface Contact extends OsidRelationship
A Contact
relates a reference Id
to an
address and addresse. The contact addressee is expressed as a
Resource.
For example, a contact for a Repository
would have the repository Id
as the reference, and the
person to contact as the addressee. When specifying Contacts
for external Resources,
the reference Id
and the addressee may be the same.
Multiple contacts may be related to an Id
sorted by
priority. A Contact
is available for use on the specified
weekdays and within a time of day. The genus Type
of the
Contact
may be used to provide further detail on how the
context or usage of this Contact.
Modifier and Type | Method and Description |
---|---|
Address |
getAddress()
Gets the subscriber's address.
|
Resource |
getAddressee()
Gets the addressee.
|
Id |
getAddresseeId()
Gets the
Id of the addressee. |
Id |
getAddressId()
Gets the
Id of the subscriber's address. |
ContactRecord |
getContactRecord(Type contactRecordType)
Gets the contact record corresponding to the given
Contact
record Type. |
Id |
getReferenceId()
Gets the
Id of the reference. |
getEndReason, getEndReasonId, hasEndReason
getDescription, getDisplayName, getGenusType, isOfGenusType
getId, isCurrent
getRecordTypes, hasRecordType
getProperties, getPropertiesByRecordType
getEndDate, getStartDate, isEffective
Id getReferenceId()
Id
of the reference. Id
mandatory
- This method must be implemented. Id getAddresseeId()
Id
of the addressee. Id
mandatory
- This method must be implemented. Resource getAddressee() throws OperationFailedException
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. Id getAddressId()
Id
of the subscriber's address. Id
mandatory
- This method must be implemented. Address getAddress() throws OperationFailedException
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. ContactRecord getContactRecord(Type contactRecordType) throws OperationFailedException
Contact
record Type.
This method is used to retrieve an
object implementing the requested record. The contactRecordType
may be the Type
returned in
getRecordTypes()
or any of its parents in a Type
hierarchy where hasRecordType(contactRecordType)
is true
.contactRecordType
- the type of contact record to retrieveNullArgumentException
- contactRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(contactRecordType)
is false
mandatory
- This method must be implemented.