public final class SetupPages extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
setLayoutTemplate(com.liferay.portal.kernel.model.Layout layout,
eu.lundegaard.liferay.db.setup.domain.Page page,
long userid) |
static void |
setupPageTemplates(eu.lundegaard.liferay.db.setup.domain.PageTemplates pageTemplates,
long groupId,
long company,
long userid)
Set the page templates up.
|
static void |
setupSitePages(eu.lundegaard.liferay.db.setup.domain.Site site,
long groupId,
long company,
long userid)
Setups the pages for the site with the specified information.
|
public static void setupSitePages(eu.lundegaard.liferay.db.setup.domain.Site site,
long groupId,
long company,
long userid)
throws com.liferay.portal.kernel.exception.SystemException,
com.liferay.portal.kernel.exception.PortalException
This method sets up the public and private pages of the site based on the information passed in. If a theme is specified, it is set up for the pages. If a flag to delete existing pages is set, the existing pages are deleted. The pages are then added, and if a virtual host is specified, it is updated for the pages.
site - the site for which pages are to be set upgroupId - the group ID of the sitecompany - the company ID of the siteuserid - the user ID of the person setting up the site pagescom.liferay.portal.kernel.exception.SystemException - if an error occurs while updating the virtual hostcom.liferay.portal.kernel.exception.PortalException - if an error occurs while deleting pages or setting up
the themepublic static void setupPageTemplates(eu.lundegaard.liferay.db.setup.domain.PageTemplates pageTemplates,
long groupId,
long company,
long userid)
pageTemplates - The page template definitions that are imported.groupId - The group id of the site where to import thecompany - The id of the company to which the templates are imported.userid - The user id of the importing user.public static void setLayoutTemplate(com.liferay.portal.kernel.model.Layout layout,
eu.lundegaard.liferay.db.setup.domain.Page page,
long userid)
Copyright © 2016–2023 Lundegaard a.s.. All rights reserved.