C# Class GSoft.Dynamite.Lists.ListHelper

Helper class to manage lists.
Inheritance: IListHelper
Mostrar archivo Open project: GSoft-SharePoint/Dynamite-2010

Public Methods

Method Description
AddContentType ( SPList list, SPContentType contentType ) : void

Adds the content type.

AddContentType ( SPList list, SPContentTypeId contentTypeId ) : void

Adds the content type id.

GetListByRootFolderUrl ( SPWeb web, string listRootFolderUrl ) : SPList

Get the list bu root folder url

ListHelper ( ContentTypeBuilder contentTypeBuilder, IResourceLocator resourceLocator ) : System

Creates a list helper

Private Methods

Method Description
EnsureList ( SPWeb web, string name, string description, SPListTemplate template ) : SPList
EnsureList ( SPWeb web, string name, string description, SPListTemplateType templateType ) : SPList
GetListTemplate ( SPWeb web, string templateName ) : SPListTemplate
TryGetList ( SPWeb web, string titleOrUrlOrResourceString ) : SPList

Method Details

AddContentType() public method

Adds the content type.
Any null parameter.
public AddContentType ( SPList list, SPContentType contentType ) : void
list SPList The list.
contentType SPContentType Type of the content.
return void

AddContentType() public method

Adds the content type id.
Any null parameters. contentTypeId;Content Type not available in the lists parent web.
public AddContentType ( SPList list, SPContentTypeId contentTypeId ) : void
list SPList The list.
contentTypeId SPContentTypeId The content type id.
return void

GetListByRootFolderUrl() public method

Get the list bu root folder url
public GetListByRootFolderUrl ( SPWeb web, string listRootFolderUrl ) : SPList
web SPWeb /// The web. ///
listRootFolderUrl string /// The list Root Folder Url. ///
return SPList

ListHelper() public method

Creates a list helper
public ListHelper ( ContentTypeBuilder contentTypeBuilder, IResourceLocator resourceLocator ) : System
contentTypeBuilder ContentTypeBuilder A content type helper
resourceLocator IResourceLocator
return System