com.liferay.portlet.layoutsadmin.lar
Class LayoutStagedModelDataHandler
java.lang.Object
com.liferay.portlet.exportimport.lar.BaseStagedModelDataHandler<Layout>
com.liferay.portlet.layoutsadmin.lar.LayoutStagedModelDataHandler
- All Implemented Interfaces:
- StagedModelDataHandler<Layout>
public class LayoutStagedModelDataHandler
- extends BaseStagedModelDataHandler<Layout>
|
Method Summary |
protected String[] |
appendPortletIds(String[] portletIds,
String[] newPortletIds,
String portletsMergeMode)
|
void |
deleteStagedModel(Layout layout)
|
void |
deleteStagedModel(String uuid,
long groupId,
String className,
String extraData)
|
protected void |
doExportStagedModel(PortletDataContext portletDataContext,
Layout layout)
|
protected void |
doImportStagedModel(PortletDataContext portletDataContext,
Layout layout)
|
protected void |
exportLayoutIconImage(PortletDataContext portletDataContext,
Layout layout,
Element layoutElement)
|
protected void |
exportLinkedLayout(PortletDataContext portletDataContext,
Layout layout,
Element layoutElement)
|
protected void |
exportTheme(PortletDataContext portletDataContext,
Layout layout)
|
protected Object[] |
extractFriendlyURLInfo(Layout layout)
|
protected Layout |
fetchMissingReference(String uuid,
long groupId,
boolean privateLayout)
|
List<Layout> |
fetchStagedModelsByUuidAndCompanyId(String uuid,
long companyId)
|
protected void |
fixExportTypeSettings(Layout layout)
|
protected void |
fixImportTypeSettings(Layout layout)
|
String[] |
getClassNames()
|
String |
getDisplayName(Layout layout)
|
protected String |
getFriendlyURL(String friendlyURL,
long layoutId)
|
Map<String,String> |
getReferenceAttributes(PortletDataContext portletDataContext,
Layout layout)
|
protected String |
getUniqueFriendlyURL(PortletDataContext portletDataContext,
Layout existingLayout,
String friendlyURL)
|
protected void |
importAssets(PortletDataContext portletDataContext,
Layout layout,
Layout importedLayout)
|
protected void |
importLayoutFriendlyURLs(PortletDataContext portletDataContext,
Layout layout)
|
protected void |
importLayoutIconImage(PortletDataContext portletDataContext,
Layout importedLayout,
Element layoutElement)
|
protected void |
importLinkedLayout(PortletDataContext portletDataContext,
Layout layout,
Layout importedLayout,
Element layoutElement,
Map<Long,Layout> layouts)
|
void |
importMissingReference(PortletDataContext portletDataContext,
Element referenceElement)
|
protected void |
importReferenceStagedModels(PortletDataContext portletDataContext,
Layout layout)
|
protected void |
importTheme(PortletDataContext portletDataContext,
Layout layout,
Layout importedLayout)
|
protected void |
initNewLayoutPermissions(long companyId,
long groupId,
long userId,
Layout layout,
Layout importedLayout,
boolean privateLayout)
|
protected void |
mergePortlets(Layout layout,
String newTypeSettings,
String portletsMergeMode)
|
protected void |
populateElementLayoutMetadata(Element layoutElement,
Layout layout)
|
void |
setLayoutLocalServiceHelper(LayoutLocalServiceHelper layoutLocalServiceHelper)
|
protected void |
updateTypeSettings(Layout importedLayout,
Layout layout)
|
boolean |
validateReference(PortletDataContext portletDataContext,
Element referenceElement)
|
| Methods inherited from class com.liferay.portlet.exportimport.lar.BaseStagedModelDataHandler |
countStagedModel, doImportMissingReference, doRestoreStagedModel, exportAssetCategories, exportAssetTags, exportComments, exportRatings, exportStagedModel, fetchMissingReference, fetchStagedModelByUuidAndGroupId, getExportableStatuses, getProcessFlag, importAssetCategories, importAssetTags, importComments, importCompanyStagedModel, importCompanyStagedModel, importMissingGroupReference, importMissingReference, importRatings, importStagedModel, isStagedModelInTrash, restoreStagedModel, validateExport, validateMissingGroupReference, validateMissingReference |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLASS_NAMES
public static final String[] CLASS_NAMES
LayoutStagedModelDataHandler
public LayoutStagedModelDataHandler()
deleteStagedModel
public void deleteStagedModel(Layout layout)
deleteStagedModel
public void deleteStagedModel(String uuid,
long groupId,
String className,
String extraData)
throws PortalException
- Specified by:
deleteStagedModel in interface StagedModelDataHandler<Layout>- Specified by:
deleteStagedModel in class BaseStagedModelDataHandler<Layout>
- Throws:
PortalException
fetchStagedModelsByUuidAndCompanyId
public List<Layout> fetchStagedModelsByUuidAndCompanyId(String uuid,
long companyId)
- Specified by:
fetchStagedModelsByUuidAndCompanyId in interface StagedModelDataHandler<Layout>- Specified by:
fetchStagedModelsByUuidAndCompanyId in class BaseStagedModelDataHandler<Layout>
getClassNames
public String[] getClassNames()
- Specified by:
getClassNames in interface StagedModelDataHandler<Layout>- Specified by:
getClassNames in class BaseStagedModelDataHandler<Layout>
getDisplayName
public String getDisplayName(Layout layout)
- Specified by:
getDisplayName in interface StagedModelDataHandler<Layout>- Overrides:
getDisplayName in class BaseStagedModelDataHandler<Layout>
getReferenceAttributes
public Map<String,String> getReferenceAttributes(PortletDataContext portletDataContext,
Layout layout)
- Specified by:
getReferenceAttributes in interface StagedModelDataHandler<Layout>- Overrides:
getReferenceAttributes in class BaseStagedModelDataHandler<Layout>
importMissingReference
public void importMissingReference(PortletDataContext portletDataContext,
Element referenceElement)
throws PortletDataException
- Specified by:
importMissingReference in interface StagedModelDataHandler<Layout>- Overrides:
importMissingReference in class BaseStagedModelDataHandler<Layout>
- Throws:
PortletDataException
setLayoutLocalServiceHelper
public void setLayoutLocalServiceHelper(LayoutLocalServiceHelper layoutLocalServiceHelper)
validateReference
public boolean validateReference(PortletDataContext portletDataContext,
Element referenceElement)
- Specified by:
validateReference in interface StagedModelDataHandler<Layout>- Overrides:
validateReference in class BaseStagedModelDataHandler<Layout>
appendPortletIds
protected String[] appendPortletIds(String[] portletIds,
String[] newPortletIds,
String portletsMergeMode)
doExportStagedModel
protected void doExportStagedModel(PortletDataContext portletDataContext,
Layout layout)
throws Exception
- Specified by:
doExportStagedModel in class BaseStagedModelDataHandler<Layout>
- Throws:
Exception
doImportStagedModel
protected void doImportStagedModel(PortletDataContext portletDataContext,
Layout layout)
throws Exception
- Specified by:
doImportStagedModel in class BaseStagedModelDataHandler<Layout>
- Throws:
Exception
exportLayoutIconImage
protected void exportLayoutIconImage(PortletDataContext portletDataContext,
Layout layout,
Element layoutElement)
throws Exception
- Throws:
Exception
exportLinkedLayout
protected void exportLinkedLayout(PortletDataContext portletDataContext,
Layout layout,
Element layoutElement)
throws Exception
- Throws:
Exception
exportTheme
protected void exportTheme(PortletDataContext portletDataContext,
Layout layout)
throws Exception
- Throws:
Exception
extractFriendlyURLInfo
protected Object[] extractFriendlyURLInfo(Layout layout)
fetchMissingReference
protected Layout fetchMissingReference(String uuid,
long groupId,
boolean privateLayout)
fixExportTypeSettings
protected void fixExportTypeSettings(Layout layout)
throws Exception
- Throws:
Exception
fixImportTypeSettings
protected void fixImportTypeSettings(Layout layout)
throws Exception
- Throws:
Exception
getFriendlyURL
protected String getFriendlyURL(String friendlyURL,
long layoutId)
getUniqueFriendlyURL
protected String getUniqueFriendlyURL(PortletDataContext portletDataContext,
Layout existingLayout,
String friendlyURL)
importAssets
protected void importAssets(PortletDataContext portletDataContext,
Layout layout,
Layout importedLayout)
throws Exception
- Throws:
Exception
importLayoutFriendlyURLs
protected void importLayoutFriendlyURLs(PortletDataContext portletDataContext,
Layout layout)
throws Exception
- Throws:
Exception
importLayoutIconImage
protected void importLayoutIconImage(PortletDataContext portletDataContext,
Layout importedLayout,
Element layoutElement)
throws Exception
- Throws:
Exception
importLinkedLayout
protected void importLinkedLayout(PortletDataContext portletDataContext,
Layout layout,
Layout importedLayout,
Element layoutElement,
Map<Long,Layout> layouts)
throws Exception
- Throws:
Exception
importReferenceStagedModels
protected void importReferenceStagedModels(PortletDataContext portletDataContext,
Layout layout)
- Overrides:
importReferenceStagedModels in class BaseStagedModelDataHandler<Layout>
importTheme
protected void importTheme(PortletDataContext portletDataContext,
Layout layout,
Layout importedLayout)
throws Exception
- Throws:
Exception
initNewLayoutPermissions
protected void initNewLayoutPermissions(long companyId,
long groupId,
long userId,
Layout layout,
Layout importedLayout,
boolean privateLayout)
throws Exception
- Throws:
Exception
mergePortlets
protected void mergePortlets(Layout layout,
String newTypeSettings,
String portletsMergeMode)
populateElementLayoutMetadata
protected void populateElementLayoutMetadata(Element layoutElement,
Layout layout)
throws Exception
- Throws:
Exception
updateTypeSettings
protected void updateTypeSettings(Layout importedLayout,
Layout layout)
throws PortalException
- Throws:
PortalException