public class CommunityManagerImpl extends OrganizationsUtil implements CommunityManager
| Modifier and Type | Field and Description |
|---|---|
static String |
CURR_ORG |
DEFAULT_COMPANY_WEB_ID, ROOT_ORG| Modifier and Type | Method and Description |
|---|---|
long |
createCommunity(String communityName,
String communityDesc,
long parentID)
Use this method for creating VRE programmatically and associate a default layout to it
|
long |
createCommunity(String usernameCreator,
String communityName,
String communityDesc,
GCUBESiteLayout siteLayout,
long parentID)
Use this method for creating VRE programmatically and associate it a layout
|
static CommunityManagerImpl |
get() |
List<com.liferay.portal.model.Portlet> |
getGCubePortlets(String communityName) |
static CommunityManagerImpl |
getInstance(org.gcube.application.framework.core.session.ASLSession session) |
addManagerRole, addManagerRole, addUserToGroup, createLayout, createRole, getCompany, getDefaultCompanyWebId, getDefaultPortlets, getgCubeThemeId, getRootOrganizationName, getTomcatFolder, getVREBelongingPortlets, validateUserpublic static final String CURR_ORG
public static CommunityManagerImpl get()
public static CommunityManagerImpl getInstance(org.gcube.application.framework.core.session.ASLSession session)
session - the sessionpublic long createCommunity(String communityName, String communityDesc, long parentID)
createCommunity in interface CommunityManagercommunityName - -communityDesc - -parentID - -public long createCommunity(String usernameCreator, String communityName, String communityDesc, GCUBESiteLayout siteLayout, long parentID)
createCommunity in interface CommunityManagerusernameCreator - -communityName - -communityDesc - -siteLayout - a parentID - the organization parentpublic List<com.liferay.portal.model.Portlet> getGCubePortlets(String communityName)
getGCubePortlets in interface CommunityManagercommunityName - -Copyright © 2015. All Rights Reserved.