@ThingworxExtensionApiClass(since={6,6}, canInstantiate=true) public class User extends ServiceProviderEntity implements IAvatar, IPropertyProvider
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONFIGURATION_TABLE_NAME |
static java.lang.String |
EXTENDED_PROPERTY_PREFIX |
static java.lang.String |
USER_EXTENSIONS_DATE_ROW |
static java.lang.String |
USER_EXTENSIONS_NAME_ROW |
static java.lang.String |
USER_EXTENSIONS_TABLE_NAME |
static java.lang.String |
USER_EXTENSIONS_THINGSHAPE |
static java.lang.String |
USER_EXTENSIONS_VALUE_ROW |
BASIC_PROPERTIES
NAME_COMPARATOR
Constructor and Description |
---|
User() |
Modifier and Type | Method and Description |
---|---|
void |
addGroup(Group group) |
void |
addOrganizationalUnit(OrganizationalUnit organization) |
void |
AddTags(TagCollection tags)
Service Category: Metadata
Service Description: Append additional tags to an entity.
|
void |
AssignNewPassword(java.lang.String newPassword,
java.lang.String newPasswordConfirm)
Service Category: Security
Service Description: Assign new password.
|
void |
ChangePassword(java.lang.String oldPassword,
java.lang.String newPassword,
java.lang.String newPasswordConfirm)
Service Category: Security
Service Description: Change password.
|
void |
DeleteAllConfigurationTableRows(java.lang.String tableName,
java.lang.Boolean persistent)
Service Category: Configuration
Service Description: Delete all rows from a multi-row configuration table.
|
void |
DeleteApplicationKeys(java.lang.Boolean deleteExpiredKeys,
java.lang.Boolean deleteUnexpiredKeys)
Service Category: ApplicationKeys
Service Description: Delete application keys associated with this user.
|
void |
DeleteConfigurationTable(java.lang.String tableName,
java.lang.Boolean persistent)
Service Category: Configuration
Service Description: Delete an entire configuration table.
|
void |
DeleteConfigurationTableRows(java.lang.String tableName,
InfoTable values,
java.lang.Boolean persistent)
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 |
DisableUser()
Service Category: Security
Service Description: Service to disable a user.
|
java.lang.Boolean |
DoesApplicationKeyWithKeyIdExist(java.lang.String keyId)
Service Category: ApplicationKeys
Service Description: Returns true if the specified key id associated with this user exists.
|
void |
EnableUser()
Service Category: Security
Service Description: Service to enable a user.
|
InfoTable |
GetApplicationKeyExpirationInfo(java.lang.Boolean expiredKeys,
java.lang.Boolean unexpiredKeys)
Service Category: ApplicationKeys
Service Description: Get application key expiration info associated with this user.
|
RelationshipTypes.ThingworxRelationshipTypes |
getEntityType()
|
EntityReferenceCollection |
getGroups() |
InfoTable |
GetGroups()
Service Category: Groups
Service Description: Get list of groups that this user is a member of.
|
PropertyDefinition |
getInstancePropertyDefinition(java.lang.String name)
Returns the specified property definition for this instance. |
PropertyDefinitionCollection |
getInstancePropertyDefinitions()
Returns a collection containing all property definitions belonging to this instance. |
java.lang.String |
getLanguage()
Get the user's language preferences. |
java.lang.String |
GetMobileMashup()
Service Category: Mashups
Service Description: Get mobile mashup.
|
InfoTable |
GetNamedPropertyValues(InfoTable propertyNames)
Service Category: Properties
Service Description: Get a subset of the current property values for this thing.
|
InfoTable |
GetNamedPropertyValuesVTQ(InfoTable propertyNames)
Service Category: Properties
Service Description: Get the current property values for this thing as VTQ.
|
ScriptFriendlyArrayList<java.lang.String> |
getOrganizationalUnitNames() |
InfoTable |
GetOrganizationalUnits()
Service Category: OrgUnits
Service Description: Get list of organizational units that this user is a member of.
|
ScriptFriendlyArrayList<java.lang.String> |
getOrganizationNames() |
InfoTable |
GetOrganizations()
Service Category: Organizations
Service Description: Get list of organizations that this user is a member of.
|
org.json.JSONObject |
GetPersistentValue(java.lang.String name)
Service Category: SessionInfo
Service Description: Get persistent value.
|
java.lang.String |
GetPropertyQuality(java.lang.String propertyName)
Service Category: Properties
Service Description: Get the quality for a specific property.
|
org.joda.time.DateTime |
GetPropertyTime(java.lang.String propertyName)
Service Category: Properties
Service Description: Get the timestamp for a specific property.
|
BaseTypes |
getPropertyType(java.lang.String propertyName)
Returns the base type defined in the specified property's definition. |
IPrimitiveType |
getPropertyValue(java.lang.String propertyName)
Returns the value currently assigned to the specified property. |
InfoTable |
GetPropertyValues()
Service Category: Properties
Service Description: Get the current property values for this thing.
|
InfoTable |
getPropertyValuesAsInfoTable()
Returns an InfoTable containing a list of the properties belonging to this instance and their
values. |
InfoTable |
GetPropertyValuesVTQ()
Service Category: Properties
Service Description: Get the current property values for this thing as VTQ.
|
InfoTable |
GetUserPreferenceInfo()
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(java.lang.String propertyName)
Returns true if there exists a property with the specified name. |
boolean |
IsEnabled()
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 |
ResetSecurityContext()
Service Category: Security
Service Description: Reset cached security context.
|
void |
SetConfigurationTable(java.lang.String tableName,
InfoTable configurationTable,
java.lang.Boolean persistent)
Service Category: Configuration
Service Description: Set an entire configuration table.
|
void |
SetConfigurationTableRows(java.lang.String tableName,
InfoTable values,
java.lang.Boolean persistent)
Service Category: Configuration
Service Description: Update/add one or more rows in a multi-row configuration table.
|
void |
SetDescription(java.lang.String description)
Service Category: Metadata
Service Description: Overwrite/set the description for an entity.
|
void |
SetLanguagePreferences(java.lang.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(java.lang.String name)
Service Category: Mashups
Service Description: Set mobile mashup.
|
void |
SetMultiRowConfigurationTable(java.lang.String tableName,
InfoTable configurationTable,
java.lang.Boolean persistent)
Service Category: Configuration
Service Description: Set an entire multi-row configuration table.
|
void |
SetPersistentValue(java.lang.String name,
org.json.JSONObject value)
Service Category: SessionInfo
Service Description: Set persistent value.
|
void |
setPropertyValue(java.lang.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 |
UnlockUser()
Service Category: Security
Service Description: Service to unlock a user.
|
getInstancePublicServiceDefinitions, getInstanceServiceDefinition, getInstanceServiceDefinitions, initializeEntity, preInitializeEntity, processAPIServiceRequest, processServiceRequest
AddConfigurationTableDefinition, addDesignTimePermission, AddDesignTimePermission, addRunTimePermission, AddRunTimePermission, addVisibilityPermission, AddVisibilityPermission, CheckDesignTimePermission, CheckDesignTimePermissionForGroup, CheckDesignTimePermissionForUser, CheckPermission, CheckPermissionForGroup, CheckPermissionForUser, cleanupEntity, 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, 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, persistDesignTimePermissions, persistRunTimePermissions, persistVisibilityPermissions, RemoveTags, SaveConfigurationTables, SetAvatar, setConfigurationSetting, setDesignTimePermissions, SetDesignTimePermissionsAsJSON, setDocumentationContent, setExtensionObject, SetHomeMashup, setLastModifiedDate, setOwner, SetOwner, SetProjectName, setRunTimePermissions, SetRunTimePermissionsAsJSON, setStringConfigurationSetting, setVisibilityPermissions, SetVisibilityPermissionsAsJSON, toJSON, toJSONDefinition, validateConfiguration
getID, hasID, isTransient
getDescription, getName, setDescription, setName, toValueCollection
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
GetAvatar, getAvatarContent, SetAvatar
getID, hasID
getDescription, getName
getID, getName
public static final java.lang.String EXTENDED_PROPERTY_PREFIX
public static final java.lang.String USER_EXTENSIONS_TABLE_NAME
public static final java.lang.String CONFIGURATION_TABLE_NAME
public static final java.lang.String USER_EXTENSIONS_THINGSHAPE
public static final java.lang.String USER_EXTENSIONS_NAME_ROW
public static final java.lang.String USER_EXTENSIONS_VALUE_ROW
public static final java.lang.String USER_EXTENSIONS_DATE_ROW
@ThingworxExtensionApiMethod(since={6,6}) public void SetDescription(java.lang.String description) throws java.lang.Exception
SetDescription
in class RootEntity
description
- Description for an entity - STRINGjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void SetTags(TagCollection tags) throws java.lang.Exception
SetTags
in class RootEntity
tags
- Tags for an entity - TAGSjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void AddTags(TagCollection tags) throws java.lang.Exception
AddTags
in class RootEntity
tags
- Tags for an entity - TAGSjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void ResetSecurityContext()
@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String GetMobileMashup()
@ThingworxExtensionApiMethod(since={6,6}) public void SetMobileMashup(java.lang.String name) throws java.lang.Exception
name
- Mobile mashup name - MASHUPNAMEjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public org.json.JSONObject GetPersistentValue(java.lang.String name) throws java.lang.Exception
name
- Parameter name - STRINGjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void SetPersistentValue(java.lang.String name, org.json.JSONObject value) throws java.lang.Exception
name
- Parameter name - STRINGvalue
- Parameter value - JSONjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void ChangePassword(java.lang.String oldPassword, java.lang.String newPassword, java.lang.String newPasswordConfirm) throws java.lang.Exception
oldPassword
- Previous Password - STRINGnewPassword
- New Password - STRINGnewPasswordConfirm
- New Password Confirmation - STRINGjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void AssignNewPassword(java.lang.String newPassword, java.lang.String newPasswordConfirm) throws java.lang.Exception
newPassword
- New Password - STRINGnewPasswordConfirm
- New Password Confirmation - STRINGjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6,5}) public void SetLanguagePreferences(java.lang.String preferences) throws java.lang.Exception
preferences
- The new language preferences, ordered best first, comma separatedjava.lang.Exception
- Thrown if the user in the current security context attempts to call this on a different user and is not an
administrator@ThingworxExtensionApiMethod(since={6,6,5}) public InfoTable GetUserPreferenceInfo() throws java.lang.Exception
java.lang.Exception
- Thrown if the user in the current security context attempts to call this on a different user and is not an
administrator@ThingworxExtensionApiMethod(since={6,6}) public void DisableUser() throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void EnableUser() throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public boolean IsEnabled() throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={7,2}) public void LockUser() throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={7,2}) public void UnlockUser() throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={7,2}) public boolean IsLocked() throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetGroups() throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetOrganizationalUnits() throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetOrganizations() throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetApplicationKeyExpirationInfo(java.lang.Boolean expiredKeys, java.lang.Boolean unexpiredKeys) throws java.lang.Exception
expiredKeys
- Expired keys - BOOLEANunexpiredKeys
- Unexpired keys - BOOLEANjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public java.lang.Boolean DoesApplicationKeyWithKeyIdExist(java.lang.String keyId) throws java.lang.Exception
keyId
- The Key Id - STRINGjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void DeleteApplicationKeys(java.lang.Boolean deleteExpiredKeys, java.lang.Boolean deleteUnexpiredKeys) throws java.lang.Exception
deleteExpiredKeys
- Delete expired keys - BOOLEANdeleteUnexpiredKeys
- Delete unexpired keys - BOOLEANjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public EntityReferenceCollection getGroups()
@ThingworxExtensionApiMethod(since={6,6}) public void addGroup(Group group) throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void deleteGroup(Group group) throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public ScriptFriendlyArrayList<java.lang.String> getOrganizationalUnitNames()
@ThingworxExtensionApiMethod(since={6,6}) public ScriptFriendlyArrayList<java.lang.String> getOrganizationNames()
@ThingworxExtensionApiMethod(since={6,6}) public void addOrganizationalUnit(OrganizationalUnit organization) throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void deleteOrganizationalUnit(OrganizationalUnit organization) throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public PropertyDefinition getInstancePropertyDefinition(java.lang.String name)
IPropertyProvider
getInstancePropertyDefinition
in interface IPropertyProvider
name
- the name of the property@ThingworxExtensionApiMethod(since={6,6}) public PropertyDefinitionCollection getInstancePropertyDefinitions()
IPropertyProvider
getInstancePropertyDefinitions
in interface IPropertyProvider
@ThingworxExtensionApiMethod(since={7,4}) public java.lang.String getLanguage()
@ThingworxExtensionApiMethod(since={6,6}) public IPrimitiveType getPropertyValue(java.lang.String propertyName) throws java.lang.Exception
IPropertyProvider
getPropertyValue
in interface IPropertyProvider
propertyName
- the name of the property to retrieve the value ofjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public BaseTypes getPropertyType(java.lang.String propertyName)
IPropertyProvider
getPropertyType
in interface IPropertyProvider
propertyName
- the name of the propertyBaseTypes
entry corresponding to the property type@ThingworxExtensionApiMethod(since={6,6}) public boolean hasProperty(java.lang.String propertyName)
IPropertyProvider
true
if there exists a property with the specified name. Property names are case-sensitive.hasProperty
in interface IPropertyProvider
propertyName
- the property name to checktrue
if the specified property exists@ThingworxExtensionApiMethod(since={6,6}) public InfoTable getPropertyValuesAsInfoTable() throws java.lang.Exception
IPropertyProvider
InfoTable
containing a list of the properties belonging to this instance and their
values.getPropertyValuesAsInfoTable
in interface IPropertyProvider
InfoTable
of property names and their associated valuesjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void setPropertyValue(java.lang.String propertyName, IPrimitiveType value) throws java.lang.Exception
setPropertyValue
in interface IPropertyProvider
propertyName
- the name of the property that is being modifiedvalue
- the value to assign to the propertyjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public RelationshipTypes.ThingworxRelationshipTypes getEntityType()
RootEntity
Returns the type of this entity.
getEntityType
in class RootEntity
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetPropertyValues() throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void SetPropertyValues(InfoTable values) throws java.lang.Exception
values
- Property values - INFOTABLEjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetNamedPropertyValues(InfoTable propertyNames) throws java.lang.Exception
propertyNames
- Property names - INFOTABLEjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetPropertyValuesVTQ() throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetNamedPropertyValuesVTQ(InfoTable propertyNames) throws java.lang.Exception
propertyNames
- Property names - INFOTABLEjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String GetPropertyQuality(java.lang.String propertyName) throws java.lang.Exception
propertyName
- Property name - STRINGjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public org.joda.time.DateTime GetPropertyTime(java.lang.String propertyName) throws java.lang.Exception
propertyName
- Property name - STRINGjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public final void SetConfigurationTable(java.lang.String tableName, InfoTable configurationTable, java.lang.Boolean persistent) throws java.lang.Exception
SetConfigurationTable
in class RootEntity
tableName
- Configuration table name - STRINGconfigurationTable
- Configuration table content - INFOTABLEpersistent
- Persist these changes - BOOLEANjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public final void SetMultiRowConfigurationTable(java.lang.String tableName, InfoTable configurationTable, java.lang.Boolean persistent) throws java.lang.Exception
SetMultiRowConfigurationTable
in class RootEntity
tableName
- Configuration table name - STRINGconfigurationTable
- Configuration table content - INFOTABLEpersistent
- Persist these changes - BOOLEANjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public final void SetConfigurationTableRows(java.lang.String tableName, InfoTable values, java.lang.Boolean persistent) throws java.lang.Exception
SetConfigurationTableRows
in class RootEntity
tableName
- Configuration table name - STRINGvalues
- Configuration table rows to modify - INFOTABLEpersistent
- Persist these changes - BOOLEANjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public final void DeleteConfigurationTable(java.lang.String tableName, java.lang.Boolean persistent) throws java.lang.Exception
DeleteConfigurationTable
in class RootEntity
tableName
- Configuration table name - STRINGpersistent
- Persist these changes - BOOLEANjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public final void DeleteConfigurationTableRows(java.lang.String tableName, InfoTable values, java.lang.Boolean persistent) throws java.lang.Exception
DeleteConfigurationTableRows
in class RootEntity
tableName
- Configuration table name - STRINGvalues
- Configuration table rows to modify - INFOTABLEpersistent
- Persist these changes - BOOLEANjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public final void DeleteAllConfigurationTableRows(java.lang.String tableName, java.lang.Boolean persistent) throws java.lang.Exception
DeleteAllConfigurationTableRows
in class RootEntity
tableName
- Configuration table name - STRINGpersistent
- Persist these changes - BOOLEANjava.lang.Exception
- If an error occurs