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.kernel.bean.IdentifiableBean, com.liferay.portal.service.LayoutLocalService, com.liferay.portal.service.PersistedModelLocalService
Direct Known Subclasses:
LayoutLocalServiceStagingAdvice, PortletPreferencesLocalServiceStagingAdvice

public class LayoutLocalServiceImpl
extends LayoutLocalServiceBaseImpl

The implementation of the layout local service.

Author:
Brian Wing Shun Chan, Jorge Ferrer, 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, browserTrackerLocalService, browserTrackerPersistence, classNameLocalService, classNamePersistence, classNameService, clusterGroupLocalService, clusterGroupPersistence, cmisRepositoryLocalService, companyLocalService, companyPersistence, companyService, contactLocalService, contactPersistence, contactService, counterLocalService, countryPersistence, countryService, emailAddressLocalService, emailAddressPersistence, emailAddressService, expandoValueLocalService, expandoValuePersistence, expandoValueService, groupFinder, groupLocalService, groupPersistence, groupService, imageLocalService, imagePersistence, imageService, journalArticleFinder, journalArticleLocalService, journalArticlePersistence, journalArticleService, journalContentSearchLocalService, journalContentSearchPersistence, layoutBranchLocalService, layoutBranchPersistence, layoutBranchService, layoutFinder, layoutLocalService, layoutPersistence, layoutPrototypeLocalService, layoutPrototypePersistence, layoutPrototypeService, layoutRevisionLocalService, layoutRevisionPersistence, layoutRevisionService, layoutService, layoutSetBranchFinder, layoutSetBranchLocalService, layoutSetBranchPersistence, layoutSetBranchService, layoutSetLocalService, layoutSetPersistence, layoutSetPrototypeLocalService, layoutSetPrototypePersistence, layoutSetPrototypeService, layoutSetService, layoutTemplateLocalService, listTypePersistence, listTypeService, lockFinder, lockLocalService, lockPersistence, 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, persistedModelLocalServiceRegistry, phoneLocalService, phonePersistence, phoneService, pluginSettingLocalService, pluginSettingPersistence, pluginSettingService, portalLocalService, portalPreferencesLocalService, portalPreferencesPersistence, portalService, portletItemLocalService, portletItemPersistence, portletLocalService, portletPersistence, portletPreferencesFinder, portletPreferencesLocalService, portletPreferencesPersistence, portletPreferencesService, portletService, quartzLocalService, ratingsStatsFinder, ratingsStatsLocalService, ratingsStatsPersistence, regionPersistence, regionService, releaseLocalService, releasePersistence, repositoryEntryLocalService, repositoryEntryPersistence, repositoryLocalService, repositoryPersistence, repositoryService, resourceActionLocalService, resourceActionPersistence, resourceBlockFinder, resourceBlockLocalService, resourceBlockPermissionLocalService, resourceBlockPermissionPersistence, resourceBlockPersistence, resourceBlockService, resourceCodeLocalService, resourceCodePersistence, resourceFinder, resourceLocalService, resourcePermissionFinder, resourcePermissionLocalService, resourcePermissionPersistence, resourcePermissionService, resourcePersistence, resourceService, resourceTypePermissionFinder, resourceTypePermissionLocalService, resourceTypePermissionPersistence, roleFinder, roleLocalService, rolePersistence, roleService, serviceComponentLocalService, serviceComponentPersistence, shardLocalService, shardPersistence, subscriptionLocalService, subscriptionPersistence, teamFinder, teamLocalService, teamPersistence, teamService, themeLocalService, themeService, ticketLocalService, ticketPersistence, userFinder, userGroupFinder, userGroupGroupRoleLocalService, userGroupGroupRolePersistence, userGroupGroupRoleService, userGroupLocalService, userGroupPersistence, userGroupRoleFinder, userGroupRoleLocalService, userGroupRolePersistence, userGroupRoleService, userGroupService, userIdMapperLocalService, userIdMapperPersistence, userLocalService, userNotificationEventLocalService, userNotificationEventPersistence, userPersistence, userService, userTrackerLocalService, userTrackerPathLocalService, userTrackerPathPersistence, userTrackerPersistence, virtualHostLocalService, virtualHostPersistence, webDAVPropsLocalService, webDAVPropsPersistence, websiteLocalService, websitePersistence, websiteService, workflowDefinitionLinkLocalService, workflowDefinitionLinkPersistence, workflowInstanceLinkLocalService, workflowInstanceLinkPersistence
 
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> nameMap, java.util.Map<java.util.Locale,java.lang.String> titleMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, java.util.Map<java.util.Locale,java.lang.String> keywordsMap, java.util.Map<java.util.Locale,java.lang.String> robotsMap, java.lang.String type, boolean hidden, java.lang.String friendlyURL, com.liferay.portal.service.ServiceContext serviceContext)
          Adds a layout with additional parameters.
 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.service.ServiceContext serviceContext)
          Adds a layout.
 void deleteLayout(com.liferay.portal.model.Layout layout, boolean updateLayoutSet, com.liferay.portal.service.ServiceContext serviceContext)
          Deletes the layout, its child layouts, and its associated resources.
 void deleteLayout(long groupId, boolean privateLayout, long layoutId, com.liferay.portal.service.ServiceContext serviceContext)
          Deletes the layout with the primary key, also deleting the layout's child layouts, and associated resources.
 void deleteLayout(long plid, com.liferay.portal.service.ServiceContext serviceContext)
          Deletes the layout with the plid, also deleting the layout's child layouts, and associated resources.
 void deleteLayouts(long groupId, boolean privateLayout, com.liferay.portal.service.ServiceContext serviceContext)
          Deletes the group's private or non-private layouts, also deleting the layouts' child layouts, and associated resources.
 byte[] exportLayouts(long groupId, boolean privateLayout, long[] layoutIds, java.util.Map<java.lang.String,java.lang.String[]> parameterMap, java.util.Date startDate, java.util.Date endDate)
          Exports layouts with the primary keys and criteria as a byte array.
 byte[] exportLayouts(long groupId, boolean privateLayout, java.util.Map<java.lang.String,java.lang.String[]> parameterMap, java.util.Date startDate, java.util.Date endDate)
          Exports all layouts that match the criteria as a byte array.
 java.io.File exportLayoutsAsFile(long groupId, boolean privateLayout, long[] layoutIds, java.util.Map<java.lang.String,java.lang.String[]> parameterMap, java.util.Date startDate, java.util.Date endDate)
          Exports the layouts that match the primary keys and criteria as a file.
 byte[] exportPortletInfo(long plid, long groupId, java.lang.String portletId, java.util.Map<java.lang.String,java.lang.String[]> parameterMap, java.util.Date startDate, java.util.Date endDate)
          Exports the portlet information (categories, permissions, ... etc.) as a byte array.
 java.io.File exportPortletInfoAsFile(long plid, long groupId, java.lang.String portletId, java.util.Map<java.lang.String,java.lang.String[]> parameterMap, java.util.Date startDate, java.util.Date endDate)
          Exports the portlet information (categories, permissions, ... etc.) as a file.
 com.liferay.portal.model.Layout fetchFirstLayout(long groupId, boolean privateLayout, long parentLayoutId)
           
 com.liferay.portal.model.Layout fetchLayoutByUuidAndGroupId(java.lang.String uuid, long groupId)
          Returns the layout matching the universally unique identifier and group ID
static java.lang.String getCounterName(long groupId, boolean privateLayout)
          Returns the object counter's name.
 long getDefaultPlid(long groupId)
          Returns the primary key of the default layout for the group
 long getDefaultPlid(long groupId, boolean privateLayout)
          Returns primary key of the matching default layout for the group
 long getDefaultPlid(long groupId, boolean privateLayout, java.lang.String portletId)
          Returns primary key of the default portlet layout for the group
protected  java.lang.String getFriendlyURL(long groupId, boolean privateLayout, long layoutId, java.lang.String name, 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)
          Returns the layout for the friendly URL
 com.liferay.portal.model.Layout getLayout(long plid)
          Returns the layout matching the primary key; throws a NoSuchLayoutException otherwise.
 com.liferay.portal.model.Layout getLayout(long groupId, boolean privateLayout, long layoutId)
          Returns the layout matching the primary key, group, and privacy; throws a NoSuchLayoutException otherwise.
 com.liferay.portal.model.Layout getLayoutByIconImageId(long iconImageId)
          Returns the layout for the icon image; throws a NoSuchLayoutException otherwise.
 com.liferay.portal.model.Layout getLayoutByUuidAndGroupId(java.lang.String uuid, long groupId)
          Returns the layout with the universally unique identifier and the group.
 java.util.List<com.liferay.portal.model.Layout> getLayouts(long groupId, boolean privateLayout)
          Returns all the layouts belonging to the group.
 java.util.List<com.liferay.portal.model.Layout> getLayouts(long groupId, boolean privateLayout, long parentLayoutId)
          Returns all the layouts belonging to the group that are children of the parent layout.
 java.util.List<com.liferay.portal.model.Layout> getLayouts(long groupId, boolean privateLayout, long[] layoutIds)
          Returns all the layouts that match the layout IDs and belong to the group.
 java.util.List<com.liferay.portal.model.Layout> getLayouts(long groupId, boolean privateLayout, long parentLayoutId, boolean incomplete, int start, int end)
          Returns a range of all the layouts belonging to the group that are children of the parent layout.
 java.util.List<com.liferay.portal.model.Layout> getLayouts(long groupId, boolean privateLayout, java.lang.String type)
          Returns all the layouts that match the type and belong to the group.
 com.liferay.portal.model.LayoutReference[] getLayouts(long companyId, java.lang.String portletId, java.lang.String preferencesKey, java.lang.String preferencesValue)
          Returns the layout references for all the layouts that belong to the company and belong to the portlet that matches the preferences.
 int getLayoutsCount(com.liferay.portal.model.Group group, boolean privateLayout)
           
 int getLayoutsCount(com.liferay.portal.model.User user, boolean privateLayout)
           
 long getNextLayoutId(long groupId, boolean privateLayout)
          Returns the primary key to use for the next layout.
protected  int getNextPriority(long groupId, boolean privateLayout, long parentLayoutId)
           
 java.util.List<com.liferay.portal.model.Layout> getNullFriendlyURLLayouts()
          Returns all the layouts whose friendly URLs are null
protected  long getParentLayoutId(long groupId, boolean privateLayout, long parentLayoutId)
           
 java.util.List<com.liferay.portal.model.Layout> getScopeGroupLayouts(long groupId, boolean privateLayout)
          Returns all the layouts within scope of the group
 boolean hasLayouts(com.liferay.portal.model.Group group, boolean privateLayout)
           
 boolean hasLayouts(long groupId, boolean privateLayout, long parentLayoutId)
          Returns true if the group has any layouts; false otherwise.
 boolean hasLayouts(com.liferay.portal.model.User user, boolean privateLayout)
           
 void importLayouts(long userId, long groupId, boolean privateLayout, java.util.Map<java.lang.String,java.lang.String[]> parameterMap, byte[] bytes)
          Imports the layouts from the byte array.
 void importLayouts(long userId, long groupId, boolean privateLayout, java.util.Map<java.lang.String,java.lang.String[]> parameterMap, java.io.File file)
          Imports the layouts from the file.
 void importLayouts(long userId, long groupId, boolean privateLayout, java.util.Map<java.lang.String,java.lang.String[]> parameterMap, java.io.InputStream is)
          Imports the layouts from the input stream.
 void importPortletInfo(long userId, long plid, long groupId, java.lang.String portletId, java.util.Map<java.lang.String,java.lang.String[]> parameterMap, java.io.File file)
          Imports the portlet information (categories, permissions, ... etc.) from the file.
 void importPortletInfo(long userId, long plid, long groupId, java.lang.String portletId, java.util.Map<java.lang.String,java.lang.String[]> parameterMap, java.io.InputStream is)
          Imports the portlet information (categories, permissions, ... etc.) from the input stream.
 void setLayouts(long groupId, boolean privateLayout, long parentLayoutId, long[] layoutIds, com.liferay.portal.service.ServiceContext serviceContext)
          Sets the layouts for the group, replacing and prioritizing all layouts of the parent layout.
 com.liferay.portal.model.Layout updateFriendlyURL(long plid, java.lang.String friendlyURL)
          Updates the friendly URL of the layout.
 com.liferay.portal.model.Layout updateLayout(long groupId, boolean privateLayout, long layoutId, long parentLayoutId, java.util.Map<java.util.Locale,java.lang.String> nameMap, java.util.Map<java.util.Locale,java.lang.String> titleMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, java.util.Map<java.util.Locale,java.lang.String> keywordsMap, java.util.Map<java.util.Locale,java.lang.String> robotsMap, java.lang.String type, boolean hidden, java.lang.String friendlyURL, java.lang.Boolean iconImage, byte[] iconBytes, com.liferay.portal.service.ServiceContext serviceContext)
          Updates the layout.
 com.liferay.portal.model.Layout updateLayout(long groupId, boolean privateLayout, long layoutId, java.lang.String typeSettings)
          Updates the layout replacing its type settings.
 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)
          Updates the look and feel of the layout.
 com.liferay.portal.model.Layout updateName(com.liferay.portal.model.Layout layout, java.lang.String name, java.lang.String languageId)
          Updates the name of the layout.
 com.liferay.portal.model.Layout updateName(long groupId, boolean privateLayout, long layoutId, java.lang.String name, java.lang.String languageId)
          Updates the name of the layout matching the group, layout ID, and privacy.
 com.liferay.portal.model.Layout updateName(long plid, java.lang.String name, java.lang.String languageId)
          Updates the name of the layout matching the primary key.
 com.liferay.portal.model.Layout updateParentLayoutId(long groupId, boolean privateLayout, long layoutId, long parentLayoutId)
          Updates the parent layout ID of the layout matching the group, layout ID, and privacy.
 com.liferay.portal.model.Layout updateParentLayoutId(long plid, long parentPlid)
          Updates the parent layout ID of the layout matching the primary key.
 com.liferay.portal.model.Layout updatePriority(com.liferay.portal.model.Layout layout, int priority)
          Updates the priority of the layout.
 com.liferay.portal.model.Layout updatePriority(long groupId, boolean privateLayout, long layoutId, int priority)
          Updates the priority of the layout matching the group, layout ID, and privacy.
 com.liferay.portal.model.Layout updatePriority(long plid, int priority)
          Updates the priority of the layout matching the primary key.
 void updateScopedPortletNames(long groupId, boolean privateLayout, long layoutId, java.util.Map<java.util.Locale,java.lang.String> nameMap, java.util.List<java.util.Locale> nameMapModifiedLocales)
           
 void updateScopedPortletNames(long groupId, boolean privateLayout, long layoutId, java.lang.String name, java.lang.String languageId)
          Updates the names of the portlets within scope of the group, the scope of the layout's universally unique identifier, and the privacy.
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)
           
protected  void validateFriendlyURL(long groupId, boolean privateLayout, long layoutId, java.lang.String friendlyURL)
           
protected  void validateName(java.lang.String name)
           
protected  void validateName(java.lang.String name, java.lang.String languageId)
           
protected  void validateParentLayoutId(long groupId, boolean privateLayout, long layoutId, long parentLayoutId)
           
 
Methods inherited from class com.liferay.portal.service.base.LayoutLocalServiceBaseImpl
addLayout, afterPropertiesSet, createLayout, deleteLayout, deleteLayout, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, fetchLayout, getAccountLocalService, getAccountPersistence, getAccountService, getAddressLocalService, getAddressPersistence, getAddressService, getBeanIdentifier, getBrowserTrackerLocalService, getBrowserTrackerPersistence, getClassNameLocalService, getClassNamePersistence, getClassNameService, getClusterGroupLocalService, getClusterGroupPersistence, getCMISRepositoryLocalService, getCompanyLocalService, getCompanyPersistence, getCompanyService, getContactLocalService, getContactPersistence, getContactService, getCounterLocalService, getCountryPersistence, getCountryService, getEmailAddressLocalService, getEmailAddressPersistence, getEmailAddressService, getExpandoValueLocalService, getExpandoValuePersistence, getExpandoValueService, getGroupFinder, getGroupLocalService, getGroupPersistence, getGroupService, getImageLocalService, getImagePersistence, getImageService, getJournalArticleFinder, getJournalArticleLocalService, getJournalArticlePersistence, getJournalArticleService, getJournalContentSearchLocalService, getJournalContentSearchPersistence, getLayoutBranchLocalService, getLayoutBranchPersistence, getLayoutBranchService, getLayoutFinder, getLayoutLocalService, getLayoutPersistence, getLayoutPrototypeLocalService, getLayoutPrototypePersistence, getLayoutPrototypeService, getLayoutRevisionLocalService, getLayoutRevisionPersistence, getLayoutRevisionService, getLayouts, getLayoutsCount, getLayoutService, getLayoutSetBranchFinder, getLayoutSetBranchLocalService, getLayoutSetBranchPersistence, getLayoutSetBranchService, getLayoutSetLocalService, getLayoutSetPersistence, getLayoutSetPrototypeLocalService, getLayoutSetPrototypePersistence, getLayoutSetPrototypeService, getLayoutSetService, getLayoutTemplateLocalService, getListTypePersistence, getListTypeService, getLockFinder, getLockLocalService, getLockPersistence, getMBMessageFinder, getMBMessageLocalService, getMBMessagePersistence, getMBMessageService, getMembershipRequestLocalService, getMembershipRequestPersistence, getMembershipRequestService, getModelClass, getModelClassName, getOrganizationFinder, getOrganizationLocalService, getOrganizationPersistence, getOrganizationService, getOrgGroupPermissionFinder, getOrgGroupPermissionPersistence, getOrgGroupRolePersistence, getOrgLaborLocalService, getOrgLaborPersistence, getOrgLaborService, getPasswordPolicyFinder, getPasswordPolicyLocalService, getPasswordPolicyPersistence, getPasswordPolicyRelLocalService, getPasswordPolicyRelPersistence, getPasswordPolicyService, getPasswordTrackerLocalService, getPasswordTrackerPersistence, getPermissionFinder, getPermissionLocalService, getPermissionPersistence, getPermissionService, getPersistedModel, getPhoneLocalService, getPhonePersistence, getPhoneService, getPluginSettingLocalService, getPluginSettingPersistence, getPluginSettingService, getPortalLocalService, getPortalPreferencesLocalService, getPortalPreferencesPersistence, getPortalService, getPortletItemLocalService, getPortletItemPersistence, getPortletLocalService, getPortletPersistence, getPortletPreferencesFinder, getPortletPreferencesLocalService, getPortletPreferencesPersistence, getPortletPreferencesService, getPortletService, getQuartzLocalService, getRatingsStatsFinder, getRatingsStatsLocalService, getRatingsStatsPersistence, getRegionPersistence, getRegionService, getReleaseLocalService, getReleasePersistence, getRepositoryEntryLocalService, getRepositoryEntryPersistence, getRepositoryLocalService, getRepositoryPersistence, getRepositoryService, getResourceActionLocalService, getResourceActionPersistence, getResourceBlockFinder, getResourceBlockLocalService, getResourceBlockPermissionLocalService, getResourceBlockPermissionPersistence, getResourceBlockPersistence, getResourceBlockService, getResourceCodeLocalService, getResourceCodePersistence, getResourceFinder, getResourceLocalService, getResourcePermissionFinder, getResourcePermissionLocalService, getResourcePermissionPersistence, getResourcePermissionService, getResourcePersistence, getResourceService, getResourceTypePermissionFinder, getResourceTypePermissionLocalService, getResourceTypePermissionPersistence, getRoleFinder, getRoleLocalService, getRolePersistence, getRoleService, getServiceComponentLocalService, getServiceComponentPersistence, getShardLocalService, getShardPersistence, getSubscriptionLocalService, getSubscriptionPersistence, getTeamFinder, getTeamLocalService, getTeamPersistence, getTeamService, getThemeLocalService, getThemeService, getTicketLocalService, getTicketPersistence, getUserFinder, getUserGroupFinder, getUserGroupGroupRoleLocalService, getUserGroupGroupRolePersistence, getUserGroupGroupRoleService, getUserGroupLocalService, getUserGroupPersistence, getUserGroupRoleFinder, getUserGroupRoleLocalService, getUserGroupRolePersistence, getUserGroupRoleService, getUserGroupService, getUserIdMapperLocalService, getUserIdMapperPersistence, getUserLocalService, getUserNotificationEventLocalService, getUserNotificationEventPersistence, getUserPersistence, getUserService, getUserTrackerLocalService, getUserTrackerPathLocalService, getUserTrackerPathPersistence, getUserTrackerPersistence, getVirtualHostLocalService, getVirtualHostPersistence, getWebDAVPropsLocalService, getWebDAVPropsPersistence, getWebsiteLocalService, getWebsitePersistence, getWebsiteService, getWorkflowDefinitionLinkLocalService, getWorkflowDefinitionLinkPersistence, getWorkflowInstanceLinkLocalService, getWorkflowInstanceLinkPersistence, runSQL, setAccountLocalService, setAccountPersistence, setAccountService, setAddressLocalService, setAddressPersistence, setAddressService, setBeanIdentifier, setBrowserTrackerLocalService, setBrowserTrackerPersistence, setClassNameLocalService, setClassNamePersistence, setClassNameService, setClusterGroupLocalService, setClusterGroupPersistence, setCMISRepositoryLocalService, setCompanyLocalService, setCompanyPersistence, setCompanyService, setContactLocalService, setContactPersistence, setContactService, setCounterLocalService, setCountryPersistence, setCountryService, setEmailAddressLocalService, setEmailAddressPersistence, setEmailAddressService, setExpandoValueLocalService, setExpandoValuePersistence, setExpandoValueService, setGroupFinder, setGroupLocalService, setGroupPersistence, setGroupService, setImageLocalService, setImagePersistence, setImageService, setJournalArticleFinder, setJournalArticleLocalService, setJournalArticlePersistence, setJournalArticleService, setJournalContentSearchLocalService, setJournalContentSearchPersistence, setLayoutBranchLocalService, setLayoutBranchPersistence, setLayoutBranchService, setLayoutFinder, setLayoutLocalService, setLayoutPersistence, setLayoutPrototypeLocalService, setLayoutPrototypePersistence, setLayoutPrototypeService, setLayoutRevisionLocalService, setLayoutRevisionPersistence, setLayoutRevisionService, setLayoutService, setLayoutSetBranchFinder, setLayoutSetBranchLocalService, setLayoutSetBranchPersistence, setLayoutSetBranchService, setLayoutSetLocalService, setLayoutSetPersistence, setLayoutSetPrototypeLocalService, setLayoutSetPrototypePersistence, setLayoutSetPrototypeService, setLayoutSetService, setLayoutTemplateLocalService, setListTypePersistence, setListTypeService, setLockFinder, setLockLocalService, setLockPersistence, 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, setPhoneLocalService, setPhonePersistence, setPhoneService, setPluginSettingLocalService, setPluginSettingPersistence, setPluginSettingService, setPortalLocalService, setPortalPreferencesLocalService, setPortalPreferencesPersistence, setPortalService, setPortletItemLocalService, setPortletItemPersistence, setPortletLocalService, setPortletPersistence, setPortletPreferencesFinder, setPortletPreferencesLocalService, setPortletPreferencesPersistence, setPortletPreferencesService, setPortletService, setQuartzLocalService, setRatingsStatsFinder, setRatingsStatsLocalService, setRatingsStatsPersistence, setRegionPersistence, setRegionService, setReleaseLocalService, setReleasePersistence, setRepositoryEntryLocalService, setRepositoryEntryPersistence, setRepositoryLocalService, setRepositoryPersistence, setRepositoryService, setResourceActionLocalService, setResourceActionPersistence, setResourceBlockFinder, setResourceBlockLocalService, setResourceBlockPermissionLocalService, setResourceBlockPermissionPersistence, setResourceBlockPersistence, setResourceBlockService, setResourceCodeLocalService, setResourceCodePersistence, setResourceFinder, setResourceLocalService, setResourcePermissionFinder, setResourcePermissionLocalService, setResourcePermissionPersistence, setResourcePermissionService, setResourcePersistence, setResourceService, setResourceTypePermissionFinder, setResourceTypePermissionLocalService, setResourceTypePermissionPersistence, setRoleFinder, setRoleLocalService, setRolePersistence, setRoleService, setServiceComponentLocalService, setServiceComponentPersistence, setShardLocalService, setShardPersistence, setSubscriptionLocalService, setSubscriptionPersistence, setTeamFinder, setTeamLocalService, setTeamPersistence, setTeamService, setThemeLocalService, setThemeService, setTicketLocalService, setTicketPersistence, setUserFinder, setUserGroupFinder, setUserGroupGroupRoleLocalService, setUserGroupGroupRolePersistence, setUserGroupGroupRoleService, setUserGroupLocalService, setUserGroupPersistence, setUserGroupRoleFinder, setUserGroupRoleLocalService, setUserGroupRolePersistence, setUserGroupRoleService, setUserGroupService, setUserIdMapperLocalService, setUserIdMapperPersistence, setUserLocalService, setUserNotificationEventLocalService, setUserNotificationEventPersistence, setUserPersistence, setUserService, setUserTrackerLocalService, setUserTrackerPathLocalService, setUserTrackerPathPersistence, setUserTrackerPersistence, setVirtualHostLocalService, setVirtualHostPersistence, setWebDAVPropsLocalService, setWebDAVPropsPersistence, setWebsiteLocalService, setWebsitePersistence, setWebsiteService, setWorkflowDefinitionLinkLocalService, setWorkflowDefinitionLinkPersistence, setWorkflowInstanceLinkLocalService, setWorkflowInstanceLinkPersistence, updateLayout, 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

getCounterName

public static java.lang.String getCounterName(long groupId,
                                              boolean privateLayout)
Returns the object counter's name.

Parameters:
groupId - the primary key of the group
privateLayout - whether layout is private to the group
Returns:
the object counter's name

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> nameMap,
                                                 java.util.Map<java.util.Locale,java.lang.String> titleMap,
                                                 java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
                                                 java.util.Map<java.util.Locale,java.lang.String> keywordsMap,
                                                 java.util.Map<java.util.Locale,java.lang.String> robotsMap,
                                                 java.lang.String type,
                                                 boolean hidden,
                                                 java.lang.String friendlyURL,
                                                 com.liferay.portal.service.ServiceContext serviceContext)
                                          throws com.liferay.portal.kernel.exception.PortalException,
                                                 com.liferay.portal.kernel.exception.SystemException
Adds a layout with additional parameters.

This method handles the creation of the layout including its resources, metadata, and internal data structures. It is not necessary to make subsequent calls to any methods to setup default groups, resources, ... etc.

Parameters:
userId - the primary key of the user
groupId - the primary key of the group
privateLayout - whether the layout is private to the group
parentLayoutId - the primary key of the parent layout (optionally LayoutConstants.DEFAULT_PARENT_LAYOUT_ID)
nameMap - the layout's locales and localized names
titleMap - the layout's locales and localized titles
descriptionMap - the layout's locales and localized descriptions
keywordsMap - the layout's locales and localized keywords
robotsMap - the layout's locales and localized robots
type - the layout's type (optionally LayoutConstants.TYPE_PORTLET). The possible types can be found in LayoutConstants.
hidden - whether the layout is hidden
friendlyURL - the layout's friendly URL (optionally PropsValues.DEFAULT_USER_PRIVATE_LAYOUT_FRIENDLY_URL or PropsValues.DEFAULT_USER_PUBLIC_LAYOUT_FRIENDLY_URL). The default values can be overridden in portal-ext.properties by specifying new values for the corresponding properties defined in PropsValues. To see how the URL is normalized when accessed see FriendlyURLNormalizerUtil.normalize( String).
serviceContext - the service context. Must set the universally unique identifier (UUID) for the layout. Can set the creation date, modification date and the expando bridge attributes for the layout. For layouts that belong to a layout set prototype, an attribute named 'layoutUpdateable' can be set to specify whether site administrators can modify this page within their site. For layouts that are created from a layout prototype, attributes named 'layoutPrototypeUuid' and 'layoutPrototypeLinkedEnabled' can be specified to provide the unique identifier of the source prototype and a boolean to determined whether a link to it should be enabled to activate propagation of changes made to the linked page in the prototype.
Returns:
the layout
Throws:
com.liferay.portal.kernel.exception.PortalException - if a group or user with the primary key could not be found, or if layout values were invalid
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

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,
                                                 com.liferay.portal.service.ServiceContext serviceContext)
                                          throws com.liferay.portal.kernel.exception.PortalException,
                                                 com.liferay.portal.kernel.exception.SystemException
Adds a layout.

This method handles the creation of the layout including its resources, metadata, and internal data structures. It is not necessary to make subsequent calls to any methods to setup default groups, resources, ... etc.

Parameters:
userId - the primary key of the user
groupId - the primary key of the group
privateLayout - whether the layout is private to the group
parentLayoutId - the primary key of the parent layout (optionally LayoutConstants.DEFAULT_PARENT_LAYOUT_ID). The possible values can be found in LayoutConstants.
name - the layout's name (optionally PropsValues.DEFAULT_USER_PRIVATE_LAYOUT_NAME or PropsValues.DEFAULT_USER_PUBLIC_LAYOUT_NAME). The default values can be overridden in portal-ext.properties by specifying new values for the corresponding properties defined in PropsValues
title - the layout's title
description - the layout's description
type - the layout's type (optionally LayoutConstants.TYPE_PORTLET). The possible types can be found in LayoutConstants.
hidden - whether the layout is hidden
friendlyURL - the friendly URL of the layout (optionally PropsValues.DEFAULT_USER_PRIVATE_LAYOUT_FRIENDLY_URL or PropsValues.DEFAULT_USER_PUBLIC_LAYOUT_FRIENDLY_URL). The default values can be overridden in portal-ext.properties by specifying new values for the corresponding properties defined in PropsValues. To see how the URL is normalized when accessed see FriendlyURLNormalizerUtil.normalize( String).
serviceContext - the service context. Must set the universally unique identifier (UUID) for the layout. Can set the creation date and modification date for the layout. For layouts that belong to a layout set prototype, an attribute named 'layoutUpdateable' can be set to specify whether site administrators can modify this page within their site.
Returns:
the layout
Throws:
com.liferay.portal.kernel.exception.PortalException - if a group or user with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

deleteLayout

public void deleteLayout(com.liferay.portal.model.Layout layout,
                         boolean updateLayoutSet,
                         com.liferay.portal.service.ServiceContext serviceContext)
                  throws com.liferay.portal.kernel.exception.PortalException,
                         com.liferay.portal.kernel.exception.SystemException
Deletes the layout, its child layouts, and its associated resources.

Parameters:
layout - the layout
updateLayoutSet - whether the layout set's page counter needs to be updated
serviceContext - the service context
Throws:
com.liferay.portal.kernel.exception.PortalException - if a portal exception occurred
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

deleteLayout

public void deleteLayout(long groupId,
                         boolean privateLayout,
                         long layoutId,
                         com.liferay.portal.service.ServiceContext serviceContext)
                  throws com.liferay.portal.kernel.exception.PortalException,
                         com.liferay.portal.kernel.exception.SystemException
Deletes the layout with the primary key, also deleting the layout's child layouts, and associated resources.

Parameters:
groupId - the primary key of the group
privateLayout - whether the layout is private to the group
layoutId - the primary key of the layout
serviceContext - the service context
Throws:
com.liferay.portal.kernel.exception.PortalException - if a matching layout could not be found , or if some other portal exception occurred
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

deleteLayout

public void deleteLayout(long plid,
                         com.liferay.portal.service.ServiceContext serviceContext)
                  throws com.liferay.portal.kernel.exception.PortalException,
                         com.liferay.portal.kernel.exception.SystemException
Deletes the layout with the plid, also deleting the layout's child layouts, and associated resources.

Parameters:
plid - the primary key of the layout
serviceContext - the service context
Throws:
com.liferay.portal.kernel.exception.PortalException - if a layout with the primary key could not be found , or if some other portal exception occurred
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

deleteLayouts

public void deleteLayouts(long groupId,
                          boolean privateLayout,
                          com.liferay.portal.service.ServiceContext serviceContext)
                   throws com.liferay.portal.kernel.exception.PortalException,
                          com.liferay.portal.kernel.exception.SystemException
Deletes the group's private or non-private layouts, also deleting the layouts' child layouts, and associated resources.

Parameters:
groupId - the primary key of the group
privateLayout - whether the layout is private to the group
serviceContext - the service context
Throws:
com.liferay.portal.kernel.exception.PortalException - if a group with the primary key could not be found or if a layout set for the group and privacy could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

exportLayouts

public byte[] exportLayouts(long groupId,
                            boolean privateLayout,
                            long[] layoutIds,
                            java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
                            java.util.Date startDate,
                            java.util.Date endDate)
                     throws com.liferay.portal.kernel.exception.PortalException,
                            com.liferay.portal.kernel.exception.SystemException
Exports layouts with the primary keys and criteria as a byte array.

Parameters:
groupId - the primary key of the group
privateLayout - whether the layout is private to the group
layoutIds - the primary keys of the layouts to be exported
parameterMap - the mapping of parameters indicating which information to export. For information on the keys used in the map see PortletDataHandlerKeys.
startDate - the export's start date
endDate - the export's end date
Returns:
the layouts as a byte array
Throws:
com.liferay.portal.kernel.exception.PortalException - if a group or any layout with the primary key could not be found, or if some other portal exception occurred
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

exportLayouts

public byte[] exportLayouts(long groupId,
                            boolean privateLayout,
                            java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
                            java.util.Date startDate,
                            java.util.Date endDate)
                     throws com.liferay.portal.kernel.exception.PortalException,
                            com.liferay.portal.kernel.exception.SystemException
Exports all layouts that match the criteria as a byte array.

Parameters:
groupId - the primary key of the group
privateLayout - whether the layout is private to the group
parameterMap - the mapping of parameters indicating which information to export. For information on the keys used in the map see PortletDataHandlerKeys.
startDate - the export's start date
endDate - the export's end date
Returns:
the layout as a byte array
Throws:
com.liferay.portal.kernel.exception.PortalException - if a group with the primary key could not be found or if some other portal exception occurred
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

exportLayoutsAsFile

public java.io.File exportLayoutsAsFile(long groupId,
                                        boolean privateLayout,
                                        long[] layoutIds,
                                        java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
                                        java.util.Date startDate,
                                        java.util.Date endDate)
                                 throws com.liferay.portal.kernel.exception.PortalException,
                                        com.liferay.portal.kernel.exception.SystemException
Exports the layouts that match the primary keys and criteria as a file.

Parameters:
groupId - the primary key of the group
privateLayout - whether the layout is private to the group
layoutIds - the primary keys of the layouts to be exported (optionally null)
parameterMap - the mapping of parameters indicating which information to export. For information on the keys used in the map see PortletDataHandlerKeys.
startDate - the export's start date
endDate - the export's end date
Returns:
the layouts as a File
Throws:
com.liferay.portal.kernel.exception.PortalException - if a group or any layout with the primary key could not be found, or if some other portal exception occurred
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

exportPortletInfo

public byte[] exportPortletInfo(long plid,
                                long groupId,
                                java.lang.String portletId,
                                java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
                                java.util.Date startDate,
                                java.util.Date endDate)
                         throws com.liferay.portal.kernel.exception.PortalException,
                                com.liferay.portal.kernel.exception.SystemException
Exports the portlet information (categories, permissions, ... etc.) as a byte array.

Parameters:
plid - the primary key of the layout
groupId - the primary key of the group
portletId - the primary key of the portlet
parameterMap - the mapping of parameters indicating which information to export. For information on the keys used in the map see PortletDataHandlerKeys.
startDate - the export's start date
endDate - the export's end date
Returns:
the portlet information as a byte array
Throws:
com.liferay.portal.kernel.exception.PortalException - if a group or portlet with the primary key could not be found, or if some other portal exception occurred
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

exportPortletInfoAsFile

public java.io.File exportPortletInfoAsFile(long plid,
                                            long groupId,
                                            java.lang.String portletId,
                                            java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
                                            java.util.Date startDate,
                                            java.util.Date endDate)
                                     throws com.liferay.portal.kernel.exception.PortalException,
                                            com.liferay.portal.kernel.exception.SystemException
Exports the portlet information (categories, permissions, ... etc.) as a file.

Parameters:
plid - the primary key of the layout
groupId - the primary key of the group
portletId - the primary key of the portlet
parameterMap - the mapping of parameters indicating which information to export. For information on the keys used in the map see PortletDataHandlerKeys.
startDate - the export's start date
endDate - the export's end date
Returns:
the portlet information as a file
Throws:
com.liferay.portal.kernel.exception.PortalException - if a group or portlet with the primary key could not be found, or if some other portal exception occurred
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchFirstLayout

public com.liferay.portal.model.Layout fetchFirstLayout(long groupId,
                                                        boolean privateLayout,
                                                        long parentLayoutId)
                                                 throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

fetchLayoutByUuidAndGroupId

public com.liferay.portal.model.Layout fetchLayoutByUuidAndGroupId(java.lang.String uuid,
                                                                   long groupId)
                                                            throws com.liferay.portal.kernel.exception.SystemException
Returns the layout matching the universally unique identifier and group ID

Parameters:
uuid - the universally unique identifier of the scope layout
groupId - the primary key of the group
Returns:
the layout, or null if a matching layout could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getDefaultPlid

public long getDefaultPlid(long groupId)
                    throws com.liferay.portal.kernel.exception.SystemException
Returns the primary key of the default layout for the group

Parameters:
groupId - the primary key of the group
Returns:
the primary key of the default layout for the group (optionally LayoutConstants.DEFAULT_PLID)
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getDefaultPlid

public long getDefaultPlid(long groupId,
                           boolean privateLayout)
                    throws com.liferay.portal.kernel.exception.SystemException
Returns primary key of the matching default layout for the group

Parameters:
groupId - the primary key of the group
privateLayout - whether the layout is private to the group
Returns:
the primary key of the default layout for the group; LayoutConstants.DEFAULT_PLID) otherwise
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getDefaultPlid

public long getDefaultPlid(long groupId,
                           boolean privateLayout,
                           java.lang.String portletId)
                    throws com.liferay.portal.kernel.exception.PortalException,
                           com.liferay.portal.kernel.exception.SystemException
Returns primary key of the default portlet layout for the group

Parameters:
groupId - the primary key of the group
privateLayout - whether the layout is private to the group
portletId - the primary key of the portlet
Returns:
the primary key of the default portlet layout for the group; LayoutConstants.DEFAULT_PLID otherwise
Throws:
com.liferay.portal.kernel.exception.PortalException - if a portlet with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getFriendlyURLLayout

public com.liferay.portal.model.Layout getFriendlyURLLayout(long groupId,
                                                            boolean privateLayout,
                                                            java.lang.String friendlyURL)
                                                     throws com.liferay.portal.kernel.exception.PortalException,
                                                            com.liferay.portal.kernel.exception.SystemException
Returns the layout for the friendly URL

Parameters:
groupId - the primary key of the group
privateLayout - whether the layout is private to the group
friendlyURL - the friendly URL of the layout
Returns:
the layout for the friendly URL
Throws:
com.liferay.portal.kernel.exception.PortalException - if the friendly URL is null or a matching layout could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getLayout

public com.liferay.portal.model.Layout getLayout(long plid)
                                          throws com.liferay.portal.kernel.exception.PortalException,
                                                 com.liferay.portal.kernel.exception.SystemException
Returns the layout matching the primary key; throws a NoSuchLayoutException otherwise.

Specified by:
getLayout in interface com.liferay.portal.service.LayoutLocalService
Overrides:
getLayout in class LayoutLocalServiceBaseImpl
Parameters:
plid - the primary key of the layout
Returns:
the matching layout
Throws:
com.liferay.portal.kernel.exception.PortalException - if a layout with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getLayout

public com.liferay.portal.model.Layout getLayout(long groupId,
                                                 boolean privateLayout,
                                                 long layoutId)
                                          throws com.liferay.portal.kernel.exception.PortalException,
                                                 com.liferay.portal.kernel.exception.SystemException
Returns the layout matching the primary key, group, and privacy; throws a NoSuchLayoutException otherwise.

Parameters:
groupId - the primary key of the group
privateLayout - whether the layout is private to the group
layoutId - the primary key of the layout
Returns:
the matching layout
Throws:
com.liferay.portal.kernel.exception.PortalException - if a matching layout could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getLayoutByIconImageId

public com.liferay.portal.model.Layout getLayoutByIconImageId(long iconImageId)
                                                       throws com.liferay.portal.kernel.exception.PortalException,
                                                              com.liferay.portal.kernel.exception.SystemException
Returns the layout for the icon image; throws a NoSuchLayoutException otherwise.

Parameters:
iconImageId - the primary key of the icon image
Returns:
Returns the layout for the icon image
Throws:
com.liferay.portal.kernel.exception.PortalException - if an icon image with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getLayoutByUuidAndGroupId

public com.liferay.portal.model.Layout getLayoutByUuidAndGroupId(java.lang.String uuid,
                                                                 long groupId)
                                                          throws com.liferay.portal.kernel.exception.PortalException,
                                                                 com.liferay.portal.kernel.exception.SystemException
Returns the layout with the universally unique identifier and the group.

Specified by:
getLayoutByUuidAndGroupId in interface com.liferay.portal.service.LayoutLocalService
Overrides:
getLayoutByUuidAndGroupId in class LayoutLocalServiceBaseImpl
Parameters:
uuid - the universally unique identifier of the layout
groupId - the primary key of the group
Returns:
the layout with the universally unique identifier and the group
Throws:
com.liferay.portal.kernel.exception.PortalException - if a group with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getLayouts

public java.util.List<com.liferay.portal.model.Layout> getLayouts(long groupId,
                                                                  boolean privateLayout)
                                                           throws com.liferay.portal.kernel.exception.SystemException
Returns all the layouts belonging to the group.

Parameters:
groupId - the primary key of the group
privateLayout - whether the layout is private to the group
Returns:
the matching layouts, or null if no matches were found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getLayouts

public java.util.List<com.liferay.portal.model.Layout> getLayouts(long groupId,
                                                                  boolean privateLayout,
                                                                  long parentLayoutId)
                                                           throws com.liferay.portal.kernel.exception.SystemException
Returns all the layouts belonging to the group that are children of the parent layout.

Parameters:
groupId - the primary key of the group
privateLayout - whether the layout is private to the group
parentLayoutId - the primary key of the parent layout
Returns:
the matching layouts, or null if no matches were found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getLayouts

public java.util.List<com.liferay.portal.model.Layout> getLayouts(long groupId,
                                                                  boolean privateLayout,
                                                                  long parentLayoutId,
                                                                  boolean incomplete,
                                                                  int start,
                                                                  int end)
                                                           throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the layouts belonging to the group that are children of the parent layout.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the primary key of the group
privateLayout - whether the layout is private to the group
parentLayoutId - the primary key of the parent layout
incomplete - whether the layout is incomplete
start - the lower bound of the range of layouts
end - the upper bound of the range of layouts (not inclusive)
Returns:
the matching layouts, or null if no matches were found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getLayouts

public java.util.List<com.liferay.portal.model.Layout> getLayouts(long groupId,
                                                                  boolean privateLayout,
                                                                  long[] layoutIds)
                                                           throws com.liferay.portal.kernel.exception.PortalException,
                                                                  com.liferay.portal.kernel.exception.SystemException
Returns all the layouts that match the layout IDs and belong to the group.

Parameters:
groupId - the primary key of the group
privateLayout - whether the layout is private to the group
layoutIds - the primary keys of the layouts
Returns:
the matching layouts, or null if no matches were found
Throws:
com.liferay.portal.kernel.exception.PortalException - if a group or layout with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getLayouts

public java.util.List<com.liferay.portal.model.Layout> getLayouts(long groupId,
                                                                  boolean privateLayout,
                                                                  java.lang.String type)
                                                           throws com.liferay.portal.kernel.exception.SystemException
Returns all the layouts that match the type and belong to the group.

Parameters:
groupId - the primary key of the group
privateLayout - whether the layout is private to the group
type - the type of the layouts (optionally LayoutConstants.TYPE_PORTLET)
Returns:
the matching layouts, or null if no matches were found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getLayouts

public com.liferay.portal.model.LayoutReference[] getLayouts(long companyId,
                                                             java.lang.String portletId,
                                                             java.lang.String preferencesKey,
                                                             java.lang.String preferencesValue)
                                                      throws com.liferay.portal.kernel.exception.SystemException
Returns the layout references for all the layouts that belong to the company and belong to the portlet that matches the preferences.

Parameters:
companyId - the primary key of the company
portletId - the primary key of the portlet
preferencesKey - the portlet's preference key
preferencesValue - the portlet's preference value
Returns:
the layout references of the matching layouts
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getLayoutsCount

public int getLayoutsCount(com.liferay.portal.model.Group group,
                           boolean privateLayout)
                    throws com.liferay.portal.kernel.exception.PortalException,
                           com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getLayoutsCount

public int getLayoutsCount(com.liferay.portal.model.User user,
                           boolean privateLayout)
                    throws com.liferay.portal.kernel.exception.PortalException,
                           com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getNextLayoutId

public long getNextLayoutId(long groupId,
                            boolean privateLayout)
                     throws com.liferay.portal.kernel.exception.SystemException
Returns the primary key to use for the next layout.

Parameters:
groupId - the primary key of the group
privateLayout - whether the layout is private to the group
Returns:
the primary key to use for the next layout
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getNullFriendlyURLLayouts

public java.util.List<com.liferay.portal.model.Layout> getNullFriendlyURLLayouts()
                                                                          throws com.liferay.portal.kernel.exception.SystemException
Returns all the layouts whose friendly URLs are null

Returns:
all the layouts whose friendly URLs are null
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getScopeGroupLayouts

public java.util.List<com.liferay.portal.model.Layout> getScopeGroupLayouts(long groupId,
                                                                            boolean privateLayout)
                                                                     throws com.liferay.portal.kernel.exception.SystemException
Returns all the layouts within scope of the group

Parameters:
groupId - the primary key of the group
privateLayout - whether the layout is private to the group
Returns:
the layouts within scope of the group
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

hasLayouts

public boolean hasLayouts(com.liferay.portal.model.Group group,
                          boolean privateLayout)
                   throws com.liferay.portal.kernel.exception.PortalException,
                          com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

hasLayouts

public boolean hasLayouts(long groupId,
                          boolean privateLayout,
                          long parentLayoutId)
                   throws com.liferay.portal.kernel.exception.SystemException
Returns true if the group has any layouts; false otherwise.

Parameters:
groupId - the primary key of the group
privateLayout - whether the layout is private to the group
parentLayoutId - the primary key of the parent layout
Returns:
true if the group has any layouts; false otherwise
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

hasLayouts

public boolean hasLayouts(com.liferay.portal.model.User user,
                          boolean privateLayout)
                   throws com.liferay.portal.kernel.exception.PortalException,
                          com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

importLayouts

public void importLayouts(long userId,
                          long groupId,
                          boolean privateLayout,
                          java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
                          byte[] bytes)
                   throws com.liferay.portal.kernel.exception.PortalException,
                          com.liferay.portal.kernel.exception.SystemException
Imports the layouts from the byte array.

Parameters:
userId - the primary key of the user
groupId - the primary key of the group
privateLayout - whether the layout is private to the group
parameterMap - the mapping of parameters indicating which information will be imported. For information on the keys used in the map see PortletDataHandlerKeys.
bytes - the byte array with the data
Throws:
com.liferay.portal.kernel.exception.PortalException - if a group or user with the primary key could not be found, or if some other portal exception occurred
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
See Also:
LayoutImporter

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.kernel.exception.PortalException,
                          com.liferay.portal.kernel.exception.SystemException
Imports the layouts from the file.

Parameters:
userId - the primary key of the user
groupId - the primary key of the group
privateLayout - whether the layout is private to the group
parameterMap - the mapping of parameters indicating which information will be imported. For information on the keys used in the map see PortletDataHandlerKeys.
file - the LAR file with the data
Throws:
com.liferay.portal.kernel.exception.PortalException - if a group or user with the primary key could not be found, or if some other portal exception occurred
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
See Also:
LayoutImporter

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.kernel.exception.PortalException,
                          com.liferay.portal.kernel.exception.SystemException
Imports the layouts from the input stream.

Parameters:
userId - the primary key of the user
groupId - the primary key of the group
privateLayout - whether the layout is private to the group
parameterMap - the mapping of parameters indicating which information will be imported. For information on the keys used in the map see PortletDataHandlerKeys.
is - the input stream
Throws:
com.liferay.portal.kernel.exception.PortalException - if a group or user with the primary key could not be found, or if some other portal exception occurred
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
See Also:
LayoutImporter

importPortletInfo

public void importPortletInfo(long userId,
                              long plid,
                              long groupId,
                              java.lang.String portletId,
                              java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
                              java.io.File file)
                       throws com.liferay.portal.kernel.exception.PortalException,
                              com.liferay.portal.kernel.exception.SystemException
Imports the portlet information (categories, permissions, ... etc.) from the file.

Parameters:
userId - the primary key of the user
plid - the primary key of the target layout
groupId - the primary key of the target group
portletId - the primary key of the portlet
parameterMap - the mapping of parameters indicating which information will be imported. For information on the keys used in the map see PortletDataHandlerKeys.
file - the LAR file with the data
Throws:
com.liferay.portal.kernel.exception.PortalException - if a group, layout, portlet or user with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

importPortletInfo

public void importPortletInfo(long userId,
                              long plid,
                              long groupId,
                              java.lang.String portletId,
                              java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
                              java.io.InputStream is)
                       throws com.liferay.portal.kernel.exception.PortalException,
                              com.liferay.portal.kernel.exception.SystemException
Imports the portlet information (categories, permissions, ... etc.) from the input stream.

Parameters:
userId - the primary key of the user
plid - the primary key of the layout
groupId - the primary key of the group
portletId - the primary key of the portlet
parameterMap - the mapping of parameters indicating which information will be imported. For information on the keys used in the map see PortletDataHandlerKeys.
is - the input stream
Throws:
com.liferay.portal.kernel.exception.PortalException - if a group, portlet, layout or user with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

setLayouts

public void setLayouts(long groupId,
                       boolean privateLayout,
                       long parentLayoutId,
                       long[] layoutIds,
                       com.liferay.portal.service.ServiceContext serviceContext)
                throws com.liferay.portal.kernel.exception.PortalException,
                       com.liferay.portal.kernel.exception.SystemException
Sets the layouts for the group, replacing and prioritizing all layouts of the parent layout.

Parameters:
groupId - the primary key of the group
privateLayout - whether the layout is private to the group
parentLayoutId - the primary key of the parent layout
layoutIds - the primary keys of the layouts
serviceContext - the service context
Throws:
com.liferay.portal.kernel.exception.PortalException - if a group or layout with the primary key could not be found, if no layouts were specified, if the first layout was not page-able, if the first layout was hidden, or if some other portal exception occurred
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

updateFriendlyURL

public com.liferay.portal.model.Layout updateFriendlyURL(long plid,
                                                         java.lang.String friendlyURL)
                                                  throws com.liferay.portal.kernel.exception.PortalException,
                                                         com.liferay.portal.kernel.exception.SystemException
Updates the friendly URL of the layout.

Parameters:
plid - the primary key of the layout
friendlyURL - the friendly URL to be assigned
Returns:
the updated layout
Throws:
com.liferay.portal.kernel.exception.PortalException - if a group or layout with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

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> nameMap,
                                                    java.util.Map<java.util.Locale,java.lang.String> titleMap,
                                                    java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
                                                    java.util.Map<java.util.Locale,java.lang.String> keywordsMap,
                                                    java.util.Map<java.util.Locale,java.lang.String> robotsMap,
                                                    java.lang.String type,
                                                    boolean hidden,
                                                    java.lang.String friendlyURL,
                                                    java.lang.Boolean iconImage,
                                                    byte[] iconBytes,
                                                    com.liferay.portal.service.ServiceContext serviceContext)
                                             throws com.liferay.portal.kernel.exception.PortalException,
                                                    com.liferay.portal.kernel.exception.SystemException
Updates the layout.

Parameters:
groupId - the primary key of the group
privateLayout - whether the layout is private to the group
layoutId - the primary key of the layout
parentLayoutId - the primary key of the layout's new parent layout
nameMap - the locales and localized names to merge (optionally null)
titleMap - the locales and localized titles to merge (optionally null)
descriptionMap - the locales and localized descriptions to merge (optionally null)
keywordsMap - the locales and localized keywords to merge (optionally null)
robotsMap - the locales and localized robots to merge (optionally null)
type - the layout's new type (optionally LayoutConstants.TYPE_PORTLET)
hidden - whether the layout is hidden
friendlyURL - the layout's new friendly URL (optionally PropsValues.DEFAULT_USER_PRIVATE_LAYOUT_FRIENDLY_URL or PropsValues.DEFAULT_USER_PRIVATE_LAYOUT_FRIENDLY_URL). The default values can be overridden in portal-ext.properties by specifying new values for the corresponding properties defined in PropsValues. To see how the URL is normalized when accessed see FriendlyURLNormalizerUtil.normalize( String).
iconImage - whether the icon image will be updated
iconBytes - the byte array of the layout's new icon image
serviceContext - the service context. Can set the modification date and expando bridge attributes for the layout. For layouts that are linked to a layout prototype, attributes named 'layoutPrototypeUuid' and 'layoutPrototypeLinkedEnabled' can be specified to provide the unique identifier of the source prototype and a boolean to determined whether a link to it should be enabled to activate propagation of changes made to the linked page in the prototype.
Returns:
the updated layout
Throws:
com.liferay.portal.kernel.exception.PortalException - if a group or layout with the primary key could not be found, if a unique friendly URL could not be generated, if a valid parent layout ID to use could not be found, or if the layout parameters were invalid
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

updateLayout

public com.liferay.portal.model.Layout updateLayout(long groupId,
                                                    boolean privateLayout,
                                                    long layoutId,
                                                    java.lang.String typeSettings)
                                             throws com.liferay.portal.kernel.exception.PortalException,
                                                    com.liferay.portal.kernel.exception.SystemException
Updates the layout replacing its type settings.

Parameters:
groupId - the primary key of the group
privateLayout - whether the layout is private to the group
layoutId - the primary key of the layout
typeSettings - the settings to load the unicode properties object. See #fastLoad(String).
Returns:
the updated layout
Throws:
com.liferay.portal.kernel.exception.PortalException - if a matching layout could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

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.kernel.exception.PortalException,
                                                         com.liferay.portal.kernel.exception.SystemException
Updates the look and feel of the layout.

Parameters:
groupId - the primary key of the group
privateLayout - whether the layout is private to the group
layoutId - the primary key of the layout
themeId - the primary key of the layout's new theme
colorSchemeId - the primary key of the layout's new color scheme
css - the layout's new CSS
wapTheme - whether the theme is for WAP browsers
Returns:
the updated layout
Throws:
com.liferay.portal.kernel.exception.PortalException - if a matching layout could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

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.kernel.exception.PortalException,
                                                  com.liferay.portal.kernel.exception.SystemException
Updates the name of the layout.

Parameters:
layout - the layout to be updated
name - the layout's new name
languageId - the primary key of the language. For more information see Locale.
Returns:
the updated layout
Throws:
com.liferay.portal.kernel.exception.PortalException - if the new name was null
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

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.kernel.exception.PortalException,
                                                  com.liferay.portal.kernel.exception.SystemException
Updates the name of the layout matching the group, layout ID, and privacy.

Parameters:
groupId - the primary key of the group
privateLayout - whether the layout is private to the group
layoutId - the primary key of the layout
name - the layout's new name
languageId - the primary key of the language. For more information see Locale.
Returns:
the updated layout
Throws:
com.liferay.portal.kernel.exception.PortalException - if a matching layout could not be found or if the new name was null
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

updateName

public com.liferay.portal.model.Layout updateName(long plid,
                                                  java.lang.String name,
                                                  java.lang.String languageId)
                                           throws com.liferay.portal.kernel.exception.PortalException,
                                                  com.liferay.portal.kernel.exception.SystemException
Updates the name of the layout matching the primary key.

Parameters:
plid - the primary key of the layout
name - the name to be assigned
languageId - the primary key of the language. For more information see Locale.
Returns:
the updated layout
Throws:
com.liferay.portal.kernel.exception.PortalException - if a layout with the primary key could not be found or if the name was null
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

updateParentLayoutId

public com.liferay.portal.model.Layout updateParentLayoutId(long groupId,
                                                            boolean privateLayout,
                                                            long layoutId,
                                                            long parentLayoutId)
                                                     throws com.liferay.portal.kernel.exception.PortalException,
                                                            com.liferay.portal.kernel.exception.SystemException
Updates the parent layout ID of the layout matching the group, layout ID, and privacy.

Parameters:
groupId - the primary key of the group
privateLayout - whether the layout is private to the group
layoutId - the primary key of the layout
parentLayoutId - the primary key to be assigned to the parent layout
Returns:
the matching layout
Throws:
com.liferay.portal.kernel.exception.PortalException - if a valid parent layout ID to use could not be found or if a matching layout could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

updateParentLayoutId

public com.liferay.portal.model.Layout updateParentLayoutId(long plid,
                                                            long parentPlid)
                                                     throws com.liferay.portal.kernel.exception.PortalException,
                                                            com.liferay.portal.kernel.exception.SystemException
Updates the parent layout ID of the layout matching the primary key. If a layout matching the parent primary key is found, the layout ID of that layout is assigned, otherwise LayoutConstants.DEFAULT_PARENT_LAYOUT_ID is assigned.

Parameters:
plid - the primary key of the layout
parentPlid - the primary key of the parent layout
Returns:
the layout matching the primary key
Throws:
com.liferay.portal.kernel.exception.PortalException - if a layout with the primary key could not be found or if a valid parent layout ID to use could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

updatePriority

public com.liferay.portal.model.Layout updatePriority(com.liferay.portal.model.Layout layout,
                                                      int priority)
                                               throws com.liferay.portal.kernel.exception.SystemException
Updates the priority of the layout.

Parameters:
layout - the layout to be updated
priority - the layout's new priority
Returns:
the updated layout
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

updatePriority

public com.liferay.portal.model.Layout updatePriority(long groupId,
                                                      boolean privateLayout,
                                                      long layoutId,
                                                      int priority)
                                               throws com.liferay.portal.kernel.exception.PortalException,
                                                      com.liferay.portal.kernel.exception.SystemException
Updates the priority of the layout matching the group, layout ID, and privacy.

Parameters:
groupId - the primary key of the group
privateLayout - whether the layout is private to the group
layoutId - the primary key of the layout
priority - the layout's new priority
Returns:
the updated layout
Throws:
com.liferay.portal.kernel.exception.PortalException - if a matching layout could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

updatePriority

public com.liferay.portal.model.Layout updatePriority(long plid,
                                                      int priority)
                                               throws com.liferay.portal.kernel.exception.PortalException,
                                                      com.liferay.portal.kernel.exception.SystemException
Updates the priority of the layout matching the primary key.

Parameters:
plid - the primary key of the layout
priority - the layout's new priority
Returns:
the updated layout
Throws:
com.liferay.portal.kernel.exception.PortalException - if a layout with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

updateScopedPortletNames

public void updateScopedPortletNames(long groupId,
                                     boolean privateLayout,
                                     long layoutId,
                                     java.util.Map<java.util.Locale,java.lang.String> nameMap,
                                     java.util.List<java.util.Locale> nameMapModifiedLocales)
                              throws com.liferay.portal.kernel.exception.PortalException,
                                     com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

updateScopedPortletNames

public void updateScopedPortletNames(long groupId,
                                     boolean privateLayout,
                                     long layoutId,
                                     java.lang.String name,
                                     java.lang.String languageId)
                              throws com.liferay.portal.kernel.exception.PortalException,
                                     com.liferay.portal.kernel.exception.SystemException
Updates the names of the portlets within scope of the group, the scope of the layout's universally unique identifier, and the privacy.

Parameters:
groupId - the primary key of the group
privateLayout - whether the layout is private to the group
layoutId - the primary key of the layout whose universally unique identifier to match
name - the new name for the portlets
languageId - the primary key of the language
Throws:
com.liferay.portal.kernel.exception.PortalException - if a matching layout could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
See Also:
EditScopeAction

getFriendlyURL

protected java.lang.String getFriendlyURL(long groupId,
                                          boolean privateLayout,
                                          long layoutId,
                                          java.lang.String name,
                                          java.lang.String friendlyURL)
                                   throws com.liferay.portal.kernel.exception.PortalException,
                                          com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getFriendlyURL

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

getNextPriority

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

getParentLayoutId

protected long getParentLayoutId(long groupId,
                                 boolean privateLayout,
                                 long parentLayoutId)
                          throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.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.kernel.exception.PortalException,
                        com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

validateFirstLayout

protected void validateFirstLayout(java.lang.String type)
                            throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

validateFriendlyURL

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

validateName

protected void validateName(java.lang.String name)
                     throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

validateName

protected void validateName(java.lang.String name,
                            java.lang.String languageId)
                     throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

validateParentLayoutId

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