C# Class Enmarcha.SharePoint.Entities.Artefacts.ListSharePoint

Inheritance: IListSharePoint
Show file Open project: Encamina/Enmarcha-SharePoint Class Usage Examples

Public Methods

Method Description
AddContentType ( string contentTypeName ) : bool

Add Content Type

AddField ( Enmarcha.SharePoint.Entities.Artefacts.SiteColumn column ) : bool

Añadir Campos

AddPermissionsGroup ( string group, RoleType role ) : bool

Add permissions fror Group in SharePoint

AddPermissionsInFolder ( string name, string group, SPRoleType role ) : bool

Da permisos a la carpeta especificada

ClearPermisions ( ) : bool

Funcion que elimina los permisos en una lista

Create ( string description, ListTemplateType type ) : bool

Create List

Create ( string description, ListTemplateType type, bool versionControl ) : bool

Create List

CreateFolder ( string name ) : bool

Create a folder in the document libraries

Delete ( ) : bool

Delete List

DeleteContentType ( string contentTypeName ) : bool

Delete ContentType

DeleteField ( Enmarcha.SharePoint.Entities.Artefacts.SiteColumn column ) : bool

Delete Field

Exist ( ) : bool

This list exists or not?

ExistContentType ( string contentTypeName ) : bool

Existe este Tipo de contenido en la Lista

ExistField ( Enmarcha.SharePoint.Entities.Artefacts.SiteColumn column ) : bool

Existe esta Columna de Lista

GetContentType ( ) : IEnumerable

Return content type the sharepoint list

ListSharePoint ( SPWeb web, ILog logger ) : System
ListSharePoint ( SPWeb web, ILog logger, string name ) : System
RemovePermissionsGroup ( string group ) : bool

Delete Permisions for Group

Private Methods

Method Description
AddFieldBoolean ( Enmarcha.SharePoint.Entities.Artefacts.SiteColumn column, SPList listEdit ) : void
AddFieldCalculated ( Enmarcha.SharePoint.Entities.Artefacts.SiteColumn column, SPList listEdit ) : void
AddFieldChoice ( Enmarcha.SharePoint.Entities.Artefacts.SiteColumn column, SPList listEdit ) : void
AddFieldCurrency ( Enmarcha.SharePoint.Entities.Artefacts.SiteColumn column ) : void
AddFieldDateTime ( Enmarcha.SharePoint.Entities.Artefacts.SiteColumn column, SPList listEdit ) : void
AddFieldLookup ( Enmarcha.SharePoint.Entities.Artefacts.SiteColumn column, SPList listEdit ) : void

Method Details

AddContentType() public method

Add Content Type
public AddContentType ( string contentTypeName ) : bool
contentTypeName string
return bool

AddField() public method

Añadir Campos
public AddField ( Enmarcha.SharePoint.Entities.Artefacts.SiteColumn column ) : bool
column Enmarcha.SharePoint.Entities.Artefacts.SiteColumn
return bool

AddPermissionsGroup() public method

Add permissions fror Group in SharePoint
public AddPermissionsGroup ( string group, RoleType role ) : bool
group string
role RoleType
return bool

AddPermissionsInFolder() public method

Da permisos a la carpeta especificada
public AddPermissionsInFolder ( string name, string group, SPRoleType role ) : bool
name string Ruta de la Carpeta
group string Grupo de Usuarios a los que da permisos
role SPRoleType Rol de la administrador
return bool

ClearPermisions() public method

Funcion que elimina los permisos en una lista
public ClearPermisions ( ) : bool
return bool

Create() public method

Create List
public Create ( string description, ListTemplateType type ) : bool
description string
type ListTemplateType
return bool

Create() public method

Create List
public Create ( string description, ListTemplateType type, bool versionControl ) : bool
description string
type ListTemplateType
versionControl bool
return bool

CreateFolder() public method

Create a folder in the document libraries
public CreateFolder ( string name ) : bool
name string Nombre de la Carpeta a crear ydonde va a estar la carpet: Example /// "/Document Library/Folder1" ////Creates a folder named “Folder11” under “Folder1” in “Document Library” in a sub site
return bool

Delete() public method

Delete List
public Delete ( ) : bool
return bool

DeleteContentType() public method

Delete ContentType
public DeleteContentType ( string contentTypeName ) : bool
contentTypeName string
return bool

DeleteField() public method

Delete Field
public DeleteField ( Enmarcha.SharePoint.Entities.Artefacts.SiteColumn column ) : bool
column Enmarcha.SharePoint.Entities.Artefacts.SiteColumn
return bool

Exist() public method

This list exists or not?
public Exist ( ) : bool
return bool

ExistContentType() public method

Existe este Tipo de contenido en la Lista
public ExistContentType ( string contentTypeName ) : bool
contentTypeName string
return bool

ExistField() public method

Existe esta Columna de Lista
public ExistField ( Enmarcha.SharePoint.Entities.Artefacts.SiteColumn column ) : bool
column Enmarcha.SharePoint.Entities.Artefacts.SiteColumn
return bool

GetContentType() public method

Return content type the sharepoint list
public GetContentType ( ) : IEnumerable
return IEnumerable

ListSharePoint() public method

public ListSharePoint ( SPWeb web, ILog logger ) : System
web SPWeb
logger ILog
return System

ListSharePoint() public method

public ListSharePoint ( SPWeb web, ILog logger, string name ) : System
web SPWeb
logger ILog
name string
return System

RemovePermissionsGroup() public method

Delete Permisions for Group
public RemovePermissionsGroup ( string group ) : bool
group string
return bool