public class PermissionImporter
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
protected com.liferay.portal.kernel.model.Role |
checkRole(LayoutCache layoutCache,
long companyId,
long groupId,
long userId,
com.liferay.portal.kernel.xml.Element roleElement) |
void |
checkRoles(LayoutCache layoutCache,
long companyId,
long groupId,
long userId,
com.liferay.portal.kernel.xml.Element portletElement) |
protected java.util.List<java.lang.String> |
getActions(com.liferay.portal.kernel.xml.Element element) |
static PermissionImporter |
getInstance() |
protected void |
importPermissions(LayoutCache layoutCache,
long companyId,
long groupId,
long userId,
com.liferay.portal.kernel.model.Layout layout,
java.lang.String resourceName,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element permissionsElement) |
void |
importPortletPermissions(LayoutCache layoutCache,
long companyId,
long groupId,
long userId,
com.liferay.portal.kernel.model.Layout layout,
com.liferay.portal.kernel.xml.Element portletElement,
java.lang.String portletId) |
void |
readPortletDataPermissions(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) |
public static PermissionImporter getInstance()
public void checkRoles(LayoutCache layoutCache, long companyId, long groupId, long userId, com.liferay.portal.kernel.xml.Element portletElement) throws java.lang.Exception
java.lang.Exception
public void importPortletPermissions(LayoutCache layoutCache, long companyId, long groupId, long userId, com.liferay.portal.kernel.model.Layout layout, com.liferay.portal.kernel.xml.Element portletElement, java.lang.String portletId) throws java.lang.Exception
java.lang.Exception
public void readPortletDataPermissions(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) throws java.lang.Exception
java.lang.Exception
protected com.liferay.portal.kernel.model.Role checkRole(LayoutCache layoutCache, long companyId, long groupId, long userId, com.liferay.portal.kernel.xml.Element roleElement) throws java.lang.Exception
java.lang.Exception
protected java.util.List<java.lang.String> getActions(com.liferay.portal.kernel.xml.Element element)
protected void importPermissions(LayoutCache layoutCache, long companyId, long groupId, long userId, com.liferay.portal.kernel.model.Layout layout, java.lang.String resourceName, java.lang.String resourcePrimKey, com.liferay.portal.kernel.xml.Element permissionsElement) throws java.lang.Exception
java.lang.Exception