Interface Customer
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject, Temporal
A Customer represents data associated to a resource
representing a customer. Contact information for this object can be
managed in the Contact OSID.
-
Method Summary
Modifier and TypeMethodDescriptionGets the activity.Gets the activityId.Gets the customer account number.getCustomerRecord(Type customerRecordType) Gets the customer record corresponding to the givenCustomerrecordType.This method is used to retrieve an object implementing the requested record.Gets the resource.Gets the resourceIdrepresenting the customer.booleanTests if this customer is linked to a financial activity,Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeModifier and TypeMethodDescriptionGets a list of properties.getPropertiesByRecordType(Type recordType) Gets a list of properties corresponding to the specified record type.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusTypeModifier and TypeMethodDescriptionGets the description associated with this instance of this OSID object.Gets the preferred display name associated with this instance of this OSID object appropriate for display to the user.Gets the genus type of this object.booleanisOfGenusType(Type genusType) Tests if this object is of the given genusType.Methods inherited from interface Temporal
getEndDate, getStartDate, isEffectiveModifier and TypeMethodDescriptionGets the end date.Gets the start date.booleanTests if the current date is within the start end end dates inclusive.
-
Method Details
-
getResourceId
Id getResourceId()Gets the resourceIdrepresenting the customer.- Returns:
- the resource
Id - Compliance:
mandatory- This method must be implemented.
-
getResource
Gets the resource.- Returns:
- the resource
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getCustomerNumber
String getCustomerNumber()Gets the customer account number.- Returns:
- the customer number
- Compliance:
mandatory- This method must be implemented.
-
hasActivity
boolean hasActivity()Tests if this customer is linked to a financial activity,- Returns:
trueif this customer has an activity,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getActivityId
Id getActivityId()Gets the activityId.- Returns:
- the activity
Id - Throws:
IllegalStateException-hasActivity()isfalse- Compliance:
mandatory- This method must be implemented.
-
getActivity
Gets the activity.- Returns:
- the activity
- Throws:
IllegalStateException-hasActivity()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getCustomerRecord
Gets the customer record corresponding to the givenCustomerrecordType.This method is used to retrieve an object implementing the requested record. ThecustomerRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(customerRecordType)istrue.- Parameters:
customerRecordType- the type of customer record to retrieve- Returns:
- the customer record
- Throws:
NullArgumentException-customerRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(customerRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-