@ThingworxExtensionApiClass(since={7,2,0}, canInstantiate=true) public class UserManagementSubsystem extends Subsystem
| Modifier and Type | Field and Description |
|---|---|
java.lang.Integer |
_passwordConfigurableMinLength |
static int |
DEFAULT_PASSWORD_HASH_SIZE |
static int |
DEFAULT_PASSWORD_SALT_SIZE |
static java.lang.String |
LOGIN_ATTEMPTS_MAX |
static java.lang.String |
LOGIN_ATTEMPTS_RESET_MINUTES |
static java.lang.String |
LOGIN_LOCKED_MINUTES |
static java.lang.String |
LOGIN_SETTINGS |
static int |
MIN_PASSWORD_HASH_SIZE |
static int |
MIN_PASSWORD_SALT_SIZE |
static int |
PASSWORD_ABSOLUTE_MAX_LENGTH |
static int |
PASSWORD_ABSOLUTE_MIN_LENGTH |
static int |
PASSWORD_SYSTEM_DEFAULT_MIN_LENGTH |
static java.lang.String |
SESSION_TIMEOUT_SETTINGS |
static java.lang.String |
SYSTEM_BLACKLIST_FILE |
DEFAULT_AUTOSTART, DEFAULT_ENABLED, METRICS_DATA_SHAPEBASIC_PROPERTIESNAME_COMPARATOR| Constructor and Description |
|---|
UserManagementSubsystem() |
| Modifier and Type | Method and Description |
|---|---|
void |
AddSessionShape(java.lang.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(java.lang.String userName,
java.lang.Boolean deleteExpiredKeys,
java.lang.Boolean deleteUnexpiredKeys)
Service Category: ApplicationKeys
Service Description: Delete application keys associated with the user specified.
|
void |
DeleteSessionShape(java.lang.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. |
java.lang.Boolean |
DoesApplicationKeyWithKeyIdExist(java.lang.String userName,
java.lang.String keyId)
Service Category: ApplicationKeys
Service Description: Returns true if the specified key id associated with the user specified exists.
|
InfoTable |
GetApplicationKeyExpirationInfo(java.lang.String userName,
java.lang.Boolean expiredKeys,
java.lang.Boolean unexpiredKeys)
Service Category: ApplicationKeys
Service Description: Get application key information associated with the user specified.
|
java.lang.Double |
GetPlatformSessionTimeout()
Service Category: Settings
Service Description: Returns the login session timeout in minutes.
|
java.lang.Boolean |
GetRestrictConcurrentUserSessions()
Service Category: Settings
Service Description: Returns whether concurrent user sessions are restricted.
|
InfoTable |
GetSessionShapes()
Service Category: Sessions
Service Description: Return a list of thing shapes assigned to user sessions.
|
java.lang.Integer |
GetUserCount()
Service Category: Entities
Service Description: Return a count of users.
|
java.lang.Boolean |
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. |
java.lang.Boolean |
IsUserServiceSelfBypass()
Service Category: Settings
Service Description: Returns whether users bypass permissions when accessing services on their own User entity.
|
void |
SetDefaultToHttpFormAuth(java.lang.Boolean formAuth)
Service Category: Settings
Service Description: Sets if unauthenticated users should get redirect to Form Login instead of Basic Auth challenge.
|
void |
SetRestrictConcurrentUserSessions(java.lang.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.
|
getDependsOn, getEntityType, getFriendlyName, GetPerformanceMetrics, getSubsystemPerformanceMetrics, getSubsystemState, GetSubsystemState, initializeSubsystem, isAutoStart, isEnabled, isRunning, IsRunning, ResetPerformanceMetrics, resetSubsystemPerformanceMetrics, Restart, setAutoStart, setDependsOn, setFriendlyName, setRunning, startSubsystem, stopSubsystemgetInstancePublicServiceDefinitions, getInstanceServiceDefinition, getInstanceServiceDefinitions, initializeEntity, preInitializeEntity, processAPIServiceRequest, processServiceRequestAddConfigurationTableDefinition, addDesignTimePermission, AddDesignTimePermission, addRunTimePermission, AddRunTimePermission, AddTags, addVisibilityPermission, AddVisibilityPermission, CheckDesignTimePermission, CheckDesignTimePermissionForGroup, CheckDesignTimePermissionForUser, CheckPermission, CheckPermissionForGroup, CheckPermissionForUser, cleanupEntity, cleanupEntity, DeleteAllConfigurationTableRows, DeleteConfigurationTable, 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, 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, SetConfigurationTable, SetConfigurationTableRows, SetDescription, setDesignTimePermissions, SetDesignTimePermissionsAsJSON, setDocumentationContent, setExtensionObject, SetHomeMashup, setLastModifiedDate, SetMultiRowConfigurationTable, setOwner, SetOwner, SetProjectName, setRunTimePermissions, SetRunTimePermissionsAsJSON, setStringConfigurationSetting, SetTags, setVisibilityPermissions, SetVisibilityPermissionsAsJSON, toJSON, toJSONDefinition, validateConfigurationgetID, hasID, isTransientgetDescription, getName, setDescription, setName, toValueCollectionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetID, hasIDgetDescription, getNamegetID, getNamepublic static final java.lang.String SESSION_TIMEOUT_SETTINGS
public static final java.lang.String LOGIN_SETTINGS
public static final java.lang.String LOGIN_ATTEMPTS_MAX
public static final java.lang.String LOGIN_ATTEMPTS_RESET_MINUTES
public static final java.lang.String LOGIN_LOCKED_MINUTES
public static final int PASSWORD_SYSTEM_DEFAULT_MIN_LENGTH
public static final int PASSWORD_ABSOLUTE_MIN_LENGTH
public static final int PASSWORD_ABSOLUTE_MAX_LENGTH
public static final java.lang.String SYSTEM_BLACKLIST_FILE
public static final int MIN_PASSWORD_HASH_SIZE
public static final int DEFAULT_PASSWORD_HASH_SIZE
public static final int MIN_PASSWORD_SALT_SIZE
public static final int DEFAULT_PASSWORD_SALT_SIZE
public java.lang.Integer _passwordConfigurableMinLength
@ThingworxExtensionApiMethod(since={7,2,0}) public void Start() throws java.lang.Exception
@ThingworxExtensionApiMethod(since={7,2,0}) public void Stop() throws java.lang.Exception
@ThingworxExtensionApiMethod(since={7,2,0}) public java.lang.Double GetPlatformSessionTimeout() throws java.lang.Exception
java.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={7,2,0}) public InfoTable GetSessionShapes() throws java.lang.Exception
java.lang.Exception - If an error occurs
@ThingworxExtensionApiMethod(since={7,2,0}) public void DeleteSessionShape(java.lang.String name) throws java.lang.Exception
name - Name of the ThingShape to be removedjava.lang.Exception - If an unexpected error happens getting or persisting the User Session Shape list@ThingworxExtensionApiMethod(since={7,2,0}) public void AddSessionShape(java.lang.String name) throws java.lang.Exception
name - Name of the ThingShape to be addedjava.lang.Exception - if a ThingShape with the given name does not exist or an unexpected error happens getting or persisting the User
Session Shape list@ThingworxExtensionApiMethod(since={7,2,0}) public java.lang.Integer GetUserCount() throws java.lang.Exception
java.lang.Exception - If an error occurs
@ThingworxExtensionApiMethod(since={7,2,0}) public InfoTable GetApplicationKeyExpirationInfo(java.lang.String userName, java.lang.Boolean expiredKeys, java.lang.Boolean unexpiredKeys) throws java.lang.Exception
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 informationjava.lang.Exception - an unexpected error occurs@ThingworxExtensionApiMethod(since={7,2,0}) public java.lang.Boolean DoesApplicationKeyWithKeyIdExist(java.lang.String userName, java.lang.String keyId) throws java.lang.Exception
userName - Optional. The Username of the user that you want to check the App Key for.keyId - The application key to check for existencejava.lang.Exception - If an error occurs
@ThingworxExtensionApiMethod(since={6,6}) public void DeleteApplicationKeys(java.lang.String userName, java.lang.Boolean deleteExpiredKeys, java.lang.Boolean deleteUnexpiredKeys) throws java.lang.Exception
userName - User name - USERNAMEdeleteExpiredKeys - Delete expired keys - BOOLEANdeleteUnexpiredKeys - Delete unexpired keys - BOOLEANjava.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={7,2,0}) public java.lang.Boolean IsUserServiceSelfBypass() throws java.lang.Exception
java.lang.Exception - If an error occurs
@ThingworxExtensionApiMethod(since={7,4,8}) public void SetDefaultToHttpFormAuth(java.lang.Boolean formAuth) throws java.lang.Exception
formAuth - When true, unauthenticated users will get redirected to Form Login - BOOLEANjava.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={7,4,8}) public java.lang.Boolean IsDefaultToHttpFormAuth()
@ThingworxExtensionApiMethod(since={7,4,8}) public void SetRestrictConcurrentUserSessions(java.lang.Boolean restrict) throws java.lang.Exception
restrict - When true, users number of concurrent sessions will be restricted - BOOLEANjava.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={7,4,8}) public java.lang.Boolean GetRestrictConcurrentUserSessions() throws java.lang.Exception
java.lang.Exception - If an error occurs