com.sap.portal.admin.wizard.handlers
Class PageHandler

java.lang.Object
  |
  +--com.sap.portal.admin.wizard.handlers.AbstractObjectTypeHandler
        |
        +--com.sap.portal.admin.wizard.handlers.PageHandler
All Implemented Interfaces:
IObjectTypeHandler

public class PageHandler
extends AbstractObjectTypeHandler

PageHandler handles page creation using the new PCM API.


Field Summary
static java.lang.String PAGE_HANDLER_KEY
          key for default page handler service.
 
Constructor Summary
PageHandler()
           
 
Method Summary
 java.lang.Object createObjectDescriptor(java.lang.String targetId, com.sap.portal.pcm.CreateMethod method, IWizardContext context)
          Create a new object descriptor that is in charge of storing the object's data.
 
Methods inherited from class com.sap.portal.admin.wizard.handlers.AbstractObjectTypeHandler
saveObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PAGE_HANDLER_KEY

public static final java.lang.String PAGE_HANDLER_KEY
key for default page handler service.
Constructor Detail

PageHandler

public PageHandler()
Method Detail

createObjectDescriptor

public java.lang.Object createObjectDescriptor(java.lang.String targetId,
                                               com.sap.portal.pcm.CreateMethod method,
                                               IWizardContext context)
                                        throws DescriptorNotCreatedException
Description copied from interface: IObjectTypeHandler
Create a new object descriptor that is in charge of storing the object's data. The PCM uses it to save the new object into the persistence.
Every handler generates implementation dependent descriptor that implements this interface.

Note: the implementation should deal only with the descriptor creation. Everything else should be would be implemented in AbstractPCMWizard.finalizeDescriptor(Map, Object, com.sapportals.admin.wizardframework.api.IWizardContext).

Following copied from interface: com.sap.portal.admin.wizard.handlers.IObjectTypeHandler
Parameters:
targetId - the target path.
method - creation method CreateMethod
context - the wizard context
Returns:
Object the newly created descriptor.
Throws:
DescriptorNotCreatedException - if the descriptor failed to be created.
See Also:
INewObjectDescriptor