Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
Feature/remove unused artifacts (#32)
Browse files Browse the repository at this point in the history
* Remove deviceCategory from DeviceMeasurement model

The 'deviceCategory' field from the 'DeviceMeasurement' model was removed along with its associated validation block. This change simplifies the model by eliminating an unnecessary property. In addition, the 'Version' class was moved from 'fiware.model.cygnus' package to 'fiware.model' package for better package organisation.

* Update version in pom.xml

The version in the pom.xml file of the 'fiware-integration-layer' project has been updated from '7.0.0' to '7.1.0'. This version update reflects improvements in the codebase including removal of unnecessary properties and better package organization.
  • Loading branch information
saschadoemer authored Feb 20, 2024
1 parent 4668a28 commit a3f419a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>de.app.5gla</groupId>
<artifactId>fiware-integration-layer</artifactId>
<version>7.0.0</version>
<version>7.1.0</version>

<name>5gLa FIWARE integration layer</name>
<url>https://github.com/vitrum-connect/5gla-fiware-integration-layer</url>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/de/app/fivegla/fiware/StatusService.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package de.app.fivegla.fiware;

import de.app.fivegla.fiware.api.FiwareIntegrationLayerException;
import de.app.fivegla.fiware.model.cygnus.Version;
import de.app.fivegla.fiware.model.Version;
import lombok.extern.slf4j.Slf4j;

import java.net.URI;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@ public class DeviceMeasurement implements Validatable {
*/
private String manufacturerSpecificId;

/**
* The category of the device.
*/
private DeviceCategory deviceCategory;

/**
* The location of the device.
*/
Expand Down Expand Up @@ -77,8 +72,5 @@ public void validate() {
if (StringUtils.isBlank(manufacturerSpecificId)) {
throw new IllegalArgumentException("The manufacturer specific id of the device must not be null.");
}
if (deviceCategory == null) {
throw new IllegalArgumentException("The device category of the device must not be null.");
}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package de.app.fivegla.fiware.model.cygnus;
package de.app.fivegla.fiware.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
Expand Down

0 comments on commit a3f419a

Please sign in to comment.