C# Class GSoft.Dynamite.Utils.CustomDocumentSetFeatureReceiver

Inheritance: SPFeatureReceiver
Mostrar archivo Open project: GSoft-SharePoint/Dynamite-2010

Public Methods

Method Description
AddEventHandler ( SPContentType contentType, string name, Type receiver, SPEventReceiverType type, int sequence, SPEventReceiverSynchronization sync ) : void

Adds the event handler to the content type.

AddEventHandler ( SPContentType contentType, string name, string assembly, string className, SPEventReceiverType type, int sequence, SPEventReceiverSynchronization sync ) : void

Adds the event handler to the content type.

FeatureActivated ( SPFeatureReceiverProperties properties ) : void

Occurs on feature activation.

Protected Methods

Method Description
AddWebPart ( SPLimitedWebPartManager manager, string definition, string zone, int index ) : void

Adds the web part to the page from a definition.

GetWelcomePageWebPartmanager ( SPFile file ) : SPLimitedWebPartManager

Gets the welcome page web part manager.

ProvisionWebParts ( SPLimitedWebPartManager manager ) : void

Provisions the web parts.

Private Methods

Method Description
Deployed ( SPContentType contentType ) : bool

Gets a value indicating whether the document sets are fully deployed.

EnsureContext ( SPFeatureReceiverProperties properties ) : void

Sets the Web and Site objects using the properties object.

GetEventHandler ( SPEventReceiverDefinitionCollection sperdcol, string className, SPEventReceiverType type ) : SPEventReceiverDefinition

Gets a specific event handler.

GetWelcomePage ( SPContentType contentType ) : SPFile

Gets the document set welcome page for the specified content type.

ProvisionDocumentSet ( SPContentType contentType ) : void

Provisions the document set.

ProvisionDocumentSet ( SPContentTypeId contentTypeId ) : void

Provisions the document set.

ProvisionEventHandler ( SPContentType contentType ) : void

Provisions the event handler.

ProvisionWelcomePage ( SPContentType contentType ) : SPFile

Provisions the welcome page.

SetContextSite ( SPSite site ) : void

Sets the Web and Site objects.

SetContextWeb ( SPWeb web ) : void

Sets the Web and Site objects.

Method Details

AddEventHandler() public static method

Adds the event handler to the content type.
public static AddEventHandler ( SPContentType contentType, string name, Type receiver, SPEventReceiverType type, int sequence, SPEventReceiverSynchronization sync ) : void
contentType SPContentType The content type.
name string The name of the event.
receiver System.Type The type reference of the event receiver class.
type SPEventReceiverType The event receiver type.
sequence int The sequence.
sync SPEventReceiverSynchronization The synchronization type.
return void

AddEventHandler() public static method

Adds the event handler to the content type.
public static AddEventHandler ( SPContentType contentType, string name, string assembly, string className, SPEventReceiverType type, int sequence, SPEventReceiverSynchronization sync ) : void
contentType SPContentType The content type.
name string The name of the event.
assembly string The assembly containing the event receiver.
className string Name of the event receiver class.
type SPEventReceiverType The event receiver type.
sequence int The sequence.
sync SPEventReceiverSynchronization The synchronization type.
return void

AddWebPart() protected method

Adds the web part to the page from a definition.
protected AddWebPart ( SPLimitedWebPartManager manager, string definition, string zone, int index ) : void
manager SPLimitedWebPartManager The web part manager.
definition string The web part definition.
zone string The web part zone.
index int The zone index.
return void

FeatureActivated() public method

Occurs on feature activation.
public FeatureActivated ( SPFeatureReceiverProperties properties ) : void
properties SPFeatureReceiverProperties /// An object that represents the properties of the event. ///
return void

GetWelcomePageWebPartmanager() protected static method

Gets the welcome page web part manager.
protected static GetWelcomePageWebPartmanager ( SPFile file ) : SPLimitedWebPartManager
file SPFile The file to return a instance for.
return SPLimitedWebPartManager

ProvisionWebParts() protected method

Provisions the web parts.
protected ProvisionWebParts ( SPLimitedWebPartManager manager ) : void
manager SPLimitedWebPartManager The manager.
return void