com.liferay.portal.lar
Class PermissionExporter
java.lang.Object
com.liferay.portal.lar.PermissionExporter
public class PermissionExporter
- extends java.lang.Object
View Source
- Author:
- Brian Wing Shun Chan, Joel Kozikowski, Charles May, Raymond Augé, Jorge Ferrer, Bruno Farache, Zsigmond Rab, Douglas Wong
Method Summary |
protected com.liferay.portal.kernel.xml.Element |
exportGroupPermissions(long companyId,
long groupId,
java.lang.String resourceName,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element parentEl,
java.lang.String elName)
|
protected void |
exportGroupRoles(LayoutCache layoutCache,
long companyId,
long groupId,
java.lang.String resourceName,
java.lang.String entityName,
com.liferay.portal.kernel.xml.Element parentEl)
|
protected void |
exportInheritedPermissions(LayoutCache layoutCache,
long companyId,
java.lang.String resourceName,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element parentEl,
java.lang.String entityName)
|
protected void |
exportInheritedRoles(LayoutCache layoutCache,
long companyId,
long groupId,
java.lang.String resourceName,
java.lang.String entityName,
com.liferay.portal.kernel.xml.Element parentEl)
|
protected void |
exportLayoutPermissions(com.liferay.portal.lar.PortletDataContext context,
LayoutCache layoutCache,
long companyId,
long groupId,
com.liferay.portal.model.Layout layout,
com.liferay.portal.kernel.xml.Element layoutEl,
boolean exportUserPermissions)
|
protected void |
exportLayoutRoles(LayoutCache layoutCache,
long companyId,
long groupId,
com.liferay.portal.kernel.xml.Element rolesEl)
|
protected void |
exportPermissions_1to4(LayoutCache layoutCache,
long companyId,
long groupId,
java.lang.String resourceName,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element permissionsEl,
boolean exportUserPermissions)
|
protected void |
exportPermissions_5(LayoutCache layoutCache,
long companyId,
long groupId,
java.lang.String resourceName,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element permissionsEl,
boolean portletActions)
|
protected void |
exportPermissions_6(LayoutCache layoutCache,
long companyId,
long groupId,
java.lang.String resourceName,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element permissionsEl,
boolean portletActions)
|
protected void |
exportPortletDataPermissions(com.liferay.portal.lar.PortletDataContext context)
|
protected void |
exportPortletPermissions(com.liferay.portal.lar.PortletDataContext context,
LayoutCache layoutCache,
java.lang.String portletId,
com.liferay.portal.model.Layout layout,
com.liferay.portal.kernel.xml.Element portletEl)
|
protected void |
exportPortletRoles(LayoutCache layoutCache,
long companyId,
long groupId,
java.lang.String portletId,
com.liferay.portal.kernel.xml.Element rolesEl)
|
protected com.liferay.portal.kernel.xml.Element |
exportRoles(long companyId,
java.lang.String resourceName,
int scope,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element parentEl,
java.lang.String elName,
java.util.List<com.liferay.portal.model.Role> roles)
|
protected void |
exportUserPermissions(LayoutCache layoutCache,
long companyId,
long groupId,
java.lang.String resourceName,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element parentEl)
|
protected void |
exportUserRoles(LayoutCache layoutCache,
long companyId,
long groupId,
java.lang.String resourceName,
com.liferay.portal.kernel.xml.Element parentEl)
|
protected boolean |
hasRole(java.util.List<com.liferay.portal.model.Role> roles,
java.lang.String roleName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PermissionExporter
public PermissionExporter()
exportGroupPermissions
protected com.liferay.portal.kernel.xml.Element exportGroupPermissions(long companyId,
long groupId,
java.lang.String resourceName,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element parentEl,
java.lang.String elName)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
exportGroupRoles
protected void exportGroupRoles(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.SystemException
- Throws:
com.liferay.portal.SystemException
exportInheritedPermissions
protected void exportInheritedPermissions(LayoutCache layoutCache,
long companyId,
java.lang.String resourceName,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element parentEl,
java.lang.String entityName)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
exportInheritedRoles
protected void exportInheritedRoles(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.SystemException
- Throws:
com.liferay.portal.SystemException
exportLayoutPermissions
protected void exportLayoutPermissions(com.liferay.portal.lar.PortletDataContext context,
LayoutCache layoutCache,
long companyId,
long groupId,
com.liferay.portal.model.Layout layout,
com.liferay.portal.kernel.xml.Element layoutEl,
boolean exportUserPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
exportLayoutRoles
protected void exportLayoutRoles(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
exportPermissions_1to4
protected void exportPermissions_1to4(LayoutCache layoutCache,
long companyId,
long groupId,
java.lang.String resourceName,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element permissionsEl,
boolean exportUserPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
exportPermissions_5
protected void exportPermissions_5(LayoutCache layoutCache,
long companyId,
long groupId,
java.lang.String resourceName,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element permissionsEl,
boolean portletActions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
exportPermissions_6
protected void exportPermissions_6(LayoutCache layoutCache,
long companyId,
long groupId,
java.lang.String resourceName,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element permissionsEl,
boolean portletActions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
exportPortletDataPermissions
protected void exportPortletDataPermissions(com.liferay.portal.lar.PortletDataContext context)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
exportPortletPermissions
protected void exportPortletPermissions(com.liferay.portal.lar.PortletDataContext context,
LayoutCache layoutCache,
java.lang.String portletId,
com.liferay.portal.model.Layout layout,
com.liferay.portal.kernel.xml.Element portletEl)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
exportPortletRoles
protected void exportPortletRoles(LayoutCache layoutCache,
long companyId,
long groupId,
java.lang.String portletId,
com.liferay.portal.kernel.xml.Element rolesEl)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
exportRoles
protected com.liferay.portal.kernel.xml.Element exportRoles(long companyId,
java.lang.String resourceName,
int scope,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element parentEl,
java.lang.String elName,
java.util.List<com.liferay.portal.model.Role> roles)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
exportUserPermissions
protected void exportUserPermissions(LayoutCache layoutCache,
long companyId,
long groupId,
java.lang.String resourceName,
java.lang.String resourcePrimKey,
com.liferay.portal.kernel.xml.Element parentEl)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
exportUserRoles
protected void exportUserRoles(LayoutCache layoutCache,
long companyId,
long groupId,
java.lang.String resourceName,
com.liferay.portal.kernel.xml.Element parentEl)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
hasRole
protected boolean hasRole(java.util.List<com.liferay.portal.model.Role> roles,
java.lang.String roleName)