com.liferay.portal.lar
Class LayoutImporter
java.lang.Object
com.liferay.portal.lar.LayoutImporter
public class LayoutImporter
- extends java.lang.Object
View Source
- Author:
- Brian Wing Shun Chan, Joel Kozikowski, Charles May, Raymond Augé, Jorge Ferrer, Bruno Farache, Wesley Gong
Method Summary |
protected java.lang.String[] |
appendPortletIds(java.lang.String[] portletIds,
java.lang.String[] newPortletIds,
java.lang.String portletsMergeMode)
|
protected void |
deleteMissingLayouts(long groupId,
boolean privateLayout,
java.util.Set<java.lang.Long> newLayoutIds,
java.util.List<com.liferay.portal.model.Layout> previousLayouts)
|
protected void |
fixTypeSettings(com.liferay.portal.model.Layout layout)
|
protected java.util.List<java.lang.String> |
getActions(com.liferay.portal.kernel.xml.Element el)
|
protected com.liferay.portlet.asset.model.AssetVocabulary |
getAssetVocabulary(com.liferay.portal.lar.PortletDataContext context,
java.lang.String vocabularyUuid,
java.lang.String vocabularyName,
java.lang.String userUuid,
com.liferay.portal.service.ServiceContext serviceContext)
|
protected void |
importCategories(com.liferay.portal.lar.PortletDataContext context)
|
protected void |
importCategory(com.liferay.portal.lar.PortletDataContext context,
java.lang.String categoryUuid,
java.lang.String userUuid,
java.lang.String parentCategoryUuid,
java.lang.String categoryName,
long vocabularyId,
java.lang.String[] properties,
com.liferay.portal.service.ServiceContext serviceContext)
|
protected void |
importGroupPermissions(LayoutCache layoutCache,
long companyId,
long groupId,
java.lang.String resourceName,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element parentEl,
java.lang.String elName,
boolean portletActions)
|
protected void |
importGroupRoles(LayoutCache layoutCache,
long companyId,
long groupId,
java.lang.String resourceName,
java.lang.String entityName,
com.liferay.portal.kernel.xml.Element parentEl)
|
protected void |
importInheritedPermissions(LayoutCache layoutCache,
long companyId,
java.lang.String resourceName,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element permissionsEl,
java.lang.String entityName,
boolean portletActions)
|
protected void |
importInheritedRoles(LayoutCache layoutCache,
long companyId,
long groupId,
java.lang.String resourceName,
java.lang.String entityName,
com.liferay.portal.kernel.xml.Element parentEl)
|
protected void |
importLayoutPermissions_4(LayoutCache layoutCache,
long companyId,
long groupId,
com.liferay.portal.model.Group guestGroup,
com.liferay.portal.model.Layout layout,
java.lang.String resourceName,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element permissionsEl,
boolean importUserPermissions)
|
protected void |
importLayoutPermissions_5(LayoutCache layoutCache,
long companyId,
long groupId,
long userId,
java.lang.String resourceName,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element permissionsEl)
|
protected void |
importLayoutPermissions_6(LayoutCache layoutCache,
long companyId,
long groupId,
long userId,
java.lang.String resourceName,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element permissionsEl)
|
protected void |
importLayoutRoles(LayoutCache layoutCache,
long companyId,
long groupId,
com.liferay.portal.kernel.xml.Element rolesEl)
|
void |
importLayouts(long userId,
long groupId,
boolean privateLayout,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.io.File file)
|
protected void |
importPermissions_5(LayoutCache layoutCache,
long companyId,
long userId,
long resourceId,
com.liferay.portal.kernel.xml.Element permissionsEl)
|
protected void |
importPermissions_6(LayoutCache layoutCache,
long companyId,
long groupId,
long userId,
java.lang.String resourceName,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element permissionsEl,
boolean portletActions)
|
protected void |
importPortletPermissions_4(LayoutCache layoutCache,
long companyId,
long groupId,
com.liferay.portal.model.Group guestGroup,
com.liferay.portal.model.Layout layout,
com.liferay.portal.kernel.xml.Element permissionsEl,
boolean importUserPermissions)
|
protected void |
importPortletPermissions_5(LayoutCache layoutCache,
long companyId,
long groupId,
long userId,
java.lang.String resourceName,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element permissionsEl)
|
protected void |
importPortletPermissions_6(LayoutCache layoutCache,
long companyId,
long groupId,
long userId,
java.lang.String resourceName,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element permissionsEl)
|
protected void |
importPortletRoles(LayoutCache layoutCache,
long companyId,
long groupId,
com.liferay.portal.kernel.xml.Element rolesEl)
|
protected void |
importPortletRoles(LayoutCache layoutCache,
long companyId,
long groupId,
java.lang.String portletId,
com.liferay.portal.kernel.xml.Element rolesEl)
|
protected void |
importRolePermissions(LayoutCache layoutCache,
long companyId,
java.lang.String resourceName,
int scope,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element parentEl,
boolean communityRole)
|
protected java.lang.String |
importTheme(com.liferay.portal.model.LayoutSet layoutSet,
java.io.InputStream themeZip)
|
protected void |
importUserPermissions(LayoutCache layoutCache,
long companyId,
long groupId,
java.lang.String resourceName,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element parentEl,
boolean portletActions)
|
protected void |
importUserRoles(LayoutCache layoutCache,
long companyId,
long groupId,
java.lang.String resourceName,
com.liferay.portal.kernel.xml.Element parentEl)
|
protected void |
mergePortlets(com.liferay.portal.model.Layout layout,
java.lang.String newTypeSettings,
java.lang.String portletsMergeMode)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LayoutImporter
public LayoutImporter()
importLayouts
public void importLayouts(long userId,
long groupId,
boolean privateLayout,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.io.File file)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
deleteMissingLayouts
protected void deleteMissingLayouts(long groupId,
boolean privateLayout,
java.util.Set<java.lang.Long> newLayoutIds,
java.util.List<com.liferay.portal.model.Layout> previousLayouts)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
fixTypeSettings
protected void fixTypeSettings(com.liferay.portal.model.Layout layout)
getActions
protected java.util.List<java.lang.String> getActions(com.liferay.portal.kernel.xml.Element el)
getAssetVocabulary
protected com.liferay.portlet.asset.model.AssetVocabulary getAssetVocabulary(com.liferay.portal.lar.PortletDataContext context,
java.lang.String vocabularyUuid,
java.lang.String vocabularyName,
java.lang.String userUuid,
com.liferay.portal.service.ServiceContext serviceContext)
throws java.lang.Exception
- Throws:
java.lang.Exception
importCategories
protected void importCategories(com.liferay.portal.lar.PortletDataContext context)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
importCategory
protected void importCategory(com.liferay.portal.lar.PortletDataContext context,
java.lang.String categoryUuid,
java.lang.String userUuid,
java.lang.String parentCategoryUuid,
java.lang.String categoryName,
long vocabularyId,
java.lang.String[] properties,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
importGroupPermissions
protected void importGroupPermissions(LayoutCache layoutCache,
long companyId,
long groupId,
java.lang.String resourceName,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element parentEl,
java.lang.String elName,
boolean portletActions)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
importGroupRoles
protected void importGroupRoles(LayoutCache layoutCache,
long companyId,
long groupId,
java.lang.String resourceName,
java.lang.String entityName,
com.liferay.portal.kernel.xml.Element parentEl)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
importInheritedPermissions
protected void importInheritedPermissions(LayoutCache layoutCache,
long companyId,
java.lang.String resourceName,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element permissionsEl,
java.lang.String entityName,
boolean portletActions)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
importInheritedRoles
protected void importInheritedRoles(LayoutCache layoutCache,
long companyId,
long groupId,
java.lang.String resourceName,
java.lang.String entityName,
com.liferay.portal.kernel.xml.Element parentEl)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
importLayoutPermissions_4
protected void importLayoutPermissions_4(LayoutCache layoutCache,
long companyId,
long groupId,
com.liferay.portal.model.Group guestGroup,
com.liferay.portal.model.Layout layout,
java.lang.String resourceName,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element permissionsEl,
boolean importUserPermissions)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
importLayoutPermissions_5
protected void importLayoutPermissions_5(LayoutCache layoutCache,
long companyId,
long groupId,
long userId,
java.lang.String resourceName,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element permissionsEl)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
importLayoutPermissions_6
protected void importLayoutPermissions_6(LayoutCache layoutCache,
long companyId,
long groupId,
long userId,
java.lang.String resourceName,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element permissionsEl)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
importLayoutRoles
protected void importLayoutRoles(LayoutCache layoutCache,
long companyId,
long groupId,
com.liferay.portal.kernel.xml.Element rolesEl)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
importPermissions_5
protected void importPermissions_5(LayoutCache layoutCache,
long companyId,
long userId,
long resourceId,
com.liferay.portal.kernel.xml.Element permissionsEl)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
importPermissions_6
protected void importPermissions_6(LayoutCache layoutCache,
long companyId,
long groupId,
long userId,
java.lang.String resourceName,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element permissionsEl,
boolean portletActions)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
importPortletPermissions_4
protected void importPortletPermissions_4(LayoutCache layoutCache,
long companyId,
long groupId,
com.liferay.portal.model.Group guestGroup,
com.liferay.portal.model.Layout layout,
com.liferay.portal.kernel.xml.Element permissionsEl,
boolean importUserPermissions)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
importPortletPermissions_5
protected void importPortletPermissions_5(LayoutCache layoutCache,
long companyId,
long groupId,
long userId,
java.lang.String resourceName,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element permissionsEl)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
importPortletPermissions_6
protected void importPortletPermissions_6(LayoutCache layoutCache,
long companyId,
long groupId,
long userId,
java.lang.String resourceName,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element permissionsEl)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
importPortletRoles
protected void importPortletRoles(LayoutCache layoutCache,
long companyId,
long groupId,
java.lang.String portletId,
com.liferay.portal.kernel.xml.Element rolesEl)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
importPortletRoles
protected void importPortletRoles(LayoutCache layoutCache,
long companyId,
long groupId,
com.liferay.portal.kernel.xml.Element rolesEl)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
importRolePermissions
protected void importRolePermissions(LayoutCache layoutCache,
long companyId,
java.lang.String resourceName,
int scope,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element parentEl,
boolean communityRole)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
importTheme
protected java.lang.String importTheme(com.liferay.portal.model.LayoutSet layoutSet,
java.io.InputStream themeZip)
throws java.io.IOException
- Throws:
java.io.IOException
importUserPermissions
protected void importUserPermissions(LayoutCache layoutCache,
long companyId,
long groupId,
java.lang.String resourceName,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element parentEl,
boolean portletActions)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
importUserRoles
protected void importUserRoles(LayoutCache layoutCache,
long companyId,
long groupId,
java.lang.String resourceName,
com.liferay.portal.kernel.xml.Element parentEl)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
mergePortlets
protected void mergePortlets(com.liferay.portal.model.Layout layout,
java.lang.String newTypeSettings,
java.lang.String portletsMergeMode)
appendPortletIds
protected java.lang.String[] appendPortletIds(java.lang.String[] portletIds,
java.lang.String[] newPortletIds,
java.lang.String portletsMergeMode)