Show / Hide Table of Contents

Class RoleEntity

Carrier object for RoleEntity. Services for the RoleEntity Carrier is available from the User Agent.

Inheritance
object
RoleEntity
Namespace: SuperOffice.CRM.Services
Assembly: SuperOffice.Services.dll
Syntax
[DataContract(Namespace = "http://www.superoffice.net/ws/crm/NetServer/11.2.0.0")]
public class RoleEntity : Carrier
Examples

Get RoleEntity 123 using the agent:

using SuperOffice;
using SuperOffice.CRM.Services;

using (SoSession mySession = SoSession.Authenticate("user", "pass"))
{
   var agent = new UserAgent();
   var roleEntity = agent.GetRoleEntity( 123 );
}

Find all RoleEntity, get related items using archive agent.

var archive = new ArchiveAgent();
var rows = archive.GetArchiveListByColumns2("Role", "...", null, "getAllRows eq 1", null, 0, 100 );

Constructors

RoleEntity()

Default constructor

Declaration
public RoleEntity()
See Also
IUserAgent

Properties

Created

Registered when in UTC.

Declaration
[DataMember]
public virtual DateTime Created { get; set; }
Property Value
Type Description
DateTime
See Also
IUserAgent

CreatedBy

Created by user

Declaration
[DataMember]
public virtual Associate CreatedBy { get; set; }
Property Value
Type Description
Associate
See Also
IUserAgent

DataRights

Data rights matrix - defines role's access to data owned by current user, users in same group, and other users.

Declaration
[DataMember]
public virtual DataRights DataRights { get; set; }
Property Value
Type Description
DataRights
See Also
IUserAgent

Deleted

1 if role has been deleted (we do not actually delete)

Declaration
[DataMember]
public virtual short Deleted { get; set; }
Property Value
Type Description
short
See Also
IUserAgent

Name

Visible role name

Declaration
[DataMember]
public virtual string Name { get; set; }
Property Value
Type Description
string
See Also
IUserAgent

Rank

Sorting rank of this role in lists

Declaration
[DataMember]
public virtual short Rank { get; set; }
Property Value
Type Description
short
See Also
IUserAgent

RoleId

Primary key

Declaration
[DataMember]
public virtual int RoleId { get; set; }
Property Value
Type Description
int
See Also
IUserAgent

RoleType

The role type. Note that changing this field has no effect, so treat this as a read-only field.

Declaration
[DataMember]
public virtual RoleType RoleType { get; set; }
Property Value
Type Description
RoleType
See Also
IUserAgent

Tooltip

Description of the role.

Declaration
[DataMember]
public virtual string Tooltip { get; set; }
Property Value
Type Description
string
See Also
IUserAgent

Updated

Last updated when in UTC.

Declaration
[DataMember]
public virtual DateTime Updated { get; set; }
Property Value
Type Description
DateTime
See Also
IUserAgent

UpdatedBy

Last updated by user

Declaration
[DataMember]
public virtual Associate UpdatedBy { get; set; }
Property Value
Type Description
Associate
See Also
IUserAgent

UseCategories

Apply role category membership to users

Declaration
[DataMember]
public virtual short UseCategories { get; set; }
Property Value
Type Description
short
See Also
IUserAgent

Methods

ToString()

Returns the carrier contents as a formatted string.

Declaration
public override string ToString()
Returns
Type Description
string

The carrier contents.

See Also
IUserAgent

ToString(string)

Returns the carrier contents as a formatted string, useful for debugging. Each line in the output is prefixed with the input value.

Declaration
public string ToString(string prefix)
Parameters
Type Name Description
string prefix

The line prefix (typically used for indenting)

Returns
Type Description
string

The carrier contents.

See Also
IUserAgent

See Also

IUserAgent
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top