diff options
Diffstat (limited to 'common/src/main/java/org/openecomp/mso/client/grm')
18 files changed, 0 insertions, 1249 deletions
diff --git a/common/src/main/java/org/openecomp/mso/client/grm/GRMAction.java b/common/src/main/java/org/openecomp/mso/client/grm/GRMAction.java deleted file mode 100644 index 50544bab70..0000000000 --- a/common/src/main/java/org/openecomp/mso/client/grm/GRMAction.java +++ /dev/null @@ -1,37 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * ONAP - SO - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.mso.client.grm; - -public enum GRMAction { - - FIND_RUNNING("findRunning"), - ADD("add"); - - private final String action; - - GRMAction(String action) { - this.action = action; - } - - public String getAction() { - return action; - } -} diff --git a/common/src/main/java/org/openecomp/mso/client/grm/GRMClient.java b/common/src/main/java/org/openecomp/mso/client/grm/GRMClient.java deleted file mode 100644 index 5b5f269731..0000000000 --- a/common/src/main/java/org/openecomp/mso/client/grm/GRMClient.java +++ /dev/null @@ -1,83 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * ONAP - SO - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.mso.client.grm; - -import org.openecomp.mso.client.grm.beans.ServiceEndPointList; -import org.openecomp.mso.client.grm.beans.ServiceEndPointLookup; -import org.openecomp.mso.client.grm.beans.ServiceEndPointLookupRequest; -import org.openecomp.mso.client.grm.beans.ServiceEndPointRequest; -import org.openecomp.mso.client.grm.beans.VersionLookup; -import org.openecomp.mso.client.grm.exceptions.GRMClientCallFailed; - -public class GRMClient { - - public String findRunningServicesAsString(String name, int majorVersion, String env) throws Exception { - - ServiceEndPointLookupRequest request = buildServiceEndPointlookupRequest(name, majorVersion, env); - try { - GRMRestInvoker invoker = this.getInvoker(GRMAction.FIND_RUNNING); - return invoker.post(request, String.class); - } - catch(Exception e) { - throw new GRMClientCallFailed("Call to GRM findRunning failed: " + e.getMessage(), e); - } - } - - public ServiceEndPointList findRunningServices(String name, int majorVersion, String env) throws Exception { - - ServiceEndPointLookupRequest request = buildServiceEndPointlookupRequest(name, majorVersion, env); - try { - GRMRestInvoker invoker = this.getInvoker(GRMAction.FIND_RUNNING); - return invoker.post(request, ServiceEndPointList.class); - } - catch(Exception e) { - throw new GRMClientCallFailed("Call to GRM findRunning failed: " + e.getMessage(), e); - } - } - - protected ServiceEndPointLookupRequest buildServiceEndPointlookupRequest(String name, int majorVersion, String env) { - VersionLookup version = new VersionLookup(); - version.setMajor(majorVersion); - - ServiceEndPointLookup endpoint = new ServiceEndPointLookup(); - endpoint.setName(name); - endpoint.setVersion(version); - - ServiceEndPointLookupRequest request = new ServiceEndPointLookupRequest(); - request.setServiceEndPoint(endpoint); - request.setEnv(env); - return request; - } - - public void addServiceEndPoint(ServiceEndPointRequest request) throws Exception { - try { - GRMRestInvoker invoker = this.getInvoker(GRMAction.ADD); - invoker.post(request); - } - catch(Exception e) { - throw new GRMClientCallFailed("Call to GRM addServiceEndPoint failed: " + e.getMessage(), e); - } - } - - protected GRMRestInvoker getInvoker(GRMAction action) { - return new GRMRestInvoker(action); - } -} diff --git a/common/src/main/java/org/openecomp/mso/client/grm/GRMDefaultPropertiesImpl.java b/common/src/main/java/org/openecomp/mso/client/grm/GRMDefaultPropertiesImpl.java deleted file mode 100644 index 3bdc769321..0000000000 --- a/common/src/main/java/org/openecomp/mso/client/grm/GRMDefaultPropertiesImpl.java +++ /dev/null @@ -1,63 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * ONAP - SO - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.mso.client.grm; - -import java.net.MalformedURLException; -import java.net.URL; - -import javax.ws.rs.core.MediaType; - -public class GRMDefaultPropertiesImpl implements GRMProperties { - - public GRMDefaultPropertiesImpl() { - } - - @Override - public URL getEndpoint() throws MalformedURLException { - return new URL("http://localhost:28090"); - } - - @Override - public String getSystemName() { - return "MSO"; - } - - @Override - public String getDefaultVersion() { - return "v1"; - } - - @Override - public String getUsername() { - return "gmruser"; - } - - @Override - public String getPassword() { - return "cGFzc3dvcmQ="; - } - - @Override - public String getContentType() { - return MediaType.APPLICATION_JSON; - } - -} diff --git a/common/src/main/java/org/openecomp/mso/client/grm/GRMProperties.java b/common/src/main/java/org/openecomp/mso/client/grm/GRMProperties.java deleted file mode 100644 index 6fbbb21a8a..0000000000 --- a/common/src/main/java/org/openecomp/mso/client/grm/GRMProperties.java +++ /dev/null @@ -1,30 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * ONAP - SO - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.mso.client.grm; - -import org.openecomp.mso.client.RestProperties; - -public interface GRMProperties extends RestProperties { - public String getDefaultVersion(); - public String getUsername(); - public String getPassword(); - public String getContentType(); -} diff --git a/common/src/main/java/org/openecomp/mso/client/grm/GRMPropertiesLoader.java b/common/src/main/java/org/openecomp/mso/client/grm/GRMPropertiesLoader.java deleted file mode 100644 index 9323e22065..0000000000 --- a/common/src/main/java/org/openecomp/mso/client/grm/GRMPropertiesLoader.java +++ /dev/null @@ -1,48 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * ONAP - SO - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.mso.client.grm; - -import java.util.Iterator; -import java.util.ServiceLoader; - -public class GRMPropertiesLoader { - - private final ServiceLoader<GRMProperties> services; - private GRMPropertiesLoader() { - services = ServiceLoader.load(GRMProperties.class); - } - - private static class Helper { - private static final GRMPropertiesLoader INSTANCE = new GRMPropertiesLoader(); - } - - public static GRMPropertiesLoader getInstance() { - return Helper.INSTANCE; - } - - public GRMProperties getImpl() { - Iterator<GRMProperties> propertyImpls = services.iterator(); - while (propertyImpls.hasNext()) { - return propertyImpls.next(); - } - return null; - } -} diff --git a/common/src/main/java/org/openecomp/mso/client/grm/GRMRestClient.java b/common/src/main/java/org/openecomp/mso/client/grm/GRMRestClient.java deleted file mode 100644 index 7a81d7e7ec..0000000000 --- a/common/src/main/java/org/openecomp/mso/client/grm/GRMRestClient.java +++ /dev/null @@ -1,61 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * ONAP - SO - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.mso.client.grm; - - -import java.net.URI; -import java.util.Base64; -import java.util.Map; -import java.util.Optional; -import java.util.UUID; - -import javax.ws.rs.client.ClientResponseFilter; - -import org.openecomp.mso.client.ResponseExceptionMapperImpl; -import org.openecomp.mso.client.RestProperties; -import org.openecomp.mso.client.policy.RestClient; - -public class GRMRestClient extends RestClient { - - private final String username; - private final String password; - - public GRMRestClient(RestProperties props, URI path, String username, String password) { - super(props, UUID.randomUUID(), Optional.of(path)); - this.username = username; - this.password = password; - } - - @Override - protected void initializeHeaderMap(Map<String, String> headerMap) { - headerMap.put("Authorization", "Basic " + Base64.getEncoder().encodeToString(new String(username + ":" + password).getBytes())); - } - - @Override - protected Optional<ClientResponseFilter> addResponseFilter() { - return Optional.of(new ResponseExceptionMapperImpl()); - } - - @Override - public RestClient addRequestId(UUID requestId) { - return this; - } -} diff --git a/common/src/main/java/org/openecomp/mso/client/grm/GRMRestInvoker.java b/common/src/main/java/org/openecomp/mso/client/grm/GRMRestInvoker.java deleted file mode 100644 index d706be3f16..0000000000 --- a/common/src/main/java/org/openecomp/mso/client/grm/GRMRestInvoker.java +++ /dev/null @@ -1,73 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * ONAP - SO - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.mso.client.grm; - -import java.net.URI; -import java.util.Base64; - -import javax.ws.rs.core.UriBuilder; -import org.openecomp.mso.client.RestPropertiesLoader; -import org.openecomp.mso.client.policy.RestClient; - -public class GRMRestInvoker { - - private final RestClient client; - private final GRMProperties properties; - - public GRMRestInvoker(GRMAction action) { - GRMProperties props = GRMPropertiesLoader.getInstance().getImpl(); - if (props == null) { - props = new GRMDefaultPropertiesImpl(); - } - this.properties = props; - this.client = new GRMRestClient(this.properties, this.createURI(action), this.properties.getUsername(), this.decode(this.properties.getPassword())); - } - - private URI createURI(GRMAction action) { - return UriBuilder.fromUri("/GRMLWPService") - .path(this.properties.getDefaultVersion()) - .path("serviceEndPoint") - .path(action.getAction()) - .build(); - } - - private String decode(String cred) { - try { - return new String(Base64.getDecoder().decode(cred.getBytes())); - } - catch(IllegalArgumentException iae) { - return cred; - } - } - - private RestClient getClient() { - return this.client; - } - - public void post(Object obj) { - getClient().post(obj); - } - - public <T> T post(Object obj, Class<T> resultClass) { - return getClient().post(obj, resultClass); - } - -} diff --git a/common/src/main/java/org/openecomp/mso/client/grm/beans/OperationalInfo.java b/common/src/main/java/org/openecomp/mso/client/grm/beans/OperationalInfo.java deleted file mode 100644 index c5f5a7a7af..0000000000 --- a/common/src/main/java/org/openecomp/mso/client/grm/beans/OperationalInfo.java +++ /dev/null @@ -1,82 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * ONAP - SO - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.mso.client.grm.beans; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; - -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonPropertyOrder({ "createdBy", "updatedBy", "createdTimestamp", "updatedTimestamp" }) -public class OperationalInfo { - - @JsonProperty("createdBy") - private String createdBy; - @JsonProperty("updatedBy") - private String updatedBy; - @JsonProperty("createdTimestamp") - private String createdTimestamp; - @JsonProperty("updatedTimestamp") - private String updatedTimestamp; - - @JsonProperty("createdBy") - public String getCreatedBy() { - return createdBy; - } - - @JsonProperty("createdBy") - public void setCreatedBy(String createdBy) { - this.createdBy = createdBy; - } - - @JsonProperty("updatedBy") - public String getUpdatedBy() { - return updatedBy; - } - - @JsonProperty("updatedBy") - public void setUpdatedBy(String updatedBy) { - this.updatedBy = updatedBy; - } - - @JsonProperty("createdTimestamp") - public String getCreatedTimestamp() { - return createdTimestamp; - } - - @JsonProperty("createdTimestamp") - public void setCreatedTimestamp(String createdTimestamp) { - this.createdTimestamp = createdTimestamp; - } - - @JsonProperty("updatedTimestamp") - public String getUpdatedTimestamp() { - return updatedTimestamp; - } - - @JsonProperty("updatedTimestamp") - public void setUpdatedTimestamp(String updatedTimestamp) { - this.updatedTimestamp = updatedTimestamp; - } - -}
\ No newline at end of file diff --git a/common/src/main/java/org/openecomp/mso/client/grm/beans/Property.java b/common/src/main/java/org/openecomp/mso/client/grm/beans/Property.java deleted file mode 100644 index eff1659102..0000000000 --- a/common/src/main/java/org/openecomp/mso/client/grm/beans/Property.java +++ /dev/null @@ -1,58 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * ONAP - SO - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.mso.client.grm.beans; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; - -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonPropertyOrder({ "name", "value" }) -public class Property { - - @JsonProperty("name") - private String name; - @JsonProperty("value") - private String value; - - @JsonProperty("name") - public String getName() { - return name; - } - - @JsonProperty("name") - public void setName(String name) { - this.name = name; - } - - @JsonProperty("value") - public String getValue() { - return value; - } - - @JsonProperty("value") - public void setValue(String value) { - this.value = value; - } - -}
\ No newline at end of file diff --git a/common/src/main/java/org/openecomp/mso/client/grm/beans/ServiceEndPoint.java b/common/src/main/java/org/openecomp/mso/client/grm/beans/ServiceEndPoint.java deleted file mode 100644 index a753afbe90..0000000000 --- a/common/src/main/java/org/openecomp/mso/client/grm/beans/ServiceEndPoint.java +++ /dev/null @@ -1,247 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * ONAP - SO - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.mso.client.grm.beans; - -import java.io.Serializable; -import java.util.List; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonRootName; - -@JsonRootName(value = "serviceEndPoint") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonPropertyOrder({ "name", "version", "hostAddress", "listenPort", "latitude", "longitude", "registrationTime", - "expirationTime", "contextPath", "routeOffer", "statusInfo", "eventStatusInfo", "validatorStatusInfo", - "operationalInfo", "protocol", "properties", "disableType" }) -public class ServiceEndPoint implements Serializable { - - private static final long serialVersionUID = -1594441352549128491L; - - @JsonProperty("name") - private String name; - @JsonProperty("version") - private Version version; - @JsonProperty("hostAddress") - private String hostAddress; - @JsonProperty("listenPort") - private String listenPort; - @JsonProperty("latitude") - private String latitude; - @JsonProperty("longitude") - private String longitude; - @JsonProperty("registrationTime") - private String registrationTime; - @JsonProperty("expirationTime") - private String expirationTime; - @JsonProperty("contextPath") - private String contextPath; - @JsonProperty("routeOffer") - private String routeOffer; - @JsonProperty("statusInfo") - private Status statusInfo; - @JsonProperty("eventStatusInfo") - private Status eventStatusInfo; - @JsonProperty("validatorStatusInfo") - private Status validatorStatusInfo; - @JsonProperty("operationalInfo") - private OperationalInfo operationalInfo; - @JsonProperty("protocol") - private String protocol; - @JsonProperty("properties") - private List<Property> properties = null; - @JsonProperty("disableType") - private List<Object> disableType = null; - - @JsonProperty("name") - public String getName() { - return name; - } - - @JsonProperty("name") - public void setName(String name) { - this.name = name; - } - - @JsonProperty("version") - public Version getVersion() { - return version; - } - - @JsonProperty("version") - public void setVersion(Version version) { - this.version = version; - } - - @JsonProperty("hostAddress") - public String getHostAddress() { - return hostAddress; - } - - @JsonProperty("hostAddress") - public void setHostAddress(String hostAddress) { - this.hostAddress = hostAddress; - } - - @JsonProperty("listenPort") - public String getListenPort() { - return listenPort; - } - - @JsonProperty("listenPort") - public void setListenPort(String listenPort) { - this.listenPort = listenPort; - } - - @JsonProperty("latitude") - public String getLatitude() { - return latitude; - } - - @JsonProperty("latitude") - public void setLatitude(String latitude) { - this.latitude = latitude; - } - - @JsonProperty("longitude") - public String getLongitude() { - return longitude; - } - - @JsonProperty("longitude") - public void setLongitude(String longitude) { - this.longitude = longitude; - } - - @JsonProperty("registrationTime") - public String getRegistrationTime() { - return registrationTime; - } - - @JsonProperty("registrationTime") - public void setRegistrationTime(String registrationTime) { - this.registrationTime = registrationTime; - } - - @JsonProperty("expirationTime") - public String getExpirationTime() { - return expirationTime; - } - - @JsonProperty("expirationTime") - public void setExpirationTime(String expirationTime) { - this.expirationTime = expirationTime; - } - - @JsonProperty("contextPath") - public String getContextPath() { - return contextPath; - } - - @JsonProperty("contextPath") - public void setContextPath(String contextPath) { - this.contextPath = contextPath; - } - - @JsonProperty("routeOffer") - public String getRouteOffer() { - return routeOffer; - } - - @JsonProperty("routeOffer") - public void setRouteOffer(String routeOffer) { - this.routeOffer = routeOffer; - } - - @JsonProperty("statusInfo") - public Status getStatusInfo() { - return statusInfo; - } - - @JsonProperty("statusInfo") - public void setStatusInfo(Status statusInfo) { - this.statusInfo = statusInfo; - } - - @JsonProperty("eventStatusInfo") - public Status getEventStatusInfo() { - return eventStatusInfo; - } - - @JsonProperty("eventStatusInfo") - public void setEventStatusInfo(Status eventStatusInfo) { - this.eventStatusInfo = eventStatusInfo; - } - - @JsonProperty("validatorStatusInfo") - public Status getValidatorStatusInfo() { - return validatorStatusInfo; - } - - @JsonProperty("validatorStatusInfo") - public void setValidatorStatusInfo(Status validatorStatusInfo) { - this.validatorStatusInfo = validatorStatusInfo; - } - - @JsonProperty("operationalInfo") - public OperationalInfo getOperationalInfo() { - return operationalInfo; - } - - @JsonProperty("operationalInfo") - public void setOperationalInfo(OperationalInfo operationalInfo) { - this.operationalInfo = operationalInfo; - } - - @JsonProperty("protocol") - public String getProtocol() { - return protocol; - } - - @JsonProperty("protocol") - public void setProtocol(String protocol) { - this.protocol = protocol; - } - - @JsonProperty("properties") - public List<Property> getProperties() { - return properties; - } - - @JsonProperty("properties") - public void setProperties(List<Property> properties) { - this.properties = properties; - } - - @JsonProperty("disableType") - public List<Object> getDisableType() { - return disableType; - } - - @JsonProperty("disableType") - public void setDisableType(List<Object> disableType) { - this.disableType = disableType; - } - -} diff --git a/common/src/main/java/org/openecomp/mso/client/grm/beans/ServiceEndPointList.java b/common/src/main/java/org/openecomp/mso/client/grm/beans/ServiceEndPointList.java deleted file mode 100644 index 0faf1fb826..0000000000 --- a/common/src/main/java/org/openecomp/mso/client/grm/beans/ServiceEndPointList.java +++ /dev/null @@ -1,48 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * ONAP - SO - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.mso.client.grm.beans; - -import java.util.List; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; - -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonPropertyOrder({ "serviceEndPointList" }) -public class ServiceEndPointList { - - @JsonProperty("serviceEndPointList") - private List<ServiceEndPoint> serviceEndPointList = null; - - @JsonProperty("serviceEndPointList") - public List<ServiceEndPoint> getServiceEndPointList() { - return serviceEndPointList; - } - - @JsonProperty("serviceEndPointList") - public void setServiceEndPointList(List<ServiceEndPoint> serviceEndPointList) { - this.serviceEndPointList = serviceEndPointList; - } - -}
\ No newline at end of file diff --git a/common/src/main/java/org/openecomp/mso/client/grm/beans/ServiceEndPointLookup.java b/common/src/main/java/org/openecomp/mso/client/grm/beans/ServiceEndPointLookup.java deleted file mode 100644 index 37e23795e9..0000000000 --- a/common/src/main/java/org/openecomp/mso/client/grm/beans/ServiceEndPointLookup.java +++ /dev/null @@ -1,61 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * ONAP - SO - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.mso.client.grm.beans; - -import java.io.Serializable; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonRootName; - -@JsonRootName(value = "serviceEndPoint") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ "name", "version"}) -public class ServiceEndPointLookup implements Serializable { - - private static final long serialVersionUID = 8867758152519088615L; - - @JsonProperty("name") - private String name; - @JsonProperty("version") - private VersionLookup version; - - @JsonProperty("name") - public String getName() { - return name; - } - - @JsonProperty("name") - public void setName(String name) { - this.name = name; - } - - @JsonProperty("version") - public VersionLookup getVersion() { - return version; - } - - @JsonProperty("version") - public void setVersion(VersionLookup version) { - this.version = version; - } -} diff --git a/common/src/main/java/org/openecomp/mso/client/grm/beans/ServiceEndPointLookupRequest.java b/common/src/main/java/org/openecomp/mso/client/grm/beans/ServiceEndPointLookupRequest.java deleted file mode 100644 index fc1992c763..0000000000 --- a/common/src/main/java/org/openecomp/mso/client/grm/beans/ServiceEndPointLookupRequest.java +++ /dev/null @@ -1,63 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * ONAP - SO - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.mso.client.grm.beans; - -import java.util.HashMap; -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; - -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonPropertyOrder({ "serviceEndPoint", "env" }) -public class ServiceEndPointLookupRequest { - - @JsonProperty("serviceEndPoint") - private ServiceEndPointLookup serviceEndPoint; - @JsonProperty("env") - private String env; - - @JsonProperty("serviceEndPoint") - public ServiceEndPointLookup getServiceEndPoint() { - return serviceEndPoint; - } - - @JsonProperty("serviceEndPoint") - public void setServiceEndPoint(ServiceEndPointLookup serviceEndPoint) { - this.serviceEndPoint = serviceEndPoint; - } - - @JsonProperty("env") - public String getEnv() { - return env; - } - - @JsonProperty("env") - public void setEnv(String env) { - this.env = env; - } - -}
\ No newline at end of file diff --git a/common/src/main/java/org/openecomp/mso/client/grm/beans/ServiceEndPointRequest.java b/common/src/main/java/org/openecomp/mso/client/grm/beans/ServiceEndPointRequest.java deleted file mode 100644 index 324fe9f32a..0000000000 --- a/common/src/main/java/org/openecomp/mso/client/grm/beans/ServiceEndPointRequest.java +++ /dev/null @@ -1,63 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * ONAP - SO - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.mso.client.grm.beans; - -import java.util.HashMap; -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; - -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonPropertyOrder({ "serviceEndPoint", "env" }) -public class ServiceEndPointRequest { - - @JsonProperty("serviceEndPoint") - private ServiceEndPoint serviceEndPoint; - @JsonProperty("env") - private String env; - - @JsonProperty("serviceEndPoint") - public ServiceEndPoint getServiceEndPoint() { - return serviceEndPoint; - } - - @JsonProperty("serviceEndPoint") - public void setServiceEndPoint(ServiceEndPoint serviceEndPoint) { - this.serviceEndPoint = serviceEndPoint; - } - - @JsonProperty("env") - public String getEnv() { - return env; - } - - @JsonProperty("env") - public void setEnv(String env) { - this.env = env; - } - -}
\ No newline at end of file diff --git a/common/src/main/java/org/openecomp/mso/client/grm/beans/Status.java b/common/src/main/java/org/openecomp/mso/client/grm/beans/Status.java deleted file mode 100644 index 3c66c50a5c..0000000000 --- a/common/src/main/java/org/openecomp/mso/client/grm/beans/Status.java +++ /dev/null @@ -1,82 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * ONAP - SO - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.mso.client.grm.beans; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; - -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonPropertyOrder({ "status", "statusReasonCode", "statusReasonDescription", "statusCheckTime" }) -public class Status { - - @JsonProperty("status") - private String status; - @JsonProperty("statusReasonCode") - private String statusReasonCode; - @JsonProperty("statusReasonDescription") - private String statusReasonDescription; - @JsonProperty("statusCheckTime") - private String statusCheckTime; - - @JsonProperty("status") - public String getStatus() { - return status; - } - - @JsonProperty("status") - public void setStatus(String status) { - this.status = status; - } - - @JsonProperty("statusReasonCode") - public String getStatusReasonCode() { - return statusReasonCode; - } - - @JsonProperty("statusReasonCode") - public void setStatusReasonCode(String statusReasonCode) { - this.statusReasonCode = statusReasonCode; - } - - @JsonProperty("statusReasonDescription") - public String getStatusReasonDescription() { - return statusReasonDescription; - } - - @JsonProperty("statusReasonDescription") - public void setStatusReasonDescription(String statusReasonDescription) { - this.statusReasonDescription = statusReasonDescription; - } - - @JsonProperty("statusCheckTime") - public String getStatusCheckTime() { - return statusCheckTime; - } - - @JsonProperty("statusCheckTime") - public void setStatusCheckTime(String statusCheckTime) { - this.statusCheckTime = statusCheckTime; - } - -}
\ No newline at end of file diff --git a/common/src/main/java/org/openecomp/mso/client/grm/beans/Version.java b/common/src/main/java/org/openecomp/mso/client/grm/beans/Version.java deleted file mode 100644 index 1d4d959f02..0000000000 --- a/common/src/main/java/org/openecomp/mso/client/grm/beans/Version.java +++ /dev/null @@ -1,69 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * ONAP - SO - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.mso.client.grm.beans; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; - -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonPropertyOrder({ "major", "minor", "patch" }) -public class Version { - - @JsonProperty("major") - private Integer major; - @JsonProperty("minor") - private Integer minor; - @JsonProperty("patch") - private String patch; - - @JsonProperty("major") - public Integer getMajor() { - return major; - } - - @JsonProperty("major") - public void setMajor(Integer major) { - this.major = major; - } - - @JsonProperty("minor") - public Integer getMinor() { - return minor; - } - - @JsonProperty("minor") - public void setMinor(Integer minor) { - this.minor = minor; - } - - @JsonProperty("patch") - public String getPatch() { - return patch; - } - - @JsonProperty("patch") - public void setPatch(String patch) { - this.patch = patch; - } -}
\ No newline at end of file diff --git a/common/src/main/java/org/openecomp/mso/client/grm/beans/VersionLookup.java b/common/src/main/java/org/openecomp/mso/client/grm/beans/VersionLookup.java deleted file mode 100644 index b9d5a63450..0000000000 --- a/common/src/main/java/org/openecomp/mso/client/grm/beans/VersionLookup.java +++ /dev/null @@ -1,49 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * ONAP - SO - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.mso.client.grm.beans; - -import java.io.Serializable; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; - -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonPropertyOrder({ "major" }) -public class VersionLookup implements Serializable { - - private static final long serialVersionUID = 3802602253627725770L; - - @JsonProperty("major") - private Integer major; - - @JsonProperty("major") - public Integer getMajor() { - return major; - } - - @JsonProperty("major") - public void setMajor(Integer major) { - this.major = major; - } -}
\ No newline at end of file diff --git a/common/src/main/java/org/openecomp/mso/client/grm/exceptions/GRMClientCallFailed.java b/common/src/main/java/org/openecomp/mso/client/grm/exceptions/GRMClientCallFailed.java deleted file mode 100644 index 60de57286d..0000000000 --- a/common/src/main/java/org/openecomp/mso/client/grm/exceptions/GRMClientCallFailed.java +++ /dev/null @@ -1,32 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * ONAP - SO - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.mso.client.grm.exceptions; - -public class GRMClientCallFailed extends Exception { - - private static final long serialVersionUID = -8714110346844078779L; - - public GRMClientCallFailed(String message, Throwable cause) { - super(message, cause); - } - - -} |