Package com.thingworx.security.users
Class User
- All Implemented Interfaces:
IConfigurableObject
,INotScriptFriendly
,ISupportsDeprecation
,IDiffableObject
,IAvatar
,IEntityLifeCycleEvent
,IPersistable
,IPropertyProvider
,IServiceProvider
,ITaggableObject
,IDependencyScannableObject
,IEntityDefinition
,IPersistableObject<String>
,IDesignTimeSecurable
,IDesignTimeSecurableEntity
,IRunTimeSecurable
,IRunTimeSecurableEntity
,ISecurable
,IVisibilitySecurable
,IVisibilitySecurableEntity
,IAspectContainer
,INamedObject
,Serializable
,Cloneable
@ThingworxExtensionApiClass(since={6,6},
canInstantiate=true)
public class User
extends ServiceProviderEntity
implements IAvatar, IPropertyProvider, Cloneable
A Thingworx User entity.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
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 TypeMethodDescriptionvoid
void
addOrganizationalUnit
(OrganizationalUnit organization) void
AddTags
(TagCollection tags) Service Category: Metadata Service Description: Append additional tags to an entity.void
AssignNewPassword
(String newPassword, String newPasswordConfirm) Service Category: Security Service Description: Assign new password.void
ChangePassword
(String oldPassword, String newPassword, String newPasswordConfirm) Service Category: Security Service Description: Change password.final void
DeleteAllConfigurationTableRows
(String tableName, Boolean persistent) Service Category: Configuration Service Description: Delete all rows from a multi-row configuration table.void
DeleteApplicationKeys
(Boolean deleteExpiredKeys, Boolean deleteUnexpiredKeys) Service Category: ApplicationKeys Service Description: Delete application keys associated with this user.final void
DeleteConfigurationTable
(String tableName, Boolean persistent) Service Category: Configuration Service Description: Delete an entire configuration table.void
DeleteConfigurationTableRows
(String tableName, InfoTable values, Boolean persistent) Deprecated.final void
DeleteConfigurationTableRows
(String tableName, InfoTable values, Boolean persistent, Boolean removeAllMatchingRows) Service Category: Configuration Service Description: Delete one or more rows from a multi-row configuration table.void
deleteGroup
(Group group) void
deleteOrganizationalUnit
(OrganizationalUnit organization) void
Service Category: Security Service Description: Service to disable a user.Service Category: ApplicationKeys Service Description: Returns true if the specified key id associated with this user exists.void
Service Category: Security Service Description: Service to enable a user.GetApplicationKeyExpirationInfo
(Boolean expiredKeys, Boolean unexpiredKeys) Service Category: ApplicationKeys Service Description: Get application key expiration info associated with this user.Service Category: Groups Service Description: Get list of groups that this user is a member of.
Returns the specified property definition for this instance.
Returns the specified property definition for this instance if visible.
Returns a collection containing all property definitions belonging to this instance.
Get the user's language preferences.Service Category: Mashups Service Description: Get mobile mashup.GetNamedPropertyValues
(InfoTable propertyNames) Service Category: Properties Service Description: Get a subset of the current property values for this thing.GetNamedPropertyValuesVTQ
(InfoTable propertyNames) Service Category: Properties Service Description: Get the current property values for this thing as VTQ.
Gets the organizationUnitNames from getOrganizationalUnitsService Category: OrgUnits Service Description: Get list of organizational units that this user is a member of.Deprecated.Service Category: Organizations Service Description: Get list of organizations that this user is a member of.
Gets the organizationNames getOrganizationsorg.json.JSONObject
GetPersistentValue
(String name) Service Category: SessionInfo Service Description: Get persistent value.GetPropertyQuality
(String propertyName) Service Category: Properties Service Description: Get the quality for a specific property.org.joda.time.DateTime
GetPropertyTime
(String propertyName) Service Category: Properties Service Description: Get the timestamp for a specific property.getPropertyType
(String propertyName)
Returns the base type defined in the specified property's definition.getPropertyValue
(String propertyName)
Returns the value currently assigned to the specified property.Service Category: Properties Service Description: Get the current property values for this thing.
Returns anInfoTable
containing a list of the properties belonging to this instance and their values.Service Category: Properties Service Description: Get the current property values for this thing as VTQ.Service Category: Properties Service Description: Get the attributes of the User entity that an unprivileged user may see.
Returns all of this user's general preference information such as username, avatar and language preferences.boolean
hasProperty
(String propertyName)
Returnstrue
if there exists a property with the specified name.boolean
hasPropertyAndIsVisible
(String propertyName)
Returnstrue
if there exists a property with the specified name and is visible to the user.boolean
Service Category: Security Service Description: Get Enabled Status.boolean
IsLocked()
Service Category: Security Service Description: Get Locked Status.void
LockUser()
Service Category: Security Service Description: Service to lock a user.void
Service Category: Security Service Description: Reset cached security context.final void
SetConfigurationTable
(String tableName, InfoTable configurationTable, Boolean persistent) Service Category: Configuration Service Description: Set an entire configuration table.final void
SetConfigurationTableRows
(String tableName, InfoTable values, Boolean persistent) Service Category: Configuration Service Description: Update/add one or more rows in a multi-row configuration table.void
SetDescription
(String description) Service Category: Metadata Service Description: Overwrite/set the description for an entity.void
SetLanguagePreferences
(String preferences) Service Category: Properties Service Description: Set the user's language preferences.
Sets an ordered list of languages as the language preferences for this user.void
SetMobileMashup
(String name) Service Category: Mashups Service Description: Set mobile mashup.final void
SetMultiRowConfigurationTable
(String tableName, InfoTable configurationTable, Boolean persistent) Service Category: Configuration Service Description: Set an entire multi-row configuration table.void
SetPersistentValue
(String name, org.json.JSONObject value) Service Category: SessionInfo Service Description: Set persistent value.void
setPropertyValue
(String propertyName, IPrimitiveType value) void
SetPropertyValues
(InfoTable values) Service Category: Properties Service Description: Get a subset of the current property values for this thing.void
SetTags
(TagCollection tags) Service Category: Metadata Service Description: Overwrite/set the tags for an entity.void
Service Category: Security Service Description: Service to unlock a user.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, addVisibilityPermission, AddVisibilityPermission, CheckDesignTimePermission, CheckDesignTimePermissionForGroup, CheckDesignTimePermissionForUser, CheckPermission, CheckPermissionForGroup, CheckPermissionForUser, cleanupEntity, 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, setDesignTimePermissions, SetDesignTimePermissionsAsJSON, setDocumentationContent, setExtensionObject, SetHomeMashup, setLastModifiedDate, setOwner, SetOwner, SetProjectName, setRunTimePermissions, SetRunTimePermissionsAsJSON, setStringConfigurationSetting, 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.entities.interfaces.IAvatar
GetAvatar, getAvatarContent, SetAvatar
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
-
Field Details
-
EXTENDED_PROPERTY_PREFIX
- See Also:
-
USER_EXTENSIONS_TABLE_NAME
- See Also:
-
SETTINGS_TABLE_NAME
- See Also:
-
USER_EXTENSIONS_THINGSHAPE
- See Also:
-
USER_EXTENSIONS_NAME_ROW
- See Also:
-
USER_EXTENSIONS_VALUE_ROW
- See Also:
-
USER_EXTENSIONS_DATE_ROW
- See Also:
-
-
Constructor Details
-
User
public User()
-
-
Method Details
-
SetDescription
@ThingworxExtensionApiMethod(since={6,6}) public void SetDescription(String description) throws Exception - Service Category:
- Metadata
- Service Description:
- Overwrite/set the description for an entity.
- Overrides:
SetDescription
in classRootEntity
- Parameters:
description
- Description for an entity - STRING- Throws:
Exception
- If an error occurs
-
SetTags
- Service Category:
- Metadata
- Service Description:
- Overwrite/set the tags for an entity.
- Overrides:
SetTags
in classRootEntity
- Parameters:
tags
- Tags for an entity - TAGS- Throws:
Exception
- If an error occurs
-
AddTags
- Service Category:
- Metadata
- Service Description:
- Append additional tags to an entity.
- Overrides:
AddTags
in classRootEntity
- Parameters:
tags
- Tags for an entity - TAGS- Throws:
Exception
- If an error occurs
-
ResetSecurityContext
- Service Category:
- Security
- Service Description:
- Reset cached security context.
-
GetMobileMashup
- Service Category:
- Mashups
- Service Description:
- Get mobile mashup.
- Returns:
- MobileMashup Mobile mashup - MASHUPNAME
-
SetMobileMashup
- Service Category:
- Mashups
- Service Description:
- Set mobile mashup.
- Parameters:
name
- Mobile mashup name - MASHUPNAME- Throws:
Exception
- If an error occurs
-
GetPersistentValue
@ThingworxExtensionApiMethod(since={6,6}) public org.json.JSONObject GetPersistentValue(String name) throws Exception - Service Category:
- SessionInfo
- Service Description:
- Get persistent value.
- Parameters:
name
- Parameter name - STRING- Returns:
- result Parameter value - JSON
- Throws:
Exception
- If an error occurs
-
SetPersistentValue
@ThingworxExtensionApiMethod(since={6,6}) public void SetPersistentValue(String name, org.json.JSONObject value) throws Exception - Service Category:
- SessionInfo
- Service Description:
- Set persistent value.
- Parameters:
name
- Parameter name - STRINGvalue
- Parameter value - JSON- Throws:
Exception
- If an error occurs
-
ChangePassword
@ThingworxExtensionApiMethod(since={6,6}) public void ChangePassword(String oldPassword, String newPassword, String newPasswordConfirm) throws Exception - Service Category:
- Security
- Service Description:
- Change password.
- Parameters:
oldPassword
- Previous Password - STRINGnewPassword
- New Password - STRINGnewPasswordConfirm
- New Password Confirmation - STRING- Throws:
Exception
- If an error occurs
-
AssignNewPassword
@ThingworxExtensionApiMethod(since={6,6}) public void AssignNewPassword(String newPassword, String newPasswordConfirm) throws Exception - Service Category:
- Security
- Service Description:
- Assign new password.
- Parameters:
newPassword
- New Password - STRINGnewPasswordConfirm
- New Password Confirmation - STRING- Throws:
Exception
- If an error occurs
-
SetLanguagePreferences
@ThingworxExtensionApiMethod(since={6,6,5}) public void SetLanguagePreferences(String preferences) throws Exception - Service Category:
- Properties
- Service Description:
- Set the user's language preferences.
Sets an ordered list of languages as the language preferences for this user. Localization tokens are resolved in the first (or only) language, if possible. If that translation is not available, other listed languages are tried in the specified order.- Parameters:
preferences
- The new language preferences, ordered best first, comma separated- Throws:
Exception
- Thrown if the user in the current security context attempts to call this on a different user and is not an administrator
-
GetUserPreferenceInfo
@ThingworxExtensionApiMethod(since={6,6,5}) public InfoTable GetUserPreferenceInfo() throws Exception- Service Category:
- Properties
- Service Description:
- Get the attributes of the User entity that an unprivileged user may see.
Returns all of this user's general preference information such as username, avatar and language preferences.- Returns:
- A collection of the user's preference information
- Throws:
Exception
- Thrown if the user in the current security context attempts to call this on a different user and is not an administrator
-
DisableUser
- Service Category:
- Security
- Service Description:
- Service to disable a user.
- Throws:
Exception
- If an error occurs
-
EnableUser
- Service Category:
- Security
- Service Description:
- Service to enable a user.
- Throws:
Exception
- If an error occurs
-
IsEnabled
- Service Category:
- Security
- Service Description:
- Get Enabled Status.
- Returns:
- enabled Enabled status - BOOLEAN
- Throws:
Exception
- If an error occurs
-
LockUser
- Service Category:
- Security
- Service Description:
- Service to lock a user.
- Throws:
Exception
- If an error occurs
-
UnlockUser
- Service Category:
- Security
- Service Description:
- Service to unlock a user.
- Throws:
Exception
- If an error occurs
-
IsLocked
- Service Category:
- Security
- Service Description:
- Get Locked Status.
- Returns:
- result Locked status - BOOLEAN
- Throws:
Exception
- If an error occurs
-
GetGroups
- Service Category:
- Groups
- Service Description:
- Get list of groups that this user is a member of.
- Returns:
- result Result - INFOTABLE - Aspects {dataShape:EntityList}
- Throws:
Exception
- If an error occurs
-
GetOrganizationalUnits
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetOrganizationalUnits() throws Exception- Service Category:
- OrgUnits
- Service Description:
- Get list of organizational units that this user is a member of.
- Returns:
- result Result - INFOTABLE - Aspects {dataShape:EntityList}
- Throws:
Exception
- If an error occurs
-
GetOrganizations
- Service Category:
- Organizations
- Service Description:
- Get list of organizations that this user is a member of.
- Returns:
- result Result - INFOTABLE - Aspects {dataShape:EntityList}
- Throws:
Exception
- If an error occurs
-
GetApplicationKeyExpirationInfo
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetApplicationKeyExpirationInfo(Boolean expiredKeys, Boolean unexpiredKeys) throws Exception - Service Category:
- ApplicationKeys
- Service Description:
- Get application key expiration info associated with this user. Must specify true to at least one parameter to return any application keys, true to both parameters if you want to return all application keys.
- Parameters:
expiredKeys
- Expired keys - BOOLEANunexpiredKeys
- Unexpired keys - BOOLEAN- Returns:
- result Result - INFOTABLE - Aspects {dataShape:ApplicationKeyExpirationInfo}
- Throws:
Exception
- If an error occurs
-
DoesApplicationKeyWithKeyIdExist
@ThingworxExtensionApiMethod(since={6,6}) public Boolean DoesApplicationKeyWithKeyIdExist(String keyId) throws Exception - Service Category:
- ApplicationKeys
- Service Description:
- Returns true if the specified key id associated with this user exists.
- Parameters:
keyId
- The Key Id - STRING- Returns:
- result Result - BOOLEAN
- Throws:
Exception
- If an error occurs
-
DeleteApplicationKeys
@ThingworxExtensionApiMethod(since={6,6}) public void DeleteApplicationKeys(Boolean deleteExpiredKeys, Boolean deleteUnexpiredKeys) throws Exception - Service Category:
- ApplicationKeys
- Service Description:
- Delete application keys associated with this user. Must specify true to at least one parameter to delete any application keys, true to both parameters if you want to delete all application keys.
- Parameters:
deleteExpiredKeys
- Delete expired keys - BOOLEANdeleteUnexpiredKeys
- Delete unexpired keys - BOOLEAN- Throws:
Exception
- If an error occurs
-
getGroups
-
addGroup
- Throws:
Exception
- If an error occurs
-
deleteGroup
- Throws:
Exception
- If an error occurs
-
getOrganizationalUnitNames
@ThingworxExtensionApiMethod(since={6,6}) public ScriptFriendlyArrayList<String> getOrganizationalUnitNames()
Gets the organizationUnitNames from getOrganizationalUnits -
getOrganizationNames
@Deprecated @ThingworxExtensionApiMethod(since={6,6}) public ScriptFriendlyArrayList<String> getOrganizationNames()Deprecated.As of ThingWorx 9.5, replaced bygetOrgNames()
Gets the organizationNames from getOrganizationalUnits -
getOrgNames
Gets the organizationNames getOrganizations -
addOrganizationalUnit
@ThingworxExtensionApiMethod(since={6,6}) public void addOrganizationalUnit(OrganizationalUnit organization) throws Exception - Throws:
Exception
- If an error occurs
-
deleteOrganizationalUnit
@ThingworxExtensionApiMethod(since={6,6}) public void deleteOrganizationalUnit(OrganizationalUnit organization) throws Exception - Throws:
Exception
- If an error occurs
-
getInstancePropertyDefinition
@ThingworxExtensionApiMethod(since={6,6}) public PropertyDefinition getInstancePropertyDefinition(String name) Description copied from interface:IPropertyProvider
Returns the specified property definition for this instance.- Specified by:
getInstancePropertyDefinition
in interfaceIPropertyProvider
- Parameters:
name
- the name of the property- Returns:
- the definition of the property
-
getInstancePropertyDefinitionIfVisible
@ThingworxExtensionApiMethod(since={9,0}) public PropertyDefinition getInstancePropertyDefinitionIfVisible(String name) throws Exception Description copied from interface:IPropertyProvider
Returns the specified property definition for this instance if visible.- Specified by:
getInstancePropertyDefinitionIfVisible
in interfaceIPropertyProvider
- Parameters:
name
- the name of the property- Returns:
- the definition of the property
- Throws:
Exception
- If an error occurs
-
getInstancePropertyDefinitions
@ThingworxExtensionApiMethod(since={6,6}) public PropertyDefinitionCollection getInstancePropertyDefinitions()Description copied from interface:IPropertyProvider
Returns a collection containing all property definitions belonging to this instance.- Specified by:
getInstancePropertyDefinitions
in interfaceIPropertyProvider
- Returns:
- a collection of property definitions
-
getLanguage
Get the user's language preferences.- Returns:
- {String} an ordered, comma-separated list of language preferences, best choice first.
-
getPropertyValue
@ThingworxExtensionApiMethod(since={6,6}) public IPrimitiveType getPropertyValue(String propertyName) throws Exception Description copied from interface:IPropertyProvider
Returns the value currently assigned to the specified property.- Specified by:
getPropertyValue
in interfaceIPropertyProvider
- Parameters:
propertyName
- the name of the property to retrieve the value of- Returns:
- the property's current value
- Throws:
Exception
- If an error occurs
-
getPropertyType
Description copied from interface:IPropertyProvider
Returns the base type defined in the specified property's definition.- Specified by:
getPropertyType
in interfaceIPropertyProvider
- Parameters:
propertyName
- the name of the property- Returns:
- the
BaseTypes
entry corresponding to the property type
-
hasProperty
Description copied from interface:IPropertyProvider
Returnstrue
if there exists a property with the specified name. Property names are case-sensitive.- Specified by:
hasProperty
in interfaceIPropertyProvider
- Parameters:
propertyName
- the property name to check- Returns:
true
if the specified property exists
-
hasPropertyAndIsVisible
@ThingworxExtensionApiMethod(since={9,0}) public boolean hasPropertyAndIsVisible(String propertyName) throws Exception Description copied from interface:IPropertyProvider
Returnstrue
if there exists a property with the specified name and is visible to the user. Property names are case-sensitive.- Specified by:
hasPropertyAndIsVisible
in interfaceIPropertyProvider
- Parameters:
propertyName
- the property name to check- Returns:
true
if the specified property exists and is visible- Throws:
Exception
- If an error occurs
-
getPropertyValuesAsInfoTable
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable getPropertyValuesAsInfoTable() throws ExceptionDescription copied from interface:IPropertyProvider
Returns anInfoTable
containing a list of the properties belonging to this instance and their values.- Specified by:
getPropertyValuesAsInfoTable
in interfaceIPropertyProvider
- Returns:
- an
InfoTable
of property names and their associated values - Throws:
Exception
- If an error occurs
-
setPropertyValue
@ThingworxExtensionApiMethod(since={6,6}) public void setPropertyValue(String propertyName, IPrimitiveType value) throws Exception - Specified by:
setPropertyValue
in interfaceIPropertyProvider
- Parameters:
propertyName
- the name of the property that is being modifiedvalue
- the value to assign to the property- Throws:
Exception
- If an error occurs
-
getEntityType
@ThingworxExtensionApiMethod(since={6,6}) public RelationshipTypes.ThingworxRelationshipTypes getEntityType()Description copied from class:RootEntity
Returns the type of this entity.
- Specified by:
getEntityType
in classRootEntity
- Returns:
- the entity type
-
GetPropertyValues
- Service Category:
- Properties
- Service Description:
- Get the current property values for this thing.
- Returns:
- result Property values - INFOTABLE
- Throws:
Exception
- If an error occurs
-
SetPropertyValues
@ThingworxExtensionApiMethod(since={6,6}) public void SetPropertyValues(InfoTable values) throws Exception - Service Category:
- Properties
- Service Description:
- Get a subset of the current property values for this thing.
- Parameters:
values
- Property values - INFOTABLE- Throws:
Exception
- If an error occurs
-
GetNamedPropertyValues
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetNamedPropertyValues(InfoTable propertyNames) throws Exception - Service Category:
- Properties
- Service Description:
- Get a subset of the current property values for this thing.
- Parameters:
propertyNames
- Property names - INFOTABLE- Returns:
- result Property values - INFOTABLE
- Throws:
Exception
- If an error occurs
-
GetPropertyValuesVTQ
- Service Category:
- Properties
- Service Description:
- Get the current property values for this thing as VTQ.
- Returns:
- result Property values - INFOTABLE
- Throws:
Exception
- If an error occurs
-
GetNamedPropertyValuesVTQ
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetNamedPropertyValuesVTQ(InfoTable propertyNames) throws Exception - Service Category:
- Properties
- Service Description:
- Get the current property values for this thing as VTQ.
- Parameters:
propertyNames
- Property names - INFOTABLE- Returns:
- result Property values - INFOTABLE - Aspects {isMultiRow: false}
- Throws:
Exception
- If an error occurs
-
GetPropertyQuality
@ThingworxExtensionApiMethod(since={6,6}) public String GetPropertyQuality(String propertyName) throws Exception - Service Category:
- Properties
- Service Description:
- Get the quality for a specific property.
- Parameters:
propertyName
- Property name - STRING- Returns:
- Quality Quality value - STRING
- Throws:
Exception
- If an error occurs
-
GetPropertyTime
@ThingworxExtensionApiMethod(since={6,6}) public org.joda.time.DateTime GetPropertyTime(String propertyName) throws Exception - Service Category:
- Properties
- Service Description:
- Get the timestamp for a specific property.
- Parameters:
propertyName
- Property name - STRING- Returns:
- Time Time value - DATETIME
- Throws:
Exception
- If an error occurs
-
SetConfigurationTable
@ThingworxExtensionApiMethod(since={6,6}) public final void SetConfigurationTable(String tableName, InfoTable configurationTable, Boolean persistent) throws Exception - Service Category:
- Configuration
- Service Description:
- Set an entire configuration table.
- Overrides:
SetConfigurationTable
in classRootEntity
- Parameters:
tableName
- Configuration table name - STRINGconfigurationTable
- Configuration table content - INFOTABLEpersistent
- Persist these changes - BOOLEAN- Throws:
Exception
- If an error occurs
-
SetMultiRowConfigurationTable
@ThingworxExtensionApiMethod(since={6,6}) public final void SetMultiRowConfigurationTable(String tableName, InfoTable configurationTable, Boolean persistent) throws Exception - Service Category:
- Configuration
- Service Description:
- Set an entire multi-row configuration table.
- Overrides:
SetMultiRowConfigurationTable
in classRootEntity
- Parameters:
tableName
- Configuration table name - STRINGconfigurationTable
- Configuration table content - INFOTABLEpersistent
- Persist these changes - BOOLEAN- Throws:
Exception
- If an error occurs
-
SetConfigurationTableRows
@ThingworxExtensionApiMethod(since={6,6}) public final void SetConfigurationTableRows(String tableName, InfoTable values, Boolean persistent) throws Exception - Service Category:
- Configuration
- Service Description:
- Update/add one or more rows in a multi-row configuration table.
- Overrides:
SetConfigurationTableRows
in classRootEntity
- Parameters:
tableName
- Configuration table name - STRINGvalues
- Configuration table rows to modify - INFOTABLEpersistent
- Persist these changes - BOOLEAN- Throws:
Exception
- If an error occurs
-
DeleteConfigurationTable
@ThingworxExtensionApiMethod(since={6,6}) public final void DeleteConfigurationTable(String tableName, Boolean persistent) throws Exception - Service Category:
- Configuration
- Service Description:
- Delete an entire configuration table.
- Overrides:
DeleteConfigurationTable
in classRootEntity
- Parameters:
tableName
- Configuration table name - STRINGpersistent
- Persist these changes - BOOLEAN- Throws:
Exception
- If an error occurs
-
DeleteConfigurationTableRows
@Deprecated @ThingworxExtensionApiMethod(since={6,6}, deprecatedSince={9,6}) public void DeleteConfigurationTableRows(String tableName, InfoTable values, Boolean persistent) throws Exception Deprecated.- Overrides:
DeleteConfigurationTableRows
in classRootEntity
- Throws:
Exception
- If an error occurs
-
DeleteConfigurationTableRows
@ThingworxExtensionApiMethod(since={9,6}) public final void DeleteConfigurationTableRows(String tableName, InfoTable values, Boolean persistent, Boolean removeAllMatchingRows) throws Exception - Service Category:
- Configuration
- Service Description:
- Delete one or more rows from a multi-row configuration table.
- Overrides:
DeleteConfigurationTableRows
in classRootEntity
- Parameters:
tableName
- Configuration table name - STRINGvalues
- Configuration table rows to modify - INFOTABLEpersistent
- Persist these changes - BOOLEANremoveAllMatchingRows
- It will remove all matching rows if value is true - BOOLEAN- Throws:
Exception
- If an error occurs
-
DeleteAllConfigurationTableRows
@ThingworxExtensionApiMethod(since={6,6}) public final void DeleteAllConfigurationTableRows(String tableName, Boolean persistent) throws Exception - Service Category:
- Configuration
- Service Description:
- Delete all rows from a multi-row configuration table.
- Overrides:
DeleteAllConfigurationTableRows
in classRootEntity
- Parameters:
tableName
- Configuration table name - STRINGpersistent
- Persist these changes - BOOLEAN- Throws:
Exception
- If an error occurs
-
getOrgNames()