C# Класс Composite.Data.PageFolderFacade

Показать файл Открыть проект

Открытые методы

Метод Описание
AddFolderDefinition ( this page, System.Guid dataFolderTypeId ) : void

Adds a data folder type to the given page

AddFolderDefinition ( this page, Type dataFolderType ) : void

Adds a data folder type to the given page

AssignFolderDataSpecificValues ( IData pageFolderData, System.Guid pageId ) : void

Updates the given page folder item with new Id and setting the page folder definition id and defining item id

GetAllFolderTypes ( ) : IEnumerable

Returns all possible page folder types. This is NOT all types that only have been defined on any pages

GetDefinedFolderTypes ( this page ) : IEnumerable

Returns (if any) folder types that are defined on the given page

GetDefinitionPageReferencePropertyInfo ( Type pageFolderType ) : PropertyInfo
GetFolderData ( System.Guid pageId, Type pageFolderType ) : IEnumerable

Returns all folder data given the page id and folder data type

GetFolderData ( this page ) : IEnumerable

Returns all folder data for all defined folder types for the given page

GetFolderData ( this page, Type pageFolderType ) : IEnumerable

Returns all folder data given the page and folder data type

GetFolderDefinitionId ( this page, System.Guid folderTypeId ) : System.Guid

Returns the id (or empty guid if non exists) of a folder definition given the page and folder type id

GetFolderDefinitionId ( this page, Type folderType ) : System.Guid

Returns the id of a folder definition given the page and folder type

GetReferencedPage ( IData folderData ) : IPage

Returns the referenced page

HasFolderData ( this page, Type pageFolderType ) : bool
HasFolderDefinitions ( this page ) : bool

Returns true if the given page has any folder definitions defined on it

RemoveAllFolderDefinitions ( System.Guid dataFolderTypeId, bool deleteExistingFolderData = true ) : void

Removes all data folder definitions given the folder type id

RemoveFolderDefinition ( this page, System.Guid dataFolderTypeId, bool deleteExistingFolderData = true ) : void

Removes a data folder type for the given page

RemoveFolderDefinition ( this page, Type dataFolderType, bool deleteExistingFolderData = true ) : void

Removes a data folder type for the given page

Приватные методы

Метод Описание
AssignFolderDataSpecificValues ( IData pageFolderData, IPage definingPage ) : void
RemoveFolderDefinitionInternal ( System.Guid pageId, System.Guid dataFolderTypeId ) : void

Описание методов

AddFolderDefinition() публичный статический Метод

Adds a data folder type to the given page
public static AddFolderDefinition ( this page, System.Guid dataFolderTypeId ) : void
page this
dataFolderTypeId System.Guid
Результат void

AddFolderDefinition() публичный статический Метод

Adds a data folder type to the given page
public static AddFolderDefinition ( this page, Type dataFolderType ) : void
page this
dataFolderType System.Type
Результат void

AssignFolderDataSpecificValues() публичный статический Метод

Updates the given page folder item with new Id and setting the page folder definition id and defining item id
public static AssignFolderDataSpecificValues ( IData pageFolderData, System.Guid pageId ) : void
pageFolderData IData
pageId System.Guid
Результат void

GetAllFolderTypes() публичный статический Метод

Returns all possible page folder types. This is NOT all types that only have been defined on any pages
public static GetAllFolderTypes ( ) : IEnumerable
Результат IEnumerable

GetDefinedFolderTypes() публичный статический Метод

Returns (if any) folder types that are defined on the given page
public static GetDefinedFolderTypes ( this page ) : IEnumerable
page this
Результат IEnumerable

GetDefinitionPageReferencePropertyInfo() публичный статический Метод

public static GetDefinitionPageReferencePropertyInfo ( Type pageFolderType ) : PropertyInfo
pageFolderType System.Type
Результат System.Reflection.PropertyInfo

GetFolderData() публичный статический Метод

Returns all folder data given the page id and folder data type
public static GetFolderData ( System.Guid pageId, Type pageFolderType ) : IEnumerable
pageId System.Guid
pageFolderType System.Type
Результат IEnumerable

GetFolderData() публичный статический Метод

Returns all folder data for all defined folder types for the given page
public static GetFolderData ( this page ) : IEnumerable
page this
Результат IEnumerable

GetFolderData() публичный статический Метод

Returns all folder data given the page and folder data type
public static GetFolderData ( this page, Type pageFolderType ) : IEnumerable
page this
pageFolderType System.Type
Результат IEnumerable

GetFolderDefinitionId() публичный статический Метод

Returns the id (or empty guid if non exists) of a folder definition given the page and folder type id
public static GetFolderDefinitionId ( this page, System.Guid folderTypeId ) : System.Guid
page this
folderTypeId System.Guid
Результат System.Guid

GetFolderDefinitionId() публичный статический Метод

Returns the id of a folder definition given the page and folder type
public static GetFolderDefinitionId ( this page, Type folderType ) : System.Guid
page this
folderType System.Type
Результат System.Guid

GetReferencedPage() публичный статический Метод

Returns the referenced page
public static GetReferencedPage ( IData folderData ) : IPage
folderData IData
Результат IPage

HasFolderData() публичный статический Метод

public static HasFolderData ( this page, Type pageFolderType ) : bool
page this
pageFolderType System.Type
Результат bool

HasFolderDefinitions() публичный статический Метод

Returns true if the given page has any folder definitions defined on it
public static HasFolderDefinitions ( this page ) : bool
page this
Результат bool

RemoveAllFolderDefinitions() публичный статический Метод

Removes all data folder definitions given the folder type id
public static RemoveAllFolderDefinitions ( System.Guid dataFolderTypeId, bool deleteExistingFolderData = true ) : void
dataFolderTypeId System.Guid
deleteExistingFolderData bool
Результат void

RemoveFolderDefinition() публичный статический Метод

Removes a data folder type for the given page
public static RemoveFolderDefinition ( this page, System.Guid dataFolderTypeId, bool deleteExistingFolderData = true ) : void
page this
dataFolderTypeId System.Guid
deleteExistingFolderData bool
Результат void

RemoveFolderDefinition() публичный статический Метод

Removes a data folder type for the given page
public static RemoveFolderDefinition ( this page, Type dataFolderType, bool deleteExistingFolderData = true ) : void
page this
dataFolderType System.Type
deleteExistingFolderData bool
Результат void