com.sap.portal.httpconnectivity.urlfetcherservice

Interface IDataHandler


public interface IDataHandler

This interface is used for saving data. The data saved according to this interface implementation (it can be saved to PCD and other places). This interface is wrapper for the classes that holds the data (or saving/retreiving data - ita can be a types of contexts, PCMobjects, PCD and etc.)
If the wrapped class don't have functionality for all the methods defined in the interface - ignore the implementation (save() is not supported by all the classes)

A sample usage might be:

                IPortalComponentProfile profile = request.getComponentContext().getProfile();
                //IPortalComponentProfile -                     class that you would like to wrap.
                // PortalComponentProfileDataHandler -  your implementation of IDataHandler interface.
                IDataHandler dataHandler = new PortalComponentProfileDataHandler(profile);
 


created May 27, 2003


Method Summary
 Object getMetaAttribute(String propertyName, String arg2)
          Gets the property object.
 Object getProperty(String key)
          Gets the property object.
 void putMetaAttribute(String propertyName, String arg2, String arg3)
          Puts a meta attribute value for some property.
 void removeProperty(String key)
          Removes the property.
 void save()
          Saves the changes.
 void setDataHandler(Object ctx)
          Set the active data handler that do the real work.
 void setProperty(String key, Object obj)
          Sets the property object.
 

Method Detail

setDataHandler

void setDataHandler(Object ctx)
Set the active data handler that do the real work.

Parameters:
ctx - description

getProperty

Object getProperty(String key)
Gets the property object.

Parameters:
key - property key
Returns:
text attributes

setProperty

void setProperty(String key,
                 Object obj)
Sets the property object.

Parameters:
key - property key
obj - property Value

removeProperty

void removeProperty(String key)
Removes the property.

Parameters:
key - property key

putMetaAttribute

void putMetaAttribute(String propertyName,
                      String arg2,
                      String arg3)
Puts a meta attribute value for some property.

Parameters:
propertyName - - attribute name
arg2 - meta attribute name
arg3 - attribute value

getMetaAttribute

Object getMetaAttribute(String propertyName,
                        String arg2)
Gets the property object.

Parameters:
propertyName -
arg2 -

save

void save()
Saves the changes.

Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] EP-ADMIN [sap.com] tc/ep/admin/api/extd api EP-PIN


Copyright 2011 SAP AG Complete Copyright Notice