public final class LiferaySetup extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION |
| Modifier and Type | Method and Description |
|---|---|
static long |
getCompanyId() |
static long |
getRunAsUserId() |
static void |
setup(File file) |
static void |
setup(InputStream inputStream) |
static void |
setup(List<eu.lundegaard.liferay.db.setup.domain.Setup> setups)
This method is used to setup the portal using a given list of
Setup
objects. |
static void |
setupFiles(List<File> files) |
static void |
setupInputStreams(List<InputStream> inputStreams) |
static void |
setupPortal(eu.lundegaard.liferay.db.setup.domain.Setup setup)
This method is used to classificare the different setup actions in
Setup object. |
public static final String DESCRIPTION
public static void setupFiles(List<File> files) throws FileNotFoundException, ParserConfigurationException, SAXException, JAXBException
public static void setup(File file) throws FileNotFoundException, ParserConfigurationException, SAXException, JAXBException
public static void setupInputStreams(List<InputStream> inputStreams) throws ParserConfigurationException, SAXException, JAXBException
public static void setup(InputStream inputStream) throws FileNotFoundException, ParserConfigurationException, SAXException, JAXBException
public static void setup(List<eu.lundegaard.liferay.db.setup.domain.Setup> setups)
Setup
objects.
For each Setup object in the list, the method performs the following
steps:
Configuration object from the current Setup
objectif not it uses the default administrator, if yes, it creates a permissionChecker for the specified user, sets it as the permissionChecker for the thread
setupPortal(Setup) method with the current Setup
object to perform the actual setup processsetups - a list of Setup objects to be used for the setup
processpublic static void setupPortal(eu.lundegaard.liferay.db.setup.domain.Setup setup)
Setup object. It calls the required method for the setup step for
each one of those fields:
deleteObjects(List)SetupCustomFields.setupExpandoFields(List, long)SetupRoles.setupRoles(List, long, long, long)SetupUsers.setupUsers(List, long, long, long)SetupOrganizations.setupOrganizations(List, com.liferay.portal.kernel.model.Organization, Group, long)SetupUserGroups.setupUserGroups(List, long)SetupPermissions.setupPortletPermissions(PortletPermissions, long)SetupFragments.setupFragments(List, long, long, long)SetupSites.setupSites(List, Group, long)SetupPages.setupPageTemplates(PageTemplates, long, long, long)setup - the Setup object to be used for the setup processpublic static long getRunAsUserId()
public static long getCompanyId()
Copyright © 2016–2023 Lundegaard a.s.. All rights reserved.