diff --git a/.factorypath b/.factorypath
new file mode 100644
index 0000000000000000000000000000000000000000..64aa78395684cdf667988ff5f0a9d23a40f8ff19
--- /dev/null
+++ b/.factorypath
@@ -0,0 +1,4 @@
+
+
+
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000000000000000000000000000000000000..59419d57edec3ba08708209cd4b803363221ccfd
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,6 @@
+/target/
+/.apt_generated/
+/.apt_generated_tests/
+/.project
+/.classpath
+/.settings
diff --git a/Dockerfile.tmfapi b/Dockerfile.tmfapi
new file mode 100644
index 0000000000000000000000000000000000000000..7fbc6c2234ecb00b1d02c79d2d6e45baeed49756
--- /dev/null
+++ b/Dockerfile.tmfapi
@@ -0,0 +1,7 @@
+FROM ibm-semeru-runtimes:open-17.0.7_7-jdk
+MAINTAINER openslice.io
+RUN mkdir /opt/shareclasses
+RUN mkdir -p /opt/openslice/lib/
+COPY target/org.etsi.osl.tmf.api-1.2.0-SNAPSHOT-exec.jar /opt/openslice/lib/
+CMD ["java", "-Xshareclasses:cacheDir=/opt/shareclasses", "-jar", "/opt/openslice/lib/org.etsi.osl.tmf.api-1.2.0-SNAPSHOT-exec.jar"]
+EXPOSE 13082
\ No newline at end of file
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..261eeb9e9f8b2b4b0d119366dda99c6fd7d35c64
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,201 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ 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.
diff --git a/README.md b/README.md
index 8f78f76393956fe7b0812491ce1d71aab3e62cdd..0e1a978178b1e4d625912a53fac5106b048e3f53 100644
--- a/README.md
+++ b/README.md
@@ -1,92 +1,3 @@
# org.etsi.osl.tmf.api
-
-
-## Getting started
-
-To make it easy for you to get started with GitLab, here's a list of recommended next steps.
-
-Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
-
-## Add your files
-
-- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
-- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
-
-```
-cd existing_repo
-git remote add origin https://labs.etsi.org/rep/osl/code/org.etsi.osl.tmf.api.git
-git branch -M main
-git push -uf origin main
-```
-
-## Integrate with your tools
-
-- [ ] [Set up project integrations](https://labs.etsi.org/rep/osl/code/org.etsi.osl.tmf.api/-/settings/integrations)
-
-## Collaborate with your team
-
-- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
-- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
-- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
-- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
-- [ ] [Automatically merge when pipeline succeeds](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
-
-## Test and Deploy
-
-Use the built-in continuous integration in GitLab.
-
-- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
-- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing(SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
-- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
-- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
-- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
-
-***
-
-# Editing this README
-
-When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thank you to [makeareadme.com](https://www.makeareadme.com/) for this template.
-
-## Suggestions for a good README
-Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
-
-## Name
-Choose a self-explaining name for your project.
-
-## Description
-Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
-
-## Badges
-On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
-
-## Visuals
-Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
-
-## Installation
-Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
-
-## Usage
-Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
-
-## Support
-Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
-
-## Roadmap
-If you have ideas for releases in the future, it is a good idea to list them in the README.
-
-## Contributing
-State if you are open to contributions and what your requirements are for accepting them.
-
-For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
-
-You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
-
-## Authors and acknowledgment
-Show your appreciation to those who have contributed to the project.
-
-## License
-For open source projects, say how it is licensed.
-
-## Project status
-If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
+TMF OpenAPIs implementation.
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000000000000000000000000000000000000..044cfc01e5a3c0ad4f1367dcf7fc7b76240f2b8b
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,398 @@
+
+ 4.0.0
+
+ org.etsi.osl
+ org.etsi.osl.main
+ 1.2.0-SNAPSHOT
+ ../org.etsi.osl.main
+
+
+
+ org.etsi.osl.tmf.api
+ org.etsi.osl.tmf.api
+
+
+
+ UTF-8
+ UTF-8
+ ${spring-boot-version}
+ 1.5.3.Final
+ ${springdoc-version}
+ ${springdoc-security-version}
+ ${springdoc-openapiui-version}
+ jdt_apt
+ ${mysql.connector.version}
+ 1.18.28
+
+
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-dependencies
+ ${spring.boot-version}
+ pom
+ import
+
+
+
+ org.apache.camel.springboot
+ camel-spring-boot-dependencies
+ ${camel.version}
+ pom
+ import
+
+
+
+ com.google.guava
+ guava
+ 32.0.0-jre
+
+
+ org.keycloak.bom
+ keycloak-adapter-bom
+ ${keycloak.version}
+ pom
+ import
+
+
+
+
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+ org.springframework.boot
+ spring-boot-starter-data-jpa
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-oauth2-resource-server
+
+
+
+ com.jayway.jsonpath
+ json-path
+
+
+
+
+
+ org.projectlombok
+ lombok
+ provided
+ ${lombok-version}
+
+
+
+ org.keycloak
+ keycloak-spring-boot-starter
+
+
+ org.keycloak
+ keycloak-spring-security-adapter
+
+
+
+ org.keycloak
+ keycloak-admin-client
+ ${keycloak.version}
+
+
+
+ mysql
+ mysql-connector-java
+ runtime
+ ${mysql-connector.version}
+
+
+ com.fasterxml.jackson.core
+ jackson-databind
+
+
+ com.fasterxml.jackson.datatype
+ jackson-datatype-hibernate5-jakarta
+
+
+ com.fasterxml.jackson.datatype
+ jackson-datatype-jsr310
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-activemq
+
+
+ org.apache.activemq
+ activemq-amqp
+ test
+
+
+ org.apache.qpid
+ proton-j
+
+
+
+
+ org.messaginghub
+ pooled-jms
+
+
+
+
+ org.apache.camel.springboot
+ camel-spring-boot-starter
+
+
+ org.apache.activemq
+ activemq-pool
+
+
+ org.apache.camel
+ camel-activemq
+
+
+ org.apache.activemq
+ activemq-broker
+
+
+
+
+ org.apache.camel.springboot
+ camel-service-starter
+
+
+
+ org.apache.camel.springboot
+ camel-http-starter
+
+
+ org.apache.camel
+ camel-jackson
+
+
+ org.apache.camel
+ camel-stream
+
+
+
+
+ org.etsi.osl
+ org.etsi.osl.model
+ ${project.version}
+
+
+ org.etsi.osl
+ org.etsi.osl.centrallog.client
+ ${project.version}
+
+
+
+
+ org.springdoc
+ springdoc-openapi-starter-webmvc-ui
+ ${springdoc.version}
+
+
+ org.springdoc
+ springdoc-openapi-ui
+ ${springdoc.openapiui.version}
+
+
+ org.springdoc
+ springdoc-openapi-security
+ ${springdoc.security.version}
+
+
+
+ org.mapstruct
+ mapstruct
+ ${mapstruct.version}
+
+
+ org.mapstruct
+ mapstruct-processor
+ ${mapstruct.version}
+
+
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-test
+ test
+
+
+ org.springframework.security
+ spring-security-test
+ test
+
+
+ org.junit.jupiter
+ junit-jupiter-engine
+ test
+
+
+ org.junit.platform
+ junit-platform-commons
+ test
+
+
+ org.junit.platform
+ junit-platform-runner
+ test
+
+
+ com.h2database
+ h2
+ test
+
+
+ org.apache.activemq
+ activemq-broker
+ test
+
+
+ javax.jms
+ javax.jms-api
+ 2.0.1
+ test
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+
+
+ ${java.version}
+
+ -parameters
+
+
+
+ org.mapstruct
+ mapstruct-processor
+ ${mapstruct.version}
+
+
+ org.projectlombok
+ lombok
+ ${lombok-version}
+
+
+
+
+
+ org.codehaus.mojo
+ build-helper-maven-plugin
+ ${build-helper-maven-plugin.version}
+
+
+ add-generated-source
+ generate-sources
+
+ add-source
+
+
+
+
+
+
+
+
+
+
+
+ org.codehaus.mojo
+ license-maven-plugin
+ ${maven-license-plugin.version}
+
+ false
+ ========================LICENSE_START=================================
+ =========================LICENSE_END==================================
+ *.json
+
+
+
+ generate-license-headers
+
+ update-file-header
+
+ process-sources
+
+ ${license.licenseName}
+
+
+
+
+ download-licenses
+
+ download-licenses
+
+
+
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+ ${spring-boot-version}
+
+
+
+ repackage
+
+
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+ ${spring-boot-version}
+
+ exec
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/java/org/etsi/osl/domain/model/DomainModelDefinition.java b/src/main/java/org/etsi/osl/domain/model/DomainModelDefinition.java
new file mode 100644
index 0000000000000000000000000000000000000000..7e5f6d6ec43b0f8efd8d84e353fc819cecd6d1b0
--- /dev/null
+++ b/src/main/java/org/etsi/osl/domain/model/DomainModelDefinition.java
@@ -0,0 +1,25 @@
+package org.etsi.osl.domain.model;
+
+import lombok.AllArgsConstructor;
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * @author ctranoris
+ */
+
+@Getter
+@Setter
+@AllArgsConstructor
+public class DomainModelDefinition {
+
+ //instance variables
+ protected String uuid;
+ protected String name;
+ protected String version;
+ protected String description;
+ protected String category;
+
+
+
+}
diff --git a/src/main/java/org/etsi/osl/domain/model/ITMFRCM634_ModelTransformer.java b/src/main/java/org/etsi/osl/domain/model/ITMFRCM634_ModelTransformer.java
new file mode 100644
index 0000000000000000000000000000000000000000..3eb1340ca6f4dec0dd0ee4dac7ead9d1f8d293c9
--- /dev/null
+++ b/src/main/java/org/etsi/osl/domain/model/ITMFRCM634_ModelTransformer.java
@@ -0,0 +1,32 @@
+package org.etsi.osl.domain.model;
+
+import org.etsi.osl.tmf.rcm634.model.ResourceSpecification;
+import org.etsi.osl.tmf.rcm634.model.ResourceSpecificationCreate;
+import org.etsi.osl.tmf.rcm634.model.ResourceSpecificationUpdate;
+
+/**
+ * @author ctranoris
+ *
+ * Transforms the PoJo class to/from the equivalent TMF model
+ */
+public interface ITMFRCM634_ModelTransformer {
+
+
+ ResourceSpecificationCreate toRSpecCreate_InitRepo();
+
+
+ default ResourceSpecificationCreate toRSpecCreate() {
+ return null;
+ }
+
+ default ResourceSpecificationUpdate toRSpecUpdate() {
+ return null;
+ }
+
+ /**
+ * loads the class fields from this model
+ * @param rSpec
+ */
+ DomainModelDefinition fromRSpec( ResourceSpecification rSpec ) ;
+
+}
diff --git a/src/main/java/org/etsi/osl/domain/model/ITMFRI639_ModelTransformer.java b/src/main/java/org/etsi/osl/domain/model/ITMFRI639_ModelTransformer.java
new file mode 100644
index 0000000000000000000000000000000000000000..0ebcd095184d0469f0e28763bf14608949806d26
--- /dev/null
+++ b/src/main/java/org/etsi/osl/domain/model/ITMFRI639_ModelTransformer.java
@@ -0,0 +1,34 @@
+package org.etsi.osl.domain.model;
+
+import org.etsi.osl.tmf.ri639.model.Resource;
+import org.etsi.osl.tmf.ri639.model.ResourceCreate;
+import org.etsi.osl.tmf.ri639.model.ResourceUpdate;
+
+/**
+ * @author ctranoris
+ *
+ * Transforms the PoJo class to/from the equivalent TMF model
+ */
+public interface ITMFRI639_ModelTransformer {
+
+
+
+
+ default ResourceCreate toResourceCreate() throws Exception {
+ return null;
+ };
+
+ default ResourceUpdate toResourceUpdate() throws Exception {
+ return null;
+ };
+
+ /**
+ * loads the class fields from this model
+ * @param rSpec
+ */
+ default void fromResource( Resource rSpec ) {
+
+ }
+
+
+}
diff --git a/src/main/java/org/etsi/osl/domain/model/kubernetes/KubernetesCRDProperty.java b/src/main/java/org/etsi/osl/domain/model/kubernetes/KubernetesCRDProperty.java
new file mode 100644
index 0000000000000000000000000000000000000000..f67d484e478e0892441a40cbd97a286e01d72c91
--- /dev/null
+++ b/src/main/java/org/etsi/osl/domain/model/kubernetes/KubernetesCRDProperty.java
@@ -0,0 +1,35 @@
+package org.etsi.osl.domain.model.kubernetes;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import lombok.Builder;
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * @author ctranoris
+ */
+@Getter
+@Setter
+@Builder
+public class KubernetesCRDProperty {
+
+ String name;
+ String valueType;
+ String defaultValue;
+ String description;
+ Map properties;
+
+ public Map getProperties() {
+ if ( properties == null) {
+ this.properties = new HashMap<>();
+ }
+ return properties;
+ }
+
+
+
+
+
+}
diff --git a/src/main/java/org/etsi/osl/domain/model/kubernetes/KubernetesCRDV1.java b/src/main/java/org/etsi/osl/domain/model/kubernetes/KubernetesCRDV1.java
new file mode 100644
index 0000000000000000000000000000000000000000..07c17ac6462ea1f52f07414e216532d9eedc2da2
--- /dev/null
+++ b/src/main/java/org/etsi/osl/domain/model/kubernetes/KubernetesCRDV1.java
@@ -0,0 +1,244 @@
+package org.etsi.osl.domain.model.kubernetes;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.etsi.osl.domain.model.DomainModelDefinition;
+import org.etsi.osl.domain.model.ITMFRCM634_ModelTransformer;
+import org.etsi.osl.domain.model.ITMFRI639_ModelTransformer;
+import org.etsi.osl.tmf.common.model.ELifecycle;
+import org.etsi.osl.tmf.common.model.EValueType;
+import org.etsi.osl.tmf.rcm634.model.ResourceSpecification;
+import org.etsi.osl.tmf.rcm634.model.ResourceSpecificationCreate;
+import org.etsi.osl.tmf.rcm634.model.ResourceSpecificationRef;
+import org.etsi.osl.tmf.rcm634.model.ResourceSpecificationUpdate;
+import org.etsi.osl.tmf.ri639.model.ResourceCreate;
+import org.etsi.osl.tmf.ri639.model.ResourceOperationalStateType;
+import org.etsi.osl.tmf.ri639.model.ResourceStatusType;
+import org.etsi.osl.tmf.ri639.model.ResourceUpdate;
+import lombok.Builder;
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * @author ctranoris
+ */
+@Getter
+@Setter
+public class KubernetesCRDV1 extends DomainModelDefinition
+ implements ITMFRCM634_ModelTransformer, ITMFRI639_ModelTransformer {
+
+ public static final String OSL_KUBCRD_RSPEC_NAME = "kubernetes-crd.openslice.io";
+ public static final String OSL_KUBCRD_RSPEC_VERSION = "0.0.3";
+ public static final String OSL_KUBCRD_RSPEC_CATEGORY = "KubernetesCRD-apiextensions.k8s.io/v1";
+ public static final String OSL_KUBCRD_RESOURCE_CATEGORY = "KubernetesCRD-apiextensions.k8s.io/v1";
+ public static final String OSL_KUBCRD_RSPEC_TYPE = "LogicalResourceSpecification";
+ public static final String OSL_KUBCRD_RSPEC_DESCRIPTION = "This Specification is used to describe a generic KubernetesCRD";
+
+ private String osl_KUBCRD_RSPEC_UUID = null; //this is assigned by the system through the DB for a specific instance
+
+ private String clusterMasterURL;
+ private String currentContextCluster;
+ private String fullResourceName;
+ private String kind;
+ private String apiGroup;
+ private String UID;
+ private String metadata;
+ private String yaml;
+ private String json;
+ private Map properties;
+ private Map additionalProperties;
+ private String cr_spec;
+ private String statusCheckFieldName;
+ private String statusCheckValueStandby;
+ private String statusCheckValueAlarm;
+ private String statusCheckValueAvailable;
+ private String statusCheckValueReserved;
+ private String statusCheckValueUnknown;
+ private String statusCheckValueSuspended;
+
+
+ @Builder
+ public KubernetesCRDV1(String osl_KUBCRD_RSPEC_UUID, String uuid, String name, String version, String description, String category,
+ String clusterMasterURL, String currentContextCluster, String fullResourceName,
+ String kind, String apiGroup, String uID,
+ String metadata,
+ String yaml,
+ String json) {
+ super(uuid, name, version, description, category);
+ this.osl_KUBCRD_RSPEC_UUID = osl_KUBCRD_RSPEC_UUID;
+ this.clusterMasterURL = clusterMasterURL;
+ this.currentContextCluster = currentContextCluster;
+ this.fullResourceName = fullResourceName;
+ this.kind = kind;
+ this.apiGroup = apiGroup;
+ this.UID = uID;
+ this.metadata = metadata;
+ this.yaml = yaml;
+ this.json = json;
+ this.properties = new HashMap<>();
+ this.additionalProperties = new HashMap<>();
+ }
+
+
+
+ @Override
+ public ResourceSpecificationCreate toRSpecCreate_InitRepo() {
+
+ ResourceSpecificationCreate rsc = this.toRSpecCreate();
+ rsc.setName( OSL_KUBCRD_RSPEC_NAME );
+ rsc.setCategory( OSL_KUBCRD_RSPEC_CATEGORY );
+ rsc.setVersion(OSL_KUBCRD_RSPEC_VERSION);
+ rsc.setDescription( OSL_KUBCRD_RSPEC_DESCRIPTION );
+ rsc.setType( OSL_KUBCRD_RSPEC_TYPE );
+
+
+
+ return rsc;
+ }
+
+ @Override
+ public ResourceSpecificationCreate toRSpecCreate() {
+
+ ResourceSpecificationCreate rsc = new ResourceSpecificationCreate();
+ rsc.setName( this.name );
+ rsc.setCategory( OSL_KUBCRD_RSPEC_CATEGORY );
+ rsc.setVersion( this.version );
+ rsc.setDescription( this.version );
+ rsc.setType( OSL_KUBCRD_RSPEC_TYPE );
+
+ rsc.setLifecycleStatus( ELifecycle.ACTIVE.getValue() );
+ rsc.addResourceSpecificationCharacteristicItemShort("clusterMasterURL", this.clusterMasterURL, EValueType.TEXT.getValue(), "URL of cluster", false);
+ rsc.addResourceSpecificationCharacteristicItemShort("currentContextCluster", this.currentContextCluster, EValueType.TEXT.getValue(), "", false);
+ rsc.addResourceSpecificationCharacteristicItemShort("fullResourceName", this.fullResourceName, EValueType.TEXT.getValue(), "", false);
+ rsc.addResourceSpecificationCharacteristicItemShort("Kind", this.kind, EValueType.TEXT.getValue(), "", false);
+ rsc.addResourceSpecificationCharacteristicItemShort("apiGroup", this.apiGroup, EValueType.TEXT.getValue(), "", false);
+ rsc.addResourceSpecificationCharacteristicItemShort("UID", this.UID, EValueType.TEXT.getValue(), "", false);
+ rsc.addResourceSpecificationCharacteristicItemShort("metadata", this.metadata, EValueType.TEXT.getValue(), "", false);
+ rsc.addResourceSpecificationCharacteristicItemShort("yaml", this.yaml, EValueType.TEXT.getValue(), "", false);
+ rsc.addResourceSpecificationCharacteristicItemShort("json", this.json, EValueType.TEXT.getValue(), "", false);
+ rsc.addResourceSpecificationCharacteristicItemShort( "_CR_SPEC", "", EValueType.TEXT.getValue(), "Used for providing the json Custom Resource description to apply", false);
+ rsc.addResourceSpecificationCharacteristicItemShort( "_CR_CHECK_FIELD", "", EValueType.TEXT.getValue(), "Used for providing the field that need to be checked for the resource status", false);
+ rsc.addResourceSpecificationCharacteristicItemShort( "_CR_CHECKVAL_STANDBY", "", EValueType.TEXT.getValue(), "Used for providing the equivalent value from resource to signal the standby status", false);
+ rsc.addResourceSpecificationCharacteristicItemShort( "_CR_CHECKVAL_ALARM", "", EValueType.TEXT.getValue(), "Used for providing the equivalent value from resource to signal the alarm status", false);
+ rsc.addResourceSpecificationCharacteristicItemShort( "_CR_CHECKVAL_AVAILABLE", "", EValueType.TEXT.getValue(), "Used for providing the equivalent value from resource to signal the available status", false);
+ rsc.addResourceSpecificationCharacteristicItemShort( "_CR_CHECKVAL_RESERVED", "", EValueType.TEXT.getValue(), "Used for providing the equivalent value from resource to signal the reserved status", false);
+ rsc.addResourceSpecificationCharacteristicItemShort( "_CR_CHECKVAL_UNKNOWN", "", EValueType.TEXT.getValue(), "Used for providing the equivalent value from resource to signal the unknown status", false);
+ rsc.addResourceSpecificationCharacteristicItemShort( "_CR_CHECKVAL_SUSPENDED", "", EValueType.TEXT.getValue(), "Used for providing the equivalent value from resource to signal the suspended status", false);
+
+// rsc.addResourceSpecificationCharacteristicItemShort( "properties", "", EValueType.SET.getValue());
+// rsc.addResourceSpecificationCharacteristicItemShort( "additionalProperties", "", EValueType.SET.getValue());
+ if (this.properties != null)
+ this.properties.forEach((kPropName, vProVal) -> {
+
+ EValueType etype;
+ if ( vProVal.getValueType().equalsIgnoreCase("boolean")) {
+ etype = EValueType.BOOLEAN;
+ } else if ( vProVal.getValueType().equalsIgnoreCase("integer")) {
+ etype = EValueType.INTEGER;
+ } else if ( vProVal.getValueType().equalsIgnoreCase("object")) {
+ etype = EValueType.OBJECT;
+ } else
+ etype = EValueType.TEXT;
+
+ rsc.addResourceSpecificationCharacteristicItemShort(kPropName , vProVal.getDefaultValue(), etype.getValue(), vProVal.getDescription(), false);
+
+ });
+
+ if (this.additionalProperties != null ) {
+ this.additionalProperties.forEach((kPropName, vProVal) -> {
+ rsc.addResourceSpecificationCharacteristicItemShort("additionalProperty." + kPropName, vProVal.getDefaultValue(), EValueType.TEXT.getValue(), vProVal.getDescription(), false);
+
+ });
+ }
+
+ return rsc;
+ }
+
+ @Override
+ public ResourceSpecificationUpdate toRSpecUpdate() {
+ return this.toRSpecCreate();
+ }
+
+ @Override
+ public KubernetesCRDV1 fromRSpec(ResourceSpecification rSpec) {
+ this.osl_KUBCRD_RSPEC_UUID = rSpec.getUuid();
+ return this;
+ }
+
+ @Override
+ public ResourceCreate toResourceCreate() {
+
+ if (osl_KUBCRD_RSPEC_UUID == null) {
+ return null;
+ }
+
+ ResourceSpecificationRef rSpecRef = new ResourceSpecificationRef();
+ rSpecRef.setId( osl_KUBCRD_RSPEC_UUID );
+ rSpecRef.setName( OSL_KUBCRD_RSPEC_NAME );
+ rSpecRef.setVersion( OSL_KUBCRD_RSPEC_VERSION );
+
+ ResourceCreate rs = new ResourceCreate();
+ rs.name( this.name )
+ .category( OSL_KUBCRD_RESOURCE_CATEGORY )
+ .description( this.description )
+ .resourceStatus( ResourceStatusType.AVAILABLE )
+ .operationalState( ResourceOperationalStateType.ENABLE )
+ .resourceSpecification( rSpecRef )
+ .resourceVersion( this.version);
+
+ rs.addResourceCharacteristicItemShort("clusterMasterURL", this.clusterMasterURL, EValueType.TEXT.getValue());
+ rs.addResourceCharacteristicItemShort("currentContextCluster", this.currentContextCluster, EValueType.TEXT.getValue());
+ rs.addResourceCharacteristicItemShort("fullResourceName", this.fullResourceName, EValueType.TEXT.getValue());
+ rs.addResourceCharacteristicItemShort("Kind", this.kind, EValueType.TEXT.getValue());
+ rs.addResourceCharacteristicItemShort("apiGroup", this.apiGroup, EValueType.TEXT.getValue());
+ rs.addResourceCharacteristicItemShort("UID", this.UID, EValueType.TEXT.getValue());
+ rs.addResourceCharacteristicItemShort("metadata", this.metadata, EValueType.TEXT.getValue());
+ rs.addResourceCharacteristicItemShort("yaml", this.yaml, EValueType.TEXT.getValue());
+ rs.addResourceCharacteristicItemShort("json", this.json, EValueType.TEXT.getValue());
+
+ rs.addResourceCharacteristicItemShort("_CR_SPEC", this.cr_spec, EValueType.TEXT.getValue());
+ rs.addResourceCharacteristicItemShort("_CR_CHECK_FIELD", this.statusCheckFieldName, EValueType.TEXT.getValue());
+ rs.addResourceCharacteristicItemShort("_CR_CHECKVAL_STANDBY", this.statusCheckValueStandby, EValueType.TEXT.getValue());
+ rs.addResourceCharacteristicItemShort("_CR_CHECKVAL_ALARM", this.statusCheckValueAlarm, EValueType.TEXT.getValue());
+ rs.addResourceCharacteristicItemShort("_CR_CHECKVAL_AVAILABLE", this.statusCheckValueAvailable, EValueType.TEXT.getValue());
+ rs.addResourceCharacteristicItemShort("_CR_CHECKVAL_RESERVED", this.statusCheckValueReserved, EValueType.TEXT.getValue());
+ rs.addResourceCharacteristicItemShort("_CR_CHECKVAL_UNKNOWN", this.statusCheckValueUnknown, EValueType.TEXT.getValue());
+ rs.addResourceCharacteristicItemShort("_CR_CHECKVAL_SUSPENDED", this.statusCheckValueSuspended, EValueType.TEXT.getValue());
+
+
+
+ if (this.properties != null)
+ this.properties.forEach((kPropName, vProVal) -> {
+
+ EValueType etype;
+ if ( vProVal.getValueType().equalsIgnoreCase("boolean")) {
+ etype = EValueType.BOOLEAN;
+ } else if ( vProVal.getValueType().equalsIgnoreCase("integer")) {
+ etype = EValueType.INTEGER;
+ } else if ( vProVal.getValueType().equalsIgnoreCase("object")) {
+ etype = EValueType.OBJECT;
+ } else
+ etype = EValueType.TEXT;
+
+ rs.addResourceCharacteristicItemShort(kPropName , "", etype.getValue());
+
+ });
+
+ if (this.additionalProperties != null ) {
+ this.additionalProperties.forEach((kPropName, vProVal) -> {
+ rs.addResourceCharacteristicItemShort("additionalProperty." + kPropName, "", EValueType.TEXT.getValue());
+
+ });
+ }
+
+
+ return rs;
+ }
+
+ @Override
+ public ResourceUpdate toResourceUpdate() {
+
+ return this.toResourceCreate();
+ }
+
+}
diff --git a/src/main/java/org/etsi/osl/domain/model/kubernetes/KubernetesCRV1.java b/src/main/java/org/etsi/osl/domain/model/kubernetes/KubernetesCRV1.java
new file mode 100644
index 0000000000000000000000000000000000000000..effcda6eb3e1178730cbf666d9b8b2685c1ea773
--- /dev/null
+++ b/src/main/java/org/etsi/osl/domain/model/kubernetes/KubernetesCRV1.java
@@ -0,0 +1,218 @@
+package org.etsi.osl.domain.model.kubernetes;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.etsi.osl.domain.model.DomainModelDefinition;
+import org.etsi.osl.domain.model.ITMFRCM634_ModelTransformer;
+import org.etsi.osl.domain.model.ITMFRI639_ModelTransformer;
+import org.etsi.osl.tmf.common.model.ELifecycle;
+import org.etsi.osl.tmf.common.model.EValueType;
+import org.etsi.osl.tmf.rcm634.model.ResourceSpecification;
+import org.etsi.osl.tmf.rcm634.model.ResourceSpecificationCreate;
+import org.etsi.osl.tmf.rcm634.model.ResourceSpecificationRef;
+import org.etsi.osl.tmf.rcm634.model.ResourceSpecificationUpdate;
+import org.etsi.osl.tmf.ri639.model.ResourceCreate;
+import org.etsi.osl.tmf.ri639.model.ResourceOperationalStateType;
+import org.etsi.osl.tmf.ri639.model.ResourceStatusType;
+import org.etsi.osl.tmf.ri639.model.ResourceUpdate;
+import lombok.Builder;
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * @author ctranoris
+ */
+@Getter
+@Setter
+public class KubernetesCRV1 extends DomainModelDefinition
+ implements ITMFRCM634_ModelTransformer, ITMFRI639_ModelTransformer {
+
+ public static final String OSL_KUBCRV1_RSPEC_NAME = "kubernetes-cr-v1.openslice.io";
+ public static final String OSL_KUBCRV1_RSPEC_VERSION = "0.0.4";
+ public static final String OSL_KUBCRV1_RSPEC_CATEGORY = "KubernetesCRV1-apiextensions.k8s.io/v1";
+ public static final String OSL_KUBCRV1_RSPEC_TYPE = "LogicalResourceSpecification";
+ public static final String OSL_KUBCRV1_RSPEC_DESCRIPTION = "This Specification is used to describe a generic KubernetesCRV1";
+
+ private String osl_KUBCRV1_RSPEC_UUID = null; //this is assigned by the system through the DB for a specific instance
+
+ private String clusterMasterURL;
+ private String currentContextCluster;
+ private String fullResourceName;
+ private String kind;
+ private String apiGroup;
+ private String namespace;
+ private String UID;
+ private String metadata;
+ private String yaml;
+ private String json;
+ private Map properties;
+ private Map additionalProperties;
+ private String cr_spec;
+ private String statusCheckFieldName;
+ private String statusCheckValueStandby;
+ private String statusCheckValueAlarm;
+ private String statusCheckValueAvailable;
+ private String statusCheckValueReserved;
+ private String statusCheckValueUnknown;
+ private String statusCheckValueSuspended;
+ private ResourceStatusType statusValue;
+
+ @Builder
+ public KubernetesCRV1(String osl_KUBCRV1_RSPEC_UUID, String uuid, String name, String version, String description, String category,
+ String clusterMasterURL, String currentContextCluster, String fullResourceName, String namespace,
+ String kind, String apiGroup, String uID, String metadata, ResourceStatusType statusValue,
+ String yaml,
+ String json) {
+ super(uuid, name, version, description, category);
+ this.osl_KUBCRV1_RSPEC_UUID = osl_KUBCRV1_RSPEC_UUID;
+ this.clusterMasterURL = clusterMasterURL;
+ this.currentContextCluster = currentContextCluster;
+ this.fullResourceName = fullResourceName;
+ this.kind = kind;
+ this.apiGroup = apiGroup;
+ this.namespace = namespace;
+ this.UID = uID;
+ this.metadata = metadata;
+ this.yaml = yaml;
+ this.json = json;
+ this.statusValue = statusValue;
+ this.properties = new HashMap<>();
+ this.additionalProperties = new HashMap<>();
+ }
+
+
+
+ @Override
+ public ResourceSpecificationCreate toRSpecCreate_InitRepo() {
+
+ ResourceSpecificationCreate rsc = toRSpecCreate();
+ rsc.setName( OSL_KUBCRV1_RSPEC_NAME );
+ rsc.setCategory( OSL_KUBCRV1_RSPEC_CATEGORY );
+ rsc.setVersion(OSL_KUBCRV1_RSPEC_VERSION);
+ rsc.setDescription( OSL_KUBCRV1_RSPEC_DESCRIPTION );
+ rsc.setType( OSL_KUBCRV1_RSPEC_TYPE );
+
+ return rsc;
+ }
+
+
+ @Override
+ public ResourceSpecificationCreate toRSpecCreate() {
+
+ ResourceSpecificationCreate rsc = new ResourceSpecificationCreate();
+ rsc.setName( this.name );
+ rsc.setCategory( OSL_KUBCRV1_RSPEC_CATEGORY );
+ rsc.setVersion(this.version);
+ rsc.setDescription( this.description );
+ rsc.setType( OSL_KUBCRV1_RSPEC_TYPE );
+
+ rsc.setLifecycleStatus( ELifecycle.ACTIVE.getValue() );
+ rsc.addResourceSpecificationCharacteristicItemShort( "clusterMasterURL", "", EValueType.TEXT.getValue(), "", false);
+ rsc.addResourceSpecificationCharacteristicItemShort( "currentContextCluster", "", EValueType.TEXT.getValue(), "", false);
+ rsc.addResourceSpecificationCharacteristicItemShort( "fullResourceName", "", EValueType.TEXT.getValue(), "", false);
+ rsc.addResourceSpecificationCharacteristicItemShort( "Kind", "", EValueType.TEXT.getValue(), "", false);
+ rsc.addResourceSpecificationCharacteristicItemShort( "apiGroup", "", EValueType.TEXT.getValue(), "", false);
+ rsc.addResourceSpecificationCharacteristicItemShort( "UID", "", EValueType.TEXT.getValue(), "", false);
+ rsc.addResourceSpecificationCharacteristicItemShort( "namespace", "", EValueType.TEXT.getValue(), "", false);
+ rsc.addResourceSpecificationCharacteristicItemShort( "metadata", "", EValueType.TEXT.getValue(), "", false);
+ rsc.addResourceSpecificationCharacteristicItemShort( "yaml", "", EValueType.TEXT.getValue(), "", false);
+ rsc.addResourceSpecificationCharacteristicItemShort( "json", "", EValueType.TEXT.getValue(), "", false);
+
+ rsc.addResourceSpecificationCharacteristicItemShort( "_CR_SPEC", "", EValueType.TEXT.getValue(), "Used for providing the json Custom Resource description to apply", false);
+ rsc.addResourceSpecificationCharacteristicItemShort( "_CR_CHECK_FIELD", "", EValueType.TEXT.getValue(), "Used for providing the field that need to be checked for the resource status", false);
+ rsc.addResourceSpecificationCharacteristicItemShort( "_CR_CHECKVAL_STANDBY", "", EValueType.TEXT.getValue(), "Used for providing the equivalent value from resource to signal the standby status", false);
+ rsc.addResourceSpecificationCharacteristicItemShort( "_CR_CHECKVAL_ALARM", "", EValueType.TEXT.getValue(), "Used for providing the equivalent value from resource to signal the alarm status", false);
+ rsc.addResourceSpecificationCharacteristicItemShort( "_CR_CHECKVAL_AVAILABLE", "", EValueType.TEXT.getValue(), "Used for providing the equivalent value from resource to signal the available status", false);
+ rsc.addResourceSpecificationCharacteristicItemShort( "_CR_CHECKVAL_RESERVED", "", EValueType.TEXT.getValue(), "Used for providing the equivalent value from resource to signal the reserved status", false);
+ rsc.addResourceSpecificationCharacteristicItemShort( "_CR_CHECKVAL_UNKNOWN", "", EValueType.TEXT.getValue(), "Used for providing the equivalent value from resource to signal the unknown status", false);
+ rsc.addResourceSpecificationCharacteristicItemShort( "_CR_CHECKVAL_SUSPENDED", "", EValueType.TEXT.getValue(), "Used for providing the equivalent value from resource to signal the suspended status", false);
+
+// rsc.addResourceSpecificationCharacteristicItemShort( "properties", "", EValueType.SET.getValue());
+// rsc.addResourceSpecificationCharacteristicItemShort( "additionalProperties", "", EValueType.SET.getValue());
+
+
+ return rsc;
+ }
+
+ @Override
+ public ResourceSpecificationUpdate toRSpecUpdate() {
+ return this.toRSpecCreate();
+ }
+
+ @Override
+ public KubernetesCRV1 fromRSpec(ResourceSpecification rSpec) {
+ osl_KUBCRV1_RSPEC_UUID = rSpec.getUuid();
+ return this;
+ }
+
+ @Override
+ public ResourceCreate toResourceCreate() {
+
+ if (osl_KUBCRV1_RSPEC_UUID == null) {
+ return null;
+ }
+
+ ResourceSpecificationRef rSpecRef = new ResourceSpecificationRef();
+ rSpecRef.setId( osl_KUBCRV1_RSPEC_UUID );
+ rSpecRef.setName( OSL_KUBCRV1_RSPEC_NAME );
+ rSpecRef.setVersion( OSL_KUBCRV1_RSPEC_VERSION );
+
+ ResourceCreate rs = new ResourceCreate();
+ rs.name( this.name )
+ .category( this.category )
+ .description( this.description )
+
+ .resourceStatus( ResourceStatusType.RESERVED )
+
+ .operationalState( ResourceOperationalStateType.ENABLE )
+ .resourceSpecification( rSpecRef )
+ .resourceVersion( this.version);
+
+ rs.addResourceCharacteristicItemShort("clusterMasterURL", this.clusterMasterURL, EValueType.TEXT.getValue());
+ rs.addResourceCharacteristicItemShort("currentContextCluster", this.currentContextCluster, EValueType.TEXT.getValue());
+ rs.addResourceCharacteristicItemShort("fullResourceName", this.fullResourceName, EValueType.TEXT.getValue());
+ rs.addResourceCharacteristicItemShort("Kind", this.kind, EValueType.TEXT.getValue());
+ rs.addResourceCharacteristicItemShort("apiGroup", this.apiGroup, EValueType.TEXT.getValue());
+ rs.addResourceCharacteristicItemShort("apiVersion", this.version , EValueType.TEXT.getValue());
+ rs.addResourceCharacteristicItemShort("UID", this.UID, EValueType.TEXT.getValue());
+ rs.addResourceCharacteristicItemShort("namespace", this.namespace, EValueType.TEXT.getValue());
+ rs.addResourceCharacteristicItemShort("metadata", this.metadata, EValueType.TEXT.getValue());
+ rs.addResourceCharacteristicItemShort("yaml", this.yaml, EValueType.TEXT.getValue());
+ rs.addResourceCharacteristicItemShort("json", this.json, EValueType.TEXT.getValue());
+
+
+ rs.addResourceCharacteristicItemShort("_CR_SPEC", this.cr_spec, EValueType.TEXT.getValue());
+ rs.addResourceCharacteristicItemShort("_CR_CHECK_FIELD", this.statusCheckFieldName, EValueType.TEXT.getValue());
+ rs.addResourceCharacteristicItemShort("_CR_CHECKVAL_STANDBY", this.statusCheckValueStandby, EValueType.TEXT.getValue());
+ rs.addResourceCharacteristicItemShort("_CR_CHECKVAL_ALARM", this.statusCheckValueAlarm, EValueType.TEXT.getValue());
+ rs.addResourceCharacteristicItemShort("_CR_CHECKVAL_AVAILABLE", this.statusCheckValueAvailable, EValueType.TEXT.getValue());
+ rs.addResourceCharacteristicItemShort("_CR_CHECKVAL_RESERVED", this.statusCheckValueReserved, EValueType.TEXT.getValue());
+ rs.addResourceCharacteristicItemShort("_CR_CHECKVAL_UNKNOWN", this.statusCheckValueUnknown, EValueType.TEXT.getValue());
+ rs.addResourceCharacteristicItemShort("_CR_CHECKVAL_SUSPENDED", this.statusCheckValueSuspended, EValueType.TEXT.getValue());
+
+ rs.resourceStatus( this.statusValue );
+
+ if (this.properties != null)
+ this.properties.forEach((kPropName, vProVal) -> {
+ rs.addResourceCharacteristicItemShort(kPropName , vProVal, EValueType.TEXT.getValue());
+
+ });
+
+ if (this.additionalProperties != null ) {
+ this.additionalProperties.forEach((kPropName, vProVal) -> {
+ rs.addResourceCharacteristicItemShort(kPropName, vProVal, EValueType.TEXT.getValue());
+
+ });
+ }
+
+
+ return rs;
+ }
+
+ @Override
+ public ResourceUpdate toResourceUpdate() {
+
+ return this.toResourceCreate();
+ }
+
+}
diff --git a/src/main/java/org/etsi/osl/domain/model/kubernetes/KubernetesContextDefinition.java b/src/main/java/org/etsi/osl/domain/model/kubernetes/KubernetesContextDefinition.java
new file mode 100644
index 0000000000000000000000000000000000000000..c4f6a01987e8efe01f00b13e345b202ddda564f8
--- /dev/null
+++ b/src/main/java/org/etsi/osl/domain/model/kubernetes/KubernetesContextDefinition.java
@@ -0,0 +1,155 @@
+package org.etsi.osl.domain.model.kubernetes;
+
+import org.etsi.osl.domain.model.DomainModelDefinition;
+import org.etsi.osl.domain.model.ITMFRCM634_ModelTransformer;
+import org.etsi.osl.domain.model.ITMFRI639_ModelTransformer;
+import org.etsi.osl.tmf.common.model.ELifecycle;
+import org.etsi.osl.tmf.common.model.EValueType;
+import org.etsi.osl.tmf.rcm634.model.ResourceSpecification;
+import org.etsi.osl.tmf.rcm634.model.ResourceSpecificationCreate;
+import org.etsi.osl.tmf.rcm634.model.ResourceSpecificationRef;
+import org.etsi.osl.tmf.rcm634.model.ResourceSpecificationUpdate;
+import org.etsi.osl.tmf.ri639.model.ResourceCreate;
+import org.etsi.osl.tmf.ri639.model.ResourceOperationalStateType;
+import org.etsi.osl.tmf.ri639.model.ResourceStatusType;
+import org.etsi.osl.tmf.ri639.model.ResourceUpdate;
+import lombok.Builder;
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * @author ctranoris
+ */
+@Getter
+@Setter
+public class KubernetesContextDefinition
+ extends DomainModelDefinition
+ implements ITMFRCM634_ModelTransformer, ITMFRI639_ModelTransformer {
+
+
+ public static final String OSL_KUBD_RSPEC_NAME = "kubernetes-context-definition.openslice.io";
+ public static final String OSL_KUBD_RSPEC_VERSION = "0.0.1";
+ public static final String OSL_KUBD_RSPEC_CATEGORY = "KubernetesContextDefinition";
+ public static final String OSL_KUBD_RESOURCE_CATEGORY = "KubernetesContextDefinition";
+ public static final String OSL_KUBD_RSPEC_TYPE = "LogicalResourceSpecification";
+ public static final String OSL_KUBD_RSPEC_DESCRIPTION = "This Specification is used to describe a KubernetesClient";
+
+ private String osl_KUBD_SPEC_UUID = null; //this is assigned by the system through the DB for a specific instance
+
+ //properties of an instance
+ private String masterURL;
+ private String currentContextName;
+ private String currentContextCluster;
+ private String currentContextUser;
+ private String clusterVersion;
+
+
+ @Builder
+ public KubernetesContextDefinition(String osl_KUBD_SPEC_UUID, String uuid, String name, String version, String description, String category,
+ String masterURL, String currentContextName, String currentContextCluster, String currentContextUser,
+ String clusterVersion) {
+ super(uuid, name, version, description, category);
+ this.osl_KUBD_SPEC_UUID = osl_KUBD_SPEC_UUID;
+ this.masterURL = masterURL;
+ this.currentContextName = currentContextName;
+ this.currentContextCluster = currentContextCluster;
+ this.currentContextUser = currentContextUser;
+ this.clusterVersion = clusterVersion;
+ }
+
+
+ @Override
+ public ResourceSpecificationCreate toRSpecCreate_InitRepo() {
+ ResourceSpecificationCreate rsc = this.toRSpecCreate();
+ rsc.setName( OSL_KUBD_RSPEC_NAME );
+ rsc.setVersion( OSL_KUBD_RSPEC_VERSION );
+ rsc.setCategory( OSL_KUBD_RSPEC_CATEGORY );
+ rsc.setDescription( OSL_KUBD_RSPEC_DESCRIPTION );
+ rsc.setType( OSL_KUBD_RSPEC_TYPE );
+ rsc.setLifecycleStatus( ELifecycle.ACTIVE.getValue() );
+
+ return rsc;
+
+ }
+
+ @Override
+ public ResourceSpecificationCreate toRSpecCreate() {
+ ResourceSpecificationCreate rsc = new ResourceSpecificationCreate();
+ rsc.setName( this.name );
+ rsc.setVersion( this.version );
+ rsc.setCategory( OSL_KUBD_RSPEC_CATEGORY );
+ rsc.setDescription( this.description );
+ rsc.setType( OSL_KUBD_RSPEC_TYPE );
+ rsc.setLifecycleStatus( ELifecycle.ACTIVE.getValue() );
+ rsc.addResourceSpecificationCharacteristicItemShort( "masterURL", "", EValueType.TEXT.getValue(), "", false);
+ rsc.addResourceSpecificationCharacteristicItemShort( "resourceVersion", "", EValueType.TEXT.getValue(), "", false);
+ rsc.addResourceSpecificationCharacteristicItemShort( "currentContextName", "", EValueType.TEXT.getValue(), "", false);
+ rsc.addResourceSpecificationCharacteristicItemShort( "currentContextCluster", "", EValueType.TEXT.getValue(), "", false);
+ rsc.addResourceSpecificationCharacteristicItemShort( "currentContextUser", "", EValueType.TEXT.getValue(), "", false);
+ rsc.addResourceSpecificationCharacteristicItemShort( "clusterVersion", "", EValueType.TEXT.getValue(), "", false);
+ return rsc;
+
+ }
+
+ @Override
+ public ResourceSpecificationUpdate toRSpecUpdate() {
+ return this.toRSpecCreate();
+ }
+
+ /* we care only for the ID of the specification from the stored model. The definition will be static
+ * (non-Javadoc)
+ * @see org.etsi.osl.domain.model.ITMFRCM634_ModelTransformer#fromRSpec(org.etsi.osl.tmf.rcm634.model.ResourceSpecification)
+ */
+ @Override
+ public KubernetesContextDefinition fromRSpec(ResourceSpecification rSpec) {
+ osl_KUBD_SPEC_UUID = rSpec.getUuid();
+ return this;
+ }
+
+
+ /*
+ * returns Null if OSL_KUBD_RSPEC_UUID is not initialized
+ * (non-Javadoc)
+ * @see org.etsi.osl.domain.model.ITMFRI639_ModelTransformer#toResourceCreate()
+ */
+ @Override
+ public ResourceCreate toResourceCreate() throws Exception {
+ if (this.osl_KUBD_SPEC_UUID == null) {
+ throw new Exception( "osl_UUID is null. Resource cannot be created without referring a Resource specification" );
+
+ }
+
+ ResourceSpecificationRef rSpecRef = new ResourceSpecificationRef();
+ rSpecRef.setId( this.osl_KUBD_SPEC_UUID );
+ rSpecRef.setName( OSL_KUBD_RSPEC_NAME );
+ rSpecRef.setVersion( OSL_KUBD_RSPEC_VERSION );
+
+ ResourceCreate rs = new ResourceCreate();
+ rs.setName( this.name );
+ rs.setResourceStatus( ResourceStatusType.AVAILABLE );
+ rs.setOperationalState( ResourceOperationalStateType.ENABLE);
+ rs.setCategory( OSL_KUBD_RESOURCE_CATEGORY );
+ rs.setResourceSpecification(rSpecRef);
+ rs.resourceVersion( this.clusterVersion );
+
+ rs.addResourceCharacteristicItemShort("masterUrl", this.masterURL, EValueType.TEXT.getValue());
+ rs.addResourceCharacteristicItemShort("currentContextName", this.currentContextName , EValueType.TEXT.getValue());
+ rs.addResourceCharacteristicItemShort("currentContextCluster", this.currentContextCluster , EValueType.TEXT.getValue());
+ rs.addResourceCharacteristicItemShort("currentContextUser", this.currentContextUser , EValueType.TEXT.getValue());
+ rs.addResourceCharacteristicItemShort("clusterVersion", this.clusterVersion , EValueType.TEXT.getValue());
+
+
+
+
+ return rs;
+ }
+
+ @Override
+ public ResourceUpdate toResourceUpdate() throws Exception {
+ return this.toResourceCreate();
+ }
+
+
+
+
+}
diff --git a/src/main/java/org/etsi/osl/domain/model/kubernetes/KubernetesSecret.java b/src/main/java/org/etsi/osl/domain/model/kubernetes/KubernetesSecret.java
new file mode 100644
index 0000000000000000000000000000000000000000..820c777f39fcc275e8d3eea9d6b822313cd057cc
--- /dev/null
+++ b/src/main/java/org/etsi/osl/domain/model/kubernetes/KubernetesSecret.java
@@ -0,0 +1,213 @@
+package org.etsi.osl.domain.model.kubernetes;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.etsi.osl.domain.model.DomainModelDefinition;
+import org.etsi.osl.domain.model.ITMFRCM634_ModelTransformer;
+import org.etsi.osl.domain.model.ITMFRI639_ModelTransformer;
+import org.etsi.osl.tmf.common.model.ELifecycle;
+import org.etsi.osl.tmf.common.model.EValueType;
+import org.etsi.osl.tmf.rcm634.model.ResourceSpecification;
+import org.etsi.osl.tmf.rcm634.model.ResourceSpecificationCreate;
+import org.etsi.osl.tmf.rcm634.model.ResourceSpecificationRef;
+import org.etsi.osl.tmf.rcm634.model.ResourceSpecificationUpdate;
+import org.etsi.osl.tmf.ri639.model.ResourceCreate;
+import org.etsi.osl.tmf.ri639.model.ResourceOperationalStateType;
+import org.etsi.osl.tmf.ri639.model.ResourceStatusType;
+import org.etsi.osl.tmf.ri639.model.ResourceUpdate;
+import lombok.Builder;
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * @author ctranoris
+ */
+@Getter
+@Setter
+public class KubernetesSecret extends DomainModelDefinition
+ implements ITMFRCM634_ModelTransformer, ITMFRI639_ModelTransformer {
+
+ public static final String OSL_KUBSECRET_RSPEC_NAME = "kubernetes-secret.openslice.io";
+ public static final String OSL_KUBSECRET_RSPEC_VERSION = "0.0.3";
+ public static final String OSL_KUBSECRET_RSPEC_CATEGORY = "Secret/Kubernetes/v1";
+ public static final String OSL_KUBSECRET_RESOURCE_CATEGORY = "Secret/Kubernetes/v1";
+ public static final String OSL_KUBSECRET_RSPEC_TYPE = "LogicalResourceSpecification";
+ public static final String OSL_KUBSECRET_RSPEC_DESCRIPTION = "This Specification is used to describe a generic Kubernetes Secret";
+
+ private String osl_KUBCRD_RSPEC_UUID = null; //this is assigned by the system through the DB for a specific instance
+
+ private String clusterMasterURL;
+ private String currentContextCluster;
+ private String fullResourceName;
+ private String kind;
+ private String apiGroup;
+ private String UID;
+ private String metadata;
+ private String yaml;
+ private String json;
+ private String namespace;
+
+
+ private Map data;
+ private String dataObj;
+ private Map properties;
+
+
+ @Builder
+ public KubernetesSecret(String osl_KUBCRD_RSPEC_UUID, String uuid, String name, String version, String description, String category,
+ String clusterMasterURL, String currentContextCluster, String fullResourceName, String namespace,
+ String kind, String apiGroup, String uID,
+ String metadata,
+ String yaml,
+ String json) {
+ super(uuid, name, version, description, category);
+ this.osl_KUBCRD_RSPEC_UUID = osl_KUBCRD_RSPEC_UUID;
+ this.clusterMasterURL = clusterMasterURL;
+ this.currentContextCluster = currentContextCluster;
+ this.fullResourceName = fullResourceName;
+ this.kind = kind;
+ this.apiGroup = apiGroup;
+ this.namespace = namespace;
+ this.UID = uID;
+ this.metadata = metadata;
+ this.yaml = yaml;
+ this.json = json;
+ this.properties = new HashMap<>();
+ this.data = new HashMap<>();
+ this.category = OSL_KUBSECRET_RSPEC_CATEGORY;
+ }
+
+
+
+ @Override
+ public ResourceSpecificationCreate toRSpecCreate_InitRepo() {
+
+ ResourceSpecificationCreate rsc = this.toRSpecCreate();
+ rsc.setName( OSL_KUBSECRET_RSPEC_NAME );
+ rsc.setCategory( OSL_KUBSECRET_RSPEC_CATEGORY );
+ rsc.setVersion(OSL_KUBSECRET_RSPEC_VERSION);
+ rsc.setDescription( OSL_KUBSECRET_RSPEC_DESCRIPTION );
+ rsc.setType( OSL_KUBSECRET_RSPEC_TYPE );
+
+
+
+ return rsc;
+ }
+
+ @Override
+ public ResourceSpecificationCreate toRSpecCreate() {
+
+ ResourceSpecificationCreate rsc = new ResourceSpecificationCreate();
+ rsc.setName( this.name );
+ rsc.setCategory( OSL_KUBSECRET_RSPEC_CATEGORY );
+ rsc.setVersion( this.version );
+ rsc.setDescription( this.version );
+ rsc.setType( OSL_KUBSECRET_RSPEC_TYPE );
+
+ rsc.setLifecycleStatus( ELifecycle.ACTIVE.getValue() );
+ rsc.addResourceSpecificationCharacteristicItemShort("clusterMasterURL", this.clusterMasterURL, EValueType.TEXT.getValue(), "URL of cluster", false);
+ rsc.addResourceSpecificationCharacteristicItemShort("currentContextCluster", this.currentContextCluster, EValueType.TEXT.getValue(), "", false);
+ rsc.addResourceSpecificationCharacteristicItemShort("fullResourceName", this.fullResourceName, EValueType.TEXT.getValue(), "", false);
+ rsc.addResourceSpecificationCharacteristicItemShort("Kind", this.kind, EValueType.TEXT.getValue(), "", false);
+ rsc.addResourceSpecificationCharacteristicItemShort("apiGroup", this.apiGroup, EValueType.TEXT.getValue(), "", false);
+ rsc.addResourceSpecificationCharacteristicItemShort("UID", this.UID, EValueType.TEXT.getValue(), "", false);
+ rsc.addResourceSpecificationCharacteristicItemShort("metadata", this.metadata, EValueType.OBJECT.getValue(), "", false);
+ rsc.addResourceSpecificationCharacteristicItemShort("yaml", this.yaml, EValueType.TEXT.getValue(), "", false);
+ rsc.addResourceSpecificationCharacteristicItemShort("json", this.json, EValueType.TEXT.getValue(), "", false);
+ rsc.addResourceSpecificationCharacteristicItemShort("data", this.dataObj, EValueType.OBJECT.getValue(), "", false);
+
+ if (this.properties != null)
+ this.properties.forEach((kPropName, vProVal) -> {
+ EValueType etype;
+ etype = EValueType.TEXT;
+ rsc.addResourceSpecificationCharacteristicItemShort(kPropName , vProVal, etype.getValue(), "", false);
+
+ });
+ if (this.data != null)
+ this.data.forEach((kPropName, vProVal) -> {
+ EValueType etype;
+ etype = EValueType.TEXT;
+ rsc.addResourceSpecificationCharacteristicItemShort(kPropName , vProVal, etype.getValue(), "", false);
+
+ });
+
+
+
+ return rsc;
+ }
+
+ @Override
+ public ResourceSpecificationUpdate toRSpecUpdate() {
+ return this.toRSpecCreate();
+ }
+
+ @Override
+ public KubernetesSecret fromRSpec(ResourceSpecification rSpec) {
+ this.osl_KUBCRD_RSPEC_UUID = rSpec.getUuid();
+ return this;
+ }
+
+ @Override
+ public ResourceCreate toResourceCreate() {
+
+ if (osl_KUBCRD_RSPEC_UUID == null) {
+ return null;
+ }
+
+ ResourceSpecificationRef rSpecRef = new ResourceSpecificationRef();
+ rSpecRef.setId( osl_KUBCRD_RSPEC_UUID );
+ rSpecRef.setName( OSL_KUBSECRET_RSPEC_NAME );
+ rSpecRef.setVersion( OSL_KUBSECRET_RSPEC_VERSION );
+
+ ResourceCreate rs = new ResourceCreate();
+ rs.name( this.name )
+ .category( OSL_KUBSECRET_RESOURCE_CATEGORY )
+ .description( this.description )
+ .resourceStatus( ResourceStatusType.AVAILABLE )
+ .operationalState( ResourceOperationalStateType.ENABLE )
+ .resourceSpecification( rSpecRef )
+ .resourceVersion( this.version);
+
+ rs.addResourceCharacteristicItemShort("clusterMasterURL", this.clusterMasterURL, EValueType.TEXT.getValue());
+ rs.addResourceCharacteristicItemShort("currentContextCluster", this.currentContextCluster, EValueType.TEXT.getValue());
+ rs.addResourceCharacteristicItemShort("fullResourceName", this.fullResourceName, EValueType.TEXT.getValue());
+ rs.addResourceCharacteristicItemShort("Kind", this.kind, EValueType.TEXT.getValue());
+ rs.addResourceCharacteristicItemShort("apiGroup", this.apiGroup, EValueType.TEXT.getValue());
+ rs.addResourceCharacteristicItemShort("UID", this.UID, EValueType.TEXT.getValue());
+ rs.addResourceCharacteristicItemShort("metadata", this.metadata, EValueType.OBJECT.getValue());
+ rs.addResourceCharacteristicItemShort("yaml", this.yaml, EValueType.TEXT.getValue());
+ rs.addResourceCharacteristicItemShort("json", this.json, EValueType.TEXT.getValue());
+ rs.addResourceCharacteristicItemShort("data", this.dataObj, EValueType.OBJECT.getValue());
+
+
+
+
+ if (this.properties != null)
+ this.properties.forEach((kPropName, vProVal) -> {
+ EValueType etype;
+ etype = EValueType.TEXT;
+
+ rs.addResourceCharacteristicItemShort(kPropName , vProVal, etype.getValue());
+
+ });
+ if (this.data != null)
+ this.data.forEach((kPropName, vProVal) -> {
+ EValueType etype;
+ etype = EValueType.TEXT;
+ rs.addResourceCharacteristicItemShort(kPropName , vProVal, etype.getValue());
+
+ });
+
+
+
+
+ return rs;
+ }
+
+ @Override
+ public ResourceUpdate toResourceUpdate() {
+
+ return this.toResourceCreate();
+ }
+
+}
diff --git a/src/main/java/org/etsi/osl/sd/model/ServiceDescriptor.java b/src/main/java/org/etsi/osl/sd/model/ServiceDescriptor.java
new file mode 100644
index 0000000000000000000000000000000000000000..94e7296af69c0259db61d49ec601eae2992357e9
--- /dev/null
+++ b/src/main/java/org/etsi/osl/sd/model/ServiceDescriptor.java
@@ -0,0 +1,139 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 openslice.io
+ * %%
+ * 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.etsi.osl.sd.model;
+
+import java.util.HashSet;
+import java.util.Set;
+import org.etsi.osl.tmf.scm633.model.ServiceSpecification;
+import org.hibernate.annotations.GenericGenerator;
+import org.springframework.validation.annotation.Validated;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.persistence.CascadeType;
+import jakarta.persistence.Entity;
+import jakarta.persistence.GeneratedValue;
+import jakarta.persistence.Id;
+import jakarta.persistence.OneToMany;
+import jakarta.validation.Valid;
+
+/**
+ * This model will hold information that will help later on service orchestration.
+ * It should be attached to entities that we need to orchestrate in general, like {@link ServiceSpecification}
+ *
+ * @author ctranoris
+ *
+ */
+@Schema(description = "This model will hold information that will help later on service orchestration.")
+@Validated
+@Entity(name = "ServiceDescriptor")
+public class ServiceDescriptor {
+
+ @Id
+ @GeneratedValue(generator = "uuid")
+ @GenericGenerator(name = "uuid", strategy = "uuid2")
+ protected String uuid = null;
+
+
+ @Valid
+ @OneToMany(cascade = { CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH })
+ Set metadata = new HashSet<>();
+
+
+ /**
+ * references the root entity ID of this SD
+ */
+ private String rootEntityID;
+
+ /**
+ * references the root entity ID of this SD
+ */
+ private String rootEntityType;
+
+
+ public ServiceDescriptor() {
+
+ }
+
+
+ /**
+ * @return the metadata
+ */
+ public Set getMetadata() {
+ return metadata;
+ }
+
+
+ /**
+ * @param metadata the metadata to set
+ */
+ public void setMetadata(Set metadata) {
+ this.metadata = metadata;
+ }
+
+
+ /**
+ * @return the uuid
+ */
+ public String getUuid() {
+ return uuid;
+ }
+
+
+ /**
+ * @param uuid the uuid to set
+ */
+ public void setUuid(String uuid) {
+ this.uuid = uuid;
+ }
+
+
+ /**
+ * @return the rootEntityID
+ */
+ public String getRootEntityID() {
+ return rootEntityID;
+ }
+
+
+ /**
+ * @param rootEntityID the rootEntityID to set
+ */
+ public void setRootEntityID(String rootEntityID) {
+ this.rootEntityID = rootEntityID;
+ }
+
+
+ /**
+ * @return the rootEntityType
+ */
+ public String getRootEntityType() {
+ return rootEntityType;
+ }
+
+
+ /**
+ * @param rootEntityType the rootEntityType to set
+ */
+ public void setRootEntityType(String rootEntityType) {
+ this.rootEntityType = rootEntityType;
+ }
+
+
+
+}
diff --git a/src/main/java/org/etsi/osl/sd/model/ServiceDescriptorAttr.java b/src/main/java/org/etsi/osl/sd/model/ServiceDescriptorAttr.java
new file mode 100644
index 0000000000000000000000000000000000000000..364dd46a3e203624af2fd63481985e8a2dc08193
--- /dev/null
+++ b/src/main/java/org/etsi/osl/sd/model/ServiceDescriptorAttr.java
@@ -0,0 +1,100 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 openslice.io
+ * %%
+ * 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.etsi.osl.sd.model;
+
+import org.etsi.osl.tmf.scm633.model.ServiceSpecification;
+import org.hibernate.annotations.GenericGenerator;
+import jakarta.persistence.Entity;
+import jakarta.persistence.GeneratedValue;
+import jakarta.persistence.Id;
+
+/**
+ * This model will hold information that will help later on service
+ * orchestration. It should be attached to entities that we need to orchestrate
+ * in general, like {@link ServiceSpecification}
+ *
+ * @author ctranoris
+ *
+ */
+@Entity(name = "ServiceDescriptorAttr")
+public class ServiceDescriptorAttr {
+
+ @Id
+ @GeneratedValue(generator = "uuid")
+ @GenericGenerator(name = "uuid", strategy = "uuid2")
+ protected String uuid = null;
+
+ private String name;
+
+ private String value;
+
+ public ServiceDescriptorAttr() {
+
+ }
+
+ public ServiceDescriptorAttr(String name, String value) {
+ super();
+ this.name = name;
+ this.value = value;
+ }
+
+ /**
+ * @return the name
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * @param name the name to set
+ */
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ /**
+ * @return the value
+ */
+ public String getValue() {
+ return value;
+ }
+
+ /**
+ * @param value the value to set
+ */
+ public void setValue(String value) {
+ this.value = value;
+ }
+
+ /**
+ * @return the uuid
+ */
+ public String getUuid() {
+ return uuid;
+ }
+
+ /**
+ * @param uuid the uuid to set
+ */
+ public void setUuid(String uuid) {
+ this.uuid = uuid;
+ }
+
+}
diff --git a/src/main/java/org/etsi/osl/tmf/BootstrapRepository.java b/src/main/java/org/etsi/osl/tmf/BootstrapRepository.java
new file mode 100644
index 0000000000000000000000000000000000000000..31cc63fd735f194dbf570f77dc2ad9eb402ab9b1
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/BootstrapRepository.java
@@ -0,0 +1,183 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 openslice.io
+ * %%
+ * 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.etsi.osl.tmf;
+
+import com.fasterxml.jackson.databind.ObjectMapper;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.etsi.osl.tmf.common.model.service.ServiceSpecificationRef;
+import org.etsi.osl.tmf.rcm634.reposervices.ResourceSpecificationRepoService;
+import org.etsi.osl.tmf.scm633.model.ServiceCandidateUpdate;
+import org.etsi.osl.tmf.scm633.model.ServiceCatalog;
+import org.etsi.osl.tmf.scm633.model.ServiceCatalogCreate;
+import org.etsi.osl.tmf.scm633.model.ServiceCategory;
+import org.etsi.osl.tmf.scm633.model.ServiceCategoryCreate;
+import org.etsi.osl.tmf.scm633.model.ServiceCategoryRef;
+import org.etsi.osl.tmf.scm633.model.ServiceSpecification;
+import org.etsi.osl.tmf.scm633.reposervices.CandidateRepoService;
+import org.etsi.osl.tmf.scm633.reposervices.CatalogRepoService;
+import org.etsi.osl.tmf.scm633.reposervices.CategoryRepoService;
+import org.etsi.osl.tmf.scm633.reposervices.ServiceSpecificationRepoService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+import jakarta.annotation.PostConstruct;
+
+/**
+ * @author ctranoris
+ *
+ */
+@Service
+public class BootstrapRepository {
+
+ private static final transient Log logger = LogFactory.getLog(BootstrapRepository.class.getName());
+
+ private static final boolean ADDGST = true;
+
+ private static final boolean ADDVINNISBT = false;
+
+ private static final String GST_EXAMPLE_NAME = "A GST(NEST) Service Example";
+
+ private static final String VINNI_EXAMPLE_NAME = "A VINNI Service Example";
+
+ @Autowired
+ CatalogRepoService catalogRepoService;
+
+ @Autowired
+ CategoryRepoService categRepoService;
+
+ @Autowired
+ CandidateRepoService candidateRepoService;
+
+ @Autowired
+ ServiceSpecificationRepoService specRepoService;
+
+ @Autowired
+ ResourceSpecificationRepoService resourceSpecRepoService;
+
+
+ @Autowired
+ ObjectMapper objectMapper;
+
+ @PostConstruct
+ @Transactional
+ public void initRepo() {
+ if (this.catalogRepoService.findAll().size() == 0) {
+ ServiceCatalogCreate sc = new ServiceCatalogCreate();
+ sc.setName("Catalog");
+ sc.setDescription("Primary Catalog");
+ sc.setVersion("1.0");
+ ServiceCatalog scatalog = this.catalogRepoService.addCatalog(sc);
+
+ ServiceCategoryCreate scatCreate = new ServiceCategoryCreate();
+ scatCreate.setName("Generic Services");
+ scatCreate.setDescription("Generic Services of this catalog");
+ scatCreate.setVersion("1.0");
+ scatCreate.setIsRoot(true);
+ ServiceCategory scategory = this.categRepoService.addCategory(scatCreate);
+
+ scatalog.getCategoryObj().add(scategory);
+ scatalog = this.catalogRepoService.updateCatalog(scatalog);
+ /**
+ * Add GST
+ */
+ if (ADDGST) {
+ this.createFirstTimeGSTRepo( scategory );
+ }
+ /**
+ * Add VINNI-SB
+ */
+ if (ADDVINNISBT) {
+ this.createFirstTimeVINNISBTRepo( scategory );
+ }
+
+
+ } else { //check if we have the latest version of GST
+ if (ADDGST) {
+ ServiceCategory scategory = this.categRepoService.findByName("Generic Services");
+ ServiceSpecification serviceSpecificationObj = this.specRepoService.findByNameAndVersion( GST_EXAMPLE_NAME , "5.0.0");
+
+ if ( ( scategory != null ) && ( serviceSpecificationObj == null ))
+ {
+ this.createFirstTimeGSTRepo( scategory );
+ }
+ }
+ if (ADDVINNISBT) {
+ ServiceCategory scategory = this.categRepoService.findByName("Generic Services");
+ ServiceSpecification serviceSpecificationObj = this.specRepoService.findByNameAndVersion(VINNI_EXAMPLE_NAME, "0.1.0");
+ if ( ( scategory != null ) && ( serviceSpecificationObj == null ) )
+ {
+ this.createFirstTimeVINNISBTRepo( scategory );
+ }
+ }
+
+
+ }
+ }
+
+
+ @Transactional
+ private void createFirstTimeGSTRepo(ServiceCategory scategory) {
+
+ ServiceSpecification serviceSpecificationObj = this.specRepoService.cloneGSTServiceSpecification( GST_EXAMPLE_NAME);
+ //serviceSpecificationObj = this.specRepoService.updateServiceSpecification( serviceSpecificationObj );
+ serviceSpecificationObj = this.specRepoService.findByUuid( serviceSpecificationObj.getId() );
+
+ ServiceCandidateUpdate scand = new ServiceCandidateUpdate();
+ ServiceSpecificationRef serviceSpecificationRef = new ServiceSpecificationRef();
+ serviceSpecificationRef.setId(serviceSpecificationObj.getId());
+ ServiceCategoryRef categoryItem = new ServiceCategoryRef();
+ categoryItem.setId(scategory.getId());
+ scand.addCategoryItem(categoryItem);
+ scand.setServiceSpecification(serviceSpecificationRef);
+
+ this.candidateRepoService.updateCandidate(
+ serviceSpecificationObj.getServiceCandidateObjId() ,
+ scand);
+
+ }
+
+
+ @Transactional
+ public void createFirstTimeVINNISBTRepo( ServiceCategory scategory ) {
+
+ ServiceSpecification serviceSpecVinniSB = this.specRepoService.cloneVINNIServiceSpecification( VINNI_EXAMPLE_NAME, true, true, true, true, true, true, true, true, true, true);
+
+
+ /**
+ * add VINNI-SB Service Spec to Catalog
+ */
+
+
+ ServiceCandidateUpdate scand = new ServiceCandidateUpdate();
+ ServiceSpecificationRef serviceSpecificationRef = new ServiceSpecificationRef();
+ serviceSpecificationRef.setId(serviceSpecVinniSB.getId());
+ ServiceCategoryRef categoryItem = new ServiceCategoryRef();
+ categoryItem.setId(scategory.getId());
+ scand.addCategoryItem(categoryItem);
+ scand.setServiceSpecification(serviceSpecificationRef);
+
+ this.candidateRepoService.updateCandidate(
+ serviceSpecVinniSB.getServiceCandidateObjId(),
+ scand);
+ }
+
+}
diff --git a/src/main/java/org/etsi/osl/tmf/BootstrapResources.java b/src/main/java/org/etsi/osl/tmf/BootstrapResources.java
new file mode 100644
index 0000000000000000000000000000000000000000..7b4432f4df650633beb585161b6b1cf76511a064
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/BootstrapResources.java
@@ -0,0 +1,299 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 openslice.io
+ * %%
+ * 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.etsi.osl.tmf;
+
+import java.util.Collections;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
+import org.etsi.osl.domain.model.kubernetes.KubernetesCRDV1;
+import org.etsi.osl.domain.model.kubernetes.KubernetesCRV1;
+import org.etsi.osl.domain.model.kubernetes.KubernetesContextDefinition;
+import org.etsi.osl.domain.model.kubernetes.KubernetesSecret;
+import org.etsi.osl.tmf.common.model.BaseRootNamedEntity;
+import org.etsi.osl.tmf.rcm634.model.ResourceCandidate;
+import org.etsi.osl.tmf.rcm634.model.ResourceCandidateCreate;
+import org.etsi.osl.tmf.rcm634.model.ResourceCandidateUpdate;
+import org.etsi.osl.tmf.rcm634.model.ResourceCatalog;
+import org.etsi.osl.tmf.rcm634.model.ResourceCatalogCreate;
+import org.etsi.osl.tmf.rcm634.model.ResourceCatalogUpdate;
+import org.etsi.osl.tmf.rcm634.model.ResourceCategory;
+import org.etsi.osl.tmf.rcm634.model.ResourceCategoryCreate;
+import org.etsi.osl.tmf.rcm634.model.ResourceCategoryRef;
+import org.etsi.osl.tmf.rcm634.model.ResourceSpecification;
+import org.etsi.osl.tmf.rcm634.model.ResourceSpecificationCreate;
+import org.etsi.osl.tmf.rcm634.model.ResourceSpecificationRef;
+import org.etsi.osl.tmf.rcm634.model.ResourceSpecificationRelationship;
+import org.etsi.osl.tmf.rcm634.repo.ResourceCatalogRepository;
+import org.etsi.osl.tmf.rcm634.repo.ResourceSpecificationRepository;
+import org.etsi.osl.tmf.rcm634.reposervices.ResourceCandidateRepoService;
+import org.etsi.osl.tmf.rcm634.reposervices.ResourceCatalogRepoService;
+import org.etsi.osl.tmf.rcm634.reposervices.ResourceCategoryRepoService;
+import org.etsi.osl.tmf.rcm634.reposervices.ResourceSpecificationRepoService;
+import org.etsi.osl.tmf.ri639.reposervices.ResourceRepoService;
+import org.etsi.osl.tmf.scm633.model.ServiceSpecification;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+
+import com.fasterxml.jackson.databind.ObjectMapper;
+import jakarta.annotation.PostConstruct;
+
+@Service
+public class BootstrapResources {
+
+ @Autowired
+ ResourceCatalogRepoService resourceCatalogRepoService;
+
+ @Autowired
+ ResourceCategoryRepoService resourceCategRepoService;
+
+ @Autowired
+ ResourceCandidateRepoService resourceCandidateRepoService;
+
+ @Autowired
+ ResourceSpecificationRepoService resourceSpecRepoService;
+
+ @Autowired
+ ResourceRepoService resourceRepoService;
+
+ @Autowired
+ ResourceCatalogRepository resourceCatalogRepository;
+
+ @Autowired
+ ResourceSpecificationRepository resourceSpecificationRepo;
+
+ @Autowired
+ ObjectMapper objectMapper;
+
+
+ private static final String OSM_TENANT = "osm-tenant.openslice.io";
+
+ private static final String VIM_ACCOUNT = "vim-account.openslice.io.json";
+
+ private static final String GNB_TENANT = "gnodeb.openslice.io";
+
+
+ private static final String INFRA_RESOURCES = "Infrastructure Resources";
+
+ private static final String NETWORK_RESOURCES = "Network Resources";
+
+
+
+ @PostConstruct
+ @Transactional
+ public void initRepo() {
+
+ ResourceCatalog scatalog = this.resourceCatalogRepoService.findByName( "Catalog" );
+ if ( scatalog == null) {
+
+ //Create a new ResourceCatalogCreate named Catalog
+ ResourceCatalogCreate sc = new ResourceCatalogCreate();
+ sc.setName("Catalog");
+ sc.setDescription("Primary Resource Catalog");
+ sc.setVersion("1.0");
+ //Turns ResourceCatalogCreate to a ResourceCatalog with the same attributes set at the ResourceCatalogCreate
+ scatalog = this.resourceCatalogRepoService.addCatalog(sc);
+
+ // Create a new ResourceCategoryCreate named Generic Resources
+ ResourceCategoryCreate scatCreate = new ResourceCategoryCreate();
+ scatCreate.setName("Generic Resources");
+ scatCreate.setDescription("Generic Resources of this catalog");
+ scatCreate.setVersion("1.0");
+ scatCreate.setIsRoot(true);
+
+ ResourceCategory scategory = this.resourceCategRepoService.addCategory(scatCreate);
+ //Adds the ResourceCategory to the Primary Resource Catalog and then saves it to the resourceCatalogRepository
+ //scatalog.getCategoryObj().add(scategory);
+// ResourceCategoryRef catref = new ResourceCategoryRef();
+// catref.setId( scategory.getId() );
+// catref.setName( scategory.getName());
+ scatalog.addCategory(scategory);
+ }
+
+ ResourceCategory scategoryNetw = this.resourceCategRepoService.findByName(NETWORK_RESOURCES );
+ if ( scategoryNetw == null ){
+ ResourceCategoryCreate scategoryNetwCreate = new ResourceCategoryCreate();
+ scategoryNetwCreate.setName(NETWORK_RESOURCES);
+ scategoryNetwCreate.setDescription("Network Resources on this catalog");
+ scategoryNetwCreate.setVersion("1.0");
+ scategoryNetwCreate.setIsRoot(true);
+ // Turns ResourceCategoryCreate to a ResourceCategory with the same attributes set at the ResourceCategoryCreate
+ scategoryNetw = this.resourceCategRepoService.addCategory( scategoryNetwCreate );
+ //Adds the ResourceCategory to the Primary Resource Catalog and then saves it to the resourceCatalogRepository
+// ResourceCategoryRef catref = new ResourceCategoryRef();
+// catref.setId( scategoryNetw.getId() );
+// catref.setName( scategoryNetw.getName());
+ scatalog.addCategory( scategoryNetw );
+ }
+
+ ResourceCategory scategoryInfra = this.resourceCategRepoService.findByName(INFRA_RESOURCES );
+ if ( scategoryInfra == null ){
+ ResourceCategoryCreate scategoryInfraCreate = new ResourceCategoryCreate();
+ scategoryInfraCreate.setName( INFRA_RESOURCES );
+ scategoryInfraCreate.setDescription("Infrastructure Resources on this catalog");
+ scategoryInfraCreate.setVersion("1.0");
+ scategoryInfraCreate.setIsRoot(true);
+ scategoryInfra = this.resourceCategRepoService.addCategory( scategoryInfraCreate );
+// ResourceCategoryRef catref = new ResourceCategoryRef();
+// catref.setId( scategoryInfra.getId() );
+// catref.setName( scategoryInfra.getName());
+ scatalog.addCategory( scategoryInfra );
+ }
+
+ scatalog = this.resourceCatalogRepoService.updateCatalog( scatalog );
+
+
+ ResourceSpecification resourceSpecificationObj = this.resourceSpecRepoService.findByNameAndVersion( VIM_ACCOUNT , "0.2.0");
+ if ( ( resourceSpecificationObj == null ))
+ {
+ this.createBootResourceSpec( scategoryNetw, VIM_ACCOUNT , "vim-account.openslice.io.json" );
+ }
+
+ resourceSpecificationObj = this.resourceSpecRepoService.findByNameAndVersion( OSM_TENANT , "0.2.0");
+ if ( ( resourceSpecificationObj == null ))
+ {
+ this.createBootResourceSpec( scategoryNetw, OSM_TENANT , "osm-tenant.openslice.io.json" );
+ }
+ resourceSpecificationObj = this.resourceSpecRepoService.findByNameAndVersion( GNB_TENANT , "0.2.0");
+ if ( ( resourceSpecificationObj == null ))
+ {
+ this.createBootPhysicalResourceSpec( scategoryNetw,GNB_TENANT, "gnodeb.openslice.io.json");
+ }
+
+
+
+
+ resourceSpecificationObj = this.resourceSpecRepoService.findByNameAndVersion(
+ KubernetesContextDefinition.OSL_KUBD_RSPEC_NAME ,
+ KubernetesContextDefinition.OSL_KUBD_RSPEC_VERSION);
+
+ if ( ( scategoryInfra != null ) && ( resourceSpecificationObj == null ))
+ {
+ ResourceSpecification resourceSpecificationKubernetes =
+ this.resourceSpecRepoService.addResourceSpecification( KubernetesContextDefinition.builder().build().toRSpecCreate_InitRepo() );
+ //KubernetesContextDefinition.builder().build().fromRSpec(resourceSpecificationKubernetes);//to update any details
+ this.addToCategory( scategoryInfra, resourceSpecificationKubernetes );
+ }
+
+ resourceSpecificationObj = this.resourceSpecRepoService.findByNameAndVersion(
+ KubernetesCRDV1.OSL_KUBCRD_RSPEC_NAME ,
+ KubernetesCRDV1.OSL_KUBCRD_RSPEC_VERSION);
+
+ if ( ( scategoryInfra != null ) && ( resourceSpecificationObj == null ))
+ {
+ ResourceSpecification resourceSpecificationKubernetesCRD =
+ this.resourceSpecRepoService.addResourceSpecification( KubernetesCRDV1.builder().build().toRSpecCreate_InitRepo() );
+ KubernetesCRDV1.builder().build().fromRSpec(resourceSpecificationKubernetesCRD);//to update any details
+ this.addToCategory( scategoryInfra, resourceSpecificationKubernetesCRD );
+ }
+
+
+ resourceSpecificationObj = this.resourceSpecRepoService.findByNameAndVersion(
+ KubernetesCRV1.OSL_KUBCRV1_RSPEC_NAME ,
+ KubernetesCRV1.OSL_KUBCRV1_RSPEC_VERSION);
+
+ if ( ( scategoryInfra != null ) && ( resourceSpecificationObj == null ))
+ {
+ ResourceSpecification rspecKubCRV1 =
+ this.resourceSpecRepoService.addResourceSpecification( KubernetesCRV1.builder().build().toRSpecCreate_InitRepo() );
+ KubernetesCRV1.builder().build().fromRSpec(rspecKubCRV1);//to update any details
+ this.addToCategory( scategoryInfra, rspecKubCRV1 );
+ }
+
+ resourceSpecificationObj = this.resourceSpecRepoService.findByNameAndVersion(
+ KubernetesSecret.OSL_KUBSECRET_RSPEC_NAME ,
+ KubernetesSecret.OSL_KUBSECRET_RSPEC_VERSION);
+
+ if ( ( scategoryInfra != null ) && ( resourceSpecificationObj == null ))
+ {
+ ResourceSpecification rspecKubSecret =
+ this.resourceSpecRepoService.addResourceSpecification( KubernetesSecret.builder().build().toRSpecCreate_InitRepo() );
+ KubernetesSecret.builder().build().fromRSpec(rspecKubSecret);//to update any details
+ this.addToCategory( scategoryInfra, rspecKubSecret );
+ }
+
+
+
+ }
+
+
+ private void createBootResourceSpec( ResourceCategory scategory, String aname, String afile) {
+
+ ResourceSpecificationCreate rsc = this.resourceSpecRepoService.readFromLocalLogicalResourceSpec( afile );
+ rsc.setName( aname );
+ ResourceSpecification resourceSpecificationObj = this.resourceSpecRepoService.addResourceSpecification( rsc );
+
+ addToCategory(scategory, resourceSpecificationObj);
+
+ }
+
+ private void addToCategory(ResourceCategory scategory, ResourceSpecification resourceSpecificationObj) {
+
+ //Turn the ResourceSpecification to a ResourceCanditate to save it to the ResourceCatalogRepo
+ ResourceCandidateUpdate scand = new ResourceCandidateUpdate();
+ scand.setName( resourceSpecificationObj.getName());
+ ResourceSpecificationRef resSpecificationRef = new ResourceSpecificationRef();
+ resSpecificationRef.setId(resourceSpecificationObj.getId());
+ resSpecificationRef.setName(resourceSpecificationObj.getName());
+ scand.resourceSpecification(resSpecificationRef);
+ ResourceCategoryRef categoryItem = new ResourceCategoryRef();
+ categoryItem.setId(scategory.getId());
+ scand.addCategoryItem(categoryItem);
+
+ this.resourceCandidateRepoService.updateCandidate(resourceSpecificationObj.getResourceCandidateObjId() , scand);
+ }
+
+ private void createBootPhysicalResourceSpec( ResourceCategory scategory, String aname, String afile) {
+ //Find the MANO Provider Spec, get its href and use it to create a dependency with the VIM
+
+ ResourceSpecification resourceSpecificationObj = this.resourceSpecRepoService.clonePhysicalResourceSpec( aname , afile);
+ resourceSpecificationObj = resourceSpecificationRepo.save(resourceSpecificationObj);
+
+ //Turn the ResourceSpecification to a ResourceCanditate to save it to the ResourceCatalogRepo
+ ResourceCandidateUpdate scand = new ResourceCandidateUpdate();
+ scand.setName( resourceSpecificationObj.getName());
+ ResourceSpecificationRef resSpecificationRef = new ResourceSpecificationRef();
+ resSpecificationRef.setId(resourceSpecificationObj.getId());
+ resSpecificationRef.setName(resourceSpecificationObj.getName());
+ scand.resourceSpecification(resSpecificationRef);
+ ResourceCategoryRef categoryItem = new ResourceCategoryRef();
+ categoryItem.setId(scategory.getId());
+ scand.addCategoryItem(categoryItem);
+
+ this.resourceCandidateRepoService.updateCandidate(resourceSpecificationObj.getResourceCandidateObjId() , scand);
+ }
+
+
+
+ public ResourceSpecification demoResourceSpecification() {
+
+ ResourceSpecificationCreate spec = new ResourceSpecificationCreate();
+ spec.setName("Example Logical Resource");
+ spec.setVersion("1.0.0");
+
+ return this.resourceSpecRepoService.addLogicalResourceSpecification(spec);
+ }
+
+
+
+}
+
+
diff --git a/src/main/java/org/etsi/osl/tmf/JsonUtils.java b/src/main/java/org/etsi/osl/tmf/JsonUtils.java
new file mode 100644
index 0000000000000000000000000000000000000000..92689cb88df7613f9b78841e3bbc64d9054e3701
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/JsonUtils.java
@@ -0,0 +1,39 @@
+package org.etsi.osl.tmf;
+
+import java.io.IOException;
+import java.io.InputStream;
+
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.databind.ObjectMapper;
+
+/**
+ * @author ctranoris
+ *
+ */
+public class JsonUtils {
+
+ static byte[] toJson(Object object) throws IOException {
+ ObjectMapper mapper = new ObjectMapper();
+ mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
+ return mapper.writeValueAsBytes(object);
+ }
+
+ static String toJsonString(Object object) throws IOException {
+ ObjectMapper mapper = new ObjectMapper();
+ mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
+ return mapper.writeValueAsString(object);
+ }
+
+ public static T toJsonObj(String content, Class valueType) throws IOException {
+ ObjectMapper mapper = new ObjectMapper();
+ mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
+ return mapper.readValue(content, valueType);
+ }
+
+ static T toJsonObj(InputStream content, Class valueType) throws IOException {
+ ObjectMapper mapper = new ObjectMapper();
+ mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
+ return mapper.readValue(content, valueType);
+ }
+
+}
diff --git a/src/main/java/org/etsi/osl/tmf/LocalMysqlDialect.java b/src/main/java/org/etsi/osl/tmf/LocalMysqlDialect.java
new file mode 100644
index 0000000000000000000000000000000000000000..9220b97d37b9d9ba89da308bd334939c6e40e254
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/LocalMysqlDialect.java
@@ -0,0 +1,29 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 openslice.io
+ * %%
+ * 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.etsi.osl.tmf;
+
+import org.hibernate.dialect.MySQLDialect; ;
+
+public class LocalMysqlDialect extends MySQLDialect {
+ @Override
+ public String getTableTypeString() {
+ return " DEFAULT CHARSET=utf8";
+ }
+}
diff --git a/src/main/java/org/etsi/osl/tmf/MvcConfig.java b/src/main/java/org/etsi/osl/tmf/MvcConfig.java
new file mode 100644
index 0000000000000000000000000000000000000000..bb104c659dd4f754aa8fc7792aad7ec999b71051
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/MvcConfig.java
@@ -0,0 +1,129 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 openslice.io
+ * %%
+ * 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.etsi.osl.tmf;
+
+import java.io.File;
+import java.io.IOException;
+import java.time.LocalDateTime;
+import java.time.OffsetDateTime;
+import java.time.format.DateTimeFormatter;
+import java.util.List;
+
+import com.fasterxml.jackson.core.JsonGenerator;
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.databind.JsonSerializer;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.fasterxml.jackson.databind.SerializerProvider;
+import com.fasterxml.jackson.databind.module.SimpleModule;
+import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
+import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
+import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.core.env.Environment;
+import org.springframework.http.converter.ByteArrayHttpMessageConverter;
+import org.springframework.http.converter.HttpMessageConverter;
+import org.springframework.http.converter.StringHttpMessageConverter;
+import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
+import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
+import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
+import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
+import org.springframework.web.servlet.resource.EncodedResourceResolver;
+import org.springframework.web.servlet.resource.PathResourceResolver;
+
+@Configuration
+//@EnableWebMvc - removed 30/7/2021
+public class MvcConfig implements WebMvcConfigurer {
+ @Autowired
+ Environment env;
+
+ public MvcConfig() {
+ super();
+ }
+
+ @Override
+ public void addViewControllers(final ViewControllerRegistry registry) {
+ registry.addViewController("/index.html");
+
+ }
+
+ @Override
+ public void addResourceHandlers(ResourceHandlerRegistry registry) {
+ // registry.addResourceHandler("/testweb/**").addResourceLocations("file:///C:/Users/ctranoris/git/org.etsi.osl.portal.web/src/").setCachePeriod(0);
+ String a = (new File("../org.etsi.osl.tmf.web/dist/io-openslice-portal-web/")).getAbsoluteFile().toURI().toString();
+ System.out.println("======================> " + a);
+ registry.addResourceHandler("/services/**").addResourceLocations(a) // "file:///./../org.etsi.osl.portal.web/src/")
+ .setCachePeriod(0).resourceChain(true).addResolver(new EncodedResourceResolver())
+ .addResolver(new PathResourceResolver());
+
+// registry.addResourceHandler("swagger-ui.html").addResourceLocations("classpath:/META-INF/resources/");
+//
+// registry.addResourceHandler("/webjars/**").addResourceLocations("classpath:/META-INF/resources/webjars/");
+
+ }
+
+ @Override
+ public void extendMessageConverters(List> converters) {
+ // DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd
+ // HH:mm:ss");
+ DateTimeFormatter formatter = DateTimeFormatter.ISO_ZONED_DATE_TIME;
+ LocalDateTimeSerializer localDateTimeSerializer = new LocalDateTimeSerializer(formatter);
+ LocalDateTimeDeserializer localDateTimeDeserializer = new LocalDateTimeDeserializer(formatter);
+
+ JavaTimeModule module = new JavaTimeModule();
+ module.addSerializer(LocalDateTime.class, localDateTimeSerializer);
+ module.addDeserializer(LocalDateTime.class, localDateTimeDeserializer);
+
+ ObjectMapper mapper = new ObjectMapper();
+ mapper.registerModule(module);
+
+ SimpleModule simpleModule = new SimpleModule();
+ simpleModule.addSerializer(OffsetDateTime.class, new JsonSerializer() {
+ @Override
+ public void serialize(OffsetDateTime offsetDateTime, JsonGenerator jsonGenerator,
+ SerializerProvider serializerProvider) throws IOException, JsonProcessingException {
+ jsonGenerator.writeString(DateTimeFormatter.ISO_ZONED_DATE_TIME.format(offsetDateTime));
+
+ }
+ });
+
+
+
+
+ mapper.registerModule(simpleModule);
+
+ // add converter at the very front
+ // if there are same type mappers in converters, setting in first mapper
+ // is used.
+ converters.add(new MappingJackson2HttpMessageConverter(mapper));
+
+
+
+ }
+
+ @Override
+ public void configureMessageConverters(List> converters) {
+ converters.add(new StringHttpMessageConverter());
+ converters.add(new ByteArrayHttpMessageConverter());
+ }
+
+
+}
diff --git a/src/main/java/org/etsi/osl/tmf/OpenAPISpringBoot.java b/src/main/java/org/etsi/osl/tmf/OpenAPISpringBoot.java
new file mode 100644
index 0000000000000000000000000000000000000000..f42df109cbb8db78fdbdbebd9131589bb6cd10d7
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/OpenAPISpringBoot.java
@@ -0,0 +1,87 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 openslice.io
+ * %%
+ * 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.etsi.osl.tmf;
+
+import org.springframework.boot.CommandLineRunner;
+import org.springframework.boot.ExitCodeGenerator;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.boot.autoconfigure.domain.EntityScan;
+import org.springframework.context.ApplicationContext;
+import org.springframework.context.annotation.ComponentScan;
+
+
+/**
+ * For implementing the callback and events, it might be useful to check the DDD pattern: https://www.baeldung.com/spring-data-ddd
+ *
+ *
+ * @author ctranoris
+ *
+ */
+@SpringBootApplication
+@ComponentScan( basePackages = {
+ "org.etsi.osl",
+ "org.etsi.osl.centrallog"
+ } )
+@EntityScan( basePackages = {
+ "org.etsi.osl",
+ "org.etsi.osl.sd",
+ "org.etsi.osl.sd.model",
+ "org.etsi.osl.tmf",
+ "org.etsi.osl.tmf.configuration",
+ "org.etsi.osl.tmf.scm633",
+ "org.etsi.osl.tmf.scm633.api",
+ "org.etsi.osl.tmf.scm633.repo",
+ "org.etsi.osl.tmf.scm633.reposervices",
+ "org.etsi.osl.tmf.scm634",
+ "org.etsi.osl.tmf.scm634.api",
+ "org.etsi.osl.centrallog.client"} )
+
+public class OpenAPISpringBoot implements CommandLineRunner {
+
+ private static ApplicationContext applicationContext;
+
+ @Override
+ public void run(String... arg0) throws Exception {
+ if (arg0.length > 0 && arg0[0].equals("exitcode")) {
+ throw new ExitException();
+ }
+ }
+
+ public static void main(String[] args) throws Exception {
+
+ applicationContext = new SpringApplication(OpenAPISpringBoot.class).run(args);
+
+// for (String beanName : applicationContext.getBeanDefinitionNames()) {
+// System.out.println(beanName);
+// }
+ }
+
+ class ExitException extends RuntimeException implements ExitCodeGenerator {
+ private static final long serialVersionUID = 1L;
+
+ @Override
+ public int getExitCode() {
+ return 10;
+ }
+
+ }
+
+}
diff --git a/src/main/java/org/etsi/osl/tmf/am642/api/AckAlarmsApi.java b/src/main/java/org/etsi/osl/tmf/am642/api/AckAlarmsApi.java
new file mode 100644
index 0000000000000000000000000000000000000000..75edd445b5523bf87d5e7d4ba1f3d5c574de5a4c
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/am642/api/AckAlarmsApi.java
@@ -0,0 +1,165 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 - 2021 openslice.io
+ * %%
+ * 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==================================
+ */
+/**
+ * NOTE: This class is auto generated by the swagger code generator program (3.0.19).
+ * https://github.com/swagger-api/swagger-codegen
+ * Do not edit the class manually.
+ */
+package org.etsi.osl.tmf.am642.api;
+
+import java.io.IOException;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.etsi.osl.tmf.am642.model.AckAlarms;
+import org.etsi.osl.tmf.am642.model.AckAlarmsCreate;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.http.HttpStatus;
+import org.springframework.http.ResponseEntity;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+import org.springframework.web.bind.annotation.RequestParam;
+import io.swagger.v3.oas.annotations.Operation;
+import io.swagger.v3.oas.annotations.Parameter;
+import io.swagger.v3.oas.annotations.responses.ApiResponse;
+import io.swagger.v3.oas.annotations.responses.ApiResponses;
+import io.swagger.v3.oas.annotations.tags.Tag;
+import jakarta.servlet.http.HttpServletRequest;
+import jakarta.validation.Valid;
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2021-02-15T11:15:47.327930400+02:00[Europe/Athens]")
+@Tag(name = "ackAlarms", description = "the ackAlarms API")
+public interface AckAlarmsApi {
+
+ Logger log = LoggerFactory.getLogger(AckAlarmsApi.class);
+
+ default Optional getObjectMapper(){
+ return Optional.empty();
+ }
+
+ default Optional getRequest(){
+ return Optional.empty();
+ }
+
+ default Optional getAcceptHeader() {
+ return getRequest().map(r -> r.getHeader("Accept"));
+ }
+
+ @Operation(summary = "Creates a AckAlarms", operationId = "createAckAlarms", description = "This operation creates a AckAlarms entity.", tags={ "ackAlarms", })
+ @ApiResponses(value = {
+ @ApiResponse(responseCode = "400", description = "Created"),
+ @ApiResponse(responseCode = "400", description = "Bad Request" ),
+ @ApiResponse(responseCode = "401", description = "Unauthorized" ),
+ @ApiResponse(responseCode = "403", description = "Forbidden" ),
+ @ApiResponse(responseCode = "405", description = "Method Not allowed" ),
+ @ApiResponse(responseCode = "409", description = "Conflict" ),
+ @ApiResponse(responseCode = "500", description = "Internal Server Error" ) })
+ @RequestMapping(value = "/ackAlarms",
+ produces = { "application/json;charset=utf-8" },
+ consumes = { "application/json;charset=utf-8" },
+ method = RequestMethod.POST)
+ default ResponseEntity createAckAlarms(@Parameter(description = "The AckAlarms to be created" ,required=true ) @Valid @RequestBody AckAlarmsCreate body
+) {
+ if(getObjectMapper().isPresent() && getAcceptHeader().isPresent()) {
+ if (getAcceptHeader().get().contains("application/json")) {
+ try {
+ return new ResponseEntity<>(getObjectMapper().get().readValue("{\r\n \"ackedAlarm\" : [ {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n }, {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n } ],\r\n \"ackTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"ackUserId\" : \"ackUserId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"alarmPattern\" : [ {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n }, {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n } ],\r\n \"@type\" : \"@type\",\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n}", AckAlarms.class), HttpStatus.NOT_IMPLEMENTED);
+ } catch (IOException e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+ } else {
+ log.warn("ObjectMapper or HttpServletRequest not configured in default AckAlarmsApi interface so no example is generated");
+ }
+ return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
+ }
+
+
+ @Operation(summary = "List or find AckAlarms objects", operationId = "listAckAlarms", description = "This operation list or find AckAlarms entities" , tags={ "ackAlarms", })
+ @ApiResponses(value = {
+ @ApiResponse(responseCode ="200", description = "Success" ),
+ @ApiResponse(responseCode = "400", description = "Bad Request" ),
+ @ApiResponse(responseCode = "401", description = "Unauthorized" ),
+ @ApiResponse(responseCode = "403", description = "Forbidden" ),
+ @ApiResponse(responseCode = "404", description = "Not Found" ),
+ @ApiResponse(responseCode = "405", description = "Method Not allowed" ),
+ @ApiResponse(responseCode = "409", description = "Conflict" ),
+ @ApiResponse(responseCode = "500", description = "Internal Server Error" ) })
+ @RequestMapping(value = "/ackAlarms",
+ produces = { "application/json;charset=utf-8" },
+ method = RequestMethod.GET)
+ default ResponseEntity> listAckAlarms(@Parameter(description = "Comma-separated properties to be provided in response") @Valid @RequestParam(value = "fields", required = false) String fields
+,@Parameter(description = "Requested index for start of resources to be provided in response") @Valid @RequestParam(value = "offset", required = false) Integer offset
+,@Parameter(description = "Requested number of resources to be provided in response") @Valid @RequestParam(value = "limit", required = false) Integer limit,
+Map allParams
+) {
+ if(getObjectMapper().isPresent() && getAcceptHeader().isPresent()) {
+ if (getAcceptHeader().get().contains("application/json")) {
+ try {
+ return new ResponseEntity<>(getObjectMapper().get().readValue("[ {\r\n \"ackedAlarm\" : [ {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n }, {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n } ],\r\n \"ackTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"ackUserId\" : \"ackUserId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"alarmPattern\" : [ {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n }, {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n } ],\r\n \"@type\" : \"@type\",\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n}, {\r\n \"ackedAlarm\" : [ {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n }, {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n } ],\r\n \"ackTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"ackUserId\" : \"ackUserId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"alarmPattern\" : [ {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n }, {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n } ],\r\n \"@type\" : \"@type\",\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n} ]", List.class), HttpStatus.NOT_IMPLEMENTED);
+ } catch (IOException e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+ } else {
+ log.warn("ObjectMapper or HttpServletRequest not configured in default AckAlarmsApi interface so no example is generated");
+ }
+ return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
+ }
+
+
+ @Operation(summary = "Retrieves a AckAlarms by ID", operationId = "retrieveAckAlarms", description = "This operation retrieves a AckAlarms entity. Attribute selection is enabled for all first level attributes.", tags={ "ackAlarms", })
+ @ApiResponses(value = {
+ @ApiResponse(responseCode ="200", description = "Success"),
+ @ApiResponse(responseCode = "400", description = "Bad Request" ),
+ @ApiResponse(responseCode = "401", description = "Unauthorized" ),
+ @ApiResponse(responseCode = "403", description = "Forbidden" ),
+ @ApiResponse(responseCode = "404", description = "Not Found" ),
+ @ApiResponse(responseCode = "405", description = "Method Not allowed" ),
+ @ApiResponse(responseCode = "409", description = "Conflict" ),
+ @ApiResponse(responseCode = "500", description = "Internal Server Error" ) })
+ @RequestMapping(value = "/ackAlarms/{id}",
+ produces = { "application/json;charset=utf-8" },
+ method = RequestMethod.GET)
+ default ResponseEntity retrieveAckAlarms(@Parameter(description = "Identifier of the AckAlarms",required=true) @PathVariable("id") String id
+,@Parameter(description = "Comma-separated properties to provide in response") @Valid @RequestParam(value = "fields", required = false) String fields
+) {
+ if(getObjectMapper().isPresent() && getAcceptHeader().isPresent()) {
+ if (getAcceptHeader().get().contains("application/json")) {
+ try {
+ return new ResponseEntity<>(getObjectMapper().get().readValue("{\r\n \"ackedAlarm\" : [ {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n }, {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n } ],\r\n \"ackTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"ackUserId\" : \"ackUserId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"alarmPattern\" : [ {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n }, {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n } ],\r\n \"@type\" : \"@type\",\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n}", AckAlarms.class), HttpStatus.NOT_IMPLEMENTED);
+ } catch (IOException e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+ } else {
+ log.warn("ObjectMapper or HttpServletRequest not configured in default AckAlarmsApi interface so no example is generated");
+ }
+ return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
+ }
+
+}
diff --git a/src/main/java/org/etsi/osl/tmf/am642/api/AckAlarmsApiController.java b/src/main/java/org/etsi/osl/tmf/am642/api/AckAlarmsApiController.java
new file mode 100644
index 0000000000000000000000000000000000000000..a84959eb3dcb73c89d32fb997112ec07308eba84
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/am642/api/AckAlarmsApiController.java
@@ -0,0 +1,130 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 - 2021 openslice.io
+ * %%
+ * 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.etsi.osl.tmf.am642.api;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.etsi.osl.tmf.am642.model.AckAlarms;
+import org.etsi.osl.tmf.am642.model.AckAlarmsCreate;
+import org.etsi.osl.tmf.am642.reposervices.AckAlarmsRepoService;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.HttpStatus;
+import org.springframework.http.ResponseEntity;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+import jakarta.servlet.http.HttpServletRequest;
+import jakarta.validation.Valid;
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2021-02-15T11:15:47.327930400+02:00[Europe/Athens]")
+@Controller
+@RequestMapping("/alarmManagement/v4/")
+public class AckAlarmsApiController implements AckAlarmsApi {
+
+ private final ObjectMapper objectMapper;
+
+ private final HttpServletRequest request;
+ private static final Logger log = LoggerFactory.getLogger(AckAlarmsApiController.class);
+
+ @org.springframework.beans.factory.annotation.Autowired
+ public AckAlarmsApiController(ObjectMapper objectMapper, HttpServletRequest request) {
+ this.objectMapper = objectMapper;
+ this.request = request;
+ }
+
+
+ @Autowired
+ AckAlarmsRepoService ackAlarmRepoService;
+
+ @Override
+ public Optional getObjectMapper() {
+ return Optional.ofNullable(objectMapper);
+ }
+
+ @Override
+ public Optional getRequest() {
+ return Optional.ofNullable(request);
+ }
+
+ @Override
+ @PreAuthorize("hasAnyAuthority('ROLE_ADMIN')" )
+ public ResponseEntity createAckAlarms(@Valid AckAlarmsCreate body) {
+ try {
+
+ AckAlarms c = ackAlarmRepoService.addAckAlarm( body );
+
+ return new ResponseEntity(c, HttpStatus.OK);
+ } catch (Exception e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+
+
+ @Override
+ @PreAuthorize("hasAnyAuthority('ROLE_ADMIN')" )
+ public ResponseEntity> listAckAlarms(@Valid String fields, @Valid Integer offset,
+ @Valid Integer limit, Map allParams) {
+ try {
+ if (allParams != null) {
+ allParams.remove("fields");
+ allParams.remove("offset");
+ allParams.remove("limit");
+ } else {
+ allParams = new HashMap<>();
+ }
+ if ((fields == null) && (allParams.size() == 0)) {
+
+ String myfields = "lastUpdate,lifecycleStatus";
+ return new ResponseEntity>(
+ ackAlarmRepoService.findAll( myfields, allParams), HttpStatus.OK);
+
+
+ } else {
+
+
+ return new ResponseEntity>(
+ ackAlarmRepoService.findAll(fields, allParams), HttpStatus.OK);
+ }
+
+ } catch (Exception e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+
+ @Override
+ @PreAuthorize("hasAnyAuthority('ROLE_ADMIN')" )
+ public ResponseEntity retrieveAckAlarms(String id, @Valid String fields) {
+ try {
+
+ return new ResponseEntity( ackAlarmRepoService.findById( id ), HttpStatus.OK);
+ } catch ( Exception e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+
+}
diff --git a/src/main/java/org/etsi/osl/tmf/am642/api/AlarmApi.java b/src/main/java/org/etsi/osl/tmf/am642/api/AlarmApi.java
new file mode 100644
index 0000000000000000000000000000000000000000..0c518aef511bf67ffd5909c044343d5870fba094
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/am642/api/AlarmApi.java
@@ -0,0 +1,222 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 - 2021 openslice.io
+ * %%
+ * 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==================================
+ */
+/**
+ * NOTE: This class is auto generated by the swagger code generator program (3.0.19).
+ * https://github.com/swagger-api/swagger-codegen
+ * Do not edit the class manually.
+ */
+package org.etsi.osl.tmf.am642.api;
+
+import java.io.IOException;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.etsi.osl.tmf.am642.model.Alarm;
+import org.etsi.osl.tmf.am642.model.AlarmCreate;
+import org.etsi.osl.tmf.am642.model.AlarmUpdate;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.http.HttpStatus;
+import org.springframework.http.ResponseEntity;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+import org.springframework.web.bind.annotation.RequestParam;
+import io.swagger.v3.oas.annotations.Operation;
+import io.swagger.v3.oas.annotations.Parameter;
+import io.swagger.v3.oas.annotations.responses.ApiResponse;
+import io.swagger.v3.oas.annotations.responses.ApiResponses;
+import io.swagger.v3.oas.annotations.tags.Tag;
+import jakarta.servlet.http.HttpServletRequest;
+import jakarta.validation.Valid;
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2021-02-15T11:15:47.327930400+02:00[Europe/Athens]")
+@Tag(name = "alarm", description = "the alarm API")
+public interface AlarmApi {
+
+ Logger log = LoggerFactory.getLogger(AlarmApi.class);
+
+ default Optional getObjectMapper(){
+ return Optional.empty();
+ }
+
+ default Optional getRequest(){
+ return Optional.empty();
+ }
+
+ default Optional getAcceptHeader() {
+ return getRequest().map(r -> r.getHeader("Accept"));
+ }
+
+ @Operation(summary = "Creates a Alarm", operationId = "createAlarm", description = "This operation creates a Alarm entity.", tags={ "alarm", })
+ @ApiResponses(value = {
+ @ApiResponse(responseCode = "400", description = "Created" ),
+ @ApiResponse(responseCode = "400", description = "Bad Request" ),
+ @ApiResponse(responseCode = "401", description = "Unauthorized" ),
+ @ApiResponse(responseCode = "403", description = "Forbidden" ),
+ @ApiResponse(responseCode = "405", description = "Method Not allowed" ),
+ @ApiResponse(responseCode = "409", description = "Conflict" ),
+ @ApiResponse(responseCode = "500", description = "Internal Server Error" ) })
+ @RequestMapping(value = "/alarm",
+ produces = { "application/json;charset=utf-8" },
+ consumes = { "application/json;charset=utf-8" },
+ method = RequestMethod.POST)
+ default ResponseEntity createAlarm(@Parameter(description = "The Alarm to be created" ,required=true ) @Valid @RequestBody AlarmCreate body
+) {
+ if(getObjectMapper().isPresent() && getAcceptHeader().isPresent()) {
+ if (getAcceptHeader().get().contains("application/json")) {
+ try {
+ return new ResponseEntity<>(getObjectMapper().get().readValue("{\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n}", Alarm.class), HttpStatus.NOT_IMPLEMENTED);
+ } catch (IOException e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+ } else {
+ log.warn("ObjectMapper or HttpServletRequest not configured in default AlarmApi interface so no example is generated");
+ }
+ return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
+ }
+
+
+ @Operation(summary = "Deletes a Alarm", operationId = "deleteAlarm", description = "This operation deletes a Alarm entity.", tags={ "alarm", })
+ @ApiResponses(value = {
+ @ApiResponse(responseCode = "204", description = "Deleted" ),
+ @ApiResponse(responseCode = "400", description = "Bad Request" ),
+ @ApiResponse(responseCode = "401", description = "Unauthorized" ),
+ @ApiResponse(responseCode = "403", description = "Forbidden" ),
+ @ApiResponse(responseCode = "404", description = "Not Found" ),
+ @ApiResponse(responseCode = "405", description = "Method Not allowed" ),
+ @ApiResponse(responseCode = "409", description = "Conflict" ),
+ @ApiResponse(responseCode = "500", description = "Internal Server Error" ) })
+ @RequestMapping(value = "/alarm/{id}",
+ produces = { "application/json;charset=utf-8" },
+ method = RequestMethod.DELETE)
+ default ResponseEntity deleteAlarm(@Parameter(description = "Identifier of the Alarm",required=true) @PathVariable("id") String id
+) {
+ if(getObjectMapper().isPresent() && getAcceptHeader().isPresent()) {
+ } else {
+ log.warn("ObjectMapper or HttpServletRequest not configured in default AlarmApi interface so no example is generated");
+ }
+ return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
+ }
+
+
+ @Operation(summary = "List or find Alarm objects", operationId = "listAlarm", description = "This operation list or find Alarm entities" , tags={ "alarm", })
+ @ApiResponses(value = {
+ @ApiResponse(responseCode ="200", description = "Success" ),
+ @ApiResponse(responseCode = "400", description = "Bad Request" ),
+ @ApiResponse(responseCode = "401", description = "Unauthorized" ),
+ @ApiResponse(responseCode = "403", description = "Forbidden" ),
+ @ApiResponse(responseCode = "404", description = "Not Found" ),
+ @ApiResponse(responseCode = "405", description = "Method Not allowed" ),
+ @ApiResponse(responseCode = "409", description = "Conflict" ),
+ @ApiResponse(responseCode = "500", description = "Internal Server Error" ) })
+ @RequestMapping(value = "/alarm",
+ produces = { "application/json;charset=utf-8" },
+ method = RequestMethod.GET)
+ default ResponseEntity> listAlarm(@Parameter(description = "Comma-separated properties to be provided in response") @Valid @RequestParam(value = "fields", required = false) String fields
+,@Parameter(description = "Requested index for start of resources to be provided in response") @Valid @RequestParam(value = "offset", required = false) Integer offset
+,@Parameter(description = "Requested number of resources to be provided in response") @Valid @RequestParam(value = "limit", required = false) Integer limit,
+@Parameter(hidden = true) @Valid @RequestParam Map allParams
+) {
+ if(getObjectMapper().isPresent() && getAcceptHeader().isPresent()) {
+ if (getAcceptHeader().get().contains("application/json")) {
+ try {
+ return new ResponseEntity<>(getObjectMapper().get().readValue("[ {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n}, {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n} ]", List.class), HttpStatus.NOT_IMPLEMENTED);
+ } catch (IOException e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+ } else {
+ log.warn("ObjectMapper or HttpServletRequest not configured in default AlarmApi interface so no example is generated");
+ }
+ return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
+ }
+
+
+ @Operation(summary = "Updates partially a Alarm", operationId = "patchAlarm", description = "This operation updates partially a Alarm entity.", tags={ "alarm", })
+ @ApiResponses(value = {
+ @ApiResponse(responseCode ="200", description = "Updated" ),
+ @ApiResponse(responseCode = "400", description = "Bad Request" ),
+ @ApiResponse(responseCode = "401", description = "Unauthorized" ),
+ @ApiResponse(responseCode = "403", description = "Forbidden" ),
+ @ApiResponse(responseCode = "404", description = "Not Found" ),
+ @ApiResponse(responseCode = "405", description = "Method Not allowed" ),
+ @ApiResponse(responseCode = "409", description = "Conflict" ),
+ @ApiResponse(responseCode = "500", description = "Internal Server Error" ) })
+ @RequestMapping(value = "/alarm/{id}",
+ produces = { "application/json;charset=utf-8" },
+ consumes = { "application/json;charset=utf-8" },
+ method = RequestMethod.PATCH)
+ default ResponseEntity patchAlarm(@Parameter(description = "The Alarm to be updated" ,required=true ) @Valid @RequestBody AlarmUpdate body
+,@Parameter(description = "Identifier of the Alarm",required=true) @PathVariable("id") String id
+) {
+ if(getObjectMapper().isPresent() && getAcceptHeader().isPresent()) {
+ if (getAcceptHeader().get().contains("application/json")) {
+ try {
+ return new ResponseEntity<>(getObjectMapper().get().readValue("{\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n}", Alarm.class), HttpStatus.NOT_IMPLEMENTED);
+ } catch (IOException e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+ } else {
+ log.warn("ObjectMapper or HttpServletRequest not configured in default AlarmApi interface so no example is generated");
+ }
+ return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
+ }
+
+
+ @Operation(summary = "Retrieves a Alarm by ID", operationId = "retrieveAlarm", description = "This operation retrieves a Alarm entity. Attribute selection is enabled for all first level attributes.", tags={ "alarm", })
+ @ApiResponses(value = {
+ @ApiResponse(responseCode ="200", description = "Success" ),
+ @ApiResponse(responseCode = "400", description = "Bad Request" ),
+ @ApiResponse(responseCode = "401", description = "Unauthorized" ),
+ @ApiResponse(responseCode = "403", description = "Forbidden" ),
+ @ApiResponse(responseCode = "404", description = "Not Found" ),
+ @ApiResponse(responseCode = "405", description = "Method Not allowed" ),
+ @ApiResponse(responseCode = "409", description = "Conflict" ),
+ @ApiResponse(responseCode = "500", description = "Internal Server Error" ) })
+ @RequestMapping(value = "/alarm/{id}",
+ produces = { "application/json;charset=utf-8" },
+ method = RequestMethod.GET)
+ default ResponseEntity retrieveAlarm(@Parameter(description = "Identifier of the Alarm",required=true) @PathVariable("id") String id
+,@Parameter(description = "Comma-separated properties to provide in response") @Valid @RequestParam(value = "fields", required = false) String fields
+) {
+ if(getObjectMapper().isPresent() && getAcceptHeader().isPresent()) {
+ if (getAcceptHeader().get().contains("application/json")) {
+ try {
+ return new ResponseEntity<>(getObjectMapper().get().readValue("{\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n}", Alarm.class), HttpStatus.NOT_IMPLEMENTED);
+ } catch (IOException e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+ } else {
+ log.warn("ObjectMapper or HttpServletRequest not configured in default AlarmApi interface so no example is generated");
+ }
+ return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
+ }
+
+}
diff --git a/src/main/java/org/etsi/osl/tmf/am642/api/AlarmApiController.java b/src/main/java/org/etsi/osl/tmf/am642/api/AlarmApiController.java
new file mode 100644
index 0000000000000000000000000000000000000000..f82067c35d138ff316894bd47add776e5e78bc86
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/am642/api/AlarmApiController.java
@@ -0,0 +1,152 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 - 2021 openslice.io
+ * %%
+ * 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.etsi.osl.tmf.am642.api;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.etsi.osl.tmf.am642.model.Alarm;
+import org.etsi.osl.tmf.am642.model.AlarmCreate;
+import org.etsi.osl.tmf.am642.model.AlarmUpdate;
+import org.etsi.osl.tmf.am642.reposervices.AlarmRepoService;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.HttpStatus;
+import org.springframework.http.ResponseEntity;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+import jakarta.servlet.http.HttpServletRequest;
+import jakarta.validation.Valid;
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2021-02-15T11:15:47.327930400+02:00[Europe/Athens]")
+@Controller
+@RequestMapping("/alarmManagement/v4/")
+
+public class AlarmApiController implements AlarmApi {
+
+ private final ObjectMapper objectMapper;
+
+ private final HttpServletRequest request;
+
+
+ private static final Logger log = LoggerFactory.getLogger(AlarmApiController.class);
+
+ @Autowired
+ AlarmRepoService alarmRepoService;
+
+ @org.springframework.beans.factory.annotation.Autowired
+ public AlarmApiController(ObjectMapper objectMapper, HttpServletRequest request) {
+ this.objectMapper = objectMapper;
+ this.request = request;
+ }
+
+ @Override
+ public Optional getObjectMapper() {
+ return Optional.ofNullable(objectMapper);
+ }
+
+ @Override
+ public Optional getRequest() {
+ return Optional.ofNullable(request);
+ }
+
+ @Override
+ @PreAuthorize("hasAnyAuthority('ROLE_ADMIN')" )
+ public ResponseEntity createAlarm(@Valid AlarmCreate body) {
+ try {
+
+ Alarm c = alarmRepoService.addAlarm( body );
+
+ return new ResponseEntity(c, HttpStatus.OK);
+ } catch (Exception e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+
+ @Override
+ @PreAuthorize("hasAnyAuthority('ROLE_ADMIN')" )
+ public ResponseEntity deleteAlarm(String id) {
+ try {
+
+ return new ResponseEntity( alarmRepoService.deleteById( id ), HttpStatus.OK);
+ } catch ( Exception e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+
+ @Override
+ @PreAuthorize("hasAnyAuthority('ROLE_ADMIN')" )
+ public ResponseEntity> listAlarm(@Valid String fields, @Valid Integer offset, @Valid Integer limit,
+ Map allParams) {
+ try {
+ if (allParams != null) {
+ allParams.remove("fields");
+ allParams.remove("offset");
+ allParams.remove("limit");
+ } else {
+ allParams = new HashMap<>();
+ }
+ if ((fields == null) && (allParams.size() == 0)) {
+
+ String myfields = null;
+ return new ResponseEntity>(
+ alarmRepoService.findAll( myfields, allParams), HttpStatus.OK);
+
+
+ } else {
+
+
+ return new ResponseEntity>(
+ alarmRepoService.findAll(fields, allParams), HttpStatus.OK);
+ }
+
+ } catch (Exception e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+
+ @Override
+ @PreAuthorize("hasAnyAuthority('ROLE_ADMIN')" )
+ public ResponseEntity patchAlarm(@Valid AlarmUpdate body, String id) {
+ Alarm c = alarmRepoService.updateAlarm( id, body );
+
+ return new ResponseEntity(c, HttpStatus.OK);
+ }
+
+ @Override
+ @PreAuthorize("hasAnyAuthority('ROLE_ADMIN')" )
+ public ResponseEntity retrieveAlarm(String id, @Valid String fields) {
+ try {
+
+ return new ResponseEntity( alarmRepoService.findById( id ), HttpStatus.OK);
+ } catch ( Exception e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+
+}
diff --git a/src/main/java/org/etsi/osl/tmf/am642/api/AlarmApiRouteBuilder.java b/src/main/java/org/etsi/osl/tmf/am642/api/AlarmApiRouteBuilder.java
new file mode 100644
index 0000000000000000000000000000000000000000..c9f7dd6e210115aacb2bbdb373f6a656c873615a
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/am642/api/AlarmApiRouteBuilder.java
@@ -0,0 +1,111 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 - 2021 openslice.io
+ * %%
+ * 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.etsi.osl.tmf.am642.api;
+
+import java.io.IOException;
+
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.databind.ObjectMapper;
+
+import org.apache.camel.LoggingLevel;
+import org.apache.camel.ProducerTemplate;
+import org.apache.camel.builder.RouteBuilder;
+import org.apache.camel.model.dataformat.JsonLibrary;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.etsi.osl.centrallog.client.CentralLogger;
+import org.etsi.osl.tmf.am642.model.AlarmCreate;
+import org.etsi.osl.tmf.am642.model.AlarmUpdate;
+import org.etsi.osl.tmf.am642.reposervices.AlarmRepoService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.beans.factory.annotation.Value;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.stereotype.Component;
+
+@Configuration
+@Component
+public class AlarmApiRouteBuilder extends RouteBuilder {
+
+ private static final transient Log logger = LogFactory.getLog(AlarmApiRouteBuilder.class.getName());
+
+
+ @Value("${ALARMS_ADD_ALARM}")
+ private String ALARMS_ADD_ALARM ="";
+
+ @Value("${ALARMS_UPDATE_ALARM}")
+ private String ALARMS_UPDATE_ALARM ="";
+
+ @Value("${ALARMS_GET_ALARM}")
+ private String ALARMS_GET_ALARM ="";
+
+
+
+ @Value("${spring.application.name}")
+ private String compname;
+
+ @Autowired
+ AlarmRepoService alarmRepoService;
+
+
+ @Autowired
+ private ProducerTemplate template;
+
+
+ @Autowired
+ private CentralLogger centralLogger;
+
+ @Override
+ public void configure() throws Exception {
+
+ from( ALARMS_ADD_ALARM )
+ .log(LoggingLevel.INFO, log, ALARMS_ADD_ALARM + " message received!")
+ .to("log:DEBUG?showBody=true&showHeaders=true")
+ .unmarshal()
+ .json(JsonLibrary.Jackson, AlarmCreate.class, true)
+ .bean( alarmRepoService, "addAlarm(${body})")
+ .marshal().json( JsonLibrary.Jackson, String.class)
+ .convertBodyTo( String.class );
+
+ from( ALARMS_UPDATE_ALARM )
+ .log(LoggingLevel.INFO, log, ALARMS_UPDATE_ALARM + " message received!")
+ .to("log:DEBUG?showBody=true&showHeaders=true")
+ .unmarshal()
+ .json(JsonLibrary.Jackson, AlarmUpdate.class, true)
+ .bean( alarmRepoService, "updateAlarm(${header.alarmid}, ${body})")
+ .bean( alarmRepoService, "findByUuidEager(${header.alarmid})")
+ .marshal().json( JsonLibrary.Jackson, String.class)
+ .convertBodyTo( String.class );
+
+ from( ALARMS_GET_ALARM )
+ .log(LoggingLevel.INFO, log, ALARMS_GET_ALARM + " message received!")
+ .to("log:DEBUG?showBody=true&showHeaders=true")
+ .bean( alarmRepoService, "findByUuidEager(${header.alarmid})")
+ .marshal().json( JsonLibrary.Jackson, String.class)
+ .convertBodyTo( String.class );
+
+ }
+
+
+ static String toJsonString(Object object) throws IOException {
+ ObjectMapper mapper = new ObjectMapper();
+ mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
+ return mapper.writeValueAsString(object);
+ }
+}
diff --git a/src/main/java/org/etsi/osl/tmf/am642/api/AlarmApiRouteBuilderEvents.java b/src/main/java/org/etsi/osl/tmf/am642/api/AlarmApiRouteBuilderEvents.java
new file mode 100644
index 0000000000000000000000000000000000000000..b53aea657ea9c88a8c4e1e7d11a3d85703e24fe4
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/am642/api/AlarmApiRouteBuilderEvents.java
@@ -0,0 +1,105 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 - 2021 openslice.io
+ * %%
+ * 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.etsi.osl.tmf.am642.api;
+
+import java.io.IOException;
+import java.util.HashMap;
+import java.util.Map;
+
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.databind.ObjectMapper;
+
+import org.apache.camel.ProducerTemplate;
+import org.apache.camel.builder.RouteBuilder;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.etsi.osl.centrallog.client.CLevel;
+import org.etsi.osl.centrallog.client.CentralLogger;
+import org.etsi.osl.tmf.am642.model.AlarmCreateEvent;
+import org.etsi.osl.tmf.common.model.OpensliceEvent;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.beans.factory.annotation.Value;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.stereotype.Component;
+
+@Configuration
+@Component
+public class AlarmApiRouteBuilderEvents extends RouteBuilder {
+
+ private static final transient Log logger = LogFactory.getLog(AlarmApiRouteBuilderEvents.class.getName());
+
+
+
+ @Value("${EVENT_ALARM_CREATE}")
+ private String EVENT_ALARM_CREATE ="";
+
+
+ @Value("${spring.application.name}")
+ private String compname;
+
+
+ @Autowired
+ private ProducerTemplate template;
+
+
+ @Autowired
+ private CentralLogger centralLogger;
+
+ @Override
+ public void configure() throws Exception {
+
+
+
+ }
+
+ /**
+ * @param n
+ */
+ public void publishEvent(final OpensliceEvent n, final String objId) {
+ n.setEventType( n.getClass().getName());
+ logger.info("will send Event for type " + n.getEventType());
+ try {
+ String msgtopic="";
+
+ if ( n instanceof AlarmCreateEvent) {
+ msgtopic = EVENT_ALARM_CREATE;
+ }
+ Map map = new HashMap<>();
+ map.put("eventid", n.getEventId() );
+ map.put("objId", objId );
+
+ String apayload = toJsonString(n);
+ template.sendBodyAndHeaders(msgtopic, apayload , map);
+
+
+ centralLogger.log( CLevel.INFO, apayload, compname );
+
+ } catch (Exception e) {
+ e.printStackTrace();
+ logger.error("Cannot send Event . " + e.getMessage() );
+ }
+ }
+
+ static String toJsonString(Object object) throws IOException {
+ ObjectMapper mapper = new ObjectMapper();
+ mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
+ return mapper.writeValueAsString(object);
+ }
+}
diff --git a/src/main/java/org/etsi/osl/tmf/am642/api/ApiException.java b/src/main/java/org/etsi/osl/tmf/am642/api/ApiException.java
new file mode 100644
index 0000000000000000000000000000000000000000..c4c5c2d9f67b97aa8045d65c160d12703b59cbd7
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/am642/api/ApiException.java
@@ -0,0 +1,29 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 - 2021 openslice.io
+ * %%
+ * 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.etsi.osl.tmf.am642.api;
+
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2021-02-15T11:15:47.327930400+02:00[Europe/Athens]")
+public class ApiException extends Exception{
+ private int code;
+ public ApiException (int code, String msg) {
+ super(msg);
+ this.code = code;
+ }
+}
diff --git a/src/main/java/org/etsi/osl/tmf/am642/api/ApiOriginFilter.java b/src/main/java/org/etsi/osl/tmf/am642/api/ApiOriginFilter.java
new file mode 100644
index 0000000000000000000000000000000000000000..5ac39b2ce0be32b66549b28ea625d6813b37df69
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/am642/api/ApiOriginFilter.java
@@ -0,0 +1,50 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 - 2021 openslice.io
+ * %%
+ * 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.etsi.osl.tmf.am642.api;
+
+import java.io.IOException;
+
+import jakarta.servlet.FilterChain;
+import jakarta.servlet.FilterConfig;
+import jakarta.servlet.ServletException;
+import jakarta.servlet.ServletRequest;
+import jakarta.servlet.ServletResponse;
+import jakarta.servlet.http.HttpServletResponse;
+
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2021-02-15T11:15:47.327930400+02:00[Europe/Athens]")
+public class ApiOriginFilter implements jakarta.servlet.Filter {
+ @Override
+ public void doFilter(ServletRequest request, ServletResponse response,
+ FilterChain chain) throws IOException, ServletException {
+ HttpServletResponse res = (HttpServletResponse) response;
+ res.addHeader("Access-Control-Allow-Origin", "*");
+ res.addHeader("Access-Control-Allow-Methods", "GET, POST, DELETE, PUT");
+ res.addHeader("Access-Control-Allow-Headers", "Content-Type");
+ chain.doFilter(request, response);
+ }
+
+ @Override
+ public void destroy() {
+ }
+
+ @Override
+ public void init(FilterConfig filterConfig) throws ServletException {
+ }
+}
diff --git a/src/main/java/org/etsi/osl/tmf/am642/api/ApiResponseMessage.java b/src/main/java/org/etsi/osl/tmf/am642/api/ApiResponseMessage.java
new file mode 100644
index 0000000000000000000000000000000000000000..abe236789ca31058576cc94ddc7dfa9c9a0b5270
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/am642/api/ApiResponseMessage.java
@@ -0,0 +1,88 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 - 2021 openslice.io
+ * %%
+ * 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.etsi.osl.tmf.am642.api;
+
+import jakarta.xml.bind.annotation.XmlTransient;
+
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2021-02-15T11:15:47.327930400+02:00[Europe/Athens]")
+@jakarta.xml.bind.annotation.XmlRootElement
+public class ApiResponseMessage {
+ public static final int ERROR = 1;
+ public static final int WARNING = 2;
+ public static final int INFO = 3;
+ public static final int OK = 4;
+ public static final int TOO_BUSY = 5;
+
+ int code;
+ String type;
+ String message;
+
+ public ApiResponseMessage(){}
+
+ public ApiResponseMessage(int code, String message){
+ this.code = code;
+ switch(code){
+ case ERROR:
+ setType("error");
+ break;
+ case WARNING:
+ setType("warning");
+ break;
+ case INFO:
+ setType("info");
+ break;
+ case OK:
+ setType("ok");
+ break;
+ case TOO_BUSY:
+ setType("too busy");
+ break;
+ default:
+ setType("unknown");
+ break;
+ }
+ this.message = message;
+ }
+
+ @XmlTransient
+ public int getCode() {
+ return code;
+ }
+
+ public void setCode(int code) {
+ this.code = code;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public String getMessage() {
+ return message;
+ }
+
+ public void setMessage(String message) {
+ this.message = message;
+ }
+}
diff --git a/src/main/java/org/etsi/osl/tmf/am642/api/ClearAlarmsApi.java b/src/main/java/org/etsi/osl/tmf/am642/api/ClearAlarmsApi.java
new file mode 100644
index 0000000000000000000000000000000000000000..5d3a6148520cc719b02b0b98f4e79d4cab9bfb41
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/am642/api/ClearAlarmsApi.java
@@ -0,0 +1,169 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 - 2021 openslice.io
+ * %%
+ * 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==================================
+ */
+/**
+ * NOTE: This class is auto generated by the swagger code generator program (3.0.19).
+ * https://github.com/swagger-api/swagger-codegen
+ * Do not edit the class manually.
+ */
+package org.etsi.osl.tmf.am642.api;
+
+import java.io.IOException;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.etsi.osl.tmf.am642.model.ClearAlarms;
+import org.etsi.osl.tmf.am642.model.ClearAlarmsCreate;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.http.HttpStatus;
+import org.springframework.http.ResponseEntity;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+import org.springframework.web.bind.annotation.RequestParam;
+import io.swagger.v3.oas.annotations.Operation;
+import io.swagger.v3.oas.annotations.Parameter;
+import io.swagger.v3.oas.annotations.media.Content;
+import io.swagger.v3.oas.annotations.media.Schema;
+import io.swagger.v3.oas.annotations.responses.ApiResponse;
+import io.swagger.v3.oas.annotations.responses.ApiResponses;
+import io.swagger.v3.oas.annotations.tags.Tag;
+import jakarta.servlet.http.HttpServletRequest;
+import jakarta.validation.Valid;
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2021-02-15T11:15:47.327930400+02:00[Europe/Athens]")
+@Tag(name = "clearAlarms", description = "the clearAlarms API")
+public interface ClearAlarmsApi {
+
+ Logger log = LoggerFactory.getLogger(ClearAlarmsApi.class);
+
+ default Optional getObjectMapper(){
+ return Optional.empty();
+ }
+
+ default Optional getRequest(){
+ return Optional.empty();
+ }
+
+ default Optional getAcceptHeader() {
+ return getRequest().map(r -> r.getHeader("Accept"));
+ }
+
+// schema = @Schema(implementation = ClearAlarms.class)
+
+ @Operation(summary = "Creates a ClearAlarms", operationId = "createClearAlarms", description = "This operation creates a ClearAlarms entity.", responses = { @ApiResponse( content= @Content( schema =@Schema(implementation = ClearAlarms.class) ) ) }, tags={ "clearAlarms", })
+ @ApiResponses(value = {
+ @ApiResponse(responseCode = "400", description = "Created"),
+ @ApiResponse(responseCode = "400", description = "Bad Request" ),
+ @ApiResponse(responseCode = "401", description = "Unauthorized" ),
+ @ApiResponse(responseCode = "403", description = "Forbidden" ),
+ @ApiResponse(responseCode = "405", description = "Method Not allowed" ),
+ @ApiResponse(responseCode = "409", description = "Conflict" ),
+ @ApiResponse(responseCode = "500", description = "Internal Server Error" ) })
+ @RequestMapping(value = "/clearAlarms",
+ produces = { "application/json;charset=utf-8" },
+ consumes = { "application/json;charset=utf-8" },
+ method = RequestMethod.POST)
+ default ResponseEntity createClearAlarms(@Parameter(description = "The ClearAlarms to be created" ,required=true ) @Valid @RequestBody ClearAlarmsCreate body
+) {
+ if(getObjectMapper().isPresent() && getAcceptHeader().isPresent()) {
+ if (getAcceptHeader().get().contains("application/json")) {
+ try {
+ return new ResponseEntity<>(getObjectMapper().get().readValue("{\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"alarmPattern\" : [ {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n }, {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n } ],\r\n \"@type\" : \"@type\",\r\n \"clearedAlarm\" : [ {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n }, {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n } ],\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"clearSystemId\" : \"clearSystemId\"\r\n}", ClearAlarms.class), HttpStatus.NOT_IMPLEMENTED);
+ } catch (IOException e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+ } else {
+ log.warn("ObjectMapper or HttpServletRequest not configured in default ClearAlarmsApi interface so no example is generated");
+ }
+ return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
+ }
+
+
+ @Operation(summary = "List or find ClearAlarms objects", operationId = "listClearAlarms", description = "This operation list or find ClearAlarms entities" , tags={ "clearAlarms", })
+ @ApiResponses(value = {
+ @ApiResponse(responseCode ="200", description = "Success" ),
+ @ApiResponse(responseCode = "400", description = "Bad Request" ),
+ @ApiResponse(responseCode = "401", description = "Unauthorized" ),
+ @ApiResponse(responseCode = "403", description = "Forbidden" ),
+ @ApiResponse(responseCode = "404", description = "Not Found" ),
+ @ApiResponse(responseCode = "405", description = "Method Not allowed" ),
+ @ApiResponse(responseCode = "409", description = "Conflict" ),
+ @ApiResponse(responseCode = "500", description = "Internal Server Error" ) })
+ @RequestMapping(value = "/clearAlarms",
+ produces = { "application/json;charset=utf-8" },
+ method = RequestMethod.GET)
+ default ResponseEntity> listClearAlarms(@Parameter(description = "Comma-separated properties to be provided in response") @Valid @RequestParam(value = "fields", required = false) String fields
+,@Parameter(description = "Requested index for start of resources to be provided in response") @Valid @RequestParam(value = "offset", required = false) Integer offset
+,@Parameter(description = "Requested number of resources to be provided in response") @Valid @RequestParam(value = "limit", required = false) Integer limit
+, Map allParams
+) {
+ if(getObjectMapper().isPresent() && getAcceptHeader().isPresent()) {
+ if (getAcceptHeader().get().contains("application/json")) {
+ try {
+ return new ResponseEntity<>(getObjectMapper().get().readValue("[ {\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"alarmPattern\" : [ {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n }, {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n } ],\r\n \"@type\" : \"@type\",\r\n \"clearedAlarm\" : [ {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n }, {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n } ],\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"clearSystemId\" : \"clearSystemId\"\r\n}, {\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"alarmPattern\" : [ {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n }, {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n } ],\r\n \"@type\" : \"@type\",\r\n \"clearedAlarm\" : [ {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n }, {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n } ],\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"clearSystemId\" : \"clearSystemId\"\r\n} ]", List.class), HttpStatus.NOT_IMPLEMENTED);
+ } catch (IOException e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+ } else {
+ log.warn("ObjectMapper or HttpServletRequest not configured in default ClearAlarmsApi interface so no example is generated");
+ }
+ return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
+ }
+
+
+ @Operation(summary = "Retrieves a ClearAlarms by ID", operationId = "retrieveClearAlarms", description = "This operation retrieves a ClearAlarms entity. Attribute selection is enabled for all first level attributes.", tags={ "clearAlarms", })
+ @ApiResponses(value = {
+ @ApiResponse(responseCode ="200", description = "Success" ),
+ @ApiResponse(responseCode = "400", description = "Bad Request" ),
+ @ApiResponse(responseCode = "401", description = "Unauthorized" ),
+ @ApiResponse(responseCode = "403", description = "Forbidden" ),
+ @ApiResponse(responseCode = "404", description = "Not Found" ),
+ @ApiResponse(responseCode = "405", description = "Method Not allowed" ),
+ @ApiResponse(responseCode = "409", description = "Conflict" ),
+ @ApiResponse(responseCode = "500", description = "Internal Server Error" ) })
+ @RequestMapping(value = "/clearAlarms/{id}",
+ produces = { "application/json;charset=utf-8" },
+ method = RequestMethod.GET)
+ default ResponseEntity retrieveClearAlarms(@Parameter(description = "Identifier of the ClearAlarms",required=true) @PathVariable("id") String id
+,@Parameter(description = "Comma-separated properties to provide in response") @Valid @RequestParam(value = "fields", required = false) String fields
+) {
+ if(getObjectMapper().isPresent() && getAcceptHeader().isPresent()) {
+ if (getAcceptHeader().get().contains("application/json")) {
+ try {
+ return new ResponseEntity<>(getObjectMapper().get().readValue("{\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"alarmPattern\" : [ {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n }, {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n } ],\r\n \"@type\" : \"@type\",\r\n \"clearedAlarm\" : [ {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n }, {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n } ],\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"clearSystemId\" : \"clearSystemId\"\r\n}", ClearAlarms.class), HttpStatus.NOT_IMPLEMENTED);
+ } catch (IOException e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+ } else {
+ log.warn("ObjectMapper or HttpServletRequest not configured in default ClearAlarmsApi interface so no example is generated");
+ }
+ return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
+ }
+
+}
diff --git a/src/main/java/org/etsi/osl/tmf/am642/api/ClearAlarmsApiController.java b/src/main/java/org/etsi/osl/tmf/am642/api/ClearAlarmsApiController.java
new file mode 100644
index 0000000000000000000000000000000000000000..3bcd49465c858bd5c2cd476d78f3682bf5f3399e
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/am642/api/ClearAlarmsApiController.java
@@ -0,0 +1,132 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 - 2021 openslice.io
+ * %%
+ * 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.etsi.osl.tmf.am642.api;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.etsi.osl.tmf.am642.model.ClearAlarms;
+import org.etsi.osl.tmf.am642.model.ClearAlarmsCreate;
+import org.etsi.osl.tmf.am642.reposervices.ClearAlarmsRepoService;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.HttpStatus;
+import org.springframework.http.ResponseEntity;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+import jakarta.servlet.http.HttpServletRequest;
+import jakarta.validation.Valid;
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2021-02-15T11:15:47.327930400+02:00[Europe/Athens]")
+@Controller
+@RequestMapping("/alarmManagement/v4/")
+public class ClearAlarmsApiController implements ClearAlarmsApi {
+
+ private final ObjectMapper objectMapper;
+
+ private final HttpServletRequest request;
+ private static final Logger log = LoggerFactory.getLogger(ClearAlarmsApiController.class);
+
+ @Autowired
+ ClearAlarmsRepoService clearAlarmRepoService;
+
+
+ @org.springframework.beans.factory.annotation.Autowired
+ public ClearAlarmsApiController(ObjectMapper objectMapper, HttpServletRequest request) {
+ this.objectMapper = objectMapper;
+ this.request = request;
+ }
+
+ @Override
+ public Optional getObjectMapper() {
+ return Optional.ofNullable(objectMapper);
+ }
+
+ @Override
+ public Optional getRequest() {
+ return Optional.ofNullable(request);
+ }
+
+
+ @Override
+ @PreAuthorize("hasAnyAuthority('ROLE_ADMIN')" )
+ public ResponseEntity createClearAlarms(@Valid ClearAlarmsCreate body) {
+ try {
+
+ ClearAlarms c = clearAlarmRepoService.addClearAlarm( body );
+
+ return new ResponseEntity(c, HttpStatus.OK);
+ } catch (Exception e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+
+
+ @Override
+ @PreAuthorize("hasAnyAuthority('ROLE_ADMIN')" )
+ public ResponseEntity> listClearAlarms(@Valid String fields, @Valid Integer offset,
+ @Valid Integer limit, Map allParams) {
+ try {
+ if (allParams != null) {
+ allParams.remove("fields");
+ allParams.remove("offset");
+ allParams.remove("limit");
+ } else {
+ allParams = new HashMap<>();
+ }
+ if ((fields == null) && (allParams.size() == 0)) {
+
+ String myfields = "lastUpdate,lifecycleStatus";
+ return new ResponseEntity>(
+ clearAlarmRepoService.findAll( myfields, allParams), HttpStatus.OK);
+
+
+ } else {
+
+
+ return new ResponseEntity>(
+ clearAlarmRepoService.findAll(fields, allParams), HttpStatus.OK);
+ }
+
+ } catch (Exception e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+
+ @Override
+ @PreAuthorize("hasAnyAuthority('ROLE_ADMIN')" )
+ public ResponseEntity retrieveClearAlarms(String id, @Valid String fields) {
+ try {
+
+ return new ResponseEntity( clearAlarmRepoService.findById( id ), HttpStatus.OK);
+ } catch ( Exception e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+
+
+}
diff --git a/src/main/java/org/etsi/osl/tmf/am642/api/CommentAlarmsApi.java b/src/main/java/org/etsi/osl/tmf/am642/api/CommentAlarmsApi.java
new file mode 100644
index 0000000000000000000000000000000000000000..529bf3d2088ae6618805dba2a699e694efd18918
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/am642/api/CommentAlarmsApi.java
@@ -0,0 +1,164 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 - 2021 openslice.io
+ * %%
+ * 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==================================
+ */
+/**
+ * NOTE: This class is auto generated by the swagger code generator program (3.0.19).
+ * https://github.com/swagger-api/swagger-codegen
+ * Do not edit the class manually.
+ */
+package org.etsi.osl.tmf.am642.api;
+
+import java.io.IOException;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.etsi.osl.tmf.am642.model.CommentAlarms;
+import org.etsi.osl.tmf.am642.model.CommentAlarmsCreate;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.http.HttpStatus;
+import org.springframework.http.ResponseEntity;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+import org.springframework.web.bind.annotation.RequestParam;
+import io.swagger.v3.oas.annotations.Operation;
+import io.swagger.v3.oas.annotations.Parameter;
+import io.swagger.v3.oas.annotations.responses.ApiResponse;
+import io.swagger.v3.oas.annotations.responses.ApiResponses;
+import io.swagger.v3.oas.annotations.tags.Tag;
+import jakarta.servlet.http.HttpServletRequest;
+import jakarta.validation.Valid;
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2021-02-15T11:15:47.327930400+02:00[Europe/Athens]")
+@Tag(name = "commentAlarms", description = "the commentAlarms API")
+public interface CommentAlarmsApi {
+
+ Logger log = LoggerFactory.getLogger(CommentAlarmsApi.class);
+
+ default Optional getObjectMapper(){
+ return Optional.empty();
+ }
+
+ default Optional getRequest(){
+ return Optional.empty();
+ }
+
+ default Optional getAcceptHeader() {
+ return getRequest().map(r -> r.getHeader("Accept"));
+ }
+
+ @Operation(summary = "Creates a CommentAlarms", operationId = "createCommentAlarms", description = "This operation creates a CommentAlarms entity.", tags={ "commentAlarms", })
+ @ApiResponses(value = {
+ @ApiResponse(responseCode = "400", description = "Created"),
+ @ApiResponse(responseCode = "400", description = "Bad Request" ),
+ @ApiResponse(responseCode = "401", description = "Unauthorized" ),
+ @ApiResponse(responseCode = "403", description = "Forbidden" ),
+ @ApiResponse(responseCode = "405", description = "Method Not allowed" ),
+ @ApiResponse(responseCode = "409", description = "Conflict" ),
+ @ApiResponse(responseCode = "500", description = "Internal Server Error" ) })
+ @RequestMapping(value = "/commentAlarms",
+ produces = { "application/json;charset=utf-8" },
+ consumes = { "application/json;charset=utf-8" },
+ method = RequestMethod.POST)
+ default ResponseEntity createCommentAlarms(@Parameter(description = "The CommentAlarms to be created" ,required=true ) @Valid @RequestBody CommentAlarmsCreate body
+) {
+ if(getObjectMapper().isPresent() && getAcceptHeader().isPresent()) {
+ if (getAcceptHeader().get().contains("application/json")) {
+ try {
+ return new ResponseEntity<>(getObjectMapper().get().readValue("{\r\n \"commentedAlarm\" : [ {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n }, {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n } ],\r\n \"@baseType\" : \"@baseType\",\r\n \"alarmPattern\" : [ {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n }, {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n } ],\r\n \"@type\" : \"@type\",\r\n \"comment\" : {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n },\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n}", CommentAlarms.class), HttpStatus.NOT_IMPLEMENTED);
+ } catch (IOException e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+ } else {
+ log.warn("ObjectMapper or HttpServletRequest not configured in default CommentAlarmsApi interface so no example is generated");
+ }
+ return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
+ }
+
+
+ @Operation(summary = "List or find CommentAlarms objects", operationId = "listCommentAlarms", description = "This operation list or find CommentAlarms entities" , tags={ "commentAlarms", })
+ @ApiResponses(value = {
+ @ApiResponse(responseCode ="200", description = "Success" ),
+ @ApiResponse(responseCode = "400", description = "Bad Request" ),
+ @ApiResponse(responseCode = "401", description = "Unauthorized" ),
+ @ApiResponse(responseCode = "403", description = "Forbidden" ),
+ @ApiResponse(responseCode = "404", description = "Not Found" ),
+ @ApiResponse(responseCode = "405", description = "Method Not allowed" ),
+ @ApiResponse(responseCode = "409", description = "Conflict" ),
+ @ApiResponse(responseCode = "500", description = "Internal Server Error" ) })
+ @RequestMapping(value = "/commentAlarms",
+ produces = { "application/json;charset=utf-8" },
+ method = RequestMethod.GET)
+ default ResponseEntity> listCommentAlarms(@Parameter(description = "Comma-separated properties to be provided in response") @Valid @RequestParam(value = "fields", required = false) String fields
+,@Parameter(description = "Requested index for start of resources to be provided in response") @Valid @RequestParam(value = "offset", required = false) Integer offset
+,@Parameter(description = "Requested number of resources to be provided in response") @Valid @RequestParam(value = "limit", required = false) Integer limit
+, Map allParams) {
+ if(getObjectMapper().isPresent() && getAcceptHeader().isPresent()) {
+ if (getAcceptHeader().get().contains("application/json")) {
+ try {
+ return new ResponseEntity<>(getObjectMapper().get().readValue("[ {\r\n \"commentedAlarm\" : [ {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n }, {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n } ],\r\n \"@baseType\" : \"@baseType\",\r\n \"alarmPattern\" : [ {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n }, {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n } ],\r\n \"@type\" : \"@type\",\r\n \"comment\" : {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n },\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n}, {\r\n \"commentedAlarm\" : [ {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n }, {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n } ],\r\n \"@baseType\" : \"@baseType\",\r\n \"alarmPattern\" : [ {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n }, {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n } ],\r\n \"@type\" : \"@type\",\r\n \"comment\" : {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n },\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n} ]", List.class), HttpStatus.NOT_IMPLEMENTED);
+ } catch (IOException e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+ } else {
+ log.warn("ObjectMapper or HttpServletRequest not configured in default CommentAlarmsApi interface so no example is generated");
+ }
+ return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
+ }
+
+
+ @Operation(summary = "Retrieves a CommentAlarms by ID", operationId = "retrieveCommentAlarms", description = "This operation retrieves a CommentAlarms entity. Attribute selection is enabled for all first level attributes.", tags={ "commentAlarms", })
+ @ApiResponses(value = {
+ @ApiResponse(responseCode ="200", description = "Success" ),
+ @ApiResponse(responseCode = "400", description = "Bad Request" ),
+ @ApiResponse(responseCode = "401", description = "Unauthorized" ),
+ @ApiResponse(responseCode = "403", description = "Forbidden" ),
+ @ApiResponse(responseCode = "404", description = "Not Found" ),
+ @ApiResponse(responseCode = "405", description = "Method Not allowed" ),
+ @ApiResponse(responseCode = "409", description = "Conflict" ),
+ @ApiResponse(responseCode = "500", description = "Internal Server Error" ) })
+ @RequestMapping(value = "/commentAlarms/{id}",
+ produces = { "application/json;charset=utf-8" },
+ method = RequestMethod.GET)
+ default ResponseEntity retrieveCommentAlarms(@Parameter(description = "Identifier of the CommentAlarms",required=true) @PathVariable("id") String id
+,@Parameter(description = "Comma-separated properties to provide in response") @Valid @RequestParam(value = "fields", required = false) String fields
+) {
+ if(getObjectMapper().isPresent() && getAcceptHeader().isPresent()) {
+ if (getAcceptHeader().get().contains("application/json")) {
+ try {
+ return new ResponseEntity<>(getObjectMapper().get().readValue("{\r\n \"commentedAlarm\" : [ {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n }, {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n } ],\r\n \"@baseType\" : \"@baseType\",\r\n \"alarmPattern\" : [ {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n }, {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n } ],\r\n \"@type\" : \"@type\",\r\n \"comment\" : {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n },\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n}", CommentAlarms.class), HttpStatus.NOT_IMPLEMENTED);
+ } catch (IOException e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+ } else {
+ log.warn("ObjectMapper or HttpServletRequest not configured in default CommentAlarmsApi interface so no example is generated");
+ }
+ return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
+ }
+
+}
diff --git a/src/main/java/org/etsi/osl/tmf/am642/api/CommentAlarmsApiController.java b/src/main/java/org/etsi/osl/tmf/am642/api/CommentAlarmsApiController.java
new file mode 100644
index 0000000000000000000000000000000000000000..b5fe3279acfc99b8fbfad845b735399673377941
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/am642/api/CommentAlarmsApiController.java
@@ -0,0 +1,129 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 - 2021 openslice.io
+ * %%
+ * 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.etsi.osl.tmf.am642.api;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.etsi.osl.tmf.am642.model.CommentAlarms;
+import org.etsi.osl.tmf.am642.model.CommentAlarmsCreate;
+import org.etsi.osl.tmf.am642.reposervices.CommentAlarmsRepoService;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.HttpStatus;
+import org.springframework.http.ResponseEntity;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+import jakarta.servlet.http.HttpServletRequest;
+import jakarta.validation.Valid;
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2021-02-15T11:15:47.327930400+02:00[Europe/Athens]")
+@Controller
+@RequestMapping("/alarmManagement/v4/")
+public class CommentAlarmsApiController implements CommentAlarmsApi {
+
+ private final ObjectMapper objectMapper;
+
+ private final HttpServletRequest request;
+
+ @Autowired
+ CommentAlarmsRepoService commentAlarmRepoService;
+
+ private static final Logger log = LoggerFactory.getLogger(CommentAlarmsApiController.class);
+
+ @org.springframework.beans.factory.annotation.Autowired
+ public CommentAlarmsApiController(ObjectMapper objectMapper, HttpServletRequest request) {
+ this.objectMapper = objectMapper;
+ this.request = request;
+ }
+
+ @Override
+ public Optional getObjectMapper() {
+ return Optional.ofNullable(objectMapper);
+ }
+
+ @Override
+ public Optional getRequest() {
+ return Optional.ofNullable(request);
+ }
+
+
+ @Override
+ @PreAuthorize("hasAnyAuthority('ROLE_ADMIN')" )
+ public ResponseEntity createCommentAlarms(@Valid CommentAlarmsCreate body) {
+ try {
+
+ CommentAlarms c = commentAlarmRepoService.addCommentAlarms(body);
+
+ return new ResponseEntity(c, HttpStatus.OK);
+ } catch (Exception e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+
+
+ @Override
+ @PreAuthorize("hasAnyAuthority('ROLE_ADMIN')" )
+ public ResponseEntity retrieveCommentAlarms(String id, @Valid String fields) {
+ try {
+
+ return new ResponseEntity(commentAlarmRepoService.findById(id), HttpStatus.OK);
+ } catch (Exception e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+
+
+ @Override
+ @PreAuthorize("hasAnyAuthority('ROLE_ADMIN')" )
+ public ResponseEntity> listCommentAlarms(@Valid String fields, @Valid Integer offset,
+ @Valid Integer limit, Map allParams) {
+ try {
+ if (allParams != null) {
+ allParams.remove("fields");
+ allParams.remove("offset");
+ allParams.remove("limit");
+ } else {
+ allParams = new HashMap<>();
+ }
+ if ((fields == null) && (allParams.size() == 0)) {
+
+ String myfields = "lastUpdate,lifecycleStatus";
+ return new ResponseEntity>(commentAlarmRepoService.findAll(myfields, allParams),
+ HttpStatus.OK);
+
+ } else {
+
+ return new ResponseEntity>(commentAlarmRepoService.findAll(fields, allParams),
+ HttpStatus.OK);
+ }
+
+ } catch (Exception e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+}
diff --git a/src/main/java/org/etsi/osl/tmf/am642/api/GroupAlarmsApi.java b/src/main/java/org/etsi/osl/tmf/am642/api/GroupAlarmsApi.java
new file mode 100644
index 0000000000000000000000000000000000000000..d595a826db0f212973a6353e669ab5477c69ec28
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/am642/api/GroupAlarmsApi.java
@@ -0,0 +1,169 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 - 2021 openslice.io
+ * %%
+ * 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==================================
+ */
+/**
+ * NOTE: This class is auto generated by the swagger code generator program (3.0.19).
+ * https://github.com/swagger-api/swagger-codegen
+ * Do not edit the class manually.
+ */
+package org.etsi.osl.tmf.am642.api;
+
+import java.io.IOException;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.etsi.osl.tmf.am642.model.GroupAlarms;
+import org.etsi.osl.tmf.am642.model.GroupAlarmsCreate;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.http.HttpStatus;
+import org.springframework.http.ResponseEntity;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+import org.springframework.web.bind.annotation.RequestParam;
+import io.swagger.v3.oas.annotations.Operation;
+import io.swagger.v3.oas.annotations.Parameter;
+import io.swagger.v3.oas.annotations.responses.ApiResponse;
+import io.swagger.v3.oas.annotations.responses.ApiResponses;
+import io.swagger.v3.oas.annotations.tags.Tag;
+import jakarta.servlet.http.HttpServletRequest;
+import jakarta.validation.Valid;
+
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2021-02-15T11:15:47.327930400+02:00[Europe/Athens]")
+@Tag(name = "groupAlarms", description = "the groupAlarms API")
+public interface GroupAlarmsApi {
+
+ Logger log = LoggerFactory.getLogger(GroupAlarmsApi.class);
+
+ default Optional getObjectMapper() {
+ return Optional.empty();
+ }
+
+ default Optional getRequest() {
+ return Optional.empty();
+ }
+
+ default Optional getAcceptHeader() {
+ return getRequest().map(r -> r.getHeader("Accept"));
+ }
+
+ @Operation(summary = "Creates a GroupAlarms", operationId = "createGroupAlarms", description = "This operation creates a GroupAlarms entity." , tags = {
+ "groupAlarms", })
+ @ApiResponses(value = { @ApiResponse(responseCode = "400", description = "Created" ),
+ @ApiResponse(responseCode = "400", description = "Bad Request" ),
+ @ApiResponse(responseCode = "401", description = "Unauthorized" ),
+ @ApiResponse(responseCode = "403", description = "Forbidden" ),
+ @ApiResponse(responseCode = "405", description = "Method Not allowed" ),
+ @ApiResponse(responseCode = "409", description = "Conflict" ),
+ @ApiResponse(responseCode = "500", description = "Internal Server Error" ) })
+ @RequestMapping(value = "/groupAlarms", produces = { "application/json;charset=utf-8" }, consumes = {
+ "application/json;charset=utf-8" }, method = RequestMethod.POST)
+ default ResponseEntity createGroupAlarms(
+ @Parameter(description = "The GroupAlarms to be created", required = true) @Valid @RequestBody GroupAlarmsCreate body) {
+ if (getObjectMapper().isPresent() && getAcceptHeader().isPresent()) {
+ if (getAcceptHeader().get().contains("application/json")) {
+ try {
+ return new ResponseEntity<>(getObjectMapper().get().readValue(
+ "{\r\n \"@baseType\" : \"@baseType\",\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"@type\" : \"@type\",\r\n \"groupedAlarm\" : [ null, null ],\r\n \"correlatedAlarm\" : [ {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n }, {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n } ],\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\"\r\n}",
+ GroupAlarms.class), HttpStatus.NOT_IMPLEMENTED);
+ } catch (IOException e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+ } else {
+ log.warn(
+ "ObjectMapper or HttpServletRequest not configured in default GroupAlarmsApi interface so no example is generated");
+ }
+ return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
+ }
+
+ @Operation(summary = "List or find GroupAlarms objects", operationId = "listGroupAlarms", description = "This operation list or find GroupAlarms entities" , tags = {
+ "groupAlarms", })
+ @ApiResponses(value = {
+ @ApiResponse(responseCode ="200", description = "Success" ),
+ @ApiResponse(responseCode = "400", description = "Bad Request" ),
+ @ApiResponse(responseCode = "401", description = "Unauthorized" ),
+ @ApiResponse(responseCode = "403", description = "Forbidden" ),
+ @ApiResponse(responseCode = "404", description = "Not Found" ),
+ @ApiResponse(responseCode = "405", description = "Method Not allowed" ),
+ @ApiResponse(responseCode = "409", description = "Conflict" ),
+ @ApiResponse(responseCode = "500", description = "Internal Server Error" ) })
+ @RequestMapping(value = "/groupAlarms", produces = { "application/json;charset=utf-8" }, method = RequestMethod.GET)
+ default ResponseEntity> listGroupAlarms(
+ @Parameter(description = "Comma-separated properties to be provided in response") @Valid @RequestParam(value = "fields", required = false) String fields,
+ @Parameter(description = "Requested index for start of resources to be provided in response") @Valid @RequestParam(value = "offset", required = false) Integer offset,
+ @Parameter(description = "Requested number of resources to be provided in response") @Valid @RequestParam(value = "limit", required = false) Integer limit,
+ Map allParams) {
+ if (getObjectMapper().isPresent() && getAcceptHeader().isPresent()) {
+ if (getAcceptHeader().get().contains("application/json")) {
+ try {
+ return new ResponseEntity<>(getObjectMapper().get().readValue(
+ "[ {\r\n \"@baseType\" : \"@baseType\",\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"@type\" : \"@type\",\r\n \"groupedAlarm\" : [ null, null ],\r\n \"correlatedAlarm\" : [ {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n }, {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n } ],\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\"\r\n}, {\r\n \"@baseType\" : \"@baseType\",\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"@type\" : \"@type\",\r\n \"groupedAlarm\" : [ null, null ],\r\n \"correlatedAlarm\" : [ {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n }, {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n } ],\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\"\r\n} ]",
+ List.class), HttpStatus.NOT_IMPLEMENTED);
+ } catch (IOException e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+ } else {
+ log.warn(
+ "ObjectMapper or HttpServletRequest not configured in default GroupAlarmsApi interface so no example is generated");
+ }
+ return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
+ }
+
+ @Operation(summary = "Retrieves a GroupAlarms by ID", operationId = "retrieveGroupAlarms", description = "This operation retrieves a GroupAlarms entity. Attribute selection is enabled for all first level attributes." , tags = {
+ "groupAlarms", })
+ @ApiResponses(value = { @ApiResponse(responseCode ="200", description = "Success" ),
+ @ApiResponse(responseCode = "400", description = "Bad Request" ),
+ @ApiResponse(responseCode = "401", description = "Unauthorized" ),
+ @ApiResponse(responseCode = "403", description = "Forbidden" ),
+ @ApiResponse(responseCode = "404", description = "Not Found" ),
+ @ApiResponse(responseCode = "405", description = "Method Not allowed" ),
+ @ApiResponse(responseCode = "409", description = "Conflict" ),
+ @ApiResponse(responseCode = "500", description = "Internal Server Error" ) })
+ @RequestMapping(value = "/groupAlarms/{id}", produces = {
+ "application/json;charset=utf-8" }, method = RequestMethod.GET)
+ default ResponseEntity retrieveGroupAlarms(
+ @Parameter(description = "Identifier of the GroupAlarms", required = true) @PathVariable("id") String id,
+ @Parameter(description = "Comma-separated properties to provide in response") @Valid @RequestParam(value = "fields", required = false) String fields) {
+ if (getObjectMapper().isPresent() && getAcceptHeader().isPresent()) {
+ if (getAcceptHeader().get().contains("application/json")) {
+ try {
+ return new ResponseEntity<>(getObjectMapper().get().readValue(
+ "{\r\n \"@baseType\" : \"@baseType\",\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"@type\" : \"@type\",\r\n \"groupedAlarm\" : [ null, null ],\r\n \"correlatedAlarm\" : [ {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n }, {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n } ],\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\"\r\n}",
+ GroupAlarms.class), HttpStatus.NOT_IMPLEMENTED);
+ } catch (IOException e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+ } else {
+ log.warn(
+ "ObjectMapper or HttpServletRequest not configured in default GroupAlarmsApi interface so no example is generated");
+ }
+ return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
+ }
+
+}
diff --git a/src/main/java/org/etsi/osl/tmf/am642/api/GroupAlarmsApiController.java b/src/main/java/org/etsi/osl/tmf/am642/api/GroupAlarmsApiController.java
new file mode 100644
index 0000000000000000000000000000000000000000..39c68d79f0cdf51a48e01b86e3d2bc36c4400e69
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/am642/api/GroupAlarmsApiController.java
@@ -0,0 +1,124 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 - 2021 openslice.io
+ * %%
+ * 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.etsi.osl.tmf.am642.api;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.etsi.osl.tmf.am642.model.GroupAlarms;
+import org.etsi.osl.tmf.am642.model.GroupAlarmsCreate;
+import org.etsi.osl.tmf.am642.reposervices.GroupAlarmsRepoService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.HttpStatus;
+import org.springframework.http.ResponseEntity;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+import jakarta.servlet.http.HttpServletRequest;
+import jakarta.validation.Valid;
+
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2021-02-15T11:15:47.327930400+02:00[Europe/Athens]")
+@Controller
+@RequestMapping("/alarmManagement/v4/")
+public class GroupAlarmsApiController implements GroupAlarmsApi {
+
+ private final ObjectMapper objectMapper;
+
+ private final HttpServletRequest request;
+
+ @Autowired
+ GroupAlarmsRepoService groupAlarmRepoService;
+
+ @org.springframework.beans.factory.annotation.Autowired
+ public GroupAlarmsApiController(ObjectMapper objectMapper, HttpServletRequest request) {
+ this.objectMapper = objectMapper;
+ this.request = request;
+ }
+
+ @Override
+ public Optional getObjectMapper() {
+ return Optional.ofNullable(objectMapper);
+ }
+
+ @Override
+ public Optional getRequest() {
+ return Optional.ofNullable(request);
+ }
+
+ @Override
+ @PreAuthorize("hasAnyAuthority('ROLE_ADMIN')" )
+ public ResponseEntity createGroupAlarms(@Valid GroupAlarmsCreate body) {
+ try {
+
+ GroupAlarms c = groupAlarmRepoService.addGroupAlarms(body);
+
+ return new ResponseEntity(c, HttpStatus.OK);
+ } catch (Exception e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+
+ @Override
+ @PreAuthorize("hasAnyAuthority('ROLE_ADMIN')" )
+ public ResponseEntity retrieveGroupAlarms(String id, @Valid String fields) {
+ try {
+
+ return new ResponseEntity(groupAlarmRepoService.findById(id), HttpStatus.OK);
+ } catch (Exception e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+
+ @Override
+ @PreAuthorize("hasAnyAuthority('ROLE_ADMIN')" )
+ public ResponseEntity> listGroupAlarms(@Valid String fields, @Valid Integer offset,
+ @Valid Integer limit, Map allParams) {
+ try {
+ if (allParams != null) {
+ allParams.remove("fields");
+ allParams.remove("offset");
+ allParams.remove("limit");
+ } else {
+ allParams = new HashMap<>();
+ }
+ if ((fields == null) && (allParams.size() == 0)) {
+
+ String myfields = "lastUpdate,lifecycleStatus";
+ return new ResponseEntity>(groupAlarmRepoService.findAll(myfields, allParams),
+ HttpStatus.OK);
+
+ } else {
+
+ return new ResponseEntity>(groupAlarmRepoService.findAll(fields, allParams),
+ HttpStatus.OK);
+ }
+
+ } catch (Exception e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+
+}
diff --git a/src/main/java/org/etsi/osl/tmf/am642/api/HubApi.java b/src/main/java/org/etsi/osl/tmf/am642/api/HubApi.java
new file mode 100644
index 0000000000000000000000000000000000000000..7463e6bcf9b467570d78367f6a022fd22a56a3f0
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/am642/api/HubApi.java
@@ -0,0 +1,119 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 - 2021 openslice.io
+ * %%
+ * 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==================================
+ */
+/**
+ * NOTE: This class is auto generated by the swagger code generator program (3.0.19).
+ * https://github.com/swagger-api/swagger-codegen
+ * Do not edit the class manually.
+ */
+package org.etsi.osl.tmf.am642.api;
+
+import java.io.IOException;
+import java.util.Optional;
+
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.etsi.osl.tmf.am642.model.EventSubscription;
+import org.etsi.osl.tmf.am642.model.EventSubscriptionInput;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.http.HttpStatus;
+import org.springframework.http.ResponseEntity;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+import io.swagger.v3.oas.annotations.Operation;
+import io.swagger.v3.oas.annotations.Parameter;
+import io.swagger.v3.oas.annotations.responses.ApiResponse;
+import io.swagger.v3.oas.annotations.responses.ApiResponses;
+import io.swagger.v3.oas.annotations.tags.Tag;
+import jakarta.servlet.http.HttpServletRequest;
+import jakarta.validation.Valid;
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2021-02-15T11:15:47.327930400+02:00[Europe/Athens]")
+@Tag(name = "hub", description = "the hub API")
+public interface HubApi {
+
+ Logger log = LoggerFactory.getLogger(HubApi.class);
+
+ default Optional getObjectMapper(){
+ return Optional.empty();
+ }
+
+ default Optional getRequest(){
+ return Optional.empty();
+ }
+
+ default Optional getAcceptHeader() {
+ return getRequest().map(r -> r.getHeader("Accept"));
+ }
+
+ @Operation(summary = "Register a listener", operationId = "registerListener642", description = "Sets the communication endpoint address the service instance must use to deliver information about its health state, execution state, failures and metrics.", tags={ "events subscription", })
+ @ApiResponses(value = {
+ @ApiResponse(responseCode = "400", description = "Subscribed" ),
+ @ApiResponse(responseCode = "400", description = "Bad Request" ),
+ @ApiResponse(responseCode = "401", description = "Unauthorized" ),
+ @ApiResponse(responseCode = "403", description = "Forbidden" ),
+ @ApiResponse(responseCode = "404", description = "Not Found" ),
+ @ApiResponse(responseCode = "405", description = "Method Not allowed" ),
+ @ApiResponse(responseCode = "409", description = "Conflict" ),
+ @ApiResponse(responseCode = "500", description = "Internal Server Error" ) })
+ @RequestMapping(value = "/hub",
+ produces = { "application/json;charset=utf-8" },
+ consumes = { "application/json;charset=utf-8" },
+ method = RequestMethod.POST)
+ default ResponseEntity registerListener(@Parameter(description = "Data containing the callback endpoint to deliver the information" ,required=true ) @Valid @RequestBody EventSubscriptionInput body
+) {
+ if(getObjectMapper().isPresent() && getAcceptHeader().isPresent()) {
+ if (getAcceptHeader().get().contains("application/json")) {
+ try {
+ return new ResponseEntity<>(getObjectMapper().get().readValue("{\r\n \"query\" : \"query\",\r\n \"callback\" : \"callback\",\r\n \"id\" : \"id\"\r\n}", EventSubscription.class), HttpStatus.NOT_IMPLEMENTED);
+ } catch (IOException e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+ } else {
+ log.warn("ObjectMapper or HttpServletRequest not configured in default HubApi interface so no example is generated");
+ }
+ return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
+ }
+
+
+ @Operation(summary = "Unregister a listener", operationId = "unregisterListener642", description = "Resets the communication endpoint address the service instance must use to deliver information about its health state, execution state, failures and metrics.", tags={ "events subscription", })
+ @ApiResponses(value = {
+ @ApiResponse(responseCode = "204", description = "Deleted"),
+ @ApiResponse(responseCode = "400", description = "Bad request" ),
+ @ApiResponse(responseCode = "401", description = "Unauthorized" ),
+ @ApiResponse(responseCode = "403", description = "Forbidden" ),
+ @ApiResponse(responseCode = "404", description = "Not Found" ),
+ @ApiResponse(responseCode = "405", description = "Method not allowed" ),
+ @ApiResponse(responseCode = "500", description = "Internal Server Error" ) })
+ @RequestMapping(value = "/hub/{id}",
+ produces = { "application/json;charset=utf-8" },
+ method = RequestMethod.DELETE)
+ default ResponseEntity unregisterListener(@Parameter(description = "The id of the registered listener",required=true) @PathVariable("id") String id
+) {
+ if(getObjectMapper().isPresent() && getAcceptHeader().isPresent()) {
+ } else {
+ log.warn("ObjectMapper or HttpServletRequest not configured in default HubApi interface so no example is generated");
+ }
+ return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
+ }
+
+}
diff --git a/src/main/java/org/etsi/osl/tmf/am642/api/HubApiController.java b/src/main/java/org/etsi/osl/tmf/am642/api/HubApiController.java
new file mode 100644
index 0000000000000000000000000000000000000000..b3c83b84f36e48e4dbe8d0652564177de6f3b2af
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/am642/api/HubApiController.java
@@ -0,0 +1,56 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 - 2021 openslice.io
+ * %%
+ * 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.etsi.osl.tmf.am642.api;
+
+import java.util.Optional;
+
+import com.fasterxml.jackson.databind.ObjectMapper;
+
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+
+import jakarta.servlet.http.HttpServletRequest;
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2021-02-15T11:15:47.327930400+02:00[Europe/Athens]")
+
+@Controller("HubApiController642")
+@RequestMapping("/alarmManagement/v4/")
+public class HubApiController implements HubApi {
+
+ private final ObjectMapper objectMapper;
+
+ private final HttpServletRequest request;
+
+ @org.springframework.beans.factory.annotation.Autowired
+ public HubApiController(ObjectMapper objectMapper, HttpServletRequest request) {
+ this.objectMapper = objectMapper;
+ this.request = request;
+ }
+
+ @Override
+ public Optional getObjectMapper() {
+ return Optional.ofNullable(objectMapper);
+ }
+
+ @Override
+ public Optional getRequest() {
+ return Optional.ofNullable(request);
+ }
+
+}
diff --git a/src/main/java/org/etsi/osl/tmf/am642/api/ListenerApi.java b/src/main/java/org/etsi/osl/tmf/am642/api/ListenerApi.java
new file mode 100644
index 0000000000000000000000000000000000000000..e00e2533dc8a2f95d38ba8343e9f4bb7e227a49e
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/am642/api/ListenerApi.java
@@ -0,0 +1,591 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 - 2021 openslice.io
+ * %%
+ * 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==================================
+ */
+/**
+ * NOTE: This class is auto generated by the swagger code generator program (3.0.19).
+ * https://github.com/swagger-api/swagger-codegen
+ * Do not edit the class manually.
+ */
+package org.etsi.osl.tmf.am642.api;
+
+import java.io.IOException;
+import java.util.Optional;
+
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.etsi.osl.tmf.am642.model.AckAlarmsCreateEvent;
+import org.etsi.osl.tmf.am642.model.AckAlarmsStateChangeEvent;
+import org.etsi.osl.tmf.am642.model.AlarmAttributeValueChangeEvent;
+import org.etsi.osl.tmf.am642.model.AlarmCreateEvent;
+import org.etsi.osl.tmf.am642.model.AlarmDeleteEvent;
+import org.etsi.osl.tmf.am642.model.AlarmStateChangeEvent;
+import org.etsi.osl.tmf.am642.model.ClearAlarmsCreateEvent;
+import org.etsi.osl.tmf.am642.model.ClearAlarmsStateChangeEvent;
+import org.etsi.osl.tmf.am642.model.CommentAlarmsCreateEvent;
+import org.etsi.osl.tmf.am642.model.CommentAlarmsStateChangeEvent;
+import org.etsi.osl.tmf.am642.model.EventSubscription;
+import org.etsi.osl.tmf.am642.model.GroupAlarmsCreateEvent;
+import org.etsi.osl.tmf.am642.model.GroupAlarmsStateChangeEvent;
+import org.etsi.osl.tmf.am642.model.UnAckAlarmsCreateEvent;
+import org.etsi.osl.tmf.am642.model.UnAckAlarmsStateChangeEvent;
+import org.etsi.osl.tmf.am642.model.UnGroupAlarmsCreateEvent;
+import org.etsi.osl.tmf.am642.model.UnGroupAlarmsStateChangeEvent;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.http.HttpStatus;
+import org.springframework.http.ResponseEntity;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+import io.swagger.v3.oas.annotations.Operation;
+import io.swagger.v3.oas.annotations.Parameter;
+import io.swagger.v3.oas.annotations.responses.ApiResponse;
+import io.swagger.v3.oas.annotations.responses.ApiResponses;
+import io.swagger.v3.oas.annotations.tags.Tag;
+import jakarta.servlet.http.HttpServletRequest;
+import jakarta.validation.Valid;
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2021-02-15T11:15:47.327930400+02:00[Europe/Athens]")
+@Tag(name = "listener", description = "the listener API")
+public interface ListenerApi {
+
+ Logger log = LoggerFactory.getLogger(ListenerApi.class);
+
+ default Optional getObjectMapper(){
+ return Optional.empty();
+ }
+
+ default Optional getRequest(){
+ return Optional.empty();
+ }
+
+ default Optional getAcceptHeader() {
+ return getRequest().map(r -> r.getHeader("Accept"));
+ }
+
+ @Operation(summary = "Client listener for entity AckAlarmsCreateEvent", operationId = "listenToAckAlarmsCreateEvent", description = "Example of a client listener for receiving the notification AckAlarmsCreateEvent", tags={ "notification listeners (client side)", })
+ @ApiResponses(value = {
+ @ApiResponse(responseCode = "400", description = "Notified" ),
+ @ApiResponse(responseCode = "400", description = "Bad Request" ),
+ @ApiResponse(responseCode = "401", description = "Unauthorized" ),
+ @ApiResponse(responseCode = "403", description = "Forbidden" ),
+ @ApiResponse(responseCode = "404", description = "Not Found" ),
+ @ApiResponse(responseCode = "405", description = "Method Not allowed" ),
+ @ApiResponse(responseCode = "409", description = "Conflict" ),
+ @ApiResponse(responseCode = "500", description = "Internal Server Error" ) })
+ @RequestMapping(value = "/listener/ackAlarmsCreateEvent",
+ produces = { "application/json;charset=utf-8" },
+ consumes = { "application/json;charset=utf-8" },
+ method = RequestMethod.POST)
+ default ResponseEntity listenToAckAlarmsCreateEvent(@Parameter(description = "The event data" ,required=true ) @Valid @RequestBody AckAlarmsCreateEvent body
+) {
+ if(getObjectMapper().isPresent() && getAcceptHeader().isPresent()) {
+ if (getAcceptHeader().get().contains("application/json")) {
+ try {
+ return new ResponseEntity<>(getObjectMapper().get().readValue("{\r\n \"query\" : \"query\",\r\n \"callback\" : \"callback\",\r\n \"id\" : \"id\"\r\n}", EventSubscription.class), HttpStatus.NOT_IMPLEMENTED);
+ } catch (IOException e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+ } else {
+ log.warn("ObjectMapper or HttpServletRequest not configured in default ListenerApi interface so no example is generated");
+ }
+ return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
+ }
+
+
+ @Operation(summary = "Client listener for entity AckAlarmsStateChangeEvent", operationId = "listenToAckAlarmsStateChangeEvent", description = "Example of a client listener for receiving the notification AckAlarmsStateChangeEvent", tags={ "notification listeners (client side)", })
+ @ApiResponses(value = {
+ @ApiResponse(responseCode = "400", description = "Notified" ),
+ @ApiResponse(responseCode = "400", description = "Bad Request" ),
+ @ApiResponse(responseCode = "401", description = "Unauthorized" ),
+ @ApiResponse(responseCode = "403", description = "Forbidden" ),
+ @ApiResponse(responseCode = "404", description = "Not Found" ),
+ @ApiResponse(responseCode = "405", description = "Method Not allowed" ),
+ @ApiResponse(responseCode = "409", description = "Conflict" ),
+ @ApiResponse(responseCode = "500", description = "Internal Server Error" ) })
+ @RequestMapping(value = "/listener/ackAlarmsStateChangeEvent",
+ produces = { "application/json;charset=utf-8" },
+ consumes = { "application/json;charset=utf-8" },
+ method = RequestMethod.POST)
+ default ResponseEntity listenToAckAlarmsStateChangeEvent(@Parameter(description = "The event data" ,required=true ) @Valid @RequestBody AckAlarmsStateChangeEvent body
+) {
+ if(getObjectMapper().isPresent() && getAcceptHeader().isPresent()) {
+ if (getAcceptHeader().get().contains("application/json")) {
+ try {
+ return new ResponseEntity<>(getObjectMapper().get().readValue("{\r\n \"query\" : \"query\",\r\n \"callback\" : \"callback\",\r\n \"id\" : \"id\"\r\n}", EventSubscription.class), HttpStatus.NOT_IMPLEMENTED);
+ } catch (IOException e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+ } else {
+ log.warn("ObjectMapper or HttpServletRequest not configured in default ListenerApi interface so no example is generated");
+ }
+ return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
+ }
+
+
+ @Operation(summary = "Client listener for entity AlarmAttributeValueChangeEvent", operationId = "listenToAlarmAttributeValueChangeEvent", description = "Example of a client listener for receiving the notification AlarmAttributeValueChangeEvent", tags={ "notification listeners (client side)", })
+ @ApiResponses(value = {
+ @ApiResponse(responseCode = "400", description = "Notified" ),
+ @ApiResponse(responseCode = "400", description = "Bad Request" ),
+ @ApiResponse(responseCode = "401", description = "Unauthorized" ),
+ @ApiResponse(responseCode = "403", description = "Forbidden" ),
+ @ApiResponse(responseCode = "404", description = "Not Found" ),
+ @ApiResponse(responseCode = "405", description = "Method Not allowed" ),
+ @ApiResponse(responseCode = "409", description = "Conflict" ),
+ @ApiResponse(responseCode = "500", description = "Internal Server Error" ) })
+ @RequestMapping(value = "/listener/alarmAttributeValueChangeEvent",
+ produces = { "application/json;charset=utf-8" },
+ consumes = { "application/json;charset=utf-8" },
+ method = RequestMethod.POST)
+ default ResponseEntity listenToAlarmAttributeValueChangeEvent(@Parameter(description = "The event data" ,required=true ) @Valid @RequestBody AlarmAttributeValueChangeEvent body
+) {
+ if(getObjectMapper().isPresent() && getAcceptHeader().isPresent()) {
+ if (getAcceptHeader().get().contains("application/json")) {
+ try {
+ return new ResponseEntity<>(getObjectMapper().get().readValue("{\r\n \"query\" : \"query\",\r\n \"callback\" : \"callback\",\r\n \"id\" : \"id\"\r\n}", EventSubscription.class), HttpStatus.NOT_IMPLEMENTED);
+ } catch (IOException e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+ } else {
+ log.warn("ObjectMapper or HttpServletRequest not configured in default ListenerApi interface so no example is generated");
+ }
+ return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
+ }
+
+
+ @Operation(summary = "Client listener for entity AlarmCreateEvent", operationId = "listenToAlarmCreateEvent", description = "Example of a client listener for receiving the notification AlarmCreateEvent", tags={ "notification listeners (client side)", })
+ @ApiResponses(value = {
+ @ApiResponse(responseCode = "400", description = "Notified" ),
+ @ApiResponse(responseCode = "400", description = "Bad Request" ),
+ @ApiResponse(responseCode = "401", description = "Unauthorized" ),
+ @ApiResponse(responseCode = "403", description = "Forbidden" ),
+ @ApiResponse(responseCode = "404", description = "Not Found" ),
+ @ApiResponse(responseCode = "405", description = "Method Not allowed" ),
+ @ApiResponse(responseCode = "409", description = "Conflict" ),
+ @ApiResponse(responseCode = "500", description = "Internal Server Error" ) })
+ @RequestMapping(value = "/listener/alarmCreateEvent",
+ produces = { "application/json;charset=utf-8" },
+ consumes = { "application/json;charset=utf-8" },
+ method = RequestMethod.POST)
+ default ResponseEntity listenToAlarmCreateEvent(@Parameter(description = "The event data" ,required=true ) @Valid @RequestBody AlarmCreateEvent body
+) {
+ if(getObjectMapper().isPresent() && getAcceptHeader().isPresent()) {
+ if (getAcceptHeader().get().contains("application/json")) {
+ try {
+ return new ResponseEntity<>(getObjectMapper().get().readValue("{\r\n \"query\" : \"query\",\r\n \"callback\" : \"callback\",\r\n \"id\" : \"id\"\r\n}", EventSubscription.class), HttpStatus.NOT_IMPLEMENTED);
+ } catch (IOException e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+ } else {
+ log.warn("ObjectMapper or HttpServletRequest not configured in default ListenerApi interface so no example is generated");
+ }
+ return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
+ }
+
+
+ @Operation(summary = "Client listener for entity AlarmDeleteEvent", operationId = "listenToAlarmDeleteEvent", description = "Example of a client listener for receiving the notification AlarmDeleteEvent", tags={ "notification listeners (client side)", })
+ @ApiResponses(value = {
+ @ApiResponse(responseCode = "400", description = "Notified" ),
+ @ApiResponse(responseCode = "400", description = "Bad Request" ),
+ @ApiResponse(responseCode = "401", description = "Unauthorized" ),
+ @ApiResponse(responseCode = "403", description = "Forbidden" ),
+ @ApiResponse(responseCode = "404", description = "Not Found" ),
+ @ApiResponse(responseCode = "405", description = "Method Not allowed" ),
+ @ApiResponse(responseCode = "409", description = "Conflict" ),
+ @ApiResponse(responseCode = "500", description = "Internal Server Error" ) })
+ @RequestMapping(value = "/listener/alarmDeleteEvent",
+ produces = { "application/json;charset=utf-8" },
+ consumes = { "application/json;charset=utf-8" },
+ method = RequestMethod.POST)
+ default ResponseEntity listenToAlarmDeleteEvent(@Parameter(description = "The event data" ,required=true ) @Valid @RequestBody AlarmDeleteEvent body
+) {
+ if(getObjectMapper().isPresent() && getAcceptHeader().isPresent()) {
+ if (getAcceptHeader().get().contains("application/json")) {
+ try {
+ return new ResponseEntity<>(getObjectMapper().get().readValue("{\r\n \"query\" : \"query\",\r\n \"callback\" : \"callback\",\r\n \"id\" : \"id\"\r\n}", EventSubscription.class), HttpStatus.NOT_IMPLEMENTED);
+ } catch (IOException e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+ } else {
+ log.warn("ObjectMapper or HttpServletRequest not configured in default ListenerApi interface so no example is generated");
+ }
+ return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
+ }
+
+
+ @Operation(summary = "Client listener for entity AlarmStateChangeEvent", operationId = "listenToAlarmStateChangeEvent", description = "Example of a client listener for receiving the notification AlarmStateChangeEvent", tags={ "notification listeners (client side)", })
+ @ApiResponses(value = {
+ @ApiResponse(responseCode = "400", description = "Notified" ),
+ @ApiResponse(responseCode = "400", description = "Bad Request" ),
+ @ApiResponse(responseCode = "401", description = "Unauthorized" ),
+ @ApiResponse(responseCode = "403", description = "Forbidden" ),
+ @ApiResponse(responseCode = "404", description = "Not Found" ),
+ @ApiResponse(responseCode = "405", description = "Method Not allowed" ),
+ @ApiResponse(responseCode = "409", description = "Conflict" ),
+ @ApiResponse(responseCode = "500", description = "Internal Server Error" ) })
+ @RequestMapping(value = "/listener/alarmStateChangeEvent",
+ produces = { "application/json;charset=utf-8" },
+ consumes = { "application/json;charset=utf-8" },
+ method = RequestMethod.POST)
+ default ResponseEntity listenToAlarmStateChangeEvent(@Parameter(description = "The event data" ,required=true ) @Valid @RequestBody AlarmStateChangeEvent body
+) {
+ if(getObjectMapper().isPresent() && getAcceptHeader().isPresent()) {
+ if (getAcceptHeader().get().contains("application/json")) {
+ try {
+ return new ResponseEntity<>(getObjectMapper().get().readValue("{\r\n \"query\" : \"query\",\r\n \"callback\" : \"callback\",\r\n \"id\" : \"id\"\r\n}", EventSubscription.class), HttpStatus.NOT_IMPLEMENTED);
+ } catch (IOException e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+ } else {
+ log.warn("ObjectMapper or HttpServletRequest not configured in default ListenerApi interface so no example is generated");
+ }
+ return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
+ }
+
+
+ @Operation(summary = "Client listener for entity ClearAlarmsCreateEvent", operationId = "listenToClearAlarmsCreateEvent", description = "Example of a client listener for receiving the notification ClearAlarmsCreateEvent", tags={ "notification listeners (client side)", })
+ @ApiResponses(value = {
+ @ApiResponse(responseCode = "400", description = "Notified" ),
+ @ApiResponse(responseCode = "400", description = "Bad Request" ),
+ @ApiResponse(responseCode = "401", description = "Unauthorized" ),
+ @ApiResponse(responseCode = "403", description = "Forbidden" ),
+ @ApiResponse(responseCode = "404", description = "Not Found" ),
+ @ApiResponse(responseCode = "405", description = "Method Not allowed" ),
+ @ApiResponse(responseCode = "409", description = "Conflict" ),
+ @ApiResponse(responseCode = "500", description = "Internal Server Error" ) })
+ @RequestMapping(value = "/listener/clearAlarmsCreateEvent",
+ produces = { "application/json;charset=utf-8" },
+ consumes = { "application/json;charset=utf-8" },
+ method = RequestMethod.POST)
+ default ResponseEntity listenToClearAlarmsCreateEvent(@Parameter(description = "The event data" ,required=true ) @Valid @RequestBody ClearAlarmsCreateEvent body
+) {
+ if(getObjectMapper().isPresent() && getAcceptHeader().isPresent()) {
+ if (getAcceptHeader().get().contains("application/json")) {
+ try {
+ return new ResponseEntity<>(getObjectMapper().get().readValue("{\r\n \"query\" : \"query\",\r\n \"callback\" : \"callback\",\r\n \"id\" : \"id\"\r\n}", EventSubscription.class), HttpStatus.NOT_IMPLEMENTED);
+ } catch (IOException e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+ } else {
+ log.warn("ObjectMapper or HttpServletRequest not configured in default ListenerApi interface so no example is generated");
+ }
+ return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
+ }
+
+
+ @Operation(summary = "Client listener for entity ClearAlarmsStateChangeEvent", operationId = "listenToClearAlarmsStateChangeEvent", description = "Example of a client listener for receiving the notification ClearAlarmsStateChangeEvent", tags={ "notification listeners (client side)", })
+ @ApiResponses(value = {
+ @ApiResponse(responseCode = "400", description = "Notified" ),
+ @ApiResponse(responseCode = "400", description = "Bad Request" ),
+ @ApiResponse(responseCode = "401", description = "Unauthorized" ),
+ @ApiResponse(responseCode = "403", description = "Forbidden" ),
+ @ApiResponse(responseCode = "404", description = "Not Found" ),
+ @ApiResponse(responseCode = "405", description = "Method Not allowed" ),
+ @ApiResponse(responseCode = "409", description = "Conflict" ),
+ @ApiResponse(responseCode = "500", description = "Internal Server Error" ) })
+ @RequestMapping(value = "/listener/clearAlarmsStateChangeEvent",
+ produces = { "application/json;charset=utf-8" },
+ consumes = { "application/json;charset=utf-8" },
+ method = RequestMethod.POST)
+ default ResponseEntity listenToClearAlarmsStateChangeEvent(@Parameter(description = "The event data" ,required=true ) @Valid @RequestBody ClearAlarmsStateChangeEvent body
+) {
+ if(getObjectMapper().isPresent() && getAcceptHeader().isPresent()) {
+ if (getAcceptHeader().get().contains("application/json")) {
+ try {
+ return new ResponseEntity<>(getObjectMapper().get().readValue("{\r\n \"query\" : \"query\",\r\n \"callback\" : \"callback\",\r\n \"id\" : \"id\"\r\n}", EventSubscription.class), HttpStatus.NOT_IMPLEMENTED);
+ } catch (IOException e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+ } else {
+ log.warn("ObjectMapper or HttpServletRequest not configured in default ListenerApi interface so no example is generated");
+ }
+ return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
+ }
+
+
+ @Operation(summary = "Client listener for entity CommentAlarmsCreateEvent", operationId = "listenToCommentAlarmsCreateEvent", description = "Example of a client listener for receiving the notification CommentAlarmsCreateEvent", tags={ "notification listeners (client side)", })
+ @ApiResponses(value = {
+ @ApiResponse(responseCode = "400", description = "Notified" ),
+ @ApiResponse(responseCode = "400", description = "Bad Request" ),
+ @ApiResponse(responseCode = "401", description = "Unauthorized" ),
+ @ApiResponse(responseCode = "403", description = "Forbidden" ),
+ @ApiResponse(responseCode = "404", description = "Not Found" ),
+ @ApiResponse(responseCode = "405", description = "Method Not allowed" ),
+ @ApiResponse(responseCode = "409", description = "Conflict" ),
+ @ApiResponse(responseCode = "500", description = "Internal Server Error" ) })
+ @RequestMapping(value = "/listener/commentAlarmsCreateEvent",
+ produces = { "application/json;charset=utf-8" },
+ consumes = { "application/json;charset=utf-8" },
+ method = RequestMethod.POST)
+ default ResponseEntity listenToCommentAlarmsCreateEvent(@Parameter(description = "The event data" ,required=true ) @Valid @RequestBody CommentAlarmsCreateEvent body
+) {
+ if(getObjectMapper().isPresent() && getAcceptHeader().isPresent()) {
+ if (getAcceptHeader().get().contains("application/json")) {
+ try {
+ return new ResponseEntity<>(getObjectMapper().get().readValue("{\r\n \"query\" : \"query\",\r\n \"callback\" : \"callback\",\r\n \"id\" : \"id\"\r\n}", EventSubscription.class), HttpStatus.NOT_IMPLEMENTED);
+ } catch (IOException e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+ } else {
+ log.warn("ObjectMapper or HttpServletRequest not configured in default ListenerApi interface so no example is generated");
+ }
+ return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
+ }
+
+
+ @Operation(summary = "Client listener for entity CommentAlarmsStateChangeEvent", operationId = "listenToCommentAlarmsStateChangeEvent", description = "Example of a client listener for receiving the notification CommentAlarmsStateChangeEvent", tags={ "notification listeners (client side)", })
+ @ApiResponses(value = {
+ @ApiResponse(responseCode = "400", description = "Notified" ),
+ @ApiResponse(responseCode = "400", description = "Bad Request" ),
+ @ApiResponse(responseCode = "401", description = "Unauthorized" ),
+ @ApiResponse(responseCode = "403", description = "Forbidden" ),
+ @ApiResponse(responseCode = "404", description = "Not Found" ),
+ @ApiResponse(responseCode = "405", description = "Method Not allowed" ),
+ @ApiResponse(responseCode = "409", description = "Conflict" ),
+ @ApiResponse(responseCode = "500", description = "Internal Server Error" ) })
+ @RequestMapping(value = "/listener/commentAlarmsStateChangeEvent",
+ produces = { "application/json;charset=utf-8" },
+ consumes = { "application/json;charset=utf-8" },
+ method = RequestMethod.POST)
+ default ResponseEntity listenToCommentAlarmsStateChangeEvent(@Parameter(description = "The event data" ,required=true ) @Valid @RequestBody CommentAlarmsStateChangeEvent body
+) {
+ if(getObjectMapper().isPresent() && getAcceptHeader().isPresent()) {
+ if (getAcceptHeader().get().contains("application/json")) {
+ try {
+ return new ResponseEntity<>(getObjectMapper().get().readValue("{\r\n \"query\" : \"query\",\r\n \"callback\" : \"callback\",\r\n \"id\" : \"id\"\r\n}", EventSubscription.class), HttpStatus.NOT_IMPLEMENTED);
+ } catch (IOException e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+ } else {
+ log.warn("ObjectMapper or HttpServletRequest not configured in default ListenerApi interface so no example is generated");
+ }
+ return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
+ }
+
+
+ @Operation(summary = "Client listener for entity GroupAlarmsCreateEvent", operationId = "listenToGroupAlarmsCreateEvent", description = "Example of a client listener for receiving the notification GroupAlarmsCreateEvent", tags={ "notification listeners (client side)", })
+ @ApiResponses(value = {
+ @ApiResponse(responseCode = "400", description = "Notified" ),
+ @ApiResponse(responseCode = "400", description = "Bad Request" ),
+ @ApiResponse(responseCode = "401", description = "Unauthorized" ),
+ @ApiResponse(responseCode = "403", description = "Forbidden" ),
+ @ApiResponse(responseCode = "404", description = "Not Found" ),
+ @ApiResponse(responseCode = "405", description = "Method Not allowed" ),
+ @ApiResponse(responseCode = "409", description = "Conflict" ),
+ @ApiResponse(responseCode = "500", description = "Internal Server Error" ) })
+ @RequestMapping(value = "/listener/groupAlarmsCreateEvent",
+ produces = { "application/json;charset=utf-8" },
+ consumes = { "application/json;charset=utf-8" },
+ method = RequestMethod.POST)
+ default ResponseEntity listenToGroupAlarmsCreateEvent(@Parameter(description = "The event data" ,required=true ) @Valid @RequestBody GroupAlarmsCreateEvent body
+) {
+ if(getObjectMapper().isPresent() && getAcceptHeader().isPresent()) {
+ if (getAcceptHeader().get().contains("application/json")) {
+ try {
+ return new ResponseEntity<>(getObjectMapper().get().readValue("{\r\n \"query\" : \"query\",\r\n \"callback\" : \"callback\",\r\n \"id\" : \"id\"\r\n}", EventSubscription.class), HttpStatus.NOT_IMPLEMENTED);
+ } catch (IOException e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+ } else {
+ log.warn("ObjectMapper or HttpServletRequest not configured in default ListenerApi interface so no example is generated");
+ }
+ return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
+ }
+
+
+ @Operation(summary = "Client listener for entity GroupAlarmsStateChangeEvent", operationId = "listenToGroupAlarmsStateChangeEvent", description = "Example of a client listener for receiving the notification GroupAlarmsStateChangeEvent", tags={ "notification listeners (client side)", })
+ @ApiResponses(value = {
+ @ApiResponse(responseCode = "400", description = "Notified" ),
+ @ApiResponse(responseCode = "400", description = "Bad Request" ),
+ @ApiResponse(responseCode = "401", description = "Unauthorized" ),
+ @ApiResponse(responseCode = "403", description = "Forbidden" ),
+ @ApiResponse(responseCode = "404", description = "Not Found" ),
+ @ApiResponse(responseCode = "405", description = "Method Not allowed" ),
+ @ApiResponse(responseCode = "409", description = "Conflict" ),
+ @ApiResponse(responseCode = "500", description = "Internal Server Error" ) })
+ @RequestMapping(value = "/listener/groupAlarmsStateChangeEvent",
+ produces = { "application/json;charset=utf-8" },
+ consumes = { "application/json;charset=utf-8" },
+ method = RequestMethod.POST)
+ default ResponseEntity listenToGroupAlarmsStateChangeEvent(@Parameter(description = "The event data" ,required=true ) @Valid @RequestBody GroupAlarmsStateChangeEvent body
+) {
+ if(getObjectMapper().isPresent() && getAcceptHeader().isPresent()) {
+ if (getAcceptHeader().get().contains("application/json")) {
+ try {
+ return new ResponseEntity<>(getObjectMapper().get().readValue("{\r\n \"query\" : \"query\",\r\n \"callback\" : \"callback\",\r\n \"id\" : \"id\"\r\n}", EventSubscription.class), HttpStatus.NOT_IMPLEMENTED);
+ } catch (IOException e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+ } else {
+ log.warn("ObjectMapper or HttpServletRequest not configured in default ListenerApi interface so no example is generated");
+ }
+ return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
+ }
+
+
+ @Operation(summary = "Client listener for entity UnAckAlarmsCreateEvent", operationId = "listenToUnAckAlarmsCreateEvent", description = "Example of a client listener for receiving the notification UnAckAlarmsCreateEvent", tags={ "notification listeners (client side)", })
+ @ApiResponses(value = {
+ @ApiResponse(responseCode = "400", description = "Notified" ),
+ @ApiResponse(responseCode = "400", description = "Bad Request" ),
+ @ApiResponse(responseCode = "401", description = "Unauthorized" ),
+ @ApiResponse(responseCode = "403", description = "Forbidden" ),
+ @ApiResponse(responseCode = "404", description = "Not Found" ),
+ @ApiResponse(responseCode = "405", description = "Method Not allowed" ),
+ @ApiResponse(responseCode = "409", description = "Conflict" ),
+ @ApiResponse(responseCode = "500", description = "Internal Server Error" ) })
+ @RequestMapping(value = "/listener/unAckAlarmsCreateEvent",
+ produces = { "application/json;charset=utf-8" },
+ consumes = { "application/json;charset=utf-8" },
+ method = RequestMethod.POST)
+ default ResponseEntity listenToUnAckAlarmsCreateEvent(@Parameter(description = "The event data" ,required=true ) @Valid @RequestBody UnAckAlarmsCreateEvent body
+) {
+ if(getObjectMapper().isPresent() && getAcceptHeader().isPresent()) {
+ if (getAcceptHeader().get().contains("application/json")) {
+ try {
+ return new ResponseEntity<>(getObjectMapper().get().readValue("{\r\n \"query\" : \"query\",\r\n \"callback\" : \"callback\",\r\n \"id\" : \"id\"\r\n}", EventSubscription.class), HttpStatus.NOT_IMPLEMENTED);
+ } catch (IOException e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+ } else {
+ log.warn("ObjectMapper or HttpServletRequest not configured in default ListenerApi interface so no example is generated");
+ }
+ return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
+ }
+
+
+ @Operation(summary = "Client listener for entity UnAckAlarmsStateChangeEvent", operationId = "listenToUnAckAlarmsStateChangeEvent", description = "Example of a client listener for receiving the notification UnAckAlarmsStateChangeEvent", tags={ "notification listeners (client side)", })
+ @ApiResponses(value = {
+ @ApiResponse(responseCode = "400", description = "Notified" ),
+ @ApiResponse(responseCode = "400", description = "Bad Request" ),
+ @ApiResponse(responseCode = "401", description = "Unauthorized" ),
+ @ApiResponse(responseCode = "403", description = "Forbidden" ),
+ @ApiResponse(responseCode = "404", description = "Not Found" ),
+ @ApiResponse(responseCode = "405", description = "Method Not allowed" ),
+ @ApiResponse(responseCode = "409", description = "Conflict" ),
+ @ApiResponse(responseCode = "500", description = "Internal Server Error" ) })
+ @RequestMapping(value = "/listener/unAckAlarmsStateChangeEvent",
+ produces = { "application/json;charset=utf-8" },
+ consumes = { "application/json;charset=utf-8" },
+ method = RequestMethod.POST)
+ default ResponseEntity listenToUnAckAlarmsStateChangeEvent(@Parameter(description = "The event data" ,required=true ) @Valid @RequestBody UnAckAlarmsStateChangeEvent body
+) {
+ if(getObjectMapper().isPresent() && getAcceptHeader().isPresent()) {
+ if (getAcceptHeader().get().contains("application/json")) {
+ try {
+ return new ResponseEntity<>(getObjectMapper().get().readValue("{\r\n \"query\" : \"query\",\r\n \"callback\" : \"callback\",\r\n \"id\" : \"id\"\r\n}", EventSubscription.class), HttpStatus.NOT_IMPLEMENTED);
+ } catch (IOException e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+ } else {
+ log.warn("ObjectMapper or HttpServletRequest not configured in default ListenerApi interface so no example is generated");
+ }
+ return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
+ }
+
+
+ @Operation(summary = "Client listener for entity UnGroupAlarmsCreateEvent", operationId = "listenToUnGroupAlarmsCreateEvent", description = "Example of a client listener for receiving the notification UnGroupAlarmsCreateEvent", tags={ "notification listeners (client side)", })
+ @ApiResponses(value = {
+ @ApiResponse(responseCode = "400", description = "Notified" ),
+ @ApiResponse(responseCode = "400", description = "Bad Request" ),
+ @ApiResponse(responseCode = "401", description = "Unauthorized" ),
+ @ApiResponse(responseCode = "403", description = "Forbidden" ),
+ @ApiResponse(responseCode = "404", description = "Not Found" ),
+ @ApiResponse(responseCode = "405", description = "Method Not allowed" ),
+ @ApiResponse(responseCode = "409", description = "Conflict" ),
+ @ApiResponse(responseCode = "500", description = "Internal Server Error" ) })
+ @RequestMapping(value = "/listener/unGroupAlarmsCreateEvent",
+ produces = { "application/json;charset=utf-8" },
+ consumes = { "application/json;charset=utf-8" },
+ method = RequestMethod.POST)
+ default ResponseEntity listenToUnGroupAlarmsCreateEvent(@Parameter(description = "The event data" ,required=true ) @Valid @RequestBody UnGroupAlarmsCreateEvent body
+) {
+ if(getObjectMapper().isPresent() && getAcceptHeader().isPresent()) {
+ if (getAcceptHeader().get().contains("application/json")) {
+ try {
+ return new ResponseEntity<>(getObjectMapper().get().readValue("{\r\n \"query\" : \"query\",\r\n \"callback\" : \"callback\",\r\n \"id\" : \"id\"\r\n}", EventSubscription.class), HttpStatus.NOT_IMPLEMENTED);
+ } catch (IOException e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+ } else {
+ log.warn("ObjectMapper or HttpServletRequest not configured in default ListenerApi interface so no example is generated");
+ }
+ return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
+ }
+
+
+ @Operation(summary = "Client listener for entity UnGroupAlarmsStateChangeEvent", operationId = "listenToUnGroupAlarmsStateChangeEvent", description = "Example of a client listener for receiving the notification UnGroupAlarmsStateChangeEvent", tags={ "notification listeners (client side)", })
+ @ApiResponses(value = {
+ @ApiResponse(responseCode = "400", description = "Notified" ),
+ @ApiResponse(responseCode = "400", description = "Bad Request" ),
+ @ApiResponse(responseCode = "401", description = "Unauthorized" ),
+ @ApiResponse(responseCode = "403", description = "Forbidden" ),
+ @ApiResponse(responseCode = "404", description = "Not Found" ),
+ @ApiResponse(responseCode = "405", description = "Method Not allowed" ),
+ @ApiResponse(responseCode = "409", description = "Conflict" ),
+ @ApiResponse(responseCode = "500", description = "Internal Server Error" ) })
+ @RequestMapping(value = "/listener/unGroupAlarmsStateChangeEvent",
+ produces = { "application/json;charset=utf-8" },
+ consumes = { "application/json;charset=utf-8" },
+ method = RequestMethod.POST)
+ default ResponseEntity listenToUnGroupAlarmsStateChangeEvent(@Parameter(description = "The event data" ,required=true ) @Valid @RequestBody UnGroupAlarmsStateChangeEvent body
+) {
+ if(getObjectMapper().isPresent() && getAcceptHeader().isPresent()) {
+ if (getAcceptHeader().get().contains("application/json")) {
+ try {
+ return new ResponseEntity<>(getObjectMapper().get().readValue("{\r\n \"query\" : \"query\",\r\n \"callback\" : \"callback\",\r\n \"id\" : \"id\"\r\n}", EventSubscription.class), HttpStatus.NOT_IMPLEMENTED);
+ } catch (IOException e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+ } else {
+ log.warn("ObjectMapper or HttpServletRequest not configured in default ListenerApi interface so no example is generated");
+ }
+ return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
+ }
+
+}
diff --git a/src/main/java/org/etsi/osl/tmf/am642/api/ListenerApiController.java b/src/main/java/org/etsi/osl/tmf/am642/api/ListenerApiController.java
new file mode 100644
index 0000000000000000000000000000000000000000..c6e443a665fa077927d91286bd8a5ad6ece11ae1
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/am642/api/ListenerApiController.java
@@ -0,0 +1,56 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 - 2021 openslice.io
+ * %%
+ * 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.etsi.osl.tmf.am642.api;
+
+import java.util.Optional;
+
+import com.fasterxml.jackson.databind.ObjectMapper;
+
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+
+import jakarta.servlet.http.HttpServletRequest;
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2021-02-15T11:15:47.327930400+02:00[Europe/Athens]")
+
+@Controller("ListenerApiController642")
+@RequestMapping("/alarmManagement/v4/")
+public class ListenerApiController implements ListenerApi {
+
+ private final ObjectMapper objectMapper;
+
+ private final HttpServletRequest request;
+
+ @org.springframework.beans.factory.annotation.Autowired
+ public ListenerApiController(ObjectMapper objectMapper, HttpServletRequest request) {
+ this.objectMapper = objectMapper;
+ this.request = request;
+ }
+
+ @Override
+ public Optional getObjectMapper() {
+ return Optional.ofNullable(objectMapper);
+ }
+
+ @Override
+ public Optional getRequest() {
+ return Optional.ofNullable(request);
+ }
+
+}
diff --git a/src/main/java/org/etsi/osl/tmf/am642/api/NotFoundException.java b/src/main/java/org/etsi/osl/tmf/am642/api/NotFoundException.java
new file mode 100644
index 0000000000000000000000000000000000000000..47d4edaff8d8bd5943f18722203bc315edc15727
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/am642/api/NotFoundException.java
@@ -0,0 +1,29 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 - 2021 openslice.io
+ * %%
+ * 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.etsi.osl.tmf.am642.api;
+
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2021-02-15T11:15:47.327930400+02:00[Europe/Athens]")
+public class NotFoundException extends ApiException {
+ private int code;
+ public NotFoundException (int code, String msg) {
+ super(code, msg);
+ this.code = code;
+ }
+}
diff --git a/src/main/java/org/etsi/osl/tmf/am642/api/UnAckAlarmsApi.java b/src/main/java/org/etsi/osl/tmf/am642/api/UnAckAlarmsApi.java
new file mode 100644
index 0000000000000000000000000000000000000000..4fefc8271f1221aaba50c121dce128268ce74306
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/am642/api/UnAckAlarmsApi.java
@@ -0,0 +1,164 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 - 2021 openslice.io
+ * %%
+ * 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==================================
+ */
+/**
+ * NOTE: This class is auto generated by the swagger code generator program (3.0.19).
+ * https://github.com/swagger-api/swagger-codegen
+ * Do not edit the class manually.
+ */
+package org.etsi.osl.tmf.am642.api;
+
+import java.io.IOException;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.etsi.osl.tmf.am642.model.UnAckAlarms;
+import org.etsi.osl.tmf.am642.model.UnAckAlarmsCreate;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.http.HttpStatus;
+import org.springframework.http.ResponseEntity;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+import org.springframework.web.bind.annotation.RequestParam;
+import io.swagger.v3.oas.annotations.Operation;
+import io.swagger.v3.oas.annotations.Parameter;
+import io.swagger.v3.oas.annotations.responses.ApiResponse;
+import io.swagger.v3.oas.annotations.responses.ApiResponses;
+import io.swagger.v3.oas.annotations.tags.Tag;
+import jakarta.servlet.http.HttpServletRequest;
+import jakarta.validation.Valid;
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2021-02-15T11:15:47.327930400+02:00[Europe/Athens]")
+@Tag(name = "unAckAlarms", description = "the unAckAlarms API")
+public interface UnAckAlarmsApi {
+
+ Logger log = LoggerFactory.getLogger(UnAckAlarmsApi.class);
+
+ default Optional getObjectMapper(){
+ return Optional.empty();
+ }
+
+ default Optional getRequest(){
+ return Optional.empty();
+ }
+
+ default Optional getAcceptHeader() {
+ return getRequest().map(r -> r.getHeader("Accept"));
+ }
+
+ @Operation(summary = "Creates a UnAckAlarms", operationId = "createUnAckAlarms", description = "This operation creates a UnAckAlarms entity.", tags={ "unAckAlarms", })
+ @ApiResponses(value = {
+ @ApiResponse(responseCode = "400", description = "Created" ),
+ @ApiResponse(responseCode = "400", description = "Bad Request" ),
+ @ApiResponse(responseCode = "401", description = "Unauthorized" ),
+ @ApiResponse(responseCode = "403", description = "Forbidden" ),
+ @ApiResponse(responseCode = "405", description = "Method Not allowed" ),
+ @ApiResponse(responseCode = "409", description = "Conflict" ),
+ @ApiResponse(responseCode = "500", description = "Internal Server Error" ) })
+ @RequestMapping(value = "/unAckAlarms",
+ produces = { "application/json;charset=utf-8" },
+ consumes = { "application/json;charset=utf-8" },
+ method = RequestMethod.POST)
+ default ResponseEntity createUnAckAlarms(@Parameter(description = "The UnAckAlarms to be created" ,required=true ) @Valid @RequestBody UnAckAlarmsCreate body
+) {
+ if(getObjectMapper().isPresent() && getAcceptHeader().isPresent()) {
+ if (getAcceptHeader().get().contains("application/json")) {
+ try {
+ return new ResponseEntity<>(getObjectMapper().get().readValue("{\r\n \"ackTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"ackUserId\" : \"ackUserId\",\r\n \"unAckedAlarm\" : [ {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n }, {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n } ],\r\n \"@baseType\" : \"@baseType\",\r\n \"alarmPattern\" : [ {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n }, {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n } ],\r\n \"@type\" : \"@type\",\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n}", UnAckAlarms.class), HttpStatus.NOT_IMPLEMENTED);
+ } catch (IOException e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+ } else {
+ log.warn("ObjectMapper or HttpServletRequest not configured in default UnAckAlarmsApi interface so no example is generated");
+ }
+ return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
+ }
+
+
+ @Operation(summary = "List or find UnAckAlarms objects", operationId = "listUnAckAlarms", description = "This operation list or find UnAckAlarms entities" , tags={ "unAckAlarms", })
+ @ApiResponses(value = {
+ @ApiResponse(responseCode ="200", description = "Success" ),
+ @ApiResponse(responseCode = "400", description = "Bad Request" ),
+ @ApiResponse(responseCode = "401", description = "Unauthorized" ),
+ @ApiResponse(responseCode = "403", description = "Forbidden" ),
+ @ApiResponse(responseCode = "404", description = "Not Found" ),
+ @ApiResponse(responseCode = "405", description = "Method Not allowed" ),
+ @ApiResponse(responseCode = "409", description = "Conflict" ),
+ @ApiResponse(responseCode = "500", description = "Internal Server Error" ) })
+ @RequestMapping(value = "/unAckAlarms",
+ produces = { "application/json;charset=utf-8" },
+ method = RequestMethod.GET)
+ default ResponseEntity> listUnAckAlarms(@Parameter(description = "Comma-separated properties to be provided in response") @Valid @RequestParam(value = "fields", required = false) String fields
+,@Parameter(description = "Requested index for start of resources to be provided in response") @Valid @RequestParam(value = "offset", required = false) Integer offset
+,@Parameter(description = "Requested number of resources to be provided in response") @Valid @RequestParam(value = "limit", required = false) Integer limit
+, Map allParams) {
+ if(getObjectMapper().isPresent() && getAcceptHeader().isPresent()) {
+ if (getAcceptHeader().get().contains("application/json")) {
+ try {
+ return new ResponseEntity<>(getObjectMapper().get().readValue("[ {\r\n \"ackTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"ackUserId\" : \"ackUserId\",\r\n \"unAckedAlarm\" : [ {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n }, {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n } ],\r\n \"@baseType\" : \"@baseType\",\r\n \"alarmPattern\" : [ {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n }, {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n } ],\r\n \"@type\" : \"@type\",\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n}, {\r\n \"ackTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"ackUserId\" : \"ackUserId\",\r\n \"unAckedAlarm\" : [ {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n }, {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n } ],\r\n \"@baseType\" : \"@baseType\",\r\n \"alarmPattern\" : [ {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n }, {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n } ],\r\n \"@type\" : \"@type\",\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n} ]", List.class), HttpStatus.NOT_IMPLEMENTED);
+ } catch (IOException e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+ } else {
+ log.warn("ObjectMapper or HttpServletRequest not configured in default UnAckAlarmsApi interface so no example is generated");
+ }
+ return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
+ }
+
+
+ @Operation(summary = "Retrieves a UnAckAlarms by ID", operationId = "retrieveUnAckAlarms", description = "This operation retrieves a UnAckAlarms entity. Attribute selection is enabled for all first level attributes.", tags={ "unAckAlarms", })
+ @ApiResponses(value = {
+ @ApiResponse(responseCode ="200", description = "Success" ),
+ @ApiResponse(responseCode = "400", description = "Bad Request" ),
+ @ApiResponse(responseCode = "401", description = "Unauthorized" ),
+ @ApiResponse(responseCode = "403", description = "Forbidden" ),
+ @ApiResponse(responseCode = "404", description = "Not Found" ),
+ @ApiResponse(responseCode = "405", description = "Method Not allowed" ),
+ @ApiResponse(responseCode = "409", description = "Conflict" ),
+ @ApiResponse(responseCode = "500", description = "Internal Server Error" ) })
+ @RequestMapping(value = "/unAckAlarms/{id}",
+ produces = { "application/json;charset=utf-8" },
+ method = RequestMethod.GET)
+ default ResponseEntity retrieveUnAckAlarms(@Parameter(description = "Identifier of the UnAckAlarms",required=true) @PathVariable("id") String id
+,@Parameter(description = "Comma-separated properties to provide in response") @Valid @RequestParam(value = "fields", required = false) String fields
+) {
+ if(getObjectMapper().isPresent() && getAcceptHeader().isPresent()) {
+ if (getAcceptHeader().get().contains("application/json")) {
+ try {
+ return new ResponseEntity<>(getObjectMapper().get().readValue("{\r\n \"ackTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"ackUserId\" : \"ackUserId\",\r\n \"unAckedAlarm\" : [ {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n }, {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n } ],\r\n \"@baseType\" : \"@baseType\",\r\n \"alarmPattern\" : [ {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n }, {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n } ],\r\n \"@type\" : \"@type\",\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n}", UnAckAlarms.class), HttpStatus.NOT_IMPLEMENTED);
+ } catch (IOException e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+ } else {
+ log.warn("ObjectMapper or HttpServletRequest not configured in default UnAckAlarmsApi interface so no example is generated");
+ }
+ return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
+ }
+
+}
diff --git a/src/main/java/org/etsi/osl/tmf/am642/api/UnAckAlarmsApiController.java b/src/main/java/org/etsi/osl/tmf/am642/api/UnAckAlarmsApiController.java
new file mode 100644
index 0000000000000000000000000000000000000000..6ca16ef51f9bfdd3f20a6a806aaef6801b72ecd6
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/am642/api/UnAckAlarmsApiController.java
@@ -0,0 +1,137 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 - 2021 openslice.io
+ * %%
+ * 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.etsi.osl.tmf.am642.api;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.etsi.osl.tmf.am642.model.UnAckAlarms;
+import org.etsi.osl.tmf.am642.model.UnAckAlarmsCreate;
+import org.etsi.osl.tmf.am642.reposervices.UnAckAlarmsRepoService;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.HttpStatus;
+import org.springframework.http.ResponseEntity;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+import jakarta.servlet.http.HttpServletRequest;
+import jakarta.validation.Valid;
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2021-02-15T11:15:47.327930400+02:00[Europe/Athens]")
+@Controller
+@RequestMapping("/alarmManagement/v4/")
+public class UnAckAlarmsApiController implements UnAckAlarmsApi {
+
+ private final ObjectMapper objectMapper;
+
+ private final HttpServletRequest request;
+
+ private static final Logger log = LoggerFactory.getLogger(UnAckAlarmsApiController.class);
+
+
+
+ @Autowired
+ UnAckAlarmsRepoService unackAlarmRepoService;
+
+
+ @org.springframework.beans.factory.annotation.Autowired
+ public UnAckAlarmsApiController(ObjectMapper objectMapper, HttpServletRequest request) {
+ this.objectMapper = objectMapper;
+ this.request = request;
+ }
+
+ @Override
+ public Optional getObjectMapper() {
+ return Optional.ofNullable(objectMapper);
+ }
+
+ @Override
+ public Optional getRequest() {
+ return Optional.ofNullable(request);
+ }
+
+
+ @Override
+ @PreAuthorize("hasAnyAuthority('ROLE_ADMIN')" )
+ public ResponseEntity createUnAckAlarms(@Valid UnAckAlarmsCreate body) {
+ try {
+
+ UnAckAlarms c = unackAlarmRepoService.addAckAlarm( body );
+
+ return new ResponseEntity(c, HttpStatus.OK);
+ } catch (Exception e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+
+
+ @Override
+ @PreAuthorize("hasAnyAuthority('ROLE_ADMIN')" )
+ public ResponseEntity> listUnAckAlarms(@Valid String fields, @Valid Integer offset,
+ @Valid Integer limit, Map allParams) {
+ try {
+ if (allParams != null) {
+ allParams.remove("fields");
+ allParams.remove("offset");
+ allParams.remove("limit");
+ } else {
+ allParams = new HashMap<>();
+ }
+ if ((fields == null) && (allParams.size() == 0)) {
+
+ String myfields = "lastUpdate,lifecycleStatus";
+ return new ResponseEntity>(
+ unackAlarmRepoService.findAll( myfields, allParams), HttpStatus.OK);
+
+
+ } else {
+
+
+ return new ResponseEntity>(
+ unackAlarmRepoService.findAll(fields, allParams), HttpStatus.OK);
+ }
+
+ } catch (Exception e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+
+
+ @Override
+ @PreAuthorize("hasAnyAuthority('ROLE_ADMIN')" )
+ public ResponseEntity retrieveUnAckAlarms(String id, @Valid String fields) {
+ try {
+
+ return new ResponseEntity( unackAlarmRepoService.findById( id ), HttpStatus.OK);
+ } catch ( Exception e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+
+
+
+}
diff --git a/src/main/java/org/etsi/osl/tmf/am642/api/UnGroupAlarmsApi.java b/src/main/java/org/etsi/osl/tmf/am642/api/UnGroupAlarmsApi.java
new file mode 100644
index 0000000000000000000000000000000000000000..d9d855f6fba507c88f1c5ee8851bee7ba83ec4ca
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/am642/api/UnGroupAlarmsApi.java
@@ -0,0 +1,164 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 - 2021 openslice.io
+ * %%
+ * 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==================================
+ */
+/**
+ * NOTE: This class is auto generated by the swagger code generator program (3.0.19).
+ * https://github.com/swagger-api/swagger-codegen
+ * Do not edit the class manually.
+ */
+package org.etsi.osl.tmf.am642.api;
+
+import java.io.IOException;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.etsi.osl.tmf.am642.model.UnGroupAlarms;
+import org.etsi.osl.tmf.am642.model.UnGroupAlarmsCreate;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.http.HttpStatus;
+import org.springframework.http.ResponseEntity;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+import org.springframework.web.bind.annotation.RequestParam;
+import io.swagger.v3.oas.annotations.Operation;
+import io.swagger.v3.oas.annotations.Parameter;
+import io.swagger.v3.oas.annotations.responses.ApiResponse;
+import io.swagger.v3.oas.annotations.responses.ApiResponses;
+import io.swagger.v3.oas.annotations.tags.Tag;
+import jakarta.servlet.http.HttpServletRequest;
+import jakarta.validation.Valid;
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2021-02-15T11:15:47.327930400+02:00[Europe/Athens]")
+@Tag(name = "unGroupAlarms", description = "the unGroupAlarms API")
+public interface UnGroupAlarmsApi {
+
+ Logger log = LoggerFactory.getLogger(UnGroupAlarmsApi.class);
+
+ default Optional getObjectMapper(){
+ return Optional.empty();
+ }
+
+ default Optional getRequest(){
+ return Optional.empty();
+ }
+
+ default Optional getAcceptHeader() {
+ return getRequest().map(r -> r.getHeader("Accept"));
+ }
+
+ @Operation(summary = "Creates a UnGroupAlarms", operationId = "createUnGroupAlarms", description = "This operation creates a UnGroupAlarms entity.", tags={ "unGroupAlarms", })
+ @ApiResponses(value = {
+ @ApiResponse(responseCode = "400", description = "Created" ),
+ @ApiResponse(responseCode = "400", description = "Bad Request" ),
+ @ApiResponse(responseCode = "401", description = "Unauthorized" ),
+ @ApiResponse(responseCode = "403", description = "Forbidden" ),
+ @ApiResponse(responseCode = "405", description = "Method Not allowed" ),
+ @ApiResponse(responseCode = "409", description = "Conflict" ),
+ @ApiResponse(responseCode = "500", description = "Internal Server Error" ) })
+ @RequestMapping(value = "/unGroupAlarms",
+ produces = { "application/json;charset=utf-8" },
+ consumes = { "application/json;charset=utf-8" },
+ method = RequestMethod.POST)
+ default ResponseEntity createUnGroupAlarms(@Parameter(description = "The UnGroupAlarms to be created" ,required=true ) @Valid @RequestBody UnGroupAlarmsCreate body
+) {
+ if(getObjectMapper().isPresent() && getAcceptHeader().isPresent()) {
+ if (getAcceptHeader().get().contains("application/json")) {
+ try {
+ return new ResponseEntity<>(getObjectMapper().get().readValue("{\r\n \"@baseType\" : \"@baseType\",\r\n \"unGroupedAlarm\" : [ null, null ],\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"@type\" : \"@type\",\r\n \"correlatedAlarm\" : [ {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n }, {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n } ],\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\"\r\n}", UnGroupAlarms.class), HttpStatus.NOT_IMPLEMENTED);
+ } catch (IOException e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+ } else {
+ log.warn("ObjectMapper or HttpServletRequest not configured in default UnGroupAlarmsApi interface so no example is generated");
+ }
+ return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
+ }
+
+
+ @Operation(summary = "List or find UnGroupAlarms objects", operationId = "listUnGroupAlarms", description = "This operation list or find UnGroupAlarms entities" , tags={ "unGroupAlarms", })
+ @ApiResponses(value = {
+ @ApiResponse(responseCode ="200", description = "Success" ),
+ @ApiResponse(responseCode = "400", description = "Bad Request" ),
+ @ApiResponse(responseCode = "401", description = "Unauthorized" ),
+ @ApiResponse(responseCode = "403", description = "Forbidden" ),
+ @ApiResponse(responseCode = "404", description = "Not Found" ),
+ @ApiResponse(responseCode = "405", description = "Method Not allowed" ),
+ @ApiResponse(responseCode = "409", description = "Conflict" ),
+ @ApiResponse(responseCode = "500", description = "Internal Server Error" ) })
+ @RequestMapping(value = "/unGroupAlarms",
+ produces = { "application/json;charset=utf-8" },
+ method = RequestMethod.GET)
+ default ResponseEntity> listUnGroupAlarms(@Parameter(description = "Comma-separated properties to be provided in response") @Valid @RequestParam(value = "fields", required = false) String fields
+,@Parameter(description = "Requested index for start of resources to be provided in response") @Valid @RequestParam(value = "offset", required = false) Integer offset
+,@Parameter(description = "Requested number of resources to be provided in response") @Valid @RequestParam(value = "limit", required = false) Integer limit
+, Map allParams) {
+ if(getObjectMapper().isPresent() && getAcceptHeader().isPresent()) {
+ if (getAcceptHeader().get().contains("application/json")) {
+ try {
+ return new ResponseEntity<>(getObjectMapper().get().readValue("[ {\r\n \"@baseType\" : \"@baseType\",\r\n \"unGroupedAlarm\" : [ null, null ],\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"@type\" : \"@type\",\r\n \"correlatedAlarm\" : [ {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n }, {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n } ],\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\"\r\n}, {\r\n \"@baseType\" : \"@baseType\",\r\n \"unGroupedAlarm\" : [ null, null ],\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"@type\" : \"@type\",\r\n \"correlatedAlarm\" : [ {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n }, {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n } ],\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\"\r\n} ]", List.class), HttpStatus.NOT_IMPLEMENTED);
+ } catch (IOException e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+ } else {
+ log.warn("ObjectMapper or HttpServletRequest not configured in default UnGroupAlarmsApi interface so no example is generated");
+ }
+ return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
+ }
+
+
+ @Operation(summary = "Retrieves a UnGroupAlarms by ID", operationId = "retrieveUnGroupAlarms", description = "This operation retrieves a UnGroupAlarms entity. Attribute selection is enabled for all first level attributes.", tags={ "unGroupAlarms", })
+ @ApiResponses(value = {
+ @ApiResponse(responseCode ="200", description = "Success" ),
+ @ApiResponse(responseCode = "400", description = "Bad Request" ),
+ @ApiResponse(responseCode = "401", description = "Unauthorized" ),
+ @ApiResponse(responseCode = "403", description = "Forbidden" ),
+ @ApiResponse(responseCode = "404", description = "Not Found" ),
+ @ApiResponse(responseCode = "405", description = "Method Not allowed" ),
+ @ApiResponse(responseCode = "409", description = "Conflict" ),
+ @ApiResponse(responseCode = "500", description = "Internal Server Error" ) })
+ @RequestMapping(value = "/unGroupAlarms/{id}",
+ produces = { "application/json;charset=utf-8" },
+ method = RequestMethod.GET)
+ default ResponseEntity retrieveUnGroupAlarms(@Parameter(description = "Identifier of the UnGroupAlarms",required=true) @PathVariable("id") String id
+,@Parameter(description = "Comma-separated properties to provide in response") @Valid @RequestParam(value = "fields", required = false) String fields
+) {
+ if(getObjectMapper().isPresent() && getAcceptHeader().isPresent()) {
+ if (getAcceptHeader().get().contains("application/json")) {
+ try {
+ return new ResponseEntity<>(getObjectMapper().get().readValue("{\r\n \"@baseType\" : \"@baseType\",\r\n \"unGroupedAlarm\" : [ null, null ],\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"@type\" : \"@type\",\r\n \"correlatedAlarm\" : [ {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n }, {\r\n \"reportingSystemId\" : \"reportingSystemId\",\r\n \"alarmRaisedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@referredType\" : \"@referredType\",\r\n \"alarmClearedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObjectType\" : \"alarmedObjectType\",\r\n \"@type\" : \"@type\",\r\n \"proposedRepairedActions\" : \"proposedRepairedActions\",\r\n \"correlatedAlarm\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"alarmReportingTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"alarmedObject\" : {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"alarmEscalation\" : true,\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@baseType\" : \"@baseType\",\r\n \"perceivedSeverity\" : \"perceivedSeverity\",\r\n \"probableCause\" : \"probableCause\",\r\n \"affectedService\" : [ {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"ackSystemId\" : \"ackSystemId\",\r\n \"id\" : 0,\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"place\" : [ {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n }, {\r\n \"@referredType\" : \"@referredType\",\r\n \"role\" : \"role\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n } ],\r\n \"crossedThresholdInformation\" : {\r\n \"indicatorName\" : \"indicatorName\",\r\n \"@baseType\" : \"@baseType\",\r\n \"thresholdCrossingDescription\" : \"thresholdCrossingDescription\",\r\n \"granularity\" : \"granularity\",\r\n \"@type\" : \"@type\",\r\n \"observedValue\" : \"observedValue\",\r\n \"threshold\" : {\r\n \"@referredType\" : \"@referredType\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"name\" : \"name\",\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\"\r\n },\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"direction\" : \"direction\",\r\n \"indicatorUnit\" : \"indicatorUnit\"\r\n },\r\n \"@schemaLocation\" : \"@schemaLocation\",\r\n \"externalAlarmId\" : \"externalAlarmId\",\r\n \"clearSystemId\" : \"clearSystemId\",\r\n \"parentAlarm\" : [ null, null ],\r\n \"isRootCause\" : true,\r\n \"ackUserId\" : \"ackUserId\",\r\n \"clearUserId\" : \"clearUserId\",\r\n \"serviceAffecting\" : true,\r\n \"sourceSystemId\" : \"sourceSystemId\",\r\n \"ackState\" : \"ackState\",\r\n \"alarmType\" : \"alarmType\",\r\n \"specificProblem\" : \"specificProblem\",\r\n \"name\" : \"name\",\r\n \"plannedOutageIndicator\" : \"plannedOutageIndicator\",\r\n \"comment\" : [ {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n }, {\r\n \"systemId\" : \"systemId\",\r\n \"@baseType\" : \"@baseType\",\r\n \"@type\" : \"@type\",\r\n \"comment\" : \"comment\",\r\n \"time\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"userId\" : \"userId\"\r\n } ],\r\n \"alarmDetails\" : \"alarmDetails\"\r\n } ],\r\n \"id\" : \"id\",\r\n \"href\" : \"href\",\r\n \"state\" : \"state\",\r\n \"@schemaLocation\" : \"http://example.com/aeiou\",\r\n \"alarmChangedTime\" : \"2000-01-23T04:56:07.000+00:00\"\r\n}", UnGroupAlarms.class), HttpStatus.NOT_IMPLEMENTED);
+ } catch (IOException e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+ } else {
+ log.warn("ObjectMapper or HttpServletRequest not configured in default UnGroupAlarmsApi interface so no example is generated");
+ }
+ return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
+ }
+
+}
diff --git a/src/main/java/org/etsi/osl/tmf/am642/api/UnGroupAlarmsApiController.java b/src/main/java/org/etsi/osl/tmf/am642/api/UnGroupAlarmsApiController.java
new file mode 100644
index 0000000000000000000000000000000000000000..edbc36b6ddfee89ee580224a61251b9d8666652c
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/am642/api/UnGroupAlarmsApiController.java
@@ -0,0 +1,132 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 - 2021 openslice.io
+ * %%
+ * 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.etsi.osl.tmf.am642.api;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.etsi.osl.tmf.am642.model.UnGroupAlarms;
+import org.etsi.osl.tmf.am642.model.UnGroupAlarmsCreate;
+import org.etsi.osl.tmf.am642.reposervices.UnGroupAlarmsRepoService;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.HttpStatus;
+import org.springframework.http.ResponseEntity;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+import jakarta.servlet.http.HttpServletRequest;
+import jakarta.validation.Valid;
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2021-02-15T11:15:47.327930400+02:00[Europe/Athens]")
+@Controller
+@RequestMapping("/alarmManagement/v4/")
+public class UnGroupAlarmsApiController implements UnGroupAlarmsApi {
+
+ private final ObjectMapper objectMapper;
+
+ private final HttpServletRequest request;
+
+ private static final Logger log = LoggerFactory.getLogger(UnGroupAlarmsApiController.class);
+
+
+ @Autowired
+ UnGroupAlarmsRepoService UnGroupAlarmRepoService;
+
+
+ @org.springframework.beans.factory.annotation.Autowired
+ public UnGroupAlarmsApiController(ObjectMapper objectMapper, HttpServletRequest request) {
+ this.objectMapper = objectMapper;
+ this.request = request;
+ }
+
+ @Override
+ public Optional getObjectMapper() {
+ return Optional.ofNullable(objectMapper);
+ }
+
+ @Override
+ public Optional getRequest() {
+ return Optional.ofNullable(request);
+ }
+
+
+ @Override
+ @PreAuthorize("hasAnyAuthority('ROLE_ADMIN')" )
+ public ResponseEntity createUnGroupAlarms(@Valid UnGroupAlarmsCreate body) {
+ try {
+
+ UnGroupAlarms c = UnGroupAlarmRepoService.addUnGroupAlarms(body);
+
+ return new ResponseEntity(c, HttpStatus.OK);
+ } catch (Exception e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+
+
+ @Override
+ @PreAuthorize("hasAnyAuthority('ROLE_ADMIN')" )
+ public ResponseEntity retrieveUnGroupAlarms(String id, @Valid String fields) {
+ try {
+
+ return new ResponseEntity(UnGroupAlarmRepoService.findById(id), HttpStatus.OK);
+ } catch (Exception e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+
+
+ @Override
+ @PreAuthorize("hasAnyAuthority('ROLE_ADMIN')" )
+ public ResponseEntity> listUnGroupAlarms(@Valid String fields, @Valid Integer offset,
+ @Valid Integer limit, Map allParams) {
+ try {
+ if (allParams != null) {
+ allParams.remove("fields");
+ allParams.remove("offset");
+ allParams.remove("limit");
+ } else {
+ allParams = new HashMap<>();
+ }
+ if ((fields == null) && (allParams.size() == 0)) {
+
+ String myfields = "lastUpdate,lifecycleStatus";
+ return new ResponseEntity>(UnGroupAlarmRepoService.findAll(myfields, allParams),
+ HttpStatus.OK);
+
+ } else {
+
+ return new ResponseEntity>(UnGroupAlarmRepoService.findAll(fields, allParams),
+ HttpStatus.OK);
+ }
+
+ } catch (Exception e) {
+ log.error("Couldn't serialize response for content type application/json", e);
+ return new ResponseEntity>(HttpStatus.INTERNAL_SERVER_ERROR);
+ }
+ }
+
+}
diff --git a/src/main/java/org/etsi/osl/tmf/am642/model/AckAlarms.java b/src/main/java/org/etsi/osl/tmf/am642/model/AckAlarms.java
new file mode 100644
index 0000000000000000000000000000000000000000..7749774ca769f97a0bd90fc20e24d36d8eb4f9d4
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/am642/model/AckAlarms.java
@@ -0,0 +1,292 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 - 2021 openslice.io
+ * %%
+ * 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.etsi.osl.tmf.am642.model;
+
+import java.time.OffsetDateTime;
+import java.util.HashSet;
+import java.util.Objects;
+import java.util.Set;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import org.etsi.osl.tmf.common.model.BaseRootEntity;
+import org.springframework.validation.annotation.Validated;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.persistence.CascadeType;
+import jakarta.persistence.Entity;
+import jakarta.persistence.OneToMany;
+import jakarta.persistence.Table;
+import jakarta.validation.Valid;
+
+/**
+ * Task resource for the acknowledge alarms operation
+ */
+@Schema(description = "Task resource for the acknowledge alarms operation")
+@Validated
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2021-02-15T11:15:47.327930400+02:00[Europe/Athens]")
+@Entity(name = "AMAckAlarms")
+@Table(name = "AMAckAlarms")
+public class AckAlarms extends BaseRootEntity {
+ @JsonProperty("id")
+ private String id = null;
+
+ @JsonProperty("href")
+ private String href = null;
+
+ @JsonProperty("ackSystemId")
+ private String ackSystemId = null;
+
+ private OffsetDateTime ackTime = null;
+
+ @JsonProperty("ackUserId")
+ private String ackUserId = null;
+
+ @JsonProperty("state")
+ private String state = null;
+
+ @JsonProperty("ackedAlarm")
+ @Valid
+ @OneToMany(cascade = { CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH })
+ private Set ackedAlarm = new HashSet<>();
+
+ @JsonProperty("alarmPattern")
+ @Valid
+ @OneToMany(cascade = { CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH })
+ private Set alarmPattern = new HashSet<>();
+
+ /**
+ * @return the id
+ */
+ public String getId() {
+ if (uuid != null) {
+ id = uuid;
+ }
+ return id;
+ }
+
+
+
+ public AckAlarms ackSystemId(String ackSystemId) {
+ this.ackSystemId = ackSystemId;
+ return this;
+ }
+
+ /**
+ * Name of the acknowledging system
+ *
+ * @return ackSystemId
+ **/
+ @Schema(description = "Name of the acknowledging system")
+
+ public String getAckSystemId() {
+ return ackSystemId;
+ }
+
+ public void setAckSystemId(String ackSystemId) {
+ this.ackSystemId = ackSystemId;
+ }
+
+ public AckAlarms ackTime(OffsetDateTime ackTime) {
+ this.ackTime = ackTime;
+ return this;
+ }
+
+ /**
+ * Time of the acknowledgement
+ *
+ * @return ackTime
+ **/
+ @Schema(description = "Time of the acknowledgement")
+
+ @Valid
+ public OffsetDateTime getAckTime() {
+ return ackTime;
+ }
+
+ public void setAckTime(OffsetDateTime ackTime) {
+ this.ackTime = ackTime;
+ }
+
+
+ @JsonProperty("ackTime")
+ public String getAckTimeStr() {
+ if (this.ackTime != null) {
+ return this.ackTime.toString();
+ } else {
+ return null;
+ }
+ }
+
+ public AckAlarms ackUserId(String ackUserId) {
+ this.ackUserId = ackUserId;
+ return this;
+ }
+
+ /**
+ * Name of the acknowledging user
+ *
+ * @return ackUserId
+ **/
+ @Schema(description = "Name of the acknowledging user")
+
+ public String getAckUserId() {
+ return ackUserId;
+ }
+
+ public void setAckUserId(String ackUserId) {
+ this.ackUserId = ackUserId;
+ }
+
+ public AckAlarms state(String state) {
+ this.state = state;
+ return this;
+ }
+
+ /**
+ * Current state of the operation task
+ *
+ * @return state
+ **/
+ @Schema(description = "Current state of the operation task")
+
+ public String getState() {
+ return state;
+ }
+
+ public void setState(String state) {
+ this.state = state;
+ }
+
+ public AckAlarms ackedAlarm(Set ackedAlarm) {
+ this.ackedAlarm = ackedAlarm;
+ return this;
+ }
+
+ public AckAlarms addAckedAlarmItem(AlarmRefOrValue ackedAlarmItem) {
+ if (this.ackedAlarm == null) {
+ this.ackedAlarm = new HashSet<>();
+ }
+ this.ackedAlarm.add(ackedAlarmItem);
+ return this;
+ }
+
+ /**
+ * The successfully acknowledged alarms
+ *
+ * @return ackedAlarm
+ **/
+ @Schema(description = "The successfully acknowledged alarms")
+ @Valid
+ public Set getAckedAlarm() {
+ return ackedAlarm;
+ }
+
+ public void setAckedAlarm(Set ackedAlarm) {
+ this.ackedAlarm = ackedAlarm;
+ }
+
+ public AckAlarms alarmPattern(Set alarmPattern) {
+ this.alarmPattern = alarmPattern;
+ return this;
+ }
+
+ public AckAlarms addAlarmPatternItem(Alarm alarmPatternItem) {
+ if (this.alarmPattern == null) {
+ this.alarmPattern = new HashSet<>();
+ }
+ this.alarmPattern.add(alarmPatternItem);
+ return this;
+ }
+
+ /**
+ * Alarm patterns to match target alarms. An alarm will match if all of the
+ * sttributes in any of the patterns compare equal to those attributes of the
+ * alarm.
+ *
+ * @return alarmPattern
+ **/
+ @Schema(description = "Alarm patterns to match target alarms. An alarm will match if all of the sttributes in any of the patterns compare equal to those attributes of the alarm.")
+ @Valid
+ public Set getAlarmPattern() {
+ return alarmPattern;
+ }
+
+ public void setAlarmPattern(Set alarmPattern) {
+ this.alarmPattern = alarmPattern;
+ }
+
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ AckAlarms ackAlarms = (AckAlarms) o;
+ return Objects.equals(this.id, ackAlarms.id) && Objects.equals(this.href, ackAlarms.href)
+ && Objects.equals(this.ackSystemId, ackAlarms.ackSystemId)
+ && Objects.equals(this.ackTime, ackAlarms.ackTime)
+ && Objects.equals(this.ackUserId, ackAlarms.ackUserId) && Objects.equals(this.state, ackAlarms.state)
+ && Objects.equals(this.ackedAlarm, ackAlarms.ackedAlarm)
+ && Objects.equals(this.alarmPattern, ackAlarms.alarmPattern)
+ && Objects.equals(this.baseType, ackAlarms.baseType)
+ && Objects.equals(this.schemaLocation, ackAlarms.schemaLocation)
+ && Objects.equals(this.type, ackAlarms.type);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(id, href, ackSystemId, ackTime, ackUserId, state, ackedAlarm, alarmPattern, baseType,
+ schemaLocation, type);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class AckAlarms {\n");
+
+ sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append(" href: ").append(toIndentedString(href)).append("\n");
+ sb.append(" ackSystemId: ").append(toIndentedString(ackSystemId)).append("\n");
+ sb.append(" ackTime: ").append(toIndentedString(ackTime)).append("\n");
+ sb.append(" ackUserId: ").append(toIndentedString(ackUserId)).append("\n");
+ sb.append(" state: ").append(toIndentedString(state)).append("\n");
+ sb.append(" ackedAlarm: ").append(toIndentedString(ackedAlarm)).append("\n");
+ sb.append(" alarmPattern: ").append(toIndentedString(alarmPattern)).append("\n");
+ sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n");
+ sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
+ sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/org/etsi/osl/tmf/am642/model/AckAlarmsCreate.java b/src/main/java/org/etsi/osl/tmf/am642/model/AckAlarmsCreate.java
new file mode 100644
index 0000000000000000000000000000000000000000..2171d8369b43a6dbd4559515a2f74611a6cb7d00
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/am642/model/AckAlarmsCreate.java
@@ -0,0 +1,314 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 - 2021 openslice.io
+ * %%
+ * 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.etsi.osl.tmf.am642.model;
+
+import java.time.OffsetDateTime;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Objects;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+import org.springframework.validation.annotation.Validated;
+
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.Valid;
+import jakarta.validation.constraints.NotNull;
+import jakarta.validation.constraints.Size;
+
+/**
+ * Task resource for the acknowledge alarms operation Skipped properties: id,href
+ */
+@Schema(description = "Task resource for the acknowledge alarms operation Skipped properties: id,href")
+@Validated
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2021-02-15T11:15:47.327930400+02:00[Europe/Athens]")
+public class AckAlarmsCreate {
+ @JsonProperty("ackSystemId")
+ private String ackSystemId = null;
+
+ @JsonProperty("ackTime")
+ private OffsetDateTime ackTime = null;
+
+ @JsonProperty("ackUserId")
+ private String ackUserId = null;
+
+ @JsonProperty("state")
+ private String state = null;
+
+ @JsonProperty("ackedAlarm")
+ @Valid
+ private List ackedAlarm = null;
+
+ @JsonProperty("alarmPattern")
+ @Valid
+ private List alarmPattern = new ArrayList<>();
+
+ @JsonProperty("@baseType")
+ private String baseType = null;
+
+ @JsonProperty("@schemaLocation")
+ private String schemaLocation = null;
+
+ @JsonProperty("@type")
+ private String type = null;
+
+ public AckAlarmsCreate ackSystemId(String ackSystemId) {
+ this.ackSystemId = ackSystemId;
+ return this;
+ }
+
+ /**
+ * Name of the acknowledging system
+ * @return ackSystemId
+ **/
+ @Schema(description = "Name of the acknowledging system")
+ @NotNull
+
+ public String getAckSystemId() {
+ return ackSystemId;
+ }
+
+ public void setAckSystemId(String ackSystemId) {
+ this.ackSystemId = ackSystemId;
+ }
+
+ public AckAlarmsCreate ackTime(OffsetDateTime ackTime) {
+ this.ackTime = ackTime;
+ return this;
+ }
+
+ /**
+ * Time of the acknowledgement
+ * @return ackTime
+ **/
+ @Schema(description = "Time of the acknowledgement")
+
+ @Valid
+ public OffsetDateTime getAckTime() {
+ return ackTime;
+ }
+
+ public void setAckTime(OffsetDateTime ackTime) {
+ this.ackTime = ackTime;
+ }
+
+ public AckAlarmsCreate ackUserId(String ackUserId) {
+ this.ackUserId = ackUserId;
+ return this;
+ }
+
+ /**
+ * Name of the acknowledging user
+ * @return ackUserId
+ **/
+ @Schema(description = "Name of the acknowledging user")
+ @NotNull
+
+ public String getAckUserId() {
+ return ackUserId;
+ }
+
+ public void setAckUserId(String ackUserId) {
+ this.ackUserId = ackUserId;
+ }
+
+ public AckAlarmsCreate state(String state) {
+ this.state = state;
+ return this;
+ }
+
+ /**
+ * Current state of the operation task
+ * @return state
+ **/
+ @Schema(description = "Current state of the operation task")
+
+ public String getState() {
+ return state;
+ }
+
+ public void setState(String state) {
+ this.state = state;
+ }
+
+ public AckAlarmsCreate ackedAlarm(List ackedAlarm) {
+ this.ackedAlarm = ackedAlarm;
+ return this;
+ }
+
+ public AckAlarmsCreate addAckedAlarmItem(AlarmRefOrValue ackedAlarmItem) {
+ if (this.ackedAlarm == null) {
+ this.ackedAlarm = new ArrayList<>();
+ }
+ this.ackedAlarm.add(ackedAlarmItem);
+ return this;
+ }
+
+ /**
+ * The successfully acknowledged alarms
+ * @return ackedAlarm
+ **/
+ @Schema(description = "The successfully acknowledged alarms")
+ @Valid
+ public List getAckedAlarm() {
+ return ackedAlarm;
+ }
+
+ public void setAckedAlarm(List ackedAlarm) {
+ this.ackedAlarm = ackedAlarm;
+ }
+
+ public AckAlarmsCreate alarmPattern(List alarmPattern) {
+ this.alarmPattern = alarmPattern;
+ return this;
+ }
+
+ public AckAlarmsCreate addAlarmPatternItem(Alarm alarmPatternItem) {
+ this.alarmPattern.add(alarmPatternItem);
+ return this;
+ }
+
+ /**
+ * Alarm patterns to match target alarms. An alarm will match if all of the sttributes in any of the patterns compare equal to those attributes of the alarm.
+ * @return alarmPattern
+ **/
+ @Schema(description = "Alarm patterns to match target alarms. An alarm will match if all of the sttributes in any of the patterns compare equal to those attributes of the alarm.")
+ @NotNull
+ @Valid
+ @Size(min=1) public List getAlarmPattern() {
+ return alarmPattern;
+ }
+
+ public void setAlarmPattern(List alarmPattern) {
+ this.alarmPattern = alarmPattern;
+ }
+
+ public AckAlarmsCreate baseType(String baseType) {
+ this.baseType = baseType;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the super-class
+ * @return baseType
+ **/
+ @Schema(description = "When sub-classing, this defines the super-class")
+
+ public String getAtBaseType() {
+ return baseType;
+ }
+
+ public void setAtBaseType(String baseType) {
+ this.baseType = baseType;
+ }
+
+ public AckAlarmsCreate schemaLocation(String schemaLocation) {
+ this.schemaLocation = schemaLocation;
+ return this;
+ }
+
+ /**
+ * A URI to a JSON-Schema file that defines additional attributes and relationships
+ * @return schemaLocation
+ **/
+ @Schema(description = "A URI to a JSON-Schema file that defines additional attributes and relationships")
+
+ public String getAtSchemaLocation() {
+ return schemaLocation;
+ }
+
+ public void setAtSchemaLocation(String schemaLocation) {
+ this.schemaLocation = schemaLocation;
+ }
+
+ public AckAlarmsCreate type(String type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the sub-class entity name
+ * @return type
+ **/
+ @Schema(description = "When sub-classing, this defines the sub-class entity name")
+
+ public String getAtType() {
+ return type;
+ }
+
+ public void setAtType(String type) {
+ this.type = type;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ AckAlarmsCreate ackAlarmsCreate = (AckAlarmsCreate) o;
+ return Objects.equals(this.ackSystemId, ackAlarmsCreate.ackSystemId) &&
+ Objects.equals(this.ackTime, ackAlarmsCreate.ackTime) &&
+ Objects.equals(this.ackUserId, ackAlarmsCreate.ackUserId) &&
+ Objects.equals(this.state, ackAlarmsCreate.state) &&
+ Objects.equals(this.ackedAlarm, ackAlarmsCreate.ackedAlarm) &&
+ Objects.equals(this.alarmPattern, ackAlarmsCreate.alarmPattern) &&
+ Objects.equals(this.baseType, ackAlarmsCreate.baseType) &&
+ Objects.equals(this.schemaLocation, ackAlarmsCreate.schemaLocation) &&
+ Objects.equals(this.type, ackAlarmsCreate.type);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(ackSystemId, ackTime, ackUserId, state, ackedAlarm, alarmPattern, baseType, schemaLocation, type);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class AckAlarmsCreate {\n");
+
+ sb.append(" ackSystemId: ").append(toIndentedString(ackSystemId)).append("\n");
+ sb.append(" ackTime: ").append(toIndentedString(ackTime)).append("\n");
+ sb.append(" ackUserId: ").append(toIndentedString(ackUserId)).append("\n");
+ sb.append(" state: ").append(toIndentedString(state)).append("\n");
+ sb.append(" ackedAlarm: ").append(toIndentedString(ackedAlarm)).append("\n");
+ sb.append(" alarmPattern: ").append(toIndentedString(alarmPattern)).append("\n");
+ sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n");
+ sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
+ sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/org/etsi/osl/tmf/am642/model/AckAlarmsCreateEvent.java b/src/main/java/org/etsi/osl/tmf/am642/model/AckAlarmsCreateEvent.java
new file mode 100644
index 0000000000000000000000000000000000000000..a515722e59b347cbfcff3ad4556a05b07b2774e5
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/am642/model/AckAlarmsCreateEvent.java
@@ -0,0 +1,366 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 - 2021 openslice.io
+ * %%
+ * 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.etsi.osl.tmf.am642.model;
+
+import java.time.OffsetDateTime;
+import java.util.Objects;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+import org.springframework.validation.annotation.Validated;
+
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.Valid;
+
+/**
+ * The notification data structure
+ */
+@Schema(description = "The notification data structure")
+@Validated
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2021-02-15T11:15:47.327930400+02:00[Europe/Athens]")
+public class AckAlarmsCreateEvent {
+ @JsonProperty("id")
+ private String id = null;
+
+ @JsonProperty("href")
+ private String href = null;
+
+ @JsonProperty("eventId")
+ private String eventId = null;
+
+ @JsonProperty("eventTime")
+ private OffsetDateTime eventTime = null;
+
+ @JsonProperty("eventType")
+ private String eventType = null;
+
+ @JsonProperty("correlationId")
+ private String correlationId = null;
+
+ @JsonProperty("domain")
+ private String domain = null;
+
+ @JsonProperty("title")
+ private String title = null;
+
+ @JsonProperty("description")
+ private String description = null;
+
+ @JsonProperty("priority")
+ private String priority = null;
+
+ @JsonProperty("timeOcurred")
+ private OffsetDateTime timeOcurred = null;
+
+ @JsonProperty("event")
+ private AckAlarmsCreateEventPayload event = null;
+
+ public AckAlarmsCreateEvent id(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Identifier of the Process flow
+ * @return id
+ **/
+ @Schema(description = "Identifier of the Process flow")
+
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ public AckAlarmsCreateEvent href(String href) {
+ this.href = href;
+ return this;
+ }
+
+ /**
+ * Reference of the ProcessFlow
+ * @return href
+ **/
+ @Schema(description = "Reference of the ProcessFlow")
+
+ public String getHref() {
+ return href;
+ }
+
+ public void setHref(String href) {
+ this.href = href;
+ }
+
+ public AckAlarmsCreateEvent eventId(String eventId) {
+ this.eventId = eventId;
+ return this;
+ }
+
+ /**
+ * The identifier of the notification.
+ * @return eventId
+ **/
+ @Schema(description = "The identifier of the notification.")
+
+ public String getEventId() {
+ return eventId;
+ }
+
+ public void setEventId(String eventId) {
+ this.eventId = eventId;
+ }
+
+ public AckAlarmsCreateEvent eventTime(OffsetDateTime eventTime) {
+ this.eventTime = eventTime;
+ return this;
+ }
+
+ /**
+ * Time of the event occurrence.
+ * @return eventTime
+ **/
+ @Schema(description = "Time of the event occurrence.")
+
+ @Valid
+ public OffsetDateTime getEventTime() {
+ return eventTime;
+ }
+
+ public void setEventTime(OffsetDateTime eventTime) {
+ this.eventTime = eventTime;
+ }
+
+ public AckAlarmsCreateEvent eventType(String eventType) {
+ this.eventType = eventType;
+ return this;
+ }
+
+ /**
+ * The type of the notification.
+ * @return eventType
+ **/
+ @Schema(description = "The type of the notification.")
+
+ public String getEventType() {
+ return eventType;
+ }
+
+ public void setEventType(String eventType) {
+ this.eventType = eventType;
+ }
+
+ public AckAlarmsCreateEvent correlationId(String correlationId) {
+ this.correlationId = correlationId;
+ return this;
+ }
+
+ /**
+ * The correlation id for this event.
+ * @return correlationId
+ **/
+ @Schema(description = "The correlation id for this event.")
+
+ public String getCorrelationId() {
+ return correlationId;
+ }
+
+ public void setCorrelationId(String correlationId) {
+ this.correlationId = correlationId;
+ }
+
+ public AckAlarmsCreateEvent domain(String domain) {
+ this.domain = domain;
+ return this;
+ }
+
+ /**
+ * The domain of the event.
+ * @return domain
+ **/
+ @Schema(description = "The domain of the event.")
+
+ public String getDomain() {
+ return domain;
+ }
+
+ public void setDomain(String domain) {
+ this.domain = domain;
+ }
+
+ public AckAlarmsCreateEvent title(String title) {
+ this.title = title;
+ return this;
+ }
+
+ /**
+ * The title of the event.
+ * @return title
+ **/
+ @Schema(description = "The title of the event.")
+
+ public String getTitle() {
+ return title;
+ }
+
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+ public AckAlarmsCreateEvent description(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * An explnatory of the event.
+ * @return description
+ **/
+ @Schema(description = "An explnatory of the event.")
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public AckAlarmsCreateEvent priority(String priority) {
+ this.priority = priority;
+ return this;
+ }
+
+ /**
+ * A priority.
+ * @return priority
+ **/
+ @Schema(description = "A priority.")
+
+ public String getPriority() {
+ return priority;
+ }
+
+ public void setPriority(String priority) {
+ this.priority = priority;
+ }
+
+ public AckAlarmsCreateEvent timeOcurred(OffsetDateTime timeOcurred) {
+ this.timeOcurred = timeOcurred;
+ return this;
+ }
+
+ /**
+ * The time the event occured.
+ * @return timeOcurred
+ **/
+ @Schema(description = "The time the event occured.")
+
+ @Valid
+ public OffsetDateTime getTimeOcurred() {
+ return timeOcurred;
+ }
+
+ public void setTimeOcurred(OffsetDateTime timeOcurred) {
+ this.timeOcurred = timeOcurred;
+ }
+
+ public AckAlarmsCreateEvent event(AckAlarmsCreateEventPayload event) {
+ this.event = event;
+ return this;
+ }
+
+ /**
+ * Get event
+ * @return event
+ **/
+ @Schema(description = "")
+
+ @Valid
+ public AckAlarmsCreateEventPayload getEvent() {
+ return event;
+ }
+
+ public void setEvent(AckAlarmsCreateEventPayload event) {
+ this.event = event;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ AckAlarmsCreateEvent ackAlarmsCreateEvent = (AckAlarmsCreateEvent) o;
+ return Objects.equals(this.id, ackAlarmsCreateEvent.id) &&
+ Objects.equals(this.href, ackAlarmsCreateEvent.href) &&
+ Objects.equals(this.eventId, ackAlarmsCreateEvent.eventId) &&
+ Objects.equals(this.eventTime, ackAlarmsCreateEvent.eventTime) &&
+ Objects.equals(this.eventType, ackAlarmsCreateEvent.eventType) &&
+ Objects.equals(this.correlationId, ackAlarmsCreateEvent.correlationId) &&
+ Objects.equals(this.domain, ackAlarmsCreateEvent.domain) &&
+ Objects.equals(this.title, ackAlarmsCreateEvent.title) &&
+ Objects.equals(this.description, ackAlarmsCreateEvent.description) &&
+ Objects.equals(this.priority, ackAlarmsCreateEvent.priority) &&
+ Objects.equals(this.timeOcurred, ackAlarmsCreateEvent.timeOcurred) &&
+ Objects.equals(this.event, ackAlarmsCreateEvent.event);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(id, href, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred, event);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class AckAlarmsCreateEvent {\n");
+
+ sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append(" href: ").append(toIndentedString(href)).append("\n");
+ sb.append(" eventId: ").append(toIndentedString(eventId)).append("\n");
+ sb.append(" eventTime: ").append(toIndentedString(eventTime)).append("\n");
+ sb.append(" eventType: ").append(toIndentedString(eventType)).append("\n");
+ sb.append(" correlationId: ").append(toIndentedString(correlationId)).append("\n");
+ sb.append(" domain: ").append(toIndentedString(domain)).append("\n");
+ sb.append(" title: ").append(toIndentedString(title)).append("\n");
+ sb.append(" description: ").append(toIndentedString(description)).append("\n");
+ sb.append(" priority: ").append(toIndentedString(priority)).append("\n");
+ sb.append(" timeOcurred: ").append(toIndentedString(timeOcurred)).append("\n");
+ sb.append(" event: ").append(toIndentedString(event)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/org/etsi/osl/tmf/am642/model/AckAlarmsCreateEventPayload.java b/src/main/java/org/etsi/osl/tmf/am642/model/AckAlarmsCreateEventPayload.java
new file mode 100644
index 0000000000000000000000000000000000000000..788d11c3fc82f0df9a09f02100cf8e13ed37be06
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/am642/model/AckAlarmsCreateEventPayload.java
@@ -0,0 +1,99 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 - 2021 openslice.io
+ * %%
+ * 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.etsi.osl.tmf.am642.model;
+
+import java.util.Objects;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+import org.springframework.validation.annotation.Validated;
+
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.Valid;
+
+/**
+ * The event data structure
+ */
+@Schema(description = "The event data structure")
+@Validated
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2021-02-15T11:15:47.327930400+02:00[Europe/Athens]")
+public class AckAlarmsCreateEventPayload {
+ @JsonProperty("ackAlarms")
+ private AckAlarms ackAlarms = null;
+
+ public AckAlarmsCreateEventPayload ackAlarms(AckAlarms ackAlarms) {
+ this.ackAlarms = ackAlarms;
+ return this;
+ }
+
+ /**
+ * Get ackAlarms
+ * @return ackAlarms
+ **/
+ @Schema(description = "")
+
+ @Valid
+ public AckAlarms getAckAlarms() {
+ return ackAlarms;
+ }
+
+ public void setAckAlarms(AckAlarms ackAlarms) {
+ this.ackAlarms = ackAlarms;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ AckAlarmsCreateEventPayload ackAlarmsCreateEventPayload = (AckAlarmsCreateEventPayload) o;
+ return Objects.equals(this.ackAlarms, ackAlarmsCreateEventPayload.ackAlarms);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(ackAlarms);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class AckAlarmsCreateEventPayload {\n");
+
+ sb.append(" ackAlarms: ").append(toIndentedString(ackAlarms)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/org/etsi/osl/tmf/am642/model/AckAlarmsStateChangeEvent.java b/src/main/java/org/etsi/osl/tmf/am642/model/AckAlarmsStateChangeEvent.java
new file mode 100644
index 0000000000000000000000000000000000000000..96006442c17eb33529772637204c455d3a8c9e47
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/am642/model/AckAlarmsStateChangeEvent.java
@@ -0,0 +1,366 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 - 2021 openslice.io
+ * %%
+ * 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.etsi.osl.tmf.am642.model;
+
+import java.time.OffsetDateTime;
+import java.util.Objects;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+import org.springframework.validation.annotation.Validated;
+
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.Valid;
+
+/**
+ * The notification data structure
+ */
+@Schema(description = "The notification data structure")
+@Validated
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2021-02-15T11:15:47.327930400+02:00[Europe/Athens]")
+public class AckAlarmsStateChangeEvent {
+ @JsonProperty("id")
+ private String id = null;
+
+ @JsonProperty("href")
+ private String href = null;
+
+ @JsonProperty("eventId")
+ private String eventId = null;
+
+ @JsonProperty("eventTime")
+ private OffsetDateTime eventTime = null;
+
+ @JsonProperty("eventType")
+ private String eventType = null;
+
+ @JsonProperty("correlationId")
+ private String correlationId = null;
+
+ @JsonProperty("domain")
+ private String domain = null;
+
+ @JsonProperty("title")
+ private String title = null;
+
+ @JsonProperty("description")
+ private String description = null;
+
+ @JsonProperty("priority")
+ private String priority = null;
+
+ @JsonProperty("timeOcurred")
+ private OffsetDateTime timeOcurred = null;
+
+ @JsonProperty("event")
+ private AckAlarmsStateChangeEventPayload event = null;
+
+ public AckAlarmsStateChangeEvent id(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Identifier of the Process flow
+ * @return id
+ **/
+ @Schema(description = "Identifier of the Process flow")
+
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ public AckAlarmsStateChangeEvent href(String href) {
+ this.href = href;
+ return this;
+ }
+
+ /**
+ * Reference of the ProcessFlow
+ * @return href
+ **/
+ @Schema(description = "Reference of the ProcessFlow")
+
+ public String getHref() {
+ return href;
+ }
+
+ public void setHref(String href) {
+ this.href = href;
+ }
+
+ public AckAlarmsStateChangeEvent eventId(String eventId) {
+ this.eventId = eventId;
+ return this;
+ }
+
+ /**
+ * The identifier of the notification.
+ * @return eventId
+ **/
+ @Schema(description = "The identifier of the notification.")
+
+ public String getEventId() {
+ return eventId;
+ }
+
+ public void setEventId(String eventId) {
+ this.eventId = eventId;
+ }
+
+ public AckAlarmsStateChangeEvent eventTime(OffsetDateTime eventTime) {
+ this.eventTime = eventTime;
+ return this;
+ }
+
+ /**
+ * Time of the event occurrence.
+ * @return eventTime
+ **/
+ @Schema(description = "Time of the event occurrence.")
+
+ @Valid
+ public OffsetDateTime getEventTime() {
+ return eventTime;
+ }
+
+ public void setEventTime(OffsetDateTime eventTime) {
+ this.eventTime = eventTime;
+ }
+
+ public AckAlarmsStateChangeEvent eventType(String eventType) {
+ this.eventType = eventType;
+ return this;
+ }
+
+ /**
+ * The type of the notification.
+ * @return eventType
+ **/
+ @Schema(description = "The type of the notification.")
+
+ public String getEventType() {
+ return eventType;
+ }
+
+ public void setEventType(String eventType) {
+ this.eventType = eventType;
+ }
+
+ public AckAlarmsStateChangeEvent correlationId(String correlationId) {
+ this.correlationId = correlationId;
+ return this;
+ }
+
+ /**
+ * The correlation id for this event.
+ * @return correlationId
+ **/
+ @Schema(description = "The correlation id for this event.")
+
+ public String getCorrelationId() {
+ return correlationId;
+ }
+
+ public void setCorrelationId(String correlationId) {
+ this.correlationId = correlationId;
+ }
+
+ public AckAlarmsStateChangeEvent domain(String domain) {
+ this.domain = domain;
+ return this;
+ }
+
+ /**
+ * The domain of the event.
+ * @return domain
+ **/
+ @Schema(description = "The domain of the event.")
+
+ public String getDomain() {
+ return domain;
+ }
+
+ public void setDomain(String domain) {
+ this.domain = domain;
+ }
+
+ public AckAlarmsStateChangeEvent title(String title) {
+ this.title = title;
+ return this;
+ }
+
+ /**
+ * The title of the event.
+ * @return title
+ **/
+ @Schema(description = "The title of the event.")
+
+ public String getTitle() {
+ return title;
+ }
+
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+ public AckAlarmsStateChangeEvent description(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * An explnatory of the event.
+ * @return description
+ **/
+ @Schema(description = "An explnatory of the event.")
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public AckAlarmsStateChangeEvent priority(String priority) {
+ this.priority = priority;
+ return this;
+ }
+
+ /**
+ * A priority.
+ * @return priority
+ **/
+ @Schema(description = "A priority.")
+
+ public String getPriority() {
+ return priority;
+ }
+
+ public void setPriority(String priority) {
+ this.priority = priority;
+ }
+
+ public AckAlarmsStateChangeEvent timeOcurred(OffsetDateTime timeOcurred) {
+ this.timeOcurred = timeOcurred;
+ return this;
+ }
+
+ /**
+ * The time the event occured.
+ * @return timeOcurred
+ **/
+ @Schema(description = "The time the event occured.")
+
+ @Valid
+ public OffsetDateTime getTimeOcurred() {
+ return timeOcurred;
+ }
+
+ public void setTimeOcurred(OffsetDateTime timeOcurred) {
+ this.timeOcurred = timeOcurred;
+ }
+
+ public AckAlarmsStateChangeEvent event(AckAlarmsStateChangeEventPayload event) {
+ this.event = event;
+ return this;
+ }
+
+ /**
+ * Get event
+ * @return event
+ **/
+ @Schema(description = "")
+
+ @Valid
+ public AckAlarmsStateChangeEventPayload getEvent() {
+ return event;
+ }
+
+ public void setEvent(AckAlarmsStateChangeEventPayload event) {
+ this.event = event;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ AckAlarmsStateChangeEvent ackAlarmsStateChangeEvent = (AckAlarmsStateChangeEvent) o;
+ return Objects.equals(this.id, ackAlarmsStateChangeEvent.id) &&
+ Objects.equals(this.href, ackAlarmsStateChangeEvent.href) &&
+ Objects.equals(this.eventId, ackAlarmsStateChangeEvent.eventId) &&
+ Objects.equals(this.eventTime, ackAlarmsStateChangeEvent.eventTime) &&
+ Objects.equals(this.eventType, ackAlarmsStateChangeEvent.eventType) &&
+ Objects.equals(this.correlationId, ackAlarmsStateChangeEvent.correlationId) &&
+ Objects.equals(this.domain, ackAlarmsStateChangeEvent.domain) &&
+ Objects.equals(this.title, ackAlarmsStateChangeEvent.title) &&
+ Objects.equals(this.description, ackAlarmsStateChangeEvent.description) &&
+ Objects.equals(this.priority, ackAlarmsStateChangeEvent.priority) &&
+ Objects.equals(this.timeOcurred, ackAlarmsStateChangeEvent.timeOcurred) &&
+ Objects.equals(this.event, ackAlarmsStateChangeEvent.event);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(id, href, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred, event);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class AckAlarmsStateChangeEvent {\n");
+
+ sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append(" href: ").append(toIndentedString(href)).append("\n");
+ sb.append(" eventId: ").append(toIndentedString(eventId)).append("\n");
+ sb.append(" eventTime: ").append(toIndentedString(eventTime)).append("\n");
+ sb.append(" eventType: ").append(toIndentedString(eventType)).append("\n");
+ sb.append(" correlationId: ").append(toIndentedString(correlationId)).append("\n");
+ sb.append(" domain: ").append(toIndentedString(domain)).append("\n");
+ sb.append(" title: ").append(toIndentedString(title)).append("\n");
+ sb.append(" description: ").append(toIndentedString(description)).append("\n");
+ sb.append(" priority: ").append(toIndentedString(priority)).append("\n");
+ sb.append(" timeOcurred: ").append(toIndentedString(timeOcurred)).append("\n");
+ sb.append(" event: ").append(toIndentedString(event)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/org/etsi/osl/tmf/am642/model/AckAlarmsStateChangeEventPayload.java b/src/main/java/org/etsi/osl/tmf/am642/model/AckAlarmsStateChangeEventPayload.java
new file mode 100644
index 0000000000000000000000000000000000000000..16c385e95415be9c63e6941ec4fae1a042191fa4
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/am642/model/AckAlarmsStateChangeEventPayload.java
@@ -0,0 +1,99 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 - 2021 openslice.io
+ * %%
+ * 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.etsi.osl.tmf.am642.model;
+
+import java.util.Objects;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+import org.springframework.validation.annotation.Validated;
+
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.Valid;
+
+/**
+ * The event data structure
+ */
+@Schema(description = "The event data structure")
+@Validated
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2021-02-15T11:15:47.327930400+02:00[Europe/Athens]")
+public class AckAlarmsStateChangeEventPayload {
+ @JsonProperty("ackAlarms")
+ private AckAlarms ackAlarms = null;
+
+ public AckAlarmsStateChangeEventPayload ackAlarms(AckAlarms ackAlarms) {
+ this.ackAlarms = ackAlarms;
+ return this;
+ }
+
+ /**
+ * Get ackAlarms
+ * @return ackAlarms
+ **/
+ @Schema(description = "")
+
+ @Valid
+ public AckAlarms getAckAlarms() {
+ return ackAlarms;
+ }
+
+ public void setAckAlarms(AckAlarms ackAlarms) {
+ this.ackAlarms = ackAlarms;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ AckAlarmsStateChangeEventPayload ackAlarmsStateChangeEventPayload = (AckAlarmsStateChangeEventPayload) o;
+ return Objects.equals(this.ackAlarms, ackAlarmsStateChangeEventPayload.ackAlarms);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(ackAlarms);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class AckAlarmsStateChangeEventPayload {\n");
+
+ sb.append(" ackAlarms: ").append(toIndentedString(ackAlarms)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/org/etsi/osl/tmf/am642/model/AffectedService.java b/src/main/java/org/etsi/osl/tmf/am642/model/AffectedService.java
new file mode 100644
index 0000000000000000000000000000000000000000..a6110ff67ea6509b4b19e472e63cadade81cf043
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/am642/model/AffectedService.java
@@ -0,0 +1,98 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 - 2021 openslice.io
+ * %%
+ * 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.etsi.osl.tmf.am642.model;
+
+import java.util.Objects;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import org.etsi.osl.tmf.common.model.BaseRootEntity;
+import org.springframework.validation.annotation.Validated;
+import jakarta.persistence.Entity;
+import jakarta.persistence.Table;
+
+/**
+ * AffectedService
+ */
+@Validated
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2021-02-15T11:15:47.327930400+02:00[Europe/Athens]")
+@Entity(name = "AMAffectedService")
+@Table(name = "AMAffectedService")
+public class AffectedService extends BaseRootEntity {
+ @JsonProperty("id")
+ private String id = null;
+
+ public void setId(String anid) {
+
+ this.id = anid;
+ }
+
+ /**
+ * @return the id
+ */
+ public String getId() {
+
+ return id;
+ }
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ AffectedService affectedService = (AffectedService) o;
+ return Objects.equals(this.id, affectedService.id) && Objects.equals(this.href, affectedService.href)
+ && Objects.equals(this.baseType, affectedService.baseType)
+ && Objects.equals(this.schemaLocation, affectedService.schemaLocation)
+ && Objects.equals(this.type, affectedService.type);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(id, href, baseType, schemaLocation, type);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class AffectedService {\n");
+
+ sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append(" href: ").append(toIndentedString(href)).append("\n");
+ sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n");
+ sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
+ sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/org/etsi/osl/tmf/am642/model/Alarm.java b/src/main/java/org/etsi/osl/tmf/am642/model/Alarm.java
new file mode 100644
index 0000000000000000000000000000000000000000..b86f34435adf13858692f3203271665b23c2c42d
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/am642/model/Alarm.java
@@ -0,0 +1,1067 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 - 2021 openslice.io
+ * %%
+ * 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.etsi.osl.tmf.am642.model;
+
+import java.time.OffsetDateTime;
+import java.util.HashSet;
+import java.util.Objects;
+import java.util.Set;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import org.etsi.osl.tmf.common.model.BaseRootEntity;
+import org.springframework.validation.annotation.Validated;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.persistence.CascadeType;
+import jakarta.persistence.Column;
+import jakarta.persistence.Entity;
+import jakarta.persistence.Lob;
+import jakarta.persistence.OneToMany;
+import jakarta.persistence.OneToOne;
+import jakarta.persistence.Table;
+import jakarta.validation.Valid;
+
+/**
+ * This resource represents an alarm supporting the information model defined in
+ * ITU-T X.733.
+ */
+@Schema(description = "This resource represents an alarm supporting the information model defined in ITU-T X.733.")
+@Validated
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2021-02-15T11:15:47.327930400+02:00[Europe/Athens]")
+
+@Entity(name = "AMAlarm")
+@Table(name = "AMAlarm")
+public class Alarm extends BaseRootEntity {
+ @JsonProperty("id")
+ private String id = null;
+
+ @JsonProperty("href")
+ private String href = null;
+
+ @JsonProperty("ackState")
+ private String ackState = null;
+
+ @JsonProperty("ackSystemId")
+ private String ackSystemId = null;
+
+ @JsonProperty("ackUserId")
+ private String ackUserId = null;
+
+ private OffsetDateTime alarmChangedTime = null;
+
+ private OffsetDateTime alarmClearedTime = null;
+
+ @JsonProperty("alarmDetails")
+ @Lob
+ @Column(name = "LALARMDETAILS", columnDefinition = "LONGTEXT")
+ private String alarmDetails = null;
+
+ @JsonProperty("alarmEscalation")
+ private Boolean alarmEscalation = null;
+
+ private OffsetDateTime alarmRaisedTime = null;
+
+ private OffsetDateTime alarmReportingTime = null;
+
+ @JsonProperty("alarmType")
+ private String alarmType = null;
+
+ @JsonProperty("alarmedObjectType")
+ private String alarmedObjectType = null;
+
+ @JsonProperty("clearSystemId")
+ private String clearSystemId = null;
+
+ @JsonProperty("clearUserId")
+ private String clearUserId = null;
+
+ @JsonProperty("externalAlarmId")
+ private String externalAlarmId = null;
+
+ @JsonProperty("isRootCause")
+ private Boolean isRootCause = null;
+
+ @JsonProperty("perceivedSeverity")
+ private String perceivedSeverity = null;
+
+ @JsonProperty("plannedOutageIndicator")
+ private String plannedOutageIndicator = null;
+
+ @JsonProperty("probableCause")
+ private String probableCause = null;
+
+ @JsonProperty("proposedRepairedActions")
+ private String proposedRepairedActions = null;
+
+ @JsonProperty("reportingSystemId")
+ private String reportingSystemId = null;
+
+ @JsonProperty("serviceAffecting")
+ private Boolean serviceAffecting = null;
+
+ @JsonProperty("sourceSystemId")
+ private String sourceSystemId = null;
+
+ @JsonProperty("specificProblem")
+ @Lob
+ @Column(name = "LSPECIFICPROB", columnDefinition = "LONGTEXT")
+ private String specificProblem = null;
+
+ @JsonProperty("state")
+ private String state = null;
+
+ @JsonProperty("affectedService")
+ @Valid
+ @OneToMany(cascade = { CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH })
+ private Set affectedService = new HashSet<>();
+
+ @JsonProperty("alarmedObject")
+ @OneToOne(cascade = { CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH })
+ private AlarmedObject alarmedObject = null;
+
+ @JsonProperty("comment")
+ @Valid
+ @OneToMany(cascade = { CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH })
+ private Set comment = new HashSet<>();
+
+ @JsonProperty("correlatedAlarm")
+ @Valid
+ @OneToMany(cascade = { CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH })
+ private Set correlatedAlarm = new HashSet<>();
+
+ @JsonProperty("crossedThresholdInformation")
+ @OneToOne(cascade = { CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH })
+ private CrossedThresholdInformation crossedThresholdInformation = null;
+
+ @JsonProperty("parentAlarm")
+ @Valid
+ @OneToMany(cascade = { CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH })
+ private Set parentAlarm = new HashSet<>();
+
+ @JsonProperty("place")
+ @Valid
+ @OneToMany(cascade = { CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH })
+ private Set place = new HashSet<>();
+
+
+
+ /**
+ * @return the id
+ */
+ public String getId() {
+ if (uuid != null) {
+ id = uuid;
+ }
+ return id;
+ }
+
+ public Alarm href(String href) {
+ this.href = href;
+ return this;
+ }
+
+ /**
+ * A reference to the alarm.
+ *
+ * @return href
+ **/
+ @Schema(description = "A reference to the alarm.")
+
+ public String getHref() {
+ return href;
+ }
+
+ public void setHref(String href) {
+ this.href = href;
+ }
+
+ public Alarm ackState(String ackState) {
+ this.ackState = ackState;
+ return this;
+ }
+
+ /**
+ * Provides the Acknowledgement State of the alarm
+ *
+ * @return ackState
+ **/
+ @Schema(description = "Provides the Acknowledgement State of the alarm")
+
+ public String getAckState() {
+ return ackState;
+ }
+
+ public void setAckState(String ackState) {
+ this.ackState = ackState;
+ }
+
+ public Alarm ackSystemId(String ackSystemId) {
+ this.ackSystemId = ackSystemId;
+ return this;
+ }
+
+ /**
+ * Provides the name of the system that last changed the ackState of an alarm,
+ * i.e. acknowledged or unacknowledged the alarm.
+ *
+ * @return ackSystemId
+ **/
+ @Schema(description = "Provides the name of the system that last changed the ackState of an alarm, i.e. acknowledged or unacknowledged the alarm.")
+
+ public String getAckSystemId() {
+ return ackSystemId;
+ }
+
+ public void setAckSystemId(String ackSystemId) {
+ this.ackSystemId = ackSystemId;
+ }
+
+ public Alarm ackUserId(String ackUserId) {
+ this.ackUserId = ackUserId;
+ return this;
+ }
+
+ /**
+ * Provides the id of the user who has last changed the ack state of the alarm,
+ * i.e. acknowledged or unacknowledged the alarm.
+ *
+ * @return ackUserId
+ **/
+ @Schema(description = "Provides the id of the user who has last changed the ack state of the alarm, i.e. acknowledged or unacknowledged the alarm.")
+
+ public String getAckUserId() {
+ return ackUserId;
+ }
+
+ public void setAckUserId(String ackUserId) {
+ this.ackUserId = ackUserId;
+ }
+
+ public Alarm alarmChangedTime(OffsetDateTime alarmChangedTime) {
+ this.alarmChangedTime = alarmChangedTime;
+ return this;
+ }
+
+ /**
+ * Indicates the last date and time when the alarm is changed on the
+ * alarm-owning system. Any change to the alarm whether coming from the alarmed
+ * resource, or triggered by a change from the client is changing this time.
+ *
+ * @return alarmChangedTime
+ **/
+ @Schema(description = "Indicates the last date and time when the alarm is changed on the alarm-owning system. Any change to the alarm whether coming from the alarmed resource, or triggered by a change from the client is changing this time.")
+
+ @Valid
+ public OffsetDateTime getAlarmChangedTime() {
+ return alarmChangedTime;
+ }
+
+ public void setAlarmChangedTime(OffsetDateTime alarmChangedTime) {
+ this.alarmChangedTime = alarmChangedTime;
+ }
+
+ public void setAlarmChangedTime(String alarmChangedTime) {
+ if ( alarmChangedTime != null) {
+ this.alarmChangedTime = OffsetDateTime.parse( alarmChangedTime );
+
+ }
+ }
+
+ @JsonProperty("alarmChangedTime")
+ public String getAlarmChangedTimeStr() {
+ if (this.alarmChangedTime != null) {
+ return this.alarmChangedTime.toString();
+ } else {
+ return null;
+ }
+ }
+
+ public Alarm alarmClearedTime(OffsetDateTime alarmClearedTime) {
+ this.alarmClearedTime = alarmClearedTime;
+ return this;
+ }
+
+
+
+
+
+
+
+ /**
+ * Indicates the time (as a date + time) at which the alarm is cleared at the
+ * source.
+ *
+ * @return alarmClearedTime
+ **/
+ @Schema(description = "Indicates the time (as a date + time) at which the alarm is cleared at the source. ")
+
+ @Valid
+ public OffsetDateTime getAlarmClearedTime() {
+ return alarmClearedTime;
+ }
+
+ public void setAlarmClearedTime(OffsetDateTime alarmClearedTime) {
+ this.alarmClearedTime = alarmClearedTime;
+ }
+
+ public void setAlarmClearedTime(String alarmClearedTime) {
+ if ( alarmClearedTime != null) {
+ this.alarmClearedTime = OffsetDateTime.parse( alarmClearedTime );
+ }
+ }
+
+
+ @JsonProperty("alarmClearedTime")
+ public String getAlarmClearedTimeStr() {
+ if (this.alarmClearedTime != null) {
+ return this.alarmClearedTime.toString();
+ } else {
+ return null;
+ }
+ }
+
+ public Alarm alarmDetails(String alarmDetails) {
+ this.alarmDetails = alarmDetails;
+ return this;
+ }
+
+ /**
+ * Contains further information on the alarm.
+ *
+ * @return alarmDetails
+ **/
+ @Schema(description = "Contains further information on the alarm.")
+
+ public String getAlarmDetails() {
+ return alarmDetails;
+ }
+
+ public void setAlarmDetails(String alarmDetails) {
+ this.alarmDetails = alarmDetails;
+ }
+
+ public Alarm alarmEscalation(Boolean alarmEscalation) {
+ this.alarmEscalation = alarmEscalation;
+ return this;
+ }
+
+ /**
+ * Indicates if this alarm has been escalated or not.
+ *
+ * @return alarmEscalation
+ **/
+ @Schema(description = "Indicates if this alarm has been escalated or not. ")
+
+ public Boolean isAlarmEscalation() {
+ return alarmEscalation;
+ }
+
+ public void setAlarmEscalation(Boolean alarmEscalation) {
+ this.alarmEscalation = alarmEscalation;
+ }
+
+ public Alarm alarmRaisedTime(OffsetDateTime alarmRaisedTime) {
+ this.alarmRaisedTime = alarmRaisedTime;
+ return this;
+ }
+
+ /**
+ * Indicates the time (as a date + time) at which the alarm occurred at its
+ * source.
+ *
+ * @return alarmRaisedTime
+ **/
+ @Schema(description = "Indicates the time (as a date + time) at which the alarm occurred at its source.")
+
+ @Valid
+ public OffsetDateTime getAlarmRaisedTime() {
+ return alarmRaisedTime;
+ }
+
+ public void setAlarmRaisedTime(OffsetDateTime alarmRaisedTime) {
+ this.alarmRaisedTime = alarmRaisedTime;
+ }
+
+ public void setAlarmRaisedTime(String alarmRaisedTime) {
+
+ if ( alarmRaisedTime != null) {
+ this.alarmRaisedTime = OffsetDateTime.parse( alarmRaisedTime );
+
+ }
+ }
+
+
+ @JsonProperty("alarmRaisedTime")
+ public String getAlarmRaisedTimeStr() {
+ if (this.alarmRaisedTime != null) {
+ return this.alarmRaisedTime.toString();
+ } else {
+ return null;
+ }
+ }
+
+
+
+ public Alarm alarmReportingTime(OffsetDateTime alarmReportingTime) {
+ this.alarmReportingTime = alarmReportingTime;
+ return this;
+ }
+
+ /**
+ * Indicates the time (as a date + time) at which the alarm was reported by the
+ * owning OSS. It might be different from the alarmRaisedTime. For instance, if
+ * the alarm list is maintained by an EMS, the alarmRaisedtime would be the time
+ * the alarm was detected by the NE, while the alarmReportingTime would be the
+ * time this alarm was stored in the alarm list of the EMS.
+ *
+ * @return alarmReportingTime
+ **/
+ @Schema(description = "Indicates the time (as a date + time) at which the alarm was reported by the owning OSS. It might be different from the alarmRaisedTime. For instance, if the alarm list is maintained by an EMS, the alarmRaisedtime would be the time the alarm was detected by the NE, while the alarmReportingTime would be the time this alarm was stored in the alarm list of the EMS.")
+
+ @Valid
+ public OffsetDateTime getAlarmReportingTime() {
+ return alarmReportingTime;
+ }
+
+ public void setAlarmReportingTime(OffsetDateTime alarmReportingTime) {
+ this.alarmReportingTime = alarmReportingTime;
+ }
+
+
+ public void setAlarmReportingTime(String alarmReportingTime) {
+ if ( alarmReportingTime != null) {
+ this.alarmReportingTime = OffsetDateTime.parse( alarmReportingTime );
+
+ }
+ }
+
+ @JsonProperty("alarmReportingTime")
+ public String getAlarmReportingTimeStr() {
+ if (this.alarmReportingTime != null) {
+ return this.alarmReportingTime.toString();
+ } else {
+ return null;
+ }
+ }
+
+
+ public Alarm alarmType(String alarmType) {
+ this.alarmType = alarmType;
+ return this;
+ }
+
+ /**
+ * Categorize the alarm. Should be one of the values defined in X.733 8.1.1 or
+ * 3GPP TS 32.111-2 Annex A: Communications Alarm Processing Error Alarm
+ * Environmental Alarm Quality of Service Alarm Equipment Alarm Integrity
+ * Violation Operational Violation Physical Violation Security Service or
+ * Mechanism Violation Time Domain Violation
+ *
+ * @return alarmType
+ **/
+ @Schema(description = "Categorize the alarm. Should be one of the values defined in X.733 8.1.1 or 3GPP TS 32.111-2 Annex A: Communications Alarm Processing Error Alarm Environmental Alarm Quality of Service Alarm Equipment Alarm Integrity Violation Operational Violation Physical Violation Security Service or Mechanism Violation Time Domain Violation")
+
+ public String getAlarmType() {
+ return alarmType;
+ }
+
+ public void setAlarmType(String alarmType) {
+ this.alarmType = alarmType;
+ }
+
+ public Alarm alarmedObjectType(String alarmedObjectType) {
+ this.alarmedObjectType = alarmedObjectType;
+ return this;
+ }
+
+ /**
+ * The type (class) of the managed object associated with the event.
+ *
+ * @return alarmedObjectType
+ **/
+ @Schema(description = "The type (class) of the managed object associated with the event.")
+
+ public String getAlarmedObjectType() {
+ return alarmedObjectType;
+ }
+
+ public void setAlarmedObjectType(String alarmedObjectType) {
+ this.alarmedObjectType = alarmedObjectType;
+ }
+
+ public Alarm clearSystemId(String clearSystemId) {
+ this.clearSystemId = clearSystemId;
+ return this;
+ }
+
+ /**
+ * Provides the id of the system where the user who invoked the alarmCleared
+ * operation is located.
+ *
+ * @return clearSystemId
+ **/
+ @Schema(description = "Provides the id of the system where the user who invoked the alarmCleared operation is located. ")
+
+ public String getClearSystemId() {
+ return clearSystemId;
+ }
+
+ public void setClearSystemId(String clearSystemId) {
+ this.clearSystemId = clearSystemId;
+ }
+
+ public Alarm clearUserId(String clearUserId) {
+ this.clearUserId = clearUserId;
+ return this;
+ }
+
+ /**
+ * Provides the id of the user who invoked the alarmCleared operation
+ *
+ * @return clearUserId
+ **/
+ @Schema(description = "Provides the id of the user who invoked the alarmCleared operation")
+
+ public String getClearUserId() {
+ return clearUserId;
+ }
+
+ public void setClearUserId(String clearUserId) {
+ this.clearUserId = clearUserId;
+ }
+
+ public Alarm externalAlarmId(String externalAlarmId) {
+ this.externalAlarmId = externalAlarmId;
+ return this;
+ }
+
+ /**
+ * An identifier of the alarm in the source system.
+ *
+ * @return externalAlarmId
+ **/
+ @Schema(description = "An identifier of the alarm in the source system.")
+
+ public String getExternalAlarmId() {
+ return externalAlarmId;
+ }
+
+ public void setExternalAlarmId(String externalAlarmId) {
+ this.externalAlarmId = externalAlarmId;
+ }
+
+ public Alarm isRootCause(Boolean isRootCause) {
+ this.isRootCause = isRootCause;
+ return this;
+ }
+
+ /**
+ * Indicates whether the alarm is a root cause alarm..
+ *
+ * @return isRootCause
+ **/
+ @Schema(description = "Indicates whether the alarm is a root cause alarm.. ")
+
+ public Boolean isIsRootCause() {
+ return isRootCause;
+ }
+
+ public void setIsRootCause(Boolean isRootCause) {
+ this.isRootCause = isRootCause;
+ }
+
+ public Alarm perceivedSeverity(String perceivedSeverity) {
+ this.perceivedSeverity = perceivedSeverity;
+ return this;
+ }
+
+ /**
+ * Lists the possible severities that can be allocated to an Alarm. The values
+ * are consistent with ITU-T Recommendation X.733. Once an alarm has been
+ * cleared, its perceived severity is set to 'cleared' and can no longer be set.
+ *
+ * @return perceivedSeverity
+ **/
+ @Schema(description = "Lists the possible severities that can be allocated to an Alarm. The values are consistent with ITU-T Recommendation X.733. Once an alarm has been cleared, its perceived severity is set to 'cleared' and can no longer be set.")
+
+ public String getPerceivedSeverity() {
+ return perceivedSeverity;
+ }
+
+ public void setPerceivedSeverity(String perceivedSeverity) {
+ this.perceivedSeverity = perceivedSeverity;
+ }
+
+ public Alarm plannedOutageIndicator(String plannedOutageIndicator) {
+ this.plannedOutageIndicator = plannedOutageIndicator;
+ return this;
+ }
+
+ /**
+ * Indicates that the Managed Object (related to this alarm) is in planned
+ * outage (in planned maintenance, or out-of-service).
+ *
+ * @return plannedOutageIndicator
+ **/
+ @Schema(description = "Indicates that the Managed Object (related to this alarm) is in planned outage (in planned maintenance, or out-of-service). ")
+
+ public String getPlannedOutageIndicator() {
+ return plannedOutageIndicator;
+ }
+
+ public void setPlannedOutageIndicator(String plannedOutageIndicator) {
+ this.plannedOutageIndicator = plannedOutageIndicator;
+ }
+
+ public Alarm probableCause(String probableCause) {
+ this.probableCause = probableCause;
+ return this;
+ }
+
+ /**
+ * Provides the probable cause of the alarm. The values are consistent with
+ * ITU-T Recommendation X.733 or 3GPP TS 32.111-2 Annex B.
+ *
+ * @return probableCause
+ **/
+ @Schema(description = "Provides the probable cause of the alarm. The values are consistent with ITU-T Recommendation X.733 or 3GPP TS 32.111-2 Annex B.")
+
+ public String getProbableCause() {
+ return probableCause;
+ }
+
+ public void setProbableCause(String probableCause) {
+ this.probableCause = probableCause;
+ }
+
+ public Alarm proposedRepairedActions(String proposedRepairedActions) {
+ this.proposedRepairedActions = proposedRepairedActions;
+ return this;
+ }
+
+ /**
+ * Indicates proposed repair actions, if known to the system emitting the alarm.
+ *
+ * @return proposedRepairedActions
+ **/
+ @Schema(description = "Indicates proposed repair actions, if known to the system emitting the alarm.")
+
+ public String getProposedRepairedActions() {
+ return proposedRepairedActions;
+ }
+
+ public void setProposedRepairedActions(String proposedRepairedActions) {
+ this.proposedRepairedActions = proposedRepairedActions;
+ }
+
+ public Alarm reportingSystemId(String reportingSystemId) {
+ this.reportingSystemId = reportingSystemId;
+ return this;
+ }
+
+ /**
+ * Reporting system identity.
+ *
+ * @return reportingSystemId
+ **/
+ @Schema(description = "Reporting system identity.")
+
+ public String getReportingSystemId() {
+ return reportingSystemId;
+ }
+
+ public void setReportingSystemId(String reportingSystemId) {
+ this.reportingSystemId = reportingSystemId;
+ }
+
+ public Alarm serviceAffecting(Boolean serviceAffecting) {
+ this.serviceAffecting = serviceAffecting;
+ return this;
+ }
+
+ /**
+ * Indicates whether the alarm affects service or not.
+ *
+ * @return serviceAffecting
+ **/
+ @Schema(description = "Indicates whether the alarm affects service or not.")
+
+ public Boolean isServiceAffecting() {
+ return serviceAffecting;
+ }
+
+ public void setServiceAffecting(Boolean serviceAffecting) {
+ this.serviceAffecting = serviceAffecting;
+ }
+
+ public Alarm sourceSystemId(String sourceSystemId) {
+ this.sourceSystemId = sourceSystemId;
+ return this;
+ }
+
+ /**
+ * Source system identity.
+ *
+ * @return sourceSystemId
+ **/
+ @Schema(description = "Source system identity.")
+
+ public String getSourceSystemId() {
+ return sourceSystemId;
+ }
+
+ public void setSourceSystemId(String sourceSystemId) {
+ this.sourceSystemId = sourceSystemId;
+ }
+
+ public Alarm specificProblem(String specificProblem) {
+ this.specificProblem = specificProblem;
+ return this;
+ }
+
+ /**
+ * Provides more specific information about the alarm.
+ *
+ * @return specificProblem
+ **/
+ @Schema(description = "Provides more specific information about the alarm.")
+
+ public String getSpecificProblem() {
+ return specificProblem;
+ }
+
+ public void setSpecificProblem(String specificProblem) {
+ this.specificProblem = specificProblem;
+ }
+
+ public Alarm state(String state) {
+ this.state = state;
+ return this;
+ }
+
+ /**
+ * Defines the alarm state during its life cycle
+ *
+ * @return state
+ **/
+ @Schema(description = "Defines the alarm state during its life cycle")
+
+ public String getState() {
+ return state;
+ }
+
+ public void setState(String state) {
+ this.state = state;
+ }
+
+ public Alarm affectedService(Set affectedService) {
+ this.affectedService = affectedService;
+ return this;
+ }
+
+ public Alarm addAffectedServiceItem(AffectedService affectedServiceItem) {
+ if (this.affectedService == null) {
+ this.affectedService = new HashSet<>();
+ }
+ this.affectedService.add(affectedServiceItem);
+ return this;
+ }
+
+ /**
+ * Get affectedService
+ *
+ * @return affectedService
+ **/
+ @Schema(description = "")
+ @Valid
+ public Set getAffectedService() {
+ return affectedService;
+ }
+
+ public void setAffectedService(Set affectedService) {
+ this.affectedService = affectedService;
+ }
+
+ public Alarm alarmedObject(AlarmedObject alarmedObject) {
+ this.alarmedObject = alarmedObject;
+ return this;
+ }
+
+ /**
+ * Get alarmedObject
+ *
+ * @return alarmedObject
+ **/
+ @Schema(description = "")
+
+ @Valid
+ public AlarmedObject getAlarmedObject() {
+ return alarmedObject;
+ }
+
+ public void setAlarmedObject(AlarmedObject alarmedObject) {
+ this.alarmedObject = alarmedObject;
+ }
+
+ public Alarm comment(Set comment) {
+ this.comment = comment;
+ return this;
+ }
+
+ public Alarm addCommentItem(Comment commentItem) {
+ if (this.comment == null) {
+ this.comment = new HashSet<>();
+ }
+ this.comment.add(commentItem);
+ return this;
+ }
+
+ /**
+ * Get comment
+ *
+ * @return comment
+ **/
+ @Schema(description = "")
+ @Valid
+ public Set getComment() {
+ return comment;
+ }
+
+ public void setComment(Set comment) {
+ this.comment = comment;
+ }
+
+ public Alarm correlatedAlarm(Set correlatedAlarm) {
+ this.correlatedAlarm = correlatedAlarm;
+ return this;
+ }
+
+ public Alarm addCorrelatedAlarmItem(AlarmRef correlatedAlarmItem) {
+ if (this.correlatedAlarm == null) {
+ this.correlatedAlarm = new HashSet<>();
+ }
+ this.correlatedAlarm.add(correlatedAlarmItem);
+ return this;
+ }
+
+ /**
+ * Get correlatedAlarm
+ *
+ * @return correlatedAlarm
+ **/
+ @Schema(description = "")
+ @Valid
+ public Set getCorrelatedAlarm() {
+ return correlatedAlarm;
+ }
+
+ public void setCorrelatedAlarm(Set correlatedAlarm) {
+ this.correlatedAlarm = correlatedAlarm;
+ }
+
+ public Alarm crossedThresholdInformation(CrossedThresholdInformation crossedThresholdInformation) {
+ this.crossedThresholdInformation = crossedThresholdInformation;
+ return this;
+ }
+
+ /**
+ * Get crossedThresholdInformation
+ *
+ * @return crossedThresholdInformation
+ **/
+ @Schema(description = "")
+
+ @Valid
+ public CrossedThresholdInformation getCrossedThresholdInformation() {
+ return crossedThresholdInformation;
+ }
+
+ public void setCrossedThresholdInformation(CrossedThresholdInformation crossedThresholdInformation) {
+ this.crossedThresholdInformation = crossedThresholdInformation;
+ }
+
+ public Alarm parentAlarm(Set parentAlarm) {
+ this.parentAlarm = parentAlarm;
+ return this;
+ }
+
+ public Alarm addParentAlarmItem(AlarmRef parentAlarmItem) {
+ if (this.parentAlarm == null) {
+ this.parentAlarm = new HashSet<>();
+ }
+ this.parentAlarm.add(parentAlarmItem);
+ return this;
+ }
+
+ /**
+ * Get parentAlarm
+ *
+ * @return parentAlarm
+ **/
+ @Schema(description = "")
+ @Valid
+ public Set getParentAlarm() {
+ return parentAlarm;
+ }
+
+ public void setParentAlarm(Set parentAlarm) {
+ this.parentAlarm = parentAlarm;
+ }
+
+ public Alarm place(Set place) {
+ this.place = place;
+ return this;
+ }
+
+ public Alarm addPlaceItem(RelatedPlaceRefOrValue placeItem) {
+ if (this.place == null) {
+ this.place = new HashSet<>();
+ }
+ this.place.add(placeItem);
+ return this;
+ }
+
+ /**
+ * Get place
+ *
+ * @return place
+ **/
+ @Schema(description = "")
+ @Valid
+ public Set getPlace() {
+ return place;
+ }
+
+ public void setPlace(Set place) {
+ this.place = place;
+ }
+
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ Alarm alarm = (Alarm) o;
+ return Objects.equals(this.id, alarm.id) && Objects.equals(this.href, alarm.href)
+ && Objects.equals(this.ackState, alarm.ackState) && Objects.equals(this.ackSystemId, alarm.ackSystemId)
+ && Objects.equals(this.ackUserId, alarm.ackUserId)
+ && Objects.equals(this.alarmChangedTime, alarm.alarmChangedTime)
+ && Objects.equals(this.alarmClearedTime, alarm.alarmClearedTime)
+ && Objects.equals(this.alarmDetails, alarm.alarmDetails)
+ && Objects.equals(this.alarmEscalation, alarm.alarmEscalation)
+ && Objects.equals(this.alarmRaisedTime, alarm.alarmRaisedTime)
+ && Objects.equals(this.alarmReportingTime, alarm.alarmReportingTime)
+ && Objects.equals(this.alarmType, alarm.alarmType)
+ && Objects.equals(this.alarmedObjectType, alarm.alarmedObjectType)
+ && Objects.equals(this.clearSystemId, alarm.clearSystemId)
+ && Objects.equals(this.clearUserId, alarm.clearUserId)
+ && Objects.equals(this.externalAlarmId, alarm.externalAlarmId)
+ && Objects.equals(this.isRootCause, alarm.isRootCause)
+ && Objects.equals(this.perceivedSeverity, alarm.perceivedSeverity)
+ && Objects.equals(this.plannedOutageIndicator, alarm.plannedOutageIndicator)
+ && Objects.equals(this.probableCause, alarm.probableCause)
+ && Objects.equals(this.proposedRepairedActions, alarm.proposedRepairedActions)
+ && Objects.equals(this.reportingSystemId, alarm.reportingSystemId)
+ && Objects.equals(this.serviceAffecting, alarm.serviceAffecting)
+ && Objects.equals(this.sourceSystemId, alarm.sourceSystemId)
+ && Objects.equals(this.specificProblem, alarm.specificProblem)
+ && Objects.equals(this.state, alarm.state)
+ && Objects.equals(this.affectedService, alarm.affectedService)
+ && Objects.equals(this.alarmedObject, alarm.alarmedObject)
+ && Objects.equals(this.comment, alarm.comment)
+ && Objects.equals(this.correlatedAlarm, alarm.correlatedAlarm)
+ && Objects.equals(this.crossedThresholdInformation, alarm.crossedThresholdInformation)
+ && Objects.equals(this.parentAlarm, alarm.parentAlarm) && Objects.equals(this.place, alarm.place)
+ && Objects.equals(this.baseType, alarm.baseType)
+ && Objects.equals(this.schemaLocation, alarm.schemaLocation)
+ && Objects.equals(this.type, alarm.type);
+ }
+
+// @Override
+// public int hashCode() {
+// return Objects.hash(id, href, ackState, ackSystemId, ackUserId, alarmChangedTime, alarmClearedTime,
+// alarmDetails, alarmEscalation, alarmRaisedTime, alarmReportingTime, alarmType, alarmedObjectType,
+// clearSystemId, clearUserId, externalAlarmId, isRootCause, perceivedSeverity, plannedOutageIndicator,
+// probableCause, proposedRepairedActions, reportingSystemId, serviceAffecting, sourceSystemId,
+// specificProblem, state, affectedService, alarmedObject, comment, correlatedAlarm,
+// crossedThresholdInformation, parentAlarm, place, baseType, schemaLocation, type);
+// }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class Alarm {\n");
+
+ sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append(" href: ").append(toIndentedString(href)).append("\n");
+ sb.append(" ackState: ").append(toIndentedString(ackState)).append("\n");
+ sb.append(" ackSystemId: ").append(toIndentedString(ackSystemId)).append("\n");
+ sb.append(" ackUserId: ").append(toIndentedString(ackUserId)).append("\n");
+ sb.append(" alarmChangedTime: ").append(toIndentedString(alarmChangedTime)).append("\n");
+ sb.append(" alarmClearedTime: ").append(toIndentedString(alarmClearedTime)).append("\n");
+ sb.append(" alarmDetails: ").append(toIndentedString(alarmDetails)).append("\n");
+ sb.append(" alarmEscalation: ").append(toIndentedString(alarmEscalation)).append("\n");
+ sb.append(" alarmRaisedTime: ").append(toIndentedString(alarmRaisedTime)).append("\n");
+ sb.append(" alarmReportingTime: ").append(toIndentedString(alarmReportingTime)).append("\n");
+ sb.append(" alarmType: ").append(toIndentedString(alarmType)).append("\n");
+ sb.append(" alarmedObjectType: ").append(toIndentedString(alarmedObjectType)).append("\n");
+ sb.append(" clearSystemId: ").append(toIndentedString(clearSystemId)).append("\n");
+ sb.append(" clearUserId: ").append(toIndentedString(clearUserId)).append("\n");
+ sb.append(" externalAlarmId: ").append(toIndentedString(externalAlarmId)).append("\n");
+ sb.append(" isRootCause: ").append(toIndentedString(isRootCause)).append("\n");
+ sb.append(" perceivedSeverity: ").append(toIndentedString(perceivedSeverity)).append("\n");
+ sb.append(" plannedOutageIndicator: ").append(toIndentedString(plannedOutageIndicator)).append("\n");
+ sb.append(" probableCause: ").append(toIndentedString(probableCause)).append("\n");
+ sb.append(" proposedRepairedActions: ").append(toIndentedString(proposedRepairedActions)).append("\n");
+ sb.append(" reportingSystemId: ").append(toIndentedString(reportingSystemId)).append("\n");
+ sb.append(" serviceAffecting: ").append(toIndentedString(serviceAffecting)).append("\n");
+ sb.append(" sourceSystemId: ").append(toIndentedString(sourceSystemId)).append("\n");
+ sb.append(" specificProblem: ").append(toIndentedString(specificProblem)).append("\n");
+ sb.append(" state: ").append(toIndentedString(state)).append("\n");
+ sb.append(" affectedService: ").append(toIndentedString(affectedService)).append("\n");
+ sb.append(" alarmedObject: ").append(toIndentedString(alarmedObject)).append("\n");
+ sb.append(" comment: ").append(toIndentedString(comment)).append("\n");
+ sb.append(" correlatedAlarm: ").append(toIndentedString(correlatedAlarm)).append("\n");
+ sb.append(" crossedThresholdInformation: ").append(toIndentedString(crossedThresholdInformation))
+ .append("\n");
+ sb.append(" parentAlarm: ").append(toIndentedString(parentAlarm)).append("\n");
+ sb.append(" place: ").append(toIndentedString(place)).append("\n");
+ sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n");
+ sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
+ sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/org/etsi/osl/tmf/am642/model/AlarmAttributeValueChangeEvent.java b/src/main/java/org/etsi/osl/tmf/am642/model/AlarmAttributeValueChangeEvent.java
new file mode 100644
index 0000000000000000000000000000000000000000..87c66a8e7a2f23eef19f986ccc187c8cd3a85713
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/am642/model/AlarmAttributeValueChangeEvent.java
@@ -0,0 +1,342 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 - 2021 openslice.io
+ * %%
+ * 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.etsi.osl.tmf.am642.model;
+
+import java.time.OffsetDateTime;
+import java.util.Objects;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+import org.springframework.validation.annotation.Validated;
+
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.Valid;
+
+/**
+ * The notification data structure
+ */
+@Schema(description = "The notification data structure")
+@Validated
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2021-02-15T11:15:47.327930400+02:00[Europe/Athens]")
+public class AlarmAttributeValueChangeEvent {
+ @JsonProperty("eventId")
+ private String eventId = null;
+
+ @JsonProperty("eventTime")
+ private OffsetDateTime eventTime = null;
+
+ @JsonProperty("eventType")
+ private String eventType = null;
+
+ @JsonProperty("correlationId")
+ private String correlationId = null;
+
+ @JsonProperty("domain")
+ private String domain = null;
+
+ @JsonProperty("title")
+ private String title = null;
+
+ @JsonProperty("description")
+ private String description = null;
+
+ @JsonProperty("priority")
+ private String priority = null;
+
+ @JsonProperty("timeOcurred")
+ private OffsetDateTime timeOcurred = null;
+
+ @JsonProperty("fieldPath")
+ private String fieldPath = null;
+
+ @JsonProperty("event")
+ private AlarmAttributeValueChangeEventPayload event = null;
+
+ public AlarmAttributeValueChangeEvent eventId(String eventId) {
+ this.eventId = eventId;
+ return this;
+ }
+
+ /**
+ * The identifier of the notification.
+ * @return eventId
+ **/
+ @Schema(description = "The identifier of the notification.")
+
+ public String getEventId() {
+ return eventId;
+ }
+
+ public void setEventId(String eventId) {
+ this.eventId = eventId;
+ }
+
+ public AlarmAttributeValueChangeEvent eventTime(OffsetDateTime eventTime) {
+ this.eventTime = eventTime;
+ return this;
+ }
+
+ /**
+ * Time of the event occurrence.
+ * @return eventTime
+ **/
+ @Schema(description = "Time of the event occurrence.")
+
+ @Valid
+ public OffsetDateTime getEventTime() {
+ return eventTime;
+ }
+
+ public void setEventTime(OffsetDateTime eventTime) {
+ this.eventTime = eventTime;
+ }
+
+ public AlarmAttributeValueChangeEvent eventType(String eventType) {
+ this.eventType = eventType;
+ return this;
+ }
+
+ /**
+ * The type of the notification.
+ * @return eventType
+ **/
+ @Schema(description = "The type of the notification.")
+
+ public String getEventType() {
+ return eventType;
+ }
+
+ public void setEventType(String eventType) {
+ this.eventType = eventType;
+ }
+
+ public AlarmAttributeValueChangeEvent correlationId(String correlationId) {
+ this.correlationId = correlationId;
+ return this;
+ }
+
+ /**
+ * The correlation id for this event.
+ * @return correlationId
+ **/
+ @Schema(description = "The correlation id for this event.")
+
+ public String getCorrelationId() {
+ return correlationId;
+ }
+
+ public void setCorrelationId(String correlationId) {
+ this.correlationId = correlationId;
+ }
+
+ public AlarmAttributeValueChangeEvent domain(String domain) {
+ this.domain = domain;
+ return this;
+ }
+
+ /**
+ * The domain of the event.
+ * @return domain
+ **/
+ @Schema(description = "The domain of the event.")
+
+ public String getDomain() {
+ return domain;
+ }
+
+ public void setDomain(String domain) {
+ this.domain = domain;
+ }
+
+ public AlarmAttributeValueChangeEvent title(String title) {
+ this.title = title;
+ return this;
+ }
+
+ /**
+ * The title of the event.
+ * @return title
+ **/
+ @Schema(description = "The title of the event.")
+
+ public String getTitle() {
+ return title;
+ }
+
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+ public AlarmAttributeValueChangeEvent description(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * An explnatory of the event.
+ * @return description
+ **/
+ @Schema(description = "An explnatory of the event.")
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public AlarmAttributeValueChangeEvent priority(String priority) {
+ this.priority = priority;
+ return this;
+ }
+
+ /**
+ * A priority.
+ * @return priority
+ **/
+ @Schema(description = "A priority.")
+
+ public String getPriority() {
+ return priority;
+ }
+
+ public void setPriority(String priority) {
+ this.priority = priority;
+ }
+
+ public AlarmAttributeValueChangeEvent timeOcurred(OffsetDateTime timeOcurred) {
+ this.timeOcurred = timeOcurred;
+ return this;
+ }
+
+ /**
+ * The time the event occured.
+ * @return timeOcurred
+ **/
+ @Schema(description = "The time the event occured.")
+
+ @Valid
+ public OffsetDateTime getTimeOcurred() {
+ return timeOcurred;
+ }
+
+ public void setTimeOcurred(OffsetDateTime timeOcurred) {
+ this.timeOcurred = timeOcurred;
+ }
+
+ public AlarmAttributeValueChangeEvent fieldPath(String fieldPath) {
+ this.fieldPath = fieldPath;
+ return this;
+ }
+
+ /**
+ * The path identifying the object field concerned by this notification.
+ * @return fieldPath
+ **/
+ @Schema(description = "The path identifying the object field concerned by this notification.")
+
+ public String getFieldPath() {
+ return fieldPath;
+ }
+
+ public void setFieldPath(String fieldPath) {
+ this.fieldPath = fieldPath;
+ }
+
+ public AlarmAttributeValueChangeEvent event(AlarmAttributeValueChangeEventPayload event) {
+ this.event = event;
+ return this;
+ }
+
+ /**
+ * Get event
+ * @return event
+ **/
+ @Schema(description = "")
+
+ @Valid
+ public AlarmAttributeValueChangeEventPayload getEvent() {
+ return event;
+ }
+
+ public void setEvent(AlarmAttributeValueChangeEventPayload event) {
+ this.event = event;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ AlarmAttributeValueChangeEvent alarmAttributeValueChangeEvent = (AlarmAttributeValueChangeEvent) o;
+ return Objects.equals(this.eventId, alarmAttributeValueChangeEvent.eventId) &&
+ Objects.equals(this.eventTime, alarmAttributeValueChangeEvent.eventTime) &&
+ Objects.equals(this.eventType, alarmAttributeValueChangeEvent.eventType) &&
+ Objects.equals(this.correlationId, alarmAttributeValueChangeEvent.correlationId) &&
+ Objects.equals(this.domain, alarmAttributeValueChangeEvent.domain) &&
+ Objects.equals(this.title, alarmAttributeValueChangeEvent.title) &&
+ Objects.equals(this.description, alarmAttributeValueChangeEvent.description) &&
+ Objects.equals(this.priority, alarmAttributeValueChangeEvent.priority) &&
+ Objects.equals(this.timeOcurred, alarmAttributeValueChangeEvent.timeOcurred) &&
+ Objects.equals(this.fieldPath, alarmAttributeValueChangeEvent.fieldPath) &&
+ Objects.equals(this.event, alarmAttributeValueChangeEvent.event);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred, fieldPath, event);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class AlarmAttributeValueChangeEvent {\n");
+
+ sb.append(" eventId: ").append(toIndentedString(eventId)).append("\n");
+ sb.append(" eventTime: ").append(toIndentedString(eventTime)).append("\n");
+ sb.append(" eventType: ").append(toIndentedString(eventType)).append("\n");
+ sb.append(" correlationId: ").append(toIndentedString(correlationId)).append("\n");
+ sb.append(" domain: ").append(toIndentedString(domain)).append("\n");
+ sb.append(" title: ").append(toIndentedString(title)).append("\n");
+ sb.append(" description: ").append(toIndentedString(description)).append("\n");
+ sb.append(" priority: ").append(toIndentedString(priority)).append("\n");
+ sb.append(" timeOcurred: ").append(toIndentedString(timeOcurred)).append("\n");
+ sb.append(" fieldPath: ").append(toIndentedString(fieldPath)).append("\n");
+ sb.append(" event: ").append(toIndentedString(event)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/org/etsi/osl/tmf/am642/model/AlarmAttributeValueChangeEventPayload.java b/src/main/java/org/etsi/osl/tmf/am642/model/AlarmAttributeValueChangeEventPayload.java
new file mode 100644
index 0000000000000000000000000000000000000000..092af2f4c7c9327af5cb18b18a10438222b04132
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/am642/model/AlarmAttributeValueChangeEventPayload.java
@@ -0,0 +1,99 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 - 2021 openslice.io
+ * %%
+ * 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.etsi.osl.tmf.am642.model;
+
+import java.util.Objects;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+import org.springframework.validation.annotation.Validated;
+
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.Valid;
+
+/**
+ * The event data structure
+ */
+@Schema(description = "The event data structure")
+@Validated
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2021-02-15T11:15:47.327930400+02:00[Europe/Athens]")
+public class AlarmAttributeValueChangeEventPayload {
+ @JsonProperty("alarm")
+ private Alarm alarm = null;
+
+ public AlarmAttributeValueChangeEventPayload alarm(Alarm alarm) {
+ this.alarm = alarm;
+ return this;
+ }
+
+ /**
+ * Get alarm
+ * @return alarm
+ **/
+ @Schema(description = "")
+
+ @Valid
+ public Alarm getAlarm() {
+ return alarm;
+ }
+
+ public void setAlarm(Alarm alarm) {
+ this.alarm = alarm;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ AlarmAttributeValueChangeEventPayload alarmAttributeValueChangeEventPayload = (AlarmAttributeValueChangeEventPayload) o;
+ return Objects.equals(this.alarm, alarmAttributeValueChangeEventPayload.alarm);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(alarm);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class AlarmAttributeValueChangeEventPayload {\n");
+
+ sb.append(" alarm: ").append(toIndentedString(alarm)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/org/etsi/osl/tmf/am642/model/AlarmCreate.java b/src/main/java/org/etsi/osl/tmf/am642/model/AlarmCreate.java
new file mode 100644
index 0000000000000000000000000000000000000000..22e01c6c29215cd69383b7092169df8aa33ece03
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/am642/model/AlarmCreate.java
@@ -0,0 +1,210 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 - 2021 openslice.io
+ * %%
+ * 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.etsi.osl.tmf.am642.model;
+
+import java.time.OffsetDateTime;
+import java.util.Objects;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+import org.springframework.validation.annotation.Validated;
+
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.Valid;
+import jakarta.validation.constraints.NotNull;
+
+/**
+ * This resource represents an alarm supporting the information model defined in
+ * ITU-T X.733. Skipped properties: id,href
+ */
+@Schema(description = "This resource represents an alarm supporting the information model defined in ITU-T X.733. Skipped properties: id,href")
+@Validated
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2021-02-15T11:15:47.327930400+02:00[Europe/Athens]")
+public class AlarmCreate extends AlarmUpdate {
+
+ private OffsetDateTime alarmRaisedTime = null;
+
+ @JsonProperty("sourceSystemId")
+ private String sourceSystemId = null;
+
+ /**
+ * Indicates the time (as a date + time) at which the alarm occurred at its
+ * source.
+ *
+ * @return alarmRaisedTime
+ **/
+ @Schema(description = "Indicates the time (as a date + time) at which the alarm occurred at its source.")
+ @NotNull
+
+ @Valid
+ public OffsetDateTime getAlarmRaisedTime() {
+ return alarmRaisedTime;
+ }
+
+ public void setAlarmRaisedTime(OffsetDateTime alarmRaisedTime) {
+ this.alarmRaisedTime = alarmRaisedTime;
+ }
+
+ @JsonProperty("alarmRaisedTime")
+ public String getAlarmRaisedTimeStr() {
+ if (this.alarmRaisedTime != null) {
+ return this.alarmRaisedTime.toString();
+ } else {
+ return null;
+ }
+ }
+
+ public void setAlarmRaisedTime(String aalarmRaisedTime) {
+ if (aalarmRaisedTime != null) {
+ this.alarmRaisedTime = OffsetDateTime.parse(aalarmRaisedTime);
+ }
+
+ }
+
+ public AlarmCreate sourceSystemId(String sourceSystemId) {
+ this.sourceSystemId = sourceSystemId;
+ return this;
+ }
+
+ /**
+ * Source system identity.
+ *
+ * @return sourceSystemId
+ **/
+ @Schema(description = "Source system identity.")
+ @NotNull
+
+ public String getSourceSystemId() {
+ return sourceSystemId;
+ }
+
+ public void setSourceSystemId(String sourceSystemId) {
+ this.sourceSystemId = sourceSystemId;
+ }
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ AlarmCreate alarmCreate = (AlarmCreate) o;
+ return Objects.equals(this.ackState, alarmCreate.ackState)
+ && Objects.equals(this.ackSystemId, alarmCreate.ackSystemId)
+ && Objects.equals(this.ackUserId, alarmCreate.ackUserId)
+ && Objects.equals(this.alarmChangedTime, alarmCreate.alarmChangedTime)
+ && Objects.equals(this.alarmClearedTime, alarmCreate.alarmClearedTime)
+ && Objects.equals(this.alarmDetails, alarmCreate.alarmDetails)
+ && Objects.equals(this.alarmEscalation, alarmCreate.alarmEscalation)
+ && Objects.equals(this.alarmRaisedTime, alarmCreate.alarmRaisedTime)
+ && Objects.equals(this.alarmReportingTime, alarmCreate.alarmReportingTime)
+ && Objects.equals(this.alarmType, alarmCreate.alarmType)
+ && Objects.equals(this.alarmedObjectType, alarmCreate.alarmedObjectType)
+ && Objects.equals(this.clearSystemId, alarmCreate.clearSystemId)
+ && Objects.equals(this.clearUserId, alarmCreate.clearUserId)
+ && Objects.equals(this.externalAlarmId, alarmCreate.externalAlarmId)
+ && Objects.equals(this.isRootCause, alarmCreate.isRootCause)
+ && Objects.equals(this.perceivedSeverity, alarmCreate.perceivedSeverity)
+ && Objects.equals(this.plannedOutageIndicator, alarmCreate.plannedOutageIndicator)
+ && Objects.equals(this.probableCause, alarmCreate.probableCause)
+ && Objects.equals(this.proposedRepairedActions, alarmCreate.proposedRepairedActions)
+ && Objects.equals(this.reportingSystemId, alarmCreate.reportingSystemId)
+ && Objects.equals(this.serviceAffecting, alarmCreate.serviceAffecting)
+ && Objects.equals(this.sourceSystemId, alarmCreate.sourceSystemId)
+ && Objects.equals(this.specificProblem, alarmCreate.specificProblem)
+ && Objects.equals(this.state, alarmCreate.state)
+ && Objects.equals(this.affectedService, alarmCreate.affectedService)
+ && Objects.equals(this.alarmedObject, alarmCreate.alarmedObject)
+ && Objects.equals(this.comment, alarmCreate.comment)
+ && Objects.equals(this.correlatedAlarm, alarmCreate.correlatedAlarm)
+ && Objects.equals(this.crossedThresholdInformation, alarmCreate.crossedThresholdInformation)
+ && Objects.equals(this.parentAlarm, alarmCreate.parentAlarm)
+ && Objects.equals(this.place, alarmCreate.place) && Objects.equals(this.baseType, alarmCreate.baseType)
+ && Objects.equals(this.schemaLocation, alarmCreate.schemaLocation)
+ && Objects.equals(this.type, alarmCreate.type);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(ackState, ackSystemId, ackUserId, alarmChangedTime, alarmClearedTime, alarmDetails,
+ alarmEscalation, alarmRaisedTime, alarmReportingTime, alarmType, alarmedObjectType, clearSystemId,
+ clearUserId, externalAlarmId, isRootCause, perceivedSeverity, plannedOutageIndicator, probableCause,
+ proposedRepairedActions, reportingSystemId, serviceAffecting, sourceSystemId, specificProblem, state,
+ affectedService, alarmedObject, comment, correlatedAlarm, crossedThresholdInformation, parentAlarm,
+ place, baseType, schemaLocation, type);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class AlarmCreate {\n");
+
+ sb.append(" ackState: ").append(toIndentedString(ackState)).append("\n");
+ sb.append(" ackSystemId: ").append(toIndentedString(ackSystemId)).append("\n");
+ sb.append(" ackUserId: ").append(toIndentedString(ackUserId)).append("\n");
+ sb.append(" alarmChangedTime: ").append(toIndentedString(alarmChangedTime)).append("\n");
+ sb.append(" alarmClearedTime: ").append(toIndentedString(alarmClearedTime)).append("\n");
+ sb.append(" alarmDetails: ").append(toIndentedString(alarmDetails)).append("\n");
+ sb.append(" alarmEscalation: ").append(toIndentedString(alarmEscalation)).append("\n");
+ sb.append(" alarmRaisedTime: ").append(toIndentedString(alarmRaisedTime)).append("\n");
+ sb.append(" alarmReportingTime: ").append(toIndentedString(alarmReportingTime)).append("\n");
+ sb.append(" alarmType: ").append(toIndentedString(alarmType)).append("\n");
+ sb.append(" alarmedObjectType: ").append(toIndentedString(alarmedObjectType)).append("\n");
+ sb.append(" clearSystemId: ").append(toIndentedString(clearSystemId)).append("\n");
+ sb.append(" clearUserId: ").append(toIndentedString(clearUserId)).append("\n");
+ sb.append(" externalAlarmId: ").append(toIndentedString(externalAlarmId)).append("\n");
+ sb.append(" isRootCause: ").append(toIndentedString(isRootCause)).append("\n");
+ sb.append(" perceivedSeverity: ").append(toIndentedString(perceivedSeverity)).append("\n");
+ sb.append(" plannedOutageIndicator: ").append(toIndentedString(plannedOutageIndicator)).append("\n");
+ sb.append(" probableCause: ").append(toIndentedString(probableCause)).append("\n");
+ sb.append(" proposedRepairedActions: ").append(toIndentedString(proposedRepairedActions)).append("\n");
+ sb.append(" reportingSystemId: ").append(toIndentedString(reportingSystemId)).append("\n");
+ sb.append(" serviceAffecting: ").append(toIndentedString(serviceAffecting)).append("\n");
+ sb.append(" sourceSystemId: ").append(toIndentedString(sourceSystemId)).append("\n");
+ sb.append(" specificProblem: ").append(toIndentedString(specificProblem)).append("\n");
+ sb.append(" state: ").append(toIndentedString(state)).append("\n");
+ sb.append(" affectedService: ").append(toIndentedString(affectedService)).append("\n");
+ sb.append(" alarmedObject: ").append(toIndentedString(alarmedObject)).append("\n");
+ sb.append(" comment: ").append(toIndentedString(comment)).append("\n");
+ sb.append(" correlatedAlarm: ").append(toIndentedString(correlatedAlarm)).append("\n");
+ sb.append(" crossedThresholdInformation: ").append(toIndentedString(crossedThresholdInformation))
+ .append("\n");
+ sb.append(" parentAlarm: ").append(toIndentedString(parentAlarm)).append("\n");
+ sb.append(" place: ").append(toIndentedString(place)).append("\n");
+ sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n");
+ sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
+ sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/org/etsi/osl/tmf/am642/model/AlarmCreateEvent.java b/src/main/java/org/etsi/osl/tmf/am642/model/AlarmCreateEvent.java
new file mode 100644
index 0000000000000000000000000000000000000000..e1297e483f4907bd655651f7eb46b8b08cc90ea8
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/am642/model/AlarmCreateEvent.java
@@ -0,0 +1,124 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 - 2021 openslice.io
+ * %%
+ * 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.etsi.osl.tmf.am642.model;
+
+import java.util.Objects;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import org.etsi.osl.tmf.common.model.OpensliceEvent;
+import org.springframework.validation.annotation.Validated;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.Valid;
+
+/**
+ * The notification data structure
+ */
+@Schema(description = "The notification data structure")
+@Validated
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2021-02-15T11:15:47.327930400+02:00[Europe/Athens]")
+public class AlarmCreateEvent extends OpensliceEvent {
+
+
+ @JsonProperty("event")
+ private AlarmCreateEventPayload event = null;
+
+
+
+ public AlarmCreateEvent event(AlarmCreateEventPayload event) {
+ this.event = event;
+ return this;
+ }
+
+ /**
+ * Get event
+ * @return event
+ **/
+ @Schema(description = "")
+
+ @Valid
+ public AlarmCreateEventPayload getEvent() {
+ return event;
+ }
+
+ public void setEvent(AlarmCreateEventPayload event) {
+ this.event = event;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ AlarmCreateEvent alarmCreateEvent = (AlarmCreateEvent) o;
+ return Objects.equals(this.id, alarmCreateEvent.id) &&
+ Objects.equals(this.href, alarmCreateEvent.href) &&
+ Objects.equals(this.eventId, alarmCreateEvent.eventId) &&
+ Objects.equals(this.eventTime, alarmCreateEvent.eventTime) &&
+ Objects.equals(this.eventType, alarmCreateEvent.eventType) &&
+ Objects.equals(this.correlationId, alarmCreateEvent.correlationId) &&
+ Objects.equals(this.domain, alarmCreateEvent.domain) &&
+ Objects.equals(this.title, alarmCreateEvent.title) &&
+ Objects.equals(this.description, alarmCreateEvent.description) &&
+ Objects.equals(this.priority, alarmCreateEvent.priority) &&
+ Objects.equals(this.timeOcurred, alarmCreateEvent.timeOcurred) &&
+ Objects.equals(this.event, alarmCreateEvent.event);
+ }
+
+// @Override
+// public int hashCode() {
+// return Objects.hash(id, href, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred, event);
+// }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class AlarmCreateEvent {\n");
+
+ sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append(" href: ").append(toIndentedString(href)).append("\n");
+ sb.append(" eventId: ").append(toIndentedString(eventId)).append("\n");
+ sb.append(" eventTime: ").append(toIndentedString(eventTime)).append("\n");
+ sb.append(" eventType: ").append(toIndentedString(eventType)).append("\n");
+ sb.append(" correlationId: ").append(toIndentedString(correlationId)).append("\n");
+ sb.append(" domain: ").append(toIndentedString(domain)).append("\n");
+ sb.append(" title: ").append(toIndentedString(title)).append("\n");
+ sb.append(" description: ").append(toIndentedString(description)).append("\n");
+ sb.append(" priority: ").append(toIndentedString(priority)).append("\n");
+ sb.append(" timeOcurred: ").append(toIndentedString(timeOcurred)).append("\n");
+ sb.append(" event: ").append(toIndentedString(event)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/org/etsi/osl/tmf/am642/model/AlarmCreateEventPayload.java b/src/main/java/org/etsi/osl/tmf/am642/model/AlarmCreateEventPayload.java
new file mode 100644
index 0000000000000000000000000000000000000000..7a499c94e1acb84528d73914e87bb8042d1c1712
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/am642/model/AlarmCreateEventPayload.java
@@ -0,0 +1,99 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 - 2021 openslice.io
+ * %%
+ * 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.etsi.osl.tmf.am642.model;
+
+import java.util.Objects;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+import org.springframework.validation.annotation.Validated;
+
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.Valid;
+
+/**
+ * The event data structure
+ */
+@Schema(description = "The event data structure")
+@Validated
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2021-02-15T11:15:47.327930400+02:00[Europe/Athens]")
+public class AlarmCreateEventPayload {
+ @JsonProperty("alarm")
+ private Alarm alarm = null;
+
+ public AlarmCreateEventPayload alarm(Alarm alarm) {
+ this.alarm = alarm;
+ return this;
+ }
+
+ /**
+ * Get alarm
+ * @return alarm
+ **/
+ @Schema(description = "")
+
+ @Valid
+ public Alarm getAlarm() {
+ return alarm;
+ }
+
+ public void setAlarm(Alarm alarm) {
+ this.alarm = alarm;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ AlarmCreateEventPayload alarmCreateEventPayload = (AlarmCreateEventPayload) o;
+ return Objects.equals(this.alarm, alarmCreateEventPayload.alarm);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(alarm);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class AlarmCreateEventPayload {\n");
+
+ sb.append(" alarm: ").append(toIndentedString(alarm)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/org/etsi/osl/tmf/am642/model/AlarmDeleteEvent.java b/src/main/java/org/etsi/osl/tmf/am642/model/AlarmDeleteEvent.java
new file mode 100644
index 0000000000000000000000000000000000000000..38d5a4ddeefa9ff8147efd3e5d06f81cb0881c95
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/am642/model/AlarmDeleteEvent.java
@@ -0,0 +1,366 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 - 2021 openslice.io
+ * %%
+ * 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.etsi.osl.tmf.am642.model;
+
+import java.time.OffsetDateTime;
+import java.util.Objects;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+import org.springframework.validation.annotation.Validated;
+
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.Valid;
+
+/**
+ * The notification data structure
+ */
+@Schema(description = "The notification data structure")
+@Validated
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2021-02-15T11:15:47.327930400+02:00[Europe/Athens]")
+public class AlarmDeleteEvent {
+ @JsonProperty("id")
+ private String id = null;
+
+ @JsonProperty("href")
+ private String href = null;
+
+ @JsonProperty("eventId")
+ private String eventId = null;
+
+ @JsonProperty("eventTime")
+ private OffsetDateTime eventTime = null;
+
+ @JsonProperty("eventType")
+ private String eventType = null;
+
+ @JsonProperty("correlationId")
+ private String correlationId = null;
+
+ @JsonProperty("domain")
+ private String domain = null;
+
+ @JsonProperty("title")
+ private String title = null;
+
+ @JsonProperty("description")
+ private String description = null;
+
+ @JsonProperty("priority")
+ private String priority = null;
+
+ @JsonProperty("timeOcurred")
+ private OffsetDateTime timeOcurred = null;
+
+ @JsonProperty("event")
+ private AlarmDeleteEventPayload event = null;
+
+ public AlarmDeleteEvent id(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Identifier of the Process flow
+ * @return id
+ **/
+ @Schema(description = "Identifier of the Process flow")
+
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ public AlarmDeleteEvent href(String href) {
+ this.href = href;
+ return this;
+ }
+
+ /**
+ * Reference of the ProcessFlow
+ * @return href
+ **/
+ @Schema(description = "Reference of the ProcessFlow")
+
+ public String getHref() {
+ return href;
+ }
+
+ public void setHref(String href) {
+ this.href = href;
+ }
+
+ public AlarmDeleteEvent eventId(String eventId) {
+ this.eventId = eventId;
+ return this;
+ }
+
+ /**
+ * The identifier of the notification.
+ * @return eventId
+ **/
+ @Schema(description = "The identifier of the notification.")
+
+ public String getEventId() {
+ return eventId;
+ }
+
+ public void setEventId(String eventId) {
+ this.eventId = eventId;
+ }
+
+ public AlarmDeleteEvent eventTime(OffsetDateTime eventTime) {
+ this.eventTime = eventTime;
+ return this;
+ }
+
+ /**
+ * Time of the event occurrence.
+ * @return eventTime
+ **/
+ @Schema(description = "Time of the event occurrence.")
+
+ @Valid
+ public OffsetDateTime getEventTime() {
+ return eventTime;
+ }
+
+ public void setEventTime(OffsetDateTime eventTime) {
+ this.eventTime = eventTime;
+ }
+
+ public AlarmDeleteEvent eventType(String eventType) {
+ this.eventType = eventType;
+ return this;
+ }
+
+ /**
+ * The type of the notification.
+ * @return eventType
+ **/
+ @Schema(description = "The type of the notification.")
+
+ public String getEventType() {
+ return eventType;
+ }
+
+ public void setEventType(String eventType) {
+ this.eventType = eventType;
+ }
+
+ public AlarmDeleteEvent correlationId(String correlationId) {
+ this.correlationId = correlationId;
+ return this;
+ }
+
+ /**
+ * The correlation id for this event.
+ * @return correlationId
+ **/
+ @Schema(description = "The correlation id for this event.")
+
+ public String getCorrelationId() {
+ return correlationId;
+ }
+
+ public void setCorrelationId(String correlationId) {
+ this.correlationId = correlationId;
+ }
+
+ public AlarmDeleteEvent domain(String domain) {
+ this.domain = domain;
+ return this;
+ }
+
+ /**
+ * The domain of the event.
+ * @return domain
+ **/
+ @Schema(description = "The domain of the event.")
+
+ public String getDomain() {
+ return domain;
+ }
+
+ public void setDomain(String domain) {
+ this.domain = domain;
+ }
+
+ public AlarmDeleteEvent title(String title) {
+ this.title = title;
+ return this;
+ }
+
+ /**
+ * The title of the event.
+ * @return title
+ **/
+ @Schema(description = "The title of the event.")
+
+ public String getTitle() {
+ return title;
+ }
+
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+ public AlarmDeleteEvent description(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * An explnatory of the event.
+ * @return description
+ **/
+ @Schema(description = "An explnatory of the event.")
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public AlarmDeleteEvent priority(String priority) {
+ this.priority = priority;
+ return this;
+ }
+
+ /**
+ * A priority.
+ * @return priority
+ **/
+ @Schema(description = "A priority.")
+
+ public String getPriority() {
+ return priority;
+ }
+
+ public void setPriority(String priority) {
+ this.priority = priority;
+ }
+
+ public AlarmDeleteEvent timeOcurred(OffsetDateTime timeOcurred) {
+ this.timeOcurred = timeOcurred;
+ return this;
+ }
+
+ /**
+ * The time the event occured.
+ * @return timeOcurred
+ **/
+ @Schema(description = "The time the event occured.")
+
+ @Valid
+ public OffsetDateTime getTimeOcurred() {
+ return timeOcurred;
+ }
+
+ public void setTimeOcurred(OffsetDateTime timeOcurred) {
+ this.timeOcurred = timeOcurred;
+ }
+
+ public AlarmDeleteEvent event(AlarmDeleteEventPayload event) {
+ this.event = event;
+ return this;
+ }
+
+ /**
+ * Get event
+ * @return event
+ **/
+ @Schema(description = "")
+
+ @Valid
+ public AlarmDeleteEventPayload getEvent() {
+ return event;
+ }
+
+ public void setEvent(AlarmDeleteEventPayload event) {
+ this.event = event;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ AlarmDeleteEvent alarmDeleteEvent = (AlarmDeleteEvent) o;
+ return Objects.equals(this.id, alarmDeleteEvent.id) &&
+ Objects.equals(this.href, alarmDeleteEvent.href) &&
+ Objects.equals(this.eventId, alarmDeleteEvent.eventId) &&
+ Objects.equals(this.eventTime, alarmDeleteEvent.eventTime) &&
+ Objects.equals(this.eventType, alarmDeleteEvent.eventType) &&
+ Objects.equals(this.correlationId, alarmDeleteEvent.correlationId) &&
+ Objects.equals(this.domain, alarmDeleteEvent.domain) &&
+ Objects.equals(this.title, alarmDeleteEvent.title) &&
+ Objects.equals(this.description, alarmDeleteEvent.description) &&
+ Objects.equals(this.priority, alarmDeleteEvent.priority) &&
+ Objects.equals(this.timeOcurred, alarmDeleteEvent.timeOcurred) &&
+ Objects.equals(this.event, alarmDeleteEvent.event);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(id, href, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred, event);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class AlarmDeleteEvent {\n");
+
+ sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append(" href: ").append(toIndentedString(href)).append("\n");
+ sb.append(" eventId: ").append(toIndentedString(eventId)).append("\n");
+ sb.append(" eventTime: ").append(toIndentedString(eventTime)).append("\n");
+ sb.append(" eventType: ").append(toIndentedString(eventType)).append("\n");
+ sb.append(" correlationId: ").append(toIndentedString(correlationId)).append("\n");
+ sb.append(" domain: ").append(toIndentedString(domain)).append("\n");
+ sb.append(" title: ").append(toIndentedString(title)).append("\n");
+ sb.append(" description: ").append(toIndentedString(description)).append("\n");
+ sb.append(" priority: ").append(toIndentedString(priority)).append("\n");
+ sb.append(" timeOcurred: ").append(toIndentedString(timeOcurred)).append("\n");
+ sb.append(" event: ").append(toIndentedString(event)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/org/etsi/osl/tmf/am642/model/AlarmDeleteEventPayload.java b/src/main/java/org/etsi/osl/tmf/am642/model/AlarmDeleteEventPayload.java
new file mode 100644
index 0000000000000000000000000000000000000000..f9ce09e70692d6d1f0eb3f6e25850cd2f114736d
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/am642/model/AlarmDeleteEventPayload.java
@@ -0,0 +1,99 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 - 2021 openslice.io
+ * %%
+ * 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.etsi.osl.tmf.am642.model;
+
+import java.util.Objects;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+import org.springframework.validation.annotation.Validated;
+
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.Valid;
+
+/**
+ * The event data structure
+ */
+@Schema(description = "The event data structure")
+@Validated
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2021-02-15T11:15:47.327930400+02:00[Europe/Athens]")
+public class AlarmDeleteEventPayload {
+ @JsonProperty("alarm")
+ private Alarm alarm = null;
+
+ public AlarmDeleteEventPayload alarm(Alarm alarm) {
+ this.alarm = alarm;
+ return this;
+ }
+
+ /**
+ * Get alarm
+ * @return alarm
+ **/
+ @Schema(description = "")
+
+ @Valid
+ public Alarm getAlarm() {
+ return alarm;
+ }
+
+ public void setAlarm(Alarm alarm) {
+ this.alarm = alarm;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ AlarmDeleteEventPayload alarmDeleteEventPayload = (AlarmDeleteEventPayload) o;
+ return Objects.equals(this.alarm, alarmDeleteEventPayload.alarm);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(alarm);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class AlarmDeleteEventPayload {\n");
+
+ sb.append(" alarm: ").append(toIndentedString(alarm)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/org/etsi/osl/tmf/am642/model/AlarmRef.java b/src/main/java/org/etsi/osl/tmf/am642/model/AlarmRef.java
new file mode 100644
index 0000000000000000000000000000000000000000..e62ef125ffe305abfbe618d13af6c8c5e1ce31ab
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/am642/model/AlarmRef.java
@@ -0,0 +1,127 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 - 2021 openslice.io
+ * %%
+ * 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.etsi.osl.tmf.am642.model;
+
+import java.util.Objects;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import org.etsi.osl.tmf.common.model.BaseRootNamedEntity;
+import org.springframework.validation.annotation.Validated;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.persistence.Entity;
+import jakarta.persistence.Table;
+
+/**
+ * AlarmRef
+ */
+@Validated
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2021-02-15T11:15:47.327930400+02:00[Europe/Athens]")
+@Entity(name = "AMAlarmRef")
+@Table(name = "AMAlarmRef")
+public class AlarmRef extends BaseRootNamedEntity {
+ @JsonProperty("id")
+ private String id = null;
+
+
+
+ @JsonProperty("@referredType")
+ private String _atReferredType = null;
+
+
+ /**
+ * @return the id
+ */
+ public String getId() {
+ if (uuid != null) {
+ id = uuid;
+ }
+ return id;
+ }
+
+
+
+ public AlarmRef _atReferredType(String _atReferredType) {
+ this._atReferredType = _atReferredType;
+ return this;
+ }
+
+ /**
+ * The actual type of the target instance when needed for disambiguation.
+ *
+ * @return _atReferredType
+ **/
+ @Schema(description = "The actual type of the target instance when needed for disambiguation.")
+
+ public String getAtReferredType() {
+ return _atReferredType;
+ }
+
+ public void setAtReferredType(String _atReferredType) {
+ this._atReferredType = _atReferredType;
+ }
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ AlarmRef alarmRef = (AlarmRef) o;
+ return Objects.equals(this.id, alarmRef.id) && Objects.equals(this.href, alarmRef.href)
+ && Objects.equals(this.name, alarmRef.name) && Objects.equals(this.baseType, alarmRef.baseType)
+ && Objects.equals(this.schemaLocation, alarmRef.schemaLocation)
+ && Objects.equals(this.type, alarmRef.type)
+ && Objects.equals(this._atReferredType, alarmRef._atReferredType);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(id, href, name, baseType, schemaLocation, type, _atReferredType);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class AlarmRef {\n");
+
+ sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append(" href: ").append(toIndentedString(href)).append("\n");
+ sb.append(" name: ").append(toIndentedString(name)).append("\n");
+ sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n");
+ sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
+ sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append(" _atReferredType: ").append(toIndentedString(_atReferredType)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/org/etsi/osl/tmf/am642/model/AlarmRefOrValue.java b/src/main/java/org/etsi/osl/tmf/am642/model/AlarmRefOrValue.java
new file mode 100644
index 0000000000000000000000000000000000000000..f09201996192314f82e550eaa0852675252c3399
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/am642/model/AlarmRefOrValue.java
@@ -0,0 +1,1054 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 - 2021 openslice.io
+ * %%
+ * 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.etsi.osl.tmf.am642.model;
+
+import java.time.OffsetDateTime;
+import java.util.HashSet;
+import java.util.Objects;
+import java.util.Set;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import org.etsi.osl.tmf.common.model.BaseRootNamedEntity;
+import org.springframework.validation.annotation.Validated;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.persistence.CascadeType;
+import jakarta.persistence.Entity;
+import jakarta.persistence.OneToMany;
+import jakarta.persistence.OneToOne;
+import jakarta.persistence.Table;
+import jakarta.validation.Valid;
+
+/**
+ * An alarm defined by reference or value. The polymorphic
+ * attributes @type, @schemaLocation & @referredType are related to the
+ * alarm entity and not the RelatedAlarmRefOrValue class itself
+ */
+@Schema(description = "An alarm defined by reference or value. The polymorphic attributes @type, @schemaLocation & @referredType are related to the alarm entity and not the RelatedAlarmRefOrValue class itself")
+@Validated
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2021-02-15T11:15:47.327930400+02:00[Europe/Athens]")
+@Entity(name = "AMAlarmRefOrVal")
+@Table(name = "AMAlarmRefOrVal")
+public class AlarmRefOrValue extends BaseRootNamedEntity {
+
+ @JsonProperty("id")
+ private Integer id = null;
+
+ @JsonProperty("ackState")
+ private String ackState = null;
+
+ @JsonProperty("ackSystemId")
+ private String ackSystemId = null;
+
+ @JsonProperty("ackUserId")
+ private String ackUserId = null;
+
+ private OffsetDateTime alarmChangedTime = null;
+
+ private OffsetDateTime alarmClearedTime = null;
+
+ @JsonProperty("alarmDetails")
+ private String alarmDetails = null;
+
+ @JsonProperty("alarmEscalation")
+ private Boolean alarmEscalation = null;
+
+ private OffsetDateTime alarmRaisedTime = null;
+
+ private OffsetDateTime alarmReportingTime = null;
+
+ @JsonProperty("alarmType")
+ private String alarmType = null;
+
+ @JsonProperty("alarmedObjectType")
+ private String alarmedObjectType = null;
+
+ @JsonProperty("clearSystemId")
+ private String clearSystemId = null;
+
+ @JsonProperty("clearUserId")
+ private String clearUserId = null;
+
+ @JsonProperty("externalAlarmId")
+ private String externalAlarmId = null;
+
+ @JsonProperty("isRootCause")
+ private Boolean isRootCause = null;
+
+ @JsonProperty("perceivedSeverity")
+ private String perceivedSeverity = null;
+
+ @JsonProperty("plannedOutageIndicator")
+ private String plannedOutageIndicator = null;
+
+ @JsonProperty("probableCause")
+ private String probableCause = null;
+
+ @JsonProperty("proposedRepairedActions")
+ private String proposedRepairedActions = null;
+
+ @JsonProperty("reportingSystemId")
+ private String reportingSystemId = null;
+
+ @JsonProperty("serviceAffecting")
+ private Boolean serviceAffecting = null;
+
+ @JsonProperty("sourceSystemId")
+ private String sourceSystemId = null;
+
+ @JsonProperty("specificProblem")
+ private String specificProblem = null;
+
+ @JsonProperty("state")
+ private String state = null;
+
+ @JsonProperty("affectedService")
+ @Valid
+ @OneToMany(cascade = { CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH })
+ private Set affectedService = new HashSet<>();
+
+ @JsonProperty("alarmedObject")
+ @OneToOne(cascade = { CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH })
+ private AlarmedObject alarmedObject = null;
+
+ @JsonProperty("comment")
+ @Valid
+ @OneToMany(cascade = { CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH })
+ private Set comment = new HashSet<>();
+
+ @JsonProperty("correlatedAlarm")
+ @Valid
+ @OneToMany(cascade = { CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH })
+ private Set correlatedAlarm = new HashSet<>();
+
+ @JsonProperty("crossedThresholdInformation")
+ @OneToOne(cascade = { CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH })
+ private CrossedThresholdInformation crossedThresholdInformation = null;
+
+ @JsonProperty("parentAlarm")
+ @Valid
+ @OneToMany(cascade = { CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH })
+ private Set parentAlarm = new HashSet<>();
+
+ @JsonProperty("place")
+ @Valid
+ @OneToMany(cascade = { CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH })
+ private Set place = new HashSet<>();
+
+ @JsonProperty("@referredType")
+ private String _atReferredType = null;
+
+ public AlarmRefOrValue id(Integer id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Identifier of the alarm, determined by the alarm owning system
+ *
+ * @return id
+ **/
+ @Schema(description = "Identifier of the alarm, determined by the alarm owning system")
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public AlarmRefOrValue href(String href) {
+ this.href = href;
+ return this;
+ }
+
+ /**
+ * A reference to the alarm.
+ *
+ * @return href
+ **/
+ @Schema(description = "A reference to the alarm.")
+
+ public String getHref() {
+ return href;
+ }
+
+ public void setHref(String href) {
+ this.href = href;
+ }
+
+ public AlarmRefOrValue ackState(String ackState) {
+ this.ackState = ackState;
+ return this;
+ }
+
+ /**
+ * Provides the Acknowledgement State of the alarm
+ *
+ * @return ackState
+ **/
+ @Schema(description = "Provides the Acknowledgement State of the alarm")
+
+ public String getAckState() {
+ return ackState;
+ }
+
+ public void setAckState(String ackState) {
+ this.ackState = ackState;
+ }
+
+ public AlarmRefOrValue ackSystemId(String ackSystemId) {
+ this.ackSystemId = ackSystemId;
+ return this;
+ }
+
+ /**
+ * Provides the name of the system that last changed the ackState of an alarm,
+ * i.e. acknowledged or unacknowledged the alarm.
+ *
+ * @return ackSystemId
+ **/
+ @Schema(description = "Provides the name of the system that last changed the ackState of an alarm, i.e. acknowledged or unacknowledged the alarm.")
+
+ public String getAckSystemId() {
+ return ackSystemId;
+ }
+
+ public void setAckSystemId(String ackSystemId) {
+ this.ackSystemId = ackSystemId;
+ }
+
+ public AlarmRefOrValue ackUserId(String ackUserId) {
+ this.ackUserId = ackUserId;
+ return this;
+ }
+
+ /**
+ * Provides the id of the user who has last changed the ack state of the alarm,
+ * i.e. acknowledged or unacknowledged the alarm.
+ *
+ * @return ackUserId
+ **/
+ @Schema(description = "Provides the id of the user who has last changed the ack state of the alarm, i.e. acknowledged or unacknowledged the alarm.")
+
+ public String getAckUserId() {
+ return ackUserId;
+ }
+
+ public void setAckUserId(String ackUserId) {
+ this.ackUserId = ackUserId;
+ }
+
+ public AlarmRefOrValue alarmChangedTime(OffsetDateTime alarmChangedTime) {
+ this.alarmChangedTime = alarmChangedTime;
+ return this;
+ }
+
+ /**
+ * Indicates the last date and time when the alarm is changed on the
+ * alarm-owning system. Any change to the alarm whether coming from the alarmed
+ * resource, or triggered by a change from the client is changing this time.
+ *
+ * @return alarmChangedTime
+ **/
+ @Schema(description = "Indicates the last date and time when the alarm is changed on the alarm-owning system. Any change to the alarm whether coming from the alarmed resource, or triggered by a change from the client is changing this time.")
+
+ @Valid
+ public OffsetDateTime getAlarmChangedTime() {
+ return alarmChangedTime;
+ }
+
+ public void setAlarmChangedTime(OffsetDateTime alarmChangedTime) {
+ this.alarmChangedTime = alarmChangedTime;
+ }
+
+ @JsonProperty("alarmChangedTime")
+ public String getAlarmChangedTimeStr() {
+ if (this.alarmChangedTime != null) {
+ return this.alarmChangedTime.toString();
+ } else {
+ return null;
+ }
+ }
+
+ public AlarmRefOrValue alarmClearedTime(OffsetDateTime alarmClearedTime) {
+ this.alarmClearedTime = alarmClearedTime;
+ return this;
+ }
+
+ /**
+ * Indicates the time (as a date + time) at which the alarm is cleared at the
+ * source.
+ *
+ * @return alarmClearedTime
+ **/
+ @Schema(description = "Indicates the time (as a date + time) at which the alarm is cleared at the source. ")
+
+ @Valid
+ public OffsetDateTime getAlarmClearedTime() {
+ return alarmClearedTime;
+ }
+
+ public void setAlarmClearedTime(OffsetDateTime alarmClearedTime) {
+ this.alarmClearedTime = alarmClearedTime;
+ }
+
+ @JsonProperty("alarmClearedTime")
+ public String getAlarmClearedTimeStr() {
+ if (this.alarmClearedTime != null) {
+ return this.alarmClearedTime.toString();
+ } else {
+ return null;
+ }
+ }
+
+ public AlarmRefOrValue alarmDetails(String alarmDetails) {
+ this.alarmDetails = alarmDetails;
+ return this;
+ }
+
+ /**
+ * Contains further information on the alarm.
+ *
+ * @return alarmDetails
+ **/
+ @Schema(description = "Contains further information on the alarm.")
+
+ public String getAlarmDetails() {
+ return alarmDetails;
+ }
+
+ public void setAlarmDetails(String alarmDetails) {
+ this.alarmDetails = alarmDetails;
+ }
+
+ public AlarmRefOrValue alarmEscalation(Boolean alarmEscalation) {
+ this.alarmEscalation = alarmEscalation;
+ return this;
+ }
+
+ /**
+ * Indicates if this alarm has been escalated or not.
+ *
+ * @return alarmEscalation
+ **/
+ @Schema(description = "Indicates if this alarm has been escalated or not. ")
+
+ public Boolean isAlarmEscalation() {
+ return alarmEscalation;
+ }
+
+ public void setAlarmEscalation(Boolean alarmEscalation) {
+ this.alarmEscalation = alarmEscalation;
+ }
+
+ public AlarmRefOrValue alarmRaisedTime(OffsetDateTime alarmRaisedTime) {
+ this.alarmRaisedTime = alarmRaisedTime;
+ return this;
+ }
+
+ /**
+ * Indicates the time (as a date + time) at which the alarm occurred at its
+ * source.
+ *
+ * @return alarmRaisedTime
+ **/
+ @Schema(description = "Indicates the time (as a date + time) at which the alarm occurred at its source.")
+
+ @Valid
+ public OffsetDateTime getAlarmRaisedTime() {
+ return alarmRaisedTime;
+ }
+
+ public void setAlarmRaisedTime(OffsetDateTime alarmRaisedTime) {
+ this.alarmRaisedTime = alarmRaisedTime;
+ }
+
+ @JsonProperty("alarmRaisedTime")
+ public String getAlarmRaisedTimeStr() {
+ if (this.alarmRaisedTime != null) {
+ return this.alarmRaisedTime.toString();
+ } else {
+ return null;
+ }
+ }
+
+ public AlarmRefOrValue alarmReportingTime(OffsetDateTime alarmReportingTime) {
+ this.alarmReportingTime = alarmReportingTime;
+ return this;
+ }
+
+ /**
+ * Indicates the time (as a date + time) at which the alarm was reported by the
+ * owning OSS. It might be different from the alarmRaisedTime. For instance, if
+ * the alarm list is maintained by an EMS, the alarmRaisedtime would be the time
+ * the alarm was detected by the NE, while the alarmReportingTime would be the
+ * time this alarm was stored in the alarm list of the EMS.
+ *
+ * @return alarmReportingTime
+ **/
+ @Schema(description = "Indicates the time (as a date + time) at which the alarm was reported by the owning OSS. It might be different from the alarmRaisedTime. For instance, if the alarm list is maintained by an EMS, the alarmRaisedtime would be the time the alarm was detected by the NE, while the alarmReportingTime would be the time this alarm was stored in the alarm list of the EMS.")
+
+ @Valid
+ public OffsetDateTime getAlarmReportingTime() {
+ return alarmReportingTime;
+ }
+
+ public void setAlarmReportingTime(OffsetDateTime alarmReportingTime) {
+ this.alarmReportingTime = alarmReportingTime;
+ }
+
+ @JsonProperty("alarmReportingTime")
+ public String getAlarmReportingTimeStr() {
+ if (this.alarmReportingTime != null) {
+ return this.alarmReportingTime.toString();
+ } else {
+ return null;
+ }
+ }
+
+ public AlarmRefOrValue alarmType(String alarmType) {
+ this.alarmType = alarmType;
+ return this;
+ }
+
+ /**
+ * Categorize the alarm. Should be one of the values defined in X.733 8.1.1 or
+ * 3GPP TS 32.111-2 Annex A: Communications Alarm Processing Error Alarm
+ * Environmental Alarm Quality of Service Alarm Equipment Alarm Integrity
+ * Violation Operational Violation Physical Violation Security Service or
+ * Mechanism Violation Time Domain Violation
+ *
+ * @return alarmType
+ **/
+ @Schema(description = "Categorize the alarm. Should be one of the values defined in X.733 8.1.1 or 3GPP TS 32.111-2 Annex A: Communications Alarm Processing Error Alarm Environmental Alarm Quality of Service Alarm Equipment Alarm Integrity Violation Operational Violation Physical Violation Security Service or Mechanism Violation Time Domain Violation")
+
+ public String getAlarmType() {
+ return alarmType;
+ }
+
+ public void setAlarmType(String alarmType) {
+ this.alarmType = alarmType;
+ }
+
+ public AlarmRefOrValue alarmedObjectType(String alarmedObjectType) {
+ this.alarmedObjectType = alarmedObjectType;
+ return this;
+ }
+
+ /**
+ * The type (class) of the managed object associated with the event.
+ *
+ * @return alarmedObjectType
+ **/
+ @Schema(description = "The type (class) of the managed object associated with the event.")
+
+ public String getAlarmedObjectType() {
+ return alarmedObjectType;
+ }
+
+ public void setAlarmedObjectType(String alarmedObjectType) {
+ this.alarmedObjectType = alarmedObjectType;
+ }
+
+ public AlarmRefOrValue clearSystemId(String clearSystemId) {
+ this.clearSystemId = clearSystemId;
+ return this;
+ }
+
+ /**
+ * Provides the id of the system where the user who invoked the alarmCleared
+ * operation is located.
+ *
+ * @return clearSystemId
+ **/
+ @Schema(description = "Provides the id of the system where the user who invoked the alarmCleared operation is located. ")
+
+ public String getClearSystemId() {
+ return clearSystemId;
+ }
+
+ public void setClearSystemId(String clearSystemId) {
+ this.clearSystemId = clearSystemId;
+ }
+
+ public AlarmRefOrValue clearUserId(String clearUserId) {
+ this.clearUserId = clearUserId;
+ return this;
+ }
+
+ /**
+ * Provides the id of the user who invoked the alarmCleared operation
+ *
+ * @return clearUserId
+ **/
+ @Schema(description = "Provides the id of the user who invoked the alarmCleared operation")
+
+ public String getClearUserId() {
+ return clearUserId;
+ }
+
+ public void setClearUserId(String clearUserId) {
+ this.clearUserId = clearUserId;
+ }
+
+ public AlarmRefOrValue externalAlarmId(String externalAlarmId) {
+ this.externalAlarmId = externalAlarmId;
+ return this;
+ }
+
+ /**
+ * An identifier of the alarm in the source system.
+ *
+ * @return externalAlarmId
+ **/
+ @Schema(description = "An identifier of the alarm in the source system.")
+
+ public String getExternalAlarmId() {
+ return externalAlarmId;
+ }
+
+ public void setExternalAlarmId(String externalAlarmId) {
+ this.externalAlarmId = externalAlarmId;
+ }
+
+ public AlarmRefOrValue isRootCause(Boolean isRootCause) {
+ this.isRootCause = isRootCause;
+ return this;
+ }
+
+ /**
+ * Indicates whether the alarm is a root cause alarm..
+ *
+ * @return isRootCause
+ **/
+ @Schema(description = "Indicates whether the alarm is a root cause alarm.. ")
+
+ public Boolean isIsRootCause() {
+ return isRootCause;
+ }
+
+ public void setIsRootCause(Boolean isRootCause) {
+ this.isRootCause = isRootCause;
+ }
+
+ public AlarmRefOrValue perceivedSeverity(String perceivedSeverity) {
+ this.perceivedSeverity = perceivedSeverity;
+ return this;
+ }
+
+ /**
+ * Lists the possible severities that can be allocated to an Alarm. The values
+ * are consistent with ITU-T Recommendation X.733. Once an alarm has been
+ * cleared, its perceived severity is set to 'cleared' and can no longer be set.
+ *
+ * @return perceivedSeverity
+ **/
+ @Schema(description = "Lists the possible severities that can be allocated to an Alarm. The values are consistent with ITU-T Recommendation X.733. Once an alarm has been cleared, its perceived severity is set to 'cleared' and can no longer be set.")
+
+ public String getPerceivedSeverity() {
+ return perceivedSeverity;
+ }
+
+ public void setPerceivedSeverity(String perceivedSeverity) {
+ this.perceivedSeverity = perceivedSeverity;
+ }
+
+ public AlarmRefOrValue plannedOutageIndicator(String plannedOutageIndicator) {
+ this.plannedOutageIndicator = plannedOutageIndicator;
+ return this;
+ }
+
+ /**
+ * Indicates that the Managed Object (related to this alarm) is in planned
+ * outage (in planned maintenance, or out-of-service).
+ *
+ * @return plannedOutageIndicator
+ **/
+ @Schema(description = "Indicates that the Managed Object (related to this alarm) is in planned outage (in planned maintenance, or out-of-service). ")
+
+ public String getPlannedOutageIndicator() {
+ return plannedOutageIndicator;
+ }
+
+ public void setPlannedOutageIndicator(String plannedOutageIndicator) {
+ this.plannedOutageIndicator = plannedOutageIndicator;
+ }
+
+ public AlarmRefOrValue probableCause(String probableCause) {
+ this.probableCause = probableCause;
+ return this;
+ }
+
+ /**
+ * Provides the probable cause of the alarm. The values are consistent with
+ * ITU-T Recommendation X.733 or 3GPP TS 32.111-2 Annex B.
+ *
+ * @return probableCause
+ **/
+ @Schema(description = "Provides the probable cause of the alarm. The values are consistent with ITU-T Recommendation X.733 or 3GPP TS 32.111-2 Annex B.")
+
+ public String getProbableCause() {
+ return probableCause;
+ }
+
+ public void setProbableCause(String probableCause) {
+ this.probableCause = probableCause;
+ }
+
+ public AlarmRefOrValue proposedRepairedActions(String proposedRepairedActions) {
+ this.proposedRepairedActions = proposedRepairedActions;
+ return this;
+ }
+
+ /**
+ * Indicates proposed repair actions, if known to the system emitting the alarm.
+ *
+ * @return proposedRepairedActions
+ **/
+ @Schema(description = "Indicates proposed repair actions, if known to the system emitting the alarm.")
+
+ public String getProposedRepairedActions() {
+ return proposedRepairedActions;
+ }
+
+ public void setProposedRepairedActions(String proposedRepairedActions) {
+ this.proposedRepairedActions = proposedRepairedActions;
+ }
+
+ public AlarmRefOrValue reportingSystemId(String reportingSystemId) {
+ this.reportingSystemId = reportingSystemId;
+ return this;
+ }
+
+ /**
+ * Reporting system identity.
+ *
+ * @return reportingSystemId
+ **/
+ @Schema(description = "Reporting system identity.")
+
+ public String getReportingSystemId() {
+ return reportingSystemId;
+ }
+
+ public void setReportingSystemId(String reportingSystemId) {
+ this.reportingSystemId = reportingSystemId;
+ }
+
+ public AlarmRefOrValue serviceAffecting(Boolean serviceAffecting) {
+ this.serviceAffecting = serviceAffecting;
+ return this;
+ }
+
+ /**
+ * Indicates whether the alarm affects service or not.
+ *
+ * @return serviceAffecting
+ **/
+ @Schema(description = "Indicates whether the alarm affects service or not.")
+
+ public Boolean isServiceAffecting() {
+ return serviceAffecting;
+ }
+
+ public void setServiceAffecting(Boolean serviceAffecting) {
+ this.serviceAffecting = serviceAffecting;
+ }
+
+ public AlarmRefOrValue sourceSystemId(String sourceSystemId) {
+ this.sourceSystemId = sourceSystemId;
+ return this;
+ }
+
+ /**
+ * Source system identity.
+ *
+ * @return sourceSystemId
+ **/
+ @Schema(description = "Source system identity.")
+
+ public String getSourceSystemId() {
+ return sourceSystemId;
+ }
+
+ public void setSourceSystemId(String sourceSystemId) {
+ this.sourceSystemId = sourceSystemId;
+ }
+
+ public AlarmRefOrValue specificProblem(String specificProblem) {
+ this.specificProblem = specificProblem;
+ return this;
+ }
+
+ /**
+ * Provides more specific information about the alarm.
+ *
+ * @return specificProblem
+ **/
+ @Schema(description = "Provides more specific information about the alarm.")
+
+ public String getSpecificProblem() {
+ return specificProblem;
+ }
+
+ public void setSpecificProblem(String specificProblem) {
+ this.specificProblem = specificProblem;
+ }
+
+ public AlarmRefOrValue state(String state) {
+ this.state = state;
+ return this;
+ }
+
+ /**
+ * Defines the alarm state during its life cycle
+ *
+ * @return state
+ **/
+ @Schema(description = "Defines the alarm state during its life cycle")
+
+ public String getState() {
+ return state;
+ }
+
+ public void setState(String state) {
+ this.state = state;
+ }
+
+ public AlarmRefOrValue affectedService(Set affectedService) {
+ this.affectedService = affectedService;
+ return this;
+ }
+
+ public AlarmRefOrValue addAffectedServiceItem(AffectedService affectedServiceItem) {
+ if (this.affectedService == null) {
+ this.affectedService = new HashSet<>();
+ }
+ this.affectedService.add(affectedServiceItem);
+ return this;
+ }
+
+ /**
+ * Get affectedService
+ *
+ * @return affectedService
+ **/
+ @Schema(description = "")
+ @Valid
+ public Set getAffectedService() {
+ return affectedService;
+ }
+
+ public void setAffectedService(Set affectedService) {
+ this.affectedService = affectedService;
+ }
+
+ public AlarmRefOrValue alarmedObject(AlarmedObject alarmedObject) {
+ this.alarmedObject = alarmedObject;
+ return this;
+ }
+
+ /**
+ * Get alarmedObject
+ *
+ * @return alarmedObject
+ **/
+ @Schema(description = "")
+
+ @Valid
+ public AlarmedObject getAlarmedObject() {
+ return alarmedObject;
+ }
+
+ public void setAlarmedObject(AlarmedObject alarmedObject) {
+ this.alarmedObject = alarmedObject;
+ }
+
+ public AlarmRefOrValue comment(Set comment) {
+ this.comment = comment;
+ return this;
+ }
+
+ public AlarmRefOrValue addCommentItem(Comment commentItem) {
+ if (this.comment == null) {
+ this.comment = new HashSet<>();
+ }
+ this.comment.add(commentItem);
+ return this;
+ }
+
+ /**
+ * Get comment
+ *
+ * @return comment
+ **/
+ @Schema(description = "")
+ @Valid
+ public Set getComment() {
+ return comment;
+ }
+
+ public void setComment(Set comment) {
+ this.comment = comment;
+ }
+
+ public AlarmRefOrValue correlatedAlarm(Set correlatedAlarm) {
+ this.correlatedAlarm = correlatedAlarm;
+ return this;
+ }
+
+ public AlarmRefOrValue addCorrelatedAlarmItem(AlarmRef correlatedAlarmItem) {
+ if (this.correlatedAlarm == null) {
+ this.correlatedAlarm = new HashSet<>();
+ }
+ this.correlatedAlarm.add(correlatedAlarmItem);
+ return this;
+ }
+
+ /**
+ * Get correlatedAlarm
+ *
+ * @return correlatedAlarm
+ **/
+ @Schema(description = "")
+ @Valid
+ public Set getCorrelatedAlarm() {
+ return correlatedAlarm;
+ }
+
+ public void setCorrelatedAlarm(Set correlatedAlarm) {
+ this.correlatedAlarm = correlatedAlarm;
+ }
+
+ public AlarmRefOrValue crossedThresholdInformation(CrossedThresholdInformation crossedThresholdInformation) {
+ this.crossedThresholdInformation = crossedThresholdInformation;
+ return this;
+ }
+
+ /**
+ * Get crossedThresholdInformation
+ *
+ * @return crossedThresholdInformation
+ **/
+ @Schema(description = "")
+
+ @Valid
+ public CrossedThresholdInformation getCrossedThresholdInformation() {
+ return crossedThresholdInformation;
+ }
+
+ public void setCrossedThresholdInformation(CrossedThresholdInformation crossedThresholdInformation) {
+ this.crossedThresholdInformation = crossedThresholdInformation;
+ }
+
+ public AlarmRefOrValue parentAlarm(Set parentAlarm) {
+ this.parentAlarm = parentAlarm;
+ return this;
+ }
+
+ public AlarmRefOrValue addParentAlarmItem(AlarmRef parentAlarmItem) {
+ if (this.parentAlarm == null) {
+ this.parentAlarm = new HashSet<>();
+ }
+ this.parentAlarm.add(parentAlarmItem);
+ return this;
+ }
+
+ /**
+ * Get parentAlarm
+ *
+ * @return parentAlarm
+ **/
+ @Schema(description = "")
+ @Valid
+ public Set getParentAlarm() {
+ return parentAlarm;
+ }
+
+ public void setParentAlarm(Set parentAlarm) {
+ this.parentAlarm = parentAlarm;
+ }
+
+ public AlarmRefOrValue place(Set place) {
+ this.place = place;
+ return this;
+ }
+
+ public AlarmRefOrValue addPlaceItem(RelatedPlaceRefOrValue placeItem) {
+ if (this.place == null) {
+ this.place = new HashSet<>();
+ }
+ this.place.add(placeItem);
+ return this;
+ }
+
+ /**
+ * Get place
+ *
+ * @return place
+ **/
+ @Schema(description = "")
+ @Valid
+ public Set getPlace() {
+ return place;
+ }
+
+ public void setPlace(Set place) {
+ this.place = place;
+ }
+
+ public AlarmRefOrValue _atReferredType(String _atReferredType) {
+ this._atReferredType = _atReferredType;
+ return this;
+ }
+
+ /**
+ * The actual type of the target instance when needed for disambiguation.
+ *
+ * @return _atReferredType
+ **/
+ @Schema(description = "The actual type of the target instance when needed for disambiguation.")
+
+ public String getAtReferredType() {
+ return _atReferredType;
+ }
+
+ public void setAtReferredType(String _atReferredType) {
+ this._atReferredType = _atReferredType;
+ }
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ AlarmRefOrValue alarmRefOrValue = (AlarmRefOrValue) o;
+ return Objects.equals(this.id, alarmRefOrValue.id) && Objects.equals(this.href, alarmRefOrValue.href)
+ && Objects.equals(this.ackState, alarmRefOrValue.ackState)
+ && Objects.equals(this.ackSystemId, alarmRefOrValue.ackSystemId)
+ && Objects.equals(this.ackUserId, alarmRefOrValue.ackUserId)
+ && Objects.equals(this.alarmChangedTime, alarmRefOrValue.alarmChangedTime)
+ && Objects.equals(this.alarmClearedTime, alarmRefOrValue.alarmClearedTime)
+ && Objects.equals(this.alarmDetails, alarmRefOrValue.alarmDetails)
+ && Objects.equals(this.alarmEscalation, alarmRefOrValue.alarmEscalation)
+ && Objects.equals(this.alarmRaisedTime, alarmRefOrValue.alarmRaisedTime)
+ && Objects.equals(this.alarmReportingTime, alarmRefOrValue.alarmReportingTime)
+ && Objects.equals(this.alarmType, alarmRefOrValue.alarmType)
+ && Objects.equals(this.alarmedObjectType, alarmRefOrValue.alarmedObjectType)
+ && Objects.equals(this.clearSystemId, alarmRefOrValue.clearSystemId)
+ && Objects.equals(this.clearUserId, alarmRefOrValue.clearUserId)
+ && Objects.equals(this.externalAlarmId, alarmRefOrValue.externalAlarmId)
+ && Objects.equals(this.isRootCause, alarmRefOrValue.isRootCause)
+ && Objects.equals(this.name, alarmRefOrValue.name)
+ && Objects.equals(this.perceivedSeverity, alarmRefOrValue.perceivedSeverity)
+ && Objects.equals(this.plannedOutageIndicator, alarmRefOrValue.plannedOutageIndicator)
+ && Objects.equals(this.probableCause, alarmRefOrValue.probableCause)
+ && Objects.equals(this.proposedRepairedActions, alarmRefOrValue.proposedRepairedActions)
+ && Objects.equals(this.reportingSystemId, alarmRefOrValue.reportingSystemId)
+ && Objects.equals(this.serviceAffecting, alarmRefOrValue.serviceAffecting)
+ && Objects.equals(this.sourceSystemId, alarmRefOrValue.sourceSystemId)
+ && Objects.equals(this.specificProblem, alarmRefOrValue.specificProblem)
+ && Objects.equals(this.state, alarmRefOrValue.state)
+ && Objects.equals(this.affectedService, alarmRefOrValue.affectedService)
+ && Objects.equals(this.alarmedObject, alarmRefOrValue.alarmedObject)
+ && Objects.equals(this.comment, alarmRefOrValue.comment)
+ && Objects.equals(this.correlatedAlarm, alarmRefOrValue.correlatedAlarm)
+ && Objects.equals(this.crossedThresholdInformation, alarmRefOrValue.crossedThresholdInformation)
+ && Objects.equals(this.parentAlarm, alarmRefOrValue.parentAlarm)
+ && Objects.equals(this.place, alarmRefOrValue.place)
+ && Objects.equals(this.baseType, alarmRefOrValue.baseType)
+ && Objects.equals(this.schemaLocation, alarmRefOrValue.schemaLocation)
+ && Objects.equals(this.type, alarmRefOrValue.type)
+ && Objects.equals(this._atReferredType, alarmRefOrValue._atReferredType);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(id, href, ackState, ackSystemId, ackUserId, alarmChangedTime, alarmClearedTime,
+ alarmDetails, alarmEscalation, alarmRaisedTime, alarmReportingTime, alarmType, alarmedObjectType,
+ clearSystemId, clearUserId, externalAlarmId, isRootCause, name, perceivedSeverity,
+ plannedOutageIndicator, probableCause, proposedRepairedActions, reportingSystemId, serviceAffecting,
+ sourceSystemId, specificProblem, state, affectedService, alarmedObject, comment, correlatedAlarm,
+ crossedThresholdInformation, parentAlarm, place, baseType, schemaLocation, type, _atReferredType);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class AlarmRefOrValue {\n");
+
+ sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append(" href: ").append(toIndentedString(href)).append("\n");
+ sb.append(" ackState: ").append(toIndentedString(ackState)).append("\n");
+ sb.append(" ackSystemId: ").append(toIndentedString(ackSystemId)).append("\n");
+ sb.append(" ackUserId: ").append(toIndentedString(ackUserId)).append("\n");
+ sb.append(" alarmChangedTime: ").append(toIndentedString(alarmChangedTime)).append("\n");
+ sb.append(" alarmClearedTime: ").append(toIndentedString(alarmClearedTime)).append("\n");
+ sb.append(" alarmDetails: ").append(toIndentedString(alarmDetails)).append("\n");
+ sb.append(" alarmEscalation: ").append(toIndentedString(alarmEscalation)).append("\n");
+ sb.append(" alarmRaisedTime: ").append(toIndentedString(alarmRaisedTime)).append("\n");
+ sb.append(" alarmReportingTime: ").append(toIndentedString(alarmReportingTime)).append("\n");
+ sb.append(" alarmType: ").append(toIndentedString(alarmType)).append("\n");
+ sb.append(" alarmedObjectType: ").append(toIndentedString(alarmedObjectType)).append("\n");
+ sb.append(" clearSystemId: ").append(toIndentedString(clearSystemId)).append("\n");
+ sb.append(" clearUserId: ").append(toIndentedString(clearUserId)).append("\n");
+ sb.append(" externalAlarmId: ").append(toIndentedString(externalAlarmId)).append("\n");
+ sb.append(" isRootCause: ").append(toIndentedString(isRootCause)).append("\n");
+ sb.append(" name: ").append(toIndentedString(name)).append("\n");
+ sb.append(" perceivedSeverity: ").append(toIndentedString(perceivedSeverity)).append("\n");
+ sb.append(" plannedOutageIndicator: ").append(toIndentedString(plannedOutageIndicator)).append("\n");
+ sb.append(" probableCause: ").append(toIndentedString(probableCause)).append("\n");
+ sb.append(" proposedRepairedActions: ").append(toIndentedString(proposedRepairedActions)).append("\n");
+ sb.append(" reportingSystemId: ").append(toIndentedString(reportingSystemId)).append("\n");
+ sb.append(" serviceAffecting: ").append(toIndentedString(serviceAffecting)).append("\n");
+ sb.append(" sourceSystemId: ").append(toIndentedString(sourceSystemId)).append("\n");
+ sb.append(" specificProblem: ").append(toIndentedString(specificProblem)).append("\n");
+ sb.append(" state: ").append(toIndentedString(state)).append("\n");
+ sb.append(" affectedService: ").append(toIndentedString(affectedService)).append("\n");
+ sb.append(" alarmedObject: ").append(toIndentedString(alarmedObject)).append("\n");
+ sb.append(" comment: ").append(toIndentedString(comment)).append("\n");
+ sb.append(" correlatedAlarm: ").append(toIndentedString(correlatedAlarm)).append("\n");
+ sb.append(" crossedThresholdInformation: ").append(toIndentedString(crossedThresholdInformation))
+ .append("\n");
+ sb.append(" parentAlarm: ").append(toIndentedString(parentAlarm)).append("\n");
+ sb.append(" place: ").append(toIndentedString(place)).append("\n");
+ sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n");
+ sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
+ sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append(" _atReferredType: ").append(toIndentedString(_atReferredType)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/org/etsi/osl/tmf/am642/model/AlarmStateChangeEvent.java b/src/main/java/org/etsi/osl/tmf/am642/model/AlarmStateChangeEvent.java
new file mode 100644
index 0000000000000000000000000000000000000000..98667f584fa0c304bd05544936601ac6aca4adba
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/am642/model/AlarmStateChangeEvent.java
@@ -0,0 +1,366 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 - 2021 openslice.io
+ * %%
+ * 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.etsi.osl.tmf.am642.model;
+
+import java.time.OffsetDateTime;
+import java.util.Objects;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+import org.springframework.validation.annotation.Validated;
+
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.Valid;
+
+/**
+ * The notification data structure
+ */
+@Schema(description = "The notification data structure")
+@Validated
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2021-02-15T11:15:47.327930400+02:00[Europe/Athens]")
+public class AlarmStateChangeEvent {
+ @JsonProperty("id")
+ private String id = null;
+
+ @JsonProperty("href")
+ private String href = null;
+
+ @JsonProperty("eventId")
+ private String eventId = null;
+
+ @JsonProperty("eventTime")
+ private OffsetDateTime eventTime = null;
+
+ @JsonProperty("eventType")
+ private String eventType = null;
+
+ @JsonProperty("correlationId")
+ private String correlationId = null;
+
+ @JsonProperty("domain")
+ private String domain = null;
+
+ @JsonProperty("title")
+ private String title = null;
+
+ @JsonProperty("description")
+ private String description = null;
+
+ @JsonProperty("priority")
+ private String priority = null;
+
+ @JsonProperty("timeOcurred")
+ private OffsetDateTime timeOcurred = null;
+
+ @JsonProperty("event")
+ private AlarmStateChangeEventPayload event = null;
+
+ public AlarmStateChangeEvent id(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Identifier of the Process flow
+ * @return id
+ **/
+ @Schema(description = "Identifier of the Process flow")
+
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ public AlarmStateChangeEvent href(String href) {
+ this.href = href;
+ return this;
+ }
+
+ /**
+ * Reference of the ProcessFlow
+ * @return href
+ **/
+ @Schema(description = "Reference of the ProcessFlow")
+
+ public String getHref() {
+ return href;
+ }
+
+ public void setHref(String href) {
+ this.href = href;
+ }
+
+ public AlarmStateChangeEvent eventId(String eventId) {
+ this.eventId = eventId;
+ return this;
+ }
+
+ /**
+ * The identifier of the notification.
+ * @return eventId
+ **/
+ @Schema(description = "The identifier of the notification.")
+
+ public String getEventId() {
+ return eventId;
+ }
+
+ public void setEventId(String eventId) {
+ this.eventId = eventId;
+ }
+
+ public AlarmStateChangeEvent eventTime(OffsetDateTime eventTime) {
+ this.eventTime = eventTime;
+ return this;
+ }
+
+ /**
+ * Time of the event occurrence.
+ * @return eventTime
+ **/
+ @Schema(description = "Time of the event occurrence.")
+
+ @Valid
+ public OffsetDateTime getEventTime() {
+ return eventTime;
+ }
+
+ public void setEventTime(OffsetDateTime eventTime) {
+ this.eventTime = eventTime;
+ }
+
+ public AlarmStateChangeEvent eventType(String eventType) {
+ this.eventType = eventType;
+ return this;
+ }
+
+ /**
+ * The type of the notification.
+ * @return eventType
+ **/
+ @Schema(description = "The type of the notification.")
+
+ public String getEventType() {
+ return eventType;
+ }
+
+ public void setEventType(String eventType) {
+ this.eventType = eventType;
+ }
+
+ public AlarmStateChangeEvent correlationId(String correlationId) {
+ this.correlationId = correlationId;
+ return this;
+ }
+
+ /**
+ * The correlation id for this event.
+ * @return correlationId
+ **/
+ @Schema(description = "The correlation id for this event.")
+
+ public String getCorrelationId() {
+ return correlationId;
+ }
+
+ public void setCorrelationId(String correlationId) {
+ this.correlationId = correlationId;
+ }
+
+ public AlarmStateChangeEvent domain(String domain) {
+ this.domain = domain;
+ return this;
+ }
+
+ /**
+ * The domain of the event.
+ * @return domain
+ **/
+ @Schema(description = "The domain of the event.")
+
+ public String getDomain() {
+ return domain;
+ }
+
+ public void setDomain(String domain) {
+ this.domain = domain;
+ }
+
+ public AlarmStateChangeEvent title(String title) {
+ this.title = title;
+ return this;
+ }
+
+ /**
+ * The title of the event.
+ * @return title
+ **/
+ @Schema(description = "The title of the event.")
+
+ public String getTitle() {
+ return title;
+ }
+
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+ public AlarmStateChangeEvent description(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * An explnatory of the event.
+ * @return description
+ **/
+ @Schema(description = "An explnatory of the event.")
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public AlarmStateChangeEvent priority(String priority) {
+ this.priority = priority;
+ return this;
+ }
+
+ /**
+ * A priority.
+ * @return priority
+ **/
+ @Schema(description = "A priority.")
+
+ public String getPriority() {
+ return priority;
+ }
+
+ public void setPriority(String priority) {
+ this.priority = priority;
+ }
+
+ public AlarmStateChangeEvent timeOcurred(OffsetDateTime timeOcurred) {
+ this.timeOcurred = timeOcurred;
+ return this;
+ }
+
+ /**
+ * The time the event occured.
+ * @return timeOcurred
+ **/
+ @Schema(description = "The time the event occured.")
+
+ @Valid
+ public OffsetDateTime getTimeOcurred() {
+ return timeOcurred;
+ }
+
+ public void setTimeOcurred(OffsetDateTime timeOcurred) {
+ this.timeOcurred = timeOcurred;
+ }
+
+ public AlarmStateChangeEvent event(AlarmStateChangeEventPayload event) {
+ this.event = event;
+ return this;
+ }
+
+ /**
+ * Get event
+ * @return event
+ **/
+ @Schema(description = "")
+
+ @Valid
+ public AlarmStateChangeEventPayload getEvent() {
+ return event;
+ }
+
+ public void setEvent(AlarmStateChangeEventPayload event) {
+ this.event = event;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ AlarmStateChangeEvent alarmStateChangeEvent = (AlarmStateChangeEvent) o;
+ return Objects.equals(this.id, alarmStateChangeEvent.id) &&
+ Objects.equals(this.href, alarmStateChangeEvent.href) &&
+ Objects.equals(this.eventId, alarmStateChangeEvent.eventId) &&
+ Objects.equals(this.eventTime, alarmStateChangeEvent.eventTime) &&
+ Objects.equals(this.eventType, alarmStateChangeEvent.eventType) &&
+ Objects.equals(this.correlationId, alarmStateChangeEvent.correlationId) &&
+ Objects.equals(this.domain, alarmStateChangeEvent.domain) &&
+ Objects.equals(this.title, alarmStateChangeEvent.title) &&
+ Objects.equals(this.description, alarmStateChangeEvent.description) &&
+ Objects.equals(this.priority, alarmStateChangeEvent.priority) &&
+ Objects.equals(this.timeOcurred, alarmStateChangeEvent.timeOcurred) &&
+ Objects.equals(this.event, alarmStateChangeEvent.event);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(id, href, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred, event);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class AlarmStateChangeEvent {\n");
+
+ sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append(" href: ").append(toIndentedString(href)).append("\n");
+ sb.append(" eventId: ").append(toIndentedString(eventId)).append("\n");
+ sb.append(" eventTime: ").append(toIndentedString(eventTime)).append("\n");
+ sb.append(" eventType: ").append(toIndentedString(eventType)).append("\n");
+ sb.append(" correlationId: ").append(toIndentedString(correlationId)).append("\n");
+ sb.append(" domain: ").append(toIndentedString(domain)).append("\n");
+ sb.append(" title: ").append(toIndentedString(title)).append("\n");
+ sb.append(" description: ").append(toIndentedString(description)).append("\n");
+ sb.append(" priority: ").append(toIndentedString(priority)).append("\n");
+ sb.append(" timeOcurred: ").append(toIndentedString(timeOcurred)).append("\n");
+ sb.append(" event: ").append(toIndentedString(event)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/org/etsi/osl/tmf/am642/model/AlarmStateChangeEventPayload.java b/src/main/java/org/etsi/osl/tmf/am642/model/AlarmStateChangeEventPayload.java
new file mode 100644
index 0000000000000000000000000000000000000000..8aa83a12c873d0347c8e2e7e756f3d2847911e61
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/am642/model/AlarmStateChangeEventPayload.java
@@ -0,0 +1,99 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 - 2021 openslice.io
+ * %%
+ * 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.etsi.osl.tmf.am642.model;
+
+import java.util.Objects;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+import org.springframework.validation.annotation.Validated;
+
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.Valid;
+
+/**
+ * The event data structure
+ */
+@Schema(description = "The event data structure")
+@Validated
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2021-02-15T11:15:47.327930400+02:00[Europe/Athens]")
+public class AlarmStateChangeEventPayload {
+ @JsonProperty("alarm")
+ private Alarm alarm = null;
+
+ public AlarmStateChangeEventPayload alarm(Alarm alarm) {
+ this.alarm = alarm;
+ return this;
+ }
+
+ /**
+ * Get alarm
+ * @return alarm
+ **/
+ @Schema(description = "")
+
+ @Valid
+ public Alarm getAlarm() {
+ return alarm;
+ }
+
+ public void setAlarm(Alarm alarm) {
+ this.alarm = alarm;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ AlarmStateChangeEventPayload alarmStateChangeEventPayload = (AlarmStateChangeEventPayload) o;
+ return Objects.equals(this.alarm, alarmStateChangeEventPayload.alarm);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(alarm);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class AlarmStateChangeEventPayload {\n");
+
+ sb.append(" alarm: ").append(toIndentedString(alarm)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/org/etsi/osl/tmf/am642/model/AlarmStateType.java b/src/main/java/org/etsi/osl/tmf/am642/model/AlarmStateType.java
new file mode 100644
index 0000000000000000000000000000000000000000..3fee537c4cc4c07434357149f775fbfdbf6ac696
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/am642/model/AlarmStateType.java
@@ -0,0 +1,28 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 - 2021 openslice.io
+ * %%
+ * 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.etsi.osl.tmf.am642.model;
+
+public enum AlarmStateType {
+
+ raised,
+ updated,
+ cleared;
+
+}
diff --git a/src/main/java/org/etsi/osl/tmf/am642/model/AlarmType.java b/src/main/java/org/etsi/osl/tmf/am642/model/AlarmType.java
new file mode 100644
index 0000000000000000000000000000000000000000..a8625e028be12e623ae4862d2d615d0b88701ba3
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/am642/model/AlarmType.java
@@ -0,0 +1,36 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 - 2021 openslice.io
+ * %%
+ * 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.etsi.osl.tmf.am642.model;
+
+public enum AlarmType {
+
+ communicationsAlarm,
+ processingErrorAlarm,
+ environmentalAlarm,
+ qualityOfServiceAlarm,
+ equipmentAlarm,
+ integrityViolation,
+ operationalViolation,
+ physicalViolation,
+ securityService,
+ mechanismViolation,
+ timeDomainViolation;
+
+}
diff --git a/src/main/java/org/etsi/osl/tmf/am642/model/AlarmUpdate.java b/src/main/java/org/etsi/osl/tmf/am642/model/AlarmUpdate.java
new file mode 100644
index 0000000000000000000000000000000000000000..af3fde983bf283526b91ce0dc5a4af88a7f18e3d
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/am642/model/AlarmUpdate.java
@@ -0,0 +1,997 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.tmf.api
+ * %%
+ * Copyright (C) 2019 - 2021 openslice.io
+ * %%
+ * 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.etsi.osl.tmf.am642.model;
+
+import java.time.OffsetDateTime;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Objects;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+import org.springframework.validation.annotation.Validated;
+
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.Valid;
+
+/**
+ * This resource represents an alarm supporting the information model defined in
+ * ITU-T X.733. Skipped properties: id,href,alarmRaisedTime,sourceSystemId
+ */
+@Schema(description = "This resource represents an alarm supporting the information model defined in ITU-T X.733. Skipped properties: id,href,alarmRaisedTime,sourceSystemId")
+@Validated
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2021-02-15T11:15:47.327930400+02:00[Europe/Athens]")
+public class AlarmUpdate {
+ @JsonProperty("ackState")
+ protected String ackState = null;
+
+ @JsonProperty("ackSystemId")
+ protected String ackSystemId = null;
+
+ @JsonProperty("ackUserId")
+ protected String ackUserId = null;
+
+ protected OffsetDateTime alarmChangedTime = null;
+
+ protected OffsetDateTime alarmClearedTime = null;
+
+ @JsonProperty("alarmDetails")
+ protected String alarmDetails = null;
+
+ @JsonProperty("alarmEscalation")
+ protected Boolean alarmEscalation = null;
+
+ protected OffsetDateTime alarmReportingTime = null;
+
+ @JsonProperty("alarmType")
+ protected String alarmType = null;
+
+ @JsonProperty("alarmedObjectType")
+ protected String alarmedObjectType = null;
+
+ @JsonProperty("clearSystemId")
+ protected String clearSystemId = null;
+
+ @JsonProperty("clearUserId")
+ protected String clearUserId = null;
+
+ @JsonProperty("externalAlarmId")
+ protected String externalAlarmId = null;
+
+ @JsonProperty("isRootCause")
+ protected Boolean isRootCause = null;
+
+ @JsonProperty("perceivedSeverity")
+ protected String perceivedSeverity = null;
+
+ @JsonProperty("plannedOutageIndicator")
+ protected String plannedOutageIndicator = null;
+
+ @JsonProperty("probableCause")
+ protected String probableCause = null;
+
+ @JsonProperty("proposedRepairedActions")
+ protected String proposedRepairedActions = null;
+
+ @JsonProperty("reportingSystemId")
+ protected String reportingSystemId = null;
+
+ @JsonProperty("serviceAffecting")
+ protected Boolean serviceAffecting = null;
+
+ @JsonProperty("specificProblem")
+ protected String specificProblem = null;
+
+ @JsonProperty("state")
+ protected String state = null;
+
+ @JsonProperty("affectedService")
+ @Valid
+ protected List affectedService = null;
+
+ @JsonProperty("alarmedObject")
+ protected AlarmedObject alarmedObject = null;
+
+ @JsonProperty("comment")
+ @Valid
+ protected List comment = null;
+
+ @JsonProperty("correlatedAlarm")
+ @Valid
+ protected List correlatedAlarm = null;
+
+ @JsonProperty("crossedThresholdInformation")
+ protected CrossedThresholdInformation crossedThresholdInformation = null;
+
+ @JsonProperty("parentAlarm")
+ @Valid
+ protected List parentAlarm = null;
+
+ @JsonProperty("place")
+ @Valid
+ protected List