Class UserManagementSubsystem
java.lang.Object
com.thingworx.types.NamedObject
com.thingworx.persistence.common.PersistableNamedObject
com.thingworx.entities.RootEntity
com.thingworx.entities.ServiceProviderEntity
com.thingworx.entities.ExtensibleRootEntity
com.thingworx.system.subsystems.Subsystem
com.thingworx.system.subsystems.users.UserManagementSubsystem
- 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={7,2,0},
canInstantiate=true)
public class UserManagementSubsystem
extends Subsystem
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final long
static final int
static final long
static final boolean
static final String
static final String
static final String
static final String
static final int
static final int
static final int
static final int
static final int
static final String
static final String
static final String
Fields inherited from class com.thingworx.system.subsystems.Subsystem
DEFAULT_AUTOSTART, DEFAULT_ENABLED
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
AddSessionShape
(String name) Service Category: Sessions Service Description: Adds the specified thing shape to the list of those assigned as session shapes.
Will add a ThingShape with the given name to the User Session Shape list.void
DeleteApplicationKeys
(String userName, Boolean deleteExpiredKeys, Boolean deleteUnexpiredKeys) Service Category: ApplicationKeys Service Description: Delete application keys associated with the user specified.void
DeleteSessionShape
(String name) Service Category: Sessions Service Description: Deletes the specified thing shape from the list of those assigned as session shapes.
Will remove a ThingShape with the given name from the User Session Shape list.DoesApplicationKeyWithKeyIdExist
(String userName, String keyId) Service Category: ApplicationKeys Service Description: Returns true if the specified key id associated with the user specified exists.GetApplicationKeyExpirationInfo
(String userName, Boolean expiredKeys, Boolean unexpiredKeys) Service Category: ApplicationKeys Service Description: Get application key information associated with the user specified.Service Category: Settings Service Description: Returns the login session timeout in minutes.Service Category: Settings Service Description: Returns whether concurrent user sessions are restricted.Service Category: Sessions Service Description: Return a list of thing shapes assigned to user sessions.Service Category: Entities Service Description: Return a count of users.Service Category: Settings Service Description: Returns setting for defaulting unauthenticated users to Form Login.
Returns whether or not the Subsystem is configured to restrict concurrent user sessions.Service Category: Settings Service Description: Returns whether users bypass permissions when accessing services on their own User entity.void
SetDefaultToHttpFormAuth
(Boolean formAuth) Service Category: Settings Service Description: Sets if unauthenticated users should get redirect to Form Login instead of Basic Auth challenge.void
SetRestrictConcurrentUserSessions
(Boolean restrict) Service Category: Settings Service Description: Sets if should restrict the number of concurrent user sessions.void
Start()
Service Category: Lifecycle Service Description: Starts the sub-system.void
Stop()
Service Category: Lifecycle Service Description: Stops the sub-system.Methods inherited from class com.thingworx.system.subsystems.Subsystem
getDependsOn, getEntityType, getFriendlyName, GetPerformanceMetrics, getSubsystemPerformanceMetrics, getSubsystemState, GetSubsystemState, initializeSubsystem, isAutoStart, isEnabled, isRunning, IsRunning, ResetPerformanceMetrics, resetSubsystemPerformanceMetrics, Restart, setAutoStart, setDependsOn, setFriendlyName, setRunning, startSubsystem, stopSubsystem
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
-
Field Details
-
SESSION_TIMEOUT_SETTINGS
- See Also:
-
LOGIN_SETTINGS
- See Also:
-
LOGIN_ATTEMPTS_MAX
- See Also:
-
LOGIN_ATTEMPTS_RESET_MINUTES
- See Also:
-
LOGIN_LOCKED_MINUTES
- See Also:
-
PASSWORD_SYSTEM_DEFAULT_MIN_LENGTH
public static final int PASSWORD_SYSTEM_DEFAULT_MIN_LENGTH- See Also:
-
PASSWORD_ABSOLUTE_MIN_LENGTH
public static final int PASSWORD_ABSOLUTE_MIN_LENGTH- See Also:
-
PASSWORD_ABSOLUTE_MAX_LENGTH
public static final int PASSWORD_ABSOLUTE_MAX_LENGTH- See Also:
-
SYSTEM_BLACKLIST_FILE
- See Also:
-
PASSWORD_VALIDATION_REGEX
- See Also:
-
MIN_PASSWORD_HASH_SIZE
public static final int MIN_PASSWORD_HASH_SIZE- See Also:
-
DEFAULT_PASSWORD_HASH_SIZE
public static final int DEFAULT_PASSWORD_HASH_SIZE- See Also:
-
MIN_PASSWORD_SALT_SIZE
public static final int MIN_PASSWORD_SALT_SIZE- See Also:
-
DEFAULT_PASSWORD_SALT_SIZE
public static final int DEFAULT_PASSWORD_SALT_SIZE- See Also:
-
DEFAULT_THINGGROUP_VISIBILITY_PERM_DELEGATION_ENABLED
public static final boolean DEFAULT_THINGGROUP_VISIBILITY_PERM_DELEGATION_ENABLED- See Also:
-
DEFAULT_THINGGROUP_DIRECTPARENTS_CACHE_MAXSIZE
public static final long DEFAULT_THINGGROUP_DIRECTPARENTS_CACHE_MAXSIZE- See Also:
-
DEFAULT_THINGGROUP_DIRECTPARENTS_CACHE_CONCURRENCY_LEVEL
public static final int DEFAULT_THINGGROUP_DIRECTPARENTS_CACHE_CONCURRENCY_LEVEL- See Also:
-
DEFAULT_THINGGROUP_INHERITEDVISPERM_CACHE_MAXSIZE
public static final long DEFAULT_THINGGROUP_INHERITEDVISPERM_CACHE_MAXSIZE- See Also:
-
DEFAULT_THINGGROUP_INHERITEDVISPERM_CACHE_CONCURRENCY_LEVEL
public static final int DEFAULT_THINGGROUP_INHERITEDVISPERM_CACHE_CONCURRENCY_LEVEL- See Also:
-
_passwordConfigurableMinLength
-
-
Constructor Details
-
UserManagementSubsystem
public UserManagementSubsystem()
-
-
Method Details
-
Start
- Service Category:
- Lifecycle
- Service Description:
- Starts the sub-system.
-
Stop
- Service Category:
- Lifecycle
- Service Description:
- Stops the sub-system.
-
GetPlatformSessionTimeout
@ThingworxExtensionApiMethod(since={7,2,0}) public Double GetPlatformSessionTimeout() throws Exception- Service Category:
- Settings
- Service Description:
- Returns the login session timeout in minutes.
- Returns:
- timeout Session timeout in minutes - NUMBER
- Throws:
Exception
- If an error occurs
-
GetSessionShapes
- Service Category:
- Sessions
- Service Description:
- Return a list of thing shapes assigned to user sessions.
- Returns:
- List of shapes in the User Session Shape list.
- Throws:
Exception
- If an error occurs
Gets a list of ThingShapes in the User Session Shape list.
-
DeleteSessionShape
@ThingworxExtensionApiMethod(since={7,2,0}) public void DeleteSessionShape(String name) throws Exception - Service Category:
- Sessions
- Service Description:
- Deletes the specified thing shape from the list of those assigned as session shapes.
Will remove a ThingShape with the given name from the User Session Shape list.- Parameters:
name
- Name of the ThingShape to be removed- Throws:
Exception
- If an unexpected error happens getting or persisting the User Session Shape list
-
AddSessionShape
@ThingworxExtensionApiMethod(since={7,2,0}) public void AddSessionShape(String name) throws Exception - Service Category:
- Sessions
- Service Description:
- Adds the specified thing shape to the list of those assigned as session shapes.
Will add a ThingShape with the given name to the User Session Shape list.- Parameters:
name
- Name of the ThingShape to be added- Throws:
Exception
- if a ThingShape with the given name does not exist or an unexpected error happens getting or persisting the User Session Shape list
-
GetUserCount
- Service Category:
- Entities
- Service Description:
- Return a count of users.
- Returns:
- a count of the users
- Throws:
Exception
- If an error occurs
Gets a count of the Users in this ThingWorx Instance.
-
GetApplicationKeyExpirationInfo
@ThingworxExtensionApiMethod(since={7,2,0}) public InfoTable GetApplicationKeyExpirationInfo(String userName, Boolean expiredKeys, Boolean unexpiredKeys) throws Exception - Service Category:
- ApplicationKeys
- Service Description:
- Get application key information associated with the user specified. 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.
Gets the Application Key expiration information for a given User.- Parameters:
userName
- the user to check Application Key expiration informationexpiredKeys
- true if results should include the expired AppKey informationunexpiredKeys
- true if results should include the Unexpired AppKey information- Returns:
- List of the Application Keys associated with this user and their expiration information. Results returned in ApplicationKeyExpirationInfoCollection DataShape
- Throws:
Exception
- an unexpected error occurs
-
DoesApplicationKeyWithKeyIdExist
@ThingworxExtensionApiMethod(since={7,2,0}) public Boolean DoesApplicationKeyWithKeyIdExist(String userName, String keyId) throws Exception - Service Category:
- ApplicationKeys
- Service Description:
- Returns true if the specified key id associated with the user specified exists.
- Parameters:
userName
- Optional. The Username of the user that you want to check the App Key for.keyId
- The application key to check for existence- Returns:
- true if the Application Key exists
- Throws:
Exception
- If an error occurs
Checks if an Application Key with the given ID exists and optionally, is associated with a given user. If no Username is specified, this will check if the Application Key exists, independent of which user it is associated with.
-
DeleteApplicationKeys
@ThingworxExtensionApiMethod(since={6,6}) public void DeleteApplicationKeys(String userName, Boolean deleteExpiredKeys, Boolean deleteUnexpiredKeys) throws Exception - Service Category:
- ApplicationKeys
- Service Description:
- Delete application keys associated with the user specified. 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:
userName
- User name - USERNAMEdeleteExpiredKeys
- Delete expired keys - BOOLEANdeleteUnexpiredKeys
- Delete unexpired keys - BOOLEAN- Throws:
Exception
- If an error occurs
-
IsUserServiceSelfBypass
@ThingworxExtensionApiMethod(since={7,2,0}) public Boolean IsUserServiceSelfBypass() throws Exception- Service Category:
- Settings
- Service Description:
- Returns whether users bypass permissions when accessing services on their own User entity.
- Returns:
- true is the Subsystem is configured for User Service Self Bypass
- Throws:
Exception
- If an error occurs
Returns whether or not the Subsystem is configured to allow users to call services on their own User entity regardless of permissions. This is an Admin Only Service.
-
SetDefaultToHttpFormAuth
@ThingworxExtensionApiMethod(since={7,4,8}) public void SetDefaultToHttpFormAuth(Boolean formAuth) throws Exception - Service Category:
- Settings
- Service Description:
- Sets if unauthenticated users should get redirect to Form Login instead of Basic Auth challenge.
- Parameters:
formAuth
- When true, unauthenticated users will get redirected to Form Login - BOOLEAN- Throws:
Exception
- If an error occurs
-
IsDefaultToHttpFormAuth
- Service Category:
- Settings
- Service Description:
- Returns setting for defaulting unauthenticated users to Form Login.
Returns whether or not the Subsystem is configured to restrict concurrent user sessions. This is an Admin Only Service.- Returns:
- true if the Subsystem is configured to restrict concurrent user sessions
-
SetRestrictConcurrentUserSessions
@ThingworxExtensionApiMethod(since={7,4,8}) public void SetRestrictConcurrentUserSessions(Boolean restrict) throws Exception - Service Category:
- Settings
- Service Description:
- Sets if should restrict the number of concurrent user sessions.
- Parameters:
restrict
- When true, users number of concurrent sessions will be restricted - BOOLEAN- Throws:
Exception
- If an error occurs
-
GetRestrictConcurrentUserSessions
@ThingworxExtensionApiMethod(since={7,4,8}) public Boolean GetRestrictConcurrentUserSessions() throws Exception- Service Category:
- Settings
- Service Description:
- Returns whether concurrent user sessions are restricted.
- Returns:
- true if the Subsystem is configured to restrict concurrent user sessions
- Throws:
Exception
- If an error occurs
Returns whether or not the Subsystem is configured to restrict concurrent user sessions. This is an Admin Only Service.
-