Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seal ModularTenantEvents & DeploymentSourceBase implementations #16897

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 15 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace OrchardCore.AdminMenu.Deployment;

public class AdminMenuDeploymentSource
public sealed class AdminMenuDeploymentSource
: DeploymentSourceBase<AdminMenuDeploymentStep>
{
private readonly IAdminMenuService _adminMenuService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace OrchardCore.AuditTrail.Services;

public class DefaultAuditTrailAdminListFilterParser : IAuditTrailAdminListFilterParser
public sealed class DefaultAuditTrailAdminListFilterParser : IAuditTrailAdminListFilterParser
{
private readonly IQueryParser<AuditTrailEvent> _parser;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

namespace OrchardCore.AuditTrail.Services;

public class DefaultAuditTrailAdminListFilterProvider : IAuditTrailAdminListFilterProvider
public sealed class DefaultAuditTrailAdminListFilterProvider : IAuditTrailAdminListFilterProvider
{
private readonly IOptions<AuditTrailAdminListOptions> _options;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@

namespace OrchardCore.AuditTrail.Services;

public class DefaultAuditTrailAdminListQueryService : IAuditTrailAdminListQueryService
public sealed class DefaultAuditTrailAdminListQueryService : IAuditTrailAdminListQueryService
{
private const string DateFormat = "yyyy-MM-dd";
private readonly IAuditTrailManager _auditTrailManager;
private readonly ILocalClock _localClock;
private readonly AuditTrailAdminListOptions _adminListOptions;
private readonly ISession _session;
private readonly IServiceProvider _serviceProvider;
protected readonly IStringLocalizer S;
private readonly IStringLocalizer S;

public DefaultAuditTrailAdminListQueryService(
IAuditTrailManager auditTrailManager,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace OrchardCore.ContentLocalization.Security;

public class LocalizeContentAuthorizationHandler : AuthorizationHandler<PermissionRequirement>
public sealed class LocalizeContentAuthorizationHandler : AuthorizationHandler<PermissionRequirement>
{
private readonly IServiceProvider _serviceProvider;
private IAuthorizationService _authorizationService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace OrchardCore.ContentLocalization.Services;

public class LocalizationPartContentsAdminListFilterProvider : IContentsAdminListFilterProvider
public sealed class LocalizationPartContentsAdminListFilterProvider : IContentsAdminListFilterProvider
{
public void Build(QueryEngineBuilder<ContentItem> builder)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace OrchardCore.ContentTypes.Deployment;

public class ContentDefinitionDeploymentSource
public sealed class ContentDefinitionDeploymentSource
: DeploymentSourceBase<ContentDefinitionDeploymentStep>
{
private readonly IContentDefinitionStore _contentDefinitionStore;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace OrchardCore.ContentTypes.Deployment;

public class DeleteContentDefinitionDeploymentSource
public sealed class DeleteContentDefinitionDeploymentSource
: DeploymentSourceBase<DeleteContentDefinitionDeploymentStep>
{
protected override Task ProcessAsync(DeleteContentDefinitionDeploymentStep step, DeploymentPlanResult result)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace OrchardCore.ContentTypes.Deployment;

public class ReplaceContentDefinitionDeploymentSource
public sealed class ReplaceContentDefinitionDeploymentSource
: DeploymentSourceBase<ReplaceContentDefinitionDeploymentStep>
{
private readonly IContentDefinitionStore _contentDefinitionStore;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace OrchardCore.Contents.Deployment.AddToDeploymentPlan;

public class ContentItemDeploymentSource
public sealed class ContentItemDeploymentSource
: DeploymentSourceBase<ContentItemDeploymentStep>
{
private readonly IContentManager _contentManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace OrchardCore.Contents.Deployment;

public class AllContentDeploymentSource
public sealed class AllContentDeploymentSource
: DeploymentSourceBase<AllContentDeploymentStep>
{
private readonly ISession _session;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace OrchardCore.Contents.Deployment;

public class ContentDeploymentSource
public sealed class ContentDeploymentSource
: DeploymentSourceBase<ContentDeploymentStep>
{
private readonly ISession _session;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace OrchardCore.Contents.Deployment.ExportContentToDeploymentTarget;

public class ExportContentToDeploymentTargetDeploymentSource
public sealed class ExportContentToDeploymentTargetDeploymentSource
: DeploymentSourceBase<ExportContentToDeploymentTargetDeploymentStep>
{
private readonly IContentManager _contentManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace OrchardCore.Contents.Scripting;

public class ContentMethodsProvider : IGlobalMethodProvider
public sealed class ContentMethodsProvider : IGlobalMethodProvider
{
private readonly GlobalMethod _newContentItemMethod;
private readonly GlobalMethod _createContentItemMethod;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace OrchardCore.Contents.Scripting;

public class UrlMethodsProvider : IGlobalMethodProvider
public sealed class UrlMethodsProvider : IGlobalMethodProvider
{
private readonly GlobalMethod _getUrlPrefix;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace OrchardCore.Contents.Security;

public class ContentTypeAuthorizationHandler : AuthorizationHandler<PermissionRequirement>
public sealed class ContentTypeAuthorizationHandler : AuthorizationHandler<PermissionRequirement>
{
private readonly IServiceProvider _serviceProvider;
private IAuthorizationService _authorizationService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace OrchardCore.Contents.Services;

public class DefaultContentsAdminListFilterParser : IContentsAdminListFilterParser
public sealed class DefaultContentsAdminListFilterParser : IContentsAdminListFilterParser
{
private readonly IQueryParser<ContentItem> _parser;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace OrchardCore.Contents.Services;

public class DefaultContentsAdminListFilterProvider : IContentsAdminListFilterProvider
public sealed class DefaultContentsAdminListFilterProvider : IContentsAdminListFilterProvider
{
public void Build(QueryEngineBuilder<ContentItem> builder)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace OrchardCore.Contents.Services;

public class DefaultContentsAdminListQueryService : IContentsAdminListQueryService
public sealed class DefaultContentsAdminListQueryService : IContentsAdminListQueryService
{
private static readonly string[] _operators = ["OR", "AND", "||", "&&"];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace OrchardCore.CustomSettings.Deployment;

public class CustomSettingsDeploymentSource
public sealed class CustomSettingsDeploymentSource
: DeploymentSourceBase<CustomSettingsDeploymentStep>
{
private readonly CustomSettingsService _customSettingsService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace OrchardCore.CustomSettings.Services;

public class CustomSettingsAuthorizationHandler : AuthorizationHandler<PermissionRequirement>
public sealed class CustomSettingsAuthorizationHandler : AuthorizationHandler<PermissionRequirement>
{
private readonly IServiceProvider _serviceProvider;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace OrchardCore.Deployment.Deployment;

public class DeploymentPlanDeploymentSource
public sealed class DeploymentPlanDeploymentSource
: DeploymentSourceBase<DeploymentPlanDeploymentStep>
{
private readonly IDeploymentPlanService _deploymentPlanService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace OrchardCore.Deployment.Steps;

public class CustomFileDeploymentSource
public sealed class CustomFileDeploymentSource
: DeploymentSourceBase<CustomFileDeploymentStep>
{
protected override Task ProcessAsync(CustomFileDeploymentStep step, DeploymentPlanResult result)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace OrchardCore.Deployment.Steps;

public class JsonRecipeDeploymentSource
public sealed class JsonRecipeDeploymentSource
: DeploymentSourceBase<JsonRecipeDeploymentStep>
{
protected override Task ProcessAsync(JsonRecipeDeploymentStep step, DeploymentPlanResult result)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace OrchardCore.Facebook.Deployment;

public class FacebookLoginDeploymentSource
public sealed class FacebookLoginDeploymentSource
: DeploymentSourceBase<FacebookLoginDeploymentStep>
{
private readonly IFacebookService _facebookService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace OrchardCore.Features.Deployment;

public class AllFeaturesDeploymentSource
public sealed class AllFeaturesDeploymentSource
: DeploymentSourceBase<AllFeaturesDeploymentStep>
{
private readonly IModuleService _moduleService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace OrchardCore.Layers.Deployment;

public class AllLayersDeploymentSource
public sealed class AllLayersDeploymentSource
: DeploymentSourceBase<AllLayersDeploymentStep>
{
private readonly ILayerService _layerService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace OrchardCore.Layers.Services;

public class DefaultLayersMethodProvider : IGlobalMethodProvider
public sealed class DefaultLayersMethodProvider : IGlobalMethodProvider
{
private readonly GlobalMethod _isHomepage;
private readonly GlobalMethod _isAnonymous;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace OrchardCore.Media.AmazonS3.Services;

public class MediaS3BucketTenantEvents : AwsTenantEventsBase
public sealed class MediaS3BucketTenantEvents : AwsTenantEventsBase
{
public MediaS3BucketTenantEvents(
ShellSettings shellSettings,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@

namespace OrchardCore.Media.Azure.Services;

public class MediaBlobContainerTenantEvents : ModularTenantEvents
public sealed class MediaBlobContainerTenantEvents : ModularTenantEvents
{
private readonly MediaBlobStorageOptions _options;
private readonly ShellSettings _shellSettings;
private readonly ILogger _logger;

protected readonly IStringLocalizer S;
internal readonly IStringLocalizer S;

public MediaBlobContainerTenantEvents(
IOptions<MediaBlobStorageOptions> options,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace OrchardCore.Media.Deployment;

public class AllMediaProfilesDeploymentSource
public sealed class AllMediaProfilesDeploymentSource
: DeploymentSourceBase<AllMediaProfilesDeploymentStep>
{
private readonly MediaProfilesManager _mediaProfilesManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace OrchardCore.Media.Deployment;

public class MediaDeploymentSource
public sealed class MediaDeploymentSource
: DeploymentSourceBase<MediaDeploymentStep>
{
private readonly IMediaFileStore _mediaFileStore;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace OrchardCore.Media.Services;
/// <summary>
/// Checks if the user has related permission to manage the path resource which is passed from AuthorizationHandler.
/// </summary>
public class ManageMediaFolderAuthorizationHandler : AuthorizationHandler<PermissionRequirement>
public sealed class ManageMediaFolderAuthorizationHandler : AuthorizationHandler<PermissionRequirement>
{
private readonly IServiceProvider _serviceProvider;
private readonly AttachedMediaFieldFileService _attachedMediaFieldFileService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace OrchardCore.Media.Services;

public class TempDirCleanerService : ModularTenantEvents
public sealed class TempDirCleanerService : ModularTenantEvents
{
private readonly IMediaFileStore _fileStore;
private readonly AttachedMediaFieldFileService _attachedMediaFieldFileService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace OrchardCore.Media.Services;
/// <summary>
/// Checks if the user has related permission to view media in the path resource which is passed from AuthorizationHandler.
/// </summary>
public class ViewMediaFolderAuthorizationHandler : AuthorizationHandler<PermissionRequirement>
public sealed class ViewMediaFolderAuthorizationHandler : AuthorizationHandler<PermissionRequirement>
{
private const char PathSeparator = '/';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace OrchardCore.Microsoft.Authentication.Deployment;

public class AzureADDeploymentSource
public sealed class AzureADDeploymentSource
: DeploymentSourceBase<AzureADDeploymentStep>
{
private readonly IAzureADService _azureADService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace OrchardCore.OpenId.Deployment;

public class OpenIdServerDeploymentSource
public sealed class OpenIdServerDeploymentSource
: DeploymentSourceBase<OpenIdServerDeploymentStep>
{
private readonly IOpenIdServerService _openIdServerService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace OrchardCore.OpenId.Deployment;

public class OpenIdValidationDeploymentSource
public sealed class OpenIdValidationDeploymentSource
: DeploymentSourceBase<OpenIdValidationDeploymentStep>
{
private readonly IOpenIdValidationService _openIdValidationService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace OrchardCore.Placements.Deployment;

public class PlacementsDeploymentSource
public sealed class PlacementsDeploymentSource
: DeploymentSourceBase<PlacementsDeploymentStep>
{
private readonly PlacementsManager _placementsManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace OrchardCore.Queries.Deployment;

public class AllQueriesDeploymentSource
public sealed class AllQueriesDeploymentSource
: DeploymentSourceBase<AllQueriesDeploymentStep>
{
private readonly IQueryManager _queryManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace OrchardCore.Queries.Deployment;

public class QueryBasedContentDeploymentSource
public sealed class QueryBasedContentDeploymentSource
: DeploymentSourceBase<QueryBasedContentDeploymentStep>
{
private readonly IQueryManager _queryManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace OrchardCore.Queries;

public class QueryGlobalMethodProvider : IGlobalMethodProvider
public sealed class QueryGlobalMethodProvider : IGlobalMethodProvider
{
private readonly GlobalMethod _executeQuery;

Expand Down
Loading