Liferay 7.0-ce-b4

com.liferay.portlet.exportimport.lar
Interface StagedModelDataHandler<T extends StagedModel>

All Known Implementing Classes:
BaseStagedModelDataHandler

public interface StagedModelDataHandler<T extends StagedModel>


Method Summary
 void deleteStagedModel(String uuid, long groupId, String className, String extraData)
           
 void deleteStagedModel(T stagedModel)
           
 void exportStagedModel(PortletDataContext portletDataContext, T stagedModel)
           
 T fetchMissingReference(String uuid, long groupId)
           
 T fetchStagedModelByUuidAndGroupId(String uuid, long groupId)
           
 List<T> fetchStagedModelsByUuidAndCompanyId(String uuid, long companyId)
           
 String[] getClassNames()
           
 String getDisplayName(T stagedModel)
           
 int[] getExportableStatuses()
           
 Map<String,String> getReferenceAttributes(PortletDataContext portletDataContext, T stagedModel)
           
 void importCompanyStagedModel(PortletDataContext portletDataContext, Element element)
          Deprecated. As of 7.0.0, replaced by importMissingReference(PortletDataContext, Element)
 void importCompanyStagedModel(PortletDataContext portletDataContext, String uuid, long classPK)
          Deprecated. As of 7.0.0, replaced by importMissingReference(PortletDataContext, String, long, long)
 void importMissingReference(PortletDataContext portletDataContext, Element referenceElement)
           
 void importMissingReference(PortletDataContext portletDataContext, String uuid, long groupId, long classPK)
           
 void importStagedModel(PortletDataContext portletDataContext, T stagedModel)
           
 void restoreStagedModel(PortletDataContext portletDataContext, T stagedModel)
           
 boolean validateReference(PortletDataContext portletDataContext, Element referenceElement)
           
 

Method Detail

deleteStagedModel

void deleteStagedModel(String uuid,
                       long groupId,
                       String className,
                       String extraData)
                       throws PortalException
Throws:
PortalException

deleteStagedModel

void deleteStagedModel(T stagedModel)
                       throws PortalException
Throws:
PortalException

exportStagedModel

void exportStagedModel(PortletDataContext portletDataContext,
                       T stagedModel)
                       throws PortletDataException
Throws:
PortletDataException

fetchMissingReference

T fetchMissingReference(String uuid,
                        long groupId)

fetchStagedModelByUuidAndGroupId

T fetchStagedModelByUuidAndGroupId(String uuid,
                                   long groupId)

fetchStagedModelsByUuidAndCompanyId

List<T> fetchStagedModelsByUuidAndCompanyId(String uuid,
                                            long companyId)

getClassNames

String[] getClassNames()

getDisplayName

String getDisplayName(T stagedModel)

getExportableStatuses

int[] getExportableStatuses()

getReferenceAttributes

Map<String,String> getReferenceAttributes(PortletDataContext portletDataContext,
                                          T stagedModel)

importCompanyStagedModel

@Deprecated
void importCompanyStagedModel(PortletDataContext portletDataContext,
                                         Element element)
                              throws PortletDataException
Deprecated. As of 7.0.0, replaced by importMissingReference(PortletDataContext, Element)

Throws:
PortletDataException

importCompanyStagedModel

@Deprecated
void importCompanyStagedModel(PortletDataContext portletDataContext,
                                         String uuid,
                                         long classPK)
                              throws PortletDataException
Deprecated. As of 7.0.0, replaced by importMissingReference(PortletDataContext, String, long, long)

Throws:
PortletDataException

importMissingReference

void importMissingReference(PortletDataContext portletDataContext,
                            Element referenceElement)
                            throws PortletDataException
Throws:
PortletDataException

importMissingReference

void importMissingReference(PortletDataContext portletDataContext,
                            String uuid,
                            long groupId,
                            long classPK)
                            throws PortletDataException
Throws:
PortletDataException

importStagedModel

void importStagedModel(PortletDataContext portletDataContext,
                       T stagedModel)
                       throws PortletDataException
Throws:
PortletDataException

restoreStagedModel

void restoreStagedModel(PortletDataContext portletDataContext,
                        T stagedModel)
                        throws PortletDataException
Throws:
PortletDataException

validateReference

boolean validateReference(PortletDataContext portletDataContext,
                          Element referenceElement)

Liferay 7.0-ce-b4