Search Results for

    Show / Hide Table of Contents
    View Source

    Class PublishedContentTypeFactory

    Provides a default implementation for IPublishedContentTypeFactory.

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Models.PublishedContent
    Assembly: Umbraco.Core.dll
    Syntax
    public class PublishedContentTypeFactory : IPublishedContentTypeFactory

    Constructors

    View Source

    PublishedContentTypeFactory(IPublishedModelFactory, PropertyValueConverterCollection, IDataTypeService)

    Declaration
    public PublishedContentTypeFactory(IPublishedModelFactory publishedModelFactory, PropertyValueConverterCollection propertyValueConverters, IDataTypeService dataTypeService)
    Parameters
    Type Name Description
    IPublishedModelFactory publishedModelFactory
    PropertyValueConverterCollection propertyValueConverters
    IDataTypeService dataTypeService

    Methods

    View Source

    CreateContentType(IContentTypeComposition)

    Creates a published content type.

    Declaration
    public IPublishedContentType CreateContentType(IContentTypeComposition contentType)
    Parameters
    Type Name Description
    IContentTypeComposition contentType

    An content type.

    Returns
    Type Description
    IPublishedContentType

    A published content type corresponding to the item type and content type.

    View Source

    CreateCorePropertyType(IPublishedContentType, String, Int32, ContentVariation)

    Creates a core (non-user) published property type.

    Declaration
    public IPublishedPropertyType CreateCorePropertyType(IPublishedContentType contentType, string propertyTypeAlias, int dataTypeId, ContentVariation variations = ContentVariation.Nothing)
    Parameters
    Type Name Description
    IPublishedContentType contentType

    The published content type owning the property.

    System.String propertyTypeAlias

    The property type alias.

    System.Int32 dataTypeId

    The datatype identifier.

    ContentVariation variations

    The variations.

    Returns
    Type Description
    IPublishedPropertyType
    Remarks

    Is used by PublishedContentType constructor to create special property types.

    View Source

    CreatePropertyType(IPublishedContentType, String, Int32, ContentVariation)

    Creates a published property type.

    Declaration
    public IPublishedPropertyType CreatePropertyType(IPublishedContentType contentType, string propertyTypeAlias, int dataTypeId, ContentVariation variations = ContentVariation.Nothing)
    Parameters
    Type Name Description
    IPublishedContentType contentType

    The published content type owning the property.

    System.String propertyTypeAlias

    The property type alias.

    System.Int32 dataTypeId

    The datatype identifier.

    ContentVariation variations

    The variations.

    Returns
    Type Description
    IPublishedPropertyType
    Remarks

    Is used by PublishedContentType constructor to create special property types.

    View Source

    CreatePropertyType(IPublishedContentType, IPropertyType)

    Creates a published property type.

    Declaration
    public IPublishedPropertyType CreatePropertyType(IPublishedContentType contentType, IPropertyType propertyType)
    Parameters
    Type Name Description
    IPublishedContentType contentType

    The published content type owning the property.

    IPropertyType propertyType

    A property type.

    Returns
    Type Description
    IPublishedPropertyType
    Remarks

    Is used by PublishedContentType constructor to create property types.

    View Source

    GetDataType(Int32)

    Gets a published datatype.

    Declaration
    public PublishedDataType GetDataType(int id)
    Parameters
    Type Name Description
    System.Int32 id
    Returns
    Type Description
    PublishedDataType
    View Source

    NotifyDataTypeChanges(Int32[])

    Notifies the factory of datatype changes.

    Declaration
    public void NotifyDataTypeChanges(int[] ids)
    Parameters
    Type Name Description
    System.Int32[] ids
    Remarks

    This is so the factory can flush its caches.

    Invoked by the IPublishedSnapshotService.

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • PublishedContentTypeFactory(IPublishedModelFactory, PropertyValueConverterCollection, IDataTypeService)
    • Methods
      • CreateContentType(IContentTypeComposition)
      • CreateCorePropertyType(IPublishedContentType, String, Int32, ContentVariation)
      • CreatePropertyType(IPublishedContentType, String, Int32, ContentVariation)
      • CreatePropertyType(IPublishedContentType, IPropertyType)
      • GetDataType(Int32)
      • NotifyDataTypeChanges(Int32[])
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX