C# Class PageTypeBuilder.Synchronization.PageTypeUpdater

Exibir arquivo Open project: joelabrahamsson/Page-Type-Builder Class Usage Examples

Private Properties

Property Type Description
CanModifyProperty bool
GetFilename string
GetPageDefinitionsThatImplementInteface IEnumerable
GetPageDefinitionsThatInheritFromType IEnumerable

Public Methods

Method Description
PageTypeUpdater ( IPageTypeDefinitionLocator pageTypeDefinitionLocator, IPageTypeRepository pageTypeRepository, IPageTypeValueExtractor pageTypeValueExtractor, IPageTypeLocator pageTypeLocator ) : System

Protected Methods

Method Description
CreateNewPageType ( PageTypeDefinition definition ) : IPageType
GetExistingPageType ( PageTypeDefinition definition ) : IPageType
IsValidPageType ( Type type ) : bool
SerializeValues ( IPageType pageType ) : string
UpdateAvailablePageTypes ( IPageType pageType, Type availablePageTypeTypes ) : void
UpdateAvailablePageTypesExcluded ( IPageType pageType, Type excludedPageTypeTypes ) : void
UpdateDefaultArchivePageLink ( IPageType pageType, PageTypeAttribute attribute ) : void
UpdateDefaultChildOrderRule ( IPageType pageType, PageTypeAttribute attribute ) : void
UpdateDefaultPageName ( IPageType pageType, PageTypeAttribute attribute ) : void
UpdateDefaultPeerOrder ( IPageType pageType, PageTypeAttribute attribute ) : void
UpdateDefaultStartPublishOffset ( IPageType pageType, PageTypeAttribute attribute ) : void
UpdateDefaultStopPublishOffset ( IPageType pageType, PageTypeAttribute attribute ) : void
UpdateDefaultVisibleInMenu ( IPageType pageType, PageTypeAttribute attribute ) : void
UpdateDescription ( IPageType pageType, PageTypeAttribute attribute ) : void
UpdateFilename ( IPageType pageType, PageTypeAttribute attribute ) : void
UpdateFrame ( IPageType pageType, PageTypeAttribute attribute ) : void
UpdateIsAvailable ( IPageType pageType, PageTypeAttribute attribute ) : void
UpdateName ( IPageType pageType, PageTypeDefinition definition ) : void
UpdatePageType ( PageTypeDefinition definition ) : void
UpdateSortOrder ( IPageType pageType, PageTypeAttribute attribute ) : void

Private Methods

Method Description
CanModifyProperty ( IPageType pageType, bool propertySet ) : bool
GetFilename ( PageTypeAttribute attribute ) : string
GetPageDefinitionsThatImplementInteface ( IEnumerable pageTypeDefinitions, Type interfaceType ) : IEnumerable
GetPageDefinitionsThatInheritFromType ( IEnumerable pageTypeDefinitions, Type subClassType ) : IEnumerable

Method Details

CreateNewPageType() protected method

protected CreateNewPageType ( PageTypeDefinition definition ) : IPageType
definition PageTypeBuilder.Discovery.PageTypeDefinition
return IPageType

GetExistingPageType() protected method

protected GetExistingPageType ( PageTypeDefinition definition ) : IPageType
definition PageTypeBuilder.Discovery.PageTypeDefinition
return IPageType

IsValidPageType() protected method

protected IsValidPageType ( Type type ) : bool
type System.Type
return bool

PageTypeUpdater() public method

public PageTypeUpdater ( IPageTypeDefinitionLocator pageTypeDefinitionLocator, IPageTypeRepository pageTypeRepository, IPageTypeValueExtractor pageTypeValueExtractor, IPageTypeLocator pageTypeLocator ) : System
pageTypeDefinitionLocator IPageTypeDefinitionLocator
pageTypeRepository IPageTypeRepository
pageTypeValueExtractor IPageTypeValueExtractor
pageTypeLocator IPageTypeLocator
return System

SerializeValues() protected method

protected SerializeValues ( IPageType pageType ) : string
pageType IPageType
return string

UpdateAvailablePageTypes() protected method

protected UpdateAvailablePageTypes ( IPageType pageType, Type availablePageTypeTypes ) : void
pageType IPageType
availablePageTypeTypes System.Type
return void

UpdateAvailablePageTypesExcluded() protected method

protected UpdateAvailablePageTypesExcluded ( IPageType pageType, Type excludedPageTypeTypes ) : void
pageType IPageType
excludedPageTypeTypes System.Type
return void

UpdateDefaultArchivePageLink() protected method

protected UpdateDefaultArchivePageLink ( IPageType pageType, PageTypeAttribute attribute ) : void
pageType IPageType
attribute PageTypeAttribute
return void

UpdateDefaultChildOrderRule() protected method

protected UpdateDefaultChildOrderRule ( IPageType pageType, PageTypeAttribute attribute ) : void
pageType IPageType
attribute PageTypeAttribute
return void

UpdateDefaultPageName() protected method

protected UpdateDefaultPageName ( IPageType pageType, PageTypeAttribute attribute ) : void
pageType IPageType
attribute PageTypeAttribute
return void

UpdateDefaultPeerOrder() protected method

protected UpdateDefaultPeerOrder ( IPageType pageType, PageTypeAttribute attribute ) : void
pageType IPageType
attribute PageTypeAttribute
return void

UpdateDefaultStartPublishOffset() protected method

protected UpdateDefaultStartPublishOffset ( IPageType pageType, PageTypeAttribute attribute ) : void
pageType IPageType
attribute PageTypeAttribute
return void

UpdateDefaultStopPublishOffset() protected method

protected UpdateDefaultStopPublishOffset ( IPageType pageType, PageTypeAttribute attribute ) : void
pageType IPageType
attribute PageTypeAttribute
return void

UpdateDefaultVisibleInMenu() protected method

protected UpdateDefaultVisibleInMenu ( IPageType pageType, PageTypeAttribute attribute ) : void
pageType IPageType
attribute PageTypeAttribute
return void

UpdateDescription() protected method

protected UpdateDescription ( IPageType pageType, PageTypeAttribute attribute ) : void
pageType IPageType
attribute PageTypeAttribute
return void

UpdateFilename() protected method

protected UpdateFilename ( IPageType pageType, PageTypeAttribute attribute ) : void
pageType IPageType
attribute PageTypeAttribute
return void

UpdateFrame() protected method

protected UpdateFrame ( IPageType pageType, PageTypeAttribute attribute ) : void
pageType IPageType
attribute PageTypeAttribute
return void

UpdateIsAvailable() protected method

protected UpdateIsAvailable ( IPageType pageType, PageTypeAttribute attribute ) : void
pageType IPageType
attribute PageTypeAttribute
return void

UpdateName() protected method

protected UpdateName ( IPageType pageType, PageTypeDefinition definition ) : void
pageType IPageType
definition PageTypeBuilder.Discovery.PageTypeDefinition
return void

UpdatePageType() protected method

protected UpdatePageType ( PageTypeDefinition definition ) : void
definition PageTypeBuilder.Discovery.PageTypeDefinition
return void

UpdateSortOrder() protected method

protected UpdateSortOrder ( IPageType pageType, PageTypeAttribute attribute ) : void
pageType IPageType
attribute PageTypeAttribute
return void