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

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

public class LayoutHandler
extends AbstractObjectTypeHandler

LayoutHandler handles layout creation using the new PCM API.


Field Summary
static java.lang.String LAYOUT_HANDLER_KEY
          key for default layout handler service.
 
Constructor Summary
LayoutHandler()
           
 
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

LAYOUT_HANDLER_KEY

public static final java.lang.String LAYOUT_HANDLER_KEY
key for default layout handler service.
Constructor Detail

LayoutHandler

public LayoutHandler()
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