Liferay 6.0.5

com.liferay.portal.lar
Class PermissionImporter

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

public class PermissionImporter
extends Object


Constructor Summary
PermissionImporter()
           
 
Method Summary
protected  List<String> getActions(Element el)
           
protected  void importGroupPermissions(LayoutCache layoutCache, long companyId, long groupId, String resourceName, String resourcePrimKey, Element parentEl, String elName, boolean portletActions)
           
protected  void importGroupRoles(LayoutCache layoutCache, long companyId, long groupId, String resourceName, String entityName, Element parentEl)
           
protected  void importInheritedPermissions(LayoutCache layoutCache, long companyId, String resourceName, String resourcePrimKey, Element permissionsEl, String entityName, boolean portletActions)
           
protected  void importInheritedRoles(LayoutCache layoutCache, long companyId, long groupId, String resourceName, String entityName, Element parentEl)
           
protected  void importLayoutPermissions_1to4(LayoutCache layoutCache, long companyId, long groupId, Group guestGroup, Layout layout, String resourceName, String resourcePrimKey, Element permissionsEl, boolean importUserPermissions)
           
protected  void importLayoutPermissions(LayoutCache layoutCache, long companyId, long groupId, long userId, Layout layout, Element layoutEl, Element parentEl, boolean importUserPermissions)
           
protected  void importLayoutRoles(LayoutCache layoutCache, long companyId, long groupId, Element rolesEl)
           
protected  void importPermissions_5(LayoutCache layoutCache, long companyId, long groupId, long userId, String resourceName, String resourcePrimKey, Element permissionsEl, boolean portletActions)
           
protected  void importPermissions_6(LayoutCache layoutCache, long companyId, long groupId, long userId, String resourceName, String resourcePrimKey, Element permissionsEl, boolean portletActions)
           
protected  void importPortletPermissions_1to4(LayoutCache layoutCache, long companyId, long groupId, Group guestGroup, Layout layout, Element permissionsEl, boolean importUserPermissions)
           
protected  void importPortletPermissions(LayoutCache layoutCache, long companyId, long groupId, long userId, Layout layout, Element portletEl, String portletId, boolean importUserPermissions)
           
protected  void importPortletRoles(LayoutCache layoutCache, long companyId, long groupId, Element rolesEl)
           
protected  void importPortletRoles(LayoutCache layoutCache, long companyId, long groupId, String portletId, Element rolesEl)
           
protected  void importRolePermissions(LayoutCache layoutCache, long companyId, String resourceName, int scope, String resourcePrimKey, Element parentEl, boolean communityRole)
           
protected  void importUserPermissions(LayoutCache layoutCache, long companyId, long groupId, String resourceName, String resourcePrimKey, Element parentEl, boolean portletActions)
           
protected  void importUserRoles(LayoutCache layoutCache, long companyId, long groupId, String resourceName, Element parentEl)
           
protected  void readPortletDataPermissions(PortletDataContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PermissionImporter

public PermissionImporter()
Method Detail

getActions

protected List<String> getActions(Element el)

importGroupPermissions

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

importGroupRoles

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

importInheritedPermissions

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

importInheritedRoles

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

importLayoutPermissions

protected void importLayoutPermissions(LayoutCache layoutCache,
                                       long companyId,
                                       long groupId,
                                       long userId,
                                       Layout layout,
                                       Element layoutEl,
                                       Element parentEl,
                                       boolean importUserPermissions)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

importLayoutPermissions_1to4

protected void importLayoutPermissions_1to4(LayoutCache layoutCache,
                                            long companyId,
                                            long groupId,
                                            Group guestGroup,
                                            Layout layout,
                                            String resourceName,
                                            String resourcePrimKey,
                                            Element permissionsEl,
                                            boolean importUserPermissions)
                                     throws PortalException,
                                            SystemException
Throws:
PortalException
SystemException

importLayoutRoles

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

importPermissions_5

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

importPermissions_6

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

importPortletPermissions

protected void importPortletPermissions(LayoutCache layoutCache,
                                        long companyId,
                                        long groupId,
                                        long userId,
                                        Layout layout,
                                        Element portletEl,
                                        String portletId,
                                        boolean importUserPermissions)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

importPortletPermissions_1to4

protected void importPortletPermissions_1to4(LayoutCache layoutCache,
                                             long companyId,
                                             long groupId,
                                             Group guestGroup,
                                             Layout layout,
                                             Element permissionsEl,
                                             boolean importUserPermissions)
                                      throws PortalException,
                                             SystemException
Throws:
PortalException
SystemException

importPortletRoles

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

importPortletRoles

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

importRolePermissions

protected void importRolePermissions(LayoutCache layoutCache,
                                     long companyId,
                                     String resourceName,
                                     int scope,
                                     String resourcePrimKey,
                                     Element parentEl,
                                     boolean communityRole)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

importUserPermissions

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

importUserRoles

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

readPortletDataPermissions

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

Liferay 6.0.5