Show / Hide Table of Contents

Class SoResource

SuperOffice CRM Resource Administration. Use static (VB: shared) methods to to instantiate objects.

Inheritance
object
SoResource
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
Namespace: SuperOffice.CRM.Administration
Assembly: SoDataBase.dll
Syntax
public sealed class SoResource
Remarks

Only users with administrative privileges is permitted to work with other users than the currently logged on user. This means that SuperOffice CRM administrators can manage all users.

Fields

_associateRow

The associate row to be saved

Declaration
public AssociateRow _associateRow
Field Value
Type Description
AssociateRow
Remarks

Only users with administrative privileges is permitted to work with other users than the currently logged on user. This means that SuperOffice CRM administrators can manage all users.

Properties

Deleted

is the user deleted.

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

Only users with administrative privileges is permitted to work with other users than the currently logged on user. This means that SuperOffice CRM administrators can manage all users.

IsLocation

IsLocation

Declaration
public bool IsLocation { get; set; }
Property Value
Type Description
bool
Remarks

Only users with administrative privileges is permitted to work with other users than the currently logged on user. This means that SuperOffice CRM administrators can manage all users.

LocationAddress

LoactionAddress

Declaration
public string LocationAddress { get; set; }
Property Value
Type Description
string
Remarks

Only users with administrative privileges is permitted to work with other users than the currently logged on user. This means that SuperOffice CRM administrators can manage all users.

Name

Name.

Declaration
public string Name { get; set; }
Property Value
Type Description
string
Remarks

Only users with administrative privileges is permitted to work with other users than the currently logged on user. This means that SuperOffice CRM administrators can manage all users.

Rank

Sort order rank. Only administrators can set.

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

Only users with administrative privileges is permitted to work with other users than the currently logged on user. This means that SuperOffice CRM administrators can manage all users.

ResourceId

AssociateId of the user. This value is '0' until the user is created.

Declaration
public int ResourceId { get; }
Property Value
Type Description
int
Remarks

Only users with administrative privileges is permitted to work with other users than the currently logged on user. This means that SuperOffice CRM administrators can manage all users.

Tooltip

Description / Tooltip. Only administrators can set.

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

Only users with administrative privileges is permitted to work with other users than the currently logged on user. This means that SuperOffice CRM administrators can manage all users.

Methods

CreateAsync(int, CancellationToken)

SuperOffice CRM Resource Administration. Use static (VB: shared) methods to to instantiate objects.

Declaration
public static Task<SoResource> CreateAsync(int assId, CancellationToken cancellationToken = default)
Parameters
Type Name Description
int assId
CancellationToken cancellationToken
Returns
Type Description
Task<SoResource>
Remarks

Only users with administrative privileges is permitted to work with other users than the currently logged on user. This means that SuperOffice CRM administrators can manage all users.

CreateNew()

Create a new user

Declaration
public static SoResource CreateNew()
Returns
Type Description
SoResource

A new instance of a user object. This object needs to be primed with appropriate data before saving

Remarks

Administration priviledges is required for creating new users.

GetFromIdAsync(int, CancellationToken)

SuperOffice CRM Resource Administration. Use static (VB: shared) methods to to instantiate objects.

Declaration
public static Task<SoResource> GetFromIdAsync(int resourceId, CancellationToken cancellationToken = default)
Parameters
Type Name Description
int resourceId
CancellationToken cancellationToken
Returns
Type Description
Task<SoResource>
Remarks

Only users with administrative privileges is permitted to work with other users than the currently logged on user. This means that SuperOffice CRM administrators can manage all users.

SaveAsync()

SuperOffice CRM Resource Administration. Use static (VB: shared) methods to to instantiate objects.

Declaration
public Task SaveAsync()
Returns
Type Description
Task
Remarks

Only users with administrative privileges is permitted to work with other users than the currently logged on user. This means that SuperOffice CRM administrators can manage all users.

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