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

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

public class SystemHandler
extends AbstractObjectTypeHandler

SystemHandler handles system creation using the new PCM API.


Field Summary
static java.lang.String SYSTEM_HANDLER_KEY
          key for default system handler service.
 
Constructor Summary
SystemHandler()
           
 
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

SYSTEM_HANDLER_KEY

public static final java.lang.String SYSTEM_HANDLER_KEY
key for default system handler service.
Constructor Detail

SystemHandler

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