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

java.lang.Object
  |
  +--com.sap.portal.admin.wizard.handlers.AbstractObjectTypeHandler
All Implemented Interfaces:
IObjectTypeHandler
Direct Known Subclasses:
IViewHandler, LayoutHandler, PageHandler, ProducerPortalHandler, SystemHandler

public abstract class AbstractObjectTypeHandler
extends java.lang.Object
implements IObjectTypeHandler

AbstractObjectTypeHandler provides default implementation to save the new object into the PCM, thus the specific handler needs to implement only the abstract part (it can override the save method if it needs to).


Constructor Summary
AbstractObjectTypeHandler()
           
 
Method Summary
 void saveObject(java.lang.Object descriptor, IWizardContext context)
          Saves the object in the persistence.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sap.portal.admin.wizard.handlers.IObjectTypeHandler
createObjectDescriptor
 

Constructor Detail

AbstractObjectTypeHandler

public AbstractObjectTypeHandler()
Method Detail

saveObject

public void saveObject(java.lang.Object descriptor,
                       IWizardContext context)
                throws ObjectNotCreatedException
Description copied from interface: IObjectTypeHandler
Saves the object in the persistence. Which method to use in order save the object is up to the wizard developer. The toolkit uses bind() as default.
Specified by:
saveObject in interface IObjectTypeHandler
Following copied from interface: com.sap.portal.admin.wizard.handlers.IObjectTypeHandler
Parameters:
descriptor - the object descriptor, ready for save.
context - wizard context.
Throws:
ObjectNotCreatedException - if the save has failed.
See Also:
saveObject(Object, IWizardContext), Context.bind(String, Object)