|
SAP NetWeaver 7.30 Enterprise Portal (SP03) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IObjectTypeHandler
The interface that defines methods for creating a portal object while
executing a PCM wizard.
The handler implementation identifies the object type, creates an object
descriptor, fills it with the relevant data, and saves it in the
persistence layer.
Each type of portal object must have a handler implementation in order
to be supported by the PCM wizard toolkit. The PCM wizard toolkit calls this
interface both during and after the creation process.
The descriptor is the object that is saved in the persistence layer.
It holds a set of properties that form the new object.
This API is called from SavePane as follows:
// create new descriptor
Object descriptor = createObjectDescriptor(typeHandler,context);
// finalize the descriptor (add the attributes)
wizard.finalizeDescriptor(attributesMap, descriptor, context);
// save the object
typeHandler.saveObject(descriptor, context);
// finalize the object
wizard.finalizeObject(context);
...
The PCM wizard toolkit provides default handlers that can be re-used or
extended: iView, page, layout, system and producer (Global Portal).
The following describes how to use the handler mechanism:
AbstractObjectTypeHandler) or
implements this interface. In this case the implementing class can implement
IService for reuse, and publish its key as a service in the
portalapp.xml file, or it can be a core implementation for private use.handlerServiceKey in the portal
component profile. If the property exists, its value is used to lookup a
portal service.handlerClassName in the portal
component profile. If the property exists, its value is used to load a class.
ComponentType parameter
(ObjectCreationWizardConstants.OBJECT_TYPE_PARAM),
and looks for the correlating service from the public services.ObjectType parameter is known to be one
of the implemented types, there is no need to set the property for the handler
service; the toolkit finds it automatically.
handlerServiceKey property is applied,
and the handlerClassName property is disregarded.
AbstractPCMWizard| Method Summary | |
|---|---|
Object |
createObjectDescriptor(String targetId,
com.sap.portal.pcm.CreateMethod method,
IWizardContext context)
Deprecated. Creates a new object descriptor for storing the object data. |
void |
saveObject(Object descriptor,
IWizardContext context)
Deprecated. Saves the object in the persistence layer. |
| Method Detail |
|---|
Object createObjectDescriptor(String targetId,
com.sap.portal.pcm.CreateMethod method,
IWizardContext context)
throws DescriptorNotCreatedException
AbstractPCMWizard.finalizeDescriptor(Map, Object, com.sapportals.admin.wizardframework.api.IWizardContext).
targetId - a target object pathmethod - a creation method as defined by
CreateMethodcontext - the current wizard context
DescriptorNotCreatedException - if the descriptor cannot be
createdINewObjectDescriptor
void saveObject(Object descriptor,
IWizardContext context)
throws ObjectNotCreatedException
Context.bind(String, Object)
as the default.
descriptor - an object descriptorcontext - the current wizard context
ObjectNotCreatedException - if the save failsAbstractObjectTypeHandler.saveObject(Object, IWizardContext)| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] EP-RUNTIME
|
[sap.com] tc/ep/admin/api
|
api
|
EP-PIN
|
|
SAP NetWeaver 7.30 Enterprise Portal (SP03) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||