This repository has been archived by the owner on Jan 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move from other repo without history
- Loading branch information
Harald Meyer
committed
May 8, 2022
1 parent
c809559
commit d1d4840
Showing
153 changed files
with
25,436 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="src" output="target/classes" path="src/main/java"> | ||
<attributes> | ||
<attribute name="optional" value="true"/> | ||
<attribute name="maven.pomderived" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="src" path="src/main/configuration"/> | ||
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"> | ||
<attributes> | ||
<attribute name="maven.pomderived" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"> | ||
<attributes> | ||
<attribute name="maven.pomderived" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> | ||
<classpathentry kind="output" path="target/classes"/> | ||
</classpath> |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
target/ | ||
.settings/ | ||
.apt_generated/ | ||
.apt_generated_tests/ | ||
.vscode/ | ||
.sts4-cache/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>hubconnector</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.wst.common.project.facet.core.builder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.jdt.core.javabuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.springframework.ide.eclipse.core.springbuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.springframework.ide.eclipse.boot.validation.springbootbuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.m2e.core.maven2Builder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
<nature>org.eclipse.m2e.core.maven2Nature</nature> | ||
<nature>org.eclipse.wst.common.project.facet.core.nature</nature> | ||
</natures> | ||
</projectDescription> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,221 @@ | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>com.adamos</groupId> | ||
<artifactId>hubconnector</artifactId> | ||
<version>1.0.0-SNAPSHOT</version> | ||
<name>hubconnector</name> | ||
|
||
<parent> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter-parent</artifactId> | ||
<version>2.5.5</version> | ||
<relativePath /> <!-- lookup parent from repository --> | ||
</parent> | ||
|
||
<properties> | ||
<maven.compiler.source>11</maven.compiler.source> | ||
<maven.compiler.target>11</maven.compiler.target> | ||
<spring-boot-dependencies.version>2.5.5</spring-boot-dependencies.version> | ||
<main.class>com.adamos.hubconnector.App</main.class> | ||
<cumulocity.version>1011.109.0</cumulocity.version> | ||
</properties> | ||
|
||
<dependencies> | ||
|
||
<dependency> | ||
<groupId>org.projectlombok</groupId> | ||
<artifactId>lombok</artifactId> | ||
<scope>provided</scope> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.eclipse.jetty</groupId> | ||
<artifactId>jetty-util</artifactId> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.eclipse.jetty</groupId> | ||
<artifactId>jetty-util-ajax</artifactId> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>com.nsn.cumulocity.clients-java</groupId> | ||
<artifactId>microservice-autoconfigure</artifactId> | ||
<version>${cumulocity.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>com.nsn.cumulocity.model</groupId> | ||
<artifactId>device-capability-model</artifactId> | ||
<version>${cumulocity.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>com.nsn.cumulocity.clients-java</groupId> | ||
<artifactId>java-client</artifactId> | ||
<version>${cumulocity.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.apache.httpcomponents</groupId> | ||
<artifactId>fluent-hc</artifactId> | ||
<version>4.5.10</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.apache.commons</groupId> | ||
<artifactId>commons-lang3</artifactId> | ||
<version>3.1</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-configuration-processor</artifactId> | ||
<optional>true</optional> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter-amqp</artifactId> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.springframework.data</groupId> | ||
<artifactId>spring-data-commons</artifactId> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>com.fasterxml.jackson.core</groupId> | ||
<artifactId>jackson-core</artifactId> | ||
<scope>compile</scope> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>com.fasterxml.jackson.core</groupId> | ||
<artifactId>jackson-databind</artifactId> | ||
<scope>compile</scope> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>com.fasterxml.jackson.datatype</groupId> | ||
<artifactId>jackson-datatype-joda</artifactId> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>com.fasterxml.jackson.datatype</groupId> | ||
<artifactId>jackson-datatype-jdk8</artifactId> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>com.jayway.jsonpath</groupId> | ||
<artifactId>json-path</artifactId> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.apache.maven</groupId> | ||
<artifactId>maven-artifact</artifactId> | ||
<version>3.0.3</version> | ||
</dependency> | ||
|
||
</dependencies> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-maven-plugin</artifactId> | ||
<version>${spring-boot-dependencies.version}</version> | ||
<executions> | ||
<execution> | ||
<id>build-info</id> | ||
<goals> | ||
<goal>build-info</goal> | ||
</goals> | ||
</execution> | ||
<execution> | ||
<goals> | ||
<goal>repackage</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
<configuration> | ||
<mainClass>${main.class}</mainClass> | ||
</configuration> | ||
</plugin> | ||
|
||
<plugin> | ||
<groupId>com.nsn.cumulocity.clients-java</groupId> | ||
<artifactId>microservice-package-maven-plugin</artifactId> | ||
<version>${cumulocity.version}</version> | ||
<executions> | ||
<execution> | ||
<id>package</id> | ||
<phase>package</phase> | ||
<goals> | ||
<goal>package</goal> | ||
</goals> | ||
<configuration> | ||
<name>hubconnector</name> | ||
<encoding>UTF-8</encoding> | ||
<rpmSkip>true</rpmSkip> | ||
<containerSkip>false</containerSkip> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
|
||
</plugins> | ||
</build> | ||
|
||
<!-- <repositories> | ||
<repository> | ||
<id>adamos</id> | ||
<layout>default</layout> | ||
<url>https://repo.adamos-next.com/repository/cumulocity-maven-repo</url> | ||
</repository> | ||
</repositories> | ||
<pluginRepositories> | ||
<pluginRepository> | ||
<id>public</id> | ||
<url>https://repo.adamos-next.com/repository/cumulocity-maven-repo</url> | ||
</pluginRepository> | ||
</pluginRepositories> --> | ||
|
||
<repositories> | ||
<repository> | ||
<id>cumulocity</id> | ||
<layout>default</layout> | ||
<url>http://download.cumulocity.com/maven/repository</url> | ||
</repository> | ||
<repository> | ||
<id>central</id> | ||
<name>Central Repository</name> | ||
<url>https://repo.maven.apache.org/maven2</url> | ||
<layout>default</layout> | ||
<snapshots> | ||
<enabled>false</enabled> | ||
</snapshots> | ||
</repository> | ||
</repositories> | ||
|
||
<pluginRepositories> | ||
<pluginRepository> | ||
<id>public</id> | ||
<url>http://download.cumulocity.com/maven/repository</url> | ||
</pluginRepository> | ||
<pluginRepository> | ||
<id>central</id> | ||
<name>Central Repository</name> | ||
<url>https://repo.maven.apache.org/maven2</url> | ||
<layout>default</layout> | ||
<snapshots> | ||
<enabled>false</enabled> | ||
</snapshots> | ||
<releases> | ||
<updatePolicy>never</updatePolicy> | ||
</releases> | ||
</pluginRepository> | ||
</pluginRepositories> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"apiVersion": "1", | ||
"name": "hubconnector", | ||
"version": "@project.version@", | ||
"provider": { | ||
"name": "ADAMOS GmbH" | ||
}, | ||
"isolation": "PER_TENANT", | ||
"scale": "NONE", | ||
"resources": { | ||
"cpu": "0.5", | ||
"memory": "1024M" | ||
}, | ||
"requiredRoles": [ | ||
"ROLE_IDENTITY_ADMIN", | ||
"ROLE_IDENTITY_READ", | ||
"ROLE_EVENT_READ", | ||
"ROLE_EVENT_ADMIN", | ||
"ROLE_MEASUREMENT_ADMIN", | ||
"ROLE_ALARM_ADMIN", | ||
"ROLE_INVENTORY_ADMIN", | ||
"ROLE_INVENTORY_READ", | ||
"ROLE_INVENTORY_CREATE", | ||
"ROLE_APPLICATION_MANAGEMENT_READ", | ||
"ROLE_OPTION_MANAGEMENT_READ", | ||
"ROLE_OPTION_MANAGEMENT_ADMIN" | ||
], | ||
"roles": [ | ||
"ROLE_ADAMOS_HUB_READ", | ||
"ROLE_ADAMOS_HUB_CREATE", | ||
"ROLE_ADAMOS_HUB_UPDATE", | ||
"ROLE_ADAMOS_HUB_ADMIN" | ||
] | ||
} |
30 changes: 30 additions & 0 deletions
30
ax-mm-hubconnector/src/main/java/com/adamos/hubconnector/App.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package com.adamos.hubconnector; | ||
|
||
import org.springframework.boot.SpringApplication; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.scheduling.annotation.EnableAsync; | ||
import org.springframework.scheduling.annotation.EnableScheduling; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
import com.cumulocity.microservice.autoconfigure.MicroserviceApplication; | ||
import com.cumulocity.microservice.context.annotation.EnableContextSupport; | ||
import com.cumulocity.microservice.security.annotation.EnableMicroserviceSecurity; | ||
|
||
@MicroserviceApplication | ||
@RestController | ||
@EnableScheduling | ||
@EnableMicroserviceSecurity | ||
@EnableAsync | ||
@EnableContextSupport | ||
public class App { | ||
|
||
public static void main(String[] args) { | ||
SpringApplication.run(App.class, args); | ||
} | ||
|
||
@Bean | ||
public CustomRestTemplateCustomizer customRestTemplateCustomizer() { | ||
return new CustomRestTemplateCustomizer(); | ||
} | ||
|
||
} |
Oops, something went wrong.