Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Added support for INVENTORY-V1/bundles
Signed-off-by: Alberto Codutti <alberto.codutti@eurotech.com>
- Loading branch information
Showing
32 changed files
with
804 additions
and
97 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
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
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
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
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
117 changes: 117 additions & 0 deletions
117
...kapua/service/device/call/kura/model/inventory/bundles/inventory/KuraInventoryBundle.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,117 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2021 Eurotech and/or its affiliates and others | ||
* | ||
* This program and the accompanying materials are made | ||
* available under the terms of the Eclipse Public License 2.0 | ||
* which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* Eurotech - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.kapua.service.device.call.kura.model.inventory.bundles.inventory; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.annotation.JsonRootName; | ||
|
||
/** | ||
* {@link KuraInventoryBundle} definition. | ||
* | ||
* @since 1.5.0 | ||
*/ | ||
@JsonRootName("systemPackage") | ||
public class KuraInventoryBundle { | ||
|
||
@JsonProperty("id") | ||
public String id; | ||
|
||
@JsonProperty("name") | ||
public String name; | ||
|
||
@JsonProperty("version") | ||
public String version; | ||
|
||
@JsonProperty("state") | ||
public String state; | ||
|
||
/** | ||
* Gets the identifier. | ||
* | ||
* @return The identifier. | ||
* @since 1.5.0 | ||
*/ | ||
public String getId() { | ||
return id; | ||
} | ||
|
||
/** | ||
* Sets the identifier. | ||
* | ||
* @param id The identifier. | ||
* @since 1.5.0 | ||
*/ | ||
public void setId(String id) { | ||
this.id = id; | ||
} | ||
|
||
/** | ||
* Gets the name. | ||
* | ||
* @return The name. | ||
* @since 1.5.0 | ||
*/ | ||
public String getName() { | ||
return name; | ||
} | ||
|
||
/** | ||
* Sets the name. | ||
* | ||
* @param name The name. | ||
* @since 1.5.0 | ||
*/ | ||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
/** | ||
* Gets the version. | ||
* | ||
* @return The version. | ||
* @since 1.5.0 | ||
*/ | ||
public String getVersion() { | ||
return version; | ||
} | ||
|
||
/** | ||
* Gets the version. | ||
* | ||
* @param version The version. | ||
* @since 1.5.0 | ||
*/ | ||
public void setVersion(String version) { | ||
this.version = version; | ||
} | ||
|
||
/** | ||
* Gets the state. | ||
* | ||
* @return The state. | ||
* @since 1.5.0 | ||
*/ | ||
public String getState() { | ||
return state; | ||
} | ||
|
||
/** | ||
* Sets the state. | ||
* | ||
* @param state The state. | ||
* @since 1.5.0 | ||
*/ | ||
public void setState(String state) { | ||
this.state = state; | ||
} | ||
} |
Oops, something went wrong.