Develop > Presentation layer > Customize IBM Sales Center


Data model

The data model is used to cache business objects on the client. The TelesalesModelManager class provides access to the model and contains convenience methods for accessing and updating child objects. The default IBM Sales Center data model contains model objects that represent the operator, customers, orders, products and other commonly used objects. All of the objects found in the client cache are instances of ModelObject. You can store additional properties in a model object using the setData and getData methods. You can also add listeners to model objects that will be notified of any change to the model object. If a property is a list of model objects, use the ModelObjectList instead of a generic container object to ensure that property notification is handled properly. Listeners will be notified if any changes to model objects that are properties of the model object that you are listening to. If you define a listener to the root model object, the listener will be notified of all changes to the model.

There is a factory class: TelesalesModelObjectFactory, that should be used to create new instances of model objects. There is also a model object extension point that lets you register new model objects. This factory and extension provide support for replacing existing model object implementations with a new implementation. The new implementation must subclass the base model object.


Related concepts

Overview of customizing IBM Sales Center


Related tasks

Add a model object

Add properties to a model object

Add change notification to the data model


+

Search Tips   |   Advanced Search