Class GCubeSiteManagerImpl
- java.lang.Object
-
- org.gcube.portal.custom.communitymanager.SiteManagerUtil
-
- org.gcube.portal.custom.communitymanager.impl.GCubeSiteManagerImpl
-
public class GCubeSiteManagerImpl extends SiteManagerUtil
- Author:
- Massimiliano Assante, massimiliano.assante@isti.cnr.it
-
-
Field Summary
Fields Modifier and Type Field Description static StringSITE_DEFAULT_LOGOFIXME public as generic resource-
Fields inherited from class org.gcube.portal.custom.communitymanager.SiteManagerUtil
DEFAULT_COMPANY_WEB_ID, ROOT_ORG
-
-
Constructor Summary
Constructors Constructor Description GCubeSiteManagerImpl()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static longcreateRootVO(String username, String voName, String voDesc, GCUBESiteLayout siteLayout, String themeid)create a VO with no parent (root VO)static longcreateVO(String username, String voName, String voDesc, long parentid, GCUBESiteLayout siteLayout, String themeid)static longcreateVRE(String username, String vreName, String voDesc, long parentid, GCUBESiteLayout siteLayout, String themeid)static GCUBESiteLayoutgetBaseLayout(String voName, boolean isVO, String username)-
Methods inherited from class org.gcube.portal.custom.communitymanager.SiteManagerUtil
addUserToGroup, createLayout, getCompany, getDefaultCompanyWebId, getDefaultPortlets, getgCubeThemeId, getRootOrganizationName, getTomcatFolder, getVREBelongingPortlets, validateUser
-
-
-
-
Field Detail
-
SITE_DEFAULT_LOGO
public static final String SITE_DEFAULT_LOGO
FIXME public as generic resource- See Also:
- Constant Field Values
-
-
Method Detail
-
createVO
public static long createVO(String username, String voName, String voDesc, long parentid, GCUBESiteLayout siteLayout, String themeid)
- Parameters:
rootVoName- the voNamevoDesc- -- Returns:
- the organizationid of the created VO
-
createRootVO
public static long createRootVO(String username, String voName, String voDesc, GCUBESiteLayout siteLayout, String themeid)
create a VO with no parent (root VO)- Parameters:
voName- the voNamevoDesc- -- Returns:
- the id of the created VO
-
createVRE
public static long createVRE(String username, String vreName, String voDesc, long parentid, GCUBESiteLayout siteLayout, String themeid)
- Parameters:
rootVoName- the voNamevoDesc- -- Returns:
- the organizationid of the created VO
-
getBaseLayout
public static GCUBESiteLayout getBaseLayout(String voName, boolean isVO, String username) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
- Returns:
- the built layout of a rootVO
- Throws:
com.liferay.portal.kernel.exception.SystemException- .com.liferay.portal.kernel.exception.PortalException- .
-
-