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
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 void |
importCategories(com.liferay.portal.lar.PortletDataContext context)
|
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 |
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.InputStream is)
|
protected void |
importPermissions_5(LayoutCache layoutCache,
long companyId,
long userId,
long resourceId,
com.liferay.portal.kernel.xml.Element permissionsEl)
|
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 |
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,
byte[] 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.InputStream is)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.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.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.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)
importCategories
protected void importCategories(com.liferay.portal.lar.PortletDataContext context)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.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.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.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.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.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.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.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.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.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.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.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.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
importLayoutRoles
protected void importLayoutRoles(LayoutCache layoutCache,
long companyId,
long groupId,
com.liferay.portal.kernel.xml.Element rolesEl)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.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.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.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.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.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.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.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.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
importPortletRoles
protected void importPortletRoles(LayoutCache layoutCache,
long companyId,
long groupId,
com.liferay.portal.kernel.xml.Element rolesEl)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.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.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
importTheme
protected java.lang.String importTheme(com.liferay.portal.model.LayoutSet layoutSet,
byte[] 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.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.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.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.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)