Interface ThingCommand<T extends ThingCommand<T>>
-
- Type Parameters:
T
- the type of the implementing class.
- All Superinterfaces:
org.eclipse.ditto.signals.commands.base.Command<T>
,org.eclipse.ditto.model.base.json.Jsonifiable<org.eclipse.ditto.json.JsonObject>
,org.eclipse.ditto.model.base.json.Jsonifiable.WithPredicate<org.eclipse.ditto.json.JsonObject,org.eclipse.ditto.json.JsonField>
,org.eclipse.ditto.signals.base.Signal<T>
,org.eclipse.ditto.model.base.headers.WithDittoHeaders<T>
,org.eclipse.ditto.model.base.entity.type.WithEntityType
,org.eclipse.ditto.signals.base.WithId
,org.eclipse.ditto.model.base.headers.WithManifest
,org.eclipse.ditto.signals.base.WithName
,org.eclipse.ditto.signals.base.WithResource
,org.eclipse.ditto.model.things.WithThingId
,org.eclipse.ditto.signals.base.WithType
- All Known Subinterfaces:
ThingModifyCommand<T>
,ThingQueryCommand<T>
- All Known Implementing Classes:
CreateThing
,DeleteAclEntry
,DeleteAttribute
,DeleteAttributes
,DeleteFeature
,DeleteFeatureDefinition
,DeleteFeatureDesiredProperties
,DeleteFeatureDesiredProperty
,DeleteFeatureProperties
,DeleteFeatureProperty
,DeleteFeatures
,DeleteThing
,DeleteThingDefinition
,ModifyAcl
,ModifyAclEntry
,ModifyAttribute
,ModifyAttributes
,ModifyFeature
,ModifyFeatureDefinition
,ModifyFeatureDesiredProperties
,ModifyFeatureDesiredProperty
,ModifyFeatureProperties
,ModifyFeatureProperty
,ModifyFeatures
,ModifyPolicyId
,ModifyThing
,ModifyThingDefinition
,RetrieveAcl
,RetrieveAclEntry
,RetrieveAttribute
,RetrieveAttributes
,RetrieveFeature
,RetrieveFeatureDefinition
,RetrieveFeatureDesiredProperties
,RetrieveFeatureDesiredProperty
,RetrieveFeatureProperties
,RetrieveFeatureProperty
,RetrieveFeatures
,RetrievePolicyId
,RetrieveThing
,RetrieveThingDefinition
,RetrieveThings
public interface ThingCommand<T extends ThingCommand<T>> extends org.eclipse.ditto.signals.commands.base.Command<T>, org.eclipse.ditto.model.things.WithThingId, org.eclipse.ditto.model.base.entity.type.WithEntityType
Aggregates allCommand
s which are related to aThing
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ThingCommand.JsonFields
This class contains definitions for all specific fields of aThingCommand
's JSON representation.-
Nested classes/interfaces inherited from interface org.eclipse.ditto.signals.commands.base.Command
org.eclipse.ditto.signals.commands.base.Command.Category
-
Nested classes/interfaces inherited from interface org.eclipse.ditto.model.base.json.Jsonifiable
org.eclipse.ditto.model.base.json.Jsonifiable.WithFieldSelector, org.eclipse.ditto.model.base.json.Jsonifiable.WithFieldSelectorAndPredicate<T extends Object>, org.eclipse.ditto.model.base.json.Jsonifiable.WithPointer<J extends org.eclipse.ditto.json.JsonValue>, org.eclipse.ditto.model.base.json.Jsonifiable.WithPredicate<J extends org.eclipse.ditto.json.JsonValue,T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static String
RESOURCE_TYPE
Thing resource type.static String
TYPE_PREFIX
Type Prefix of Thing commands.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default org.eclipse.ditto.model.things.ThingId
getEntityId()
default org.eclipse.ditto.model.base.entity.type.EntityType
getEntityType()
Returns the entity typeThingConstants.ENTITY_TYPE
.default String
getResourceType()
default String
getTypePrefix()
T
setDittoHeaders(org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
-
Methods inherited from interface org.eclipse.ditto.signals.commands.base.Command
getCategory, getImplementedSchemaVersion, toJson, toJson
-
Methods inherited from interface org.eclipse.ditto.model.base.json.Jsonifiable
getLatestSchemaVersion, getSupportedSchemaVersions, implementsSchemaVersion, implementsSchemaVersion, toJsonString
-
Methods inherited from interface org.eclipse.ditto.model.base.json.Jsonifiable.WithPredicate
toJson, toJsonString, toJsonString
-
Methods inherited from interface org.eclipse.ditto.model.base.headers.WithDittoHeaders
getDittoHeaders
-
-
-
-
Field Detail
-
TYPE_PREFIX
static final String TYPE_PREFIX
Type Prefix of Thing commands.- See Also:
- Constant Field Values
-
RESOURCE_TYPE
static final String RESOURCE_TYPE
Thing resource type.
-
-
Method Detail
-
getTypePrefix
default String getTypePrefix()
- Specified by:
getTypePrefix
in interfaceorg.eclipse.ditto.signals.commands.base.Command<T extends ThingCommand<T>>
-
getEntityId
default org.eclipse.ditto.model.things.ThingId getEntityId()
- Specified by:
getEntityId
in interfaceorg.eclipse.ditto.signals.base.WithId
-
getResourceType
default String getResourceType()
- Specified by:
getResourceType
in interfaceorg.eclipse.ditto.signals.base.WithResource
-
getEntityType
default org.eclipse.ditto.model.base.entity.type.EntityType getEntityType()
Returns the entity typeThingConstants.ENTITY_TYPE
.- Specified by:
getEntityType
in interfaceorg.eclipse.ditto.model.base.entity.type.WithEntityType
- Returns:
- the Thing entity type.
- Since:
- 1.1.0
-
setDittoHeaders
T setDittoHeaders(org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
- Specified by:
setDittoHeaders
in interfaceorg.eclipse.ditto.signals.commands.base.Command<T extends ThingCommand<T>>
- Specified by:
setDittoHeaders
in interfaceorg.eclipse.ditto.model.base.headers.WithDittoHeaders<T extends ThingCommand<T>>
-
-