Liferay 7.0-ce-m3

com.liferay.portal.lar
Class ExportImportHelperImpl

java.lang.Object
  extended by com.liferay.portal.lar.ExportImportHelperImpl
All Implemented Interfaces:
ExportImportHelper

public class ExportImportHelperImpl
extends Object
implements ExportImportHelper


Field Summary
 
Fields inherited from interface com.liferay.portal.kernel.lar.ExportImportHelper
DATA_HANDLER_COMPANY_SECURE_URL, DATA_HANDLER_COMPANY_URL, DATA_HANDLER_GROUP_FRIENDLY_URL, DATA_HANDLER_PATH_CONTEXT, DATA_HANDLER_PRIVATE_GROUP_SERVLET_MAPPING, DATA_HANDLER_PRIVATE_LAYOUT_SET_SECURE_URL, DATA_HANDLER_PRIVATE_LAYOUT_SET_URL, DATA_HANDLER_PRIVATE_USER_SERVLET_MAPPING, DATA_HANDLER_PUBLIC_LAYOUT_SET_SECURE_URL, DATA_HANDLER_PUBLIC_LAYOUT_SET_URL, DATA_HANDLER_PUBLIC_SERVLET_MAPPING, TEMP_FOLDER_NAME
 
Constructor Summary
ExportImportHelperImpl()
           
 
Method Summary
protected  void addCreateDateProperty(PortletDataContext portletDataContext, DynamicQuery dynamicQuery)
           
protected  void deleteTimestampParameters(StringBuilder sb, int beginPos)
           
protected  void doAddCriteria(PortletDataContext portletDataContext, StagedModelType stagedModelType, DynamicQuery dynamicQuery)
           
 Calendar getCalendar(PortletRequest portletRequest, String paramPrefix, boolean timeZoneSensitive)
          Deprecated. As of 7.0.0, moved to ExportImportDateUtil.getCalendar(PortletRequest, String, boolean)
 DateRange getDateRange(PortletRequest portletRequest, long groupId, boolean privateLayout, long plid, String portletId, String defaultRange)
          Deprecated. As of 7.0.0, moved to ExportImportDateUtil.getDateRange(PortletRequest, long, boolean, long, String, String)
protected  Map<String,String[]> getDLReferenceParameters(PortletDataContext portletDataContext, String content, int beginPos, int endPos)
           
 Layout getExportableLayout(ThemeDisplay themeDisplay)
           
 String getExportableRootPortletId(long companyId, String portletId)
           
 boolean[] getExportPortletControls(long companyId, String portletId, Map<String,String[]> parameterMap)
          Deprecated. As of 7.0.0, replaced by getExportPortletControlsMap(long, String, Map)
 boolean[] getExportPortletControls(long companyId, String portletId, Map<String,String[]> parameterMap, String type)
          Deprecated. As of 7.0.0, replaced by getExportPortletControlsMap(long, String, Map, String)
 Map<String,Boolean> getExportPortletControlsMap(long companyId, String portletId, Map<String,String[]> parameterMap)
           
 Map<String,Boolean> getExportPortletControlsMap(long companyId, String portletId, Map<String,String[]> parameterMap, String type)
           
protected  boolean getExportPortletData(long companyId, String portletId, Map<String,String[]> parameterMap)
           
protected  String getExportPortletPreferencesUuid(PortletDataContext portletDataContext, Portlet portlet, String className, long primaryKeyLong)
           
protected  Map<String,Boolean> getExportPortletSetupControlsMap(long companyId, String portletId, Map<String,String[]> parameterMap, String type)
           
protected  FileEntry getFileEntry(Map<String,String[]> map)
           
 boolean[] getImportPortletControls(long companyId, String portletId, Map<String,String[]> parameterMap, Element portletDataElement)
          Deprecated. As of 7.0.0, replaced by getImportPortletControlsMap(long, String, Map, Element, ManifestSummary)
 boolean[] getImportPortletControls(long companyId, String portletId, Map<String,String[]> parameterMap, Element portletDataElement, ManifestSummary manifestSummary)
          Deprecated. As of 7.0.0, replaced by getImportPortletControlsMap(long, String, Map, Element, ManifestSummary)
 Map<String,Boolean> getImportPortletControlsMap(long companyId, String portletId, Map<String,String[]> parameterMap, Element portletDataElement, ManifestSummary manifestSummary)
           
protected  boolean getImportPortletData(long companyId, String portletId, Map<String,String[]> parameterMap, Element portletDataElement)
           
protected  Long getImportPortletPreferencesNewPrimaryKey(PortletDataContext portletDataContext, Class<?> clazz, long companyGroupId, Map<Long,Long> primaryKeys, String uuid)
           
protected  Map<String,Boolean> getImportPortletSetupControlsMap(long companyId, String portletId, Map<String,String[]> parameterMap, ManifestSummary manifestSummary)
           
 Map<Long,Boolean> getLayoutIdMap(PortletRequest portletRequest)
           
 long[] getLayoutIds(List<Layout> layouts)
           
 long[] getLayoutIds(Map<Long,Boolean> layoutIdMap)
           
 long[] getLayoutIds(Map<Long,Boolean> layoutIdMap, long targetGroupId)
           
 long[] getLayoutIds(PortletRequest portletRequest)
           
 long[] getLayoutIds(PortletRequest portletRequest, long targetGroupId)
           
 ManifestSummary getManifestSummary(long userId, long groupId, Map<String,String[]> parameterMap, File file)
          Deprecated. As of 7.0.0, replaced by getManifestSummary(PortletDataContext)
 ManifestSummary getManifestSummary(long userId, long groupId, Map<String,String[]> parameterMap, FileEntry fileEntry)
           
 ManifestSummary getManifestSummary(PortletDataContext portletDataContext)
           
 List<Layout> getMissingParentLayouts(Layout layout, long liveGroupId)
           
 long getModelDeletionCount(PortletDataContext portletDataContext, StagedModelType stagedModelType)
           
 String getSelectedLayoutsJSON(long groupId, boolean privateLayout, String selectedNodes)
           
 FileEntry getTempFileEntry(long groupId, long userId, String folderName)
           
 UserIdStrategy getUserIdStrategy(long userId, String userIdStrategy)
           
 boolean isReferenceWithinExportScope(PortletDataContext portletDataContext, StagedModel stagedModel)
           
protected  boolean populateLayoutsJSON(JSONArray layoutsJSONArray, Layout layout, long[] selectedLayoutIds)
           
 String replaceExportContentReferences(PortletDataContext portletDataContext, StagedModel entityStagedModel, Element entityElement, String content, boolean exportReferencedContent)
          Deprecated. As of 7.0.0, replaced by replaceExportContentReferences(PortletDataContext, StagedModel, String, boolean)
 String replaceExportContentReferences(PortletDataContext portletDataContext, StagedModel entityStagedModel, String content, boolean exportReferencedContent)
           
 String replaceExportDLReferences(PortletDataContext portletDataContext, StagedModel entityStagedModel, Element entityElement, String content, boolean exportReferencedContent)
          Deprecated. As of 7.0.0, replaced by replaceExportDLReferences(PortletDataContext, StagedModel, String, boolean)
 String replaceExportDLReferences(PortletDataContext portletDataContext, StagedModel entityStagedModel, String content, boolean exportReferencedContent)
           
protected  String replaceExportHostname(PortletDataContext portletDataContext, String url, StringBundler urlSB)
           
 String replaceExportLayoutReferences(PortletDataContext portletDataContext, String content)
           
 String replaceExportLayoutReferences(PortletDataContext portletDataContext, String content, boolean exportReferencedContent)
          Deprecated. As of 7.0.0, replaced by replaceExportLayoutReferences(PortletDataContext, String)
 String replaceExportLinksToLayouts(PortletDataContext portletDataContext, StagedModel entityStagedModel, Element entityElement, String content, boolean exportReferencedContent)
          Deprecated. As of 7.0.0, replaced by replaceExportLinksToLayouts(PortletDataContext, StagedModel, String)
 String replaceExportLinksToLayouts(PortletDataContext portletDataContext, StagedModel entityStagedModel, String content)
           
 String replaceImportContentReferences(PortletDataContext portletDataContext, Element entityElement, String content, boolean importReferencedContent)
          Deprecated. As of 7.0.0, replaced by replaceImportContentReferences(PortletDataContext, StagedModel, String)
 String replaceImportContentReferences(PortletDataContext portletDataContext, StagedModel entityStagedModel, String content)
           
 String replaceImportDLReferences(PortletDataContext portletDataContext, Element entityElement, String content, boolean importReferencedContent)
          Deprecated. As of 7.0.0, replaced by replaceImportDLReferences(PortletDataContext, StagedModel, String)
 String replaceImportDLReferences(PortletDataContext portletDataContext, StagedModel entityStagedModel, String content)
           
 String replaceImportLayoutReferences(PortletDataContext portletDataContext, String content)
           
 String replaceImportLayoutReferences(PortletDataContext portletDataContext, String content, boolean importReferencedContent)
          Deprecated. As of 7.0.0, replaced by replaceImportLayoutReferences(PortletDataContext, String)
 String replaceImportLinksToLayouts(PortletDataContext portletDataContext, String content)
           
 String replaceImportLinksToLayouts(PortletDataContext portletDataContext, String content, boolean importReferencedContent)
          Deprecated. As of 7.0.0, replaced by replaceImportLinksToLayouts(PortletDataContext, String)
 void updateExportPortletPreferencesClassPKs(PortletDataContext portletDataContext, Portlet portlet, PortletPreferences portletPreferences, String key, String className)
           
 void updateExportPortletPreferencesClassPKs(PortletDataContext portletDataContext, Portlet portlet, PortletPreferences portletPreferences, String key, String className, Element rootElement)
          Deprecated. As of 7.0.0, replaced by updateExportPortletPreferencesClassPKs(PortletDataContext, Portlet, PortletPreferences, String, String)
 void updateImportPortletPreferencesClassPKs(PortletDataContext portletDataContext, PortletPreferences portletPreferences, String key, Class<?> clazz, long companyGroupId)
           
protected  MissingReference validateMissingReference(PortletDataContext portletDataContext, Element element)
           
 MissingReferences validateMissingReferences(long userId, long groupId, Map<String,String[]> parameterMap, File file)
          Deprecated. As of 7.0.0, replaced by validateMissingReferences(PortletDataContext)
 MissingReferences validateMissingReferences(PortletDataContext portletDataContext)
           
 void writeManifestSummary(Document document, ManifestSummary manifestSummary)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExportImportHelperImpl

public ExportImportHelperImpl()
Method Detail

getCalendar

@Deprecated
public Calendar getCalendar(PortletRequest portletRequest,
                                       String paramPrefix,
                                       boolean timeZoneSensitive)
Deprecated. As of 7.0.0, moved to ExportImportDateUtil.getCalendar(PortletRequest, String, boolean)

Specified by:
getCalendar in interface ExportImportHelper

getDateRange

@Deprecated
public DateRange getDateRange(PortletRequest portletRequest,
                                         long groupId,
                                         boolean privateLayout,
                                         long plid,
                                         String portletId,
                                         String defaultRange)
                       throws Exception
Deprecated. As of 7.0.0, moved to ExportImportDateUtil.getDateRange(PortletRequest, long, boolean, long, String, String)

Specified by:
getDateRange in interface ExportImportHelper
Throws:
Exception

getExportableLayout

public Layout getExportableLayout(ThemeDisplay themeDisplay)
                           throws PortalException
Specified by:
getExportableLayout in interface ExportImportHelper
Throws:
PortalException

getExportableRootPortletId

public String getExportableRootPortletId(long companyId,
                                         String portletId)
                                  throws Exception
Specified by:
getExportableRootPortletId in interface ExportImportHelper
Throws:
Exception

getExportPortletControls

@Deprecated
public boolean[] getExportPortletControls(long companyId,
                                                     String portletId,
                                                     Map<String,String[]> parameterMap)
                                   throws Exception
Deprecated. As of 7.0.0, replaced by getExportPortletControlsMap(long, String, Map)

Specified by:
getExportPortletControls in interface ExportImportHelper
Throws:
Exception

getExportPortletControls

@Deprecated
public boolean[] getExportPortletControls(long companyId,
                                                     String portletId,
                                                     Map<String,String[]> parameterMap,
                                                     String type)
                                   throws Exception
Deprecated. As of 7.0.0, replaced by getExportPortletControlsMap(long, String, Map, String)

Specified by:
getExportPortletControls in interface ExportImportHelper
Throws:
Exception

getExportPortletControlsMap

public Map<String,Boolean> getExportPortletControlsMap(long companyId,
                                                       String portletId,
                                                       Map<String,String[]> parameterMap)
                                                throws Exception
Specified by:
getExportPortletControlsMap in interface ExportImportHelper
Throws:
Exception

getExportPortletControlsMap

public Map<String,Boolean> getExportPortletControlsMap(long companyId,
                                                       String portletId,
                                                       Map<String,String[]> parameterMap,
                                                       String type)
                                                throws Exception
Specified by:
getExportPortletControlsMap in interface ExportImportHelper
Throws:
Exception

getImportPortletControls

@Deprecated
public boolean[] getImportPortletControls(long companyId,
                                                     String portletId,
                                                     Map<String,String[]> parameterMap,
                                                     Element portletDataElement)
                                   throws Exception
Deprecated. As of 7.0.0, replaced by getImportPortletControlsMap(long, String, Map, Element, ManifestSummary)

Specified by:
getImportPortletControls in interface ExportImportHelper
Throws:
Exception

getImportPortletControls

@Deprecated
public boolean[] getImportPortletControls(long companyId,
                                                     String portletId,
                                                     Map<String,String[]> parameterMap,
                                                     Element portletDataElement,
                                                     ManifestSummary manifestSummary)
                                   throws Exception
Deprecated. As of 7.0.0, replaced by getImportPortletControlsMap(long, String, Map, Element, ManifestSummary)

Specified by:
getImportPortletControls in interface ExportImportHelper
Throws:
Exception

getImportPortletControlsMap

public Map<String,Boolean> getImportPortletControlsMap(long companyId,
                                                       String portletId,
                                                       Map<String,String[]> parameterMap,
                                                       Element portletDataElement,
                                                       ManifestSummary manifestSummary)
                                                throws Exception
Specified by:
getImportPortletControlsMap in interface ExportImportHelper
Throws:
Exception

getLayoutIdMap

public Map<Long,Boolean> getLayoutIdMap(PortletRequest portletRequest)
                                 throws PortalException
Specified by:
getLayoutIdMap in interface ExportImportHelper
Throws:
PortalException

getLayoutIds

public long[] getLayoutIds(List<Layout> layouts)
Specified by:
getLayoutIds in interface ExportImportHelper

getLayoutIds

public long[] getLayoutIds(Map<Long,Boolean> layoutIdMap)
                    throws PortalException
Specified by:
getLayoutIds in interface ExportImportHelper
Throws:
PortalException

getLayoutIds

public long[] getLayoutIds(Map<Long,Boolean> layoutIdMap,
                           long targetGroupId)
                    throws PortalException
Specified by:
getLayoutIds in interface ExportImportHelper
Throws:
PortalException

getLayoutIds

public long[] getLayoutIds(PortletRequest portletRequest)
                    throws PortalException
Specified by:
getLayoutIds in interface ExportImportHelper
Throws:
PortalException

getLayoutIds

public long[] getLayoutIds(PortletRequest portletRequest,
                           long targetGroupId)
                    throws PortalException
Specified by:
getLayoutIds in interface ExportImportHelper
Throws:
PortalException

getManifestSummary

@Deprecated
public ManifestSummary getManifestSummary(long userId,
                                                     long groupId,
                                                     Map<String,String[]> parameterMap,
                                                     File file)
                                   throws Exception
Deprecated. As of 7.0.0, replaced by getManifestSummary(PortletDataContext)

Specified by:
getManifestSummary in interface ExportImportHelper
Throws:
Exception

getManifestSummary

public ManifestSummary getManifestSummary(long userId,
                                          long groupId,
                                          Map<String,String[]> parameterMap,
                                          FileEntry fileEntry)
                                   throws Exception
Specified by:
getManifestSummary in interface ExportImportHelper
Throws:
Exception

getManifestSummary

public ManifestSummary getManifestSummary(PortletDataContext portletDataContext)
                                   throws Exception
Specified by:
getManifestSummary in interface ExportImportHelper
Throws:
Exception

getMissingParentLayouts

public List<Layout> getMissingParentLayouts(Layout layout,
                                            long liveGroupId)
                                     throws PortalException
Specified by:
getMissingParentLayouts in interface ExportImportHelper
Throws:
PortalException
See Also:
LayoutRemoteStagingBackgroundTaskExecutor.getMissingRemoteParentLayouts( com.liferay.portal.security.auth.HttpPrincipal, Layout, long)

getModelDeletionCount

public long getModelDeletionCount(PortletDataContext portletDataContext,
                                  StagedModelType stagedModelType)
                           throws PortalException
Specified by:
getModelDeletionCount in interface ExportImportHelper
Throws:
PortalException

getSelectedLayoutsJSON

public String getSelectedLayoutsJSON(long groupId,
                                     boolean privateLayout,
                                     String selectedNodes)
Specified by:
getSelectedLayoutsJSON in interface ExportImportHelper

getTempFileEntry

public FileEntry getTempFileEntry(long groupId,
                                  long userId,
                                  String folderName)
                           throws PortalException
Specified by:
getTempFileEntry in interface ExportImportHelper
Throws:
PortalException

getUserIdStrategy

public UserIdStrategy getUserIdStrategy(long userId,
                                        String userIdStrategy)
                                 throws PortalException
Specified by:
getUserIdStrategy in interface ExportImportHelper
Throws:
PortalException

isReferenceWithinExportScope

public boolean isReferenceWithinExportScope(PortletDataContext portletDataContext,
                                            StagedModel stagedModel)
Specified by:
isReferenceWithinExportScope in interface ExportImportHelper

replaceExportContentReferences

@Deprecated
public String replaceExportContentReferences(PortletDataContext portletDataContext,
                                                        StagedModel entityStagedModel,
                                                        Element entityElement,
                                                        String content,
                                                        boolean exportReferencedContent)
                                      throws Exception
Deprecated. As of 7.0.0, replaced by replaceExportContentReferences(PortletDataContext, StagedModel, String, boolean)

Specified by:
replaceExportContentReferences in interface ExportImportHelper
Throws:
Exception

replaceExportContentReferences

public String replaceExportContentReferences(PortletDataContext portletDataContext,
                                             StagedModel entityStagedModel,
                                             String content,
                                             boolean exportReferencedContent)
                                      throws Exception
Specified by:
replaceExportContentReferences in interface ExportImportHelper
Throws:
Exception

replaceExportDLReferences

@Deprecated
public String replaceExportDLReferences(PortletDataContext portletDataContext,
                                                   StagedModel entityStagedModel,
                                                   Element entityElement,
                                                   String content,
                                                   boolean exportReferencedContent)
                                 throws Exception
Deprecated. As of 7.0.0, replaced by replaceExportDLReferences(PortletDataContext, StagedModel, String, boolean)

Specified by:
replaceExportDLReferences in interface ExportImportHelper
Throws:
Exception

replaceExportDLReferences

public String replaceExportDLReferences(PortletDataContext portletDataContext,
                                        StagedModel entityStagedModel,
                                        String content,
                                        boolean exportReferencedContent)
                                 throws Exception
Specified by:
replaceExportDLReferences in interface ExportImportHelper
Throws:
Exception

replaceExportLayoutReferences

public String replaceExportLayoutReferences(PortletDataContext portletDataContext,
                                            String content)
                                     throws Exception
Specified by:
replaceExportLayoutReferences in interface ExportImportHelper
Throws:
Exception

replaceExportLayoutReferences

@Deprecated
public String replaceExportLayoutReferences(PortletDataContext portletDataContext,
                                                       String content,
                                                       boolean exportReferencedContent)
                                     throws Exception
Deprecated. As of 7.0.0, replaced by replaceExportLayoutReferences(PortletDataContext, String)

Specified by:
replaceExportLayoutReferences in interface ExportImportHelper
Throws:
Exception

replaceExportLinksToLayouts

@Deprecated
public String replaceExportLinksToLayouts(PortletDataContext portletDataContext,
                                                     StagedModel entityStagedModel,
                                                     Element entityElement,
                                                     String content,
                                                     boolean exportReferencedContent)
                                   throws Exception
Deprecated. As of 7.0.0, replaced by replaceExportLinksToLayouts(PortletDataContext, StagedModel, String)

Specified by:
replaceExportLinksToLayouts in interface ExportImportHelper
Throws:
Exception

replaceExportLinksToLayouts

public String replaceExportLinksToLayouts(PortletDataContext portletDataContext,
                                          StagedModel entityStagedModel,
                                          String content)
                                   throws Exception
Specified by:
replaceExportLinksToLayouts in interface ExportImportHelper
Throws:
Exception

replaceImportContentReferences

@Deprecated
public String replaceImportContentReferences(PortletDataContext portletDataContext,
                                                        Element entityElement,
                                                        String content,
                                                        boolean importReferencedContent)
                                      throws Exception
Deprecated. As of 7.0.0, replaced by replaceImportContentReferences(PortletDataContext, StagedModel, String)

Specified by:
replaceImportContentReferences in interface ExportImportHelper
Throws:
Exception

replaceImportContentReferences

public String replaceImportContentReferences(PortletDataContext portletDataContext,
                                             StagedModel entityStagedModel,
                                             String content)
                                      throws Exception
Specified by:
replaceImportContentReferences in interface ExportImportHelper
Throws:
Exception

replaceImportDLReferences

@Deprecated
public String replaceImportDLReferences(PortletDataContext portletDataContext,
                                                   Element entityElement,
                                                   String content,
                                                   boolean importReferencedContent)
                                 throws Exception
Deprecated. As of 7.0.0, replaced by replaceImportDLReferences(PortletDataContext, StagedModel, String)

Specified by:
replaceImportDLReferences in interface ExportImportHelper
Throws:
Exception

replaceImportDLReferences

public String replaceImportDLReferences(PortletDataContext portletDataContext,
                                        StagedModel entityStagedModel,
                                        String content)
                                 throws Exception
Specified by:
replaceImportDLReferences in interface ExportImportHelper
Throws:
Exception

replaceImportLayoutReferences

public String replaceImportLayoutReferences(PortletDataContext portletDataContext,
                                            String content)
                                     throws Exception
Specified by:
replaceImportLayoutReferences in interface ExportImportHelper
Throws:
Exception

replaceImportLayoutReferences

@Deprecated
public String replaceImportLayoutReferences(PortletDataContext portletDataContext,
                                                       String content,
                                                       boolean importReferencedContent)
                                     throws Exception
Deprecated. As of 7.0.0, replaced by replaceImportLayoutReferences(PortletDataContext, String)

Specified by:
replaceImportLayoutReferences in interface ExportImportHelper
Throws:
Exception

replaceImportLinksToLayouts

public String replaceImportLinksToLayouts(PortletDataContext portletDataContext,
                                          String content)
                                   throws Exception
Specified by:
replaceImportLinksToLayouts in interface ExportImportHelper
Throws:
Exception

replaceImportLinksToLayouts

@Deprecated
public String replaceImportLinksToLayouts(PortletDataContext portletDataContext,
                                                     String content,
                                                     boolean importReferencedContent)
                                   throws Exception
Deprecated. As of 7.0.0, replaced by replaceImportLinksToLayouts(PortletDataContext, String)

Specified by:
replaceImportLinksToLayouts in interface ExportImportHelper
Throws:
Exception

updateExportPortletPreferencesClassPKs

public void updateExportPortletPreferencesClassPKs(PortletDataContext portletDataContext,
                                                   Portlet portlet,
                                                   PortletPreferences portletPreferences,
                                                   String key,
                                                   String className)
                                            throws Exception
Specified by:
updateExportPortletPreferencesClassPKs in interface ExportImportHelper
Throws:
Exception

updateExportPortletPreferencesClassPKs

@Deprecated
public void updateExportPortletPreferencesClassPKs(PortletDataContext portletDataContext,
                                                              Portlet portlet,
                                                              PortletPreferences portletPreferences,
                                                              String key,
                                                              String className,
                                                              Element rootElement)
                                            throws Exception
Deprecated. As of 7.0.0, replaced by updateExportPortletPreferencesClassPKs(PortletDataContext, Portlet, PortletPreferences, String, String)

Specified by:
updateExportPortletPreferencesClassPKs in interface ExportImportHelper
Throws:
Exception

updateImportPortletPreferencesClassPKs

public void updateImportPortletPreferencesClassPKs(PortletDataContext portletDataContext,
                                                   PortletPreferences portletPreferences,
                                                   String key,
                                                   Class<?> clazz,
                                                   long companyGroupId)
                                            throws Exception
Specified by:
updateImportPortletPreferencesClassPKs in interface ExportImportHelper
Throws:
Exception

validateMissingReferences

@Deprecated
public MissingReferences validateMissingReferences(long userId,
                                                              long groupId,
                                                              Map<String,String[]> parameterMap,
                                                              File file)
                                            throws Exception
Deprecated. As of 7.0.0, replaced by validateMissingReferences(PortletDataContext)

Specified by:
validateMissingReferences in interface ExportImportHelper
Throws:
Exception

validateMissingReferences

public MissingReferences validateMissingReferences(PortletDataContext portletDataContext)
                                            throws Exception
Specified by:
validateMissingReferences in interface ExportImportHelper
Throws:
Exception

writeManifestSummary

public void writeManifestSummary(Document document,
                                 ManifestSummary manifestSummary)
Specified by:
writeManifestSummary in interface ExportImportHelper

addCreateDateProperty

protected void addCreateDateProperty(PortletDataContext portletDataContext,
                                     DynamicQuery dynamicQuery)

deleteTimestampParameters

protected void deleteTimestampParameters(StringBuilder sb,
                                         int beginPos)

doAddCriteria

protected void doAddCriteria(PortletDataContext portletDataContext,
                             StagedModelType stagedModelType,
                             DynamicQuery dynamicQuery)

getDLReferenceParameters

protected Map<String,String[]> getDLReferenceParameters(PortletDataContext portletDataContext,
                                                        String content,
                                                        int beginPos,
                                                        int endPos)

getExportPortletData

protected boolean getExportPortletData(long companyId,
                                       String portletId,
                                       Map<String,String[]> parameterMap)
                                throws Exception
Throws:
Exception

getExportPortletPreferencesUuid

protected String getExportPortletPreferencesUuid(PortletDataContext portletDataContext,
                                                 Portlet portlet,
                                                 String className,
                                                 long primaryKeyLong)
                                          throws Exception
Throws:
Exception

getExportPortletSetupControlsMap

protected Map<String,Boolean> getExportPortletSetupControlsMap(long companyId,
                                                               String portletId,
                                                               Map<String,String[]> parameterMap,
                                                               String type)
                                                        throws Exception
Throws:
Exception

getFileEntry

protected FileEntry getFileEntry(Map<String,String[]> map)

getImportPortletData

protected boolean getImportPortletData(long companyId,
                                       String portletId,
                                       Map<String,String[]> parameterMap,
                                       Element portletDataElement)
                                throws Exception
Throws:
Exception

getImportPortletPreferencesNewPrimaryKey

protected Long getImportPortletPreferencesNewPrimaryKey(PortletDataContext portletDataContext,
                                                        Class<?> clazz,
                                                        long companyGroupId,
                                                        Map<Long,Long> primaryKeys,
                                                        String uuid)
                                                 throws Exception
Throws:
Exception

getImportPortletSetupControlsMap

protected Map<String,Boolean> getImportPortletSetupControlsMap(long companyId,
                                                               String portletId,
                                                               Map<String,String[]> parameterMap,
                                                               ManifestSummary manifestSummary)
                                                        throws Exception
Throws:
Exception

populateLayoutsJSON

protected boolean populateLayoutsJSON(JSONArray layoutsJSONArray,
                                      Layout layout,
                                      long[] selectedLayoutIds)

replaceExportHostname

protected String replaceExportHostname(PortletDataContext portletDataContext,
                                       String url,
                                       StringBundler urlSB)
                                throws PortalException
Throws:
PortalException

validateMissingReference

protected MissingReference validateMissingReference(PortletDataContext portletDataContext,
                                                    Element element)

Liferay 7.0-ce-m3