com.liferay.portal.service.impl
Class LayoutLocalServiceImpl

java.lang.Object
  extended by com.liferay.portal.service.base.LayoutLocalServiceBaseImpl
      extended by com.liferay.portal.service.impl.LayoutLocalServiceImpl
All Implemented Interfaces:
com.liferay.portal.service.LayoutLocalService, org.springframework.beans.factory.InitializingBean

public class LayoutLocalServiceImpl
extends LayoutLocalServiceBaseImpl

View Source

Author:
Brian Wing Shun Chan, Joel Kozikowski, Charles May, Raymond Aug�, Jorge Ferrer, Bruno Farache

Field Summary
 
Fields inherited from class com.liferay.portal.service.base.LayoutLocalServiceBaseImpl
accountLocalService, accountPersistence, accountService, addressLocalService, addressPersistence, addressService, classNameLocalService, classNamePersistence, classNameService, companyLocalService, companyPersistence, companyService, contactLocalService, contactPersistence, contactService, counterLocalService, counterService, countryPersistence, countryService, dlFolderLocalService, dlFolderPersistence, dlFolderService, emailAddressLocalService, emailAddressPersistence, emailAddressService, groupFinder, groupLocalService, groupPersistence, groupService, imageLocalService, imagePersistence, journalContentSearchLocalService, journalContentSearchPersistence, layoutFinder, layoutPersistence, layoutSetLocalService, layoutSetPersistence, layoutSetService, listTypePersistence, listTypeService, mbMessageFinder, mbMessageLocalService, mbMessagePersistence, mbMessageService, membershipRequestLocalService, membershipRequestPersistence, membershipRequestService, organizationFinder, organizationLocalService, organizationPersistence, organizationService, orgGroupPermissionFinder, orgGroupPermissionPersistence, orgGroupRolePersistence, orgLaborLocalService, orgLaborPersistence, orgLaborService, passwordPolicyFinder, passwordPolicyLocalService, passwordPolicyPersistence, passwordPolicyRelLocalService, passwordPolicyRelPersistence, passwordPolicyService, passwordTrackerLocalService, passwordTrackerPersistence, permissionFinder, permissionLocalService, permissionPersistence, permissionService, permissionUserFinder, phoneLocalService, phonePersistence, phoneService, pluginSettingLocalService, pluginSettingPersistence, pluginSettingService, portalService, portletItemLocalService, portletItemPersistence, portletLocalService, portletPersistence, portletPreferencesFinder, portletPreferencesLocalService, portletPreferencesPersistence, portletPreferencesService, portletService, ratingsStatsLocalService, ratingsStatsPersistence, regionPersistence, regionService, releaseLocalService, releasePersistence, resourceCodeLocalService, resourceCodePersistence, resourceFinder, resourceLocalService, resourcePersistence, resourceService, roleFinder, roleLocalService, rolePersistence, roleService, serviceComponentLocalService, serviceComponentPersistence, subscriptionLocalService, subscriptionPersistence, tasksProposalFinder, tasksProposalLocalService, tasksProposalPersistence, tasksProposalService, userFinder, userGroupFinder, userGroupLocalService, userGroupPersistence, userGroupRoleLocalService, userGroupRolePersistence, userGroupRoleService, userGroupService, userIdMapperLocalService, userIdMapperPersistence, userLocalService, userPersistence, userService, userTrackerLocalService, userTrackerPathLocalService, userTrackerPathPersistence, userTrackerPersistence, webDAVPropsLocalService, webDAVPropsPersistence, websiteLocalService, websitePersistence, websiteService
 
Constructor Summary
LayoutLocalServiceImpl()
           
 
Method Summary
 com.liferay.portal.model.Layout addLayout(long userId, long groupId, boolean privateLayout, long parentLayoutId, java.util.Map<java.util.Locale,java.lang.String> localeNamesMap, java.util.Map<java.util.Locale,java.lang.String> localeTitlesMap, 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.util.Map<java.util.Locale,java.lang.String> localeNamesMap, java.util.Map<java.util.Locale,java.lang.String> localeTitlesMap, java.lang.String description, java.lang.String type, boolean hidden, java.lang.String friendlyURL, long dlFolderId)
           
 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<java.lang.Long> newLayoutIds)
           
protected  void deletePortletData(com.liferay.portal.kernel.lar.PortletDataContext context, com.liferay.portal.model.Layout layout, org.dom4j.Element parentEl)
           
protected  java.lang.String deletePortletData(com.liferay.portal.kernel.lar.PortletDataContext context, java.lang.String portletId, com.liferay.portal.model.PortletPreferences portletPreferences, org.dom4j.Element parentEl)
           
protected  void exportComments(com.liferay.portal.kernel.lar.PortletDataContext context, org.dom4j.Element root)
           
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, boolean exportUserPermissions)
           
protected  void exportLayoutRoles(LayoutCache layoutCache, long companyId, long groupId, org.dom4j.Element rolesEl)
           
 byte[] exportLayouts(long groupId, boolean privateLayout, long[] layoutIds, java.util.Map<java.lang.String,java.lang.String[]> parameterMap)
           
 byte[] exportLayouts(long groupId, boolean privateLayout, java.util.Map<java.lang.String,java.lang.String[]> 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)
           
 byte[] exportPortletInfo(long plid, java.lang.String portletId, java.util.Map<java.lang.String,java.lang.String[]> parameterMap)
           
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<java.lang.String> portletIds, org.dom4j.Element permissionsEl, boolean exportUserPermissions)
           
protected  void exportPortletPreferences(long ownerId, int ownerType, boolean defaultUser, com.liferay.portal.model.Layout layout, java.lang.String portletId, org.dom4j.Element parentEl)
           
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<java.lang.String> portletIds, org.dom4j.Element rolesEl)
           
protected  void exportRatings(com.liferay.portal.kernel.lar.PortletDataContext context, org.dom4j.Element root)
           
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<com.liferay.portal.model.Role> roles)
           
protected  void exportTags(com.liferay.portal.kernel.lar.PortletDataContext context, org.dom4j.Element root)
           
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<java.lang.String> getActions(org.dom4j.Element el)
           
 long getDefaultPlid(long groupId)
           
 long getDefaultPlid(long groupId, boolean privateLayout)
           
 long getDefaultPlid(long groupId, boolean privateLayout, java.lang.String portletId)
           
 com.liferay.portal.model.Layout getDLFolderLayout(long dlFolderId)
           
protected  java.lang.String getFriendlyURL(long layoutId, java.lang.String friendlyURL)
           
protected  java.lang.String getFriendlyURL(java.lang.String friendlyURL)
           
 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)
           
 com.liferay.portal.model.Layout getLayoutByIconImageId(long iconImageId)
           
 java.util.List<com.liferay.portal.model.Layout> getLayouts(long groupId, boolean privateLayout)
           
 java.util.List<com.liferay.portal.model.Layout> getLayouts(long groupId, boolean privateLayout, long parentLayoutId)
           
 java.util.List<com.liferay.portal.model.Layout> getLayouts(long groupId, boolean privateLayout, long[] layoutIds)
           
 java.util.List<com.liferay.portal.model.Layout> 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)
           
 java.util.List<com.liferay.portal.model.Layout> getNullFriendlyURLLayouts()
           
protected  long getParentLayoutId(long groupId, boolean privateLayout, long parentLayoutId)
           
protected  com.liferay.portal.kernel.lar.UserIdStrategy getUserIdStrategy(com.liferay.portal.model.User user, java.lang.String userIdStrategy)
           
protected  boolean hasRole(java.util.List<com.liferay.portal.model.Role> 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, boolean importUserPermissions)
           
protected  void importLayoutRoles(LayoutCache layoutCache, long companyId, long groupId, org.dom4j.Element rolesEl)
           
 void importLayouts(long userId, long groupId, boolean privateLayout, java.util.Map<java.lang.String,java.lang.String[]> parameterMap, java.io.File file)
           
 void importLayouts(long userId, long groupId, boolean privateLayout, java.util.Map<java.lang.String,java.lang.String[]> 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)
           
 void importPortletInfo(long userId, long plid, java.lang.String portletId, java.util.Map<java.lang.String,java.lang.String[]> parameterMap, java.io.File file)
           
 void importPortletInfo(long userId, long plid, java.lang.String portletId, java.util.Map<java.lang.String,java.lang.String[]> parameterMap, java.io.InputStream is)
           
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, boolean importUserPermissions)
           
protected  void importPortletPreferences(com.liferay.portal.kernel.lar.PortletDataContext context, long companyId, long groupId, long plid, org.dom4j.Element parentEl, boolean importPortletSetup, boolean importPortletArchivedSetups, boolean importUserPreferences)
           
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)
           
protected  void readComments(com.liferay.portal.kernel.lar.PortletDataContext context, org.dom4j.Element root)
           
protected  void readRatings(com.liferay.portal.kernel.lar.PortletDataContext context, org.dom4j.Element root)
           
protected  void readTags(com.liferay.portal.kernel.lar.PortletDataContext context, org.dom4j.Element root)
           
 void setLayouts(long groupId, boolean privateLayout, long parentLayoutId, long[] layoutIds)
           
protected  void setLocalizedAttributes(com.liferay.portal.model.Layout layout, java.util.Map<java.util.Locale,java.lang.String> localeNamesMap, java.util.Map<java.util.Locale,java.lang.String> localeTitlesMap)
           
 com.liferay.portal.model.Layout updateFriendlyURL(long plid, java.lang.String friendlyURL)
           
 com.liferay.portal.model.Layout updateLayout(long groupId, boolean privateLayout, long layoutId, long parentLayoutId, java.util.Map<java.util.Locale,java.lang.String> localeNamesMap, java.util.Map<java.util.Locale,java.lang.String> localeTitlesMap, 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.util.Map<java.util.Locale,java.lang.String> localeNamesMap, java.util.Map<java.util.Locale,java.lang.String> localeTitlesMap, 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 type, boolean hidden, java.lang.String friendlyURL)
           
protected  void validateFirstLayout(java.lang.String type, boolean hidden)
           
protected  void validateFriendlyURL(long groupId, boolean privateLayout, long layoutId, java.lang.String friendlyURL)
           
protected  void validateParentLayoutId(long groupId, boolean privateLayout, long layoutId, long parentLayoutId)
           
 
Methods inherited from class com.liferay.portal.service.base.LayoutLocalServiceBaseImpl
addLayout, afterPropertiesSet, deleteLayout, dynamicQuery, dynamicQuery, getAccountLocalService, getAccountPersistence, getAccountService, getAddressLocalService, getAddressPersistence, getAddressService, getClassNameLocalService, getClassNamePersistence, getClassNameService, getCompanyLocalService, getCompanyPersistence, getCompanyService, getContactLocalService, getContactPersistence, getContactService, getCounterLocalService, getCounterService, getCountryPersistence, getCountryService, getDLFolderLocalService, getDLFolderPersistence, getDLFolderService, getEmailAddressLocalService, getEmailAddressPersistence, getEmailAddressService, getGroupFinder, getGroupLocalService, getGroupPersistence, getGroupService, getImageLocalService, getImagePersistence, getJournalContentSearchLocalService, getJournalContentSearchPersistence, getLayoutFinder, getLayoutPersistence, getLayoutSetLocalService, getLayoutSetPersistence, getLayoutSetService, getListTypePersistence, getListTypeService, getMBMessageFinder, getMBMessageLocalService, getMBMessagePersistence, getMBMessageService, getMembershipRequestLocalService, getMembershipRequestPersistence, getMembershipRequestService, getOrganizationFinder, getOrganizationLocalService, getOrganizationPersistence, getOrganizationService, getOrgGroupPermissionFinder, getOrgGroupPermissionPersistence, getOrgGroupRolePersistence, getOrgLaborLocalService, getOrgLaborPersistence, getOrgLaborService, getPasswordPolicyFinder, getPasswordPolicyLocalService, getPasswordPolicyPersistence, getPasswordPolicyRelLocalService, getPasswordPolicyRelPersistence, getPasswordPolicyService, getPasswordTrackerLocalService, getPasswordTrackerPersistence, getPermissionFinder, getPermissionLocalService, getPermissionPersistence, getPermissionService, getPermissionUserFinder, getPhoneLocalService, getPhonePersistence, getPhoneService, getPluginSettingLocalService, getPluginSettingPersistence, getPluginSettingService, getPortalService, getPortletItemLocalService, getPortletItemPersistence, getPortletLocalService, getPortletPersistence, getPortletPreferencesFinder, getPortletPreferencesLocalService, getPortletPreferencesPersistence, getPortletPreferencesService, getPortletService, getRatingsStatsLocalService, getRatingsStatsPersistence, getRegionPersistence, getRegionService, getReleaseLocalService, getReleasePersistence, getResourceCodeLocalService, getResourceCodePersistence, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getRoleFinder, getRoleLocalService, getRolePersistence, getRoleService, getServiceComponentLocalService, getServiceComponentPersistence, getSubscriptionLocalService, getSubscriptionPersistence, getTasksProposalFinder, getTasksProposalLocalService, getTasksProposalPersistence, getTasksProposalService, getUserFinder, getUserGroupFinder, getUserGroupLocalService, getUserGroupPersistence, getUserGroupRoleLocalService, getUserGroupRolePersistence, getUserGroupRoleService, getUserGroupService, getUserIdMapperLocalService, getUserIdMapperPersistence, getUserLocalService, getUserPersistence, getUserService, getUserTrackerLocalService, getUserTrackerPathLocalService, getUserTrackerPathPersistence, getUserTrackerPersistence, getWebDAVPropsLocalService, getWebDAVPropsPersistence, getWebsiteLocalService, getWebsitePersistence, getWebsiteService, setAccountLocalService, setAccountPersistence, setAccountService, setAddressLocalService, setAddressPersistence, setAddressService, setClassNameLocalService, setClassNamePersistence, setClassNameService, setCompanyLocalService, setCompanyPersistence, setCompanyService, setContactLocalService, setContactPersistence, setContactService, setCounterLocalService, setCounterService, setCountryPersistence, setCountryService, setDLFolderLocalService, setDLFolderPersistence, setDLFolderService, setEmailAddressLocalService, setEmailAddressPersistence, setEmailAddressService, setGroupFinder, setGroupLocalService, setGroupPersistence, setGroupService, setImageLocalService, setImagePersistence, setJournalContentSearchLocalService, setJournalContentSearchPersistence, setLayoutFinder, setLayoutPersistence, setLayoutSetLocalService, setLayoutSetPersistence, setLayoutSetService, setListTypePersistence, setListTypeService, setMBMessageFinder, setMBMessageLocalService, setMBMessagePersistence, setMBMessageService, setMembershipRequestLocalService, setMembershipRequestPersistence, setMembershipRequestService, setOrganizationFinder, setOrganizationLocalService, setOrganizationPersistence, setOrganizationService, setOrgGroupPermissionFinder, setOrgGroupPermissionPersistence, setOrgGroupRolePersistence, setOrgLaborLocalService, setOrgLaborPersistence, setOrgLaborService, setPasswordPolicyFinder, setPasswordPolicyLocalService, setPasswordPolicyPersistence, setPasswordPolicyRelLocalService, setPasswordPolicyRelPersistence, setPasswordPolicyService, setPasswordTrackerLocalService, setPasswordTrackerPersistence, setPermissionFinder, setPermissionLocalService, setPermissionPersistence, setPermissionService, setPermissionUserFinder, setPhoneLocalService, setPhonePersistence, setPhoneService, setPluginSettingLocalService, setPluginSettingPersistence, setPluginSettingService, setPortalService, setPortletItemLocalService, setPortletItemPersistence, setPortletLocalService, setPortletPersistence, setPortletPreferencesFinder, setPortletPreferencesLocalService, setPortletPreferencesPersistence, setPortletPreferencesService, setPortletService, setRatingsStatsLocalService, setRatingsStatsPersistence, setRegionPersistence, setRegionService, setReleaseLocalService, setReleasePersistence, setResourceCodeLocalService, setResourceCodePersistence, setResourceFinder, setResourceLocalService, setResourcePersistence, setResourceService, setRoleFinder, setRoleLocalService, setRolePersistence, setRoleService, setServiceComponentLocalService, setServiceComponentPersistence, setSubscriptionLocalService, setSubscriptionPersistence, setTasksProposalFinder, setTasksProposalLocalService, setTasksProposalPersistence, setTasksProposalService, setUserFinder, setUserGroupFinder, setUserGroupLocalService, setUserGroupPersistence, setUserGroupRoleLocalService, setUserGroupRolePersistence, setUserGroupRoleService, setUserGroupService, setUserIdMapperLocalService, setUserIdMapperPersistence, setUserLocalService, setUserPersistence, setUserService, setUserTrackerLocalService, setUserTrackerPathLocalService, setUserTrackerPathPersistence, setUserTrackerPersistence, setWebDAVPropsLocalService, setWebDAVPropsPersistence, setWebsiteLocalService, setWebsitePersistence, setWebsiteService, 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.util.Map<java.util.Locale,java.lang.String> localeNamesMap,
                                                 java.util.Map<java.util.Locale,java.lang.String> localeTitlesMap,
                                                 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

addLayout

public com.liferay.portal.model.Layout addLayout(long userId,
                                                 long groupId,
                                                 boolean privateLayout,
                                                 long parentLayoutId,
                                                 java.util.Map<java.util.Locale,java.lang.String> localeNamesMap,
                                                 java.util.Map<java.util.Locale,java.lang.String> localeTitlesMap,
                                                 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
Specified by:
deleteLayout in interface com.liferay.portal.service.LayoutLocalService
Overrides:
deleteLayout in class LayoutLocalServiceBaseImpl
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<java.lang.String,java.lang.String[]> parameterMap)
                     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,
                            long[] layoutIds,
                            java.util.Map<java.lang.String,java.lang.String[]> parameterMap)
                     throws com.liferay.portal.PortalException,
                            com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

exportPortletInfo

public byte[] exportPortletInfo(long plid,
                                java.lang.String portletId,
                                java.util.Map<java.lang.String,java.lang.String[]> 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)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getDefaultPlid

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

getDefaultPlid

public long getDefaultPlid(long groupId,
                           boolean privateLayout,
                           java.lang.String portletId)
                    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

getLayoutByIconImageId

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

getLayouts

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

getLayouts

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

getLayouts

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

getLayouts

public java.util.List<com.liferay.portal.model.Layout> getLayouts(long groupId,
                                                                  boolean privateLayout,
                                                                  long[] layoutIds)
                                                           throws com.liferay.portal.PortalException,
                                                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
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

getNullFriendlyURLLayouts

public java.util.List<com.liferay.portal.model.Layout> getNullFriendlyURLLayouts()
                                                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

importLayouts

public void importLayouts(long userId,
                          long groupId,
                          boolean privateLayout,
                          java.util.Map<java.lang.String,java.lang.String[]> 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<java.lang.String,java.lang.String[]> parameterMap,
                          java.io.InputStream is)
                   throws com.liferay.portal.PortalException,
                          com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

importPortletInfo

public void importPortletInfo(long userId,
                              long plid,
                              java.lang.String portletId,
                              java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
                              java.io.File file)
                       throws com.liferay.portal.PortalException,
                              com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

importPortletInfo

public void importPortletInfo(long userId,
                              long plid,
                              java.lang.String portletId,
                              java.util.Map<java.lang.String,java.lang.String[]> 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

updateFriendlyURL

public com.liferay.portal.model.Layout updateFriendlyURL(long plid,
                                                         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.util.Map<java.util.Locale,java.lang.String> localeNamesMap,
                                                    java.util.Map<java.util.Locale,java.lang.String> localeTitlesMap,
                                                    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.util.Map<java.util.Locale,java.lang.String> localeNamesMap,
                                                    java.util.Map<java.util.Locale,java.lang.String> localeTitlesMap,
                                                    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<java.lang.Long> newLayoutIds)
                             throws com.liferay.portal.PortalException,
                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deletePortletData

protected void deletePortletData(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

deletePortletData

protected java.lang.String deletePortletData(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

exportComments

protected void exportComments(com.liferay.portal.kernel.lar.PortletDataContext context,
                              org.dom4j.Element root)
                       throws com.liferay.portal.SystemException
Throws:
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,
                                       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,
                                 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<java.lang.String> portletIds,
                                        org.dom4j.Element permissionsEl,
                                        boolean exportUserPermissions)
                                 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

exportPortletPreferences

protected void exportPortletPreferences(long ownerId,
                                        int ownerType,
                                        boolean defaultUser,
                                        com.liferay.portal.model.Layout layout,
                                        java.lang.String portletId,
                                        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<java.lang.String> 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<com.liferay.portal.model.Role> roles)
                                 throws com.liferay.portal.PortalException,
                                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

exportRatings

protected void exportRatings(com.liferay.portal.kernel.lar.PortletDataContext context,
                             org.dom4j.Element root)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

exportTags

protected void exportTags(com.liferay.portal.kernel.lar.PortletDataContext context,
                          org.dom4j.Element root)

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<java.lang.String> getActions(org.dom4j.Element el)

getFriendlyURL

protected java.lang.String getFriendlyURL(java.lang.String friendlyURL)

getFriendlyURL

protected java.lang.String getFriendlyURL(long layoutId,
                                          java.lang.String friendlyURL)

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

getUserIdStrategy

protected com.liferay.portal.kernel.lar.UserIdStrategy getUserIdStrategy(com.liferay.portal.model.User user,
                                                                         java.lang.String userIdStrategy)

hasRole

protected boolean hasRole(java.util.List<com.liferay.portal.model.Role> 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,
                                       boolean importUserPermissions)
                                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,
                                        boolean importUserPermissions)
                                 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.kernel.lar.PortletDataContext context,
                                        long companyId,
                                        long groupId,
                                        long plid,
                                        org.dom4j.Element parentEl,
                                        boolean importPortletSetup,
                                        boolean importPortletArchivedSetups,
                                        boolean importUserPreferences)
                                 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

readComments

protected void readComments(com.liferay.portal.kernel.lar.PortletDataContext context,
                            org.dom4j.Element root)
                     throws com.liferay.portal.PortalException,
                            com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

readRatings

protected void readRatings(com.liferay.portal.kernel.lar.PortletDataContext context,
                           org.dom4j.Element root)
                    throws com.liferay.portal.PortalException,
                           com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

readTags

protected void readTags(com.liferay.portal.kernel.lar.PortletDataContext context,
                        org.dom4j.Element root)
                 throws com.liferay.portal.PortalException,
                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

setLocalizedAttributes

protected void setLocalizedAttributes(com.liferay.portal.model.Layout layout,
                                      java.util.Map<java.util.Locale,java.lang.String> localeNamesMap,
                                      java.util.Map<java.util.Locale,java.lang.String> localeTitlesMap)

validate

protected void validate(long groupId,
                        boolean privateLayout,
                        long layoutId,
                        long parentLayoutId,
                        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

validateFriendlyURL

protected void validateFriendlyURL(long groupId,
                                   boolean privateLayout,
                                   long layoutId,
                                   java.lang.String friendlyURL)
                            throws com.liferay.portal.PortalException,
                                   com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

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