Show / Hide Table of Contents

Class GenericRight

Base class for TableRight, FieldRight and FunctionRight. Provides a read-only reason field. Sub-classes define one or more permissions that the right can allow. For example: FieldRight defines Read+Write+Mandatory rights on a field.

Inheritance
Object
GenericRight
ItemRight
TableRight
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: SuperOffice.CRM.Security
Assembly: SoCore.dll
Syntax
public abstract class GenericRight
Remarks

Get fresh rights from the , where they are made to order. Rights are read-only, static objects. You cannot modify a field-right or table right object. This is because a field-right object may be a shared instance, so modifying it will modify all fields, not just one.

Constructors

GenericRight()

Declaration
protected GenericRight()

Fields

_reason

Declaration
protected string _reason
Field Value
Type Description
String

Properties

HasAll

Returns true if the right has all the permissions implied by the right.

Declaration
public abstract bool HasAll { get; }
Property Value
Type Description
Boolean
Remarks

For a FunctionRight this implies that the right is active. For a FieldRight this implies that the field has Read+Write permissions.

HasNone

Returns true if the right has none of the permissions implied by the right.

Declaration
public abstract bool HasNone { get; }
Property Value
Type Description
Boolean
Remarks

For a FunctionRight this means that the right is not active. For a FieldRight this means that the field is hidden (no read+no write permission)

IgnoreReason

Should the reason be ignored?

Declaration
protected abstract bool IgnoreReason { get; }
Property Value
Type Description
Boolean

Reason

Contains a string that explains why the right is not available. The reason is blank if HasAll is true.

Declaration
public string Reason { get; }
Property Value
Type Description
String

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