|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.liferay.portal.lar.InvokerPortletDataHandler
public class InvokerPortletDataHandler
Constructor Summary | |
---|---|
InvokerPortletDataHandler(PortletDataHandler portletDataHandler,
java.lang.ClassLoader classLoader)
|
Method Summary | |
---|---|
javax.portlet.PortletPreferences |
deleteData(PortletDataContext context,
java.lang.String portletId,
javax.portlet.PortletPreferences preferences)
Deletes the data created by the portlet. |
java.lang.String |
exportData(PortletDataContext context,
java.lang.String portletId,
javax.portlet.PortletPreferences preferences)
Returns a string of data to be placed in the <portlet-data> section of the LAR file. |
PortletDataHandlerControl[] |
getExportControls()
Returns an array of the controls defined for this data handler. |
PortletDataHandlerControl[] |
getImportControls()
Returns an array of the controls defined for this data handler. |
javax.portlet.PortletPreferences |
importData(PortletDataContext context,
java.lang.String portletId,
javax.portlet.PortletPreferences preferences,
java.lang.String data)
Handles any special processing of the data when the portlet is imported into a new layout. |
boolean |
isAlwaysExportable()
Returns true to allow the user to export data for this portlet even though it may not belong to any pages. |
boolean |
isPublishToLiveByDefault()
Returns whether the data exported by this handler should be included by default when publishing to live. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InvokerPortletDataHandler(PortletDataHandler portletDataHandler, java.lang.ClassLoader classLoader)
Method Detail |
---|
public javax.portlet.PortletPreferences deleteData(PortletDataContext context, java.lang.String portletId, javax.portlet.PortletPreferences preferences) throws PortletDataException
PortletDataHandler
preferences
if it contains reference to data that
does not exist anymore.
deleteData
in interface PortletDataHandler
context
- the context of the data deletionportletId
- the portlet id of the portletpreferences
- the portlet preferences of the portlet
PortletDataException
public java.lang.String exportData(PortletDataContext context, java.lang.String portletId, javax.portlet.PortletPreferences preferences) throws PortletDataException
PortletDataHandler
data
parameter of importData()
.
exportData
in interface PortletDataHandler
context
- the context of the data exportportletId
- the portlet id of the portletpreferences
- the portlet preferences of the portlet
PortletDataException
public PortletDataHandlerControl[] getExportControls() throws PortletDataException
PortletDataHandler
getExportControls
in interface PortletDataHandler
PortletDataException
public PortletDataHandlerControl[] getImportControls() throws PortletDataException
PortletDataHandler
getImportControls
in interface PortletDataHandler
PortletDataException
public javax.portlet.PortletPreferences importData(PortletDataContext context, java.lang.String portletId, javax.portlet.PortletPreferences preferences, java.lang.String data) throws PortletDataException
PortletDataHandler
preferences
to be saved in the new portlet.
importData
in interface PortletDataHandler
context
- the context of the data importportletId
- the portlet id of the portletpreferences
- the portlet preferences of the portletdata
- the string data that was returned by
exportData()
PortletDataException
public boolean isAlwaysExportable()
PortletDataHandler
isAlwaysExportable
in interface PortletDataHandler
public boolean isPublishToLiveByDefault()
PortletDataHandler
isPublishToLiveByDefault
in interface PortletDataHandler
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |