@RestController
public class AaiController
extends org.openecomp.portalsdk.core.controller.RestrictedBaseController
Modifier and Type | Field and Description |
---|---|
protected String |
fromAppId
The from app id.
|
Constructor and Description |
---|
AaiController() |
AaiController(javax.servlet.ServletContext servletContext) |
Modifier and Type | Method and Description |
---|---|
protected javax.ws.rs.core.Response |
doAaiGet(String certiPath,
String uri,
boolean xml)
Send a GET request to a&ai.
|
protected javax.ws.rs.core.Response |
doAaiPost(String certiPath,
String uri,
String payload,
boolean xml)
Send a POST request to a&ai.
|
org.springframework.http.ResponseEntity<String> |
doGetServiceInstance(String serviceInstanceId,
String serviceInstanceType)
Lookup single service instance in a&ai.
|
org.springframework.http.ResponseEntity<String> |
doGetServices(javax.servlet.http.HttpServletRequest request)
Get services from a&ai.
|
org.springframework.http.ResponseEntity<String> |
doGetServices(String globalCustomerId,
String serviceSubscriptionId)
Get services from a&ai.
|
org.springframework.http.ResponseEntity<String> |
doGetSubscriberList(javax.servlet.http.HttpServletRequest request,
String fullSet)
Obtain the subscriber list from a&ai.
|
org.springframework.http.ResponseEntity<String> |
doRefreshFullSubscriberList()
Refresh the full subscriber list from a&ai.
|
org.springframework.http.ResponseEntity<String> |
doRefreshSubscriberList()
Refresh the subscriber list from a&ai.
|
org.springframework.http.ResponseEntity<String> |
getAicZoneForPnf(String globalCustomerId,
String serviceType,
String serviceId,
javax.servlet.http.HttpServletRequest request) |
org.springframework.http.ResponseEntity<String> |
getAicZones(javax.servlet.http.HttpServletRequest request) |
org.springframework.http.ResponseEntity<String> |
getFullSubscriberList(javax.servlet.http.HttpServletRequest request)
Obtain the full subscriber list from a&ai.
|
org.springframework.http.ResponseEntity<String> |
GetSubscriberDetails(javax.servlet.http.HttpServletRequest request,
String subscriberId)
Get subscriber details from a&ai.
|
org.springframework.http.ResponseEntity<String> |
getTargetProvStatus()
Obtain the Target Prov Status from the System.Properties file.
|
org.springframework.http.ResponseEntity<String> |
getUserID(javax.servlet.http.HttpServletRequest request)
Get services from a&ai.
|
org.springframework.http.ResponseEntity<String> |
getVersionByInvariantId(javax.servlet.http.HttpServletRequest request,
VersionByInvariantIdsRequest versions) |
String |
getViewName() |
AaiResponse<String> |
getVnfData(String globalCustomerId,
String serviceType,
String serviceInstanceId) |
org.springframework.http.ResponseEntity<String> |
getVnfDataByGlobalIdAndServiceType(javax.servlet.http.HttpServletRequest request,
String globalCustomerId,
String serviceType) |
static String |
parseCustomerObjectForTenants(org.json.simple.JSONObject jsonObject)
Return tenant details.
|
static String |
parseServiceSubscriptionObjectForTenants(org.json.simple.JSONObject jsonObject)
Retrieve the service subscription from the jsonObject.
|
void |
setViewName(String viewName) |
org.springframework.http.ResponseEntity<String> |
viewEditGetComponentList(String namedQueryId,
String globalCustomerId,
String serviceType)
Issue a named query to a&ai.
|
org.springframework.http.ResponseEntity<String> |
viewEditGetComponentList(String namedQueryId,
String globalCustomerId,
String serviceType,
String serviceInstance)
Issue a named query to a&ai.
|
org.springframework.http.ResponseEntity<String> |
viewEditGetTenantsFromServiceType(javax.servlet.http.HttpServletRequest request,
String globalCustomerId,
String serviceType)
Obtain tenants for a given service type.
|
org.springframework.web.servlet.ModelAndView |
welcome(javax.servlet.http.HttpServletRequest request)
Welcome method.
|
getExceptionView, isAccessible, isRESTfulCall, setExceptionView
protected String fromAppId
public AaiController()
public AaiController(javax.servlet.ServletContext servletContext)
public static String parseCustomerObjectForTenants(org.json.simple.JSONObject jsonObject)
jsonObject
- the json objectpublic static String parseServiceSubscriptionObjectForTenants(org.json.simple.JSONObject jsonObject)
jsonObject
- the json object@RequestMapping(value="/subscriberSearch", method=GET) public org.springframework.web.servlet.ModelAndView welcome(javax.servlet.http.HttpServletRequest request)
request
- the request@RequestMapping(value="/aai_get_aic_zones", method=GET) public org.springframework.http.ResponseEntity<String> getAicZones(javax.servlet.http.HttpServletRequest request) throws org.codehaus.jackson.JsonGenerationException, org.codehaus.jackson.map.JsonMappingException, IOException
org.codehaus.jackson.JsonGenerationException
org.codehaus.jackson.map.JsonMappingException
IOException
@RequestMapping(value="/aai_get_aic_zone_for_pnf/{globalCustomerId}/{serviceType}/{serviceId}", method=GET) public org.springframework.http.ResponseEntity<String> getAicZoneForPnf(@PathVariable(value="globalCustomerId") String globalCustomerId, @PathVariable(value="serviceType") String serviceType, @PathVariable(value="serviceId") String serviceId, javax.servlet.http.HttpServletRequest request) throws org.codehaus.jackson.JsonGenerationException, org.codehaus.jackson.map.JsonMappingException, IOException
org.codehaus.jackson.JsonGenerationException
org.codehaus.jackson.map.JsonMappingException
IOException
public String getViewName()
getViewName
in class org.openecomp.portalsdk.core.controller.RestrictedBaseController
public void setViewName(String viewName)
setViewName
in class org.openecomp.portalsdk.core.controller.RestrictedBaseController
@RequestMapping(value="/getuserID", method=GET) public org.springframework.http.ResponseEntity<String> getUserID(javax.servlet.http.HttpServletRequest request) throws IOException, InterruptedException
IOException
- Signals that an I/O exception has occurred.InterruptedException
- the interrupted exception@RequestMapping(value="/aai_get_services", method=GET, produces="application/json") public org.springframework.http.ResponseEntity<String> doGetServices(javax.servlet.http.HttpServletRequest request) throws IOException, InterruptedException
IOException
- Signals that an I/O exception has occurred.InterruptedException
- the interrupted exception@RequestMapping(value="/aai_get_version_by_invariant_id", method=POST) public org.springframework.http.ResponseEntity<String> getVersionByInvariantId(javax.servlet.http.HttpServletRequest request, @RequestBody VersionByInvariantIdsRequest versions) throws IOException
IOException
@RequestMapping(value="/aai_get_service_instance/{service-instance-id}/{service-instance-type}", method=GET, produces="application/json") public org.springframework.http.ResponseEntity<String> doGetServiceInstance(@PathVariable(value="service-instance-id") String serviceInstanceId, @PathVariable(value="service-instance-type") String serviceInstanceType) throws IOException, InterruptedException
serviceInstanceId
- the service instance IdIOException
- Signals that an I/O exception has occurred.InterruptedException
- the interrupted exception@RequestMapping(value="/aai_get_service_subscription/{global-customer-id}/{service-subscription-id}", method=GET, produces="application/json") public org.springframework.http.ResponseEntity<String> doGetServices(@PathVariable(value="global-customer-id") String globalCustomerId, @PathVariable(value="service-subscription-id") String serviceSubscriptionId) throws IOException, InterruptedException
globalCustomerId
- the global customer idserviceSubscriptionId
- the service subscription idIOException
- Signals that an I/O exception has occurred.InterruptedException
- the interrupted exception@RequestMapping(value="/aai_get_subscribers", method=GET, produces="application/json") public org.springframework.http.ResponseEntity<String> doGetSubscriberList(javax.servlet.http.HttpServletRequest request, @DefaultValue(value="n") @QueryParam(value="fullSet") String fullSet) throws IOException, InterruptedException
fullSet
- the full setIOException
- Signals that an I/O exception has occurred.InterruptedException
- the interrupted exception@RequestMapping(value="/get_system_prop_vnf_prov_status", method=GET, produces="application/json") public org.springframework.http.ResponseEntity<String> getTargetProvStatus() throws IOException, InterruptedException
IOException
- Signals that an I/O exception has occurred.InterruptedException
- the interrupted exception@RequestMapping(value="/aai_get_full_subscribers", method=GET, produces="application/json") public org.springframework.http.ResponseEntity<String> getFullSubscriberList(javax.servlet.http.HttpServletRequest request) throws IOException, InterruptedException
g @return ResponseEntity The response entity
IOException
- Signals that an I/O exception has occurred.InterruptedException
- the interrupted exception@RequestMapping(value="/get_vnf_data_by_globalid_and_service_type/{globalCustomerId}/{serviceType}", method=GET, produces="application/json") public org.springframework.http.ResponseEntity<String> getVnfDataByGlobalIdAndServiceType(javax.servlet.http.HttpServletRequest request, @PathVariable(value="globalCustomerId") String globalCustomerId, @PathVariable(value="serviceType") String serviceType) throws IOException
IOException
@RequestMapping(value="/aai_refresh_subscribers", method=GET, produces="application/json") public org.springframework.http.ResponseEntity<String> doRefreshSubscriberList() throws IOException
IOException
- Signals that an I/O exception has occurred.@RequestMapping(value="/aai_refresh_full_subscribers", method=GET, produces="application/json") public org.springframework.http.ResponseEntity<String> doRefreshFullSubscriberList() throws IOException
IOException
- Signals that an I/O exception has occurred.@RequestMapping(value="/aai_sub_details/{subscriberId}", method=GET) public org.springframework.http.ResponseEntity<String> GetSubscriberDetails(javax.servlet.http.HttpServletRequest request, @PathVariable(value="subscriberId") String subscriberId) throws IOException
subscriberId
- the subscriber idIOException
@RequestMapping(value="/aai_sub_viewedit/{namedQueryId}/{globalCustomerId}/{serviceType}/{serviceInstance}", method=GET) public org.springframework.http.ResponseEntity<String> viewEditGetComponentList(@PathVariable(value="namedQueryId") String namedQueryId, @PathVariable(value="globalCustomerId") String globalCustomerId, @PathVariable(value="serviceType") String serviceType, @PathVariable(value="serviceInstance") String serviceInstance)
namedQueryId
- the named query idglobalCustomerId
- the global customer idserviceType
- the service typeserviceInstance
- the service instance@RequestMapping(value="/aai_get_vnf_data/{globalCustomerId}/{serviceType}/{serviceInstanceId}", method=GET) public AaiResponse<String> getVnfData(@PathVariable(value="globalCustomerId") String globalCustomerId, @PathVariable(value="serviceType") String serviceType, @PathVariable(value="serviceInstanceId") String serviceInstanceId)
@RequestMapping(value="/aai_get_models_by_service_type/{namedQueryId}/{globalCustomerId}/{serviceType}", method=GET) public org.springframework.http.ResponseEntity<String> viewEditGetComponentList(@PathVariable(value="namedQueryId") String namedQueryId, @PathVariable(value="globalCustomerId") String globalCustomerId, @PathVariable(value="serviceType") String serviceType)
namedQueryId
- the named query idglobalCustomerId
- the global customer idserviceType
- the service type@RequestMapping(value="/aai_get_tenants/{global-customer-id}/{service-type}", method=GET) public org.springframework.http.ResponseEntity<String> viewEditGetTenantsFromServiceType(javax.servlet.http.HttpServletRequest request, @PathVariable(value="global-customer-id") String globalCustomerId, @PathVariable(value="service-type") String serviceType)
globalCustomerId
- the global customer idserviceType
- the service typeprotected javax.ws.rs.core.Response doAaiGet(String certiPath, String uri, boolean xml)
certiPath
- the certi pathuri
- the urixml
- the xmlCopyright © 2017. All rights reserved.