Class NSRoleEntity
Syntax
Constructors
NSRoleEntity()
Initializes a new instance of the NSRoleEntity class.
Declaration
Methods
GetCreated()
Declaration
Returns
Type |
Description |
DateTime |
Registered when.
|
Examples
NSRoleEntity thing;
DateTime created = thing.GetCreated();
GetCreatedBy()
Declaration
NSAssociate GetCreatedBy()
Returns
Examples
NSRoleEntity thing;
NSAssociate createdBy = thing.GetCreatedBy();
GetDataRights()
Declaration
NSDataRights GetDataRights()
Returns
Type |
Description |
NSDataRights |
Data rights matrix, defines role's access to data owned by current user, users in same group, and other users.
|
Examples
NSRoleEntity thing;
NSDataRights dataRights = thing.GetDataRights();
GetDeleted()
Declaration
Returns
Type |
Description |
Integer |
1 if role has been deleted (we do not actually delete).
|
Examples
NSRoleEntity thing;
Integer deleted = thing.GetDeleted();
GetName()
Declaration
Returns
Type |
Description |
String |
Visible role name.
|
Examples
NSRoleEntity thing;
String name = thing.GetName();
GetRank()
Declaration
Returns
Type |
Description |
Integer |
Sorting rank of this role in lists.
|
Examples
NSRoleEntity thing;
Integer rank = thing.GetRank();
GetRoleId()
Declaration
Returns
Type |
Description |
Integer |
Primary key.
|
Examples
NSRoleEntity thing;
Integer roleId = thing.GetRoleId();
GetRoleType()
Declaration
Returns
Examples
NSRoleEntity thing;
Integer roleType = thing.GetRoleType();
Declaration
Returns
Type |
Description |
String |
Description of the role.
|
NSRoleEntity thing;
String tooltip = thing.GetTooltip();
GetUpdated()
Declaration
Returns
Type |
Description |
DateTime |
Last updated when.
|
Examples
NSRoleEntity thing;
DateTime updated = thing.GetUpdated();
GetUpdatedBy()
Declaration
NSAssociate GetUpdatedBy()
Returns
Examples
NSRoleEntity thing;
NSAssociate updatedBy = thing.GetUpdatedBy();
GetUseCategories()
Declaration
Integer GetUseCategories()
Returns
Type |
Description |
Integer |
Apply role category membership to users.
|
Examples
NSRoleEntity thing;
Integer useCategories = thing.GetUseCategories();
SetCreated(DateTime)
Declaration
Void SetCreated(DateTime created)
Parameters
Type |
Name |
Description |
DateTime |
created |
Registered when.
|
Returns
Examples
NSRoleEntity thing;
DateTime created;
thing.SetCreated(created);
SetCreatedBy(NSAssociate)
Declaration
Void SetCreatedBy(NSAssociate createdBy)
Parameters
Type |
Name |
Description |
NSAssociate |
createdBy |
Created by user.
|
Returns
Examples
NSRoleEntity thing;
NSAssociate createdBy;
thing.SetCreatedBy(createdBy);
SetDataRights(NSDataRights)
Declaration
Void SetDataRights(NSDataRights dataRights)
Parameters
Type |
Name |
Description |
NSDataRights |
dataRights |
Data rights matrix, defines role's access to data owned by current user, users in same group, and other users.
|
Returns
Examples
NSRoleEntity thing;
NSDataRights dataRights;
thing.SetDataRights(dataRights);
SetDeleted(Integer)
Declaration
Void SetDeleted(Integer deleted)
Parameters
Type |
Name |
Description |
Integer |
deleted |
1 if role has been deleted (we do not actually delete).
|
Returns
Examples
NSRoleEntity thing;
Integer deleted;
thing.SetDeleted(deleted);
SetName(String)
Declaration
Void SetName(String name)
Parameters
Type |
Name |
Description |
String |
name |
Visible role name.
|
Returns
Examples
NSRoleEntity thing;
String name;
thing.SetName(name);
SetRank(Integer)
Declaration
Void SetRank(Integer rank)
Parameters
Type |
Name |
Description |
Integer |
rank |
Sorting rank of this role in lists.
|
Returns
Examples
NSRoleEntity thing;
Integer rank;
thing.SetRank(rank);
SetRoleId(Integer)
Declaration
Void SetRoleId(Integer roleId)
Parameters
Type |
Name |
Description |
Integer |
roleId |
Primary key.
|
Returns
Examples
NSRoleEntity thing;
Integer roleId;
thing.SetRoleId(roleId);
SetRoleType(Integer)
Declaration
Void SetRoleType(Integer roleType)
Parameters
Type |
Name |
Description |
Integer |
roleType |
The role type. Note that changing this field has no effect, so treat this as a read-only field. See RoleType.
|
Returns
Examples
NSRoleEntity thing;
Integer roleType;
thing.SetRoleType(roleType);
Declaration
Void SetTooltip(String tooltip)
Parameters
Type |
Name |
Description |
String |
tooltip |
Description of the role.
|
Returns
NSRoleEntity thing;
String tooltip;
thing.SetTooltip(tooltip);
SetUpdated(DateTime)
Declaration
Void SetUpdated(DateTime updated)
Parameters
Type |
Name |
Description |
DateTime |
updated |
Last updated when.
|
Returns
Examples
NSRoleEntity thing;
DateTime updated;
thing.SetUpdated(updated);
SetUpdatedBy(NSAssociate)
Declaration
Void SetUpdatedBy(NSAssociate updatedBy)
Parameters
Type |
Name |
Description |
NSAssociate |
updatedBy |
Last updated by user.
|
Returns
Examples
NSRoleEntity thing;
NSAssociate updatedBy;
thing.SetUpdatedBy(updatedBy);
SetUseCategories(Integer)
Declaration
Void SetUseCategories(Integer useCategories)
Parameters
Type |
Name |
Description |
Integer |
useCategories |
Apply role category membership to users.
|
Returns
Examples
NSRoleEntity thing;
Integer useCategories;
thing.SetUseCategories(useCategories);