Interface IEntityDefinition
このページの翻訳はAIによって自動的に行われました。可能な限り正確な翻訳を心掛けていますが、原文と異なる表現や解釈が含まれる場合があります。正確で公式な情報については、必ず英語の原文をご参照ください。
Represents a data schema / domain model for entities.
Namespace: Stylelabs.M.Sdk.Contracts.Base
Assembly: Stylelabs.M.Sdk.dll
Syntax
Properties
DisplayTemplate
Gets the language agnostic display format for entities
of this definition.
Formatted as follows: {PropertyName}.
Declaration
Property Value
| Type | Description |
|---|---|
| System.String |
Id
Gets the id of this definition. This is an automatically assigned unique and strictly positive number identifying the entity definition. null if has not been created.
Declaration
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Int64> |
IsManualSortingAllowed
Gets a value indicating whether the items of this definition can be sorted manually (UI related).
Declaration
Property Value
| Type | Description |
|---|---|
| System.Boolean |
IsNew
Gets a value indicating whether the entity definition is new (id is null).
Declaration
Property Value
| Type | Description |
|---|---|
| System.Boolean |
IsPathEnabledDefinition
Gets a value indicating whether entities of this entity definition can be part of the so called paths, which are technically UI breadcrumbs. Example use cases are taxonomy entity definitions or Sitecore Content Hub Project block entity definitions
Declaration
Property Value
| Type | Description |
|---|---|
| System.Boolean |
IsSystemOwned
Gets a value indicating whether the entity definition is owned by the system and cannot be modified or deleted by the regular users.
Declaration
Property Value
| Type | Description |
|---|---|
| System.Boolean |
IsTaxonomyItemDefinition
Gets a value indicating whether entities of this entity definition are taxonomy items, they can be used as a search facet on the web pages.
Declaration
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Labels
Gets a collection of the culture specific definition labels. Never returns null.
Declaration
Property Value
| Type | Description |
|---|---|
| IDictionary<CultureInfo, System.String> |
MemberGroups
Gets the collection of member groups. Never returns null.
Declaration
Property Value
| Type | Description |
|---|---|
| IList<IMemberGroup> |
Name
Gets the unique and language agnostic name of the entity definition. It should be handled as case sensitive.
Declaration
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
GetPropertyDefinition(String)
Get the definition of the specified property.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name |
Name of the property. |
Returns
| Type | Description |
|---|---|
| IPropertyDefinition |
The property definition or null if it was not found. |
GetPropertyDefinition<T>(String)
Generic version of GetPropertyDefinition(String).
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name |
Name of the property. |
Returns
| Type | Description |
|---|---|
| T |
The property definition or null if it was not found. |
Type Parameters
| Name | Description |
|---|---|
| T |
A property (sub)type. |
GetPropertyDefinitions()
Gets all property definitions.
Declaration
Returns
| Type | Description |
|---|---|
| IList<IPropertyDefinition> |
A list of all property definitions (never null) |
GetRelationDefinition(String, RelationRole)
Get the definition of the specified relation.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name |
Name of the relation. |
| RelationRole | role |
Relation role. |
Returns
| Type | Description |
|---|---|
| IRelationDefinition |
The relation definition or null if it was not found. |
GetRelationDefinitions()
Gets all relation definitions.
Declaration
Returns
| Type | Description |
|---|---|
| IList<IRelationDefinition> |
A list of all relation definitions (never null) |