Liferay 7.0-ce-b4

com.liferay.portlet.exportimport.lar
Class StagedModelDataHandlerUtil

java.lang.Object
  extended by com.liferay.portlet.exportimport.lar.StagedModelDataHandlerUtil

@ProviderType
public class StagedModelDataHandlerUtil
extends Object


Constructor Summary
StagedModelDataHandlerUtil()
           
 
Method Summary
static void deleteStagedModel(PortletDataContext portletDataContext, Element deletionElement)
           
protected static void doImportReferenceStagedModel(PortletDataContext portletDataContext, Element referenceElement, String stagedModelClassName)
           
static
<T extends StagedModel>
Element
exportReferenceStagedModel(PortletDataContext portletDataContext, String referrerPortletId, T stagedModel)
           
static
<T extends StagedModel,U extends StagedModel>
Element
exportReferenceStagedModel(PortletDataContext portletDataContext, T referrerStagedModel, Class<?> referrerStagedModelClass, U stagedModel, Class<?> stagedModelClass, String referenceType)
          Deprecated. As of 7.0.0, replaced by exportReferenceStagedModel(PortletDataContext, StagedModel, StagedModel, String)
static
<T extends StagedModel,U extends StagedModel>
Element
exportReferenceStagedModel(PortletDataContext portletDataContext, T referrerStagedModel, Element referrerStagedModelElement, U stagedModel, Class<?> stagedModelClass, String referenceType)
          Deprecated. As of 7.0.0, replaced by exportReferenceStagedModel(PortletDataContext, StagedModel, StagedModel, String)
static
<T extends StagedModel,U extends StagedModel>
Element
exportReferenceStagedModel(PortletDataContext portletDataContext, T referrerStagedModel, U stagedModel, String referenceType)
           
static
<T extends StagedModel>
void
exportStagedModel(PortletDataContext portletDataContext, T stagedModel)
           
static
<T extends StagedModel>
String
getDisplayName(T stagedModel)
           
static Map<String,String> getReferenceAttributes(PortletDataContext portletDataContext, StagedModel stagedModel)
           
static void importReferenceStagedModel(PortletDataContext portletDataContext, Class<?> stagedModelClass, long classPK)
          Imports the staged model that is referenced by a portlet.
static void importReferenceStagedModel(PortletDataContext portletDataContext, String stagedModelClassName, long classPK)
          Imports the staged model that is referenced by a portlet.
static
<T extends StagedModel>
void
importReferenceStagedModel(PortletDataContext portletDataContext, T referrerStagedModel, Class<?> stagedModelClass, long classPK)
          Imports the staged model that is referenced by another staged model.
static
<T extends StagedModel>
void
importReferenceStagedModel(PortletDataContext portletDataContext, T referrerStagedModel, String stagedModelClassName, long classPK)
          Imports the staged model that is referenced by another staged model.
static void importReferenceStagedModels(PortletDataContext portletDataContext, Class<?> stagedModelClass)
           
static
<T extends StagedModel>
void
importReferenceStagedModels(PortletDataContext portletDataContext, T referrerStagedModel, Class<?> stagedModelClass)
           
static void importStagedModel(PortletDataContext portletDataContext, Element element)
           
static
<T extends StagedModel>
void
importStagedModel(PortletDataContext portletDataContext, T stagedModel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StagedModelDataHandlerUtil

public StagedModelDataHandlerUtil()
Method Detail

deleteStagedModel

public static void deleteStagedModel(PortletDataContext portletDataContext,
                                     Element deletionElement)
                              throws PortalException
Throws:
PortalException

exportReferenceStagedModel

public static <T extends StagedModel> Element exportReferenceStagedModel(PortletDataContext portletDataContext,
                                                                         String referrerPortletId,
                                                                         T stagedModel)
                                          throws PortletDataException
Throws:
PortletDataException

exportReferenceStagedModel

@Deprecated
public static <T extends StagedModel,U extends StagedModel> Element exportReferenceStagedModel(PortletDataContext portletDataContext,
                                                                                                          T referrerStagedModel,
                                                                                                          Class<?> referrerStagedModelClass,
                                                                                                          U stagedModel,
                                                                                                          Class<?> stagedModelClass,
                                                                                                          String referenceType)
                                          throws PortletDataException
Deprecated. As of 7.0.0, replaced by exportReferenceStagedModel(PortletDataContext, StagedModel, StagedModel, String)

Throws:
PortletDataException

exportReferenceStagedModel

@Deprecated
public static <T extends StagedModel,U extends StagedModel> Element exportReferenceStagedModel(PortletDataContext portletDataContext,
                                                                                                          T referrerStagedModel,
                                                                                                          Element referrerStagedModelElement,
                                                                                                          U stagedModel,
                                                                                                          Class<?> stagedModelClass,
                                                                                                          String referenceType)
                                          throws PortletDataException
Deprecated. As of 7.0.0, replaced by exportReferenceStagedModel(PortletDataContext, StagedModel, StagedModel, String)

Throws:
PortletDataException

exportReferenceStagedModel

public static <T extends StagedModel,U extends StagedModel> Element exportReferenceStagedModel(PortletDataContext portletDataContext,
                                                                                               T referrerStagedModel,
                                                                                               U stagedModel,
                                                                                               String referenceType)
                                          throws PortletDataException
Throws:
PortletDataException

exportStagedModel

public static <T extends StagedModel> void exportStagedModel(PortletDataContext portletDataContext,
                                                             T stagedModel)
                              throws PortletDataException
Throws:
PortletDataException

getDisplayName

public static <T extends StagedModel> String getDisplayName(T stagedModel)

getReferenceAttributes

public static Map<String,String> getReferenceAttributes(PortletDataContext portletDataContext,
                                                        StagedModel stagedModel)

importReferenceStagedModel

public static void importReferenceStagedModel(PortletDataContext portletDataContext,
                                              Class<?> stagedModelClass,
                                              long classPK)
                                       throws PortletDataException
Imports the staged model that is referenced by a portlet. To import a staged model referenced by another staged model, use importReferenceStagedModel(PortletDataContext, StagedModel, Class, long).

Parameters:
portletDataContext - the portlet data context of the current process
stagedModelClass - the class of the referenced staged model to be imported
classPK - the primary key of the referenced staged model to be imported
Throws:
PortletDataException - if a portlet data exception occurred

importReferenceStagedModel

public static void importReferenceStagedModel(PortletDataContext portletDataContext,
                                              String stagedModelClassName,
                                              long classPK)
                                       throws PortletDataException
Imports the staged model that is referenced by a portlet. To import a staged model referenced by another staged model, use importReferenceStagedModel(PortletDataContext, StagedModel, String, long).

Parameters:
portletDataContext - the portlet data context of the current process
stagedModelClassName - the class name of the referenced staged model to be imported
classPK - the primary key of the referenced staged model to be imported
Throws:
PortletDataException - if a portlet data exception occurred

importReferenceStagedModel

public static <T extends StagedModel> void importReferenceStagedModel(PortletDataContext portletDataContext,
                                                                      T referrerStagedModel,
                                                                      Class<?> stagedModelClass,
                                                                      long classPK)
                                       throws PortletDataException
Imports the staged model that is referenced by another staged model. To import a staged model referenced by a portlet, use importReferenceStagedModel(PortletDataContext, Class, long).

Parameters:
portletDataContext - the portlet data context of the current process
referrerStagedModel - the staged model that references the staged model to be imported
stagedModelClass - the class of the referenced staged model to be imported
classPK - the primary key of the referenced staged model to be imported
Throws:
PortletDataException - if a portlet data exception occurred

importReferenceStagedModel

public static <T extends StagedModel> void importReferenceStagedModel(PortletDataContext portletDataContext,
                                                                      T referrerStagedModel,
                                                                      String stagedModelClassName,
                                                                      long classPK)
                                       throws PortletDataException
Imports the staged model that is referenced by another staged model. To import a staged model referenced by a portlet, use importReferenceStagedModel(PortletDataContext, String, long).

Parameters:
portletDataContext - the portlet data context of the current process
referrerStagedModel - the staged model that references the staged model to be imported
stagedModelClassName - the class name of the referenced staged model to be imported
classPK - the primary key of the referenced staged model to be imported
Throws:
PortletDataException - if a portlet data exception occurred

importReferenceStagedModels

public static void importReferenceStagedModels(PortletDataContext portletDataContext,
                                               Class<?> stagedModelClass)
                                        throws PortletDataException
Throws:
PortletDataException

importReferenceStagedModels

public static <T extends StagedModel> void importReferenceStagedModels(PortletDataContext portletDataContext,
                                                                       T referrerStagedModel,
                                                                       Class<?> stagedModelClass)
                                        throws PortletDataException
Throws:
PortletDataException

importStagedModel

public static void importStagedModel(PortletDataContext portletDataContext,
                                     Element element)
                              throws PortletDataException
Throws:
PortletDataException

importStagedModel

public static <T extends StagedModel> void importStagedModel(PortletDataContext portletDataContext,
                                                             T stagedModel)
                              throws PortletDataException
Throws:
PortletDataException

doImportReferenceStagedModel

protected static void doImportReferenceStagedModel(PortletDataContext portletDataContext,
                                                   Element referenceElement,
                                                   String stagedModelClassName)
                                            throws PortletDataException
Throws:
PortletDataException

Liferay 7.0-ce-b4