Interface IRule

Current version: 3.4

Describes a rule.

Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ContractsPolicies
Assembly: Stylelabs.M.Sdk.dll
Syntax
RequestResponse
public interface IRule

Properties

Conditions

Gets 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
RequestResponse
IList<ICondition> Conditions { get; }
Property Value
TypeDescription
IList<>ICondition

CreatedByLoggedOnUser

Gets or sets a value indicating whether if set to true, this rule only applies to entities created by the logged on user.

Declaration
RequestResponse
bool CreatedByLoggedOnUser { get; set; }
Property Value
TypeDescription
bool

DefinitionNames

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

Declaration
RequestResponse
IList<string> DefinitionNames { get; }
Property Value
TypeDescription
IList<>string

Identifier

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

Declaration
RequestResponse
Guid? Identifier { get; }
Property Value
TypeDescription
Guid

IsSystemOwned

Gets or sets a value indicating whether indicates if this object is owned by the system and cannot be updated by users.

Declaration
RequestResponse
bool IsSystemOwned { get; set; }
Property Value
TypeDescription
bool

Permissions

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

Declaration
RequestResponse
IList<string> Permissions { get; }
Property Value
TypeDescription
IList<>string

Type

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

Declaration
RequestResponse
RuleType Type { get; set; }
Property Value
TypeDescription
RuleType

Do you have some feedback for us?

If you have suggestions for improving this article,