Package com.thingworx.resources.devices
Class DeviceFunctions
- All Implemented Interfaces:
IConfigurableObject
,INotScriptFriendly
,ISupportsDeprecation
,IDiffableObject
,IAvatar
,IEntityLifeCycleEvent
,IPersistable
,IServiceProvider
,ITaggableObject
,IDependencyScannableObject
,IEntityDefinition
,IPersistableObject<String>
,IDesignTimeSecurable
,IDesignTimeSecurableEntity
,IRunTimeSecurable
,IRunTimeSecurableEntity
,ISecurable
,IVisibilitySecurable
,IVisibilitySecurableEntity
,IAspectContainer
,INamedObject
,Serializable
@ThingworxExtensionApiClass(since={6,6},
canInstantiate=true)
public class DeviceFunctions
extends Resource
- See Also:
-
Field Summary
Fields inherited from class com.thingworx.entities.RootEntity
BASIC_PROPERTY_DEFINITIONS, EXCLUDED_ENTITY_TYPES_IN_PROJECT
Fields inherited from class com.thingworx.types.NamedObject
NAME_COMPARATOR
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGetBoundRemoteThings
(Double maxItems) Service Category: Bindings Service Description: Get bound remote things.GetBoundThingsForFederatedServer
(String name, Double maxItems) Service Category: Federation Service Description: Get bound federated things.GetUnboundIdentifiers
(Double maxItems) Service Category: Bindings Service Description: Get unbound identifiers.GetUnboundRemoteThings
(Double maxItems) Service Category: Bindings Service Description: Get unbound remote things.GetUnboundThingsForFederatedServer
(String name, Double maxItems) Service Category: Federation Service Description: Get unbound federated things.SearchDevices
(org.json.JSONObject query, String nameMask, String thingShape, String thingTemplate, Double maxItems) Service Category: Queries Service Description: Retrieve a list of Devices that match the options specified.SearchDevicesV2
(org.json.JSONObject query, String nameMask, String thingShape, String thingTemplate, Double maxItems) Service Category: Queries Service Description: Retrieve a list of Devices that match the options specified.SearchDevicesV3
(org.json.JSONObject query, String nameMask, String thingShape, String thingTemplate, Double maxItems) Service Category: Queries Service Description: Retrieve a list of Devices that match the options specified.Methods inherited from class com.thingworx.resources.Resource
getEntityType
Methods inherited from class com.thingworx.entities.ServiceProviderEntity
getInstancePublicServiceDefinitions, getInstanceServiceDefinition, getInstanceServiceDefinitions, initializeEntity, preInitializeEntity, processAPIServiceRequest, processServiceRequest
Methods inherited from class com.thingworx.entities.RootEntity
AddConfigurationTableDefinition, AddConfigurationTableDefinition, addDesignTimePermission, AddDesignTimePermission, addRunTimePermission, AddRunTimePermission, AddTags, addVisibilityPermission, AddVisibilityPermission, CheckDesignTimePermission, CheckDesignTimePermissionForGroup, CheckDesignTimePermissionForUser, CheckPermission, CheckPermissionForGroup, CheckPermissionForUser, cleanupEntity, DeleteAllConfigurationTableRows, DeleteConfigurationTable, DeleteConfigurationTableRows, DeleteConfigurationTableRows, deleteDesignTimePermission, DeleteDesignTimePermission, deleteRunTimePermission, DeleteRunTimePermission, deleteVisibilityPermission, DeleteVisibilityPermission, dispose, getAspects, GetAvatar, getAvatarContent, GetAvatarURL, GetConfigurationChangeHistory, getConfigurationSetting, getConfigurationTable, GetConfigurationTable, GetConfigurationTableDefinition, GetConfigurationTableRow, GetConfigurationTables, GetDescription, getDesignTimePermissions, GetDesignTimePermissions, GetDesignTimePermissionsAsJSON, getDocumentationContent, getEntityTypeAsString, GetEventDefinition, GetEventDefinitions, GetHomeMashup, GetIncomingDependencies, GetIncomingDependenciesAsNetwork, GetInstanceMetadataAsJSON, GetInstanceMetadataWithPermissionsAsJSON, GetLastModifiedDate, GetMetadata, GetMetadataAsJSON, GetMetadataWithPermissionsAsJSON, GetOutgoingDependencies, GetOutgoingDependenciesAsNetwork, getOwner, GetOwner, GetPermissionsForCurrentUser, GetPermissionsForGroup, GetPermissionsForUser, GetProjectName, GetPropertyDefinition, GetPropertyDefinitions, getRunTimePermissions, GetRunTimePermissions, GetRunTimePermissionsAsJSON, GetServiceDefinition, GetServiceDefinitions, getStringConfigurationSetting, getStringConfigurationSettingWithDefault, GetSummaryInformation, getTags, GetTags, GetTagsAsInfoTable, getVisibilityPermissions, GetVisibilityPermissions, GetVisibilityPermissionsAsJSON, HasIncomingDependencies, HasOutgoingDependencies, isEditable, isEditableExtensionObject, isEditableSystemObject, isExtensionObject, IsMultiRowTable, isOwner, isSystemObject, isThemeObject, isVisible, isVisible, ListDeprecatedUsage, persistDesignTimePermissions, persistRunTimePermissions, persistVisibilityPermissions, RemoveTags, SaveConfigurationTables, SetAvatar, setConfigurationSetting, SetConfigurationTable, SetConfigurationTableRows, SetDescription, setDesignTimePermissions, SetDesignTimePermissionsAsJSON, setDocumentationContent, setExtensionObject, SetHomeMashup, setLastModifiedDate, SetMultiRowConfigurationTable, setOwner, SetOwner, SetProjectName, setRunTimePermissions, SetRunTimePermissionsAsJSON, setStringConfigurationSetting, SetTags, setVisibilityPermissions, SetVisibilityPermissionsAsJSON, toJSON, toJSONDefinition, UpdateProjectDependencies, validateConfiguration
Methods inherited from class com.thingworx.persistence.common.PersistableNamedObject
getID, hasID, isTransient
Methods inherited from class com.thingworx.types.NamedObject
getDescription, getName, setDescription, setName, toValueCollection
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.thingworx.types.INamedObject
getDescription, getName
Methods inherited from interface com.thingworx.entities.interfaces.IPersistable
getID, hasID
Methods inherited from interface com.thingworx.security.permissions.ISecurable
getID, getName
Methods inherited from interface com.thingworx.deprecation.ISupportsDeprecation
getDeprecated, isDeprecated, isDeprecatedBefore, since
-
Constructor Details
-
DeviceFunctions
public DeviceFunctions()
-
-
Method Details
-
SearchDevices
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable SearchDevices(org.json.JSONObject query, String nameMask, String thingShape, String thingTemplate, Double maxItems) throws Exception - Service Category:
- Queries
- Service Description:
- Retrieve a list of Devices that match the options specified.
- Parameters:
query
- Query definition - QUERYnameMask
- Name pattern - STRINGthingShape
- Filter only for devices that implement this shape - THINGSHAPENAMEthingTemplate
- Filter only for devices that are derived from this template - THINGTEMPLATENAMEmaxItems
- Maximum number of items to return - NUMBER- Returns:
- result Matching Devices - INFOTABLE - Aspects {dataShape:DeviceStatus}
- Throws:
Exception
- If an error occurs
-
SearchDevicesV2
@ThingworxExtensionApiMethod(since={9,4}) public InfoTable SearchDevicesV2(org.json.JSONObject query, String nameMask, String thingShape, String thingTemplate, Double maxItems) throws Exception - Service Category:
- Queries
- Service Description:
- Retrieve a list of Devices that match the options specified.
- Parameters:
query
- Query definition - QUERYnameMask
- Name pattern - STRINGthingShape
- Filter only for devices that implement this shape - THINGSHAPENAMEthingTemplate
- Filter only for devices that are derived from this template - THINGTEMPLATENAMEmaxItems
- Maximum number of items to return - NUMBER- Returns:
- result Matching Devices - INFOTABLE - Aspects {dataShape:DeviceStatusV2}
- Throws:
Exception
- If an error occurs
-
SearchDevicesV3
@ThingworxExtensionApiMethod(since={9,7}) public InfoTable SearchDevicesV3(org.json.JSONObject query, String nameMask, String thingShape, String thingTemplate, Double maxItems) throws Exception - Service Category:
- Queries
- Service Description:
- Retrieve a list of Devices that match the options specified.
- Parameters:
query
- Query definition - QUERYnameMask
- Name pattern - STRINGthingShape
- Filter only for devices that implement this shape - THINGSHAPENAMEthingTemplate
- Filter only for devices that are derived from this template - THINGTEMPLATENAMEmaxItems
- Maximum number of items to return - NUMBER- Returns:
- result Matching Devices - INFOTABLE - Aspects {dataShape:DeviceStatusV3}
- Throws:
Exception
- If an error occurs
-
GetUnboundRemoteThings
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetUnboundRemoteThings(Double maxItems) throws Exception - Service Category:
- Bindings
- Service Description:
- Get unbound remote things.
- Parameters:
maxItems
- Maximum number of items to return - NUMBER- Returns:
- result Unbound remote things - INFOTABLE - Aspects {dataShape:BoundName}
- Throws:
Exception
- If an error occurs
-
GetUnboundIdentifiers
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetUnboundIdentifiers(Double maxItems) throws Exception - Service Category:
- Bindings
- Service Description:
- Get unbound identifiers.
- Parameters:
maxItems
- Maximum number of items to return - NUMBER- Returns:
- result Unbound remote things with identifiers - INFOTABLE - Aspects {dataShape:EntityList}
- Throws:
Exception
- If an error occurs
-
GetBoundRemoteThings
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetBoundRemoteThings(Double maxItems) throws Exception - Service Category:
- Bindings
- Service Description:
- Get bound remote things.
- Parameters:
maxItems
- Maximum number of items to return - NUMBER- Returns:
- result Bound remote things - INFOTABLE - Aspects {dataShape:DeviceStatus}
- Throws:
Exception
- If an error occurs
-
GetUnboundThingsForFederatedServer
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetUnboundThingsForFederatedServer(String name, Double maxItems) throws Exception - Service Category:
- Federation
- Service Description:
- Get unbound federated things.
- Parameters:
name
- Federated server name - THINGNAMEmaxItems
- Maximum number of items to return - NUMBER- Returns:
- result Unbound federated things - INFOTABLE - Aspects {dataShape:EntityList}
- Throws:
Exception
- If an error occurs
-
GetBoundThingsForFederatedServer
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetBoundThingsForFederatedServer(String name, Double maxItems) throws Exception - Service Category:
- Federation
- Service Description:
- Get bound federated things.
- Parameters:
name
- Federated server name - THINGNAMEmaxItems
- Maximum number of items to return - NUMBER- Returns:
- result Bound federated things - INFOTABLE - Aspects {dataShape:DeviceStatus}
- Throws:
Exception
- If an error occurs
-