logo
logo

Interface IRule

Describes a rule.

Namespace: Stylelabs.M.Sdk.Contracts.Policies
Assembly: Stylelabs.M.Sdk.dll
Syntax
public interface IRule

Properties

Conditions

Non null collection of conditions which needs to be fulfilled uniformly in order to trigger this rule (i.e. conditions are combined with "AND" logical operator).

Declaration
IList<ICondition> Conditions { get; }
Property Value
Type Description
IList<ICondition>

CreatedByLoggedOnUser

If set to true, this rule only applies to entities created by the logged on user.

Declaration
bool CreatedByLoggedOnUser { get; set; }
Property Value
Type Description
System.Boolean

DefinitionNames

Non null collection entity definition resource links which define the entity definitions to which this policy applies.

Declaration
IList<string> DefinitionNames { get; }
Property Value
Type Description
IList<System.String>

Identifier

Unique identifier of the rule, usually GUID string. This identifier is automatically generated by the system.

Declaration
Guid? Identifier { get; }
Property Value
Type Description
System.Nullable<Guid>

IsSystemOwned

Indicates if this object is owned by the system and cannot be updated by users.

Declaration
bool IsSystemOwned { get; set; }
Property Value
Type Description
System.Boolean

Permissions

Non null collection of permissions this rule grands, the permissions are simple string constants recognized by the system.

Declaration
IList<string> Permissions { get; }
Property Value
Type Description
IList<System.String>

Type

The type of the rule. Indicates if this object is owned by the system and cannot be updated by users.

Declaration
RuleType Type { get; set; }
Property Value
Type Description
RuleType

Can we improve this article ? Provide feedback