C# Class Composite.Data.PageFolderFacade

ファイルを表示 Open project: Orckestra/C1-CMS

Public Methods

Method Description
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

Private Methods

Method Description
AssignFolderDataSpecificValues ( IData pageFolderData, IPage definingPage ) : void
RemoveFolderDefinitionInternal ( System.Guid pageId, System.Guid dataFolderTypeId ) : void

Method Details

AddFolderDefinition() public static method

Adds a data folder type to the given page
public static AddFolderDefinition ( this page, System.Guid dataFolderTypeId ) : void
page this
dataFolderTypeId System.Guid
return void

AddFolderDefinition() public static method

Adds a data folder type to the given page
public static AddFolderDefinition ( this page, Type dataFolderType ) : void
page this
dataFolderType System.Type
return void

AssignFolderDataSpecificValues() public static method

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
return void

GetAllFolderTypes() public static method

Returns all possible page folder types. This is NOT all types that only have been defined on any pages
public static GetAllFolderTypes ( ) : IEnumerable
return IEnumerable

GetDefinedFolderTypes() public static method

Returns (if any) folder types that are defined on the given page
public static GetDefinedFolderTypes ( this page ) : IEnumerable
page this
return IEnumerable

GetDefinitionPageReferencePropertyInfo() public static method

public static GetDefinitionPageReferencePropertyInfo ( Type pageFolderType ) : PropertyInfo
pageFolderType System.Type
return System.Reflection.PropertyInfo

GetFolderData() public static method

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
return IEnumerable

GetFolderData() public static method

Returns all folder data for all defined folder types for the given page
public static GetFolderData ( this page ) : IEnumerable
page this
return IEnumerable

GetFolderData() public static method

Returns all folder data given the page and folder data type
public static GetFolderData ( this page, Type pageFolderType ) : IEnumerable
page this
pageFolderType System.Type
return IEnumerable

GetFolderDefinitionId() public static method

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
return System.Guid

GetFolderDefinitionId() public static method

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
return System.Guid

GetReferencedPage() public static method

Returns the referenced page
public static GetReferencedPage ( IData folderData ) : IPage
folderData IData
return IPage

HasFolderData() public static method

public static HasFolderData ( this page, Type pageFolderType ) : bool
page this
pageFolderType System.Type
return bool

HasFolderDefinitions() public static method

Returns true if the given page has any folder definitions defined on it
public static HasFolderDefinitions ( this page ) : bool
page this
return bool

RemoveAllFolderDefinitions() public static method

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
return void

RemoveFolderDefinition() public static method

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
return void

RemoveFolderDefinition() public static method

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
return void