Liferay 6.0-ee

com.liferay.portal.lar
Class PermissionExporter

java.lang.Object
  extended by com.liferay.portal.lar.PermissionExporter

public class PermissionExporter
extends Object


Constructor Summary
PermissionExporter()
           
 
Method Summary
protected  Element exportGroupPermissions(long companyId, long groupId, String resourceName, String resourcePrimKey, Element parentEl, String elName)
           
protected  void exportGroupRoles(LayoutCache layoutCache, long companyId, long groupId, String resourceName, String entityName, Element parentEl)
           
protected  void exportInheritedPermissions(LayoutCache layoutCache, long companyId, String resourceName, String resourcePrimKey, Element parentEl, String entityName)
           
protected  void exportInheritedRoles(LayoutCache layoutCache, long companyId, long groupId, String resourceName, String entityName, Element parentEl)
           
protected  void exportLayoutPermissions(PortletDataContext context, LayoutCache layoutCache, long companyId, long groupId, Layout layout, Element layoutEl, boolean exportUserPermissions)
           
protected  void exportLayoutRoles(LayoutCache layoutCache, long companyId, long groupId, Element rolesEl)
           
protected  void exportPermissions_1to4(LayoutCache layoutCache, long companyId, long groupId, String resourceName, String resourcePrimKey, Element permissionsEl, boolean exportUserPermissions)
           
protected  void exportPermissions_5(LayoutCache layoutCache, long companyId, long groupId, String resourceName, String resourcePrimKey, Element permissionsEl, boolean portletActions)
           
protected  void exportPermissions_6(LayoutCache layoutCache, long companyId, long groupId, String resourceName, String resourcePrimKey, Element permissionsEl, boolean portletActions)
           
protected  void exportPortletDataPermissions(PortletDataContext context)
           
protected  void exportPortletPermissions(PortletDataContext context, LayoutCache layoutCache, String portletId, Layout layout, Element portletEl)
           
protected  void exportPortletRoles(LayoutCache layoutCache, long companyId, long groupId, String portletId, Element rolesEl)
           
protected  Element exportRoles(long companyId, String resourceName, int scope, String resourcePrimKey, Element parentEl, String elName, List<Role> roles)
           
protected  void exportUserPermissions(LayoutCache layoutCache, long companyId, long groupId, String resourceName, String resourcePrimKey, Element parentEl)
           
protected  void exportUserRoles(LayoutCache layoutCache, long companyId, long groupId, String resourceName, Element parentEl)
           
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
 

Constructor Detail

PermissionExporter

public PermissionExporter()
Method Detail

exportGroupPermissions

protected Element exportGroupPermissions(long companyId,
                                         long groupId,
                                         String resourceName,
                                         String resourcePrimKey,
                                         Element parentEl,
                                         String elName)
                                  throws SystemException
Throws:
SystemException

exportGroupRoles

protected void exportGroupRoles(LayoutCache layoutCache,
                                long companyId,
                                long groupId,
                                String resourceName,
                                String entityName,
                                Element parentEl)
                         throws SystemException
Throws:
SystemException

exportInheritedPermissions

protected void exportInheritedPermissions(LayoutCache layoutCache,
                                          long companyId,
                                          String resourceName,
                                          String resourcePrimKey,
                                          Element parentEl,
                                          String entityName)
                                   throws PortalException,
                                          SystemException
Throws:
PortalException
SystemException

exportInheritedRoles

protected void exportInheritedRoles(LayoutCache layoutCache,
                                    long companyId,
                                    long groupId,
                                    String resourceName,
                                    String entityName,
                                    Element parentEl)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

exportLayoutPermissions

protected void exportLayoutPermissions(PortletDataContext context,
                                       LayoutCache layoutCache,
                                       long companyId,
                                       long groupId,
                                       Layout layout,
                                       Element layoutEl,
                                       boolean exportUserPermissions)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

exportLayoutRoles

protected void exportLayoutRoles(LayoutCache layoutCache,
                                 long companyId,
                                 long groupId,
                                 Element rolesEl)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

exportPermissions_1to4

protected void exportPermissions_1to4(LayoutCache layoutCache,
                                      long companyId,
                                      long groupId,
                                      String resourceName,
                                      String resourcePrimKey,
                                      Element permissionsEl,
                                      boolean exportUserPermissions)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

exportPermissions_5

protected void exportPermissions_5(LayoutCache layoutCache,
                                   long companyId,
                                   long groupId,
                                   String resourceName,
                                   String resourcePrimKey,
                                   Element permissionsEl,
                                   boolean portletActions)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

exportPermissions_6

protected void exportPermissions_6(LayoutCache layoutCache,
                                   long companyId,
                                   long groupId,
                                   String resourceName,
                                   String resourcePrimKey,
                                   Element permissionsEl,
                                   boolean portletActions)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

exportPortletDataPermissions

protected void exportPortletDataPermissions(PortletDataContext context)
                                     throws SystemException
Throws:
SystemException

exportPortletPermissions

protected void exportPortletPermissions(PortletDataContext context,
                                        LayoutCache layoutCache,
                                        String portletId,
                                        Layout layout,
                                        Element portletEl)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

exportPortletRoles

protected void exportPortletRoles(LayoutCache layoutCache,
                                  long companyId,
                                  long groupId,
                                  String portletId,
                                  Element rolesEl)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

exportRoles

protected Element exportRoles(long companyId,
                              String resourceName,
                              int scope,
                              String resourcePrimKey,
                              Element parentEl,
                              String elName,
                              List<Role> roles)
                       throws SystemException
Throws:
SystemException

exportUserPermissions

protected void exportUserPermissions(LayoutCache layoutCache,
                                     long companyId,
                                     long groupId,
                                     String resourceName,
                                     String resourcePrimKey,
                                     Element parentEl)
                              throws SystemException
Throws:
SystemException

exportUserRoles

protected void exportUserRoles(LayoutCache layoutCache,
                               long companyId,
                               long groupId,
                               String resourceName,
                               Element parentEl)
                        throws SystemException
Throws:
SystemException

hasRole

protected boolean hasRole(List<Role> roles,
                          String roleName)

Liferay 6.0-ee