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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class com.thingworx.entities.RootEntity
BASIC_PROPERTY_DEFINITIONS, EXCLUDED_ENTITY_TYPES_IN_PROJECTFields inherited from class com.thingworx.types.NamedObject
NAME_COMPARATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddOrganizationalUnit(OrganizationalUnit organization) voidAddTags(TagCollection tags) Service Category: Metadata Service Description: Append additional tags to an entity.voidAssignNewPassword(String newPassword, String newPasswordConfirm) Service Category: Security Service Description: Assign new password.voidChangePassword(String oldPassword, String newPassword, String newPasswordConfirm) Service Category: Security Service Description: Change password.final voidDeleteAllConfigurationTableRows(String tableName, Boolean persistent) Service Category: Configuration Service Description: Delete all rows from a multi-row configuration table.voidDeleteApplicationKeys(Boolean deleteExpiredKeys, Boolean deleteUnexpiredKeys) Service Category: ApplicationKeys Service Description: Delete application keys associated with this user.final voidDeleteConfigurationTable(String tableName, Boolean persistent) Service Category: Configuration Service Description: Delete an entire configuration table.voidDeleteConfigurationTableRows(String tableName, InfoTable values, Boolean persistent) Deprecated.final voidDeleteConfigurationTableRows(String tableName, InfoTable values, Boolean persistent, Boolean removeAllMatchingRows) Service Category: Configuration Service Description: Delete one or more rows from a multi-row configuration table.voiddeleteGroup(Group group) voiddeleteOrganizationalUnit(OrganizationalUnit organization) voidService 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.voidService 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.Returns the type of this entity.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.JSONObjectGetPersistentValue(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.DateTimeGetPropertyTime(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 anInfoTablecontaining 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.booleanhasProperty(String propertyName) Returnstrueif there exists a property with the specified name.booleanhasPropertyAndIsVisible(String propertyName) Returnstrueif there exists a property with the specified name and is visible to the user.booleanService Category: Security Service Description: Get Enabled Status.booleanIsLocked()Service Category: Security Service Description: Get Locked Status.voidLockUser()Service Category: Security Service Description: Service to lock a user.voidService Category: Security Service Description: Reset cached security context.final voidSetConfigurationTable(String tableName, InfoTable configurationTable, Boolean persistent) Service Category: Configuration Service Description: Set an entire configuration table.final voidSetConfigurationTableRows(String tableName, InfoTable values, Boolean persistent) Service Category: Configuration Service Description: Update/add one or more rows in a multi-row configuration table.voidSetDescription(String description) Service Category: Metadata Service Description: Overwrite/set the description for an entity.voidSetLanguagePreferences(String preferences) Service Category: Properties Service Description: Set the user's language preferences.voidSetMobileMashup(String name) Service Category: Mashups Service Description: Set mobile mashup.final voidSetMultiRowConfigurationTable(String tableName, InfoTable configurationTable, Boolean persistent) Service Category: Configuration Service Description: Set an entire multi-row configuration table.voidSetPersistentValue(String name, org.json.JSONObject value) Service Category: SessionInfo Service Description: Set persistent value.voidsetPropertyValue(String propertyName, IPrimitiveType value) Assigns the provided value to the specified property.voidSetPropertyValues(InfoTable values) Service Category: Properties Service Description: Get a subset of the current property values for this thing.voidSetTags(TagCollection tags) Service Category: Metadata Service Description: Overwrite/set the tags for an entity.voidService Category: Security Service Description: Service to unlock a user.Methods inherited from class com.thingworx.entities.ServiceProviderEntity
getInstancePublicServiceDefinitions, getInstanceServiceDefinition, getInstanceServiceDefinitions, initializeEntity, preInitializeEntity, processAPIServiceRequest, processServiceRequestMethods 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, validateConfigurationMethods inherited from class com.thingworx.persistence.common.PersistableNamedObject
getID, hasID, isTransientMethods inherited from class com.thingworx.types.NamedObject
getDescription, getName, setDescription, setName, toValueCollectionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.thingworx.entities.interfaces.IAvatar
GetAvatar, getAvatarContent, SetAvatarMethods inherited from interface com.thingworx.types.INamedObject
getDescription, getNameMethods inherited from interface com.thingworx.entities.interfaces.IPersistable
getID, hasIDMethods inherited from interface com.thingworx.security.permissions.ISecurable
getID, getNameMethods 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()Initializes this instace with default values.
-
-
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:
SetDescriptionin 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:
SetTagsin 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:
AddTagsin 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
-
deleteGroup
- Throws:
Exception
-
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
-
deleteOrganizationalUnit
@ThingworxExtensionApiMethod(since={6,6}) public void deleteOrganizationalUnit(OrganizationalUnit organization) throws Exception - Throws:
Exception
-
getInstancePropertyDefinition
@ThingworxExtensionApiMethod(since={6,6}) public PropertyDefinition getInstancePropertyDefinition(String name) Description copied from interface:IPropertyProviderReturns the specified property definition for this instance.- Specified by:
getInstancePropertyDefinitionin 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:IPropertyProviderReturns the specified property definition for this instance if visible.- Specified by:
getInstancePropertyDefinitionIfVisiblein interfaceIPropertyProvider- Parameters:
name- the name of the property- Returns:
- the definition of the property
- Throws:
Exception- if the user does not have permission to access the property
-
getInstancePropertyDefinitions
@ThingworxExtensionApiMethod(since={6,6}) public PropertyDefinitionCollection getInstancePropertyDefinitions()Description copied from interface:IPropertyProviderReturns a collection containing all property definitions belonging to this instance.- Specified by:
getInstancePropertyDefinitionsin 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:IPropertyProviderReturns the value currently assigned to the specified property.- Specified by:
getPropertyValuein interfaceIPropertyProvider- Parameters:
propertyName- the name of the property to retrieve the value of- Returns:
- the property's current value
- Throws:
Exception- if propName is null, the user is unauthorized (when applicable), or an error occurs while attempting to read from the property
-
getPropertyType
Description copied from interface:IPropertyProviderReturns the base type defined in the specified property's definition.- Specified by:
getPropertyTypein interfaceIPropertyProvider- Parameters:
propertyName- the name of the property- Returns:
- the
BaseTypesentry corresponding to the property type
-
hasProperty
Description copied from interface:IPropertyProviderReturnstrueif there exists a property with the specified name. Property names are case-sensitive.- Specified by:
hasPropertyin interfaceIPropertyProvider- Parameters:
propertyName- the property name to check- Returns:
trueif the specified property exists
-
hasPropertyAndIsVisible
@ThingworxExtensionApiMethod(since={9,0}) public boolean hasPropertyAndIsVisible(String propertyName) throws Exception Description copied from interface:IPropertyProviderReturnstrueif there exists a property with the specified name and is visible to the user. Property names are case-sensitive.- Specified by:
hasPropertyAndIsVisiblein interfaceIPropertyProvider- Parameters:
propertyName- the property name to check- Returns:
trueif the specified property exists and is visible- Throws:
Exception- if the user does not have permission to access the property
-
getPropertyValuesAsInfoTable
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable getPropertyValuesAsInfoTable() throws ExceptionDescription copied from interface:IPropertyProviderReturns anInfoTablecontaining a list of the properties belonging to this instance and their values.- Specified by:
getPropertyValuesAsInfoTablein interfaceIPropertyProvider- Returns:
- an
InfoTableof property names and their associated values - Throws:
Exception- if the user does not have permission to access the properties (when applicable), or an error occurs when attempting to read the property values
-
setPropertyValue
@ThingworxExtensionApiMethod(since={6,6}) public void setPropertyValue(String propertyName, IPrimitiveType value) throws Exception Description copied from interface:IPropertyProviderAssigns the provided value to the specified property.- Specified by:
setPropertyValuein interfaceIPropertyProvider- Parameters:
propertyName- the name of the property that is being modifiedvalue- the value to assign to the property- Throws:
Exception- if propertyName is null, the user is unauthorized (when applicable), the specified property does not exist, or an error occurs when attempting to modify the property
-
getEntityType
@ThingworxExtensionApiMethod(since={6,6}) public RelationshipTypes.ThingworxRelationshipTypes getEntityType()Description copied from class:RootEntityReturns the type of this entity.
- Specified by:
getEntityTypein 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:
SetConfigurationTablein 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:
SetMultiRowConfigurationTablein 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:
SetConfigurationTableRowsin 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:
DeleteConfigurationTablein 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:
DeleteConfigurationTableRowsin classRootEntity- Throws:
Exception
-
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:
DeleteConfigurationTableRowsin 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:
DeleteAllConfigurationTableRowsin classRootEntity- Parameters:
tableName- Configuration table name - STRINGpersistent- Persist these changes - BOOLEAN- Throws:
Exception- if an error occurs
-
getOrgNames()