Constructors
NSUserAgent()
Methods
AddOwnerContact(Integer)
CanChangePassword(Integer)
Checks if the current associate can change the password for an associateChangeOwnPassword(String,String)
Changes password for a user.ChangePassword(Integer,String,String)
Changes password for a user.ChangePasswordFromName(String,String,String)
Changes password for a user.ChangeUserType(NSUser,Integer)
Gets a user from the user name.CheckAccessGatewayRegistration()
Checks if AccessGatewayRegistration is validCreateDefaultRoleEntity()
Sets default values into a new NSRoleEntity.NetServer calculates default values (for example, Country) on the entity, which is required when creating/storing a new instance
CreateDefaultRoleEntityFromType(Integer)
Creates a new role entity of the specified role type. The role type cannot be changed after the entity is created.CreateDefaultServiceAuth()
Sets default values into a new NSServiceAuth.NetServer calculates default values (for example, Country) on the entity, which is required when creating/storing a new instance
CreateDefaultUntrustedCredentials()
Sets default values into a new NSUntrustedCredentials.NetServer calculates default values (for example, Country) on the entity, which is required when creating/storing a new instance
CreateDefaultUser()
Sets default values into a new NSUser.NetServer calculates default values (for example, Country) on the entity, which is required when creating/storing a new instance
CreateDefaultUserFromUserType(Integer)
Creates default NSUser providing the user type. Only System and Anonymous users can be created without an existing person.Use CreateDefaultUserFromUserTypeAndPersonId to create internal (i.e. Employee) or external users.
CreateDefaultUserFromUserTypeAndCredential(Integer,Integer,String,String,String)
Creates an NSPersonEntity with default values based on the contactId and credentials.CreateDefaultUserFromUserTypeAndPersonId(Integer,Integer)
Creates default NSUser providing the associate type and person id. System and Anonymous users can be created without an existing person and permits person id to be 0.CreateExternalUser(Integer,String,String,Integer,Bool)
Creates an associate of type external user.CreateUserGroup()
Creates UserGroup (Rank is assigned to the highest rank)DecryptAndSaveExternalTokens(NSTokenManagementInfo)
First asks AccessGateway to decrypt the tokens, then saves the external tokens to the DB and returns a key that can be used to retrieve themDeleteCredential(Integer,String)
Removes credential of a specific type for a userDeleteExternalUser(Integer)
Deletes an associate of type external user.DeleteRole(Integer,Integer)
Deletes the specified role and move all users associated with the role to the replacingRoleIdDeleteServiceAuth(Integer)
Deletes the NSServiceAuthDeleteUser(Integer)
Deletes the NSUserDeleteUserFromName(String)
Deletes a user, with lookup based on the user name.DeleteUserGroup(Integer,Integer)
Deletes a user group and move its members to another user groupFindCredentialsGroups(String,String)
Gets user groups holding users filtered by the searchString.This method is only relevant if the CredentialType control is of type link.
FindCredentialUsers(String,String)
Find users matching the partial name.FindRolesWithFunctionalRight(String)
Finds all roles with a given functional right. The roles matched must contain the specified functional right.FindRolesWithFunctionalRights(String[])
Finds all roles with a given set of functional rights. The roles matched must contain one or more of the specified functional rights.FindRolesWithoutFunctionalRights(String[])
Finds all roles without a given set of functional rights. The roles matched must not contain any of the specified functional rights.GenerateNewPasswordForExternalUser(String)
Generates a new password for an external user.GetAccessGatewayInfo()
Returns accessgateway registration infoGetAccessToken(String,Bool)
Gets an access token based on the current user’s session.GetAllFunctionalRights(Integer)
Gets a list of all functional rights for the given type of role.GetAllRoles(Integer)
Gets a list of all roles for the given type of role.GetAllUserGroups(Bool)
Gets all user groupsGetCredentialsGroups(Integer)
Gets user groups holding users.This method is only relevant if the CredentialType control is of type link.
GetCredentialTypes()
Gets available credential types that can be used for authenticationGetCredentialTypesForUserType(Integer)
Gets available credential types that can be used for the specified user type.GetCredentialUsers(String,String)
Gets credential users within a user groupGetCredentialUsersInGroup(String,String)
Gets credential users within a user groupGetDataRight(Integer,String,Integer)
Reads one specific data right at the given position.An exception will be thrown if non existing position is specified.
GetDataRights(Integer,String)
Reads specific a set of data rights at the given row in the rights matrix.An exception will be thrown if non existing position is specified.
GetDefaultAssociateUserName(NSUser)
Gets the default username for a personGetExternalTokens(String)
Retrieves the tokens from the DB based on the given keyGetFunctionalRights(Integer)
Gets all functional rights for the given role. Functional rights not set on the role are not included.GetRole(Integer)
Gets an NSRole object.GetRoleEntity(Integer)
Gets an NSRoleEntity object.GetServiceAuth(Integer)
Gets an NSServiceAuth object.GetUntrustedCredentials(String)
Gets a set of credentials of a specified type for authenticated user.GetUntrustedCredentialsForAssociate(Integer,String)
Gets a set of credentials of a specified type for a specified user. SecretValue is only populated for authenticated user, and system users.GetUser(Integer)
Gets an NSUser object.GetUserFromEjUserId(Integer)
Gets user from ejUserId.Used for eJournal Legacy Support.
GetUserFromName(String)
Gets a user, with lookup based on user name.GetUserFromPersonId(Integer)
Returns the user associated with the supplied person ID.GetUserGroup(Integer)
Gets an NSUserGroup object.GetUserGroupList(Integer[])
Gets an array of UserGroup objects.GetUserInfo(Integer)
Gets an NSUserInfo object.GetUserInfoList(Integer[])
Gets an array of NSUserInfo objects.GetValidUserName(Integer,Integer,Integer,String)
GetValidUserNameForNewUser(NSUser)
Generates a valid username for an unsaved user.IsNickNameUnique(Integer,String)
IsPasswordValid(Integer,Integer,Integer,String)
IsPasswordValidWithReason(Integer,Integer,Integer,String)
IsUserNameValid(Integer,Integer,Integer,String,String)
IsUserNameValidWithReason(Integer,Integer,Integer,String,String)
MakeRetired(Integer,Bool)
Retiring a user means to remove all licenses, setting person.retired=1 and associate.deleted=1. Un-retiring a user means setting person.retired=0 and associate.deleted=0RegisterWithAccessGateway(String)
Registers with access gateway if not already done, otherwise will attempt to update.RemoveLicenses(Integer)
Removes all user licenses.RemoveOwnerContact(Integer)
Removes a contact from the ownercontactlink tableRemoveUntrustedCredentials(String,String)
Removes a credentials entry for authenticated user.RemoveUntrustedCredentialsForAssociate(Integer,String,String)
Removes a credentials entry for a specified user.ResolveUserFromInfo(Integer,String,String[],String[],Integer)
Gets a user from the provided information. If the user or associated person does not exist, it will be created on demand.SaveCredential(Integer,NSCredential)
Saves (adds/replaces) current credential of the same type for the user.SaveExternalTokens(NSTokenManagementInfo)
Saves the external tokens to the DB and returns a key that can be used to retrieve themSaveRoleEntity(NSRoleEntity)
Updates the existing NSRoleEntity or creates a new NSRoleEntity if the id parameter is 0SaveServiceAuth(NSServiceAuth)
Updates the existing NSServiceAuth or creates a new NSServiceAuth if the id parameter is 0SaveUntrustedCredentials(String,NSUntrustedCredentials)
Saves credentials for authenticated user.SaveUntrustedCredentialsForAssociate(Integer,String,NSUntrustedCredential)
Saves credentials for a specified user.SaveUser(NSUser)
Updates the existing NSUser or creates a new NSUser if the id parameter is 0SaveUserFromName(String,NSUser)
Saves a user, with lookup based on the user name.SaveUserGroup(NSUserGroup)
Saves a user group. Sets UserGroup.Deleted to mark a user group as deleted and invisible in the user interface.SetDataRight(Integer,String,Integer,String)
Sets one specific data right at the given position.An exception will be thrown if non existing position is specified.