Show / Hide Table of Contents

Class UserListItem

Inheritance
object
ListItemBase<UserList.UserListQuery>
UserListItem
Inherited Members
ListItemBase<UserList.UserListQuery>.TableRight
ListItemBase<UserList.UserListQuery>.FieldProperties
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
Namespace: SuperOffice.CRM.Archives
Assembly: SoDataBase.BusinessLogic.dll
Syntax
public sealed class UserListItem : ListItemBase<UserList.UserListQuery>

Constructors

UserListItem(UserListQuery, SoDataReader)

Declaration
public UserListItem(UserList.UserListQuery query, SoDataReader reader)
Parameters
Type Name Description
UserList.UserListQuery query
SoDataReader reader

Properties

CanLogon

Declaration
public bool CanLogon { get; }
Property Value
Type Description
bool

Deleted

If true, the user is retired and should have no rights, not appear in lists, etc.

Declaration
public bool Deleted { get; }
Property Value
Type Description
bool

EjUserId

ID of the ej user record corresponding to this associate; 0 for associates that are not ej users

Declaration
[Obsolete("Will always return 0.")]
public int EjUserId { get; }
Property Value
Type Description
int

GrantedLicenses

Declaration
[Obsolete("Will always return null.")]
public string[] GrantedLicenses { get; }
Property Value
Type Description
string[]

PersonId

Owning person record

Declaration
public int PersonId { get; }
Property Value
Type Description
int

Rank

Rank order

Declaration
public short Rank { get; }
Property Value
Type Description
short

RoleId

Declaration
public int RoleId { get; }
Property Value
Type Description
int

RoleName

Declaration
public string RoleName { get; }
Property Value
Type Description
string

RoleTooltip

Declaration
public string RoleTooltip { get; }
Property Value
Type Description
string

Tooltip

Tooltip or other description

Declaration
public string Tooltip { get; }
Property Value
Type Description
string

UserGroupId

Primary group membership, see UserGroupLink for secondary memberships

Declaration
[Obsolete("Will always return 0.")]
public int UserGroupId { get; }
Property Value
Type Description
int

UserGroupName

Declaration
public string UserGroupName { get; }
Property Value
Type Description
string

UserGroupTooltip

Declaration
public string UserGroupTooltip { get; }
Property Value
Type Description
string

UserInfoId

Primary key

Declaration
public int UserInfoId { get; }
Property Value
Type Description
int

UserName

Initials, also login name, possibly database user name

Declaration
public string UserName { get; }
Property Value
Type Description
string

UserType

Declaration
public UserType UserType { get; }
Property Value
Type Description
UserType

Methods

GetUserListItemAsync(int, CancellationToken)

Get a UserListItem provided primary key

Declaration
public static Task<UserListItem> GetUserListItemAsync(int associateId, CancellationToken cancellationToken = default)
Parameters
Type Name Description
int associateId

Associate id of the user

CancellationToken cancellationToken
Returns
Type Description
Task<UserListItem>

If found, UserListItem, else null is returned.

Initialize()

Initializes all class-members.

Declaration
protected override void Initialize()
Overrides
SuperOffice.CRM.Lists.ListItemBase<SuperOffice.CRM.Archives.UserList.UserListQuery>.Initialize()

Load(UserListQuery, SoDataReader)

Responsible for reading the current row in the data reader and insert the value in the right part ob the object.

Declaration
protected override void Load(UserList.UserListQuery query, SoDataReader reader)
Parameters
Type Name Description
UserList.UserListQuery query
SoDataReader reader

The reader contains the items data.

Overrides
ListItemBase<UserList.UserListQuery>.Load(UserList.UserListQuery, SoDataReader)

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top