Class ManagementUtils
java.lang.Object
org.gcube.vomanagement.usermanagement.util.ManagementUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.liferay.portal.kernel.model.Companystatic Stringstatic longgetSiteGroupIdFromServletRequest(String serverName)
-
Constructor Details
-
ManagementUtils
public ManagementUtils()
-
-
Method Details
-
getCompany
public static com.liferay.portal.kernel.model.Company getCompany() throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException- Throws:
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemException
-
getDefaultCompanyWebId
- Returns:
- the default company web-id (e.g. iMarine.eu)
-
getSiteGroupIdFromServletRequest
public static long getSiteGroupIdFromServletRequest(String serverName) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.PortalException - Parameters:
serverName- the host name of the server that is sending the request (e.g. i-marine.d4science.org)- Returns:
- the current Group instance based on the request
- Throws:
com.liferay.portal.kernel.exception.SystemExceptioncom.liferay.portal.kernel.exception.PortalException
-