Click or drag to resize
UserDataSource Class
This class is used to retrieve or update user related information.
Inheritance Hierarchy

Namespace: ArtDatabanken.WebService.Client.UserService
Assembly: ArtDatabanken.WebService.Client (in ArtDatabanken.WebService.Client.dll) Version: 1.3.0.0 (1.3.0.0)
Syntax
public class UserDataSource : UserDataSourceBase, 
	IUserDataSource, IDataSource

The UserDataSource type exposes the following members.

Constructors
  NameDescription
Public methodUserDataSource
Create a UserDataSource instance.
Top
Methods
  NameDescription
Public methodActivateRoleMembership(IUserContext, Int32)
Activates the role membership of the user. In this case thes user is the user included in the client information.
Public methodActivateRoleMembership(IUserContext, Int32, Int32)
Administrator activates a role membership for an user.
Public methodActivateUserAccount
Activates user account.
Public methodAddUserToRole
Adds user to a role
Public methodApplicationActionExists(IUserContext, String)
Check if application action identifier exists in users current authorities
Public methodApplicationActionExists(IUserContext, IRole, String)
Check if application action identifier exists in the authorities for a role
Public methodCheckStringIsUnique
Check if a translation string is unique for this object/property and locale.
Public methodCreateAuthority
Create new authority.
Public methodCreateOrganization
Create new organization.
Public methodCreateOrganizationCategory
Create new organization category.
Public methodCreatePerson
Create new person.
Public methodCreateRole
Create new role.
Public methodCreateUser
Create new user.
Public methodDeleteAuthority
Delete an authority.
Public methodDeleteOrganization
Delete an organization.
Public methodDeletePerson
Delete a person.
Public methodDeleteRole
Delete a role.
Public methodDeleteUser
Delete a user.
Public methodGetAddressTypes
Get all address types.
Public methodGetAgreementResponses
Get all agreement responses for specified user.
Public methodGetAgreements
Get all agreements.
Public methodGetApplicationUsers
Get all users of type Application
Public methodGetAuthorities(IUserContext, IRole, IApplication)
Get all authorities within a role that is connected to specified application.
Public methodGetAuthorities(IUserContext, Int32, Int32)
Get all authorities for a user and authority is connected to specified application
Public methodGetAuthorities(IUserContext, IRole, Int32, String)
Get all authorities within a role that is connected to specified application and having specified authority identifier.
Public methodGetAuthoritiesBySearchCriteria
Get roles that matches the search criteria.
Public methodGetAuthority(IUserContext, WebAuthority)
Get Authority from WebAuthority.
Public methodGetAuthority(IUserContext, Int32)
Get authority by id.
Public methodGetAuthorityDataTypes
Get authority data types list.
Public methodGetAuthorityDataTypesByApplicationId
Get authority data types list for specific application.
Public methodGetLockedUserInformation
Get information about users that are currently locked out from ArtDatabankenSOA. Users are locked out if the fail to login a couple of times. All currently locked out users are returned if parameter userSearchString is null.
Public methodGetMessageTypes
Get all Message types.
Public methodGetNonActivatedUsersByRole
Get all users that have been associated with a role, that have not yet activated their role membership.
Public methodGetOrganization(IUserContext, IOrganization)
Get WebOrganization from Organization.
Public methodGetOrganization(IUserContext, WebOrganization)
Get organization from web organization.
Public methodGetOrganization(IUserContext, Int32)
Get organization by id.
Public methodGetOrganizationCategories
GetOrganizationCategories
Public methodGetOrganizationCategory(IUserContext, IOrganizationCategory)
Get WebOrganizationCategory from OrganizationCategory.
Public methodGetOrganizationCategory(IUserContext, WebOrganizationCategory)
Get OrganizationCategory from WebOrganizationCategory.
Public methodGetOrganizationCategory(IUserContext, Int32)
Get organization category by id.
Public methodGetOrganizationRoles
GetOrganizationRoles
Public methodGetOrganizations
Get all organizations
Public methodGetOrganizationsByOrganizationCategory
Get organizations by organization category
Public methodGetOrganizationsBySearchCriteria
Get organizations that matches the search criteria.
Public methodGetPerson(IUserContext, IPerson)
Get web person from person.
Public methodGetPerson(IUserContext, WebPerson)
Get person from web person.
Public methodGetPerson(IUserContext, Int32)
Get person by id.
Public methodGetPersonGender(IUserContext, IPersonGender)
Get web person gender from person gender.
Public methodGetPersonGender(IUserContext, WebPersonGender)
Get person gender from web person gender.
Public methodGetPersonGenders
Get all person genders.
Public methodGetPersonsByModifiedDate
Get persons that have been modified or created between certain dates.
Public methodGetPersonsBySearchCriteria
Get persons that matches the search criteria.
Public methodGetPhoneNumberTypes
Get all phone number types.
Public methodGetRole(IUserContext, WebRole)
Get role from web role.
Public methodGetRole(IUserContext, Int32)
Get role by id.
Public methodGetRoleMembersBySearchCriteria
Get rolemembers that matches the search criteria.
Public methodGetRolesBySearchCriteria
Get roles that matches the search criteria.
Public methodGetRolesByUserGroupAdministrationRoleId
Get all roles where its usergroup is admnistrated by a certain role.
Public methodGetRolesByUserGroupAdministratorUserId
Get all roles where its usergroup is admnistrated by a certain user.
Public methodGetUser(IUserContext, Int32)
Get user by id.
Public methodGetUser(IUserContext, String)
Get user by username.
Public methodGetUserRoles
Get list of user roles
Public methodGetUsersByRole
Get all users that have specified role.
Public methodGetUsersBySearchCriteria
Get users that matches the search criteria.
Public methodIsExistingPerson
Test if a person already exists.
Public methodIsExistingUser
Test if username already exists in the database.
Public methodLogin
Login user.
Public methodLogout
Logout user.
Public methodRemoveUserFromRole
Removes user from a role
Public methodResetPassword
Reset user's password
Public methodStatic memberSetDataSource
Set UserService as data source in the onion data model. This method must me called before SetDataSource() methods in other data sources are called.
Public methodSupportUpdatePersonUser
Updates a user and its associated person. The function only be used by support users. Only Email and account activation can be changed when the account is inactivated.
Public methodUpdateAgreementResponse(IUserContext, IAgreementResponse)
Update agreement response. Agreement response is created in database if it did not exist before. The agreementResponse instance is updated with latest information.
Public methodUpdateAgreementResponse(IUserContext, IAgreementResponse, WebAgreementResponse)
Update agreement response. Agreement response is created if it did not exist before.
Public methodUpdateAuthority
Update authority.
Public methodUpdateOrganization
Update organization.
Public methodUpdateOrganizationCategory
Update existing organization category.
Public methodUpdatePassword
Update password for logged in user.
Public methodUpdatePerson
Update person.
Public methodUpdateRole
Update role.
Public methodUpdateUser
Update existing user.
Public methodUserAdminSetPassword
Updates a users password without sending the old password. Used by administrator.
Top
Events
  NameDescription
Public eventUserLoggedInEvent
Event handling after user has logged in.
Public eventUserLoggedOutEvent
Event handling after user has logged out.
Top
Extension Methods
  NameDescription
Public Extension MethodCheckNotNull
Check that an argument is not null.
(Defined by ObjectExtension.)
Public Extension MethodCheckNull
Check that an argument is null.
(Defined by ObjectExtension.)
Public Extension MethodIsNotNull
Test if an object reference is not null.
(Defined by ObjectExtension.)
Public Extension MethodIsNull
Test if an object reference is null.
(Defined by ObjectExtension.)
Top
See Also