Class ManagementUtils

java.lang.Object
org.gcube.vomanagement.usermanagement.util.ManagementUtils

public class ManagementUtils extends Object
  • 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.PortalException
      com.liferay.portal.kernel.exception.SystemException
    • getDefaultCompanyWebId

      public static String 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.SystemException
      com.liferay.portal.kernel.exception.PortalException