C# Class GSoft.Dynamite.Utils.CustomDocumentSetFeatureReceiver

Inheritance: SPFeatureReceiver
Afficher le fichier Open project: GSoft-SharePoint/Dynamite-2010

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode 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 méthode

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.
Résultat void

AddEventHandler() public static méthode

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.
Résultat void

AddWebPart() protected méthode

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.
Résultat void

FeatureActivated() public méthode

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

GetWelcomePageWebPartmanager() protected static méthode

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

ProvisionWebParts() protected méthode

Provisions the web parts.
protected ProvisionWebParts ( SPLimitedWebPartManager manager ) : void
manager SPLimitedWebPartManager The manager.
Résultat void