public class OrganizationsUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_COMPANY_WEB_ID |
static String |
ROOT_ORG |
| Constructor and Description |
|---|
OrganizationsUtil() |
| Modifier and Type | Method and Description |
|---|---|
static com.liferay.portal.model.Role |
addManagerRole(String vreName,
String username)
Create a Regular Manager Role for the community/Organization
|
static com.liferay.portal.model.Role |
addManagerRole(String roleName,
String vreName,
long userid)
Create a Regular Manager Role for the community/Organization
|
boolean |
addUserToGroup(long groupid,
String username) |
protected 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)
|
protected static com.liferay.portal.model.Role |
createRole(String roleName,
String vreName,
long userid)
Create a Regular Manager Role for the 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.Role addManagerRole(String vreName, String username) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
vreName - com.liferay.portal.kernel.exception.SystemExceptioncom.liferay.portal.kernel.exception.PortalExceptionpublic static com.liferay.portal.model.Role addManagerRole(String roleName, String vreName, long userid) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
vreName - com.liferay.portal.kernel.exception.SystemExceptioncom.liferay.portal.kernel.exception.PortalExceptionpublic 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.PortalExceptionprotected 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 - protected static com.liferay.portal.model.Role createRole(String roleName, String vreName, long userid)
vreName - com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static String getRootOrganizationName()
Copyright © 2015. All Rights Reserved.