Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SchemaStore

Class that stores schema information

Hierarchy

  • SchemaStore

Index

Properties

Private byNameSchemaCache

byNameSchemaCache: Map<string, Schema> = new Map()

Private schemas

schemas: Schema[] = []

Methods

getSchema

  • getSchema<TType>(currentType: object): Schema
  • Returns the Content Type Schema for the provided Content Type;

    Type parameters

    • TType

    Parameters

    • currentType: object

    Returns Schema

    const genericContentSchema = SenseNet.Content.getSchema(Content);

getSchemaByName

  • getSchemaByName(contentTypeName: string): Schema
  • Returns the Content Type Schema for the provided content type name

    Parameters

    • contentTypeName: string

      The name of the content type

    Returns Schema

Private mergeFieldSettings

  • mergeFieldSettings(currentFieldSettings: FieldSetting[], parentFieldSettings: FieldSetting[]): FieldSetting[]
  • Parameters

    • currentFieldSettings: FieldSetting[]
    • parentFieldSettings: FieldSetting[]

    Returns FieldSetting[]

setSchemas

  • setSchemas(newSchemas: Schema[]): void
  • Updates the schema information in the store and inv

    Parameters

    • newSchemas: Schema[]

    Returns void

Generated using TypeDoc