@ -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)
@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 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)
@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)