com.liferay.portal.service.impl
Class LayoutLocalServiceImpl

java.lang.Object
  extended bycom.liferay.portal.service.base.LayoutLocalServiceBaseImpl
      extended bycom.liferay.portal.service.impl.LayoutLocalServiceImpl
All Implemented Interfaces:
com.liferay.portal.service.LayoutLocalService

public class LayoutLocalServiceImpl
extends LayoutLocalServiceBaseImpl

View Source

Author:
Brian Wing Shun Chan, Joel Kozikowski, Charles May, Raymond Aug�

Constructor Summary
LayoutLocalServiceImpl()
           
 
Method Summary
 com.liferay.portal.model.Layout addLayout(long userId, long groupId, boolean privateLayout, long parentLayoutId, java.lang.String name, java.lang.String title, java.lang.String description, java.lang.String type, boolean hidden, java.lang.String friendlyURL)
           
 com.liferay.portal.model.Layout addLayout(long userId, long groupId, boolean privateLayout, long parentLayoutId, java.lang.String name, java.lang.String title, java.lang.String description, java.lang.String type, boolean hidden, java.lang.String friendlyURL, long dlFolderId)
           
 void deleteLayout(com.liferay.portal.model.Layout layout, boolean updateLayoutSet)
           
 void deleteLayout(long plid)
           
 void deleteLayout(long groupId, boolean privateLayout, long layoutId)
           
 void deleteLayouts(long groupId, boolean privateLayout)
           
protected  void deleteMissingLayouts(long groupId, boolean privateLayout, java.util.Set newLayoutIds)
           
protected  org.dom4j.Element exportGroupPermissions(long companyId, long groupId, java.lang.String resourceName, java.lang.String resourcePrimKey, org.dom4j.Element parentEl, java.lang.String elName)
           
protected  void exportGroupRoles(LayoutCache layoutCache, long companyId, long groupId, java.lang.String resourceName, java.lang.String entityName, org.dom4j.Element parentEl)
           
protected  void exportInheritedPermissions(LayoutCache layoutCache, long companyId, java.lang.String resourceName, java.lang.String resourcePrimKey, org.dom4j.Element parentEl, java.lang.String entityName)
           
protected  void exportInheritedRoles(LayoutCache layoutCache, long companyId, long groupId, java.lang.String resourceName, java.lang.String entityName, org.dom4j.Element parentEl)
           
protected  void exportLayoutPermissions(LayoutCache layoutCache, long companyId, long groupId, com.liferay.portal.model.Group guestGroup, com.liferay.portal.model.Layout layout, org.dom4j.Element permissionsEl)
           
protected  void exportLayoutRoles(LayoutCache layoutCache, long companyId, long groupId, org.dom4j.Element rolesEl)
           
 byte[] exportLayouts(long groupId, boolean privateLayout, java.util.Map parameterMap)
           
protected  void exportPortletData(com.liferay.portal.kernel.lar.PortletDataContext context, com.liferay.portal.model.Layout layout, com.liferay.portal.model.LayoutTypePortlet layoutTypePortlet, org.dom4j.Element parentEl)
           
protected  void exportPortletData(com.liferay.portal.kernel.lar.PortletDataContext context, java.lang.String portletId, javax.portlet.PortletPreferences portletPreferences, org.dom4j.Element parentEl)
           
protected  void exportPortletPermissions(LayoutCache layoutCache, long companyId, long groupId, com.liferay.portal.model.Group guestGroup, com.liferay.portal.model.Layout layout, com.liferay.portal.model.LayoutTypePortlet layoutTypePortlet, java.util.Set portletIds, org.dom4j.Element permissionsEl)
           
protected  void exportPortletPreferences(long ownerId, int ownerType, boolean defaultUser, long plid, com.liferay.portal.model.LayoutTypePortlet layoutTypePortlet, org.dom4j.Element parentEl)
           
protected  void exportPortletPreferences(long ownerId, int ownerType, long plid, boolean defaultUser, org.dom4j.Element parentEl)
           
protected  void exportPortletRoles(LayoutCache layoutCache, long companyId, long groupId, java.util.Set portletIds, org.dom4j.Element rolesEl)
           
protected  org.dom4j.Element exportRoles(long companyId, java.lang.String resourceName, int scope, java.lang.String resourcePrimKey, org.dom4j.Element parentEl, java.lang.String elName, java.util.List roles)
           
protected  byte[] exportTheme(com.liferay.portal.model.LayoutSet layoutSet)
           
protected  void exportThemeFiles(java.lang.String path, java.io.File dir, com.liferay.portal.kernel.zip.ZipWriter zipWriter)
           
protected  void exportUserPermissions(LayoutCache layoutCache, long companyId, long groupId, java.lang.String resourceName, java.lang.String resourcePrimKey, org.dom4j.Element parentEl)
           
protected  void exportUserRoles(LayoutCache layoutCache, long companyId, long groupId, java.lang.String resourceName, org.dom4j.Element parentEl)
           
protected  void fixTypeSettings(com.liferay.portal.model.Layout layout)
           
protected  java.util.List getActions(org.dom4j.Element el)
           
 long getDefaultPlid(long groupId, boolean privateLayout)
           
 com.liferay.portal.model.Layout getDLFolderLayout(long dlFolderId)
           
 com.liferay.portal.model.Layout getFriendlyURLLayout(long groupId, boolean privateLayout, java.lang.String friendlyURL)
           
 com.liferay.portal.model.Layout getLayout(long plid)
           
 com.liferay.portal.model.Layout getLayout(long groupId, boolean privateLayout, long layoutId)
           
 java.util.List getLayouts(long groupId, boolean privateLayout)
           
 java.util.List getLayouts(long groupId, boolean privateLayout, long parentLayoutId)
           
 java.util.List getLayouts(long groupId, boolean privateLayout, long parentLayoutId, int begin, int end)
           
 com.liferay.portal.model.LayoutReference[] getLayouts(long companyId, java.lang.String portletId, java.lang.String prefsKey, java.lang.String prefsValue)
           
protected  long getNextLayoutId(long groupId, boolean privateLayout)
           
protected  int getNextPriority(long groupId, boolean privateLayout, long parentLayoutId)
           
protected  long getParentLayoutId(long groupId, boolean privateLayout, long parentLayoutId)
           
protected  boolean hasRole(java.util.List roles, java.lang.String roleName)
           
protected  void importGroupPermissions(LayoutCache layoutCache, long companyId, long groupId, java.lang.String resourceName, java.lang.String resourcePrimKey, org.dom4j.Element parentEl, java.lang.String elName, boolean portletActions)
           
protected  void importGroupRoles(LayoutCache layoutCache, long companyId, long groupId, java.lang.String resourceName, java.lang.String entityName, org.dom4j.Element parentEl)
           
protected  void importInheritedPermissions(LayoutCache layoutCache, long companyId, java.lang.String resourceName, java.lang.String resourcePrimKey, org.dom4j.Element permissionsEl, java.lang.String entityName, boolean portletActions)
           
protected  void importInheritedRoles(LayoutCache layoutCache, long companyId, long groupId, java.lang.String resourceName, java.lang.String entityName, org.dom4j.Element parentEl)
           
protected  void importLayoutPermissions(LayoutCache layoutCache, long companyId, long groupId, com.liferay.portal.model.Group guestGroup, com.liferay.portal.model.Layout layout, org.dom4j.Element permissionsEl)
           
protected  void importLayoutRoles(LayoutCache layoutCache, long companyId, long groupId, org.dom4j.Element rolesEl)
           
 void importLayouts(long userId, long groupId, boolean privateLayout, java.util.Map parameterMap, java.io.File file)
           
 void importLayouts(long userId, long groupId, boolean privateLayout, java.util.Map parameterMap, java.io.InputStream is)
           
protected  void importPortletData(com.liferay.portal.kernel.lar.PortletDataContext context, com.liferay.portal.model.Layout layout, org.dom4j.Element parentEl)
           
protected  java.lang.String importPortletData(com.liferay.portal.kernel.lar.PortletDataContext context, java.lang.String portletId, com.liferay.portal.model.PortletPreferences portletPreferences, org.dom4j.Element parentEl)
           
protected  void importPortletPermissions(LayoutCache layoutCache, long companyId, long groupId, com.liferay.portal.model.Group guestGroup, com.liferay.portal.model.Layout layout, org.dom4j.Element permissionsEl)
           
protected  void importPortletPreferences(com.liferay.portal.model.LayoutSet layoutSet, long plid, org.dom4j.Element parentEl)
           
protected  void importPortletRoles(LayoutCache layoutCache, long companyId, long groupId, org.dom4j.Element rolesEl)
           
protected  void importRolePermissions(LayoutCache layoutCache, long companyId, java.lang.String resourceName, int scope, java.lang.String resourcePrimKey, org.dom4j.Element parentEl, boolean communityRole)
           
protected  java.lang.String importTheme(com.liferay.portal.model.LayoutSet layoutSet, byte[] themeZip)
           
protected  void importUserPermissions(LayoutCache layoutCache, long companyId, long groupId, java.lang.String resourceName, java.lang.String resourcePrimKey, org.dom4j.Element parentEl, boolean portletActions)
           
protected  void importUserRoles(LayoutCache layoutCache, long companyId, long groupId, java.lang.String resourceName, org.dom4j.Element parentEl)
           
protected  boolean isDescendant(com.liferay.portal.model.Layout layout, long layoutId)
           
 void setLayouts(long groupId, boolean privateLayout, long parentLayoutId, long[] layoutIds)
           
 com.liferay.portal.model.Layout updateLayout(long groupId, boolean privateLayout, long layoutId, long parentLayoutId, java.lang.String name, java.lang.String title, java.lang.String languageId, java.lang.String description, java.lang.String type, boolean hidden, java.lang.String friendlyURL)
           
 com.liferay.portal.model.Layout updateLayout(long groupId, boolean privateLayout, long layoutId, long parentLayoutId, java.lang.String name, java.lang.String title, java.lang.String languageId, java.lang.String description, java.lang.String type, boolean hidden, java.lang.String friendlyURL, java.lang.Boolean iconImage, byte[] iconBytes)
           
 com.liferay.portal.model.Layout updateLayout(long groupId, boolean privateLayout, long layoutId, java.lang.String typeSettings)
           
 com.liferay.portal.model.Layout updateLookAndFeel(long groupId, boolean privateLayout, long layoutId, java.lang.String themeId, java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
           
 com.liferay.portal.model.Layout updateName(com.liferay.portal.model.Layout layout, java.lang.String name, java.lang.String languageId)
           
 com.liferay.portal.model.Layout updateName(long groupId, boolean privateLayout, long layoutId, java.lang.String name, java.lang.String languageId)
           
 com.liferay.portal.model.Layout updateName(long plid, java.lang.String name, java.lang.String languageId)
           
 com.liferay.portal.model.Layout updateParentLayoutId(long groupId, boolean privateLayout, long layoutId, long parentLayoutId)
           
 com.liferay.portal.model.Layout updateParentLayoutId(long plid, long parentPlid)
           
 com.liferay.portal.model.Layout updatePriority(com.liferay.portal.model.Layout layout, int priority)
           
 com.liferay.portal.model.Layout updatePriority(long groupId, boolean privateLayout, long layoutId, int priority)
           
 com.liferay.portal.model.Layout updatePriority(long plid, int priority)
           
protected  void validate(long groupId, boolean privateLayout, long layoutId, long parentLayoutId, java.lang.String name, java.lang.String type, boolean hidden, java.lang.String friendlyURL)
           
protected  void validateFirstLayout(java.lang.String type, boolean hidden)
           
protected  void validateParentLayoutId(long groupId, boolean privateLayout, long layoutId, long parentLayoutId)
           
 
Methods inherited from class com.liferay.portal.service.base.LayoutLocalServiceBaseImpl
addLayout, dynamicQuery, dynamicQuery, updateLayout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutLocalServiceImpl

public LayoutLocalServiceImpl()
Method Detail

addLayout

public com.liferay.portal.model.Layout addLayout(long userId,
                                                 long groupId,
                                                 boolean privateLayout,
                                                 long parentLayoutId,
                                                 java.lang.String name,
                                                 java.lang.String title,
                                                 java.lang.String description,
                                                 java.lang.String type,
                                                 boolean hidden,
                                                 java.lang.String friendlyURL)
                                          throws com.liferay.portal.PortalException,
                                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addLayout

public com.liferay.portal.model.Layout addLayout(long userId,
                                                 long groupId,
                                                 boolean privateLayout,
                                                 long parentLayoutId,
                                                 java.lang.String name,
                                                 java.lang.String title,
                                                 java.lang.String description,
                                                 java.lang.String type,
                                                 boolean hidden,
                                                 java.lang.String friendlyURL,
                                                 long dlFolderId)
                                          throws com.liferay.portal.PortalException,
                                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteLayout

public void deleteLayout(long plid)
                  throws com.liferay.portal.PortalException,
                         com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteLayout

public void deleteLayout(long groupId,
                         boolean privateLayout,
                         long layoutId)
                  throws com.liferay.portal.PortalException,
                         com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteLayout

public void deleteLayout(com.liferay.portal.model.Layout layout,
                         boolean updateLayoutSet)
                  throws com.liferay.portal.PortalException,
                         com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteLayouts

public void deleteLayouts(long groupId,
                          boolean privateLayout)
                   throws com.liferay.portal.PortalException,
                          com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

exportLayouts

public byte[] exportLayouts(long groupId,
                            boolean privateLayout,
                            java.util.Map parameterMap)
                     throws com.liferay.portal.PortalException,
                            com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getDefaultPlid

public long getDefaultPlid(long groupId,
                           boolean privateLayout)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getDLFolderLayout

public com.liferay.portal.model.Layout getDLFolderLayout(long dlFolderId)
                                                  throws com.liferay.portal.PortalException,
                                                         com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getFriendlyURLLayout

public com.liferay.portal.model.Layout getFriendlyURLLayout(long groupId,
                                                            boolean privateLayout,
                                                            java.lang.String friendlyURL)
                                                     throws com.liferay.portal.PortalException,
                                                            com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getLayout

public com.liferay.portal.model.Layout getLayout(long plid)
                                          throws com.liferay.portal.PortalException,
                                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getLayout

public com.liferay.portal.model.Layout getLayout(long groupId,
                                                 boolean privateLayout,
                                                 long layoutId)
                                          throws com.liferay.portal.PortalException,
                                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getLayouts

public java.util.List getLayouts(long groupId,
                                 boolean privateLayout)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getLayouts

public java.util.List getLayouts(long groupId,
                                 boolean privateLayout,
                                 long parentLayoutId)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getLayouts

public java.util.List getLayouts(long groupId,
                                 boolean privateLayout,
                                 long parentLayoutId,
                                 int begin,
                                 int end)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getLayouts

public com.liferay.portal.model.LayoutReference[] getLayouts(long companyId,
                                                             java.lang.String portletId,
                                                             java.lang.String prefsKey,
                                                             java.lang.String prefsValue)
                                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

importLayouts

public void importLayouts(long userId,
                          long groupId,
                          boolean privateLayout,
                          java.util.Map parameterMap,
                          java.io.File file)
                   throws com.liferay.portal.PortalException,
                          com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

importLayouts

public void importLayouts(long userId,
                          long groupId,
                          boolean privateLayout,
                          java.util.Map parameterMap,
                          java.io.InputStream is)
                   throws com.liferay.portal.PortalException,
                          com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

setLayouts

public void setLayouts(long groupId,
                       boolean privateLayout,
                       long parentLayoutId,
                       long[] layoutIds)
                throws com.liferay.portal.PortalException,
                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateLayout

public com.liferay.portal.model.Layout updateLayout(long groupId,
                                                    boolean privateLayout,
                                                    long layoutId,
                                                    long parentLayoutId,
                                                    java.lang.String name,
                                                    java.lang.String title,
                                                    java.lang.String languageId,
                                                    java.lang.String description,
                                                    java.lang.String type,
                                                    boolean hidden,
                                                    java.lang.String friendlyURL)
                                             throws com.liferay.portal.PortalException,
                                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateLayout

public com.liferay.portal.model.Layout updateLayout(long groupId,
                                                    boolean privateLayout,
                                                    long layoutId,
                                                    long parentLayoutId,
                                                    java.lang.String name,
                                                    java.lang.String title,
                                                    java.lang.String languageId,
                                                    java.lang.String description,
                                                    java.lang.String type,
                                                    boolean hidden,
                                                    java.lang.String friendlyURL,
                                                    java.lang.Boolean iconImage,
                                                    byte[] iconBytes)
                                             throws com.liferay.portal.PortalException,
                                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateLayout

public com.liferay.portal.model.Layout updateLayout(long groupId,
                                                    boolean privateLayout,
                                                    long layoutId,
                                                    java.lang.String typeSettings)
                                             throws com.liferay.portal.PortalException,
                                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateLookAndFeel

public com.liferay.portal.model.Layout updateLookAndFeel(long groupId,
                                                         boolean privateLayout,
                                                         long layoutId,
                                                         java.lang.String themeId,
                                                         java.lang.String colorSchemeId,
                                                         java.lang.String css,
                                                         boolean wapTheme)
                                                  throws com.liferay.portal.PortalException,
                                                         com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateName

public com.liferay.portal.model.Layout updateName(long plid,
                                                  java.lang.String name,
                                                  java.lang.String languageId)
                                           throws com.liferay.portal.PortalException,
                                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateName

public com.liferay.portal.model.Layout updateName(long groupId,
                                                  boolean privateLayout,
                                                  long layoutId,
                                                  java.lang.String name,
                                                  java.lang.String languageId)
                                           throws com.liferay.portal.PortalException,
                                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateName

public com.liferay.portal.model.Layout updateName(com.liferay.portal.model.Layout layout,
                                                  java.lang.String name,
                                                  java.lang.String languageId)
                                           throws com.liferay.portal.PortalException,
                                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateParentLayoutId

public com.liferay.portal.model.Layout updateParentLayoutId(long plid,
                                                            long parentPlid)
                                                     throws com.liferay.portal.PortalException,
                                                            com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateParentLayoutId

public com.liferay.portal.model.Layout updateParentLayoutId(long groupId,
                                                            boolean privateLayout,
                                                            long layoutId,
                                                            long parentLayoutId)
                                                     throws com.liferay.portal.PortalException,
                                                            com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updatePriority

public com.liferay.portal.model.Layout updatePriority(long plid,
                                                      int priority)
                                               throws com.liferay.portal.PortalException,
                                                      com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updatePriority

public com.liferay.portal.model.Layout updatePriority(long groupId,
                                                      boolean privateLayout,
                                                      long layoutId,
                                                      int priority)
                                               throws com.liferay.portal.PortalException,
                                                      com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updatePriority

public com.liferay.portal.model.Layout updatePriority(com.liferay.portal.model.Layout layout,
                                                      int priority)
                                               throws com.liferay.portal.PortalException,
                                                      com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteMissingLayouts

protected void deleteMissingLayouts(long groupId,
                                    boolean privateLayout,
                                    java.util.Set newLayoutIds)
                             throws com.liferay.portal.PortalException,
                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

exportGroupPermissions

protected org.dom4j.Element exportGroupPermissions(long companyId,
                                                   long groupId,
                                                   java.lang.String resourceName,
                                                   java.lang.String resourcePrimKey,
                                                   org.dom4j.Element parentEl,
                                                   java.lang.String elName)
                                            throws com.liferay.portal.PortalException,
                                                   com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

exportGroupRoles

protected void exportGroupRoles(LayoutCache layoutCache,
                                long companyId,
                                long groupId,
                                java.lang.String resourceName,
                                java.lang.String entityName,
                                org.dom4j.Element parentEl)
                         throws com.liferay.portal.PortalException,
                                com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

exportInheritedPermissions

protected void exportInheritedPermissions(LayoutCache layoutCache,
                                          long companyId,
                                          java.lang.String resourceName,
                                          java.lang.String resourcePrimKey,
                                          org.dom4j.Element parentEl,
                                          java.lang.String entityName)
                                   throws com.liferay.portal.PortalException,
                                          com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

exportInheritedRoles

protected void exportInheritedRoles(LayoutCache layoutCache,
                                    long companyId,
                                    long groupId,
                                    java.lang.String resourceName,
                                    java.lang.String entityName,
                                    org.dom4j.Element parentEl)
                             throws com.liferay.portal.PortalException,
                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

exportLayoutPermissions

protected void exportLayoutPermissions(LayoutCache layoutCache,
                                       long companyId,
                                       long groupId,
                                       com.liferay.portal.model.Group guestGroup,
                                       com.liferay.portal.model.Layout layout,
                                       org.dom4j.Element permissionsEl)
                                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,
                                 org.dom4j.Element rolesEl)
                          throws com.liferay.portal.PortalException,
                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

exportPortletData

protected void exportPortletData(com.liferay.portal.kernel.lar.PortletDataContext context,
                                 com.liferay.portal.model.Layout layout,
                                 com.liferay.portal.model.LayoutTypePortlet layoutTypePortlet,
                                 org.dom4j.Element parentEl)
                          throws com.liferay.portal.PortalException,
                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

exportPortletData

protected void exportPortletData(com.liferay.portal.kernel.lar.PortletDataContext context,
                                 java.lang.String portletId,
                                 javax.portlet.PortletPreferences portletPreferences,
                                 org.dom4j.Element parentEl)
                          throws com.liferay.portal.PortalException,
                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

exportPortletPermissions

protected void exportPortletPermissions(LayoutCache layoutCache,
                                        long companyId,
                                        long groupId,
                                        com.liferay.portal.model.Group guestGroup,
                                        com.liferay.portal.model.Layout layout,
                                        com.liferay.portal.model.LayoutTypePortlet layoutTypePortlet,
                                        java.util.Set portletIds,
                                        org.dom4j.Element permissionsEl)
                                 throws com.liferay.portal.PortalException,
                                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

exportPortletPreferences

protected void exportPortletPreferences(long ownerId,
                                        int ownerType,
                                        long plid,
                                        boolean defaultUser,
                                        org.dom4j.Element parentEl)
                                 throws com.liferay.portal.PortalException,
                                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

exportPortletPreferences

protected void exportPortletPreferences(long ownerId,
                                        int ownerType,
                                        boolean defaultUser,
                                        long plid,
                                        com.liferay.portal.model.LayoutTypePortlet layoutTypePortlet,
                                        org.dom4j.Element parentEl)
                                 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.util.Set portletIds,
                                  org.dom4j.Element rolesEl)
                           throws com.liferay.portal.PortalException,
                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

exportRoles

protected org.dom4j.Element exportRoles(long companyId,
                                        java.lang.String resourceName,
                                        int scope,
                                        java.lang.String resourcePrimKey,
                                        org.dom4j.Element parentEl,
                                        java.lang.String elName,
                                        java.util.List roles)
                                 throws com.liferay.portal.PortalException,
                                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

exportTheme

protected byte[] exportTheme(com.liferay.portal.model.LayoutSet layoutSet)
                      throws java.io.IOException,
                             com.liferay.portal.PortalException,
                             com.liferay.portal.SystemException
Throws:
java.io.IOException
com.liferay.portal.PortalException
com.liferay.portal.SystemException

exportThemeFiles

protected void exportThemeFiles(java.lang.String path,
                                java.io.File dir,
                                com.liferay.portal.kernel.zip.ZipWriter zipWriter)
                         throws java.io.IOException
Throws:
java.io.IOException

exportUserPermissions

protected void exportUserPermissions(LayoutCache layoutCache,
                                     long companyId,
                                     long groupId,
                                     java.lang.String resourceName,
                                     java.lang.String resourcePrimKey,
                                     org.dom4j.Element parentEl)
                              throws com.liferay.portal.PortalException,
                                     com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

exportUserRoles

protected void exportUserRoles(LayoutCache layoutCache,
                               long companyId,
                               long groupId,
                               java.lang.String resourceName,
                               org.dom4j.Element parentEl)
                        throws com.liferay.portal.PortalException,
                               com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

fixTypeSettings

protected void fixTypeSettings(com.liferay.portal.model.Layout layout)

getActions

protected java.util.List getActions(org.dom4j.Element el)

getNextLayoutId

protected long getNextLayoutId(long groupId,
                               boolean privateLayout)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getNextPriority

protected int getNextPriority(long groupId,
                              boolean privateLayout,
                              long parentLayoutId)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getParentLayoutId

protected long getParentLayoutId(long groupId,
                                 boolean privateLayout,
                                 long parentLayoutId)
                          throws com.liferay.portal.PortalException,
                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

hasRole

protected boolean hasRole(java.util.List roles,
                          java.lang.String roleName)

importGroupPermissions

protected void importGroupPermissions(LayoutCache layoutCache,
                                      long companyId,
                                      long groupId,
                                      java.lang.String resourceName,
                                      java.lang.String resourcePrimKey,
                                      org.dom4j.Element parentEl,
                                      java.lang.String elName,
                                      boolean portletActions)
                               throws com.liferay.portal.PortalException,
                                      com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

importGroupRoles

protected void importGroupRoles(LayoutCache layoutCache,
                                long companyId,
                                long groupId,
                                java.lang.String resourceName,
                                java.lang.String entityName,
                                org.dom4j.Element parentEl)
                         throws com.liferay.portal.PortalException,
                                com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

importInheritedPermissions

protected void importInheritedPermissions(LayoutCache layoutCache,
                                          long companyId,
                                          java.lang.String resourceName,
                                          java.lang.String resourcePrimKey,
                                          org.dom4j.Element permissionsEl,
                                          java.lang.String entityName,
                                          boolean portletActions)
                                   throws com.liferay.portal.PortalException,
                                          com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

importInheritedRoles

protected void importInheritedRoles(LayoutCache layoutCache,
                                    long companyId,
                                    long groupId,
                                    java.lang.String resourceName,
                                    java.lang.String entityName,
                                    org.dom4j.Element parentEl)
                             throws com.liferay.portal.PortalException,
                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

importLayoutPermissions

protected void importLayoutPermissions(LayoutCache layoutCache,
                                       long companyId,
                                       long groupId,
                                       com.liferay.portal.model.Group guestGroup,
                                       com.liferay.portal.model.Layout layout,
                                       org.dom4j.Element permissionsEl)
                                throws com.liferay.portal.PortalException,
                                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

importLayoutRoles

protected void importLayoutRoles(LayoutCache layoutCache,
                                 long companyId,
                                 long groupId,
                                 org.dom4j.Element rolesEl)
                          throws com.liferay.portal.PortalException,
                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

importPortletData

protected void importPortletData(com.liferay.portal.kernel.lar.PortletDataContext context,
                                 com.liferay.portal.model.Layout layout,
                                 org.dom4j.Element parentEl)
                          throws com.liferay.portal.PortalException,
                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

importPortletData

protected java.lang.String importPortletData(com.liferay.portal.kernel.lar.PortletDataContext context,
                                             java.lang.String portletId,
                                             com.liferay.portal.model.PortletPreferences portletPreferences,
                                             org.dom4j.Element parentEl)
                                      throws com.liferay.portal.PortalException,
                                             com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

importPortletPermissions

protected void importPortletPermissions(LayoutCache layoutCache,
                                        long companyId,
                                        long groupId,
                                        com.liferay.portal.model.Group guestGroup,
                                        com.liferay.portal.model.Layout layout,
                                        org.dom4j.Element permissionsEl)
                                 throws com.liferay.portal.PortalException,
                                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

importPortletPreferences

protected void importPortletPreferences(com.liferay.portal.model.LayoutSet layoutSet,
                                        long plid,
                                        org.dom4j.Element parentEl)
                                 throws com.liferay.portal.PortalException,
                                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

importPortletRoles

protected void importPortletRoles(LayoutCache layoutCache,
                                  long companyId,
                                  long groupId,
                                  org.dom4j.Element rolesEl)
                           throws com.liferay.portal.PortalException,
                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

importRolePermissions

protected void importRolePermissions(LayoutCache layoutCache,
                                     long companyId,
                                     java.lang.String resourceName,
                                     int scope,
                                     java.lang.String resourcePrimKey,
                                     org.dom4j.Element parentEl,
                                     boolean communityRole)
                              throws com.liferay.portal.PortalException,
                                     com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

importTheme

protected java.lang.String importTheme(com.liferay.portal.model.LayoutSet layoutSet,
                                       byte[] themeZip)
                                throws java.io.IOException
Throws:
java.io.IOException

importUserPermissions

protected void importUserPermissions(LayoutCache layoutCache,
                                     long companyId,
                                     long groupId,
                                     java.lang.String resourceName,
                                     java.lang.String resourcePrimKey,
                                     org.dom4j.Element parentEl,
                                     boolean portletActions)
                              throws com.liferay.portal.PortalException,
                                     com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

importUserRoles

protected void importUserRoles(LayoutCache layoutCache,
                               long companyId,
                               long groupId,
                               java.lang.String resourceName,
                               org.dom4j.Element parentEl)
                        throws com.liferay.portal.PortalException,
                               com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

isDescendant

protected boolean isDescendant(com.liferay.portal.model.Layout layout,
                               long layoutId)
                        throws com.liferay.portal.PortalException,
                               com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

validate

protected void validate(long groupId,
                        boolean privateLayout,
                        long layoutId,
                        long parentLayoutId,
                        java.lang.String name,
                        java.lang.String type,
                        boolean hidden,
                        java.lang.String friendlyURL)
                 throws com.liferay.portal.PortalException,
                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

validateFirstLayout

protected void validateFirstLayout(java.lang.String type,
                                   boolean hidden)
                            throws com.liferay.portal.PortalException
Throws:
com.liferay.portal.PortalException

validateParentLayoutId

protected void validateParentLayoutId(long groupId,
                                      boolean privateLayout,
                                      long layoutId,
                                      long parentLayoutId)
                               throws com.liferay.portal.PortalException,
                                      com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException