Liferay 7.0-ce-b8 portal-test-internal

com.liferay.portal.lar.test
Class BaseExportImportTestCase

java.lang.Object
  extended by com.liferay.portal.lar.test.BaseExportImportTestCase
Direct Known Subclasses:
BasePortletExportImportTestCase

public class BaseExportImportTestCase
extends Object


Field Summary
protected  com.liferay.portal.kernel.model.Group group
           
protected  com.liferay.portal.kernel.model.Group importedGroup
           
protected  com.liferay.portal.kernel.model.Layout importedLayout
           
protected  File larFile
           
protected  com.liferay.portal.kernel.model.Layout layout
           
 
Constructor Summary
BaseExportImportTestCase()
           
 
Method Summary
protected  com.liferay.asset.kernel.model.AssetLink addAssetLink(com.liferay.portal.kernel.model.StagedModel sourceStagedModel, com.liferay.portal.kernel.model.StagedModel targetStagedModel, int weight)
           
protected  void addParameter(Map<String,String[]> parameterMap, String name, String value)
           
protected  void addParameter(Map<String,String[]> parameterMap, String namespace, String name, boolean value)
           
protected  com.liferay.portal.kernel.model.StagedModel addStagedModel(long groupId)
           
protected  com.liferay.portal.kernel.model.StagedModel addStagedModel(long groupId, Date createdDate)
           
protected  void deleteStagedModel(com.liferay.portal.kernel.model.StagedModel stagedModel)
           
protected  void exportImportLayouts(long[] layoutIds, Map<String,String[]> parameterMap)
           
protected  void exportLayouts(long[] layoutIds, Map<String,String[]> parameterMap)
           
protected  com.liferay.asset.kernel.model.AssetEntry getAssetEntry(com.liferay.portal.kernel.model.StagedModel stagedModel)
           
protected  Map<String,String[]> getExportParameterMap()
           
protected  Map<String,String[]> getImportParameterMap()
           
protected  com.liferay.portal.kernel.model.StagedModel getStagedModel(String uuid, long groupId)
           
protected  String getStagedModelUuid(com.liferay.portal.kernel.model.StagedModel stagedModel)
           
 void importLayouts(Map<String,String[]> parameterMap)
           
 void setUp()
           
 void tearDown()
           
protected  void validateImportedStagedModel(com.liferay.portal.kernel.model.StagedModel stagedModel, com.liferay.portal.kernel.model.StagedModel importedStagedModel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

group

@DeleteAfterTestRun
protected com.liferay.portal.kernel.model.Group group

importedGroup

@DeleteAfterTestRun
protected com.liferay.portal.kernel.model.Group importedGroup

importedLayout

protected com.liferay.portal.kernel.model.Layout importedLayout

larFile

protected File larFile

layout

protected com.liferay.portal.kernel.model.Layout layout
Constructor Detail

BaseExportImportTestCase

public BaseExportImportTestCase()
Method Detail

importLayouts

public void importLayouts(Map<String,String[]> parameterMap)
                   throws Exception
Throws:
Exception

setUp

public void setUp()
           throws Exception
Throws:
Exception

tearDown

public void tearDown()
              throws Exception
Throws:
Exception

addAssetLink

protected com.liferay.asset.kernel.model.AssetLink addAssetLink(com.liferay.portal.kernel.model.StagedModel sourceStagedModel,
                                                                com.liferay.portal.kernel.model.StagedModel targetStagedModel,
                                                                int weight)
                                                         throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

addParameter

protected void addParameter(Map<String,String[]> parameterMap,
                            String name,
                            String value)

addParameter

protected void addParameter(Map<String,String[]> parameterMap,
                            String namespace,
                            String name,
                            boolean value)

addStagedModel

protected com.liferay.portal.kernel.model.StagedModel addStagedModel(long groupId)
                                                              throws Exception
Throws:
Exception

addStagedModel

protected com.liferay.portal.kernel.model.StagedModel addStagedModel(long groupId,
                                                                     Date createdDate)
                                                              throws Exception
Throws:
Exception

deleteStagedModel

protected void deleteStagedModel(com.liferay.portal.kernel.model.StagedModel stagedModel)
                          throws Exception
Throws:
Exception

exportImportLayouts

protected void exportImportLayouts(long[] layoutIds,
                                   Map<String,String[]> parameterMap)
                            throws Exception
Throws:
Exception

exportLayouts

protected void exportLayouts(long[] layoutIds,
                             Map<String,String[]> parameterMap)
                      throws Exception
Throws:
Exception

getAssetEntry

protected com.liferay.asset.kernel.model.AssetEntry getAssetEntry(com.liferay.portal.kernel.model.StagedModel stagedModel)
                                                           throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getExportParameterMap

protected Map<String,String[]> getExportParameterMap()
                                              throws Exception
Throws:
Exception

getImportParameterMap

protected Map<String,String[]> getImportParameterMap()
                                              throws Exception
Throws:
Exception

getStagedModel

protected com.liferay.portal.kernel.model.StagedModel getStagedModel(String uuid,
                                                                     long groupId)
                                                              throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getStagedModelUuid

protected String getStagedModelUuid(com.liferay.portal.kernel.model.StagedModel stagedModel)
                             throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

validateImportedStagedModel

protected void validateImportedStagedModel(com.liferay.portal.kernel.model.StagedModel stagedModel,
                                           com.liferay.portal.kernel.model.StagedModel importedStagedModel)
                                    throws Exception
Throws:
Exception

Liferay 7.0-ce-b8 portal-test-internal