Click or drag to resize

IRole Interface

Represents a role - which defines access rights to information. Can be modified if user has UserAdmin rights.

Namespace:  SuperOffice.COM.Application
Assembly:  SOCRM.Interop (in SOCRM.Interop.dll) Version: 8.0.0.0
Syntax
public interface IRole

The IRole type exposes the following members.

Properties
  NameDescription
Public propertyChanged
Has object been changed since it was loaded?
Public propertyDataRight
Public propertyDeleted
Has the role been deleted?
Public propertyDescription
Description of the role.
Public propertyFunctionRights
Collection of function rights active for this role
Public propertyIdentity
The primary key on the role table. Is zero for new objects. Is set when an object is saved.
Public propertyName
Name of the role.
Public propertyType
Type of role (associate/external/anonymous/system).
Top
Methods
  NameDescription
Public methodAddFunctionRight
Add a function right to the active list. Use the function right id or the function right key-name (like 'admin-users')
Public methodCancelChanges
Cancel reverts the changes to the role
Public methodDelete
Delete the role. Marks the role as deleted and removes all data and function rights from the role. Users having the deleted role must be assigned a new role. Will throw an error if you do not have user admin rights.
Public methodHasFunctionRight
Returns true if the role has the given function right
Public methodIsRelationshipCovered
Returns true if the role defines rights for the given type of relationship. The relationships vary according to role type.
Public methodIsTableCovered
Returns true if the role defines rights for the given table. The list of tables is the same for all role types.
Public methodRemoveFunctionRight
Remove a function right from the active list. (Refresh the list of functionrights in the role before saving.)
Public methodSave
Save stores the changes to the role in the database. Will throw an error if you do not have user admin rights.
Top
See Also