|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.portal.custom.communitymanager.OrganizationsUtil
public class OrganizationsUtil
| Field Summary | |
|---|---|
static String |
DEFAULT_COMPANY_WEB_ID
|
static String |
ROOT_ORG
|
| Constructor Summary | |
|---|---|
OrganizationsUtil()
|
|
| Method Summary | |
|---|---|
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 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_COMPANY_WEB_ID
public static final String ROOT_ORG
| Constructor Detail |
|---|
public OrganizationsUtil()
| Method Detail |
|---|
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.SystemException
com.liferay.portal.kernel.exception.PortalException
public 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.SystemException
com.liferay.portal.kernel.exception.PortalException
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.SystemException
com.liferay.portal.kernel.exception.PortalException
protected 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.PortalException
com.liferay.portal.kernel.exception.SystemExceptionpublic static String getRootOrganizationName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||