externalizable business objects

8
Externalizable Externalizable Business Objects Business Objects

Upload: adolfo

Post on 21-Jan-2016

46 views

Category:

Documents


0 download

DESCRIPTION

Externalizable Business Objects. ExternalizableBusinessObject. Essentially a marker interface Various parts of the KNS check for this interface. Sample Implementations in Rice. Uses. Allows for objects that are hosted by other systems to be used by a Rice application Rice Non-Rice - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Externalizable Business Objects

Externalizable Externalizable Business ObjectsBusiness Objects

Page 2: Externalizable Business Objects

ExternalizableBusinessObjectExternalizableBusinessObjectEssentially a marker interface

Various parts of the KNS check for this interface

Page 3: Externalizable Business Objects

Sample Implementations in RiceSample Implementations in Rice

Page 4: Externalizable Business Objects

UsesUses• Allows for objects that are hosted by

other systems to be used by a Rice application• Rice• Non-Rice

• Automatic integration (with appropriate configuration) with native business objects for lookup and inquiry purposes• Lookups can be performed on external systems

• And return results!

• Inquiries can be redirected to other systems• Lookups on native business objects can contain “joins” to

externalizable business objects.

Page 5: Externalizable Business Objects

Lookup HandlingLookup Handling• The lookup framework handles when it is

asked for a lookup of an externalizable business object.

• The object itself – delgates the entire lookup

• A property of an embedded EBO is used as search criteria on a native business object

• In that latter case, the default behavior is to use only the EBO property criteria which were specified and pass them to the module service to look up the matching EBOs.

• The resulting PK values are then merged into the native BO Query

• This system only supports EBOs with a single-field primary key.

Page 6: Externalizable Business Objects

Module ServiceModule Service

• Most are implemented for you in ModuleServiceBase

• Ones you will want/need to overide are:• getExternalizableBusinessObject

• getExternalizableBusinessObjectsList

• getExternalizableBusinessObjectsListForLookup

• listPrimaryKeyFieldNames

• getExternalizableBusinessObjectInquiryUrl

• getExternalizableBusinessObjectLookupUrl

Page 7: Externalizable Business Objects

Module Service ConfigurationModule Service Configuration• Configure Service with

ExternalizableBusinessObject interfaces and implementation pairs:

Page 8: Externalizable Business Objects

Module Service Module Service ImplementationImplementation

• In the methods shown earlier, detect the type of EBO and handle accordingly.