1. IChangeTracker

Interface IChangeTracker

Version:
日本語翻訳に関する免責事項

このページの翻訳はAIによって自動的に行われました。可能な限り正確な翻訳を心掛けていますが、原文と異なる表現や解釈が含まれる場合があります。正確で公式な情報については、必ず英語の原文をご参照ください。

Adds dirty tracking functionality between Sitecore Content Hub and the SDK. All members in this interface work with the original entity in Sitecore Content Hub to determine whether a member was dirty or not. This is independent from any dirty tracking in the SDK itself.

Namespace: Stylelabs.M.Scripting.Types.V1_0.ChangeTracking
Assembly: Stylelabs.M.Scripting.Types.dll
Syntax
public interface IChangeTracker

Properties

InheritsSecurity

Gets information about the InheritsSecurity on the entity.

Declaration
ISystemPropertyTracker<bool?> InheritsSecurity { get; }
Property Value
TypeDescription
ISystemPropertyTracker<System.Nullable<System.Boolean>>

IsPathRoot

Gets information about the IsPathRoot on the entity.

Declaration
ISystemPropertyTracker<bool?> IsPathRoot { get; }
Property Value
TypeDescription
ISystemPropertyTracker<System.Nullable<System.Boolean>>

IsRootTaxonomyItem

Gets information about the IsRootTaxonomyItem on the entity.

Declaration
ISystemPropertyTracker<bool?> IsRootTaxonomyItem { get; }
Property Value
TypeDescription
ISystemPropertyTracker<System.Nullable<System.Boolean>>

IsSystemOwned

Gets information about the IsSystemOwned on the entity.

Declaration
ISystemPropertyTracker<bool?> IsSystemOwned { get; }
Property Value
TypeDescription
ISystemPropertyTracker<System.Nullable<System.Boolean>>

Methods

GetChangeSet()

Creates a change set for the current entity.

Declaration
EntityChangeSet GetChangeSet()
Returns
TypeDescription
EntityChangeSet

A change set.

GetDirtyProperties()

Determines all dirty properties and returns the matching SDK properties. Their values contain the current value.

Declaration
IReadOnlyList<IProperty> GetDirtyProperties()
Returns
TypeDescription
IReadOnlyList<IProperty>

Dirty properties.

GetDirtyRelations()

Determines all dirty relations and returns the matching SDK relations. Their ids contain the current ids.

Declaration
IReadOnlyList<IRelation> GetDirtyRelations()
Returns
TypeDescription
IReadOnlyList<IRelation>

Dirty relations.

GetNewIds(String, Nullable<RelationRole>)

Gets the newly added ids on the relation. Returns an empty list if there are no new ids.

Declaration
IReadOnlyList<long> GetNewIds(string relationName, RelationRole? role = null)
Parameters
TypeNameDescription
System.StringrelationName

Name of the relation (case-insensitive).

System.Nullable<RelationRole>role

Role of the relation.

Returns
TypeDescription
IReadOnlyList<System.Int64>

GetOriginalPropertyValue<T>(String)

Declaration
T GetOriginalPropertyValue<T>(string propertyName)
Parameters
TypeNameDescription
System.StringpropertyName
Returns
TypeDescription
T
Type Parameters
NameDescription
T

GetOriginalPropertyValue<T>(String, CultureInfo)

Declaration
T GetOriginalPropertyValue<T>(string propertyName, CultureInfo culture)
Parameters
TypeNameDescription
System.StringpropertyName
CultureInfoculture
Returns
TypeDescription
T
Type Parameters
NameDescription
T

GetRemovedIds(String, Nullable<RelationRole>)

Gets the removed ids from the relation. Returns an empty list if there are no ids removed.

Declaration
IReadOnlyList<long> GetRemovedIds(string relationName, RelationRole? role = null)
Parameters
TypeNameDescription
System.StringrelationName

Name of the relation (case-insensitive).

System.Nullable<RelationRole>role

Role of the relation.

Returns
TypeDescription
IReadOnlyList<System.Int64>

IsPropertyDirty(String)

Checks if the given property is dirty.

Declaration
bool IsPropertyDirty(string propertyName)
Parameters
TypeNameDescription
System.StringpropertyName

Name of the property (case-insensitive).

Returns
TypeDescription
System.Boolean

Returns true if it is dirty.

IsRelationDirty(String, Nullable<RelationRole>)

Checks if the given relation is dirty.

Declaration
bool IsRelationDirty(string relationName, RelationRole? role = null)
Parameters
TypeNameDescription
System.StringrelationName

Name of the relation (case-insensitive).

System.Nullable<RelationRole>role

Role of the relation.

Returns
TypeDescription
System.Boolean

Returns true if it is dirty.

この記事を改善するための提案がある場合は、 お知らせください!