-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #414 from ScorpioBroker/replace-operation
Replace operation
- Loading branch information
Showing
12 changed files
with
947 additions
and
24 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
25 changes: 25 additions & 0 deletions
25
...src/main/java/eu/neclab/ngsildbroker/commons/datatypes/requests/ReplaceAttribRequest.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,25 @@ | ||
package eu.neclab.ngsildbroker.commons.datatypes.requests; | ||
|
||
import eu.neclab.ngsildbroker.commons.constants.AppConstants; | ||
|
||
|
||
import java.util.Map; | ||
|
||
public class ReplaceAttribRequest extends EntityRequest { | ||
|
||
/** | ||
* constructor for serialization | ||
*/ | ||
|
||
|
||
public ReplaceAttribRequest() { | ||
|
||
} | ||
|
||
public ReplaceAttribRequest(String tenant, Map<String, Object> resolved ,String entityId,String attrId) { | ||
super(tenant,entityId, resolved, | ||
AppConstants.REPLACE_ATTRIBUTE_REQUEST); | ||
this.attribName=attrId; | ||
} | ||
|
||
} |
24 changes: 24 additions & 0 deletions
24
...src/main/java/eu/neclab/ngsildbroker/commons/datatypes/requests/ReplaceEntityRequest.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,24 @@ | ||
package eu.neclab.ngsildbroker.commons.datatypes.requests; | ||
|
||
import eu.neclab.ngsildbroker.commons.constants.AppConstants; | ||
import eu.neclab.ngsildbroker.commons.constants.NGSIConstants; | ||
|
||
|
||
import java.util.Map; | ||
|
||
public class ReplaceEntityRequest extends EntityRequest { | ||
|
||
/** | ||
* constructor for serialization | ||
*/ | ||
public ReplaceEntityRequest() { | ||
|
||
} | ||
|
||
public ReplaceEntityRequest(String tenant, Map<String, Object> resolved ) { | ||
super(tenant, (String) resolved.get(NGSIConstants.JSON_LD_ID), resolved, | ||
AppConstants.REPLACE_ENTITY_REQUEST); | ||
|
||
} | ||
|
||
} |
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
Oops, something went wrong.