C# Class OfficeDevPnP.PartnerPack.Infrastructure.PnPPartnerPackUtilities

Mostrar archivo Open project: OfficeDev/PnP-Partner-Pack Class Usage Examples

Public Methods

Method Description
DisablePartnerPackOnSite ( String siteUrl ) : void
EnablePartnerPackInfrastructureOnSite ( String siteUrl ) : void
EnablePartnerPackOnSite ( String siteUrl ) : void
EnableResponsiveDesignOnSite ( String siteUrl ) : void
GetPropertyBagValueFromInfrastructure ( String propertyKey ) : String
GetSiteCollectionRootUrl ( String siteUrl ) : String
GetSiteCollectionSettings ( String siteCollectionUri ) : OfficeDevPnP.PartnerPack.Infrastructure.SiteCollectionSettings
GetTenantBrandingSettings ( ) : BrandingSettings

Helper method for reading branding settings from the Infrastructural Site Collection

IsPartnerPackOverridesEnabledOnSite ( String siteUrl ) : System.Boolean
SetPropertyBagValueToInfrastructure ( String propertyKey, String value ) : void
UserIsSPOAdmin ( ) : System.Boolean
UserIsTenantGlobalAdmin ( ) : System.Boolean

Private Methods

Method Description
ApplyProvisioningTemplateToSite ( ClientContext context, String siteUrl, String folder, String fileName, String>.Dictionary parameters = null, Handlers handlers = Handlers.All ) : void
UserIsAdmin ( String targetRole ) : System.Boolean

Method Details

DisablePartnerPackOnSite() public static method

public static DisablePartnerPackOnSite ( String siteUrl ) : void
siteUrl String
return void

EnablePartnerPackInfrastructureOnSite() public static method

public static EnablePartnerPackInfrastructureOnSite ( String siteUrl ) : void
siteUrl String
return void

EnablePartnerPackOnSite() public static method

public static EnablePartnerPackOnSite ( String siteUrl ) : void
siteUrl String
return void

EnableResponsiveDesignOnSite() public static method

public static EnableResponsiveDesignOnSite ( String siteUrl ) : void
siteUrl String
return void

GetPropertyBagValueFromInfrastructure() public static method

public static GetPropertyBagValueFromInfrastructure ( String propertyKey ) : String
propertyKey String
return String

GetSiteCollectionRootUrl() public static method

public static GetSiteCollectionRootUrl ( String siteUrl ) : String
siteUrl String
return String

GetSiteCollectionSettings() public static method

public static GetSiteCollectionSettings ( String siteCollectionUri ) : OfficeDevPnP.PartnerPack.Infrastructure.SiteCollectionSettings
siteCollectionUri String
return OfficeDevPnP.PartnerPack.Infrastructure.SiteCollectionSettings

GetTenantBrandingSettings() public static method

Helper method for reading branding settings from the Infrastructural Site Collection
public static GetTenantBrandingSettings ( ) : BrandingSettings
return OfficeDevPnP.PartnerPack.Infrastructure.Jobs.BrandingSettings

IsPartnerPackOverridesEnabledOnSite() public static method

public static IsPartnerPackOverridesEnabledOnSite ( String siteUrl ) : System.Boolean
siteUrl String
return System.Boolean

SetPropertyBagValueToInfrastructure() public static method

public static SetPropertyBagValueToInfrastructure ( String propertyKey, String value ) : void
propertyKey String
value String
return void

UserIsSPOAdmin() public static method

public static UserIsSPOAdmin ( ) : System.Boolean
return System.Boolean

UserIsTenantGlobalAdmin() public static method

public static UserIsTenantGlobalAdmin ( ) : System.Boolean
return System.Boolean