diff options
15 files changed, 1 insertions, 58 deletions
diff --git a/server/src/main/java/org/onap/usecaseui/server/controller/lcm/OrchestratorController.java b/server/src/main/java/org/onap/usecaseui/server/controller/lcm/OrchestratorController.java index 46673ee6..2d0eecc7 100644 --- a/server/src/main/java/org/onap/usecaseui/server/controller/lcm/OrchestratorController.java +++ b/server/src/main/java/org/onap/usecaseui/server/controller/lcm/OrchestratorController.java @@ -19,7 +19,6 @@ import org.onap.usecaseui.server.service.lcm.OrchestratorService; import org.onap.usecaseui.server.service.lcm.domain.aai.bean.AAIEsrNfvo; import org.springframework.context.annotation.EnableAspectJAutoProxy; import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.ResponseBody; diff --git a/server/src/main/java/org/onap/usecaseui/server/controller/lcm/ServiceInstanceController.java b/server/src/main/java/org/onap/usecaseui/server/controller/lcm/ServiceInstanceController.java index 4f280417..1f6ee7e3 100644 --- a/server/src/main/java/org/onap/usecaseui/server/controller/lcm/ServiceInstanceController.java +++ b/server/src/main/java/org/onap/usecaseui/server/controller/lcm/ServiceInstanceController.java @@ -22,12 +22,8 @@ import java.util.Map; import javax.annotation.Resource; import javax.servlet.http.HttpServletRequest; -import javax.websocket.server.PathParam; - -import org.onap.usecaseui.server.bean.ServiceBean; import org.onap.usecaseui.server.service.lcm.PackageDistributionService; import org.onap.usecaseui.server.service.lcm.ServiceInstanceService; -import org.onap.usecaseui.server.service.lcm.ServiceLcmService; import org.onap.usecaseui.server.util.UuiCommonUtil; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -38,7 +34,6 @@ import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.ResponseBody; -import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import com.fasterxml.jackson.core.JsonProcessingException; diff --git a/server/src/main/java/org/onap/usecaseui/server/service/AlarmsInformationService.java b/server/src/main/java/org/onap/usecaseui/server/service/AlarmsInformationService.java index 11f4d010..61784d26 100644 --- a/server/src/main/java/org/onap/usecaseui/server/service/AlarmsInformationService.java +++ b/server/src/main/java/org/onap/usecaseui/server/service/AlarmsInformationService.java @@ -16,12 +16,8 @@ package org.onap.usecaseui.server.service; import java.util.List; -import java.util.Map; - -import org.onap.usecaseui.server.bean.AlarmsHeader; import org.onap.usecaseui.server.bean.AlarmsInformation; import org.onap.usecaseui.server.bean.maxAndMinTimeBean; -import org.onap.usecaseui.server.util.Page; public interface AlarmsInformationService { diff --git a/server/src/main/java/org/onap/usecaseui/server/service/PerformanceInformationService.java b/server/src/main/java/org/onap/usecaseui/server/service/PerformanceInformationService.java index f6a8d1d9..365bb680 100644 --- a/server/src/main/java/org/onap/usecaseui/server/service/PerformanceInformationService.java +++ b/server/src/main/java/org/onap/usecaseui/server/service/PerformanceInformationService.java @@ -17,10 +17,7 @@ package org.onap.usecaseui.server.service; import java.util.Date; import java.util.List; - import org.onap.usecaseui.server.bean.PerformanceInformation; -import org.onap.usecaseui.server.util.Page; - public interface PerformanceInformationService { diff --git a/server/src/main/java/org/onap/usecaseui/server/service/csmf/impl/SlicingServiceImpl.java b/server/src/main/java/org/onap/usecaseui/server/service/csmf/impl/SlicingServiceImpl.java index 0e215b5c..2f0cc8d8 100644 --- a/server/src/main/java/org/onap/usecaseui/server/service/csmf/impl/SlicingServiceImpl.java +++ b/server/src/main/java/org/onap/usecaseui/server/service/csmf/impl/SlicingServiceImpl.java @@ -27,15 +27,12 @@ import java.io.InputStream; import java.lang.reflect.Type; import java.text.ParseException; import java.util.ArrayList; -import java.util.HashMap; import java.util.List; -import java.util.Map; import java.util.Properties; import java.util.stream.Collectors; import javax.annotation.Resource; import okhttp3.MediaType; import okhttp3.RequestBody; -import okhttp3.ResponseBody; import org.onap.usecaseui.server.bean.ServiceInstanceOperations; import org.onap.usecaseui.server.bean.csmf.CreateResponse; import org.onap.usecaseui.server.bean.csmf.CreationParameters; @@ -49,23 +46,16 @@ import org.onap.usecaseui.server.bean.csmf.SlicingOrder; import org.onap.usecaseui.server.bean.nsmf.common.PagedResult; import org.onap.usecaseui.server.bean.nsmf.common.ResultHeader; import org.onap.usecaseui.server.bean.nsmf.common.ServiceResult; -import org.onap.usecaseui.server.bean.nsmf.resource.SlicingBusinessInfo; -import org.onap.usecaseui.server.bean.nsmf.resource.SlicingBusinessList; import org.onap.usecaseui.server.constant.CommonConstant; import org.onap.usecaseui.server.constant.csmf.CsmfParamConstant; import org.onap.usecaseui.server.constant.nsmf.NsmfCodeConstant; import org.onap.usecaseui.server.constant.nsmf.NsmfParamConstant; import org.onap.usecaseui.server.service.csmf.SlicingService; import org.onap.usecaseui.server.service.lcm.ServiceLcmService; -import org.onap.usecaseui.server.service.nsmf.impl.ResourceMonitorServiceImpl; import org.onap.usecaseui.server.service.slicingdomain.aai.AAISliceService; -import org.onap.usecaseui.server.service.slicingdomain.aai.bean.AAIService; import org.onap.usecaseui.server.service.slicingdomain.aai.bean.AAIServiceInstance; -import org.onap.usecaseui.server.service.slicingdomain.aai.bean.AAIServiceRsp; import org.onap.usecaseui.server.service.slicingdomain.so.SOSliceService; -import org.onap.usecaseui.server.service.slicingdomain.so.bean.ActivateService; import org.onap.usecaseui.server.service.slicingdomain.so.bean.SOOperation; -import org.onap.usecaseui.server.util.DateUtils; import org.onap.usecaseui.server.util.RestfulServices; import org.onap.usecaseui.server.util.nsmf.NsmfCommonUtil; import org.slf4j.Logger; diff --git a/server/src/main/java/org/onap/usecaseui/server/service/impl/AlarmsHeaderServiceImpl.java b/server/src/main/java/org/onap/usecaseui/server/service/impl/AlarmsHeaderServiceImpl.java index 0bcba4dd..cb8b1ae3 100755 --- a/server/src/main/java/org/onap/usecaseui/server/service/impl/AlarmsHeaderServiceImpl.java +++ b/server/src/main/java/org/onap/usecaseui/server/service/impl/AlarmsHeaderServiceImpl.java @@ -18,7 +18,6 @@ package org.onap.usecaseui.server.service.impl; import java.sql.Timestamp;
import java.util.ArrayList;
-import java.util.Collection;
import java.util.Collections;
import java.util.List;
@@ -29,7 +28,6 @@ import org.hibernate.Session; import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.onap.usecaseui.server.bean.AlarmsHeader;
-import org.onap.usecaseui.server.bean.AlarmsInformation;
import org.onap.usecaseui.server.bean.SortMaster;
import org.onap.usecaseui.server.service.AlarmsHeaderService;
import org.onap.usecaseui.server.util.Page;
diff --git a/server/src/main/java/org/onap/usecaseui/server/service/impl/AlarmsInformationServiceImpl.java b/server/src/main/java/org/onap/usecaseui/server/service/impl/AlarmsInformationServiceImpl.java index 720d3ca4..b8ba6e41 100755 --- a/server/src/main/java/org/onap/usecaseui/server/service/impl/AlarmsInformationServiceImpl.java +++ b/server/src/main/java/org/onap/usecaseui/server/service/impl/AlarmsInformationServiceImpl.java @@ -26,7 +26,6 @@ import org.hibernate.Transaction; import org.onap.usecaseui.server.bean.AlarmsInformation;
import org.onap.usecaseui.server.bean.maxAndMinTimeBean;
import org.onap.usecaseui.server.service.AlarmsInformationService;
-import org.onap.usecaseui.server.util.Page;
import org.onap.usecaseui.server.util.UuiCommonUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
diff --git a/server/src/main/java/org/onap/usecaseui/server/service/impl/PerformanceInformationServiceImpl.java b/server/src/main/java/org/onap/usecaseui/server/service/impl/PerformanceInformationServiceImpl.java index e2bc3d43..e32cd766 100755 --- a/server/src/main/java/org/onap/usecaseui/server/service/impl/PerformanceInformationServiceImpl.java +++ b/server/src/main/java/org/onap/usecaseui/server/service/impl/PerformanceInformationServiceImpl.java @@ -18,10 +18,8 @@ package org.onap.usecaseui.server.service.impl; import java.util.ArrayList;
import java.util.Date;
-import java.util.HashMap;
-import java.util.Iterator;
import java.util.List;
-import java.util.Map;
+
import javax.transaction.Transactional;
@@ -32,7 +30,6 @@ import org.hibernate.SessionFactory; import org.hibernate.Transaction;
import org.onap.usecaseui.server.bean.PerformanceInformation;
import org.onap.usecaseui.server.service.PerformanceInformationService;
-import org.onap.usecaseui.server.util.Page;
import org.onap.usecaseui.server.util.UuiCommonUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
diff --git a/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/AAIServiceProfiles.java b/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/AAIServiceProfiles.java index 4338f469..5702c141 100644 --- a/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/AAIServiceProfiles.java +++ b/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/AAIServiceProfiles.java @@ -12,10 +12,6 @@ */ package org.onap.usecaseui.server.service.slicingdomain.aai.bean; -import javax.persistence.Column; -import javax.persistence.Id; - -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/RelationshipData.java b/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/RelationshipData.java index 843b2222..b579f42f 100644 --- a/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/RelationshipData.java +++ b/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/RelationshipData.java @@ -12,10 +12,6 @@ */ package org.onap.usecaseui.server.service.slicingdomain.aai.bean; -import java.util.List; - -import com.fasterxml.jackson.annotation.JsonProperty; - public class RelationshipData { private String relationshipKey; diff --git a/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/kpi/KpiSliceService.java b/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/kpi/KpiSliceService.java index e6637f5f..3794dad1 100644 --- a/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/kpi/KpiSliceService.java +++ b/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/kpi/KpiSliceService.java @@ -22,7 +22,6 @@ import org.onap.usecaseui.server.service.slicingdomain.kpi.bean.KpiUserNumber; import okhttp3.RequestBody; import retrofit2.Call; import retrofit2.http.Body; -import retrofit2.http.GET; import retrofit2.http.Headers; import retrofit2.http.POST; diff --git a/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/so/SOSliceService.java b/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/so/SOSliceService.java index 4293c9a9..91e4b2d5 100644 --- a/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/so/SOSliceService.java +++ b/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/so/SOSliceService.java @@ -26,7 +26,6 @@ import okhttp3.RequestBody; import okhttp3.ResponseBody; import retrofit2.Call; import retrofit2.http.Body; -import retrofit2.http.DELETE; import retrofit2.http.GET; import retrofit2.http.HTTP; import retrofit2.http.Headers; diff --git a/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/so/bean/SOOperation.java b/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/so/bean/SOOperation.java index 58b04fdf..68a7a410 100644 --- a/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/so/bean/SOOperation.java +++ b/server/src/main/java/org/onap/usecaseui/server/service/slicingdomain/so/bean/SOOperation.java @@ -12,8 +12,6 @@ */ package org.onap.usecaseui.server.service.slicingdomain.so.bean; -import java.util.Date; -import java.util.List; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; diff --git a/server/src/main/java/org/onap/usecaseui/server/util/RestfulServices.java b/server/src/main/java/org/onap/usecaseui/server/util/RestfulServices.java index e2fe11a2..717fbbeb 100644 --- a/server/src/main/java/org/onap/usecaseui/server/util/RestfulServices.java +++ b/server/src/main/java/org/onap/usecaseui/server/util/RestfulServices.java @@ -17,32 +17,17 @@ package org.onap.usecaseui.server.util; import java.io.BufferedReader; import java.io.IOException; -import java.io.InputStreamReader; -import java.security.KeyManagementException; -import java.security.NoSuchAlgorithmException; import java.security.SecureRandom; -import java.security.cert.CertificateException; -import java.security.cert.X509Certificate; import java.util.concurrent.TimeUnit; - -import javax.naming.Context; import javax.net.ssl.HostnameVerifier; -import javax.net.ssl.HttpsURLConnection; import javax.net.ssl.SSLContext; import javax.net.ssl.SSLSession; import javax.net.ssl.SSLSocketFactory; import javax.net.ssl.TrustManager; -import javax.net.ssl.X509TrustManager; -import javax.servlet.ServletInputStream; import javax.servlet.http.HttpServletRequest; - -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import org.glassfish.jersey.client.ClientConfig; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import com.alibaba.dubbo.common.utils.IOUtils; import okhttp3.MediaType; import okhttp3.OkHttpClient; diff --git a/server/src/main/java/org/onap/usecaseui/server/util/nsmf/NsmfCommonUtil.java b/server/src/main/java/org/onap/usecaseui/server/util/nsmf/NsmfCommonUtil.java index b7669992..a7f83a47 100644 --- a/server/src/main/java/org/onap/usecaseui/server/util/nsmf/NsmfCommonUtil.java +++ b/server/src/main/java/org/onap/usecaseui/server/util/nsmf/NsmfCommonUtil.java @@ -17,7 +17,6 @@ package org.onap.usecaseui.server.util.nsmf; import java.text.ParseException; import java.text.SimpleDateFormat; -import java.util.Calendar; import java.util.Collections; import java.util.Date; import java.util.List; |