-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature add optional name to thing created (#888)
* First implementation pushed because of debugging purpose Signed-off-by: Ammar Bikic <[email protected]> * Add name field and tests regarding name field functionality in THING_CREATED Signed-off-by: Ammar Bikic <[email protected]> * SonarQube realted changes in name field functionality in THING_CREATED Signed-off-by: Ammar Bikic <[email protected]> * Add name field and tests regarding name field functionality in UPDATE_ATTRIBUTES Signed-off-by: Ammar Bikic <[email protected]> * Adapt documentation due to name field in THING_CREATED and UPDATE_ATTRIBUTES Signed-off-by: Ammar Bikic <[email protected]> * Add integration tests regarding name field functionality in THING_CREATED Signed-off-by: Ammar Bikic <[email protected]> * Reformat after finding format bug regarding THING_CREATED Signed-off-by: Ammar Bikic <[email protected]> * Reformat after finding the real format bug regarding THING_CREATED Signed-off-by: Ammar Bikic <[email protected]> * Reformat regarding THING_CREATED Signed-off-by: Ammar Bikic <[email protected]> * Use constant in THING_CREATED Signed-off-by: Ammar Bikic <[email protected]> * Format in THING_CREATED Signed-off-by: Ammar Bikic <[email protected]> * Resolving peer review comments regarding THING_CREATED Signed-off-by: Ammar Bikic <[email protected]> * Resolving peer review comments (organize imports) regarding THING_CREATED Signed-off-by: Ammar Bikic <[email protected]> * Refactoring regarding THING_CREATED Signed-off-by: Ammar Bikic <[email protected]> * Refactoring due to peer review Signed-off-by: Ammar Bikic <[email protected]> * Refactoring due to peer review Signed-off-by: Ammar Bikic <[email protected]> * Excluding UPDATE_ATTRIBUTES changes and provide functionality of updating the name property in THING_CREATED message Signed-off-by: Ammar Bikic <[email protected]> * Refactoring due to peer review Signed-off-by: Ammar Bikic <[email protected]> * Refactoring due to peer review Signed-off-by: Ammar Bikic <[email protected]> * Fix SonarQube finding Signed-off-by: Ammar Bikic <[email protected]> * Merge master into current branch Signed-off-by: Ammar Bikic <[email protected]> * Fix peer review findings Signed-off-by: Ammar Bikic <[email protected]>
- Loading branch information
1 parent
b50a82f
commit af0f7ce
Showing
10 changed files
with
525 additions
and
388 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
2 changes: 1 addition & 1 deletion
2
.../hawkbit-dmf-api/src/main/java/org/eclipse/hawkbit/dmf/json/model/DmfAttributeUpdate.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
34 changes: 34 additions & 0 deletions
34
...-dmf/hawkbit-dmf-api/src/main/java/org/eclipse/hawkbit/dmf/json/model/DmfCreateThing.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,34 @@ | ||
/** | ||
* Copyright (c) 2019 Bosch Software Innovations GmbH and others. | ||
* | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
*/ | ||
package org.eclipse.hawkbit.dmf.json.model; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonInclude.Include; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* JSON representation of the Attribute THING_CREATED message. | ||
*/ | ||
@JsonInclude(Include.NON_NULL) | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class DmfCreateThing { | ||
|
||
@JsonProperty | ||
private String name; | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(final String name) { | ||
this.name = name; | ||
} | ||
|
||
} |
Oops, something went wrong.