com.liferay.portal.lar
Class PermissionExporter
java.lang.Object
com.liferay.portal.lar.PermissionExporter
public class PermissionExporter
- extends Object
Method Summary |
protected void |
exportPermissions(LayoutCache layoutCache,
long companyId,
long groupId,
String resourceName,
String resourcePrimKey,
Element permissionsElement,
boolean portletActions)
|
protected void |
exportPortletDataPermissions(PortletDataContext portletDataContext)
|
protected void |
exportPortletPermissions(PortletDataContext portletDataContext,
LayoutCache layoutCache,
String portletId,
Layout layout,
Element portletElement)
|
protected Element |
exportRoles(long companyId,
String resourceName,
int scope,
String resourcePrimKey,
Element parentElement,
String elName,
List<Role> roles)
|
protected void |
exportUserRoles(LayoutCache layoutCache,
long companyId,
long groupId,
String resourceName,
Element parentElement)
|
protected boolean |
hasRole(List<Role> roles,
String roleName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ROLE_TEAM_PREFIX
public static final String ROLE_TEAM_PREFIX
- See Also:
- Constant Field Values
PermissionExporter
public PermissionExporter()
exportPermissions
protected void exportPermissions(LayoutCache layoutCache,
long companyId,
long groupId,
String resourceName,
String resourcePrimKey,
Element permissionsElement,
boolean portletActions)
throws Exception
- Throws:
Exception
exportPortletDataPermissions
protected void exportPortletDataPermissions(PortletDataContext portletDataContext)
throws Exception
- Throws:
Exception
exportPortletPermissions
protected void exportPortletPermissions(PortletDataContext portletDataContext,
LayoutCache layoutCache,
String portletId,
Layout layout,
Element portletElement)
throws Exception
- Throws:
Exception
exportRoles
protected Element exportRoles(long companyId,
String resourceName,
int scope,
String resourcePrimKey,
Element parentElement,
String elName,
List<Role> roles)
throws Exception
- Throws:
Exception
exportUserRoles
protected void exportUserRoles(LayoutCache layoutCache,
long companyId,
long groupId,
String resourceName,
Element parentElement)
throws Exception
- Throws:
Exception
hasRole
protected boolean hasRole(List<Role> roles,
String roleName)