Package org.gcube.portal
Class GatewayVresInfoService
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.gcube.portal.GatewayVresInfoService
-
- All Implemented Interfaces:
Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
public class GatewayVresInfoService extends javax.servlet.http.HttpServlet- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringCOMMUNITY_CUSTOM_FIELDstatic StringGET_OID_PARAMETERstatic StringKEYWORDS_CUSTOM_FIELDstatic StringPREFIX_PRIVATE_URLstatic StringPREFIX_PUBLIC_URL
-
Constructor Summary
Constructors Constructor Description GatewayVresInfoService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)protected voiddoPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)List<Gateway>getGateways(org.gcube.vomanagement.usermanagement.GroupManager groupsManager, String host)LinkedHashMap<VRECategory,ArrayList<VRE>>getPortalSitesMappedToVRE(long gatewaySiteGroupId, String host)voidinit()-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
-
-
-
-
Field Detail
-
PREFIX_PUBLIC_URL
public static final String PREFIX_PUBLIC_URL
- See Also:
- Constant Field Values
-
PREFIX_PRIVATE_URL
public static final String PREFIX_PRIVATE_URL
- See Also:
- Constant Field Values
-
GET_OID_PARAMETER
public static final String GET_OID_PARAMETER
- See Also:
- Constant Field Values
-
KEYWORDS_CUSTOM_FIELD
public static final String KEYWORDS_CUSTOM_FIELD
- See Also:
- Constant Field Values
-
COMMUNITY_CUSTOM_FIELD
public static final String COMMUNITY_CUSTOM_FIELD
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init()
- Overrides:
initin classjavax.servlet.GenericServlet
-
doGet
protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException- Overrides:
doGetin classjavax.servlet.http.HttpServlet- Throws:
javax.servlet.ServletExceptionIOException
-
getGateways
public List<Gateway> getGateways(org.gcube.vomanagement.usermanagement.GroupManager groupsManager, String host)
-
getPortalSitesMappedToVRE
public LinkedHashMap<VRECategory,ArrayList<VRE>> getPortalSitesMappedToVRE(long gatewaySiteGroupId, String host) throws Exception
- Returns:
- the Virtual groups with their VREs in the order established in the LR Control Panel
- Throws:
com.liferay.portal.kernel.exception.SystemExceptioncom.liferay.portal.kernel.exception.PortalExceptionException
-
doPost
protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException- Overrides:
doPostin classjavax.servlet.http.HttpServlet- Throws:
javax.servlet.ServletExceptionIOException
-
-