com.liferay.portal.lar
Class PermissionImporter
java.lang.Object
com.liferay.portal.lar.PermissionImporter
public class PermissionImporter
- extends java.lang.Object
- Author:
- Brian Wing Shun Chan, Joel Kozikowski, Charles May, Raymond Augé, Jorge Ferrer, Bruno Farache, Wesley Gong, Zsigmond Rab, Douglas Wong
|
Method Summary |
protected java.util.List<java.lang.String> |
getActions(com.liferay.portal.kernel.xml.Element element)
|
protected void |
importGroupPermissions(LayoutCache layoutCache,
long companyId,
long groupId,
java.lang.String resourceName,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element parentElement,
java.lang.String elementName,
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 parentElement)
|
protected void |
importInheritedPermissions(LayoutCache layoutCache,
long companyId,
java.lang.String resourceName,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element permissionsElement,
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 parentElement)
|
protected void |
importLayoutPermissions_1to4(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 permissionsElement,
boolean importUserPermissions)
|
protected void |
importLayoutPermissions(LayoutCache layoutCache,
long companyId,
long groupId,
long userId,
com.liferay.portal.model.Layout layout,
com.liferay.portal.kernel.xml.Element layoutElement,
com.liferay.portal.kernel.xml.Element parentElement,
boolean importUserPermissions)
|
protected void |
importLayoutRoles(LayoutCache layoutCache,
long companyId,
long groupId,
com.liferay.portal.kernel.xml.Element rolesElement)
|
protected void |
importPermissions_5(LayoutCache layoutCache,
long companyId,
long groupId,
long userId,
java.lang.String resourceName,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element permissionsElement,
boolean portletActions)
|
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 permissionsElement,
boolean portletActions)
|
protected void |
importPortletPermissions_1to4(LayoutCache layoutCache,
long companyId,
long groupId,
com.liferay.portal.model.Group guestGroup,
com.liferay.portal.model.Layout layout,
com.liferay.portal.kernel.xml.Element permissionsElement,
boolean importUserPermissions)
|
protected void |
importPortletPermissions(LayoutCache layoutCache,
long companyId,
long groupId,
long userId,
com.liferay.portal.model.Layout layout,
com.liferay.portal.kernel.xml.Element portletElement,
java.lang.String portletId,
boolean importUserPermissions)
|
protected void |
importPortletRoles(LayoutCache layoutCache,
long companyId,
long groupId,
com.liferay.portal.kernel.xml.Element rolesElement)
|
protected void |
importPortletRoles(LayoutCache layoutCache,
long companyId,
long groupId,
java.lang.String portletId,
com.liferay.portal.kernel.xml.Element rolesElement)
|
protected void |
importRolePermissions(LayoutCache layoutCache,
long companyId,
java.lang.String resourceName,
int scope,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element parentElement,
boolean communityRole)
|
protected void |
importUserPermissions(LayoutCache layoutCache,
long companyId,
long groupId,
java.lang.String resourceName,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element parentElement,
boolean portletActions)
|
protected void |
importUserRoles(LayoutCache layoutCache,
long companyId,
long groupId,
java.lang.String resourceName,
com.liferay.portal.kernel.xml.Element parentElement)
|
protected void |
readPortletDataPermissions(com.liferay.portal.kernel.lar.PortletDataContext portletDataContext)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PermissionImporter
public PermissionImporter()
getActions
protected java.util.List<java.lang.String> getActions(com.liferay.portal.kernel.xml.Element element)
importGroupPermissions
protected void importGroupPermissions(LayoutCache layoutCache,
long companyId,
long groupId,
java.lang.String resourceName,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element parentElement,
java.lang.String elementName,
boolean portletActions)
throws java.lang.Exception
- Throws:
java.lang.Exception
importGroupRoles
protected void importGroupRoles(LayoutCache layoutCache,
long companyId,
long groupId,
java.lang.String resourceName,
java.lang.String entityName,
com.liferay.portal.kernel.xml.Element parentElement)
throws java.lang.Exception
- Throws:
java.lang.Exception
importInheritedPermissions
protected void importInheritedPermissions(LayoutCache layoutCache,
long companyId,
java.lang.String resourceName,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element permissionsElement,
java.lang.String entityName,
boolean portletActions)
throws java.lang.Exception
- Throws:
java.lang.Exception
importInheritedRoles
protected void importInheritedRoles(LayoutCache layoutCache,
long companyId,
long groupId,
java.lang.String resourceName,
java.lang.String entityName,
com.liferay.portal.kernel.xml.Element parentElement)
throws java.lang.Exception
- Throws:
java.lang.Exception
importLayoutPermissions
protected void importLayoutPermissions(LayoutCache layoutCache,
long companyId,
long groupId,
long userId,
com.liferay.portal.model.Layout layout,
com.liferay.portal.kernel.xml.Element layoutElement,
com.liferay.portal.kernel.xml.Element parentElement,
boolean importUserPermissions)
throws java.lang.Exception
- Throws:
java.lang.Exception
importLayoutPermissions_1to4
protected void importLayoutPermissions_1to4(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 permissionsElement,
boolean importUserPermissions)
throws java.lang.Exception
- Throws:
java.lang.Exception
importLayoutRoles
protected void importLayoutRoles(LayoutCache layoutCache,
long companyId,
long groupId,
com.liferay.portal.kernel.xml.Element rolesElement)
throws java.lang.Exception
- Throws:
java.lang.Exception
importPermissions_5
protected void importPermissions_5(LayoutCache layoutCache,
long companyId,
long groupId,
long userId,
java.lang.String resourceName,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element permissionsElement,
boolean portletActions)
throws java.lang.Exception
- Throws:
java.lang.Exception
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 permissionsElement,
boolean portletActions)
throws java.lang.Exception
- Throws:
java.lang.Exception
importPortletPermissions
protected void importPortletPermissions(LayoutCache layoutCache,
long companyId,
long groupId,
long userId,
com.liferay.portal.model.Layout layout,
com.liferay.portal.kernel.xml.Element portletElement,
java.lang.String portletId,
boolean importUserPermissions)
throws java.lang.Exception
- Throws:
java.lang.Exception
importPortletPermissions_1to4
protected void importPortletPermissions_1to4(LayoutCache layoutCache,
long companyId,
long groupId,
com.liferay.portal.model.Group guestGroup,
com.liferay.portal.model.Layout layout,
com.liferay.portal.kernel.xml.Element permissionsElement,
boolean importUserPermissions)
throws java.lang.Exception
- Throws:
java.lang.Exception
importPortletRoles
protected void importPortletRoles(LayoutCache layoutCache,
long companyId,
long groupId,
java.lang.String portletId,
com.liferay.portal.kernel.xml.Element rolesElement)
throws java.lang.Exception
- Throws:
java.lang.Exception
importPortletRoles
protected void importPortletRoles(LayoutCache layoutCache,
long companyId,
long groupId,
com.liferay.portal.kernel.xml.Element rolesElement)
throws java.lang.Exception
- Throws:
java.lang.Exception
importRolePermissions
protected void importRolePermissions(LayoutCache layoutCache,
long companyId,
java.lang.String resourceName,
int scope,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element parentElement,
boolean communityRole)
throws java.lang.Exception
- Throws:
java.lang.Exception
importUserPermissions
protected void importUserPermissions(LayoutCache layoutCache,
long companyId,
long groupId,
java.lang.String resourceName,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element parentElement,
boolean portletActions)
throws java.lang.Exception
- Throws:
java.lang.Exception
importUserRoles
protected void importUserRoles(LayoutCache layoutCache,
long companyId,
long groupId,
java.lang.String resourceName,
com.liferay.portal.kernel.xml.Element parentElement)
throws java.lang.Exception
- Throws:
java.lang.Exception
readPortletDataPermissions
protected void readPortletDataPermissions(com.liferay.portal.kernel.lar.PortletDataContext portletDataContext)
throws java.lang.Exception
- Throws:
java.lang.Exception