From 031d49919a7b7dfd53b760619f87e79a57419ba9 Mon Sep 17 00:00:00 2001 From: xudan16 Date: Thu, 18 Aug 2022 10:08:59 +0800 Subject: Remove some models and enums Signed-off-by: xudan16 Issue-ID: USECASEUI-710 Change-Id: I71eeccd3b1213669dad0d0d5825e662140ad6c0e --- .../bean/enums/ContextParentType.java | 37 ------------------ .../intentanalysis/bean/enums/ContextType.java | 35 ----------------- .../intentanalysis/bean/enums/ExpectationType.java | 35 ----------------- .../bean/enums/FulfilmentStatus.java | 35 ----------------- .../bean/enums/NotFulfilledState.java | 39 ------------------- .../intentanalysis/bean/enums/ObjectType.java | 35 ----------------- .../intentanalysis/bean/models/Context.java | 34 ----------------- .../intentanalysis/bean/models/Expectation.java | 44 ---------------------- .../bean/models/ExpectationObject.java | 34 ----------------- .../bean/models/ExpectationTarget.java | 37 ------------------ .../intentanalysis/bean/models/FulfilmentInfo.java | 33 ---------------- .../intentanalysis/bean/models/Intent.java | 37 ------------------ .../intentanalysis/bean/models/State.java | 32 ---------------- 13 files changed, 467 deletions(-) delete mode 100644 intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/enums/ContextParentType.java delete mode 100644 intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/enums/ContextType.java delete mode 100644 intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/enums/ExpectationType.java delete mode 100644 intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/enums/FulfilmentStatus.java delete mode 100644 intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/enums/NotFulfilledState.java delete mode 100644 intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/enums/ObjectType.java delete mode 100644 intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/models/Context.java delete mode 100644 intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/models/Expectation.java delete mode 100644 intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/models/ExpectationObject.java delete mode 100644 intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/models/ExpectationTarget.java delete mode 100644 intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/models/FulfilmentInfo.java delete mode 100644 intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/models/Intent.java delete mode 100644 intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/models/State.java (limited to 'intentanalysis') diff --git a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/enums/ContextParentType.java b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/enums/ContextParentType.java deleted file mode 100644 index 354f14b..0000000 --- a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/enums/ContextParentType.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright 2022 Huawei Technologies Co., Ltd. - * - * 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. - */ - -package org.onap.usecaseui.intentanalysis.bean.enums; - -import lombok.Getter; -import lombok.Setter; - -@Getter -public enum ContextParentType { - INTENT(0, "intent"), - EXPECTATION(1, "expectation"), - EXPECTATION_OBJECT(2, "expectation_object"), - EXPECTATION_TARGET(3, "expectation_target"); - - private int index; - - private String desc; - - ContextParentType(int index, String desc) { - this.index = index; - this.desc = desc; - } -} diff --git a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/enums/ContextType.java b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/enums/ContextType.java deleted file mode 100644 index 8b7b60c..0000000 --- a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/enums/ContextType.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright 2022 Huawei Technologies Co., Ltd. - * - * 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. - */ - -package org.onap.usecaseui.intentanalysis.bean.enums; - -import lombok.Getter; -import lombok.Setter; - -@Getter -public enum ContextType { - CONTEXTTYPE1(0, "contextType1"), - CONTEXTTYPE2(1, "contextType2"); - - private int index; - - private String desc; - - ContextType(int index, String desc) { - this.index = index; - this.desc = desc; - } -} diff --git a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/enums/ExpectationType.java b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/enums/ExpectationType.java deleted file mode 100644 index b18ce21..0000000 --- a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/enums/ExpectationType.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright 2022 Huawei Technologies Co., Ltd. - * - * 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. - */ - -package org.onap.usecaseui.intentanalysis.bean.enums; - -import lombok.Getter; -import lombok.Setter; - -@Getter -public enum ExpectationType { - EXPECTATION1(0, "expectationType1"), - EXPECTATION2(1, "expectationType2"); - - private int index; - - private String desc; - - ExpectationType(int index, String desc) { - this.index = index; - this.desc = desc; - } -} diff --git a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/enums/FulfilmentStatus.java b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/enums/FulfilmentStatus.java deleted file mode 100644 index a5fdeb3..0000000 --- a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/enums/FulfilmentStatus.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright 2022 Huawei Technologies Co., Ltd. - * - * 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. - */ - -package org.onap.usecaseui.intentanalysis.bean.enums; - -import lombok.Getter; -import lombok.Setter; - -@Getter -public enum FulfilmentStatus { - FULFILLED(0, "fulfilled"), - NOT_FULFILLED(1, "not_fulfilled"); - - private int index; - - private String desc; - - FulfilmentStatus(int index, String desc) { - this.index = index; - this.desc = desc; - } -} diff --git a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/enums/NotFulfilledState.java b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/enums/NotFulfilledState.java deleted file mode 100644 index 6153497..0000000 --- a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/enums/NotFulfilledState.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2022 Huawei Technologies Co., Ltd. - * - * 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. - */ - -package org.onap.usecaseui.intentanalysis.bean.enums; - -import lombok.Getter; -import lombok.Setter; - -@Getter -public enum NotFulfilledState { - ACKNOWLEDGED(0, "acknowledge"), - COMPLIANT(1, "compliant"), - DEGRADED(2, "degraded"), - SUSPENDED(3, "suspended"), - TERMINATED(4, "terminated"), - FULFILMENTFAILED(5, "fulfilmentfailed"); - - private int index; - - private String desc; - - NotFulfilledState(int index, String desc) { - this.index = index; - this.desc = desc; - } -} diff --git a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/enums/ObjectType.java b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/enums/ObjectType.java deleted file mode 100644 index 8c659aa..0000000 --- a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/enums/ObjectType.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright 2022 Huawei Technologies Co., Ltd. - * - * 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. - */ - -package org.onap.usecaseui.intentanalysis.bean.enums; - -import lombok.Getter; -import lombok.Setter; - -@Getter -public enum ObjectType { - OBJECT1(0, "objectType1"), - OBJECT2(1, "objectType2"); - - private int index; - - private String desc; - - ObjectType(int index, String desc) { - this.index = index; - this.desc = desc; - } -} diff --git a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/models/Context.java b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/models/Context.java deleted file mode 100644 index 539c239..0000000 --- a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/models/Context.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright 2022 Huawei Technologies Co., Ltd. - * - * 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. - */ - -package org.onap.usecaseui.intentanalysis.bean.models; - -import lombok.Data; -import org.onap.usecaseui.intentanalysis.bean.enums.ContextType; - -@Data - -public class Context { - - private String contextId; - - private String contextName; - - private ContextType contextType; - - private String contextCondition; - -} diff --git a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/models/Expectation.java b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/models/Expectation.java deleted file mode 100644 index 8107186..0000000 --- a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/models/Expectation.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 Huawei Technologies Co., Ltd. - * - * 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. - */ - -package org.onap.usecaseui.intentanalysis.bean.models; - - -import java.util.List; -import lombok.Data; -import org.onap.usecaseui.intentanalysis.bean.enums.ExpectationType; -import org.onap.usecaseui.intentanalysis.bean.models.ExpectationObject; -import org.onap.usecaseui.intentanalysis.bean.models.ExpectationTarget; - - -@Data - -public class Expectation { - - private String expectationId; - - private String expectationName; - - private ExpectationType expectationType; - - private ExpectationObject expectationObject; - - private List expectationTargets; - - private List expectationContexts; - - private FulfilmentInfo expectationFulfilmentInfo; -} diff --git a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/models/ExpectationObject.java b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/models/ExpectationObject.java deleted file mode 100644 index 8cb9bb2..0000000 --- a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/models/ExpectationObject.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright 2022 Huawei Technologies Co., Ltd. - * - * 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. - */ - -package org.onap.usecaseui.intentanalysis.bean.models; - - -import java.util.List; -import lombok.Data; -import org.onap.usecaseui.intentanalysis.bean.enums.ObjectType; - - -@Data - -public class ExpectationObject { - - private ObjectType objectType; - - private String objectInstance; - - private List objectContexts; -} diff --git a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/models/ExpectationTarget.java b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/models/ExpectationTarget.java deleted file mode 100644 index 09cb994..0000000 --- a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/models/ExpectationTarget.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright 2022 Huawei Technologies Co., Ltd. - * - * 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. - */ - -package org.onap.usecaseui.intentanalysis.bean.models; - - -import java.util.List; -import lombok.Data; - - -@Data - -public class ExpectationTarget { - - private String targetId; - - private String targetName; - - private String targetCondition; - - private List targetContexts; - - private FulfilmentInfo targetFulfilmentInfo; -} diff --git a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/models/FulfilmentInfo.java b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/models/FulfilmentInfo.java deleted file mode 100644 index a03b828..0000000 --- a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/models/FulfilmentInfo.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright 2022 Huawei Technologies Co., Ltd. - * - * 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. - */ - -package org.onap.usecaseui.intentanalysis.bean.models; - -import lombok.Data; -import org.onap.usecaseui.intentanalysis.bean.enums.FulfilmentStatus; -import org.onap.usecaseui.intentanalysis.bean.enums.NotFulfilledState; - -@Data - -public class FulfilmentInfo { - - private FulfilmentStatus fulfilmentStatus; - - private NotFulfilledState notFulfilledState; - - private String notFulfilledReason; - -} diff --git a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/models/Intent.java b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/models/Intent.java deleted file mode 100644 index 536695c..0000000 --- a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/models/Intent.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright 2022 Huawei Technologies Co., Ltd. - * - * 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. - */ - -package org.onap.usecaseui.intentanalysis.bean.models; - - -import java.util.List; -import lombok.Data; - - -@Data - -public class Intent { - private String intentId; - - private String intentName; - - private List intentExpectations; - - private List intentContexts; - - private FulfilmentInfo intentFulfilmentInfo; - -} diff --git a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/models/State.java b/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/models/State.java deleted file mode 100644 index fba8cf4..0000000 --- a/intentanalysis/src/main/java/org/onap/usecaseui/intentanalysis/bean/models/State.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright 2022 Huawei Technologies Co., Ltd. - * - * 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. - */ - -package org.onap.usecaseui.intentanalysis.bean.models; - -import lombok.Data; - -@Data -public class State { - - private String stateId; - - private String stateName; - - private String condition; - - private Boolean isSatisfied; - -} -- cgit 1.2.3-korg