public class SiteManagerUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_COMPANY_WEB_ID |
static String |
ROOT_ORG |
| Constructor and Description |
|---|
SiteManagerUtil() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addUserToGroup(long groupid,
String username) |
static long |
createLayout(com.liferay.portal.model.Group group,
com.liferay.portal.model.User user,
GCUBESiteLayout siteLayout)
Use this method to associate a layout to a Group (whether organization or community)
|
static com.liferay.portal.model.Company |
getCompany()
return the companyId
|
static String |
getDefaultCompanyWebId() |
List<GCUBEPortlet> |
getDefaultPortlets() |
static String |
getgCubeThemeId(String themeid)
get the themes id for from the property file
|
static String |
getRootOrganizationName()
read the root VO name from a property file and retuns it
|
static String |
getTomcatFolder() |
protected List<GCUBEPortlet> |
getVREBelongingPortlets(List<String> belongingPorltets) |
static com.liferay.portal.model.User |
validateUser(String username)
check if the user exists in the database and has AuthZ to perform the operation
|
public static final String DEFAULT_COMPANY_WEB_ID
public static final String ROOT_ORG
public static com.liferay.portal.model.Company getCompany()
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
webId - .com.liferay.portal.kernel.exception.PortalException - .com.liferay.portal.kernel.exception.SystemException - .public static String getDefaultCompanyWebId()
public static String getTomcatFolder()
public static String getgCubeThemeId(String themeid)
themeid - see protected List<GCUBEPortlet> getVREBelongingPortlets(List<String> belongingPorltets)
public List<GCUBEPortlet> getDefaultPortlets()
public static com.liferay.portal.model.User validateUser(String username) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptioncom.liferay.portal.kernel.exception.PortalExceptionpublic static long createLayout(com.liferay.portal.model.Group group,
com.liferay.portal.model.User user,
GCUBESiteLayout siteLayout)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
group - .user - .siteLayout - .com.liferay.portal.kernel.exception.PortalException - .com.liferay.portal.kernel.exception.SystemException - .public boolean addUserToGroup(long groupid,
String username)
groupid - the groupid of the organizationusername - public static String getRootOrganizationName()
Copyright © 2018. All Rights Reserved.