@ -126,7 +126,9 @@ public class AlarmController extends BaseController {
"\n\nPlatform also deduplicate the alarms based on the entity id of originator and alarm 'type'. "+
"For example, if the user or system component create the alarm with the type 'HighTemperature' for device 'Device A' the new active alarm is created. "+
"If the user tries to create 'HighTemperature' alarm for the same device again, the previous alarm will be updated (the 'end_ts' will be set to current timestamp). "+
"If the user clears the alarm (see 'Clear Alarm(clearAlarm)'), than new alarm with the same type and same device may be created. "+TENANT_OR_CUSTOMER_AUTHORITY_PARAGRAPH
"If the user clears the alarm (see 'Clear Alarm(clearAlarm)'), than new alarm with the same type and same device may be created. "+
"Remove 'id', 'tenantId' and optionally 'customerId' from the request body example (below) to create new Alarm entity. "+
@ -112,6 +112,10 @@ public class ControllerConstants {
protectedstaticfinalStringDEVICE_PROFILE_INFO_DESCRIPTION="Device Profile Info is a lightweight object that includes main information about Device Profile excluding the heavyweight configuration object. ";
protectedstaticfinalStringQUEUE_SERVICE_TYPE_DESCRIPTION="Service type (implemented only for the TB-RULE-ENGINE)";
protectedstaticfinalStringQUEUE_ID_PARAM_DESCRIPTION="A string value representing the queue id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'";
protectedstaticfinalStringQUEUE_NAME_PARAM_DESCRIPTION="A string value representing the queue id. For example, 'Main'";
protectedstaticfinalStringOTA_PACKAGE_INFO_DESCRIPTION="OTA Package Info is a lightweight object that includes main information about the OTA Package excluding the heavyweight data. ";
protectedstaticfinalStringOTA_PACKAGE_DESCRIPTION="OTA Package is a heavyweight object that includes main information about the OTA Package and also data. ";
@ -158,8 +158,9 @@ public class DeviceController extends BaseController {
"The newly created device id will be present in the response. "+
"Specify existing Device id to update the device. "+
"Referencing non-existing device Id will cause 'Not Found' error."+
"\n\nDevice name is unique in the scope of tenant. Use unique identifiers like MAC or IMEI for the device names and non-unique 'label' field for user-friendly visualization purposes."
+TENANT_OR_CUSTOMER_AUTHORITY_PARAGRAPH)
"\n\nDevice name is unique in the scope of tenant. Use unique identifiers like MAC or IMEI for the device names and non-unique 'label' field for user-friendly visualization purposes."+
"Remove 'id', 'tenantId' and optionally 'customerId' from the request body example (below) to create new Device entity. "+
@ -141,8 +141,9 @@ public class EdgeController extends BaseController {
"The newly created edge id will be present in the response. "+
"Specify existing Edge id to update the edge. "+
"Referencing non-existing Edge Id will cause 'Not Found' error."+
"\n\nEdge name is unique in the scope of tenant. Use unique identifiers like MAC or IMEI for the edge names and non-unique 'label' field for user-friendly visualization purposes."
+TENANT_AUTHORITY_PARAGRAPH,
"\n\nEdge name is unique in the scope of tenant. Use unique identifiers like MAC or IMEI for the edge names and non-unique 'label' field for user-friendly visualization purposes."+
"Remove 'id', 'tenantId' and optionally 'customerId' from the request body example (below) to create new Edge entity. "+
@ -89,8 +89,9 @@ public class WidgetsBundleController extends BaseController {
"Specify existing Widget Bundle id to update the Widget Bundle. "+
"Referencing non-existing Widget Bundle Id will cause 'Not Found' error."+
"\n\nWidget Bundle alias is unique in the scope of tenant. "+
"Special Tenant Id '13814000-1dd2-11b2-8080-808080808080' is automatically used if the create bundle request is sent by user with 'SYS_ADMIN' authority."
+SYSTEM_OR_TENANT_AUTHORITY_PARAGRAPH)
"Special Tenant Id '13814000-1dd2-11b2-8080-808080808080' is automatically used if the create bundle request is sent by user with 'SYS_ADMIN' authority."+
"Remove 'id', 'tenantId' from the request body example (below) to create new Widgets Bundle entity."+
@ -32,17 +32,17 @@ public class AttributeData implements Comparable<AttributeData>{
this.value=value;
}
@ApiModelProperty(position=1,value="Timestamp last updated attribute, in milliseconds",example="1609459200000",readOnly=true)
@ApiModelProperty(position=1,value="Timestamp last updated attribute, in milliseconds",example="1609459200000",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@ -30,12 +30,12 @@ public class TsData implements Comparable<TsData>{
this.value=value;
}
@ApiModelProperty(position=1,value="Timestamp last updated timeseries, in milliseconds",example="1609459200000",readOnly=true)
@ApiModelProperty(position=1,value="Timestamp last updated timeseries, in milliseconds",example="1609459200000",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
publiclonggetTs(){
returnts;
}
@ApiModelProperty(position=2,value="Object representing value of timeseries key",example="20",readOnly=true)
@ApiModelProperty(position=2,value="Object representing value of timeseries key",example="20",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@ -58,13 +58,13 @@ public class AdminSettings extends BaseData<AdminSettingsId> implements HasTenan
returnsuper.getId();
}
@ApiModelProperty(position=2,value="Timestamp of the settings creation, in milliseconds",example="1609459200000",readOnly=true)
@ApiModelProperty(position=2,value="Timestamp of the settings creation, in milliseconds",example="1609459200000",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@Override
publiclonggetCreatedTime(){
returnsuper.getCreatedTime();
}
@ApiModelProperty(position=3,value="JSON object with Tenant Id.",readOnly=true)
@ApiModelProperty(position=3,value="JSON object with Tenant Id.",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@ -83,7 +83,7 @@ public class Customer extends ContactBased<CustomerId> implements HasTenantId, E
returnsuper.getId();
}
@ApiModelProperty(position=2,value="Timestamp of the customer creation, in milliseconds",example="1609459200000",readOnly=true)
@ApiModelProperty(position=2,value="Timestamp of the customer creation, in milliseconds",example="1609459200000",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@Override
publiclonggetCreatedTime(){
returnsuper.getCreatedTime();
@ -159,7 +159,7 @@ public class Customer extends ContactBased<CustomerId> implements HasTenantId, E
@Override
@JsonProperty(access=Access.READ_ONLY)
@ApiModelProperty(position=4,value="Name of the customer. Read-only, duplicated from title for backward compatibility",example="Company A",readOnly=true)
@ApiModelProperty(position=4,value="Name of the customer. Read-only, duplicated from title for backward compatibility",example="Company A",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@ -71,13 +71,13 @@ public class DashboardInfo extends SearchTextBased<DashboardId> implements HasNa
returnsuper.getId();
}
@ApiModelProperty(position=2,value="Timestamp of the dashboard creation, in milliseconds",example="1609459200000",readOnly=true)
@ApiModelProperty(position=2,value="Timestamp of the dashboard creation, in milliseconds",example="1609459200000",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@Override
publiclonggetCreatedTime(){
returnsuper.getCreatedTime();
}
@ApiModelProperty(position=3,value="JSON object with Tenant Id. Tenant Id of the dashboard can't be changed.",readOnly=true)
@ApiModelProperty(position=3,value="JSON object with Tenant Id. Tenant Id of the dashboard can't be changed.",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
publicTenantIdgetTenantId(){
returntenantId;
}
@ -95,7 +95,7 @@ public class DashboardInfo extends SearchTextBased<DashboardId> implements HasNa
this.title=title;
}
@ApiModelProperty(position=8,value="Thumbnail picture for rendering of the dashboards in a grid view on mobile devices.",readOnly=true)
@ApiModelProperty(position=8,value="Thumbnail picture for rendering of the dashboards in a grid view on mobile devices.",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
publicStringgetImage(){
returnimage;
}
@ -104,7 +104,7 @@ public class DashboardInfo extends SearchTextBased<DashboardId> implements HasNa
this.image=image;
}
@ApiModelProperty(position=5,value="List of assigned customers with their info.",readOnly=true)
@ApiModelProperty(position=5,value="List of assigned customers with their info.",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@ -113,7 +113,7 @@ public class DashboardInfo extends SearchTextBased<DashboardId> implements HasNa
this.assignedCustomers=assignedCustomers;
}
@ApiModelProperty(position=6,value="Hide dashboard from mobile devices. Useful if the dashboard is not designed for small screens.",readOnly=true)
@ApiModelProperty(position=6,value="Hide dashboard from mobile devices. Useful if the dashboard is not designed for small screens.",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
publicbooleanisMobileHide(){
returnmobileHide;
}
@ -122,7 +122,7 @@ public class DashboardInfo extends SearchTextBased<DashboardId> implements HasNa
this.mobileHide=mobileHide;
}
@ApiModelProperty(position=7,value="Order on mobile devices. Useful to adjust sorting of the dashboards for mobile applications",readOnly=true)
@ApiModelProperty(position=7,value="Order on mobile devices. Useful to adjust sorting of the dashboards for mobile applications",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
publicIntegergetMobileOrder(){
returnmobileOrder;
}
@ -180,7 +180,7 @@ public class DashboardInfo extends SearchTextBased<DashboardId> implements HasNa
}
}
@ApiModelProperty(position=4,value="Same as title of the dashboard. Read-only field. Update the 'title' to change the 'name' of the dashboard.",readOnly=true)
@ApiModelProperty(position=4,value="Same as title of the dashboard. Read-only field. Update the 'title' to change the 'name' of the dashboard.",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@ -112,13 +112,13 @@ public class Device extends SearchTextBasedWithAdditionalInfo<DeviceId> implemen
returnsuper.getId();
}
@ApiModelProperty(position=2,value="Timestamp of the device creation, in milliseconds",example="1609459200000",readOnly=true)
@ApiModelProperty(position=2,value="Timestamp of the device creation, in milliseconds",example="1609459200000",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@Override
publiclonggetCreatedTime(){
returnsuper.getCreatedTime();
}
@ApiModelProperty(position=3,value="JSON object with Tenant Id. Use 'assignDeviceToTenant' to change the Tenant Id.",readOnly=true)
@ApiModelProperty(position=3,value="JSON object with Tenant Id. Use 'assignDeviceToTenant' to change the Tenant Id.",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
publicTenantIdgetTenantId(){
returntenantId;
}
@ -127,7 +127,7 @@ public class Device extends SearchTextBasedWithAdditionalInfo<DeviceId> implemen
this.tenantId=tenantId;
}
@ApiModelProperty(position=4,value="JSON object with Customer Id. Use 'assignDeviceToCustomer' to change the Customer Id.",readOnly=true)
@ApiModelProperty(position=4,value="JSON object with Customer Id. Use 'assignDeviceToCustomer' to change the Customer Id.",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@ApiModelProperty(position=13,value="Title of the Customer that owns the device.",readOnly=true)
@ApiModelProperty(position=13,value="Title of the Customer that owns the device.",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
privateStringcustomerTitle;
@ApiModelProperty(position=14,value="Indicates special 'Public' Customer that is auto-generated to use the devices on public dashboards.",readOnly=true)
@ApiModelProperty(position=14,value="Indicates special 'Public' Customer that is auto-generated to use the devices on public dashboards.",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
privatebooleancustomerIsPublic;
@ApiModelProperty(position=15,value="Name of the corresponding Device Profile.",readOnly=true)
@ApiModelProperty(position=15,value="Name of the corresponding Device Profile.",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@ApiModelProperty(position=3,value="JSON object with Tenant Id that owns the profile.",readOnly=true)
@ApiModelProperty(position=3,value="JSON object with Tenant Id that owns the profile.",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
privateTenantIdtenantId;
@NoXss
@Length(fieldName="name")
@ -129,7 +129,7 @@ public class DeviceProfile extends SearchTextBased<DeviceProfileId> implements H
returnsuper.getId();
}
@ApiModelProperty(position=2,value="Timestamp of the profile creation, in milliseconds",example="1609459200000",readOnly=true)
@ApiModelProperty(position=2,value="Timestamp of the profile creation, in milliseconds",example="1609459200000",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@ -87,7 +87,7 @@ public class EntityView extends SearchTextBasedWithAdditionalInfo<EntityViewId>
returngetName()/*What the ...*/;
}
@ApiModelProperty(position=4,value="JSON object with Customer Id. Use 'assignEntityViewToCustomer' to change the Customer Id.",readOnly=true)
@ApiModelProperty(position=4,value="JSON object with Customer Id. Use 'assignEntityViewToCustomer' to change the Customer Id.",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@Override
publicCustomerIdgetCustomerId(){
returncustomerId;
@ -98,7 +98,7 @@ public class EntityView extends SearchTextBasedWithAdditionalInfo<EntityViewId>
returnname;
}
@ApiModelProperty(position=3,value="JSON object with Tenant Id.",readOnly=true)
@ApiModelProperty(position=3,value="JSON object with Tenant Id.",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@Override
publicTenantIdgetTenantId(){
returntenantId;
@ -113,7 +113,7 @@ public class EntityView extends SearchTextBasedWithAdditionalInfo<EntityViewId>
returnsuper.getId();
}
@ApiModelProperty(position=2,value="Timestamp of the Entity View creation, in milliseconds",example="1609459200000",readOnly=true)
@ApiModelProperty(position=2,value="Timestamp of the Entity View creation, in milliseconds",example="1609459200000",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@ApiModelProperty(position=12,value="Title of the Customer that owns the entity view.",readOnly=true)
@ApiModelProperty(position=12,value="Title of the Customer that owns the entity view.",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
privateStringcustomerTitle;
@ApiModelProperty(position=13,value="Indicates special 'Public' Customer that is auto-generated to use the entity view on public dashboards.",readOnly=true)
@ApiModelProperty(position=13,value="Indicates special 'Public' Customer that is auto-generated to use the entity view on public dashboards.",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@ -53,7 +53,7 @@ public class Event extends BaseData<EventId> {
super(event);
}
@ApiModelProperty(position=6,value="Timestamp of the event creation, in milliseconds",example="1609459200000",readOnly=true)
@ApiModelProperty(position=6,value="Timestamp of the event creation, in milliseconds",example="1609459200000",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@ApiModelProperty(position=3,value="JSON object with Tenant Id. Tenant Id of the ota package can't be changed.",readOnly=true)
@ApiModelProperty(position=3,value="JSON object with Tenant Id. Tenant Id of the ota package can't be changed.",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
privateTenantIdtenantId;
@ApiModelProperty(position=4,value="JSON object with Device Profile Id. Device Profile Id of the ota package can't be changed.",readOnly=true)
@ApiModelProperty(position=4,value="JSON object with Device Profile Id. Device Profile Id of the ota package can't be changed.",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@ApiModelProperty(position=10,value="Indicates OTA Package 'has data'. Field is returned from DB ('true' if data exists or url is set). If OTA Package 'has data' is 'false' we can not assign the OTA Package to the Device or Device Profile.",example="true",readOnly=true)
@ApiModelProperty(position=10,value="Indicates OTA Package 'has data'. Field is returned from DB ('true' if data exists or url is set). If OTA Package 'has data' is 'false' we can not assign the OTA Package to the Device or Device Profile.",example="true",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@ApiModelProperty(position=15,value="OTA Package data size.",example="8",readOnly=true)
@ApiModelProperty(position=15,value="OTA Package data size.",example="8",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
privateLongdataSize;
publicOtaPackageInfo(){
@ -114,7 +114,7 @@ public class OtaPackageInfo extends SearchTextBasedWithAdditionalInfo<OtaPackage
returnsuper.getId();
}
@ApiModelProperty(position=2,value="Timestamp of the ota package creation, in milliseconds",example="1609459200000",readOnly=true)
@ApiModelProperty(position=2,value="Timestamp of the ota package creation, in milliseconds",example="1609459200000",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@ApiModelProperty(position=16,value="Indicates OTA Package uses url. Should be 'true' if uses url or 'false' if will be used data.",example="true",readOnly=true)
@ApiModelProperty(position=16,value="Indicates OTA Package uses url. Should be 'true' if uses url or 'false' if will be used data.",example="true",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@ApiModelProperty(position=3,value="JSON object with Tenant Id. Tenant Id of the resource can't be changed.",readOnly=true)
@ApiModelProperty(position=3,value="JSON object with Tenant Id. Tenant Id of the resource can't be changed.",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@ -75,7 +75,7 @@ public class TbResourceInfo extends SearchTextBased<TbResourceId> implements Has
returnsuper.getId();
}
@ApiModelProperty(position=2,value="Timestamp of the resource creation, in milliseconds",example="1609459200000",readOnly=true)
@ApiModelProperty(position=2,value="Timestamp of the resource creation, in milliseconds",example="1609459200000",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@ -74,7 +74,7 @@ public class Tenant extends ContactBased<TenantId> implements HasTenantId {
}
@Override
@ApiModelProperty(position=4,value="Name of the tenant. Read-only, duplicated from title for backward compatibility",example="Company A",readOnly=true)
@ApiModelProperty(position=4,value="Name of the tenant. Read-only, duplicated from title for backward compatibility",example="Company A",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@ -110,7 +110,7 @@ public class Tenant extends ContactBased<TenantId> implements HasTenantId {
returnsuper.getId();
}
@ApiModelProperty(position=2,value="Timestamp of the tenant creation, in milliseconds",example="1609459200000",readOnly=true)
@ApiModelProperty(position=2,value="Timestamp of the tenant creation, in milliseconds",example="1609459200000",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@ -87,7 +87,7 @@ public class TenantProfile extends SearchTextBased<TenantProfileId> implements H
returnsuper.getId();
}
@ApiModelProperty(position=2,value="Timestamp of the tenant profile creation, in milliseconds",example="1609459200000",readOnly=true)
@ApiModelProperty(position=2,value="Timestamp of the tenant profile creation, in milliseconds",example="1609459200000",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@ -74,13 +74,13 @@ public class User extends SearchTextBasedWithAdditionalInfo<UserId> implements H
returnsuper.getId();
}
@ApiModelProperty(position=2,value="Timestamp of the user creation, in milliseconds",example="1609459200000",readOnly=true)
@ApiModelProperty(position=2,value="Timestamp of the user creation, in milliseconds",example="1609459200000",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@Override
publiclonggetCreatedTime(){
returnsuper.getCreatedTime();
}
@ApiModelProperty(position=3,value="JSON object with the Tenant Id.",readOnly=true)
@ApiModelProperty(position=3,value="JSON object with the Tenant Id.",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
publicTenantIdgetTenantId(){
returntenantId;
}
@ -89,7 +89,7 @@ public class User extends SearchTextBasedWithAdditionalInfo<UserId> implements H
this.tenantId=tenantId;
}
@ApiModelProperty(position=4,value="JSON object with the Customer Id.",readOnly=true)
@ApiModelProperty(position=4,value="JSON object with the Customer Id.",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
publicCustomerIdgetCustomerId(){
returncustomerId;
}
@ -107,7 +107,7 @@ public class User extends SearchTextBasedWithAdditionalInfo<UserId> implements H
this.email=email;
}
@ApiModelProperty(position=6,readOnly=true,value="Duplicates the email of the user, readonly",example="user@example.com")
@ApiModelProperty(position=6,accessMode=ApiModelProperty.AccessMode.READ_ONLY,value="Duplicates the email of the user, readonly",example="user@example.com")
@ApiModelProperty(position=3,value="JSON object with Tenant Id",readOnly=true)
@ApiModelProperty(position=3,value="JSON object with Tenant Id",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
privateTenantIdtenantId;
@ApiModelProperty(position=4,value="JSON object with Customer Id",readOnly=true)
@ApiModelProperty(position=4,value="JSON object with Customer Id",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
privateCustomerIdcustomerId;
@ApiModelProperty(position=6,required=true,value="representing type of the Alarm",example="High Temperature Alarm")
@ -124,7 +124,7 @@ public class Alarm extends BaseData<AlarmId> implements HasName, HasTenantId, Ha
}
@ApiModelProperty(position=2,value="Timestamp of the alarm creation, in milliseconds",example="1634058704567",readOnly=true)
@ApiModelProperty(position=2,value="Timestamp of the alarm creation, in milliseconds",example="1634058704567",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@ -52,7 +52,6 @@ public class Asset extends SearchTextBasedWithAdditionalInfo<AssetId> implements
@Length(fieldName="label")
privateStringlabel;
@ApiModelProperty(position=100,value="JSON object with External Id from the VCS",accessMode=ApiModelProperty.AccessMode.READ_ONLY,hidden=true)
@Getter@Setter
privateAssetIdexternalId;
@ -93,7 +92,7 @@ public class Asset extends SearchTextBasedWithAdditionalInfo<AssetId> implements
returnsuper.getId();
}
@ApiModelProperty(position=2,value="Timestamp of the asset creation, in milliseconds",example="1609459200000",readOnly=true)
@ApiModelProperty(position=2,value="Timestamp of the asset creation, in milliseconds",example="1609459200000",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@Override
publiclonggetCreatedTime(){
returnsuper.getCreatedTime();
@ -108,7 +107,7 @@ public class Asset extends SearchTextBasedWithAdditionalInfo<AssetId> implements
this.tenantId=tenantId;
}
@ApiModelProperty(position=4,value="JSON object with Customer Id. Use 'assignAssetToCustomer' to change the Customer Id.",readOnly=true)
@ApiModelProperty(position=4,value="JSON object with Customer Id. Use 'assignAssetToCustomer' to change the Customer Id.",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@ApiModelProperty(position=9,value="Title of the Customer that owns the asset.",readOnly=true)
@ApiModelProperty(position=9,value="Title of the Customer that owns the asset.",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
privateStringcustomerTitle;
@ApiModelProperty(position=10,value="Indicates special 'Public' Customer that is auto-generated to use the assets on public dashboards.",readOnly=true)
@ApiModelProperty(position=10,value="Indicates special 'Public' Customer that is auto-generated to use the assets on public dashboards.",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@ApiModelProperty(position=3,value="JSON object with Tenant Id",readOnly=true)
@ApiModelProperty(position=3,value="JSON object with Tenant Id",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
privateTenantIdtenantId;
@ApiModelProperty(position=4,value="JSON object with Customer Id",readOnly=true)
@ApiModelProperty(position=4,value="JSON object with Customer Id",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
privateCustomerIdcustomerId;
@ApiModelProperty(position=5,value="JSON object with Entity id",readOnly=true)
@ApiModelProperty(position=5,value="JSON object with Entity id",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
privateEntityIdentityId;
@ApiModelProperty(position=6,value="Name of the logged entity",example="Thermometer",readOnly=true)
@ApiModelProperty(position=6,value="Name of the logged entity",example="Thermometer",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
privateStringentityName;
@ApiModelProperty(position=7,value="JSON object with User id.",readOnly=true)
@ApiModelProperty(position=7,value="JSON object with User id.",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
privateUserIduserId;
@ApiModelProperty(position=8,value="Unique user name(email) of the user that performed some action on logged entity",example="tenant@thingsboard.org",readOnly=true)
@ApiModelProperty(position=8,value="Unique user name(email) of the user that performed some action on logged entity",example="tenant@thingsboard.org",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@ApiModelProperty(position=12,value="Failure action details info. An empty string in case of action status type 'SUCCESS', otherwise includes stack trace of the caused exception.",readOnly=true)
@ApiModelProperty(position=12,value="Failure action details info. An empty string in case of action status type 'SUCCESS', otherwise includes stack trace of the caused exception.",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
privateStringactionFailureDetails;
publicAuditLog(){
@ -71,7 +71,7 @@ public class AuditLog extends BaseData<AuditLogId> {
@ApiModelProperty(position=2,value="Timestamp of the auditLog creation, in milliseconds",example="1609459200000",readOnly=true)
@ApiModelProperty(position=2,value="Timestamp of the auditLog creation, in milliseconds",example="1609459200000",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@ -25,44 +25,44 @@ public class LwM2MServerSecurityConfig {
@ApiModelProperty(position=1,value="Server short Id. Used as link to associate server Object Instance. This identifier uniquely identifies each LwM2M Server configured for the LwM2M Client. "+
"This Resource MUST be set when the Bootstrap-Server Resource has a value of 'false'. "+
"The values ID:0 and ID:65535 values MUST NOT be used for identifying the LwM2M Server.",example="123",readOnly=true)
"The values ID:0 and ID:65535 values MUST NOT be used for identifying the LwM2M Server.",example="123",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
protectedIntegershortServerId=123;
/** Security -> ObjectId = 0 'LWM2M Security' */
@ApiModelProperty(position=2,value="Is Bootstrap Server or Lwm2m Server. "+
"The LwM2M Client MAY be configured to use one or more LwM2M Server Account(s). "+
"The LwM2M Client MUST have at most one LwM2M Bootstrap-Server Account. "+
"(*) The LwM2M client MUST have at least one LwM2M server account after completing the boot sequence specified.",example="true or false",readOnly=true)
"(*) The LwM2M client MUST have at least one LwM2M server account after completing the boot sequence specified.",example="true or false",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
protectedbooleanbootstrapServerIs=false;
@ApiModelProperty(position=3,value="Host for 'No Security' mode",example="0.0.0.0",readOnly=true)
@ApiModelProperty(position=3,value="Host for 'No Security' mode",example="0.0.0.0",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
protectedStringhost;
@ApiModelProperty(position=4,value="Port for Lwm2m Server: 'No Security' mode: Lwm2m Server or Bootstrap Server",example="'5685' or '5687'",readOnly=true)
@ApiModelProperty(position=4,value="Port for Lwm2m Server: 'No Security' mode: Lwm2m Server or Bootstrap Server",example="'5685' or '5687'",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
protectedIntegerport;
@ApiModelProperty(position=7,value="Client Hold Off Time. The number of seconds to wait before initiating a Client Initiated Bootstrap once the LwM2M Client has determined it should initiate this bootstrap mode. (This information is relevant for use with a Bootstrap-Server only.)",example="1",readOnly=true)
@ApiModelProperty(position=7,value="Client Hold Off Time. The number of seconds to wait before initiating a Client Initiated Bootstrap once the LwM2M Client has determined it should initiate this bootstrap mode. (This information is relevant for use with a Bootstrap-Server only.)",example="1",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
protectedIntegerclientHoldOffTime=1;
@ApiModelProperty(position=8,value="Server Public Key for 'Security' mode (DTLS): RPK or X509. Format: base64 encoded",example="MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEAZ0pSaGKHk/GrDaUDnQZpeEdGwX7m3Ws+U/kiVat\n"+
@ApiModelProperty(position=10,value="Bootstrap Server Account Timeout (If the value is set to 0, or if this resource is not instantiated, the Bootstrap-Server Account lifetime is infinite.)",example="0",readOnly=true)
@ApiModelProperty(position=10,value="Bootstrap Server Account Timeout (If the value is set to 0, or if this resource is not instantiated, the Bootstrap-Server Account lifetime is infinite.)",example="0",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
IntegerbootstrapServerAccountTimeout=0;
/** Config -> ObjectId = 1 'LwM2M Server' */
@ApiModelProperty(position=11,value="Specify the lifetime of the registration in seconds.",example="300",readOnly=true)
@ApiModelProperty(position=11,value="Specify the lifetime of the registration in seconds.",example="300",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
privateIntegerlifetime=300;
@ApiModelProperty(position=12,value="The default value the LwM2M Client should use for the Minimum Period of an Observation in the absence of this parameter being included in an Observation. "+
"If this Resource doesn’t exist, the default value is 0.",example="1",readOnly=true)
"If this Resource doesn’t exist, the default value is 0.",example="1",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
privateIntegerdefaultMinPeriod=1;
/** ResourceID=6 'Notification Storing When Disabled or Offline' */
@ApiModelProperty(position=13,value="If true, the LwM2M Client stores “Notify” operations to the LwM2M Server while the LwM2M Server account is disabled or the LwM2M Client is offline. After the LwM2M Server account is enabled or the LwM2M Client is online, the LwM2M Client reports the stored “Notify” operations to the Server. "+
"If false, the LwM2M Client discards all the “Notify” operations or temporarily disables the Observe function while the LwM2M Server is disabled or the LwM2M Client is offline. "+
"The default value is true.",example="true",readOnly=true)
"The default value is true.",example="true",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
privatebooleannotifIfDisabled=true;
@ApiModelProperty(position=14,value="This Resource defines the transport binding configured for the LwM2M Client. "+
"If the LwM2M Client supports the binding specified in this Resource, the LwM2M Client MUST use that transport for the Current Binding Mode.",example="U",readOnly=true)
"If the LwM2M Client supports the binding specified in this Resource, the LwM2M Client MUST use that transport for the Current Binding Mode.",example="U",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@ApiModelProperty(position=5,value="Host for 'Security' mode (DTLS)",example="0.0.0.0",readOnly=true)
@ApiModelProperty(position=5,value="Host for 'Security' mode (DTLS)",example="0.0.0.0",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
protectedStringsecurityHost;
@ApiModelProperty(position=6,value="Port for 'Security' mode (DTLS): Lwm2m Server or Bootstrap Server",example="5686 or 5688",readOnly=true)
@ApiModelProperty(position=6,value="Port for 'Security' mode (DTLS): Lwm2m Server or Bootstrap Server",example="5686 or 5688",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@ -98,25 +98,25 @@ public class Edge extends SearchTextBasedWithAdditionalInfo<EdgeId> implements H
returnsuper.getId();
}
@ApiModelProperty(position=2,value="Timestamp of the edge creation, in milliseconds",example="1609459200000",readOnly=true)
@ApiModelProperty(position=2,value="Timestamp of the edge creation, in milliseconds",example="1609459200000",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@Override
publiclonggetCreatedTime(){
returnsuper.getCreatedTime();
}
@ApiModelProperty(position=3,value="JSON object with Tenant Id. Use 'assignDeviceToTenant' to change the Tenant Id.",readOnly=true)
@ApiModelProperty(position=3,value="JSON object with Tenant Id. Use 'assignDeviceToTenant' to change the Tenant Id.",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@Override
publicTenantIdgetTenantId(){
returnthis.tenantId;
}
@ApiModelProperty(position=4,value="JSON object with Customer Id. Use 'assignEdgeToCustomer' to change the Customer Id.",readOnly=true)
@ApiModelProperty(position=4,value="JSON object with Customer Id. Use 'assignEdgeToCustomer' to change the Customer Id.",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@Override
publicCustomerIdgetCustomerId(){
returnthis.customerId;
}
@ApiModelProperty(position=5,value="JSON object with Root Rule Chain Id. Use 'setEdgeRootRuleChain' to change the Root Rule Chain Id.",readOnly=true)
@ApiModelProperty(position=5,value="JSON object with Root Rule Chain Id. Use 'setEdgeRootRuleChain' to change the Root Rule Chain Id.",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@ApiModelProperty(position=1,value="Array of the entities",readOnly=true)
@ApiModelProperty(position=1,value="Array of the entities",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
publicList<T>getData(){
returndata;
}
@ApiModelProperty(position=2,value="Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria",readOnly=true)
@ApiModelProperty(position=2,value="Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
publicintgetTotalPages(){
returntotalPages;
}
@ApiModelProperty(position=3,value="Total number of elements in all available pages",readOnly=true)
@ApiModelProperty(position=3,value="Total number of elements in all available pages",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
publiclonggetTotalElements(){
returntotalElements;
}
@ApiModelProperty(position=4,value="'false' value indicates the end of the result set",readOnly=true)
@ApiModelProperty(position=4,value="'false' value indicates the end of the result set",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@ -32,19 +32,19 @@ public class ComponentDescriptor extends SearchTextBased<ComponentDescriptorId>
privatestaticfinallongserialVersionUID=1L;
@ApiModelProperty(position=3,value="Type of the Rule Node",readOnly=true)
@ApiModelProperty(position=3,value="Type of the Rule Node",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@Getter@SetterprivateComponentTypetype;
@ApiModelProperty(position=4,value="Scope of the Rule Node. Always set to 'TENANT', since no rule chains on the 'SYSTEM' level yet.",readOnly=true,allowableValues="TENANT",example="TENANT")
@ApiModelProperty(position=4,value="Scope of the Rule Node. Always set to 'TENANT', since no rule chains on the 'SYSTEM' level yet.",accessMode=ApiModelProperty.AccessMode.READ_ONLY,allowableValues="TENANT",example="TENANT")
@Getter@SetterprivateComponentScopescope;
@Length(fieldName="name")
@ApiModelProperty(position=5,value="Name of the Rule Node. Taken from the @RuleNode annotation.",readOnly=true,example="Custom Rule Node")
@ApiModelProperty(position=5,value="Name of the Rule Node. Taken from the @RuleNode annotation.",accessMode=ApiModelProperty.AccessMode.READ_ONLY,example="Custom Rule Node")
@Getter@SetterprivateStringname;
@ApiModelProperty(position=6,value="Full name of the Java class that implements the Rule Engine Node interface.",readOnly=true,example="com.mycompany.CustomRuleNode")
@ApiModelProperty(position=6,value="Full name of the Java class that implements the Rule Engine Node interface.",accessMode=ApiModelProperty.AccessMode.READ_ONLY,example="com.mycompany.CustomRuleNode")
@Getter@SetterprivateStringclazz;
@ApiModelProperty(position=7,value="Complex JSON object that represents the Rule Node configuration.",readOnly=true)
@ApiModelProperty(position=7,value="Complex JSON object that represents the Rule Node configuration.",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@ -74,7 +74,7 @@ public class ComponentDescriptor extends SearchTextBased<ComponentDescriptorId>
returnsuper.getId();
}
@ApiModelProperty(position=2,value="Timestamp of the descriptor creation, in milliseconds",example="1609459200000",readOnly=true)
@ApiModelProperty(position=2,value="Timestamp of the descriptor creation, in milliseconds",example="1609459200000",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@ApiModelProperty(position=3,value="JSON object with Tenant Id.",readOnly=true)
@ApiModelProperty(position=3,value="JSON object with Tenant Id.",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
privateTenantIdtenantId;
@ApiModelProperty(position=4,value="JSON object with Device Id.",readOnly=true)
@ApiModelProperty(position=4,value="JSON object with Device Id.",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
privateDeviceIddeviceId;
@ApiModelProperty(position=5,value="Expiration time of the request.",readOnly=true)
@ApiModelProperty(position=5,value="Expiration time of the request.",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
privatelongexpirationTime;
@ApiModelProperty(position=6,value="The request body that will be used to send message to device.",readOnly=true)
@ApiModelProperty(position=6,value="The request body that will be used to send message to device.",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
privateJsonNoderequest;
@ApiModelProperty(position=7,value="The response from the device.",readOnly=true)
@ApiModelProperty(position=7,value="The response from the device.",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
privateJsonNoderesponse;
@ApiModelProperty(position=8,value="The current status of the RPC call.",readOnly=true)
@ApiModelProperty(position=8,value="The current status of the RPC call.",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
privateRpcStatusstatus;
@ApiModelProperty(position=9,value="Additional info used in the rule engine to process the updates to the RPC state.",readOnly=true)
@ApiModelProperty(position=9,value="Additional info used in the rule engine to process the updates to the RPC state.",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
privateJsonNodeadditionalInfo;
publicRpc(){
@ -71,7 +71,7 @@ public class Rpc extends BaseData<RpcId> implements HasTenantId {
returnsuper.getId();
}
@ApiModelProperty(position=2,value="Timestamp of the rpc creation, in milliseconds",example="1609459200000",readOnly=true)
@ApiModelProperty(position=2,value="Timestamp of the rpc creation, in milliseconds",example="1609459200000",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@ApiModelProperty(position=3,required=true,value="JSON object with Tenant Id.",readOnly=true)
@ApiModelProperty(position=3,required=true,value="JSON object with Tenant Id.",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
privateTenantIdtenantId;
@NoXss
@Length(fieldName="name")
@ -100,7 +100,7 @@ public class RuleChain extends SearchTextBasedWithAdditionalInfo<RuleChainId> im
returnsuper.getId();
}
@ApiModelProperty(position=2,value="Timestamp of the rule chain creation, in milliseconds",example="1609459200000",readOnly=true)
@ApiModelProperty(position=2,value="Timestamp of the rule chain creation, in milliseconds",example="1609459200000",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@ApiModelProperty(position=3,value="JSON object with the Rule Chain Id. ",readOnly=true)
@ApiModelProperty(position=3,value="JSON object with the Rule Chain Id. ",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
privateRuleChainIdruleChainId;
@Length(fieldName="type")
@ApiModelProperty(position=4,value="Full Java Class Name of the rule node implementation. ",example="com.mycompany.iot.rule.engine.ProcessingNode")
@ -100,7 +100,7 @@ public class RuleNode extends SearchTextBasedWithAdditionalInfo<RuleNodeId> impl
returnsuper.getId();
}
@ApiModelProperty(position=2,value="Timestamp of the rule node creation, in milliseconds",example="1609459200000",readOnly=true)
@ApiModelProperty(position=2,value="Timestamp of the rule node creation, in milliseconds",example="1609459200000",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@ApiModelProperty(position=1,required=true,readOnly=true,value="The Id is automatically generated during device creation. "+
@ApiModelProperty(position=1,required=true,accessMode=ApiModelProperty.AccessMode.READ_ONLY,value="The Id is automatically generated during device creation. "+
"Use 'getDeviceCredentialsByDeviceId' to obtain the id based on device id. "+
"Use 'updateDeviceCredentials' to update device credentials. ",example="784f394c-42b6-435a-983c-b7beff2784f9")
@ApiModelProperty(position=3,value="JSON object with Tenant Id.",readOnly=true)
@ApiModelProperty(position=3,value="JSON object with Tenant Id.",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
privateTenantIdtenantId;
@NoXss
@Length(fieldName="bundleAlias")
@ApiModelProperty(position=4,value="Reference to widget bundle",readOnly=true)
@ApiModelProperty(position=4,value="Reference to widget bundle",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
privateStringbundleAlias;
@NoXss
@Length(fieldName="alias")
@ApiModelProperty(position=5,value="Unique alias that is used in dashboards as a reference widget type",readOnly=true)
@ApiModelProperty(position=5,value="Unique alias that is used in dashboards as a reference widget type",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
privateStringalias;
@NoXss
@Length(fieldName="name")
@ApiModelProperty(position=6,value="Widget name used in search and UI",readOnly=true)
@ApiModelProperty(position=6,value="Widget name used in search and UI",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
privateStringname;
publicBaseWidgetType(){
@ -69,7 +69,7 @@ public class BaseWidgetType extends BaseData<WidgetTypeId> implements HasTenantI
returnsuper.getId();
}
@ApiModelProperty(position=2,value="Timestamp of the Widget Type creation, in milliseconds",example="1609459200000",readOnly=true)
@ApiModelProperty(position=2,value="Timestamp of the Widget Type creation, in milliseconds",example="1609459200000",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@ApiModelProperty(position=7,value="Description of the widget type",readOnly=true)
@ApiModelProperty(position=7,value="Description of the widget type",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
privateStringdescription;
@NoXss
@ApiModelProperty(position=8,value="Type of the widget (timeseries, latest, control, alarm or static)",readOnly=true)
@ApiModelProperty(position=8,value="Type of the widget (timeseries, latest, control, alarm or static)",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@ -37,34 +37,34 @@ public class WidgetsBundle extends SearchTextBased<WidgetsBundleId> implements H
@Getter
@Setter
@ApiModelProperty(position=3,value="JSON object with Tenant Id.",readOnly=true)
@ApiModelProperty(position=3,value="JSON object with Tenant Id.",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
privateTenantIdtenantId;
@NoXss
@Length(fieldName="alias")
@Getter
@Setter
@ApiModelProperty(position=4,value="Unique alias that is used in widget types as a reference widget bundle",readOnly=true)
@ApiModelProperty(position=4,value="Unique alias that is used in widget types as a reference widget bundle",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
privateStringalias;
@NoXss
@Length(fieldName="title")
@Getter
@Setter
@ApiModelProperty(position=5,value="Title used in search and UI",readOnly=true)
@ApiModelProperty(position=5,value="Title used in search and UI",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@ -98,7 +98,7 @@ public class WidgetsBundle extends SearchTextBased<WidgetsBundleId> implements H
returnsuper.getId();
}
@ApiModelProperty(position=2,value="Timestamp of the Widget Bundle creation, in milliseconds",example="1609459200000",readOnly=true)
@ApiModelProperty(position=2,value="Timestamp of the Widget Bundle creation, in milliseconds",example="1609459200000",accessMode=ApiModelProperty.AccessMode.READ_ONLY)