From bf41c2eeaaf7137ab8223b6557514e5ca84abd5b Mon Sep 17 00:00:00 2001 From: Mole Date: Thu, 18 Feb 2021 11:06:02 +0100 Subject: [PATCH] Netcore: Align namespaces (#9801) * Rename Umbraco.Core namespace to Umbraco.Cms.Core * Move extension methods in core project to Umbraco.Extensions * Move extension methods in core project to Umbraco.Extensions * Rename Umbraco.Examine namespace to Umbraco.Cms.Examine * Move examine extensions to Umbraco.Extensions namespace * Reflect changed namespaces in Builder and fix unit tests * Adjust namespace in Umbraco.ModelsBuilder.Embedded * Adjust namespace in Umbraco.Persistence.SqlCe * Adjust namespace in Umbraco.PublishedCache.NuCache * Align namespaces in Umbraco.Web.BackOffice * Align namespaces in Umbraco.Web.Common * Ensure that SqlCeSupport is still enabled after changing the namespace * Align namespaces in Umbraco.Web.Website * Align namespaces in Umbraco.Web.UI.NetCore * Align namespaces in Umbraco.Tests.Common * Align namespaces in Umbraco.Tests.UnitTests * Align namespaces in Umbraco.Tests.Integration * Fix errors caused by changed namespaces * Fix integration tests * Undo the Umbraco.Examine.Lucene namespace change This breaks integration tests on linux, since the namespace wont exists there because it's only used on windows. * Fix merge * Fix Merge --- .../Actions/ActionAssignDomain.cs | 6 +- src/Umbraco.Core/Actions/ActionBrowse.cs | 6 +- .../Actions/ActionChangeDocType.cs | 2 +- src/Umbraco.Core/Actions/ActionCollection.cs | 9 +- .../Actions/ActionCollectionBuilder.cs | 5 +- src/Umbraco.Core/Actions/ActionCopy.cs | 4 +- .../ActionCreateBlueprintFromContent.cs | 6 +- src/Umbraco.Core/Actions/ActionDelete.cs | 4 +- src/Umbraco.Core/Actions/ActionMove.cs | 4 +- src/Umbraco.Core/Actions/ActionNew.cs | 4 +- src/Umbraco.Core/Actions/ActionProtect.cs | 4 +- src/Umbraco.Core/Actions/ActionPublish.cs | 6 +- src/Umbraco.Core/Actions/ActionRestore.cs | 2 +- src/Umbraco.Core/Actions/ActionRights.cs | 4 +- src/Umbraco.Core/Actions/ActionRollback.cs | 4 +- src/Umbraco.Core/Actions/ActionSort.cs | 6 +- src/Umbraco.Core/Actions/ActionToPublish.cs | 4 +- src/Umbraco.Core/Actions/ActionUnpublish.cs | 6 +- src/Umbraco.Core/Actions/ActionUpdate.cs | 4 +- src/Umbraco.Core/Actions/IAction.cs | 4 +- src/Umbraco.Core/Attempt.cs | 2 +- src/Umbraco.Core/AttemptOfTResult.cs | 2 +- src/Umbraco.Core/AttemptOfTResultTStatus.cs | 2 +- src/Umbraco.Core/Cache/AppCacheExtensions.cs | 3 +- src/Umbraco.Core/Cache/AppCaches.cs | 2 +- .../Cache/AppPolicedCacheDictionary.cs | 2 +- .../Cache/ApplicationCacheRefresher.cs | 3 +- src/Umbraco.Core/Cache/CacheKeys.cs | 2 +- src/Umbraco.Core/Cache/CacheRefresherBase.cs | 8 +- .../Cache/CacheRefresherCollection.cs | 4 +- .../Cache/CacheRefresherCollectionBuilder.cs | 4 +- .../Cache/CacheRefresherEventArgs.cs | 4 +- .../Cache/ContentCacheRefresher.cs | 17 +- .../Cache/ContentTypeCacheRefresher.cs | 19 +- .../Cache/DataTypeCacheRefresher.cs | 18 +- src/Umbraco.Core/Cache/DeepCloneAppCache.cs | 6 +- src/Umbraco.Core/Cache/DictionaryAppCache.cs | 3 +- .../Cache/DictionaryCacheRefresher.cs | 5 +- src/Umbraco.Core/Cache/DistributedCache.cs | 6 +- .../Cache/DomainCacheRefresher.cs | 11 +- .../Cache/FastDictionaryAppCache.cs | 4 +- .../Cache/FastDictionaryAppCacheBase.cs | 5 +- .../Cache/GenericDictionaryRequestAppCache.cs | 3 +- src/Umbraco.Core/Cache/HttpRequestAppCache.cs | 2 +- src/Umbraco.Core/Cache/IAppCache.cs | 2 +- src/Umbraco.Core/Cache/IAppPolicyCache.cs | 2 +- src/Umbraco.Core/Cache/ICacheRefresher.cs | 4 +- .../Cache/IDistributedCacheBinder.cs | 4 +- src/Umbraco.Core/Cache/IJsonCacheRefresher.cs | 2 +- .../Cache/IPayloadCacheRefresher.cs | 2 +- .../Cache/IRepositoryCachePolicy.cs | 5 +- src/Umbraco.Core/Cache/IRequestCache.cs | 2 +- src/Umbraco.Core/Cache/IsolatedCaches.cs | 2 +- .../Cache/JsonCacheRefresherBase.cs | 6 +- .../Cache/LanguageCacheRefresher.cs | 15 +- src/Umbraco.Core/Cache/MacroCacheRefresher.cs | 9 +- src/Umbraco.Core/Cache/MediaCacheRefresher.cs | 17 +- .../Cache/MemberCacheRefresher.cs | 16 +- .../Cache/MemberGroupCacheRefresher.cs | 8 +- src/Umbraco.Core/Cache/NoAppCache.cs | 2 +- .../Cache/NoCacheRepositoryCachePolicy.cs | 4 +- src/Umbraco.Core/Cache/ObjectCacheAppCache.cs | 4 +- .../Cache/PayloadCacheRefresherBase.cs | 7 +- .../Cache/PublicAccessCacheRefresher.cs | 5 +- .../Cache/RelationTypeCacheRefresher.cs | 8 +- .../Cache/RepositoryCachePolicyOptions.cs | 2 +- src/Umbraco.Core/Cache/SafeLazy.cs | 2 +- .../Cache/TemplateCacheRefresher.cs | 9 +- .../Cache/TypedCacheRefresherBase.cs | 4 +- src/Umbraco.Core/Cache/UserCacheRefresher.cs | 8 +- .../Cache/UserGroupCacheRefresher.cs | 8 +- .../CodeAnnotations/FriendlyNameAttribute.cs | 2 +- .../UmbracoObjectTypeAttribute.cs | 2 +- .../UmbracoUdiTypeAttribute.cs | 2 +- .../Collections/CompositeIntStringKey.cs | 2 +- .../Collections/CompositeNStringNStringKey.cs | 4 +- .../Collections/CompositeStringStringKey.cs | 2 +- .../Collections/CompositeTypeTypeKey.cs | 2 +- .../Collections/ConcurrentHashSet.cs | 2 +- .../Collections/DeepCloneableList.cs | 8 +- .../EventClearingObservableCollection.cs | 2 +- .../Collections/ListCloneBehavior.cs | 2 +- .../Collections/ObservableDictionary.cs | 4 +- .../Collections/OrderedHashSet.cs | 2 +- src/Umbraco.Core/Collections/TopoGraph.cs | 2 +- src/Umbraco.Core/Collections/TypeList.cs | 2 +- .../Composing/BuilderCollectionBase.cs | 2 +- .../Composing/CollectionBuilderBase.cs | 4 +- .../Composing/ComponentCollection.cs | 5 +- .../Composing/ComponentCollectionBuilder.cs | 4 +- .../Composing/ComponentComposer.cs | 4 +- .../Composing/ComposeAfterAttribute.cs | 2 +- .../Composing/ComposeBeforeAttribute.cs | 2 +- src/Umbraco.Core/Composing/Composers.cs | 7 +- .../Composing/CompositionExtensions.cs | 7 +- .../DefaultUmbracoAssemblyProvider.cs | 2 +- .../Composing/DisableAttribute.cs | 2 +- .../Composing/DisableComposerAttribute.cs | 2 +- src/Umbraco.Core/Composing/EnableAttribute.cs | 2 +- .../Composing/EnableComposerAttribute.cs | 2 +- .../FindAssembliesWithReferencesTo.cs | 5 +- .../Composing/HideFromTypeFinderAttribute.cs | 2 +- .../Composing/IAssemblyProvider.cs | 2 +- .../Composing/IBuilderCollection.cs | 2 +- .../Composing/ICollectionBuilder.cs | 2 +- src/Umbraco.Core/Composing/IComponent.cs | 2 +- src/Umbraco.Core/Composing/IComposer.cs | 4 +- src/Umbraco.Core/Composing/ICoreComposer.cs | 2 +- src/Umbraco.Core/Composing/IDiscoverable.cs | 2 +- src/Umbraco.Core/Composing/IRuntimeHash.cs | 2 +- src/Umbraco.Core/Composing/ITypeFinder.cs | 2 +- src/Umbraco.Core/Composing/IUserComposer.cs | 2 +- .../Composing/LazyCollectionBuilderBase.cs | 2 +- src/Umbraco.Core/Composing/LazyResolve.cs | 2 +- .../Composing/OrderedCollectionBuilderBase.cs | 2 +- .../Composing/ReferenceResolver.cs | 2 +- src/Umbraco.Core/Composing/RuntimeHash.cs | 4 +- .../Composing/RuntimeHashPaths.cs | 2 +- .../Composing/SetCollectionBuilderBase.cs | 2 +- .../Composing/TypeCollectionBuilderBase.cs | 4 +- src/Umbraco.Core/Composing/TypeFinder.cs | 5 +- .../Composing/TypeFinderConfig.cs | 6 +- .../Composing/TypeFinderExtensions.cs | 3 +- src/Umbraco.Core/Composing/TypeHelper.cs | 9 +- src/Umbraco.Core/Composing/TypeLoader.cs | 12 +- .../Composing/VaryingRuntimeHash.cs | 2 +- src/Umbraco.Core/Composing/WeightAttribute.cs | 2 +- .../WeightedCollectionBuilderBase.cs | 2 +- .../Configuration/ConfigConnectionString.cs | 10 +- .../ContentSettingsExtensions.cs | 5 +- .../HealthCheckSettingsExtensions.cs | 5 +- .../Configuration/GlobalSettingsExtensions.cs | 6 +- .../Configuration/Grid/GridConfig.cs | 10 +- .../Configuration/Grid/GridEditorsConfig.cs | 13 +- .../Configuration/Grid/IGridConfig.cs | 7 +- .../Configuration/Grid/IGridEditorConfig.cs | 2 +- .../Configuration/Grid/IGridEditorsConfig.cs | 2 +- .../Configuration/IConfigManipulator.cs | 2 +- .../Configuration/ICronTabParser.cs | 2 +- .../IMemberPasswordConfiguration.cs | 2 +- .../Configuration/IPasswordConfiguration.cs | 2 +- .../Configuration/ITypeFinderSettings.cs | 2 +- .../IUmbracoConfigurationSection.cs | 4 +- .../Configuration/IUmbracoVersion.cs | 4 +- .../IUserPasswordConfiguration.cs | 2 +- .../Configuration/LocalTempStorage.cs | 2 +- .../MemberPasswordConfiguration.cs | 4 +- .../Models/ActiveDirectorySettings.cs | 2 +- .../Configuration/Models/ConnectionStrings.cs | 2 +- .../Configuration/Models/ContentErrorPage.cs | 4 +- .../Models/ContentImagingSettings.cs | 2 +- .../Models/ContentNotificationSettings.cs | 2 +- .../Configuration/Models/ContentSettings.cs | 4 +- .../Configuration/Models/CoreDebugSettings.cs | 2 +- .../Models/DatabaseServerMessengerSettings.cs | 2 +- .../Models/DatabaseServerRegistrarSettings.cs | 2 +- .../Models/DisabledHealthCheckSettings.cs | 2 +- .../Models/ExceptionFilterSettings.cs | 2 +- .../Configuration/Models/GlobalSettings.cs | 2 +- .../HealthChecksNotificationMethodSettings.cs | 4 +- .../HealthChecksNotificationSettings.cs | 2 +- .../Models/HealthChecksSettings.cs | 2 +- .../Configuration/Models/HostingSettings.cs | 2 +- .../Models/ImagingAutoFillUploadField.cs | 4 +- .../Models/ImagingCacheSettings.cs | 2 +- .../Models/ImagingResizeSettings.cs | 2 +- .../Configuration/Models/ImagingSettings.cs | 2 +- .../Models/IndexCreatorSettings.cs | 2 +- .../Configuration/Models/KeepAliveSettings.cs | 2 +- .../Configuration/Models/LoggingSettings.cs | 2 +- .../MemberPasswordConfigurationSettings.cs | 2 +- .../Models/ModelsBuilderSettings.cs | 4 +- .../Configuration/Models/NuCacheSettings.cs | 2 +- .../Models/RequestHandlerSettings.cs | 5 +- .../Configuration/Models/RuntimeSettings.cs | 2 +- .../Configuration/Models/SecuritySettings.cs | 2 +- .../Configuration/Models/SmtpSettings.cs | 4 +- .../Configuration/Models/TourSettings.cs | 2 +- .../Models/TypeFinderSettings.cs | 2 +- .../Models/UmbracoPluginSettings.cs | 2 +- .../UserPasswordConfigurationSettings.cs | 2 +- .../Validation/ConfigurationValidatorBase.cs | 3 +- .../Validation/ContentSettingsValidator.cs | 2 +- .../Validation/GlobalSettingsValidator.cs | 2 +- .../HealthChecksSettingsValidator.cs | 2 +- .../RequestHandlerSettingsValidator.cs | 2 +- .../Models/Validation/ValidatableEntryBase.cs | 2 +- .../Models/WebRoutingSettings.cs | 4 +- .../ModelsBuilderConfigExtensions.cs | 7 +- src/Umbraco.Core/Configuration/ModelsMode.cs | 2 +- .../Configuration/ModelsModeExtensions.cs | 4 +- .../Configuration/PasswordConfiguration.cs | 3 +- .../Configuration/UmbracoSettings/IChar.cs | 2 +- .../IImagingAutoFillUploadField.cs | 2 +- .../IPasswordConfigurationSection.cs | 2 +- .../UmbracoSettings/ITypeFinderConfig.cs | 2 +- .../Configuration/UmbracoVersion.cs | 5 +- .../UserPasswordConfiguration.cs | 4 +- src/Umbraco.Core/Constants-AppSettings.cs | 2 +- src/Umbraco.Core/Constants-Applications.cs | 2 +- src/Umbraco.Core/Constants-Composing.cs | 2 +- src/Umbraco.Core/Constants-Configuration.cs | 2 +- src/Umbraco.Core/Constants-Conventions.cs | 6 +- src/Umbraco.Core/Constants-DataTypes.cs | 2 +- .../Constants-DatabaseProviders.cs | 2 +- src/Umbraco.Core/Constants-DeploySelector.cs | 2 +- src/Umbraco.Core/Constants-HealthChecks.cs | 2 +- src/Umbraco.Core/Constants-Icons.cs | 2 +- src/Umbraco.Core/Constants-Indexes.cs | 2 +- src/Umbraco.Core/Constants-ModelsBuilder.cs | 5 +- src/Umbraco.Core/Constants-ObjectTypes.cs | 2 +- .../Constants-PackageRepository.cs | 2 +- src/Umbraco.Core/Constants-PropertyEditors.cs | 4 +- .../Constants-PropertyTypeGroups.cs | 2 +- src/Umbraco.Core/Constants-Security.cs | 2 +- src/Umbraco.Core/Constants-SqlTemplates.cs | 2 +- src/Umbraco.Core/Constants-SvgSanitizer.cs | 2 +- src/Umbraco.Core/Constants-System.cs | 2 +- .../Constants-SystemDirectories.cs | 2 +- src/Umbraco.Core/Constants-UdiEntityType.cs | 2 +- src/Umbraco.Core/Constants-Web.cs | 2 +- .../ContentAppFactoryCollection.cs | 12 +- .../ContentAppFactoryCollectionBuilder.cs | 14 +- .../ContentEditorContentAppFactory.cs | 12 +- .../ContentInfoContentAppFactory.cs | 11 +- .../ContentTypeDesignContentAppFactory.cs | 11 +- .../ContentTypeListViewContentAppFactory.cs | 11 +- ...ContentTypePermissionsContentAppFactory.cs | 11 +- .../ContentTypeTemplatesContentAppFactory.cs | 11 +- .../ContentApps/ListViewContentAppFactory.cs | 25 +- src/Umbraco.Core/ConventionsHelper.cs | 6 +- .../CustomBooleanTypeConverter.cs | 2 +- src/Umbraco.Core/Dashboards/AccessRule.cs | 2 +- src/Umbraco.Core/Dashboards/AccessRuleType.cs | 2 +- .../Dashboards/ContentDashboard.cs | 6 +- .../Dashboards/DashboardCollection.cs | 5 +- .../Dashboards/DashboardCollectionBuilder.cs | 9 +- src/Umbraco.Core/Dashboards/DashboardSlim.cs | 2 +- .../Dashboards/ExamineDashboard.cs | 5 +- src/Umbraco.Core/Dashboards/FormsDashboard.cs | 6 +- .../Dashboards/HealthCheckDashboard.cs | 5 +- src/Umbraco.Core/Dashboards/IAccessRule.cs | 2 +- src/Umbraco.Core/Dashboards/IDashboard.cs | 3 +- src/Umbraco.Core/Dashboards/IDashboardSlim.cs | 4 +- src/Umbraco.Core/Dashboards/MediaDashboard.cs | 5 +- .../Dashboards/MembersDashboard.cs | 5 +- .../Dashboards/ProfilerDashboard.cs | 5 +- .../Dashboards/PublishedStatusDashboard.cs | 5 +- .../Dashboards/RedirectUrlDashboard.cs | 5 +- .../Dashboards/SettingsDashboards.cs | 5 +- .../DefaultEventMessagesFactory.cs | 4 +- src/Umbraco.Core/DelegateEqualityComparer.cs | 2 +- .../DependencyInjection/IUmbracoBuilder.cs | 4 +- .../ServiceCollectionExtensions.cs | 5 +- .../ServiceProviderExtensions.cs | 6 +- .../UmbracoBuilder.Collections.cs | 42 +-- .../UmbracoBuilder.Composers.cs | 4 +- .../UmbracoBuilder.Configuration.cs | 50 +-- .../UmbracoBuilder.Events.cs | 4 +- .../DependencyInjection/UmbracoBuilder.cs | 58 ++-- .../UniqueServiceDescriptor.cs | 2 +- src/Umbraco.Core/Deploy/ArtifactBase.cs | 2 +- src/Umbraco.Core/Deploy/ArtifactDependency.cs | 2 +- .../Deploy/ArtifactDependencyCollection.cs | 2 +- .../Deploy/ArtifactDependencyMode.cs | 2 +- .../Deploy/ArtifactDeployState.cs | 2 +- .../ArtifactDeployStateOfTArtifactTEntity.cs | 2 +- src/Umbraco.Core/Deploy/ArtifactSignature.cs | 2 +- src/Umbraco.Core/Deploy/Difference.cs | 2 +- src/Umbraco.Core/Deploy/Direction.cs | 2 +- src/Umbraco.Core/Deploy/IArtifact.cs | 2 +- src/Umbraco.Core/Deploy/IArtifactSignature.cs | 2 +- .../Deploy/IDataTypeConfigurationConnector.cs | 4 +- src/Umbraco.Core/Deploy/IDeployContext.cs | 3 +- src/Umbraco.Core/Deploy/IFileSource.cs | 2 +- src/Umbraco.Core/Deploy/IFileType.cs | 2 +- .../Deploy/IFileTypeCollection.cs | 2 +- src/Umbraco.Core/Deploy/IImageSourceParser.cs | 2 +- src/Umbraco.Core/Deploy/ILocalLinkParser.cs | 2 +- src/Umbraco.Core/Deploy/IMacroParser.cs | 2 +- src/Umbraco.Core/Deploy/IServiceConnector.cs | 4 +- .../IUniqueIdentifyingServiceConnector.cs | 2 +- src/Umbraco.Core/Deploy/IValueConnector.cs | 4 +- src/Umbraco.Core/Diagnostics/IMarchal.cs | 2 +- src/Umbraco.Core/Diagnostics/MiniDump.cs | 4 +- src/Umbraco.Core/Diagnostics/NoopMarchal.cs | 2 +- .../Dictionary/ICultureDictionary.cs | 5 +- .../Dictionary/ICultureDictionaryFactory.cs | 2 +- .../Dictionary/UmbracoCultureDictionary.cs | 10 +- .../UmbracoCultureDictionaryFactory.cs | 6 +- src/Umbraco.Core/Direction.cs | 2 +- src/Umbraco.Core/DisposableObjectSlim.cs | 2 +- .../Editors/BackOfficePreviewModel.cs | 6 +- .../Editors/EditorModelEventArgs.cs | 3 +- .../Editors/EditorValidatorCollection.cs | 7 +- .../EditorValidatorCollectionBuilder.cs | 4 +- .../Editors/EditorValidatorOfT.cs | 2 +- src/Umbraco.Core/Editors/IEditorValidator.cs | 4 +- .../Editors/UserEditorAuthorizationHelper.cs | 19 +- src/Umbraco.Core/Enum.cs | 2 +- .../CancellableEnumerableObjectEventArgs.cs | 2 +- .../Events/CancellableEventArgs.cs | 2 +- .../Events/CancellableObjectEventArgs.cs | 2 +- ...ancellableObjectEventArgsOfTEventObject.cs | 2 +- .../Events/ContentCacheEventArgs.cs | 2 +- .../Events/ContentPublishedEventArgs.cs | 6 +- .../Events/ContentPublishingEventArgs.cs | 4 +- .../Events/ContentSavedEventArgs.cs | 4 +- .../Events/ContentSavingEventArgs.cs | 4 +- src/Umbraco.Core/Events/CopyEventArgs.cs | 2 +- .../Events/DatabaseCreationEventArgs.cs | 2 +- src/Umbraco.Core/Events/DeleteEventArgs.cs | 2 +- .../Events/DeleteRevisionsEventArgs.cs | 2 +- .../Events/EventAggregator.Notifications.cs | 2 +- src/Umbraco.Core/Events/EventAggregator.cs | 2 +- src/Umbraco.Core/Events/EventDefinition.cs | 2 +- .../Events/EventDefinitionBase.cs | 3 +- .../Events/EventDefinitionFilter.cs | 2 +- src/Umbraco.Core/Events/EventExtensions.cs | 2 +- src/Umbraco.Core/Events/EventMessage.cs | 2 +- src/Umbraco.Core/Events/EventMessageType.cs | 2 +- src/Umbraco.Core/Events/EventMessages.cs | 2 +- src/Umbraco.Core/Events/EventNameExtractor.cs | 2 +- .../Events/EventNameExtractorError.cs | 2 +- .../Events/EventNameExtractorResult.cs | 2 +- .../Events/ExportedMemberEventArgs.cs | 6 +- .../Events/IDeletingMediaFilesEventArgs.cs | 2 +- src/Umbraco.Core/Events/IEventAggregator.cs | 2 +- src/Umbraco.Core/Events/IEventDefinition.cs | 4 +- src/Umbraco.Core/Events/IEventDispatcher.cs | 2 +- .../Events/IEventMessagesAccessor.cs | 2 +- .../Events/IEventMessagesFactory.cs | 4 +- src/Umbraco.Core/Events/INotification.cs | 2 +- .../Events/INotificationHandler.cs | 2 +- .../Events/ImportPackageEventArgs.cs | 7 +- .../Events/MacroErrorEventArgs.cs | 4 +- src/Umbraco.Core/Events/MoveEventArgs.cs | 2 +- src/Umbraco.Core/Events/MoveEventInfo.cs | 2 +- src/Umbraco.Core/Events/NewEventArgs.cs | 3 +- .../Events/PassThroughEventDispatcher.cs | 2 +- src/Umbraco.Core/Events/PublishEventArgs.cs | 2 +- .../Events/QueuingEventDispatcherBase.cs | 9 +- .../Events/RecycleBinEventArgs.cs | 2 +- .../Events/RefreshContentEventArgs.cs | 2 +- src/Umbraco.Core/Events/RolesEventArgs.cs | 2 +- src/Umbraco.Core/Events/RollbackEventArgs.cs | 2 +- src/Umbraco.Core/Events/SaveEventArgs.cs | 2 +- src/Umbraco.Core/Events/SendEmailEventArgs.cs | 4 +- .../Events/SendToPublishEventArgs.cs | 2 +- .../Events/SupersedeEventAttribute.cs | 2 +- .../Events/TransientEventMessagesFactory.cs | 2 +- src/Umbraco.Core/Events/TypedEventHandler.cs | 2 +- .../Events/UmbracoApplicationStarting.cs | 2 +- .../Events/UmbracoApplicationStopping.cs | 2 +- .../Events/UmbracoRequestBegin.cs | 4 +- src/Umbraco.Core/Events/UmbracoRequestEnd.cs | 4 +- .../Events/UninstallPackageEventArgs.cs | 4 +- src/Umbraco.Core/Events/UserGroupWithUsers.cs | 5 +- .../Exceptions/AuthorizationException.cs | 2 +- .../Exceptions/BootFailedException.cs | 4 +- .../Exceptions/DataOperationException.cs | 2 +- .../Exceptions/InvalidCompositionException.cs | 3 +- src/Umbraco.Core/Exceptions/PanicException.cs | 2 +- .../Exceptions/UnattendedInstallException.cs | 2 +- src/Umbraco.Core/ExpressionHelper.cs | 4 +- .../{ => Extensions}/AssemblyExtensions.cs | 7 +- .../ClaimsIdentityExtensions.cs | 7 +- .../ConfigConnectionStringExtensions.cs | 11 +- .../{ => Extensions}/ContentExtensions.cs | 17 +- .../ContentVariationExtensions.cs | 11 +- .../CoreCacheHelperExtensions.cs} | 11 +- .../{ => Extensions}/DataTableExtensions.cs | 7 +- .../{ => Extensions}/DateTimeExtensions.cs | 13 +- .../{ => Extensions}/DecimalExtensions.cs | 5 +- .../{ => Extensions}/DelegateExtensions.cs | 8 +- .../{ => Extensions}/DictionaryExtensions.cs | 7 +- .../{ => Extensions}/EnumExtensions.cs | 7 +- .../{ => Extensions}/EnumerableExtensions.cs | 12 +- .../{ => Extensions}/ExpressionExtensions.cs | 7 +- .../{ => Extensions}/IfExtensions.cs | 12 +- .../{ => Extensions}/IntExtensions.cs | 7 +- .../KeyValuePairExtensions.cs | 7 +- .../{ => Extensions}/MediaTypeExtensions.cs | 8 +- .../NameValueCollectionExtensions.cs | 7 +- .../{ => Extensions}/ObjectExtensions.cs | 11 +- .../PasswordConfigurationExtensions.cs | 11 +- .../PublishedContentExtensions.cs | 24 +- .../PublishedElementExtensions.cs | 12 +- .../PublishedModelFactoryExtensions.cs | 11 +- .../PublishedPropertyExtension.cs | 7 +- .../{ => Extensions}/SemVersionExtensions.cs | 7 +- .../{ => Extensions}/StringExtensions.cs | 12 +- .../{ => Extensions}/ThreadExtensions.cs | 7 +- .../{ => Extensions}/TypeExtensions.cs | 11 +- .../{ => Extensions}/TypeLoaderExtensions.cs | 17 +- .../{ => Extensions}/UdiGetterExtensions.cs | 12 +- .../UmbracoContextAccessorExtensions.cs | 8 +- .../UmbracoContextExtensions.cs | 7 +- .../{ => Extensions}/UriExtensions.cs | 13 +- .../{ => Extensions}/VersionExtensions.cs | 12 +- .../{ => Extensions}/WaitHandleExtensions.cs | 8 +- .../{ => Extensions}/XmlExtensions.cs | 11 +- src/Umbraco.Core/Features/DisabledFeatures.cs | 4 +- src/Umbraco.Core/Features/EnabledFeatures.cs | 2 +- src/Umbraco.Core/Features/IUmbracoFeature.cs | 2 +- src/Umbraco.Core/Features/UmbracoFeatures.cs | 2 +- src/Umbraco.Core/GuidUdi.cs | 2 +- src/Umbraco.Core/GuidUtils.cs | 2 +- src/Umbraco.Core/HashCodeCombiner.cs | 2 +- src/Umbraco.Core/HashCodeHelper.cs | 2 +- src/Umbraco.Core/HashGenerator.cs | 3 +- .../HealthChecks/AcceptableConfiguration.cs | 2 +- .../Checks/AbstractSettingsCheck.cs | 5 +- .../Checks/Configuration/MacroErrorsCheck.cs | 7 +- .../Configuration/NotificationEmailCheck.cs | 7 +- .../Checks/Data/DatabaseIntegrityCheck.cs | 6 +- .../LiveEnvironment/CompilationDebugCheck.cs | 7 +- .../FolderAndFilePermissionsCheck.cs | 7 +- .../Checks/Security/BaseHttpHeaderCheck.cs | 7 +- .../Checks/Security/ClickJackingCheck.cs | 6 +- .../Checks/Security/ExcessiveHeadersCheck.cs | 7 +- .../HealthChecks/Checks/Security/HstsCheck.cs | 6 +- .../Checks/Security/HttpsCheck.cs | 9 +- .../Checks/Security/NoSniffCheck.cs | 6 +- .../Checks/Security/XssProtectionCheck.cs | 6 +- .../HealthChecks/Checks/Services/SmtpCheck.cs | 7 +- .../ConfigurationServiceResult.cs | 2 +- src/Umbraco.Core/HealthChecks/HealthCheck.cs | 5 +- .../HealthChecks/HealthCheckAction.cs | 2 +- .../HealthChecks/HealthCheckAttribute.cs | 2 +- .../HealthChecks/HealthCheckCollection.cs | 4 +- .../HealthChecks/HealthCheckGroup.cs | 2 +- .../HealthCheckNotificationMethodAttribute.cs | 2 +- ...HealthCheckNotificationMethodCollection.cs | 6 +- ...heckNotificationMethodCollectionBuilder.cs | 6 +- .../HealthCheckNotificationVerbosity.cs | 2 +- .../HealthChecks/HealthCheckResults.cs | 3 +- .../HealthChecks/HealthCheckStatus.cs | 2 +- .../HeathCheckCollectionBuilder.cs | 4 +- .../EmailNotificationMethod.cs | 13 +- .../IHealthCheckNotificationMethod.cs | 4 +- .../IMarkdownToHtmlConverter.cs | 2 +- .../NotificationMethodBase.cs | 4 +- .../HealthChecks/StatusResultType.cs | 2 +- .../HealthChecks/ValueComparisonType.cs | 2 +- src/Umbraco.Core/HexEncoder.cs | 2 +- .../Hosting/IApplicationShutdownRegistry.cs | 2 +- .../Hosting/IHostingEnvironment.cs | 2 +- .../Hosting/IUmbracoApplicationLifetime.cs | 2 +- .../NoopApplicationShutdownRegistry.cs | 2 +- src/Umbraco.Core/HybridAccessorBase.cs | 7 +- .../HybridEventMessagesAccessor.cs | 6 +- src/Umbraco.Core/IBackOfficeInfo.cs | 2 +- .../IBackofficeSecurityFactory.cs | 4 +- src/Umbraco.Core/ICompletable.cs | 2 +- src/Umbraco.Core/IDisposeOnRequestEnd.cs | 5 +- src/Umbraco.Core/IO/CleanFolderResult.cs | 2 +- .../IO/CleanFolderResultStatus.cs | 2 +- src/Umbraco.Core/IO/FileSystemExtensions.cs | 3 +- src/Umbraco.Core/IO/FileSystemWrapper.cs | 2 +- src/Umbraco.Core/IO/FileSystems.cs | 8 +- src/Umbraco.Core/IO/IFileSystem.cs | 2 +- src/Umbraco.Core/IO/IFileSystems.cs | 2 +- src/Umbraco.Core/IO/IIOHelper.cs | 3 +- src/Umbraco.Core/IO/IMediaFileSystem.cs | 4 +- src/Umbraco.Core/IO/IMediaPathScheme.cs | 2 +- src/Umbraco.Core/IO/IOHelper.cs | 9 +- src/Umbraco.Core/IO/IOHelperExtensions.cs | 5 +- src/Umbraco.Core/IO/IOHelperLinux.cs | 4 +- src/Umbraco.Core/IO/IOHelperOSX.cs | 5 +- src/Umbraco.Core/IO/IOHelperWindows.cs | 5 +- src/Umbraco.Core/IO/MediaFileSystem.cs | 7 +- .../CombinedGuidsMediaPathScheme.cs | 2 +- .../OriginalMediaPathScheme.cs | 4 +- .../TwoGuidsMediaPathScheme.cs | 2 +- .../MediaPathSchemes/UniqueMediaPathScheme.cs | 2 +- src/Umbraco.Core/IO/PhysicalFileSystem.cs | 5 +- src/Umbraco.Core/IO/ShadowFileSystem.cs | 2 +- src/Umbraco.Core/IO/ShadowFileSystems.cs | 4 +- src/Umbraco.Core/IO/ShadowWrapper.cs | 5 +- src/Umbraco.Core/IO/SystemFiles.cs | 6 +- src/Umbraco.Core/IO/ViewHelper.cs | 9 +- src/Umbraco.Core/IRegisteredObject.cs | 2 +- .../Install/FilePermissionTest.cs | 2 +- .../Install/IFilePermissionHelper.cs | 2 +- src/Umbraco.Core/Install/InstallException.cs | 2 +- .../Install/InstallStatusTracker.cs | 12 +- .../InstallSteps/FilePermissionsStep.cs | 8 +- .../InstallSteps/StarterKitCleanupStep.cs | 8 +- .../InstallSteps/StarterKitInstallStep.cs | 10 +- .../InstallSteps/TelemetryIdentifierStep.cs | 8 +- .../Install/InstallSteps/UpgradeStep.cs | 10 +- .../Install/Models/DatabaseModel.cs | 2 +- .../Install/Models/DatabaseType.cs | 2 +- .../Install/Models/InstallInstructions.cs | 2 +- .../Models/InstallProgressResultModel.cs | 2 +- .../Install/Models/InstallSetup.cs | 2 +- .../Install/Models/InstallSetupResult.cs | 2 +- .../Install/Models/InstallSetupStep.cs | 6 +- .../Models/InstallSetupStepAttribute.cs | 3 +- .../Install/Models/InstallTrackingItem.cs | 3 +- .../Install/Models/InstallationType.cs | 2 +- src/Umbraco.Core/Install/Models/Package.cs | 6 +- src/Umbraco.Core/Install/Models/UserModel.cs | 2 +- src/Umbraco.Core/InstallLog.cs | 6 +- src/Umbraco.Core/LambdaExpressionCacheKey.cs | 2 +- src/Umbraco.Core/Logging/DisposableTimer.cs | 2 +- .../Logging/ILoggingConfiguration.cs | 2 +- src/Umbraco.Core/Logging/IMessageTemplates.cs | 2 +- src/Umbraco.Core/Logging/IProfiler.cs | 2 +- src/Umbraco.Core/Logging/IProfilerHtml.cs | 2 +- src/Umbraco.Core/Logging/IProfilingLogger.cs | 2 +- src/Umbraco.Core/Logging/LogLevel.cs | 2 +- src/Umbraco.Core/Logging/LogProfiler.cs | 2 +- .../Logging/LoggingConfiguration.cs | 2 +- .../Logging/LoggingTaskExtension.cs | 2 +- src/Umbraco.Core/Logging/NoopProfiler.cs | 2 +- .../Logging/ProfilerExtensions.cs | 2 +- src/Umbraco.Core/Logging/ProfilingLogger.cs | 4 +- src/Umbraco.Core/Macros/IMacroRenderer.cs | 4 +- src/Umbraco.Core/Macros/MacroContent.cs | 2 +- .../Macros/MacroErrorBehaviour.cs | 2 +- src/Umbraco.Core/Macros/MacroModel.cs | 4 +- src/Umbraco.Core/Macros/MacroPropertyModel.cs | 2 +- src/Umbraco.Core/Mail/IEmailSender.cs | 4 +- src/Umbraco.Core/Mail/ISmsSender.cs | 2 +- .../Mail/NotImplementedEmailSender.cs | 4 +- .../Mail/NotImplementedSmsSender.cs | 2 +- src/Umbraco.Core/Manifest/IManifestFilter.cs | 3 +- src/Umbraco.Core/Manifest/IManifestParser.cs | 5 +- src/Umbraco.Core/Manifest/IPackageManifest.cs | 4 +- .../Manifest/ManifestContentAppDefinition.cs | 2 +- .../Manifest/ManifestContentAppFactory.cs | 11 +- .../Manifest/ManifestDashboard.cs | 5 +- .../Manifest/ManifestFilterCollection.cs | 4 +- .../ManifestFilterCollectionBuilder.cs | 4 +- src/Umbraco.Core/Manifest/ManifestSection.cs | 4 +- src/Umbraco.Core/Manifest/ManifestWatcher.cs | 5 +- src/Umbraco.Core/Manifest/PackageManifest.cs | 4 +- src/Umbraco.Core/Mapping/IMapDefinition.cs | 2 +- .../Mapping/MapDefinitionCollection.cs | 4 +- .../Mapping/MapDefinitionCollectionBuilder.cs | 4 +- src/Umbraco.Core/Mapping/MapperContext.cs | 5 +- src/Umbraco.Core/Mapping/UmbracoMapper.cs | 5 +- .../Media/EmbedProviders/DailyMotion.cs | 4 +- .../Media/EmbedProviders/EmbedProviderBase.cs | 5 +- .../EmbedProvidersCollection.cs | 5 +- .../EmbedProvidersCollectionBuilder.cs | 5 +- .../Media/EmbedProviders/Flickr.cs | 4 +- .../Media/EmbedProviders/GettyImages.cs | 4 +- .../Media/EmbedProviders/Giphy.cs | 4 +- src/Umbraco.Core/Media/EmbedProviders/Hulu.cs | 4 +- .../Media/EmbedProviders/Issuu.cs | 4 +- .../Media/EmbedProviders/Kickstarter.cs | 4 +- .../Media/EmbedProviders/OEmbedResponse.cs | 2 +- .../Media/EmbedProviders/Slideshare.cs | 4 +- .../Media/EmbedProviders/SoundCloud.cs | 4 +- src/Umbraco.Core/Media/EmbedProviders/Ted.cs | 4 +- .../Media/EmbedProviders/Twitter.cs | 4 +- .../Media/EmbedProviders/Vimeo.cs | 4 +- .../Media/EmbedProviders/Youtube.cs | 4 +- src/Umbraco.Core/Media/Exif/BitConverterEx.cs | 2 +- .../Media/Exif/ExifBitConverter.cs | 2 +- src/Umbraco.Core/Media/Exif/ExifEnums.cs | 2 +- src/Umbraco.Core/Media/Exif/ExifExceptions.cs | 2 +- .../Media/Exif/ExifExtendedProperty.cs | 2 +- .../Media/Exif/ExifFileTypeDescriptor.cs | 2 +- .../Media/Exif/ExifInterOperability.cs | 2 +- src/Umbraco.Core/Media/Exif/ExifProperty.cs | 2 +- .../Media/Exif/ExifPropertyCollection.cs | 2 +- .../Media/Exif/ExifPropertyFactory.cs | 2 +- src/Umbraco.Core/Media/Exif/ExifTag.cs | 2 +- src/Umbraco.Core/Media/Exif/ExifTagFactory.cs | 2 +- src/Umbraco.Core/Media/Exif/IFD.cs | 2 +- src/Umbraco.Core/Media/Exif/ImageFile.cs | 4 +- .../Media/Exif/ImageFileDirectory.cs | 2 +- .../Media/Exif/ImageFileDirectoryEntry.cs | 2 +- .../Media/Exif/ImageFileFormat.cs | 2 +- src/Umbraco.Core/Media/Exif/JFIFEnums.cs | 2 +- .../Media/Exif/JFIFExtendedProperty.cs | 2 +- src/Umbraco.Core/Media/Exif/JFIFThumbnail.cs | 2 +- src/Umbraco.Core/Media/Exif/JPEGExceptions.cs | 2 +- src/Umbraco.Core/Media/Exif/JPEGFile.cs | 2 +- src/Umbraco.Core/Media/Exif/JPEGMarker.cs | 2 +- src/Umbraco.Core/Media/Exif/JPEGSection.cs | 2 +- src/Umbraco.Core/Media/Exif/MathEx.cs | 2 +- src/Umbraco.Core/Media/Exif/SvgFile.cs | 6 +- src/Umbraco.Core/Media/Exif/TIFFFile.cs | 2 +- src/Umbraco.Core/Media/Exif/TIFFHeader.cs | 2 +- src/Umbraco.Core/Media/Exif/TIFFStrip.cs | 2 +- src/Umbraco.Core/Media/Exif/Utility.cs | 2 +- .../Media/ExifImageDimensionExtractor.cs | 6 +- src/Umbraco.Core/Media/IEmbedProvider.cs | 2 +- .../Media/IImageDimensionExtractor.cs | 2 +- src/Umbraco.Core/Media/IImageUrlGenerator.cs | 4 +- src/Umbraco.Core/Media/ImageSize.cs | 2 +- .../Media/ImageUrlGeneratorExtensions.cs | 3 +- src/Umbraco.Core/Media/OEmbedResult.cs | 2 +- src/Umbraco.Core/Media/OEmbedStatus.cs | 2 +- .../Media/TypeDetector/JpegDetector.cs | 2 +- .../TypeDetector/RasterizedTypeDetector.cs | 2 +- .../Media/TypeDetector/SvgDetector.cs | 2 +- .../Media/TypeDetector/TIFFDetector.cs | 2 +- .../Media/UploadAutoFillProperties.cs | 11 +- src/Umbraco.Core/Migrations/IMigration.cs | 4 +- .../IncompleteMigrationExpressionException.cs | 2 +- src/Umbraco.Core/Migrations/NoopMigration.cs | 2 +- src/Umbraco.Core/Models/AnchorsModel.cs | 2 +- src/Umbraco.Core/Models/AuditEntry.cs | 4 +- src/Umbraco.Core/Models/AuditItem.cs | 4 +- src/Umbraco.Core/Models/AuditType.cs | 6 +- src/Umbraco.Core/Models/BackOfficeTour.cs | 2 +- src/Umbraco.Core/Models/BackOfficeTourFile.cs | 2 +- src/Umbraco.Core/Models/BackOfficeTourStep.cs | 2 +- .../Models/Blocks/BlockListItem.cs | 4 +- .../Models/Blocks/BlockListModel.cs | 2 +- .../Blocks/ContentAndSettingsReference.cs | 2 +- .../Models/Blocks/IBlockReference.cs | 2 +- .../Models/ChangingPasswordModel.cs | 2 +- src/Umbraco.Core/Models/Consent.cs | 4 +- src/Umbraco.Core/Models/ConsentExtensions.cs | 4 +- src/Umbraco.Core/Models/ConsentState.cs | 2 +- src/Umbraco.Core/Models/Content.cs | 10 +- src/Umbraco.Core/Models/ContentBase.cs | 5 +- .../Models/ContentBaseExtensions.cs | 5 +- .../Models/ContentCultureInfos.cs | 4 +- .../Models/ContentCultureInfosCollection.cs | 4 +- .../Models/ContentDataIntegrityReport.cs | 2 +- .../Models/ContentDataIntegrityReportEntry.cs | 2 +- .../ContentDataIntegrityReportOptions.cs | 4 +- .../AssignedContentPermissions.cs | 2 +- .../AssignedUserGroupPermissions.cs | 2 +- .../Models/ContentEditing/AuditLog.cs | 4 +- .../ContentEditing/BackOfficeNotification.cs | 2 +- .../Models/ContentEditing/CodeFileDisplay.cs | 4 +- .../Models/ContentEditing/ContentApp.cs | 2 +- .../Models/ContentEditing/ContentAppBadge.cs | 2 +- .../ContentEditing/ContentAppBadgeType.cs | 2 +- .../Models/ContentEditing/ContentBaseSave.cs | 5 +- .../ContentDomainsAndCulture.cs | 2 +- .../Models/ContentEditing/ContentItemBasic.cs | 2 +- .../ContentEditing/ContentItemDisplay.cs | 7 +- .../ContentEditing/ContentItemDisplayBase.cs | 2 +- .../Models/ContentEditing/ContentItemSave.cs | 5 +- .../ContentEditing/ContentPropertyBasic.cs | 4 +- .../ContentPropertyCollectionDto.cs | 2 +- .../ContentEditing/ContentPropertyDisplay.cs | 2 +- .../ContentEditing/ContentPropertyDto.cs | 4 +- .../ContentEditing/ContentRedirectUrl.cs | 2 +- .../ContentEditing/ContentSaveAction.cs | 2 +- .../ContentEditing/ContentSavedState.cs | 2 +- .../Models/ContentEditing/ContentSortOrder.cs | 8 +- .../Models/ContentEditing/ContentTypeBasic.cs | 4 +- .../ContentTypeCompositionDisplay.cs | 2 +- .../Models/ContentEditing/ContentTypeSave.cs | 4 +- .../ContentEditing/ContentVariantSave.cs | 5 +- .../ContentEditing/ContentVariationDisplay.cs | 2 +- .../CreatedDocumentTypeCollectionResult.cs | 9 +- .../Models/ContentEditing/DataTypeBasic.cs | 2 +- .../DataTypeConfigurationFieldDisplay.cs | 2 +- .../DataTypeConfigurationFieldSave.cs | 2 +- .../Models/ContentEditing/DataTypeDisplay.cs | 2 +- .../ContentEditing/DataTypeReferences.cs | 2 +- .../Models/ContentEditing/DataTypeSave.cs | 5 +- .../ContentEditing/DictionaryDisplay.cs | 2 +- .../DictionaryOverviewDisplay.cs | 4 +- .../DictionaryOverviewTranslationDisplay.cs | 2 +- .../Models/ContentEditing/DictionarySave.cs | 2 +- .../DictionaryTranslationDisplay.cs | 4 +- .../DictionaryTranslationSave.cs | 6 +- .../ContentEditing/DocumentTypeDisplay.cs | 3 +- .../Models/ContentEditing/DocumentTypeSave.cs | 4 +- .../Models/ContentEditing/DomainDisplay.cs | 4 +- .../Models/ContentEditing/DomainSave.cs | 2 +- .../Models/ContentEditing/EditorNavigation.cs | 2 +- .../Models/ContentEditing/EntityBasic.cs | 5 +- .../GetAvailableCompositionsFilter.cs | 2 +- .../ContentEditing/IContentAppFactory.cs | 4 +- .../ContentEditing/IContentProperties.cs | 3 +- .../Models/ContentEditing/IContentSave.cs | 4 +- .../Models/ContentEditing/IErrorModel.cs | 2 +- .../ContentEditing/IHaveUploadedFiles.cs | 4 +- .../ContentEditing/INotificationModel.cs | 2 +- .../Models/ContentEditing/ITabbedContent.cs | 2 +- .../Models/ContentEditing/Language.cs | 2 +- .../Models/ContentEditing/LinkDisplay.cs | 3 +- .../ListViewAwareContentItemDisplayBase.cs | 2 +- .../Models/ContentEditing/MacroDisplay.cs | 4 +- .../Models/ContentEditing/MacroParameter.cs | 2 +- .../ContentEditing/MacroParameterDisplay.cs | 2 +- .../Models/ContentEditing/MediaItemDisplay.cs | 3 +- .../Models/ContentEditing/MediaItemSave.cs | 3 +- .../Models/ContentEditing/MediaTypeDisplay.cs | 2 +- .../Models/ContentEditing/MediaTypeSave.cs | 2 +- .../Models/ContentEditing/MemberBasic.cs | 2 +- .../Models/ContentEditing/MemberDisplay.cs | 3 +- .../ContentEditing/MemberGroupDisplay.cs | 2 +- .../Models/ContentEditing/MemberGroupSave.cs | 2 +- .../ContentEditing/MemberListDisplay.cs | 3 +- .../ContentEditing/MemberPropertyTypeBasic.cs | 2 +- .../MemberPropertyTypeDisplay.cs | 2 +- .../Models/ContentEditing/MemberSave.cs | 7 +- .../ContentEditing/MemberTypeDisplay.cs | 2 +- .../Models/ContentEditing/MemberTypeSave.cs | 2 +- .../ContentEditing/MessagesExtensions.cs | 4 +- .../ContentEditing/ModelWithNotifications.cs | 2 +- .../Models/ContentEditing/MoveOrCopy.cs | 7 +- .../ContentEditing/NotificationStyle.cs | 2 +- .../Models/ContentEditing/NotifySetting.cs | 3 +- .../Models/ContentEditing/ObjectType.cs | 2 +- .../Models/ContentEditing/Permission.cs | 2 +- .../Models/ContentEditing/PostedFiles.cs | 4 +- .../Models/ContentEditing/PostedFolder.cs | 4 +- .../ContentEditing/PropertyEditorBasic.cs | 5 +- .../ContentEditing/PropertyGroupBasic.cs | 2 +- .../ContentEditing/PropertyGroupDisplay.cs | 2 +- .../ContentEditing/PropertyTypeBasic.cs | 2 +- .../ContentEditing/PropertyTypeDisplay.cs | 2 +- .../ContentEditing/PropertyTypeValidation.cs | 2 +- .../Models/ContentEditing/PublicAccess.cs | 2 +- .../RedirectUrlSearchResults.cs | 3 +- .../Models/ContentEditing/RelationDisplay.cs | 2 +- .../ContentEditing/RelationTypeDisplay.cs | 2 +- .../Models/ContentEditing/RelationTypeSave.cs | 2 +- .../ContentEditing/RichTextEditorCommand.cs | 4 +- .../RichTextEditorConfiguration.cs | 2 +- .../ContentEditing/RichTextEditorPlugin.cs | 9 +- .../Models/ContentEditing/RollbackVersion.cs | 2 +- .../Models/ContentEditing/SearchResult.cs | 2 +- .../ContentEditing/SearchResultEntity.cs | 2 +- .../Models/ContentEditing/SearchResults.cs | 2 +- .../Models/ContentEditing/Section.cs | 2 +- .../ContentEditing/SimpleNotificationModel.cs | 2 +- .../Models/ContentEditing/SnippetDisplay.cs | 2 +- .../Models/ContentEditing/StyleSheet.cs | 8 +- .../Models/ContentEditing/StylesheetRule.cs | 9 +- src/Umbraco.Core/Models/ContentEditing/Tab.cs | 2 +- .../ContentEditing/TabbedContentItem.cs | 2 +- .../Models/ContentEditing/TemplateDisplay.cs | 2 +- .../Models/ContentEditing/TreeSearchResult.cs | 2 +- .../ContentEditing/UmbracoEntityTypes.cs | 7 +- .../Models/ContentEditing/UnpublishContent.cs | 9 +- .../Models/ContentEditing/UrlAndAnchors.cs | 2 +- .../Models/ContentEditing/UserBasic.cs | 4 +- .../Models/ContentEditing/UserDetail.cs | 2 +- .../Models/ContentEditing/UserDisplay.cs | 2 +- .../Models/ContentEditing/UserGroupBasic.cs | 2 +- .../Models/ContentEditing/UserGroupDisplay.cs | 2 +- .../UserGroupPermissionsSave.cs | 4 +- .../Models/ContentEditing/UserGroupSave.cs | 6 +- .../Models/ContentEditing/UserInvite.cs | 6 +- .../Models/ContentEditing/UserProfile.cs | 2 +- .../Models/ContentEditing/UserSave.cs | 2 +- src/Umbraco.Core/Models/ContentModel.cs | 4 +- .../Models/ContentModelOfTContent.cs | 4 +- .../Models/ContentRepositoryExtensions.cs | 3 +- src/Umbraco.Core/Models/ContentSchedule.cs | 3 +- .../Models/ContentScheduleAction.cs | 2 +- .../Models/ContentScheduleCollection.cs | 6 +- src/Umbraco.Core/Models/ContentStatus.cs | 4 +- .../Models/ContentTagsExtensions.cs | 9 +- src/Umbraco.Core/Models/ContentType.cs | 8 +- .../ContentTypeAvailableCompositionsResult.cs | 2 +- ...ContentTypeAvailableCompositionsResults.cs | 2 +- src/Umbraco.Core/Models/ContentTypeBase.cs | 7 +- .../Models/ContentTypeBaseExtensions.cs | 9 +- .../Models/ContentTypeCompositionBase.cs | 6 +- .../Models/ContentTypeImportModel.cs | 4 +- src/Umbraco.Core/Models/ContentTypeSort.cs | 4 +- src/Umbraco.Core/Models/ContentVariation.cs | 2 +- src/Umbraco.Core/Models/CultureImpact.cs | 3 +- src/Umbraco.Core/Models/DataType.cs | 8 +- src/Umbraco.Core/Models/DataTypeExtensions.cs | 7 +- src/Umbraco.Core/Models/DeepCloneHelper.cs | 4 +- src/Umbraco.Core/Models/DictionaryItem.cs | 5 +- .../Models/DictionaryItemExtensions.cs | 3 +- .../Models/DictionaryTranslation.cs | 4 +- .../Models/DoNotCloneAttribute.cs | 2 +- .../Models/Editors/ContentPropertyData.cs | 2 +- .../Models/Editors/ContentPropertyFile.cs | 4 +- .../Models/Editors/UmbracoEntityReference.cs | 2 +- src/Umbraco.Core/Models/EmailMessage.cs | 2 +- .../Models/Entities/BeingDirty.cs | 2 +- .../Models/Entities/BeingDirtyBase.cs | 2 +- .../Models/Entities/ContentEntitySlim.cs | 4 +- .../Models/Entities/DocumentEntitySlim.cs | 4 +- .../Models/Entities/EntityBase.cs | 4 +- .../Models/Entities/EntityExtensions.cs | 8 +- .../Models/Entities/EntitySlim.cs | 5 +- .../Models/Entities/ICanBeDirty.cs | 2 +- .../Models/Entities/IContentEntitySlim.cs | 2 +- .../Models/Entities/IDocumentEntitySlim.cs | 2 +- src/Umbraco.Core/Models/Entities/IEntity.cs | 2 +- .../Models/Entities/IEntitySlim.cs | 3 +- .../Models/Entities/IHaveAdditionalData.cs | 8 +- .../Models/Entities/IMediaEntitySlim.cs | 2 +- .../Models/Entities/IMemberEntitySlim.cs | 2 +- .../Models/Entities/IRememberBeingDirty.cs | 2 +- .../Models/Entities/ITreeEntity.cs | 2 +- .../Models/Entities/IUmbracoEntity.cs | 4 +- .../Models/Entities/IValueObject.cs | 2 +- .../Models/Entities/MediaEntitySlim.cs | 2 +- .../Models/Entities/MemberEntitySlim.cs | 2 +- .../Models/Entities/TreeEntityBase.cs | 2 +- .../Models/Entities/TreeEntityPath.cs | 2 +- src/Umbraco.Core/Models/EntityContainer.cs | 4 +- src/Umbraco.Core/Models/File.cs | 4 +- src/Umbraco.Core/Models/Folder.cs | 4 +- ...ons.cs => HaveAdditionalDataExtensions.cs} | 9 +- src/Umbraco.Core/Models/IAuditEntry.cs | 4 +- src/Umbraco.Core/Models/IAuditItem.cs | 4 +- src/Umbraco.Core/Models/IConsent.cs | 4 +- src/Umbraco.Core/Models/IContent.cs | 2 +- src/Umbraco.Core/Models/IContentBase.cs | 4 +- src/Umbraco.Core/Models/IContentModel.cs | 5 +- src/Umbraco.Core/Models/IContentType.cs | 2 +- src/Umbraco.Core/Models/IContentTypeBase.cs | 7 +- .../Models/IContentTypeComposition.cs | 2 +- src/Umbraco.Core/Models/IDataType.cs | 6 +- src/Umbraco.Core/Models/IDataValueEditor.cs | 8 +- src/Umbraco.Core/Models/IDeepCloneable.cs | 2 +- src/Umbraco.Core/Models/IDictionaryItem.cs | 4 +- .../Models/IDictionaryTranslation.cs | 4 +- src/Umbraco.Core/Models/IDomain.cs | 4 +- src/Umbraco.Core/Models/IFile.cs | 7 +- src/Umbraco.Core/Models/IKeyValue.cs | 5 +- src/Umbraco.Core/Models/ILanguage.cs | 4 +- src/Umbraco.Core/Models/IMacro.cs | 10 +- src/Umbraco.Core/Models/IMacroProperty.cs | 4 +- src/Umbraco.Core/Models/IMedia.cs | 2 +- src/Umbraco.Core/Models/IMediaType.cs | 2 +- src/Umbraco.Core/Models/IMediaUrlGenerator.cs | 4 +- src/Umbraco.Core/Models/IMember.cs | 18 +- src/Umbraco.Core/Models/IMemberGroup.cs | 5 +- src/Umbraco.Core/Models/IMemberType.cs | 2 +- src/Umbraco.Core/Models/IMigrationEntry.cs | 7 +- src/Umbraco.Core/Models/IPartialView.cs | 2 +- src/Umbraco.Core/Models/IProperty.cs | 5 +- .../Models/IPropertyCollection.cs | 2 +- src/Umbraco.Core/Models/IPropertyType.cs | 6 +- src/Umbraco.Core/Models/IPropertyValue.cs | 2 +- src/Umbraco.Core/Models/IRedirectUrl.cs | 4 +- src/Umbraco.Core/Models/IRelation.cs | 4 +- src/Umbraco.Core/Models/IRelationType.cs | 4 +- src/Umbraco.Core/Models/IScript.cs | 2 +- .../Models/IServerRegistration.cs | 6 +- src/Umbraco.Core/Models/ISimpleContentType.cs | 2 +- src/Umbraco.Core/Models/IStylesheet.cs | 3 +- .../Models/IStylesheetProperty.cs | 4 +- src/Umbraco.Core/Models/ITag.cs | 4 +- src/Umbraco.Core/Models/ITemplate.cs | 4 +- src/Umbraco.Core/Models/IconModel.cs | 2 +- .../Models/Identity/ExternalLogin.cs | 2 +- .../Models/Identity/IExternalLogin.cs | 2 +- .../Models/Identity/IIdentityUserLogin.cs | 4 +- .../Models/Identity/IdentityUserLogin.cs | 4 +- src/Umbraco.Core/Models/ImageCropAnchor.cs | 2 +- src/Umbraco.Core/Models/ImageCropMode.cs | 2 +- src/Umbraco.Core/Models/ImageCropRatioMode.cs | 2 +- .../Models/ImageUrlGenerationOptions.cs | 4 +- src/Umbraco.Core/Models/KeyValue.cs | 4 +- src/Umbraco.Core/Models/Language.cs | 7 +- src/Umbraco.Core/Models/Link.cs | 4 +- src/Umbraco.Core/Models/LinkType.cs | 4 +- .../Models/LocalPackageInstallModel.cs | 4 +- src/Umbraco.Core/Models/Macro.cs | 7 +- src/Umbraco.Core/Models/MacroProperty.cs | 6 +- .../Models/MacroPropertyCollection.cs | 5 +- .../Models/Mapping/AuditMapDefinition.cs | 7 +- .../Models/Mapping/CodeFileMapDefinition.cs | 7 +- .../Models/Mapping/CommonMapper.cs | 20 +- .../Mapping/ContentPropertyBasicMapper.cs | 13 +- .../Mapping/ContentPropertyDisplayMapper.cs | 19 +- .../Mapping/ContentPropertyDtoMapper.cs | 11 +- .../Mapping/ContentPropertyMapDefinition.cs | 13 +- .../Models/Mapping/ContentSavedStateMapper.cs | 9 +- .../Mapping/ContentTypeMapDefinition.cs | 23 +- .../Models/Mapping/ContentVariantMapper.cs | 22 +- .../Models/Mapping/DataTypeMapDefinition.cs | 15 +- .../Models/Mapping/DictionaryMapDefinition.cs | 10 +- .../Models/Mapping/LanguageMapDefinition.cs | 20 +- .../Models/Mapping/MacroMapDefinition.cs | 10 +- .../Models/Mapping/MapperContextExtensions.cs | 4 +- .../Mapping/MemberTabsAndPropertiesMapper.cs | 19 +- .../Models/Mapping/PropertyTypeGroupMapper.cs | 13 +- .../Mapping/RedirectUrlMapDefinition.cs | 9 +- .../Models/Mapping/RelationMapDefinition.cs | 11 +- .../Models/Mapping/SectionMapDefinition.cs | 14 +- .../Models/Mapping/TabsAndPropertiesMapper.cs | 13 +- .../Models/Mapping/TagMapDefinition.cs | 5 +- .../Models/Mapping/TemplateMapDefinition.cs | 9 +- .../Models/Mapping/UserMapDefinition.cs | 30 +- src/Umbraco.Core/Models/Media.cs | 2 +- src/Umbraco.Core/Models/MediaExtensions.cs | 9 +- src/Umbraco.Core/Models/MediaType.cs | 4 +- src/Umbraco.Core/Models/Member.cs | 4 +- src/Umbraco.Core/Models/MemberGroup.cs | 4 +- src/Umbraco.Core/Models/MemberType.cs | 5 +- .../Models/MemberTypePropertyProfileAccess.cs | 2 +- .../Models/Membership/ContentPermissionSet.cs | 5 +- .../Models/Membership/EntityPermission.cs | 2 +- .../Membership/EntityPermissionCollection.cs | 2 +- .../Models/Membership/EntityPermissionSet.cs | 3 +- .../Models/Membership/IMembershipUser.cs | 4 +- .../Models/Membership/IProfile.cs | 2 +- .../Models/Membership/IReadOnlyUserGroup.cs | 2 +- src/Umbraco.Core/Models/Membership/IUser.cs | 7 +- .../Models/Membership/IUserGroup.cs | 4 +- .../Models/Membership/MemberCountType.cs | 2 +- .../Models/Membership/MemberExportModel.cs | 2 +- .../Models/Membership/MemberExportProperty.cs | 2 +- .../Models/Membership/ReadOnlyUserGroup.cs | 2 +- src/Umbraco.Core/Models/Membership/User.cs | 11 +- .../Models/Membership/UserGroup.cs | 7 +- .../Models/Membership/UserGroupExtensions.cs | 5 +- .../Models/Membership/UserPasswordSettings.cs | 2 +- .../Models/Membership/UserProfile.cs | 2 +- .../Models/Membership/UserState.cs | 2 +- src/Umbraco.Core/Models/MigrationEntry.cs | 6 +- src/Umbraco.Core/Models/Notification.cs | 5 +- .../Models/NotificationEmailBodyParams.cs | 2 +- .../Models/NotificationEmailSubjectParams.cs | 6 +- src/Umbraco.Core/Models/ObjectTypes.cs | 4 +- .../Models/PackageInstallModel.cs | 5 +- .../Models/PackageInstallResult.cs | 5 +- .../Models/Packaging/ActionRunAt.cs | 4 +- .../Models/Packaging/CompiledPackage.cs | 2 +- .../Packaging/CompiledPackageContentBase.cs | 3 +- .../Models/Packaging/CompiledPackageFile.cs | 4 +- .../Models/Packaging/IPackageInfo.cs | 2 +- .../Models/Packaging/PackageAction.cs | 2 +- .../Models/Packaging/PreInstallWarnings.cs | 6 +- .../Models/Packaging/RequirementsType.cs | 2 +- src/Umbraco.Core/Models/PagedResult.cs | 2 +- src/Umbraco.Core/Models/PagedResultOfT.cs | 2 +- src/Umbraco.Core/Models/PartialView.cs | 2 +- .../Models/PartialViewMacroModel.cs | 6 +- .../Models/PartialViewMacroModelExtensions.cs | 4 +- src/Umbraco.Core/Models/PartialViewType.cs | 2 +- .../Models/PasswordChangedModel.cs | 2 +- src/Umbraco.Core/Models/Property.cs | 7 +- src/Umbraco.Core/Models/PropertyCollection.cs | 3 +- src/Umbraco.Core/Models/PropertyGroup.cs | 7 +- .../Models/PropertyGroupCollection.cs | 2 +- .../Models/PropertyTagsExtensions.cs | 10 +- src/Umbraco.Core/Models/PropertyType.cs | 9 +- .../Models/PropertyTypeCollection.cs | 6 +- src/Umbraco.Core/Models/PublicAccessEntry.cs | 9 +- src/Umbraco.Core/Models/PublicAccessRule.cs | 4 +- .../Models/PublishedContent/Fallback.cs | 2 +- .../HttpContextVariationContextAccessor.cs | 5 +- .../HybridVariationContextAccessor.cs | 5 +- .../ILivePublishedModelFactory.cs | 2 +- .../PublishedContent/IPublishedContent.cs | 2 +- .../PublishedContent/IPublishedContentType.cs | 2 +- .../IPublishedContentTypeFactory.cs | 2 +- .../PublishedContent/IPublishedElement.cs | 2 +- .../IPublishedModelFactory.cs | 2 +- .../PublishedContent/IPublishedProperty.cs | 2 +- .../IPublishedPropertyType.cs | 6 +- .../IPublishedValueFallback.cs | 2 +- .../IVariationContextAccessor.cs | 2 +- .../PublishedContent/IndexedArrayItem.cs | 4 +- .../Models/PublishedContent/ModelType.cs | 4 +- .../NoopPublishedModelFactory.cs | 2 +- .../NoopPublishedValueFallback.cs | 2 +- .../PublishedContent/PublishedContentBase.cs | 5 +- .../PublishedContentExtensionsForModels.cs | 4 +- .../PublishedContent/PublishedContentModel.cs | 2 +- .../PublishedContent/PublishedContentType.cs | 5 +- .../PublishedContentTypeConverter.cs | 2 +- .../PublishedContentTypeFactory.cs | 6 +- .../PublishedContentWrapped.cs | 2 +- .../PublishedContent/PublishedCultureInfos.cs | 2 +- .../PublishedContent/PublishedDataType.cs | 2 +- .../PublishedContent/PublishedElementModel.cs | 2 +- .../PublishedElementWrapped.cs | 2 +- .../PublishedContent/PublishedItemType.cs | 2 +- .../PublishedModelAttribute.cs | 2 +- .../PublishedContent/PublishedModelFactory.cs | 2 +- .../PublishedContent/PublishedPropertyBase.cs | 4 +- .../PublishedContent/PublishedPropertyType.cs | 4 +- .../PublishedContent/PublishedSearchResult.cs | 2 +- .../PublishedValueFallback.cs | 8 +- .../PublishedContent/RawValueProperty.cs | 4 +- .../ThreadCultureVariationContextAccessor.cs | 2 +- .../Models/PublishedContent/UrlMode.cs | 2 +- .../PublishedContent/VariationContext.cs | 2 +- .../VariationContextAccessorExtensions.cs | 13 +- src/Umbraco.Core/Models/PublishedState.cs | 4 +- src/Umbraco.Core/Models/Range.cs | 2 +- src/Umbraco.Core/Models/ReadOnlyRelation.cs | 2 +- src/Umbraco.Core/Models/RedirectUrl.cs | 4 +- src/Umbraco.Core/Models/Relation.cs | 4 +- src/Umbraco.Core/Models/RelationType.cs | 5 +- .../Models/RelationTypeExtensions.cs | 8 +- .../Models/RequestPasswordResetModel.cs | 2 +- src/Umbraco.Core/Models/Script.cs | 3 +- .../Models/Security/LoginModel.cs | 2 +- .../Models/Security/LoginStatusModel.cs | 2 +- .../Models/Security/PostRedirectModel.cs | 2 +- .../Models/Security/ProfileModel.cs | 3 +- .../Models/Security/RegisterModel.cs | 3 +- src/Umbraco.Core/Models/SendCodeViewModel.cs | 6 +- src/Umbraco.Core/Models/ServerRegistration.cs | 5 +- src/Umbraco.Core/Models/SetPasswordModel.cs | 2 +- src/Umbraco.Core/Models/SimpleContentType.cs | 3 +- .../Models/SimpleValidationModel.cs | 2 +- src/Umbraco.Core/Models/Stylesheet.cs | 5 +- src/Umbraco.Core/Models/StylesheetProperty.cs | 4 +- src/Umbraco.Core/Models/Tag.cs | 4 +- src/Umbraco.Core/Models/TagModel.cs | 2 +- .../Models/TaggableObjectTypes.cs | 2 +- src/Umbraco.Core/Models/TaggedEntity.cs | 2 +- src/Umbraco.Core/Models/TaggedProperty.cs | 2 +- src/Umbraco.Core/Models/TagsStorageType.cs | 2 +- src/Umbraco.Core/Models/Template.cs | 5 +- src/Umbraco.Core/Models/TemplateNode.cs | 2 +- src/Umbraco.Core/Models/TemplateOnDisk.cs | 4 +- .../Models/TemplateQuery/ContentTypeModel.cs | 8 +- .../Models/TemplateQuery/Operator.cs | 2 +- .../Models/TemplateQuery/OperatorFactory.cs | 2 +- .../Models/TemplateQuery/OperatorTerm.cs | 2 +- .../Models/TemplateQuery/PropertyModel.cs | 2 +- .../Models/TemplateQuery/QueryCondition.cs | 5 +- .../TemplateQuery/QueryConditionExtensions.cs | 3 +- .../Models/TemplateQuery/QueryModel.cs | 2 +- .../Models/TemplateQuery/QueryResultModel.cs | 2 +- .../Models/TemplateQuery/SortExpression.cs | 2 +- .../Models/TemplateQuery/SourceModel.cs | 2 +- .../TemplateQuery/TemplateQueryResult.cs | 2 +- .../Models/Trees/ActionMenuItem.cs | 6 +- .../Models/Trees/CreateChildEntity.cs | 6 +- src/Umbraco.Core/Models/Trees/ExportMember.cs | 4 +- src/Umbraco.Core/Models/Trees/MenuItem.cs | 14 +- src/Umbraco.Core/Models/Trees/RefreshNode.cs | 4 +- src/Umbraco.Core/Models/UmbracoDomain.cs | 4 +- src/Umbraco.Core/Models/UmbracoObjectTypes.cs | 4 +- src/Umbraco.Core/Models/UmbracoProperty.cs | 8 +- .../Models/UmbracoUserExtensions.cs | 16 +- src/Umbraco.Core/Models/UnLinkLoginModel.cs | 2 +- .../Models/UpgradeCheckResponse.cs | 8 +- src/Umbraco.Core/Models/UserExtensions.cs | 18 +- src/Umbraco.Core/Models/UserTourStatus.cs | 4 +- .../Models/ValidatePasswordResetCodeModel.cs | 2 +- .../RequiredForPersistenceAttribute.cs | 4 +- src/Umbraco.Core/Models/ValueStorageType.cs | 2 +- src/Umbraco.Core/MonitorLock.cs | 2 +- src/Umbraco.Core/NamedUdiRange.cs | 2 +- src/Umbraco.Core/Net/IIpResolver.cs | 2 +- src/Umbraco.Core/Net/ISessionIdResolver.cs | 2 +- src/Umbraco.Core/Net/IUserAgentProvider.cs | 2 +- src/Umbraco.Core/Net/NullSessionIdResolver.cs | 2 +- src/Umbraco.Core/NetworkHelper.cs | 3 +- .../PackageActions/AllowDoctype.cs | 7 +- .../PackageActions/IPackageAction.cs | 4 +- .../PackageActions/PackageActionCollection.cs | 4 +- .../PackageActionCollectionBuilder.cs | 4 +- .../PackageActions/PublishRootDocument.cs | 5 +- .../Packaging/CompiledPackageXmlParser.cs | 7 +- .../Packaging/ConflictingPackageData.cs | 6 +- .../Packaging/ICreatedPackagesRepository.cs | 4 +- .../Packaging/IInstalledPackagesRepository.cs | 4 +- .../Packaging/IPackageActionRunner.cs | 2 +- .../Packaging/IPackageDefinitionRepository.cs | 5 +- .../Packaging/IPackageInstallation.cs | 5 +- .../Packaging/InstallationSummary.cs | 4 +- .../Packaging/PackageActionRunner.cs | 4 +- .../Packaging/PackageDefinition.cs | 3 +- .../Packaging/PackageDefinitionXmlParser.cs | 6 +- .../Packaging/PackageExtraction.cs | 7 +- .../Packaging/PackageFileInstallation.cs | 11 +- .../Packaging/PackageInstallType.cs | 4 +- .../Packaging/PackagesRepository.cs | 15 +- .../Packaging/UninstallationSummary.cs | 4 +- .../Persistence/Constants-DatabaseSchema.cs | 2 +- .../Persistence/Constants-DbProviderNames.cs | 2 +- .../Persistence/Constants-Locks.cs | 5 +- .../Persistence/IQueryRepository.cs | 4 +- .../Persistence/IReadRepository.cs | 4 +- .../Persistence/IReadWriteQueryRepository.cs | 2 +- src/Umbraco.Core/Persistence/IRepository.cs | 2 +- .../Persistence/IWriteRepository.cs | 4 +- .../Persistence/Querying/IQuery.cs | 2 +- .../Querying/StringPropertyMatchType.cs | 2 +- .../Querying/ValuePropertyMatchType.cs | 2 +- .../Repositories/IAuditEntryRepository.cs | 4 +- .../Repositories/IAuditRepository.cs | 8 +- .../Repositories/IConsentRepository.cs | 4 +- .../IContentTypeCommonRepository.cs | 4 +- .../IDataTypeContainerRepository.cs | 2 +- .../Repositories/IDictionaryRepository.cs | 4 +- .../IDocumentTypeContainerRepository.cs | 2 +- .../Repositories/IDomainRepository.cs | 4 +- .../IEntityContainerRepository.cs | 4 +- .../Repositories/IExternalLoginRepository.cs | 5 +- .../Repositories/IInstallationRepository.cs | 6 +- .../Repositories/IKeyValueRepository.cs | 4 +- .../Repositories/ILanguageRepository.cs | 4 +- .../Repositories/IMacroRepository.cs | 4 +- .../IMediaTypeContainerRepository.cs | 2 +- .../Repositories/IMemberGroupRepository.cs | 4 +- .../Repositories/INotificationsRepository.cs | 8 +- .../IPartialViewMacroRepository.cs | 2 +- .../Repositories/IPartialViewRepository.cs | 4 +- .../Repositories/IRedirectUrlRepository.cs | 4 +- .../Repositories/IRelationRepository.cs | 10 +- .../Repositories/IRelationTypeRepository.cs | 4 +- .../Repositories/IScriptRepository.cs | 4 +- .../IServerRegistrationRepository.cs | 4 +- .../Repositories/IStylesheetRepository.cs | 4 +- .../Repositories/ITagRepository.cs | 6 +- .../Repositories/ITemplateRepository.cs | 4 +- .../Repositories/IUpgradeCheckRepository.cs | 5 +- .../Repositories/IUserGroupRepository.cs | 4 +- .../Repositories/IUserRepository.cs | 6 +- .../Repositories/InstallationRepository.cs | 5 +- .../Repositories/RepositoryCacheKeys.cs | 2 +- .../Repositories/UpgradeCheckRepository.cs | 7 +- .../Persistence/SqlExtensionsStatics.cs | 2 +- .../PropertyEditors/BlockListConfiguration.cs | 3 +- .../ColorPickerConfiguration.cs | 2 +- .../PropertyEditors/ConfigurationEditor.cs | 5 +- .../PropertyEditors/ConfigurationField.cs | 4 +- .../ConfigurationFieldAttribute.cs | 2 +- .../ContentPickerConfiguration.cs | 7 +- .../PropertyEditors/DataEditor.cs | 12 +- .../PropertyEditors/DataEditorAttribute.cs | 2 +- .../PropertyEditors/DataEditorCollection.cs | 4 +- .../DataEditorCollectionBuilder.cs | 4 +- .../PropertyEditors/DataValueEditor.cs | 15 +- .../DataValueReferenceFactoryCollection.cs | 8 +- ...aValueReferenceFactoryCollectionBuilder.cs | 4 +- .../PropertyEditors/DateTimeConfiguration.cs | 2 +- .../PropertyEditors/DateValueEditor.cs | 14 +- .../DecimalConfigurationEditor.cs | 5 +- .../PropertyEditors/DecimalPropertyEditor.cs | 13 +- .../DefaultPropertyIndexValueFactory.cs | 5 +- .../DefaultPropertyValueConverterAttribute.cs | 2 +- .../DropDownFlexibleConfiguration.cs | 2 +- .../PropertyEditors/EditorType.cs | 4 +- .../EmailAddressConfiguration.cs | 3 +- .../PropertyEditors/GridEditor.cs | 4 +- .../PropertyEditors/IConfigurationEditor.cs | 4 +- .../PropertyEditors/IConfigureValueType.cs | 6 +- .../PropertyEditors/IDataEditor.cs | 5 +- .../PropertyEditors/IDataValueReference.cs | 5 +- .../IDataValueReferenceFactory.cs | 4 +- .../IIgnoreUserStartNodesConfig.cs | 2 +- .../IManifestValueValidator.cs | 4 +- .../IPropertyIndexValueFactory.cs | 4 +- .../IPropertyValueConverter.cs | 6 +- .../PropertyEditors/IValueFormatValidator.cs | 2 +- .../IValueRequiredValidator.cs | 2 +- .../PropertyEditors/IValueValidator.cs | 2 +- .../IntegerConfigurationEditor.cs | 5 +- .../PropertyEditors/IntegerPropertyEditor.cs | 13 +- .../PropertyEditors/LabelConfiguration.cs | 2 +- .../PropertyEditors/ListViewConfiguration.cs | 3 +- .../ManifestValueValidatorCollection.cs | 5 +- ...ManifestValueValidatorCollectionBuilder.cs | 4 +- .../PropertyEditors/MarkdownConfiguration.cs | 4 +- .../MediaPickerConfiguration.cs | 7 +- .../MediaUrlGeneratorCollection.cs | 5 +- .../MediaUrlGeneratorCollectionBuilder.cs | 5 +- .../MemberGroupPickerPropertyEditor.cs | 10 +- .../MemberPickerConfiguration.cs | 3 +- .../MemberPickerPropertyEditor.cs | 10 +- .../PropertyEditors/MissingPropertyEditor.cs | 3 +- .../MultiNodePickerConfiguration.cs | 6 +- .../MultiNodePickerConfigurationTreeSource.cs | 5 +- .../MultiUrlPickerConfiguration.cs | 6 +- .../MultipleTextStringConfiguration.cs | 2 +- .../NestedContentConfiguration.cs | 3 +- .../ParameterEditorCollection.cs | 6 +- .../ContentTypeParameterEditor.cs | 9 +- .../MultipleContentPickerParameterEditor.cs | 10 +- .../MultipleContentTypeParameterEditor.cs | 9 +- .../MultipleMediaPickerParameterEditor.cs | 10 +- .../MultiplePropertyGroupParameterEditor.cs | 9 +- .../MultiplePropertyTypeParameterEditor.cs | 9 +- .../PropertyGroupParameterEditor.cs | 9 +- .../PropertyTypeParameterEditor.cs | 9 +- .../PropertyEditors/PropertyCacheLevel.cs | 2 +- .../PropertyEditorCollection.cs | 6 +- .../PropertyEditorTagsExtensions.cs | 4 +- .../PropertyValueConverterBase.cs | 6 +- .../PropertyValueConverterCollection.cs | 6 +- ...PropertyValueConverterCollectionBuilder.cs | 4 +- .../PropertyEditors/PropertyValueLevel.cs | 2 +- .../PropertyEditors/RichTextConfiguration.cs | 7 +- .../PropertyEditors/SliderConfiguration.cs | 2 +- .../PropertyEditors/TagConfiguration.cs | 4 +- .../TagsPropertyEditorAttribute.cs | 4 +- .../PropertyEditors/TextAreaConfiguration.cs | 4 +- .../PropertyEditors/TextOnlyValueEditor.cs | 11 +- .../TextStringValueConverter.cs | 8 +- .../PropertyEditors/TextboxConfiguration.cs | 4 +- .../PropertyEditors/TrueFalseConfiguration.cs | 4 +- .../UserPickerConfiguration.cs | 3 +- .../UserPickerPropertyEditor.cs | 10 +- ...omplexEditorElementTypeValidationResult.cs | 4 +- ...mplexEditorPropertyTypeValidationResult.cs | 4 +- .../ComplexEditorValidationResult.cs | 4 +- .../Validators/DateTimeValidator.cs | 5 +- .../Validators/DecimalValidator.cs | 3 +- .../Validators/DelimitedValueValidator.cs | 2 +- .../Validators/EmailValidator.cs | 2 +- .../Validators/IntegerValidator.cs | 3 +- .../Validators/RegexValidator.cs | 11 +- .../Validators/RequiredValidator.cs | 6 +- .../CheckboxListValueConverter.cs | 7 +- .../ContentPickerValueConverter.cs | 9 +- .../DatePickerValueConverter.cs | 6 +- .../ValueConverters/DecimalValueConverter.cs | 4 +- .../EmailAddressValueConverter.cs | 5 +- .../ValueConverters/IntegerValueConverter.cs | 5 +- .../ValueConverters/LabelValueConverter.cs | 4 +- .../MediaPickerValueConverter.cs | 8 +- .../MemberGroupPickerValueConverter.cs | 5 +- .../MemberPickerValueConverter.cs | 10 +- .../MultiNodeTreePickerValueConverter.cs | 13 +- .../MultipleTextStringValueConverter.cs | 4 +- .../MustBeStringValueConverter.cs | 4 +- .../RadioButtonListValueConverter.cs | 5 +- .../SimpleTinyMceValueConverter.cs | 6 +- .../ValueConverters/SliderValueConverter.cs | 11 +- .../ValueConverters/TagsValueConverter.cs | 11 +- .../UploadPropertyConverter.cs | 4 +- .../ValueConverters/YesNoValueConverter.cs | 4 +- .../PropertyEditors/ValueListConfiguration.cs | 2 +- .../PropertyEditors/ValueTypes.cs | 6 +- .../PropertyEditors/VoidEditor.cs | 10 +- .../PublishedCache/DefaultCultureAccessor.cs | 7 +- .../PublishedCache/IDefaultCultureAccessor.cs | 2 +- .../PublishedCache/IDomainCache.cs | 8 +- .../PublishedCache/IPublishedCache.cs | 7 +- .../PublishedCache/IPublishedContentCache.cs | 6 +- .../PublishedCache/IPublishedMediaCache.cs | 2 +- .../PublishedCache/IPublishedMemberCache.cs | 6 +- .../PublishedCache/IPublishedSnapshot.cs | 4 +- .../IPublishedSnapshotAccessor.cs | 2 +- .../IPublishedSnapshotService.cs | 4 +- .../IPublishedSnapshotStatus.cs | 2 +- src/Umbraco.Core/PublishedCache/ITagQuery.cs | 6 +- .../PublishedCache/PublishedCacheBase.cs | 8 +- .../PublishedCache/PublishedElement.cs | 6 +- .../PublishedElementPropertyBase.cs | 8 +- .../PublishedCache/PublishedMember.cs | 13 +- ...UmbracoContextPublishedSnapshotAccessor.cs | 4 +- src/Umbraco.Core/ReadLock.cs | 5 +- src/Umbraco.Core/ReflectionUtilities.cs | 2 +- src/Umbraco.Core/Routing/AliasUrlProvider.cs | 11 +- .../Routing/ContentFinderByIdPath.cs | 9 +- .../Routing/ContentFinderByPageIdQuery.cs | 5 +- .../Routing/ContentFinderByRedirectUrl.cs | 11 +- .../Routing/ContentFinderByUrl.cs | 6 +- .../Routing/ContentFinderByUrlAlias.cs | 11 +- .../Routing/ContentFinderByUrlAndTemplate.cs | 13 +- .../Routing/ContentFinderCollection.cs | 4 +- .../Routing/ContentFinderCollectionBuilder.cs | 4 +- .../Routing/CreatingRequestNotification.cs | 4 +- .../Routing/DefaultMediaUrlProvider.cs | 6 +- .../Routing/DefaultUrlProvider.cs | 9 +- src/Umbraco.Core/Routing/Domain.cs | 4 +- src/Umbraco.Core/Routing/DomainAndUri.cs | 4 +- src/Umbraco.Core/Routing/DomainUtilities.cs | 7 +- src/Umbraco.Core/Routing/IContentFinder.cs | 2 +- .../Routing/IContentLastChanceFinder.cs | 2 +- src/Umbraco.Core/Routing/IMediaUrlProvider.cs | 5 +- src/Umbraco.Core/Routing/IPublishedRequest.cs | 7 +- .../Routing/IPublishedRequestBuilder.cs | 6 +- src/Umbraco.Core/Routing/IPublishedRouter.cs | 2 +- .../Routing/IPublishedUrlProvider.cs | 5 +- src/Umbraco.Core/Routing/ISiteDomainHelper.cs | 2 +- src/Umbraco.Core/Routing/IUrlProvider.cs | 4 +- .../Routing/MediaUrlProviderCollection.cs | 4 +- .../MediaUrlProviderCollectionBuilder.cs | 4 +- src/Umbraco.Core/Routing/PublishedRequest.cs | 6 +- .../Routing/PublishedRequestBuilder.cs | 11 +- .../Routing/PublishedRequestExtensions.cs | 2 +- .../Routing/PublishedRequestOld.cs | 9 +- src/Umbraco.Core/Routing/PublishedRouter.cs | 22 +- src/Umbraco.Core/Routing/RouteDirection.cs | 2 +- .../Routing/RouteRequestOptions.cs | 2 +- .../Routing/RoutingRequestNotification.cs | 4 +- src/Umbraco.Core/Routing/SiteDomainHelper.cs | 6 +- .../Routing/UmbracoRequestPaths.cs | 9 +- .../Routing/UmbracoRouteResult.cs | 2 +- src/Umbraco.Core/Routing/UriUtility.cs | 10 +- src/Umbraco.Core/Routing/UrlInfo.cs | 4 +- src/Umbraco.Core/Routing/UrlProvider.cs | 10 +- .../Routing/UrlProviderCollection.cs | 4 +- .../Routing/UrlProviderCollectionBuilder.cs | 4 +- .../Routing/UrlProviderExtensions.cs | 12 +- src/Umbraco.Core/Routing/WebPath.cs | 3 +- ...uginsManifestWatcherNotificationHandler.cs | 8 +- .../Runtime/EssentialDirectoryCreator.cs | 10 +- src/Umbraco.Core/Runtime/IMainDom.cs | 5 +- src/Umbraco.Core/Runtime/IMainDomLock.cs | 2 +- .../Runtime/IUmbracoBootPermissionChecker.cs | 2 +- src/Umbraco.Core/Runtime/MainDom.cs | 7 +- .../Runtime/MainDomSemaphoreLock.cs | 5 +- src/Umbraco.Core/RuntimeLevel.cs | 2 +- src/Umbraco.Core/RuntimeLevelReason.cs | 2 +- src/Umbraco.Core/SafeCallContext.cs | 4 +- src/Umbraco.Core/Scoping/CallContext.cs | 9 +- .../Scoping/IInstanceIdentifiable.cs | 2 +- src/Umbraco.Core/Scoping/IScopeContext.cs | 2 +- .../Scoping/RepositoryCacheMode.cs | 2 +- src/Umbraco.Core/Sections/ContentSection.cs | 5 +- src/Umbraco.Core/Sections/FormsSection.cs | 5 +- src/Umbraco.Core/Sections/ISection.cs | 2 +- src/Umbraco.Core/Sections/MediaSection.cs | 5 +- src/Umbraco.Core/Sections/MembersSection.cs | 5 +- src/Umbraco.Core/Sections/PackagesSection.cs | 5 +- .../Sections/SectionCollection.cs | 5 +- .../Sections/SectionCollectionBuilder.cs | 7 +- src/Umbraco.Core/Sections/SettingsSection.cs | 5 +- .../Sections/TranslationSection.cs | 5 +- src/Umbraco.Core/Sections/UsersSection.cs | 5 +- .../Security/AuthenticationExtensions.cs | 6 +- .../BackOfficeExternalLoginProviderErrors.cs | 2 +- .../BackOfficeUserPasswordCheckerResult.cs | 2 +- .../Security/ClaimsPrincipalExtensions.cs | 7 +- .../Security/ContentPermissions.cs | 12 +- .../HybridBackofficeSecurityAccessor.cs | 5 +- .../HybridUmbracoWebsiteSecurityAccessor.cs | 5 +- .../Security/IBackofficeSecurity.cs | 6 +- .../Security/IBackofficeSecurityAccessor.cs | 2 +- .../Security/IMemberUserKeyProvider.cs | 2 +- src/Umbraco.Core/Security/IPasswordHasher.cs | 2 +- .../Security/IPublicAccessChecker.cs | 2 +- .../Security/IUmbracoWebsiteSecurity.cs | 4 +- .../IUmbracoWebsiteSecurityAccessor.cs | 2 +- .../Security/IdentityAuditEventArgs.cs | 3 +- .../Security/LegacyPasswordSecurity.cs | 6 +- src/Umbraco.Core/Security/MediaPermissions.cs | 11 +- .../Security/PasswordGenerator.cs | 11 +- .../Security/PublicAccessStatus.cs | 2 +- .../Security/RegisterMemberStatus.cs | 2 +- .../Security/UmbracoBackOfficeIdentity.cs | 5 +- .../Security/UpdateMemberProfileResult.cs | 2 +- .../Security/UpdateMemberProfileStatus.cs | 2 +- src/Umbraco.Core/Semver/Semver.cs | 52 +-- .../IConfigurationEditorJsonSerializer.cs | 2 +- .../Serialization/IJsonSerializer.cs | 2 +- .../Services/Changes/ContentTypeChange.cs | 4 +- .../Changes/ContentTypeChangeExtensions.cs | 10 +- .../Changes/ContentTypeChangeTypes.cs | 4 +- .../Services/Changes/DomainChangeTypes.cs | 2 +- .../Services/Changes/TreeChange.cs | 2 +- .../Services/Changes/TreeChangeExtensions.cs | 8 +- .../Services/Changes/TreeChangeTypes.cs | 2 +- .../Services/ContentServiceExtensions.cs | 13 +- .../Services/ContentTypeServiceExtensions.cs | 11 +- src/Umbraco.Core/Services/DashboardService.cs | 12 +- .../Services/DateTypeServiceExtensions.cs | 6 +- src/Umbraco.Core/Services/IAuditService.cs | 10 +- src/Umbraco.Core/Services/IConsentService.cs | 4 +- src/Umbraco.Core/Services/IContentService.cs | 8 +- .../Services/IContentServiceBase.cs | 4 +- .../IContentTypeBaseServiceProvider.cs | 4 +- .../Services/IContentTypeService.cs | 4 +- .../Services/IContentTypeServiceBase.cs | 4 +- .../Services/IDashboardService.cs | 8 +- src/Umbraco.Core/Services/IDataTypeService.cs | 4 +- src/Umbraco.Core/Services/IDomainService.cs | 4 +- src/Umbraco.Core/Services/IEntityService.cs | 8 +- .../Services/IEntityXmlSerializer.cs | 4 +- .../Services/IExternalLoginService.cs | 5 +- src/Umbraco.Core/Services/IFileService.cs | 4 +- src/Umbraco.Core/Services/IIconService.cs | 4 +- src/Umbraco.Core/Services/IIdKeyMap.cs | 4 +- .../Services/IInstallationService.cs | 3 +- src/Umbraco.Core/Services/IKeyValueService.cs | 2 +- .../Services/ILocalizationService.cs | 4 +- .../Services/ILocalizedTextService.cs | 5 +- src/Umbraco.Core/Services/IMacroService.cs | 4 +- src/Umbraco.Core/Services/IMediaService.cs | 6 +- .../Services/IMediaTypeService.cs | 4 +- .../Services/IMemberGroupService.cs | 4 +- src/Umbraco.Core/Services/IMemberService.cs | 6 +- .../Services/IMemberTypeService.cs | 4 +- .../Services/IMembershipMemberService.cs | 10 +- .../Services/IMembershipRoleService.cs | 6 +- .../Services/IMembershipUserService.cs | 5 +- .../Services/INotificationService.cs | 8 +- .../Services/IPackagingService.cs | 10 +- .../Services/IPropertyValidationService.cs | 6 +- .../Services/IPublicAccessService.cs | 4 +- .../Services/IRedirectUrlService.cs | 4 +- src/Umbraco.Core/Services/IRelationService.cs | 8 +- src/Umbraco.Core/Services/IRuntime.cs | 2 +- src/Umbraco.Core/Services/IRuntimeState.cs | 7 +- src/Umbraco.Core/Services/ISectionService.cs | 4 +- .../Services/IServerRegistrationService.cs | 6 +- src/Umbraco.Core/Services/IService.cs | 4 +- src/Umbraco.Core/Services/ITagService.cs | 4 +- src/Umbraco.Core/Services/ITreeService.cs | 4 +- src/Umbraco.Core/Services/IUpgradeService.cs | 5 +- src/Umbraco.Core/Services/IUserService.cs | 6 +- .../Services/InstallationService.cs | 5 +- .../LocalizedTextServiceExtensions.cs | 12 +- .../Services/MediaServiceExtensions.cs | 11 +- .../Services/MoveOperationStatusType.cs | 2 +- src/Umbraco.Core/Services/OperationResult.cs | 4 +- .../Services/OperationResultType.cs | 2 +- src/Umbraco.Core/Services/Ordering.cs | 4 +- .../Services/PublicAccessServiceExtensions.cs | 12 +- src/Umbraco.Core/Services/PublishResult.cs | 6 +- .../Services/PublishResultType.cs | 8 +- src/Umbraco.Core/Services/SectionService.cs | 6 +- src/Umbraco.Core/Services/ServiceContext.cs | 2 +- src/Umbraco.Core/Services/TreeService.cs | 9 +- src/Umbraco.Core/Services/UpgradeService.cs | 7 +- .../Services/UserServiceExtensions.cs | 5 +- src/Umbraco.Core/Settable.cs | 2 +- src/Umbraco.Core/SimpleMainDom.cs | 5 +- src/Umbraco.Core/StaticApplicationLogging.cs | 2 +- src/Umbraco.Core/StringUdi.cs | 2 +- src/Umbraco.Core/Strings/CleanStringType.cs | 2 +- .../Strings/Css/StylesheetHelper.cs | 3 +- .../Strings/Css/StylesheetRule.cs | 4 +- .../Strings/DefaultShortStringHelper.cs | 8 +- .../Strings/DefaultShortStringHelperConfig.cs | 6 +- .../Strings/DefaultUrlSegmentProvider.cs | 5 +- src/Umbraco.Core/Strings/Diff.cs | 5 +- src/Umbraco.Core/Strings/HtmlEncodedString.cs | 2 +- .../Strings/IHtmlEncodedString.cs | 2 +- .../Strings/IShortStringHelper.cs | 2 +- .../Strings/IUrlSegmentProvider.cs | 5 +- src/Umbraco.Core/Strings/PathUtility.cs | 2 +- .../Strings/UrlSegmentProviderCollection.cs | 4 +- .../UrlSegmentProviderCollectionBuilder.cs | 4 +- .../Strings/Utf8ToAsciiConverter.cs | 2 +- .../Sync/DatabaseServerMessengerCallbacks.cs | 2 +- .../Sync/ElectedServerRoleAccessor.cs | 4 +- src/Umbraco.Core/Sync/IServerAddress.cs | 2 +- src/Umbraco.Core/Sync/IServerMessenger.cs | 4 +- src/Umbraco.Core/Sync/IServerRoleAccessor.cs | 4 +- src/Umbraco.Core/Sync/MessageType.cs | 2 +- src/Umbraco.Core/Sync/RefreshMethodType.cs | 2 +- src/Umbraco.Core/Sync/ServerRole.cs | 2 +- .../Sync/SingleServerRoleAccessor.cs | 6 +- src/Umbraco.Core/SystemLock.cs | 3 +- src/Umbraco.Core/TaskHelper.cs | 2 +- .../Templates/HtmlImageSourceParser.cs | 6 +- .../Templates/HtmlLocalLinkParser.cs | 6 +- src/Umbraco.Core/Templates/HtmlUrlParser.cs | 10 +- .../Templates/ITemplateRenderer.cs | 2 +- .../Templates/IUmbracoComponentRenderer.cs | 6 +- .../Templates/UmbracoComponentRenderer.cs | 16 +- src/Umbraco.Core/Tour/BackOfficeTourFilter.cs | 4 +- src/Umbraco.Core/Tour/TourFilterCollection.cs | 4 +- .../Tour/TourFilterCollectionBuilder.cs | 6 +- src/Umbraco.Core/Trees/ActionUrlMethod.cs | 2 +- src/Umbraco.Core/Trees/CoreTreeAttribute.cs | 2 +- .../Trees/IMenuItemCollectionFactory.cs | 4 +- src/Umbraco.Core/Trees/ISearchableTree.cs | 6 +- src/Umbraco.Core/Trees/ITree.cs | 2 +- src/Umbraco.Core/Trees/MenuItemCollection.cs | 5 +- .../Trees/MenuItemCollectionFactory.cs | 5 +- src/Umbraco.Core/Trees/MenuItemList.cs | 15 +- .../Trees/SearchableApplicationTree.cs | 2 +- .../Trees/SearchableTreeAttribute.cs | 2 +- .../Trees/SearchableTreeCollection.cs | 9 +- .../Trees/SearchableTreeCollectionBuilder.cs | 4 +- src/Umbraco.Core/Trees/Tree.cs | 12 +- src/Umbraco.Core/Trees/TreeCollection.cs | 4 +- src/Umbraco.Core/Trees/TreeNode.cs | 7 +- src/Umbraco.Core/Trees/TreeNodeCollection.cs | 2 +- src/Umbraco.Core/Trees/TreeNodeExtensions.cs | 7 +- src/Umbraco.Core/Trees/TreeUse.cs | 4 +- src/Umbraco.Core/Udi.cs | 2 +- src/Umbraco.Core/UdiDefinitionAttribute.cs | 2 +- src/Umbraco.Core/UdiEntityTypeHelper.cs | 7 +- src/Umbraco.Core/UdiParser.cs | 2 +- .../UdiParserServiceConnectors.cs | 8 +- src/Umbraco.Core/UdiRange.cs | 2 +- src/Umbraco.Core/UdiType.cs | 2 +- src/Umbraco.Core/UdiTypeConverter.cs | 2 +- src/Umbraco.Core/Umbraco.Core.csproj | 6 + .../UmbracoApiControllerTypeCollection.cs | 4 +- src/Umbraco.Core/UmbracoContextReference.cs | 3 +- src/Umbraco.Core/UnknownTypeUdi.cs | 2 +- src/Umbraco.Core/UpgradeResult.cs | 2 +- src/Umbraco.Core/UpgradeableReadLock.cs | 5 +- src/Umbraco.Core/UriUtilityCore.cs | 4 +- .../Web/CookieManagerExtensions.cs | 8 +- .../Web/HybridUmbracoContextAccessor.cs | 4 +- src/Umbraco.Core/Web/ICookieManager.cs | 2 +- src/Umbraco.Core/Web/IRequestAccessor.cs | 2 +- src/Umbraco.Core/Web/ISessionManager.cs | 2 +- src/Umbraco.Core/Web/IUmbracoContext.cs | 9 +- .../Web/IUmbracoContextAccessor.cs | 2 +- .../Web/IUmbracoContextFactory.cs | 2 +- .../Web/Mvc/PluginControllerMetadata.cs | 2 +- src/Umbraco.Core/WebAssets/AssetFile.cs | 2 +- src/Umbraco.Core/WebAssets/AssetType.cs | 2 +- src/Umbraco.Core/WebAssets/CssFile.cs | 2 +- src/Umbraco.Core/WebAssets/IAssetFile.cs | 2 +- .../WebAssets/IRuntimeMinifier.cs | 2 +- src/Umbraco.Core/WebAssets/JavascriptFile.cs | 2 +- src/Umbraco.Core/WriteLock.cs | 5 +- src/Umbraco.Core/Xml/DynamicContext.cs | 4 +- .../Xml/UmbracoXPathPathSyntaxParser.cs | 2 +- .../Xml/XPath/INavigableContent.cs | 2 +- .../Xml/XPath/INavigableContentType.cs | 7 +- .../Xml/XPath/INavigableFieldType.cs | 5 +- .../Xml/XPath/INavigableSource.cs | 7 +- src/Umbraco.Core/Xml/XPath/MacroNavigator.cs | 2 +- .../Xml/XPath/NavigableNavigator.cs | 2 +- .../Xml/XPath/RenamedRootNavigator.cs | 2 +- .../Xml/XPathNavigatorExtensions.cs | 8 +- src/Umbraco.Core/Xml/XPathVariable.cs | 2 +- src/Umbraco.Core/Xml/XmlHelper.cs | 4 +- src/Umbraco.Core/Xml/XmlNamespaces.cs | 2 +- src/Umbraco.Core/Xml/XmlNodeListFactory.cs | 2 +- .../BackOfficeExamineSearcher.cs | 18 +- .../ExamineLuceneComponent.cs | 11 +- .../ExamineLuceneComposer.cs | 10 +- .../ExamineLuceneFinalComponent.cs | 10 +- .../ExamineLuceneFinalComposer.cs | 5 +- .../{ => Extensions}/ExamineExtensions.cs | 16 +- .../ILuceneDirectoryFactory.cs | 5 +- .../LuceneFileSystemDirectoryFactory.cs | 18 +- .../LuceneIndexCreator.cs | 16 +- .../LuceneIndexDiagnostics.cs | 15 +- .../LuceneIndexDiagnosticsFactory.cs | 8 +- .../LuceneRAMDirectoryFactory.cs | 5 +- .../NoPrefixSimpleFsLockFactory.cs | 6 +- .../UmbracoContentIndex.cs | 20 +- .../UmbracoExamineIndex.cs | 19 +- .../UmbracoExamineIndexDiagnostics.cs | 10 +- .../UmbracoIndexesCreator.cs | 26 +- .../UmbracoMemberIndex.cs | 13 +- ...abaseServerMessengerNotificationHandler.cs | 3 + .../Cache/DefaultRepositoryCachePolicy.cs | 4 +- .../Cache/DistributedCacheBinder.cs | 6 +- .../Cache/DistributedCacheBinder_Handlers.cs | 8 +- .../Cache/DistributedCacheExtensions.cs | 4 +- .../Cache/FullDataSetRepositoryCachePolicy.cs | 6 +- .../Cache/RepositoryCachePolicyBase.cs | 4 +- .../SingleItemsOnlyRepositoryCachePolicy.cs | 3 +- .../Compose/AuditEventsComponent.cs | 16 +- .../Compose/AuditEventsComposer.cs | 2 +- .../Compose/BlockEditorComponent.cs | 7 +- .../Compose/BlockEditorComposer.cs | 2 +- .../Compose/NestedContentPropertyComponent.cs | 7 +- .../Compose/NestedContentPropertyComposer.cs | 4 +- .../Compose/NotificationsComponent.cs | 59 ++-- .../Compose/NotificationsComposer.cs | 5 +- .../Compose/PublicAccessComponent.cs | 10 +- .../Compose/PublicAccessComposer.cs | 2 +- .../Compose/RelateOnCopyComponent.cs | 17 +- .../Compose/RelateOnCopyComposer.cs | 2 +- .../Compose/RelateOnTrashComponent.cs | 33 +- .../Compose/RelateOnTrashComposer.cs | 2 +- .../Configuration/JsonConfigManipulator.cs | 5 +- .../Configuration/NCronTabParser.cs | 1 + .../UmbracoBuilder.Collections.cs | 6 +- .../UmbracoBuilder.CoreServices.cs | 36 +- .../UmbracoBuilder.DistributedCache.cs | 12 +- .../UmbracoBuilder.FileSystems.cs | 11 +- .../UmbracoBuilder.Installer.cs | 7 +- .../UmbracoBuilder.MappingProfiles.cs | 6 +- .../UmbracoBuilder.Repositories.cs | 4 +- .../UmbracoBuilder.Services.cs | 18 +- .../UmbracoBuilder.Uniques.cs | 12 +- .../Deploy/IGridCellValueConnector.cs | 1 + src/Umbraco.Infrastructure/EmailSender.cs | 6 +- .../Events/MigrationEventArgs.cs | 3 +- .../Events/QueuingEventDispatcher.cs | 4 +- .../Examine/BaseValueSetBuilder.cs | 8 +- .../Examine/ContentIndexPopulator.cs | 4 + .../Examine/ContentValueSetBuilder.cs | 17 +- .../Examine/ContentValueSetValidator.cs | 5 +- .../Examine/ExamineExtensions.cs | 3 +- .../Examine/GenericIndexDiagnostics.cs | 5 +- .../Examine/IBackOfficeExamineSearcher.cs | 2 +- .../Examine/IContentValueSetBuilder.cs | 1 + .../Examine/IIndexDiagnostics.cs | 1 + .../IPublishedContentValueSetBuilder.cs | 3 +- .../Examine/IndexPopulator.cs | 2 +- .../Examine/IndexRebuilder.cs | 2 +- .../Examine/MediaIndexPopulator.cs | 2 + .../Examine/MediaValueSetBuilder.cs | 16 +- .../Examine/MemberIndexPopulator.cs | 2 + .../Examine/MemberValueSetBuilder.cs | 11 +- .../Examine/NoopBackOfficeExamineSearcher.cs | 2 +- .../Examine/PublishedContentIndexPopulator.cs | 4 +- .../Examine/UmbracoExamineExtensions.cs | 10 +- .../Examine/UmbracoIndexConfig.cs | 1 + .../Examine/ValueSetValidator.cs | 2 +- .../HealthChecks/MarkdownToHtmlConverter.cs | 4 +- .../HostedServices/HealthCheckNotifier.cs | 18 +- .../HostedServices/KeepAlive.cs | 11 +- .../HostedServices/LogScrubber.cs | 6 +- .../HostedServices/ReportSiteTask.cs | 10 +- .../HostedServices/ScheduledPublishing.cs | 6 + .../InstructionProcessTask.cs | 5 +- .../ServerRegistration/TouchServerTask.cs | 9 +- .../HostedServices/TempFileCleanup.cs | 3 +- .../IPublishedContentQuery.cs | 8 +- .../Install/FilePermissionHelper.cs | 11 +- .../Install/InstallHelper.cs | 22 +- .../Install/InstallStepCollection.cs | 4 +- .../InstallSteps/CompleteInstallStep.cs | 2 +- .../InstallSteps/DatabaseConfigureStep.cs | 9 +- .../InstallSteps/DatabaseInstallStep.cs | 6 +- .../InstallSteps/DatabaseUpgradeStep.cs | 10 +- .../Install/InstallSteps/NewInstallStep.cs | 12 +- .../InstallSteps/StarterKitDownloadStep.cs | 10 +- .../Logging/LogHttpRequest.cs | 2 +- .../Logging/MessageTemplates.cs | 1 + .../Enrichers/HttpRequestIdEnricher.cs | 2 +- .../Enrichers/HttpRequestNumberEnricher.cs | 2 +- .../Enrichers/HttpSessionIdEnricher.cs | 2 +- .../Enrichers/ThreadAbortExceptionEnricher.cs | 6 +- .../Logging/Serilog/LoggerConfigExtensions.cs | 8 +- .../Logging/Serilog/SerilogLogger.cs | 7 +- .../Logging/Viewer/ExpressionFilter.cs | 1 + .../Logging/Viewer/ILogViewer.cs | 2 + .../Logging/Viewer/LogViewerComposer.cs | 6 +- .../Logging/Viewer/LogViewerConfig.cs | 6 +- .../Logging/Viewer/SerilogJsonLogViewer.cs | 1 + .../Viewer/SerilogLogViewerSourceBase.cs | 6 +- .../Macros/MacroTagParser.cs | 2 +- .../Manifest/DashboardAccessRuleConverter.cs | 2 +- .../Manifest/DataEditorConverter.cs | 10 +- .../Manifest/ManifestParser.cs | 16 +- .../Manifest/ValueValidatorConverter.cs | 1 + .../Media/ImageDimensionExtractor.cs | 3 +- .../Media/ImageSharpImageUrlGenerator.cs | 7 +- .../Create/Index/CreateIndexBuilder.cs | 15 +- .../DeleteKeysAndIndexesBuilder.cs | 14 +- .../Migrations/IMigrationBuilder.cs | 1 + .../Migrations/IMigrationContext.cs | 1 + .../Migrations/Install/DatabaseBuilder.cs | 13 +- .../Migrations/Install/DatabaseDataCreator.cs | 309 +++++++++--------- .../Install/DatabaseSchemaCreator.cs | 7 +- .../Install/DatabaseSchemaCreatorFactory.cs | 2 +- .../Migrations/MergeBuilder.cs | 1 + .../Migrations/MigrationBase.cs | 1 + .../Migrations/MigrationBase_Extra.cs | 3 +- .../Migrations/MigrationBuilder.cs | 4 +- .../Migrations/MigrationContext.cs | 1 + .../Migrations/MigrationPlan.cs | 3 + .../PostMigrations/ClearCsrfCookies.cs | 5 +- .../PublishedSnapshotRebuilder.cs | 4 +- .../RebuildPublishedSnapshot.cs | 4 +- .../Upgrade/Common/CreateKeysAndIndexes.cs | 4 +- .../Migrations/Upgrade/UmbracoPlan.cs | 9 +- .../Migrations/Upgrade/Upgrader.cs | 1 + .../Upgrade/V_8_0_0/AddContentNuTable.cs | 6 +- .../Upgrade/V_8_0_0/AddLockObjects.cs | 16 +- .../V_8_0_0/AddPackagesSectionAccess.cs | 6 +- .../Upgrade/V_8_0_0/AddTypedLabels.cs | 48 +-- .../Upgrade/V_8_0_0/AddVariationTables1A.cs | 8 +- .../ConvertRelatedLinksToMultiUrlPicker.cs | 7 +- .../Upgrade/V_8_0_0/DataTypeMigration.cs | 22 +- .../ContentPickerPreValueMigrator.cs | 2 +- .../DataTypes/DecimalPreValueMigrator.cs | 1 + .../DataTypes/DefaultPreValueMigrator.cs | 1 + .../DropDownFlexiblePreValueMigrator.cs | 1 + .../DataTypes/ListViewPreValueMigrator.cs | 1 + .../MarkdownEditorPreValueMigrator.cs | 2 +- .../DataTypes/MediaPickerPreValueMigrator.cs | 6 +- .../NestedContentPreValueMigrator.cs | 4 +- .../DataTypes/PreValueMigratorCollection.cs | 2 +- .../PreValueMigratorCollectionBuilder.cs | 2 +- .../DataTypes/PreValueMigratorComposer.cs | 4 +- .../DataTypes/RenamingPreValueMigrator.cs | 4 +- .../DataTypes/RichTextPreValueMigrator.cs | 3 +- .../UmbracoSliderPreValueMigrator.cs | 1 + .../DataTypes/ValueListPreValueMigrator.cs | 1 + .../DropDownPropertyEditorsMigration.cs | 13 +- .../Upgrade/V_8_0_0/FallbackLanguage.cs | 3 +- .../Upgrade/V_8_0_0/LanguageColumns.cs | 4 +- .../MergeDateAndDateTimePropertyEditor.cs | 8 +- .../V_8_0_0/Models/ContentTypeDto80.cs | 2 +- .../V_8_0_0/Models/PropertyDataDto80.cs | 7 +- .../V_8_0_0/Models/PropertyTypeDto80.cs | 2 +- .../V_8_0_0/PropertyEditorsMigration.cs | 12 +- .../V_8_0_0/PropertyEditorsMigrationBase.cs | 4 +- ...adioAndCheckboxPropertyEditorsMigration.cs | 13 +- .../Upgrade/V_8_0_0/RefactorMacroColumns.cs | 20 +- .../Upgrade/V_8_0_0/RefactorVariantsModel.cs | 4 +- ...meLabelAndRichTextPropertyEditorAliases.cs | 4 +- .../V_8_0_0/RenameMediaVersionTable.cs | 22 +- .../V_8_0_0/RenameUmbracoDomainsTable.cs | 2 +- .../Migrations/Upgrade/V_8_0_0/SuperZero.cs | 2 +- .../V_8_0_0/TablesForScheduledPublishing.cs | 3 +- .../Upgrade/V_8_0_0/TagsMigration.cs | 6 +- .../Upgrade/V_8_0_0/TagsMigrationFix.cs | 4 +- .../V_8_0_0/UpdateDefaultMandatoryLanguage.cs | 2 +- .../V_8_0_0/UpdatePickerIntegerValuesToUdi.cs | 27 +- .../Upgrade/V_8_0_0/UserForeignKeys.cs | 4 +- .../Upgrade/V_8_0_0/VariantsMigration.cs | 54 +-- ...nvertTinyMceAndGridMediaUrlsToLocalLink.cs | 9 +- .../Upgrade/V_8_6_0/AddMainDomLock.cs | 2 +- .../Upgrade/V_8_6_0/AddNewRelationTypes.cs | 10 +- .../V_8_6_0/UpdateRelationTypeTable.cs | 10 +- .../V_8_9_0/ExternalLoginTableUserData.cs | 2 +- .../Models/Blocks/BlockEditorData.cs | 1 + .../Models/Blocks/BlockEditorDataConverter.cs | 1 + .../Models/Blocks/BlockItemData.cs | 2 + .../Blocks/BlockListEditorDataConverter.cs | 3 +- .../Models/Blocks/BlockListLayoutItem.cs | 1 + .../Models/Mapping/EntityMapDefinition.cs | 15 +- .../Models/PathValidationExtensions.cs | 4 +- .../ObjectJsonExtensions.cs | 2 +- .../Packaging/PackageDataInstallation.cs | 29 +- .../Packaging/PackageInstallation.cs | 6 +- .../Persistence/BasicBulkSqlInsertProvider.cs | 2 +- .../DefinitionFactory.cs | 5 +- .../IndexColumnDefinition.cs | 4 +- .../Persistence/DbConnectionExtensions.cs | 7 +- .../Persistence/Dtos/AccessDto.cs | 2 +- .../Persistence/Dtos/AccessRuleDto.cs | 2 +- .../Persistence/Dtos/AuditEntryDto.cs | 2 +- .../Persistence/Dtos/CacheInstructionDto.cs | 2 +- .../Persistence/Dtos/ConsentDto.cs | 2 +- .../Persistence/Dtos/ContentDto.cs | 2 +- .../Persistence/Dtos/ContentNuDto.cs | 2 +- .../Persistence/Dtos/ContentScheduleDto.cs | 2 +- .../Dtos/ContentType2ContentTypeDto.cs | 2 +- .../Dtos/ContentTypeAllowedContentTypeDto.cs | 2 +- .../Persistence/Dtos/ContentTypeDto.cs | 2 +- .../Dtos/ContentTypeTemplateDto.cs | 2 +- .../Dtos/ContentVersionCultureVariationDto.cs | 2 +- .../Persistence/Dtos/ContentVersionDto.cs | 2 +- .../Persistence/Dtos/DataTypeDto.cs | 2 +- .../Persistence/Dtos/DictionaryDto.cs | 4 +- .../Dtos/DocumentCultureVariationDto.cs | 2 +- .../Persistence/Dtos/DocumentDto.cs | 2 +- .../Dtos/DocumentPublishedReadOnlyDto.cs | 2 +- .../Persistence/Dtos/DocumentVersionDto.cs | 2 +- .../Persistence/Dtos/DomainDto.cs | 2 +- .../Persistence/Dtos/ExternalLoginDto.cs | 2 +- .../Persistence/Dtos/KeyValueDto.cs | 2 +- .../Persistence/Dtos/LanguageDto.cs | 2 +- .../Persistence/Dtos/LanguageTextDto.cs | 2 +- .../Persistence/Dtos/LockDto.cs | 2 +- .../Persistence/Dtos/LogDto.cs | 2 +- .../Persistence/Dtos/MacroDto.cs | 2 +- .../Persistence/Dtos/MacroPropertyDto.cs | 2 +- .../Persistence/Dtos/MediaVersionDto.cs | 2 +- .../Persistence/Dtos/Member2MemberGroupDto.cs | 2 +- .../Persistence/Dtos/MemberDto.cs | 2 +- .../Persistence/Dtos/MemberPropertyTypeDto.cs | 2 +- .../Persistence/Dtos/NodeDto.cs | 2 +- .../Persistence/Dtos/PropertyDataDto.cs | 3 +- .../Persistence/Dtos/PropertyTypeDto.cs | 2 +- .../Persistence/Dtos/PropertyTypeGroupDto.cs | 2 +- .../Dtos/PropertyTypeGroupReadOnlyDto.cs | 2 +- .../Dtos/PropertyTypeReadOnlyDto.cs | 2 +- .../Persistence/Dtos/RedirectUrlDto.cs | 2 +- .../Persistence/Dtos/RelationDto.cs | 2 +- .../Persistence/Dtos/RelationTypeDto.cs | 2 +- .../Persistence/Dtos/ServerRegistrationDto.cs | 2 +- .../Persistence/Dtos/TagDto.cs | 2 +- .../Persistence/Dtos/TagRelationshipDto.cs | 2 +- .../Persistence/Dtos/TemplateDto.cs | 2 +- .../Persistence/Dtos/User2NodeNotifyDto.cs | 2 +- .../Persistence/Dtos/User2UserGroupDto.cs | 2 +- .../Persistence/Dtos/UserDto.cs | 2 +- .../Persistence/Dtos/UserGroup2AppDto.cs | 2 +- .../Dtos/UserGroup2NodePermissionDto.cs | 2 +- .../Persistence/Dtos/UserGroupDto.cs | 2 +- .../Persistence/Dtos/UserLoginDto.cs | 2 +- .../Persistence/Dtos/UserStartNodeDto.cs | 2 +- .../Factories/AuditEntryFactory.cs | 1 + .../Persistence/Factories/ConsentFactory.cs | 1 + .../Factories/ContentBaseFactory.cs | 25 +- .../Factories/ContentTypeFactory.cs | 13 +- .../Persistence/Factories/DataTypeFactory.cs | 11 +- .../Factories/DictionaryItemFactory.cs | 1 + .../Factories/DictionaryTranslationFactory.cs | 1 + .../Factories/ExternalLoginFactory.cs | 1 + .../Persistence/Factories/LanguageFactory.cs | 3 +- .../Persistence/Factories/MacroFactory.cs | 5 +- .../Factories/MemberGroupFactory.cs | 3 +- .../Persistence/Factories/PropertyFactory.cs | 7 +- .../Factories/PropertyGroupFactory.cs | 3 +- .../Factories/PublicAccessEntryFactory.cs | 1 + .../Persistence/Factories/RelationFactory.cs | 3 +- .../Factories/RelationTypeFactory.cs | 3 +- .../Factories/ServerRegistrationFactory.cs | 3 +- .../Persistence/Factories/TagFactory.cs | 3 +- .../Persistence/Factories/TemplateFactory.cs | 5 +- .../Persistence/Factories/UserFactory.cs | 9 +- .../Persistence/Factories/UserGroupFactory.cs | 5 +- .../Persistence/ISqlContext.cs | 1 + .../Persistence/Mappers/AccessMapper.cs | 1 + .../Persistence/Mappers/AuditEntryMapper.cs | 1 + .../Persistence/Mappers/AuditItemMapper.cs | 1 + .../Persistence/Mappers/BaseMapper.cs | 2 +- .../Persistence/Mappers/ConsentMapper.cs | 1 + .../Persistence/Mappers/ContentMapper.cs | 1 + .../Persistence/Mappers/ContentTypeMapper.cs | 1 + .../Persistence/Mappers/DataTypeMapper.cs | 1 + .../Persistence/Mappers/DictionaryMapper.cs | 1 + .../Mappers/DictionaryTranslationMapper.cs | 1 + .../Persistence/Mappers/DomainMapper.cs | 1 + .../Mappers/ExternalLoginMapper.cs | 1 + .../Persistence/Mappers/IMapperCollection.cs | 2 +- .../Persistence/Mappers/LanguageMapper.cs | 1 + .../Persistence/Mappers/MacroMapper.cs | 1 + .../Persistence/Mappers/MapperCollection.cs | 4 +- .../Mappers/MapperCollectionBuilder.cs | 2 +- .../Persistence/Mappers/MediaMapper.cs | 29 +- .../Persistence/Mappers/MediaTypeMapper.cs | 1 + .../Persistence/Mappers/MemberGroupMapper.cs | 1 + .../Persistence/Mappers/MemberMapper.cs | 2 +- .../Persistence/Mappers/MemberTypeMapper.cs | 1 + .../Mappers/PropertyGroupMapper.cs | 1 + .../Persistence/Mappers/PropertyMapper.cs | 1 + .../Persistence/Mappers/PropertyTypeMapper.cs | 1 + .../Persistence/Mappers/RelationMapper.cs | 1 + .../Persistence/Mappers/RelationTypeMapper.cs | 1 + .../Mappers/ServerRegistrationMapper.cs | 1 + .../Mappers/SimpleContentTypeMapper.cs | 1 + .../Persistence/Mappers/TagMapper.cs | 1 + .../Persistence/Mappers/TemplateMapper.cs | 1 + .../Mappers/UmbracoEntityMapper.cs | 2 +- .../Persistence/Mappers/UserGroupMapper.cs | 2 +- .../Persistence/Mappers/UserMapper.cs | 2 +- .../Persistence/NPocoDatabaseExtensions.cs | 2 + .../Persistence/NPocoSqlExtensions.cs | 2 + .../NoopEmbeddedDatabaseCreator.cs | 2 +- .../Querying/ExpressionVisitorBase.cs | 4 +- .../Querying/ModelToSqlExpressionVisitor.cs | 3 +- .../Persistence/Querying/Query.cs | 1 + .../Persistence/Querying/QueryExtensions.cs | 1 + .../Querying/SqlExpressionExtensions.cs | 1 + .../Persistence/Querying/SqlTranslator.cs | 1 + .../Repositories/IContentRepository.cs | 6 +- .../Repositories/IContentTypeRepository.cs | 2 + .../IContentTypeRepositoryBase.cs | 3 + .../Repositories/IDataTypeRepository.cs | 4 + .../Repositories/IDocumentRepository.cs | 6 +- .../Repositories/IEntityRepository.cs | 10 +- .../Repositories/IMediaRepository.cs | 2 + .../Repositories/IMediaTypeRepository.cs | 1 + .../Repositories/IMemberRepository.cs | 2 + .../Repositories/IMemberTypeRepository.cs | 3 +- .../Repositories/IPublicAccessRepository.cs | 2 + .../Implement/AuditEntryRepository.cs | 14 +- .../Repositories/Implement/AuditRepository.cs | 13 +- .../Implement/ConsentRepository.cs | 10 +- .../Implement/ContentRepositoryBase.cs | 46 +-- .../Implement/ContentTypeCommonRepository.cs | 21 +- .../Implement/ContentTypeRepository.cs | 17 +- .../Implement/ContentTypeRepositoryBase.cs | 31 +- .../Implement/DataTypeContainerRepository.cs | 4 +- .../Implement/DataTypeRepository.cs | 29 +- .../Implement/DictionaryRepository.cs | 9 +- .../Implement/DocumentBlueprintRepository.cs | 8 +- .../Implement/DocumentRepository.cs | 68 ++-- .../DocumentTypeContainerRepository.cs | 4 +- .../Implement/DomainRepository.cs | 13 +- .../Implement/EntityContainerRepository.cs | 8 +- .../Implement/EntityRepository.cs | 53 +-- .../Implement/EntityRepositoryBase.cs | 8 +- .../Implement/ExternalLoginRepository.cs | 9 +- .../Repositories/Implement/FileRepository.cs | 9 +- .../Implement/KeyValueRepository.cs | 11 +- .../Implement/LanguageRepository.cs | 25 +- .../Implement/LanguageRepositoryExtensions.cs | 5 +- .../Repositories/Implement/MacroRepository.cs | 11 +- .../Repositories/Implement/MediaRepository.cs | 62 ++-- .../Implement/MediaTypeContainerRepository.cs | 4 +- .../Implement/MediaTypeRepository.cs | 13 +- .../Implement/MemberGroupRepository.cs | 18 +- .../Implement/MemberRepository.cs | 36 +- .../Implement/MemberTypeRepository.cs | 20 +- .../Implement/NotificationsRepository.cs | 6 +- .../Implement/PartialViewMacroRepository.cs | 4 +- .../Implement/PartialViewRepository.cs | 9 +- .../Implement/PermissionRepository.cs | 10 +- .../Implement/PublicAccessRepository.cs | 6 +- .../Implement/RedirectUrlRepository.cs | 9 +- .../Implement/RelationRepository.cs | 20 +- .../Implement/RelationTypeRepository.cs | 8 +- .../Repositories/Implement/RepositoryBase.cs | 3 + .../Implement/ScriptRepository.cs | 9 +- .../Implement/ServerRegistrationRepository.cs | 8 +- .../Repositories/Implement/SimilarNodeName.cs | 3 +- .../Implement/SimpleGetRepository.cs | 5 +- .../Implement/StylesheetRepository.cs | 9 +- .../Repositories/Implement/TagRepository.cs | 17 +- .../Implement/TemplateRepository.cs | 30 +- .../Implement/UserGroupRepository.cs | 13 +- .../Repositories/Implement/UserRepository.cs | 17 +- .../Persistence/SqlContext.cs | 1 + .../SqlServerBulkSqlInsertProvider.cs | 2 +- .../SqlServerDbProviderFactoryCreator.cs | 8 +- .../SqlSyntax/SqlServerSyntaxProvider.cs | 3 +- .../SqlSyntax/SqlSyntaxProviderBase.cs | 1 + .../Persistence/SqlSyntaxExtensions.cs | 2 + .../Persistence/UmbracoDatabaseExtensions.cs | 1 + .../Persistence/UmbracoDatabaseFactory.cs | 4 +- .../BlockEditorPropertyEditor.cs | 14 +- .../BlockListConfigurationEditor.cs | 3 +- .../BlockListPropertyEditor.cs | 8 +- .../CheckBoxListPropertyEditor.cs | 9 +- .../ColorPickerConfigurationEditor.cs | 7 +- .../ColorPickerPropertyEditor.cs | 8 +- .../PropertyEditors/ComplexEditorValidator.cs | 9 +- ...omplexPropertyEditorContentEventHandler.cs | 7 +- .../ConfigurationEditorOfTConfiguration.cs | 8 +- .../ContentPickerConfigurationEditor.cs | 3 +- .../ContentPickerPropertyEditor.cs | 12 +- .../DateTimeConfigurationEditor.cs | 5 +- .../PropertyEditors/DateTimePropertyEditor.cs | 10 +- .../DropDownFlexibleConfigurationEditor.cs | 7 +- .../DropDownFlexiblePropertyEditor.cs | 9 +- .../EmailAddressConfigurationEditor.cs | 3 +- .../EmailAddressPropertyEditor.cs | 11 +- .../FileUploadPropertyEditor.cs | 30 +- .../FileUploadPropertyValueEditor.cs | 16 +- .../PropertyEditors/GridConfiguration.cs | 5 +- .../GridConfigurationEditor.cs | 3 +- .../PropertyEditors/GridPropertyEditor.cs | 22 +- .../GridPropertyIndexValueFactory.cs | 7 +- .../ImageCropperConfiguration.cs | 1 + .../ImageCropperConfigurationEditor.cs | 2 +- .../ImageCropperPropertyEditor.cs | 29 +- .../ImageCropperPropertyValueEditor.cs | 17 +- .../LabelConfigurationEditor.cs | 5 +- .../PropertyEditors/LabelPropertyEditor.cs | 10 +- .../ListViewConfigurationEditor.cs | 3 +- .../PropertyEditors/ListViewPropertyEditor.cs | 8 +- .../MarkdownConfigurationEditor.cs | 3 +- .../PropertyEditors/MarkdownPropertyEditor.cs | 8 +- .../MediaPickerConfigurationEditor.cs | 3 +- .../MediaPickerPropertyEditor.cs | 12 +- .../MultiNodePickerConfigurationEditor.cs | 3 +- .../MultiNodeTreePickerPropertyEditor.cs | 12 +- .../MultiUrlPickerConfigurationEditor.cs | 3 +- .../MultiUrlPickerPropertyEditor.cs | 12 +- .../MultiUrlPickerValueEditor.cs | 25 +- .../MultipleTextStringConfigurationEditor.cs | 7 +- .../MultipleTextStringPropertyEditor.cs | 15 +- .../PropertyEditors/MultipleValueEditor.cs | 9 +- .../NestedContentConfigurationEditor.cs | 3 +- .../NestedContentPropertyEditor.cs | 17 +- .../PropertyEditorsComponent.cs | 6 +- .../PropertyEditorsComposer.cs | 2 +- .../RadioButtonsPropertyEditor.cs | 8 +- .../RichTextConfigurationEditor.cs | 3 +- .../RichTextEditorPastedImages.cs | 26 +- .../PropertyEditors/RichTextPropertyEditor.cs | 25 +- .../SliderConfigurationEditor.cs | 3 +- .../PropertyEditors/SliderPropertyEditor.cs | 8 +- .../PropertyEditors/TagConfigurationEditor.cs | 7 +- .../PropertyEditors/TagsPropertyEditor.cs | 16 +- .../TextAreaConfigurationEditor.cs | 3 +- .../PropertyEditors/TextAreaPropertyEditor.cs | 9 +- .../TextboxConfigurationEditor.cs | 3 +- .../PropertyEditors/TextboxPropertyEditor.cs | 9 +- .../TrueFalseConfigurationEditor.cs | 3 +- .../TrueFalsePropertyEditor.cs | 8 +- .../UploadFileTypeValidator.cs | 9 +- .../ValueConverters/BlockEditorConverter.cs | 5 +- .../BlockListPropertyValueConverter.cs | 15 +- .../ColorPickerValueConverter.cs | 6 +- .../FlexibleDropdownPropertyValueConverter.cs | 4 +- .../ValueConverters/GridValueConverter.cs | 10 +- .../ValueConverters/ImageCropperValue.cs | 7 +- .../ImageCropperValueConverter.cs | 6 +- .../ImageCropperValueTypeConverter.cs | 2 +- .../ValueConverters/JsonValueConverter.cs | 4 +- .../MarkdownEditorValueConverter.cs | 9 +- .../MultiUrlPickerValueConverter.cs | 20 +- .../NestedContentManyValueConverter.cs | 5 +- .../NestedContentSingleValueConverter.cs | 5 +- .../NestedContentValueConverterBase.cs | 9 +- .../RteMacroRenderingValueConverter.cs | 14 +- .../ValueListConfigurationEditor.cs | 11 +- .../ValueListUniqueValueValidator.cs | 4 +- .../PublishedContentTypeCache.cs | 6 +- .../PublishedContentQuery.cs | 10 +- .../Routing/ContentFinderByConfigured404.cs | 7 +- .../Routing/NotFoundHandlerHelper.cs | 18 +- .../Routing/RedirectTrackingComponent.cs | 16 +- .../Routing/RedirectTrackingComposer.cs | 2 +- .../Runtime/CoreRuntime.cs | 12 +- .../Runtime/SqlMainDomLock.cs | 23 +- src/Umbraco.Infrastructure/RuntimeState.cs | 9 +- src/Umbraco.Infrastructure/Scoping/IScope.cs | 3 + .../Scoping/IScopeProvider.cs | 2 + src/Umbraco.Infrastructure/Scoping/Scope.cs | 9 +- .../Scoping/ScopeContext.cs | 1 + .../Scoping/ScopeProvider.cs | 11 +- .../Scoping/ScopeReference.cs | 4 +- .../Search/BackgroundIndexRebuilder.cs | 1 + .../Search/ExamineComponent.cs | 20 +- .../Search/ExamineComposer.cs | 13 +- .../Search/ExamineFinalComponent.cs | 3 +- .../Search/ExamineFinalComposer.cs | 2 +- .../Search/ExamineUserComponent.cs | 5 +- .../Search/UmbracoTreeSearcher.cs | 19 +- .../BackOfficeClaimsPrincipalFactory.cs | 1 + .../Security/BackOfficeIdentityUser.cs | 7 +- .../Security/BackOfficeUserStore.cs | 16 +- .../IBackOfficeUserPasswordChecker.cs | 1 + .../Security/IUmbracoUserManager.cs | 4 +- .../Security/IdentityMapDefinition.cs | 17 +- .../Security/SignOutAuditEventArgs.cs | 3 +- .../Security/UmbracoIdentityUser.cs | 5 +- .../Security/UmbracoUserManager.cs | 4 +- .../Security/UserInviteEventArgs.cs | 5 +- .../ConfigurationEditorJsonSerializer.cs | 2 + .../Serialization/JsonNetSerializer.cs | 1 + .../Serialization/JsonReadConverter.cs | 1 - .../KnownTypeUdiJsonConverter.cs | 1 + .../Serialization/UdiJsonConverter.cs | 1 + .../Serialization/UdiRangeJsonConverter.cs | 1 + .../Services/IdKeyMap.cs | 7 +- .../Services/Implement/AuditService.cs | 12 +- .../Services/Implement/ConsentService.cs | 4 + .../Services/Implement/ContentService.cs | 241 +++++++------- .../ContentTypeBaseServiceProvider.cs | 2 + .../Services/Implement/ContentTypeService.cs | 16 +- .../Implement/ContentTypeServiceBase.cs | 1 + .../ContentTypeServiceBaseOfTItemTService.cs | 5 +- ...peServiceBaseOfTRepositoryTItemTService.cs | 30 +- .../Services/Implement/DataTypeService.cs | 37 ++- .../Services/Implement/DomainService.cs | 5 + .../Services/Implement/EntityService.cs | 17 +- .../Services/Implement/EntityXmlSerializer.cs | 11 +- .../Implement/ExternalLoginService.cs | 4 + .../Services/Implement/FileService.cs | 57 ++-- .../Services/Implement/KeyValueService.cs | 7 +- .../Services/Implement/LocalizationService.cs | 20 +- .../Implement/LocalizedTextService.cs | 2 + .../LocalizedTextServiceFileSources.cs | 5 +- .../Services/Implement/MacroService.cs | 8 +- .../Services/Implement/MediaService.cs | 169 +++++----- .../Services/Implement/MediaTypeService.cs | 10 +- .../Services/Implement/MemberGroupService.cs | 4 + .../Services/Implement/MemberService.cs | 103 +++--- .../Services/Implement/MemberTypeService.cs | 13 +- .../Services/Implement/NotificationService.cs | 23 +- .../Services/Implement/PackagingService.cs | 30 +- .../Implement/PropertyValidationService.cs | 12 +- .../Services/Implement/PublicAccessService.cs | 7 +- .../Services/Implement/RedirectUrlService.cs | 4 + .../Services/Implement/RelationService.cs | 12 +- .../Services/Implement/RepositoryService.cs | 3 + .../Implement/ScopeRepositoryService.cs | 1 + .../Implement/ServerRegistrationService.cs | 21 +- .../Services/Implement/TagService.cs | 4 + .../Services/Implement/UserService.cs | 15 +- src/Umbraco.Infrastructure/Suspendable.cs | 2 + .../Sync/BatchedDatabaseServerMessenger.cs | 13 +- .../Sync/DatabaseServerMessenger.cs | 12 +- .../Sync/RefreshInstruction.cs | 4 +- .../Sync/RefreshInstructionEnvelope.cs | 2 + .../Sync/ServerMessengerBase.cs | 3 + src/Umbraco.Infrastructure/TagQuery.cs | 7 +- .../Trees/TreeRootNode.cs | 4 +- .../BackOfficeJavaScriptInitializer.cs | 5 +- .../WebAssets/BackOfficeWebAssets.cs | 16 +- .../WebAssets/PropertyEditorAssetAttribute.cs | 2 +- .../WebAssets/RuntimeMinifierExtensions.cs | 6 +- .../WebAssets/ServerVariablesParser.cs | 1 + .../WebAssets/ServerVariablesParsing.cs | 1 + .../WebAssets/WebAssetsComponent.cs | 2 +- .../WebAssets/WebAssetsComposer.cs | 5 +- .../ApiVersion.cs | 4 +- .../BackOffice/ContentTypeModelValidator.cs | 6 +- .../ContentTypeModelValidatorBase.cs | 14 +- .../BackOffice/DashboardReport.cs | 10 +- .../BackOffice/MediaTypeModelValidator.cs | 6 +- .../BackOffice/MemberTypeModelValidator.cs | 6 +- .../ModelsBuilderDashboardController.cs | 14 +- .../Building/Builder.cs | 19 +- .../Building/ModelsGenerator.cs | 9 +- .../Building/PropertyModel.cs | 2 +- .../Building/TextBuilder.cs | 6 +- .../Building/TextHeaderWriter.cs | 2 +- .../Building/TypeModel.cs | 4 +- .../Building/TypeModelHasher.cs | 8 +- .../UmbracoBuilderExtensions.cs | 21 +- ...DisableModelsBuilderNotificationHandler.cs | 10 +- .../ImplementPropertyTypeAttribute.cs | 2 +- .../LiveModelsProvider.cs | 13 +- .../ModelsBuilderAssemblyAttribute.cs | 2 +- .../ModelsBuilderDashboard.cs | 6 +- .../ModelsBuilderNotificationHandler.cs | 21 +- .../ModelsGenerationError.cs | 8 +- .../OutOfDateModelsStatus.cs | 12 +- .../PublishedElementExtensions.cs | 5 +- .../PublishedModelUtility.cs | 8 +- .../PureLiveModelFactory.cs | 18 +- .../RefreshingRazorViewEngine.cs | 2 +- .../RoslynCompiler.cs | 2 +- .../TypeExtensions.cs | 2 +- .../Umbraco.ModelsBuilder.Embedded.csproj | 2 + .../UmbracoAssemblyLoadContext.cs | 2 +- .../UmbracoServices.cs | 16 +- .../SqlCeBulkSqlInsertProvider.cs | 4 +- .../SqlCeEmbeddedDatabaseCreator.cs | 6 +- .../SqlCeSyntaxProvider.cs | 4 +- .../Umbraco.Persistence.SqlCe.csproj | 1 + .../CacheKeys.cs | 3 +- .../ContentCache.cs | 20 +- .../ContentNode.cs | 8 +- .../ContentNodeKit.cs | 7 +- .../ContentStore.cs | 10 +- .../DataSource/BTree.ContentDataSerializer.cs | 2 +- .../BTree.ContentNodeKitSerializer.cs | 2 +- ....DictionaryOfCultureVariationSerializer.cs | 4 +- ...Tree.DictionaryOfPropertyDataSerializer.cs | 4 +- .../DataSource/BTree.cs | 5 +- .../DataSource/ContentData.cs | 2 +- .../DataSource/ContentNestedData.cs | 4 +- .../DataSource/ContentSourceDto.cs | 2 +- .../DataSource/CultureVariation.cs | 2 +- .../DataSource/PropertyData.cs | 2 +- .../DataSource/SerializerBase.cs | 2 +- .../UmbracoBuilderExtensions.cs | 13 +- .../DomainCache.cs | 5 +- .../MediaCache.cs | 16 +- .../MemberCache.cs | 18 +- .../Navigable/INavigableData.cs | 4 +- .../Navigable/NavigableContent.cs | 6 +- .../Navigable/NavigableContentType.cs | 6 +- .../Navigable/NavigablePropertyType.cs | 4 +- .../Navigable/RootContent.cs | 4 +- .../Navigable/Source.cs | 4 +- .../Persistence/INuCacheContentRepository.cs | 5 +- .../Persistence/INuCacheContentService.cs | 5 +- .../Persistence/NuCacheContentRepository.cs | 20 +- .../Persistence/NuCacheContentService.cs | 10 +- .../Property.cs | 17 +- .../PublishedContent.cs | 15 +- .../PublishedMember.cs | 11 +- .../PublishedSnapshot.cs | 7 +- .../PublishedSnapshotService.cs | 36 +- .../PublishedSnapshotServiceEventHandler.cs | 18 +- .../PublishedSnapshotServiceOptions.cs | 4 +- .../PublishedSnapshotStatus.cs | 5 +- .../Snap/GenObj.cs | 2 +- .../Snap/GenRef.cs | 2 +- .../Snap/LinkedNode.cs | 2 +- .../SnapDictionary.cs | 10 +- .../Umbraco.PublishedCache.NuCache.csproj | 2 + src/Umbraco.TestData/LoadTestController.cs | 8 +- src/Umbraco.TestData/SegmentTestController.cs | 11 +- .../UmbracoTestDataController.cs | 28 +- .../CombineGuidBenchmarks.cs | 1 + .../ConcurrentDictionaryBenchmarks.cs | 2 +- .../CtorInvokeBenchmarks.cs | 1 + .../HexStringBenchmarks.cs | 1 + .../ModelToSqlExpressionHelperBenchmarks.cs | 3 +- .../SqlTemplatesBenchmark.cs | 2 +- .../TryConvertToBenchmarks.cs | 3 +- .../TypeFinderBenchmarks.cs | 10 +- .../Builders/AuditEntryBuilder.cs | 6 +- .../Builders/BuilderBase.cs | 2 +- .../Builders/ChildBuilderBase.cs | 2 +- .../Builders/ConfigurationEditorBuilder.cs | 4 +- .../Builders/ContentBuilder.cs | 13 +- .../Builders/ContentItemSaveBuilder.cs | 6 +- .../Builders/ContentPropertyBasicBuilder.cs | 6 +- .../Builders/ContentTypeBaseBuilder.cs | 10 +- .../Builders/ContentTypeBuilder.cs | 10 +- .../Builders/ContentTypeSortBuilder.cs | 8 +- .../Builders/ContentVariantSaveBuilder.cs | 6 +- .../Builders/DataEditorBuilder.cs | 11 +- .../Builders/DataTypeBuilder.cs | 9 +- .../Builders/DataValueEditorBuilder.cs | 11 +- .../Builders/DictionaryItemBuilder.cs | 6 +- .../Builders/DictionaryTranslationBuilder.cs | 6 +- .../Builders/DocumentEntitySlimBuilder.cs | 6 +- .../Builders/EntitySlimBuilder.cs | 6 +- .../Builders/Extensions/BuilderExtensions.cs | 6 +- .../ContentItemSaveBuilderExtensions.cs | 4 +- .../ContentTypeBuilderExtensions.cs | 6 +- .../Builders/Extensions/StringExtensions.cs | 2 +- .../Builders/GenericCollectionBuilder.cs | 2 +- .../Builders/GenericDictionaryBuilder.cs | 2 +- .../Builders/Interfaces/IAccountBuilder.cs | 2 +- .../Builders/Interfaces/IBuildContentTypes.cs | 2 +- .../Interfaces/IBuildPropertyGroups.cs | 2 +- .../Interfaces/IBuildPropertyTypes.cs | 2 +- .../Builders/Interfaces/IWithAliasBuilder.cs | 2 +- .../Interfaces/IWithCreateDateBuilder.cs | 2 +- .../Interfaces/IWithCreatorIdBuilder.cs | 4 +- .../Interfaces/IWithCultureInfoBuilder.cs | 2 +- .../Interfaces/IWithDeleteDateBuilder.cs | 2 +- .../Interfaces/IWithDescriptionBuilder.cs | 2 +- .../Builders/Interfaces/IWithEmailBuilder.cs | 2 +- .../IWithFailedPasswordAttemptsBuilder.cs | 2 +- .../Builders/Interfaces/IWithIconBuilder.cs | 2 +- .../Builders/Interfaces/IWithIdBuilder.cs | 2 +- .../Interfaces/IWithIsApprovedBuilder.cs | 2 +- .../Interfaces/IWithIsContainerBuilder.cs | 2 +- .../Interfaces/IWithIsLockedOutBuilder.cs | 2 +- .../Builders/Interfaces/IWithKeyBuilder.cs | 2 +- .../Interfaces/IWithLastLoginDateBuilder.cs | 2 +- .../IWithLastPasswordChangeDateBuilder.cs | 2 +- .../Builders/Interfaces/IWithLevelBuilder.cs | 2 +- .../Builders/Interfaces/IWithLoginBuilder.cs | 2 +- .../Builders/Interfaces/IWithNameBuilder.cs | 2 +- .../IWithParentContentTypeBuilder.cs | 4 +- .../Interfaces/IWithParentIdBuilder.cs | 2 +- .../Builders/Interfaces/IWithPathBuilder.cs | 2 +- .../IWithPropertyTypeIdsIncrementingFrom.cs | 2 +- .../Interfaces/IWithPropertyValues.cs | 2 +- .../Interfaces/IWithSortOrderBuilder.cs | 2 +- .../Interfaces/IWithSupportsPublishing.cs | 4 +- .../Interfaces/IWithThumbnailBuilder.cs | 2 +- .../Interfaces/IWithTrashedBuilder.cs | 2 +- .../Interfaces/IWithUpdateDateBuilder.cs | 2 +- .../Builders/LanguageBuilder.cs | 8 +- .../Builders/MacroBuilder.cs | 10 +- .../Builders/MacroPropertyBuilder.cs | 8 +- .../Builders/MediaBuilder.cs | 12 +- .../Builders/MediaTypeBuilder.cs | 10 +- .../Builders/MemberBuilder.cs | 8 +- .../Builders/MemberGroupBuilder.cs | 6 +- .../Builders/MemberTypeBuilder.cs | 10 +- .../Builders/PropertyBuilder.cs | 6 +- .../Builders/PropertyGroupBuilder.cs | 6 +- .../Builders/PropertyTypeBuilder.cs | 12 +- .../Builders/RelationBuilder.cs | 6 +- .../Builders/RelationTypeBuilder.cs | 6 +- .../Builders/StylesheetBuilder.cs | 4 +- .../Builders/TemplateBuilder.cs | 10 +- .../Builders/TreeBuilder.cs | 8 +- .../Builders/UserBuilder.cs | 11 +- .../Builders/UserGroupBuilder.cs | 10 +- .../Builders/XmlDocumentBuilder.cs | 2 +- .../Extensions/ContentBaseExtensions.cs | 4 +- .../Published/PublishedSnapshotTestObjects.cs | 6 +- src/Umbraco.Tests.Common/TestClone.cs | 4 +- .../TestDefaultCultureAccessor.cs | 4 +- src/Umbraco.Tests.Common/TestHelperBase.cs | 35 +- .../TestHelpers/LogTestHelper.cs | 2 +- .../TestHelpers/MockedValueEditors.cs | 8 +- .../TestHelpers/SolidPublishedSnapshot.cs | 28 +- .../TestHelpers/StringNewlineExtensions.cs | 2 +- .../TestHelpers/Stubs/TestProfiler.cs | 4 +- .../TestHelpers/TestDatabase.cs | 2 +- .../TestHelpers/TestEnvironment.cs | 2 +- .../TestPublishedSnapshotAccessor.cs | 4 +- .../TestUmbracoContextAccessor.cs | 4 +- .../TestVariationContextAccessor.cs | 4 +- .../Testing/TestOptionAttributeBase.cs | 4 +- .../Testing/UmbracoTestAttribute.cs | 4 +- .../Testing/UmbracoTestOptions.cs | 2 +- .../Umbraco.Tests.Common.csproj | 1 + .../Cache/DistributedCacheBinderTests.cs | 17 +- .../ComponentRuntimeTests.cs | 24 +- .../UmbracoBuilderExtensions.cs | 26 +- .../Extensions/ServiceCollectionExtensions.cs | 4 +- .../GlobalSetupTeardown.cs | 2 +- .../Implementations/TestHelper.cs | 31 +- .../Implementations/TestHostingEnvironment.cs | 10 +- .../Implementations/TestLifetime.cs | 2 +- .../TestUmbracoBootPermissionChecker.cs | 4 +- ...reNotAmbiguousActionNameControllerTests.cs | 9 +- .../TestServerTest/TestAuthHandler.cs | 12 +- .../UmbracoTestServerTestBase.cs | 28 +- .../UmbracoWebApplicationFactory.cs | 2 +- .../Testing/BaseTestDatabase.cs | 7 +- .../Testing/ITestDatabase.cs | 2 +- .../Testing/IntegrationTestComponent.cs | 5 +- .../Testing/LocalDbTestDatabase.cs | 2 +- .../Testing/SqlDeveloperTestDatabase.cs | 3 +- .../Testing/TestDatabaseFactory.cs | 2 +- .../Testing/TestDatabaseSettings.cs | 2 +- .../Testing/TestDbMeta.cs | 2 +- .../TestUmbracoDatabaseFactoryProvider.cs | 4 +- .../Testing/UmbracoIntegrationTest.cs | 36 +- .../UmbracoIntegrationTestWithContent.cs | 8 +- .../Umbraco.Core/IO/FileSystemsTests.cs | 13 +- .../Umbraco.Core/IO/ShadowFileSystemTests.cs | 18 +- .../Mapping/ContentTypeModelMappingTests.cs | 23 +- .../Mapping/UmbracoMapperTests.cs | 23 +- .../Mapping/UserModelMapperTests.cs | 12 +- .../CreatedPackagesRepositoryTests.cs | 19 +- .../Packaging/PackageDataInstallationTests.cs | 31 +- .../Packaging/PackageInstallationTest.cs | 12 +- .../Services/SectionServiceTests.cs | 13 +- .../Migrations/AdvancedMigrationTests.cs | 10 +- .../Persistence/DatabaseBuilderTests.cs | 13 +- .../Persistence/LocksTests.cs | 9 +- .../NPocoTests/NPocoBulkInsertTests.cs | 10 +- .../Persistence/NPocoTests/NPocoFetchTests.cs | 6 +- .../Repositories/AuditRepositoryTest.cs | 12 +- .../Repositories/ContentTypeRepositoryTest.cs | 30 +- .../DataTypeDefinitionRepositoryTest.cs | 21 +- .../Repositories/DictionaryRepositoryTest.cs | 16 +- .../Repositories/DocumentRepositoryTest.cs | 29 +- .../Repositories/DomainRepositoryTest.cs | 15 +- .../Repositories/EntityRepositoryTest.cs | 20 +- .../Repositories/KeyValueRepositoryTests.cs | 10 +- .../Repositories/LanguageRepositoryTest.cs | 16 +- .../Repositories/MacroRepositoryTest.cs | 12 +- .../Repositories/MediaRepositoryTest.cs | 29 +- .../Repositories/MediaTypeRepositoryTest.cs | 20 +- .../Repositories/MemberRepositoryTest.cs | 25 +- .../Repositories/MemberTypeRepositoryTest.cs | 19 +- .../NotificationsRepositoryTest.cs | 14 +- .../PartialViewRepositoryTests.cs | 14 +- .../PublicAccessRepositoryTest.cs | 12 +- .../RedirectUrlRepositoryTests.cs | 14 +- .../Repositories/RelationRepositoryTest.cs | 22 +- .../RelationTypeRepositoryTest.cs | 14 +- .../Repositories/ScriptRepositoryTest.cs | 16 +- .../ServerRegistrationRepositoryTest.cs | 10 +- .../Repositories/SimilarNodeNameTests.cs | 2 +- .../Repositories/StylesheetRepositoryTest.cs | 17 +- .../Repositories/TagRepositoryTest.cs | 14 +- .../Repositories/TemplateRepositoryTest.cs | 33 +- .../Repositories/UserGroupRepositoryTest.cs | 18 +- .../Repositories/UserRepositoryTest.cs | 25 +- .../Persistence/SchemaValidationTest.cs | 8 +- .../Persistence/SqlServerTableByTableTest.cs | 8 +- .../SqlServerSyntaxProviderTests.cs | 9 +- .../Persistence/UnitOfWorkTests.cs | 8 +- .../Scoping/ScopeFileSystemsTests.cs | 17 +- .../Scoping/ScopeTests.cs | 9 +- .../Scoping/ScopedRepositoryTests.cs | 20 +- .../Services/AuditServiceTests.cs | 12 +- .../Services/CachedDataTypeServiceTests.cs | 12 +- .../Services/ConsentServiceTests.cs | 11 +- .../Services/ContentEventsTests.cs | 18 +- .../Services/ContentServiceEventTests.cs | 18 +- .../Services/ContentServicePerformanceTest.cs | 18 +- .../ContentServicePublishBranchTests.cs | 14 +- .../Services/ContentServiceTagsTests.cs | 20 +- .../Services/ContentServiceTests.cs | 26 +- .../Services/ContentTypeServiceTests.cs | 19 +- .../ContentTypeServiceVariantsTests.cs | 18 +- .../Services/DataTypeServiceTests.cs | 14 +- .../Services/EntityServiceTests.cs | 23 +- .../Services/EntityXmlSerializerTests.cs | 14 +- .../Services/ExternalLoginServiceTests.cs | 15 +- .../Services/FileServiceTests.cs | 11 +- .../Importing/ImportResources.Designer.cs | 4 +- .../Services/KeyValueServiceTests.cs | 8 +- .../Services/LocalizationServiceTests.cs | 14 +- .../Services/MacroServiceTests.cs | 16 +- .../Services/MediaServiceTests.cs | 18 +- .../Services/MediaTypeServiceTests.cs | 14 +- .../Services/MemberGroupServiceTests.cs | 14 +- .../Services/MemberServiceTests.cs | 30 +- .../Services/MemberTypeServiceTests.cs | 14 +- .../Services/PublicAccessServiceTests.cs | 14 +- .../Services/RedirectUrlServiceTests.cs | 14 +- .../Services/RelationServiceTests.cs | 15 +- .../Services/TagServiceTests.cs | 19 +- .../Services/ThreadSafetyServiceTest.cs | 17 +- .../Services/TrackRelationsTests.cs | 17 +- .../Services/UserServiceTests.cs | 23 +- .../Umbraco.Tests.Integration.csproj | 1 + .../BackOfficeAssetsControllerTests.cs | 6 +- .../Controllers/ContentControllerTests.cs | 21 +- .../TemplateQueryControllerTests.cs | 17 +- .../Controllers/UsersControllerTests.cs | 25 +- .../Filters/ContentModelValidatorTests.cs | 33 +- ...kOfficeServiceCollectionExtensionsTests.cs | 8 +- .../Routing/FrontEndRouteTests.cs | 22 +- .../AutoFixture/AutoMoqDataAttribute.cs | 20 +- .../AutoFixture/InlineAutoMoqDataAttribute.cs | 2 +- .../TestHelpers/BaseUsingSqlSyntax.cs | 8 +- .../TestHelpers/CompositionExtensions.cs | 4 +- .../Objects/TestUmbracoContextFactory.cs | 21 +- .../TestHelpers/TestHelper.cs | 48 +-- .../Models/ConnectionStringsTests.cs | 8 +- .../Umbraco.Core/AttemptTests.cs | 4 +- .../BackOfficeClaimsPrincipalFactoryTests.cs | 9 +- .../BackOffice/IdentityExtensionsTests.cs | 2 +- .../BackOffice/NopLookupNormalizerTests.cs | 2 +- .../UmbracoBackOfficeIdentityTests.cs | 7 +- .../Umbraco.Core/Cache/AppCacheTests.cs | 4 +- .../Cache/DeepCloneAppCacheTests.cs | 13 +- .../Cache/DefaultCachePolicyTests.cs | 6 +- .../Cache/DictionaryAppCacheTests.cs | 4 +- .../DistributedCache/DistributedCacheTests.cs | 10 +- .../Cache/FullDataSetCachePolicyTests.cs | 8 +- .../Cache/HttpRequestAppCacheTests.cs | 4 +- .../Umbraco.Core/Cache/ObjectAppCacheTests.cs | 4 +- .../Umbraco.Core/Cache/RefresherTests.cs | 6 +- .../Cache/RuntimeAppCacheTests.cs | 5 +- .../Cache/SingleItemsOnlyCachePolicyTests.cs | 6 +- .../ClaimsIdentityExtensionsTests.cs | 4 +- .../Collections/DeepCloneableListTests.cs | 6 +- .../Collections/OrderedHashSetTests.cs | 4 +- .../Umbraco.Core/Components/ComponentTests.cs | 24 +- .../Composing/CollectionBuildersTests.cs | 9 +- .../Composing/ComposingTestBase.cs | 12 +- .../Composing/CompositionTests.cs | 2 +- .../Composing/LazyCollectionBuilderTests.cs | 11 +- .../Composing/PackageActionCollectionTests.cs | 12 +- .../Umbraco.Core/Composing/TypeFinderTests.cs | 7 +- .../Umbraco.Core/Composing/TypeHelperTests.cs | 6 +- .../Composing/TypeLoaderExtensions.cs | 4 +- .../Umbraco.Core/Composing/TypeLoaderTests.cs | 18 +- .../HealthCheckSettingsExtensionsTests.cs | 7 +- .../Models/GlobalSettingsTests.cs | 10 +- .../ContentSettingsValidatorTests.cs | 6 +- .../GlobalSettingsValidatorTests.cs | 6 +- .../HealthChecksSettingsValidatorTests.cs | 6 +- .../RequestHandlerSettingsValidatorTests.cs | 6 +- .../Configuration/NCronTabParserTests.cs | 3 +- .../CoreThings/CallContextTests.cs | 6 +- .../CoreThings/ObjectExtensionsTests.cs | 9 +- .../CoreThings/TryConvertToTests.cs | 4 +- .../Umbraco.Core/CoreThings/UdiTests.cs | 11 +- .../Umbraco.Core/CoreXml/FrameworkXmlTests.cs | 2 +- .../CoreXml/NavigableNavigatorTests.cs | 8 +- .../CoreXml/RenamedRootNavigatorTests.cs | 5 +- .../Umbraco.Core/DelegateExtensionsTests.cs | 5 +- .../Umbraco.Core/EnumExtensionsTests.cs | 6 +- .../Umbraco.Core/EnumerableExtensionsTests.cs | 4 +- .../Events/EventAggregatorTests.cs | 8 +- .../ClaimsPrincipalExtensionsTests.cs | 6 +- .../Extensions/UriExtensionsTests.cs | 8 +- .../Umbraco.Core/GuidUtilsTests.cs | 4 +- .../Umbraco.Core/HashCodeCombinerTests.cs | 4 +- .../Umbraco.Core/HashGeneratorTests.cs | 4 +- .../Umbraco.Core/HexEncoderTests.cs | 4 +- .../IO/AbstractFileSystemTests.cs | 4 +- .../IO/PhysicalFileSystemTests.cs | 6 +- .../Manifest/ManifestContentAppTests.cs | 12 +- .../Manifest/ManifestParserTests.cs | 20 +- .../Umbraco.Core/Models/Collections/Item.cs | 6 +- .../Models/Collections/OrderItem.cs | 2 +- .../Collections/PropertyCollectionTests.cs | 10 +- .../Models/Collections/SimpleOrder.cs | 2 +- .../Models/ContentExtensionsTests.cs | 10 +- .../Models/ContentScheduleTests.cs | 4 +- .../Umbraco.Core/Models/ContentTests.cs | 22 +- .../Umbraco.Core/Models/ContentTypeTests.cs | 10 +- .../Umbraco.Core/Models/CultureImpactTests.cs | 4 +- .../Models/DeepCloneHelperTests.cs | 4 +- .../Models/DictionaryItemTests.cs | 6 +- .../Models/DictionaryTranslationTests.cs | 8 +- .../Models/DocumentEntityTests.cs | 8 +- .../Umbraco.Core/Models/LanguageTests.cs | 8 +- .../Umbraco.Core/Models/MacroTests.cs | 10 +- .../Umbraco.Core/Models/MemberGroupTests.cs | 8 +- .../Umbraco.Core/Models/MemberTests.cs | 8 +- .../Umbraco.Core/Models/PropertyGroupTests.cs | 8 +- .../Umbraco.Core/Models/PropertyTests.cs | 8 +- .../Umbraco.Core/Models/PropertyTypeTests.cs | 8 +- .../Umbraco.Core/Models/RangeTests.cs | 4 +- .../Umbraco.Core/Models/RelationTests.cs | 8 +- .../Umbraco.Core/Models/RelationTypeTests.cs | 8 +- .../Umbraco.Core/Models/StylesheetTests.cs | 6 +- .../Umbraco.Core/Models/TemplateTests.cs | 8 +- .../Models/UserExtensionsTests.cs | 12 +- .../Umbraco.Core/Models/UserTests.cs | 8 +- .../Umbraco.Core/Models/VariationTests.cs | 23 +- .../Packaging/PackageExtractionTests.cs | 4 +- .../BlockEditorComponentTests.cs | 6 +- .../BlockListPropertyValueConverterTests.cs | 16 +- .../PropertyEditors/ColorListValidatorTest.cs | 8 +- .../PropertyEditors/ConvertersTests.cs | 24 +- ...ataValueReferenceFactoryCollectionTests.cs | 20 +- .../EnsureUniqueValuesValidatorTest.cs | 8 +- .../MultiValuePropertyEditorTests.cs | 12 +- .../NestedContentPropertyComponentTests.cs | 2 +- .../PropertyEditorValueConverterTests.cs | 12 +- .../PropertyEditorValueEditorTests.cs | 13 +- .../Umbraco.Core/Published/ConvertersTests.cs | 18 +- .../Umbraco.Core/Published/ModelTypeTests.cs | 14 +- .../Published/NestedContentTests.cs | 22 +- .../Published/PropertyCacheLevelTests.cs | 18 +- .../Umbraco.Core/ReflectionTests.cs | 4 +- .../Umbraco.Core/ReflectionUtilitiesTests.cs | 3 +- .../Routing/SiteDomainHelperTests.cs | 5 +- .../Routing/UmbracoRequestPathsTests.cs | 10 +- .../Umbraco.Core/Routing/UriUtilityTests.cs | 8 +- .../Umbraco.Core/Routing/WebPathTests.cs | 4 +- .../Scoping/EventNameExtractorTests.cs | 6 +- .../Scoping/ScopeEventDispatcherTests.cs | 19 +- .../Security/ContentPermissionsTests.cs | 16 +- .../Security/LegacyPasswordSecurityTests.cs | 8 +- .../Security/MediaPermissionsTests.cs | 16 +- .../ContentTypeServiceExtensionsTests.cs | 14 +- .../ShortStringHelper/CmsHelperCasingTests.cs | 8 +- .../DefaultShortStringHelperTests.cs | 8 +- ...faultShortStringHelperTestsWithoutSetup.cs | 11 +- .../MockShortStringHelper.cs | 4 +- .../StringExtensionsTests.cs | 9 +- .../StringValidationTests.cs | 2 +- .../StylesheetHelperTests.cs | 6 +- .../Umbraco.Core/TaskHelperTests.cs | 8 +- .../Templates/HtmlImageSourceParserTests.cs | 20 +- .../Templates/HtmlLocalLinkParserTests.cs | 20 +- .../Umbraco.Core/Templates/ViewHelperTests.cs | 32 +- .../Umbraco.Core/VersionExtensionTests.cs | 4 +- .../Routing/PublishedRequestBuilderTests.cs | 11 +- .../Umbraco.Core/Xml/XmlHelperTests.cs | 8 +- .../Umbraco.Core/XmlExtensionsTests.cs | 4 +- .../BackOfficeLookupNormalizerTests.cs | 2 +- .../UserEditorAuthorizationHelperTests.cs | 19 +- .../UmbracoContentValueSetValidatorTests.cs | 8 +- .../HealthChecks/HealthCheckResultsTests.cs | 4 +- .../HealthCheckNotifierTests.cs | 18 +- .../HostedServices/KeepAliveTests.cs | 12 +- .../HostedServices/LogScrubberTests.cs | 15 +- .../ScheduledPublishingTests.cs | 10 +- .../InstructionProcessTaskTests.cs | 9 +- .../TouchServerTaskTests.cs | 10 +- .../HostedServices/TempFileCleanupTests.cs | 8 +- .../Logging/LogviewerTests.cs | 14 +- .../Mapping/MappingTests.cs | 8 +- .../Media/ImageSharpImageUrlGeneratorTests.cs | 5 +- .../Migrations/AlterMigrationTests.cs | 6 +- .../Migrations/MigrationPlanTests.cs | 11 +- .../Migrations/MigrationTests.cs | 6 +- .../Migrations/PostMigrationTests.cs | 7 +- .../Stubs/AlterUserTableMigrationStub.cs | 2 +- .../Stubs/DropForeignKeyMigrationStub.cs | 2 +- .../Migrations/Stubs/Dummy.cs | 4 +- .../Migrations/Stubs/FiveZeroMigration.cs | 2 +- .../Migrations/Stubs/FourElevenMigration.cs | 2 +- .../Migrations/Stubs/SixZeroMigration1.cs | 2 +- .../Migrations/Stubs/SixZeroMigration2.cs | 2 +- .../Models/DataTypeTests.cs | 8 +- .../Models/PathValidationTests.cs | 8 +- .../Persistence/BulkDataReaderTests.cs | 2 +- .../Persistence/DatabaseContextTests.cs | 2 +- .../Persistence/Mappers/ContentMapperTest.cs | 8 +- .../Mappers/ContentTypeMapperTest.cs | 4 +- .../Persistence/Mappers/DataTypeMapperTest.cs | 6 +- .../Mappers/DictionaryMapperTest.cs | 4 +- .../DictionaryTranslationMapperTest.cs | 4 +- .../Persistence/Mappers/LanguageMapperTest.cs | 4 +- .../Persistence/Mappers/MediaMapperTest.cs | 8 +- .../Mappers/PropertyGroupMapperTest.cs | 4 +- .../Mappers/PropertyTypeMapperTest.cs | 6 +- .../Persistence/Mappers/RelationMapperTest.cs | 4 +- .../Mappers/RelationTypeMapperTest.cs | 4 +- .../NPocoTests/NPocoSqlExtensionsTests.cs | 7 +- .../NPocoTests/NPocoSqlTemplateTests.cs | 5 +- .../Persistence/NPocoTests/NPocoSqlTests.cs | 7 +- .../ContentTypeRepositorySqlClausesTest.cs | 6 +- ...aTypeDefinitionRepositorySqlClausesTest.cs | 6 +- .../Persistence/Querying/ExpressionTests.cs | 16 +- .../Querying/MediaRepositorySqlClausesTest.cs | 6 +- .../MediaTypeRepositorySqlClausesTest.cs | 6 +- .../Persistence/Querying/QueryBuilderTests.cs | 7 +- .../Serialization/JsonNetSerializerTests.cs | 3 +- .../Services/AmbiguousEventTests.cs | 4 +- .../Services/LocalizedTextServiceTests.cs | 2 +- .../PropertyValidationServiceTests.cs | 15 +- .../BuilderTests.cs | 66 ++-- .../StringExtensions.cs | 2 +- .../UmbracoApplicationTests.cs | 6 +- .../SnapDictionaryTests.cs | 6 +- .../Builders/AllowedContentTypeDetail.cs | 2 +- .../Builders/ContentTypeBuilderTests.cs | 9 +- .../Builders/DataTypeBuilderTests.cs | 8 +- .../DocumentEntitySlimBuilderTests.cs | 8 +- .../Builders/LanguageBuilderTests.cs | 8 +- .../Builders/MacroBuilderTests.cs | 8 +- .../Builders/MediaTypeBuilderTests.cs | 10 +- .../Builders/MemberBuilderTests.cs | 9 +- .../Builders/MemberGroupBuilderTests.cs | 8 +- .../Builders/MemberTypeBuilderTests.cs | 10 +- .../Builders/PropertyBuilderTests.cs | 8 +- .../Builders/PropertyGroupBuilderTests.cs | 8 +- .../Builders/PropertyTypeBuilderTests.cs | 8 +- .../Builders/PropertyTypeDetail.cs | 2 +- .../Builders/RelationBuilderTests.cs | 8 +- .../Builders/RelationTypeBuilderTests.cs | 8 +- .../Builders/StylesheetBuilderTests.cs | 8 +- .../Builders/TemplateBuilderTests.cs | 8 +- .../Builders/TemplateDetail.cs | 2 +- .../Builders/UserBuilderTests.cs | 8 +- .../Builders/UserGroupBuilderTests.cs | 8 +- .../Builders/XmlDocumentBuilderTests.cs | 4 +- .../Umbraco.Tests.UnitTests.csproj | 1 + .../Authorization/AdminUsersHandlerTests.cs | 20 +- .../Authorization/BackOfficeHandlerTests.cs | 15 +- ...entPermissionsPublishBranchHandlerTests.cs | 20 +- ...ntentPermissionsQueryStringHandlerTests.cs | 17 +- .../ContentPermissionsResourceHandlerTests.cs | 16 +- .../DenyLocalLoginHandlerTests.cs | 6 +- ...MediaPermissionsQueryStringHandlerTests.cs | 16 +- .../MediaPermissionsResourceHandlerTests.cs | 14 +- .../Authorization/SectionHandlerTests.cs | 12 +- .../Authorization/TreeHandlerTests.cs | 18 +- .../Authorization/UserGroupHandlerTests.cs | 16 +- .../Controllers/UsersControllerTests.cs | 6 +- .../Extensions/ModelStateExtensionsTests.cs | 6 +- .../AppendUserModifiedHeaderAttributeTests.cs | 8 +- .../Filters/ContentModelValidatorTests.cs | 6 +- ...terAllowedOutgoingContentAttributeTests.cs | 24 +- .../OnlyLocalRequestsAttributeTests.cs | 4 +- .../Filters/ValidationFilterAttributeTests.cs | 4 +- .../Security/BackOfficeAntiforgeryTests.cs | 10 +- .../Security/BackOfficeCookieManagerTests.cs | 20 +- .../ContentModelSerializationTests.cs | 6 +- .../JsInitializationTests.cs | 4 +- .../ServerVariablesParserTests.cs | 6 +- .../HtmlHelperExtensionMethodsTests.cs | 2 +- .../Umbraco.Web.Common/FileNameTests.cs | 12 +- ...lidateUmbracoFormRouteStringFilterTests.cs | 8 +- ...noreRequiredAttributesResolverUnitTests.cs | 4 +- .../Umbraco.Web.Common/ImageCropperTest.cs | 9 +- .../Macros/MacroParserTests.cs | 3 +- .../Umbraco.Web.Common/Macros/MacroTests.cs | 7 +- .../ModelBinders/ContentModelBinderTests.cs | 17 +- .../HttpQueryStringModelBinderTests.cs | 4 +- .../Mvc/HtmlStringUtilitiesTests.cs | 4 +- .../Routing/BackOfficeAreaRoutesTests.cs | 22 +- .../EndpointRouteBuilderExtensionsTests.cs | 8 +- .../Routing/InstallAreaRoutesTests.cs | 12 +- .../Routing/PreviewRoutesTests.cs | 17 +- .../Routing/RoutableDocumentFilterTests.cs | 9 +- .../Routing/TestRouteBuilder.cs | 2 +- .../Security/EncryptionHelperTests.cs | 4 +- .../Views/UmbracoViewPageTests.cs | 13 +- .../AspNetCoreHostingEnvironmentTests.cs | 8 +- .../RenderNoContentControllerTests.cs | 14 +- .../Controllers/SurfaceControllerTests.cs | 32 +- .../Routing/ControllerActionSearcherTests.cs | 11 +- .../UmbracoRouteValueTransformerTests.cs | 25 +- .../Routing/UmbracoRouteValuesFactoryTests.cs | 22 +- .../Security/UmbracoWebsiteSecurityTests.cs | 18 +- .../PublishedContentCacheTests.cs | 15 +- .../PublishedMediaCacheTests.cs | 25 +- src/Umbraco.Tests/Issues/U9560.cs | 2 + .../DictionaryPublishedContent.cs | 11 +- .../LegacyXmlPublishedCache/DomainCache.cs | 9 +- .../BackgroundTaskRunner.cs | 8 +- .../IBackgroundTaskRunner.cs | 1 + .../LatchedBackgroundTaskBase.cs | 1 + .../LegacyXmlPublishedCache/PreviewContent.cs | 4 +- .../PublishedContentCache.cs | 15 +- .../PublishedMediaCache.cs | 17 +- .../PublishedMemberCache.cs | 10 +- .../PublishedSnapshot.cs | 3 + .../SafeXmlReaderWriter.cs | 1 + .../UmbracoContextCache.cs | 1 + .../XmlPublishedContent.cs | 8 +- .../XmlPublishedProperty.cs | 5 +- .../XmlPublishedSnapshotService.cs | 15 +- .../LegacyXmlPublishedCache/XmlStore.cs | 26 +- .../XmlStoreFilePersister.cs | 1 + src/Umbraco.Tests/Models/ContentXmlTest.cs | 10 +- src/Umbraco.Tests/Models/MediaXmlTest.cs | 14 +- .../FaultHandling/ConnectionRetryTest.cs | 1 + .../Persistence/Mappers/MapperTestBase.cs | 2 +- .../NPocoTests/PetaPocoCachesTest.cs | 10 +- src/Umbraco.Tests/Published/ModelTypeTests.cs | 2 +- .../PublishedContent/NuCacheChildrenTests.cs | 34 +- .../PublishedContent/NuCacheTests.cs | 35 +- .../PublishedContentDataTableTests.cs | 14 +- .../PublishedContentExtensionTests.cs | 10 +- .../PublishedContentLanguageVariantTests.cs | 15 +- .../PublishedContentMoreTests.cs | 18 +- .../PublishedContentSnapshotTestBase.cs | 29 +- .../PublishedContentTestBase.cs | 15 +- .../PublishedContent/PublishedContentTests.cs | 40 +-- .../PublishedContent/PublishedMediaTests.cs | 41 ++- .../PublishedContent/PublishedRouterTests.cs | 4 +- .../SolidPublishedSnapshot.cs | 26 +- .../Routing/BaseUrlProviderTest.cs | 8 +- .../Routing/ContentFinderByAliasTests.cs | 6 +- .../ContentFinderByAliasWithDomainsTests.cs | 6 +- .../Routing/ContentFinderByIdTests.cs | 4 +- .../ContentFinderByPageIdQueryTests.cs | 2 + .../ContentFinderByUrlAndTemplateTests.cs | 5 +- .../Routing/ContentFinderByUrlTests.cs | 4 +- .../ContentFinderByUrlWithDomainsTests.cs | 6 +- .../Routing/DomainsAndCulturesTests.cs | 4 +- .../Routing/GetContentUrlsTests.cs | 16 +- .../Routing/MediaUrlProviderTests.cs | 16 +- src/Umbraco.Tests/Routing/RoutesCacheTests.cs | 1 + ...oviderWithHideTopLevelNodeFromPathTests.cs | 13 +- ...derWithoutHideTopLevelNodeFromPathTests.cs | 10 +- src/Umbraco.Tests/Routing/UrlRoutesTests.cs | 6 +- .../Routing/UrlRoutingTestBase.cs | 8 +- .../Routing/UrlsProviderWithDomainsTests.cs | 16 +- .../Routing/UrlsWithNestedDomains.cs | 20 +- .../Scoping/ScopedNuCacheTests.cs | 35 +- src/Umbraco.Tests/Scoping/ScopedXmlTests.cs | 21 +- .../Services/TestWithSomeContentBase.cs | 1 + .../TestHelpers/BaseUsingSqlCeSyntax.cs | 13 +- src/Umbraco.Tests/TestHelpers/BaseWebTest.cs | 27 +- .../AuthenticateEverythingMiddleware.cs | 4 +- .../TestControllerActivator.cs | 1 + .../TestControllerActivatorBase.cs | 13 +- .../ControllerTesting/TestStartup.cs | 2 +- .../TestHelpers/Entities/MockedContent.cs | 4 + .../Entities/MockedContentTypes.cs | 4 +- .../TestHelpers/Entities/MockedEntity.cs | 2 +- .../TestHelpers/Entities/MockedMedia.cs | 5 +- .../TestHelpers/Entities/MockedMember.cs | 1 + .../Entities/MockedPropertyTypes.cs | 3 +- .../TestHelpers/Entities/MockedUser.cs | 4 +- .../TestHelpers/Entities/MockedUserGroup.cs | 4 +- .../Stubs/TestControllerFactory.cs | 7 +- .../TestHelpers/Stubs/TestLastChanceFinder.cs | 1 + .../Stubs/TestUserPasswordConfig.cs | 4 +- src/Umbraco.Tests/TestHelpers/TestHelper.cs | 43 +-- .../TestHelpers/TestObjects-Mocks.cs | 18 +- src/Umbraco.Tests/TestHelpers/TestObjects.cs | 12 +- .../TestHelpers/TestWithDatabaseBase.cs | 27 +- .../Testing/Objects/TestDataSource.cs | 7 +- src/Umbraco.Tests/Testing/UmbracoTestBase.cs | 68 ++-- .../UmbracoExamine/EventsTest.cs | 1 + .../UmbracoExamine/ExamineBaseTest.cs | 14 +- .../UmbracoExamine/IndexInitializer.cs | 19 +- src/Umbraco.Tests/UmbracoExamine/IndexTest.cs | 11 +- .../UmbracoExamine/SearchTests.cs | 10 +- .../AuthenticationControllerTests.cs | 7 +- .../Web/PublishedContentQueryTests.cs | 7 +- .../ActionResults/JavaScriptResult.cs | 2 +- .../ActionResults/UmbracoErrorResult.cs | 2 +- .../UmbracoNotificationSuccessResponse.cs | 5 +- .../Authorization/AdminUsersHandler.cs | 13 +- .../Authorization/AdminUsersRequirement.cs | 2 +- .../Authorization/BackOfficeHandler.cs | 7 +- .../Authorization/BackOfficeRequirement.cs | 2 +- .../ContentPermissionsPublishBranchHandler.cs | 15 +- ...tentPermissionsPublishBranchRequirement.cs | 2 +- .../ContentPermissionsQueryStringHandler.cs | 8 +- ...ontentPermissionsQueryStringRequirement.cs | 2 +- .../ContentPermissionsResource.cs | 4 +- .../ContentPermissionsResourceHandler.cs | 6 +- .../ContentPermissionsResourceRequirement.cs | 2 +- .../Authorization/DenyLocalLoginHandler.cs | 4 +- .../DenyLocalLoginRequirement.cs | 2 +- .../MediaPermissionsQueryStringHandler.cs | 8 +- .../MediaPermissionsQueryStringRequirement.cs | 2 +- .../Authorization/MediaPermissionsResource.cs | 4 +- .../MediaPermissionsResourceHandler.cs | 6 +- .../MediaPermissionsResourceRequirement.cs | 2 +- ...tSatisfyRequirementAuthorizationHandler.cs | 2 +- .../PermissionsQueryStringHandler.cs | 10 +- .../Authorization/SectionHandler.cs | 4 +- .../Authorization/SectionRequirement.cs | 2 +- .../Authorization/TreeHandler.cs | 8 +- .../Authorization/TreeRequirement.cs | 2 +- .../Authorization/UserGroupHandler.cs | 13 +- .../Authorization/UserGroupRequirement.cs | 2 +- .../Controllers/AuthenticationController.cs | 46 +-- .../Controllers/BackOfficeAssetsController.cs | 15 +- .../Controllers/BackOfficeController.cs | 46 ++- .../BackOfficeNotificationsController.cs | 4 +- .../Controllers/BackOfficeServerVariables.cs | 35 +- .../Controllers/CodeFileController.cs | 86 ++--- .../Controllers/ContentController.cs | 56 ++-- .../Controllers/ContentControllerBase.cs | 24 +- .../Controllers/ContentTypeController.cs | 35 +- .../Controllers/ContentTypeControllerBase.cs | 30 +- .../Controllers/CurrentUserController.cs | 37 ++- .../Controllers/DashboardController.cs | 43 ++- .../Controllers/DataTypeController.cs | 35 +- .../Controllers/DictionaryController.cs | 24 +- .../Controllers/ElementTypeController.cs | 10 +- .../Controllers/EntityController.cs | 40 ++- .../ExamineManagementController.cs | 15 +- .../Controllers/HelpController.cs | 11 +- .../Controllers/IconController.cs | 8 +- .../ImageUrlGeneratorController.cs | 17 +- .../Controllers/ImagesController.cs | 14 +- .../Controllers/KeepAliveController.cs | 13 +- .../Controllers/LanguageController.cs | 23 +- .../Controllers/LogController.cs | 36 +- .../Controllers/LogViewerController.cs | 13 +- .../Controllers/MacroRenderingController.cs | 25 +- .../Controllers/MacrosController.cs | 28 +- .../Controllers/MediaController.cs | 60 ++-- .../Controllers/MediaTypeController.cs | 28 +- .../Controllers/MemberController.cs | 45 +-- .../Controllers/MemberGroupController.cs | 18 +- .../Controllers/MemberTypeController.cs | 26 +- .../Controllers/PackageController.cs | 23 +- .../Controllers/PackageInstallController.cs | 35 +- ...erSwapControllerActionSelectorAttribute.cs | 3 +- .../Controllers/PreviewController.cs | 46 ++- .../PublishedSnapshotCacheStatusController.cs | 10 +- .../Controllers/PublishedStatusController.cs | 4 +- .../RedirectUrlManagementController.cs | 27 +- .../Controllers/RelationController.cs | 24 +- .../Controllers/RelationTypeController.cs | 22 +- .../Controllers/SectionController.cs | 22 +- .../Controllers/StylesheetController.cs | 12 +- .../Controllers/TemplateController.cs | 21 +- .../Controllers/TemplateQueryController.cs | 16 +- .../Controllers/TinyMceController.cs | 26 +- .../Controllers/TourController.cs | 23 +- .../UmbracoAuthorizedApiController.cs | 12 +- .../UmbracoAuthorizedJsonController.cs | 6 +- .../Controllers/UpdateCheckController.cs | 22 +- .../UserGroupEditorAuthorizationHelper.cs | 12 +- .../Controllers/UserGroupsController.cs | 28 +- .../Controllers/UsersController.cs | 47 +-- .../ServiceCollectionExtensions.cs | 22 +- .../UmbracoBuilderExtensions.cs | 42 ++- .../BackOfficeApplicationBuilderExtensions.cs | 6 +- .../Extensions/ControllerContextExtensions.cs | 5 +- .../HtmlHelperBackOfficeExtensions.cs | 27 +- .../Extensions/HttpContextExtensions.cs | 2 +- .../Extensions/ModelStateExtensions.cs | 7 +- .../Extensions/WebMappingProfiles.cs | 6 +- .../AppendCurrentEventMessagesAttribute.cs | 7 +- .../AppendUserModifiedHeaderAttribute.cs | 6 +- .../CheckIfUserTicketDataIsStaleAttribute.cs | 20 +- .../Filters/ContentModelValidator.cs | 14 +- .../Filters/ContentSaveModelValidator.cs | 9 +- .../Filters/ContentSaveValidationAttribute.cs | 25 +- .../Filters/DataTypeValidateAttribute.cs | 16 +- .../Filters/EditorModelEventManager.cs | 10 +- .../FileUploadCleanupFilterAttribute.cs | 6 +- .../FilterAllowedOutgoingContentAttribute.cs | 14 +- .../FilterAllowedOutgoingMediaAttribute.cs | 16 +- .../IsCurrentUserModelFilterAttribute.cs | 9 +- .../JsonCamelCaseFormatterAttribute.cs | 8 +- .../MediaItemSaveValidationAttribute.cs | 15 +- .../Filters/MediaSaveModelValidator.cs | 9 +- .../Filters/MemberSaveModelValidator.cs | 16 +- .../Filters/MemberSaveValidationAttribute.cs | 11 +- .../MinifyJavaScriptResultAttribute.cs | 8 +- .../Filters/OnlyLocalRequestsAttribute.cs | 2 +- .../OutgoingEditorModelEventAttribute.cs | 11 +- .../PrefixlessBodyModelValidatorAttribute.cs | 2 +- .../SetAngularAntiForgeryTokensAttribute.cs | 8 +- .../Filters/UmbracoRequireHttpsAttribute.cs | 4 +- .../Filters/UnhandledExceptionLoggerFilter.cs | 3 +- .../UnhandledExceptionLoggerMiddleware.cs | 3 +- .../Filters/UserGroupValidateAttribute.cs | 16 +- ...alidateAngularAntiForgeryTokenAttribute.cs | 7 +- .../Filters/ValidationFilterAttribute.cs | 2 +- .../HealthChecks/HealthCheckController.cs | 14 +- .../Mapping/CommonTreeNodeMapper.cs | 13 +- .../Mapping/ContentMapDefinition.cs | 29 +- .../Mapping/MediaMapDefinition.cs | 24 +- .../Mapping/MemberMapDefinition.cs | 15 +- ...iceExternalLoginProviderErrorMiddleware.cs | 8 +- .../PreviewAuthenticationMiddleware.cs | 4 +- .../ModelBinders/BlueprintItemBinder.cs | 15 +- .../ModelBinders/ContentItemBinder.cs | 19 +- .../ModelBinders/ContentModelBinderHelper.cs | 16 +- .../ModelBinders/FromJsonPathAttribute.cs | 5 +- .../ModelBinders/MediaItemBinder.cs | 18 +- .../ModelBinders/MemberBinder.cs | 20 +- .../Profiling/WebProfilingController.cs | 16 +- .../NestedContentController.cs | 16 +- .../RichTextPreValueController.cs | 16 +- .../PropertyEditors/RteEmbedController.cs | 12 +- .../PropertyEditors/TagsDataController.cs | 12 +- .../ContentPropertyValidationResult.cs | 8 +- .../Validation/ValidationResultConverter.cs | 14 +- .../Routing/BackOfficeAreaRoutes.cs | 22 +- .../Routing/PreviewRoutes.cs | 19 +- .../Security/AutoLinkSignInResult.cs | 2 +- .../Security/BackOfficeAntiforgery.cs | 13 +- .../BackOfficeAuthenticationBuilder.cs | 8 +- .../Security/BackOfficeCookieManager.cs | 9 +- .../BackOfficeExternalLoginProvider.cs | 2 +- .../BackOfficeExternalLoginProviderOptions.cs | 7 +- .../BackOfficeExternalLoginProviders.cs | 2 +- .../BackOfficeExternalLoginsBuilder.cs | 6 +- .../Security/BackOfficePasswordHasher.cs | 18 +- .../Security/BackOfficeSecureDataFormat.cs | 12 +- .../BackOfficeSecurityStampValidator.cs | 8 +- ...BackOfficeSecurityStampValidatorOptions.cs | 2 +- .../Security/BackOfficeSessionIdValidator.cs | 6 +- .../Security/BackOfficeSignInManager.cs | 23 +- .../Security/BackOfficeUserManagerAuditer.cs | 12 +- .../ConfigureBackOfficeCookieOptions.cs | 24 +- .../ConfigureBackOfficeIdentityOptions.cs | 8 +- ...BackOfficeSecurityStampValidatorOptions.cs | 6 +- .../Security/ExternalSignInAutoLinkOptions.cs | 10 +- .../Security/IBackOfficeAntiforgery.cs | 7 +- .../IBackOfficeExternalLoginProviders.cs | 7 +- .../Security/IBackOfficeSignInManager.cs | 8 +- .../Security/IBackOfficeTwoFactorOptions.cs | 2 +- .../NoopBackOfficeTwoFactorOptions.cs | 2 +- .../Security/PasswordChanger.cs | 12 +- .../Services/IconService.cs | 13 +- .../SignalR/IPreviewHub.cs | 2 +- .../SignalR/PreviewHub.cs | 2 +- .../SignalR/PreviewHubComponent.cs | 9 +- .../SignalR/PreviewHubComposer.cs | 7 +- .../Trees/ApplicationTreeController.cs | 20 +- .../Trees/ContentBlueprintTreeController.cs | 23 +- .../Trees/ContentTreeController.cs | 29 +- .../Trees/ContentTreeControllerBase.cs | 22 +- .../Trees/ContentTypeTreeController.cs | 24 +- .../Trees/DataTypeTreeController.cs | 26 +- .../Trees/DictionaryTreeController.cs | 21 +- .../Trees/FileSystemTreeController.cs | 17 +- .../Trees/FilesTreeController.cs | 14 +- .../Trees/ITreeNodeController.cs | 6 +- .../Trees/LanguageTreeController.cs | 15 +- .../Trees/LogViewerTreeController.cs | 15 +- .../Trees/MacrosTreeController.cs | 18 +- .../Trees/MediaTreeController.cs | 39 +-- .../Trees/MediaTypeTreeController.cs | 24 +- .../Trees/MemberGroupTreeController.cs | 15 +- .../Trees/MemberTreeController.cs | 27 +- .../MemberTypeAndGroupTreeControllerBase.cs | 16 +- .../Trees/MemberTypeTreeController.cs | 20 +- .../Trees/MenuRenderingEventArgs.cs | 4 +- .../Trees/PackagesTreeController.cs | 15 +- .../Trees/PartialViewMacrosTreeController.cs | 17 +- .../Trees/PartialViewsTreeController.cs | 18 +- .../Trees/RelationTypeTreeController.cs | 20 +- .../Trees/ScriptsTreeController.cs | 13 +- .../Trees/StylesheetsTreeController.cs | 12 +- .../Trees/TemplatesTreeController.cs | 25 +- .../Trees/TreeAttribute.cs | 4 +- .../Trees/TreeCollectionBuilder.cs | 8 +- .../Trees/TreeController.cs | 10 +- .../Trees/TreeControllerBase.cs | 22 +- .../Trees/TreeNodeRenderingEventArgs.cs | 4 +- .../Trees/TreeNodesRenderingEventArgs.cs | 4 +- .../Trees/TreeQueryStringParameters.cs | 2 +- .../Trees/TreeRenderingEventArgs.cs | 2 +- .../Trees/UrlHelperExtensions.cs | 7 +- .../Trees/UserTreeController.cs | 15 +- .../Umbraco.Web.BackOffice.csproj | 2 + .../PublishedContentNotFoundResult.cs | 5 +- .../ActionsResults/UmbracoProblemResult.cs | 2 +- .../ActionsResults/ValidationErrorResult.cs | 8 +- .../BackOfficeApplicationModelProvider.cs | 6 +- .../BackOfficeIdentityCultureConvention.cs | 6 +- ...racoApiBehaviorApplicationModelProvider.cs | 7 +- .../UmbracoJsonModelBinderConvention.cs | 4 +- .../VirtualPageApplicationModelProvider.cs | 6 +- .../VirtualPageConvention.cs | 6 +- .../AspNetCoreApplicationShutdownRegistry.cs | 6 +- .../AspNetCore/AspNetCoreBackOfficeInfo.cs | 6 +- .../AspNetCore/AspNetCoreCookieManager.cs | 3 +- .../AspNetCoreHostingEnvironment.cs | 13 +- .../AspNetCore/AspNetCoreIpResolver.cs | 4 +- .../AspNetCore/AspNetCoreMarchal.cs | 4 +- .../AspNetCore/AspNetCorePasswordHasher.cs | 5 +- .../AspNetCore/AspNetCoreRequestAccessor.cs | 8 +- .../AspNetCore/AspNetCoreSessionManager.cs | 5 +- .../AspNetCoreUmbracoApplicationLifetime.cs | 4 +- .../AspNetCore/AspNetCoreUserAgentProvider.cs | 4 +- .../AspNetCore/OptionsMonitorAdapter.cs | 2 +- .../Attributes/IsBackOfficeAttribute.cs | 7 +- .../Attributes/PluginControllerAttribute.cs | 6 +- .../UmbracoApiControllerAttribute.cs | 4 +- .../Authorization/AuthorizationPolicies.cs | 4 +- .../Authorization/FeatureAuthorizeHandler.cs | 4 +- .../FeatureAuthorizeRequirement.cs | 2 +- .../Constants/ViewConstants.cs | 2 +- .../Controllers/IRenderController.cs | 4 +- .../Controllers/IVirtualPageController.cs | 2 +- .../Controllers/PluginController.cs | 16 +- .../Controllers/ProxyViewDataFeature.cs | 2 +- .../PublishedRequestFilterAttribute.cs | 6 +- .../Controllers/RenderController.cs | 11 +- .../Controllers/UmbracoApiController.cs | 4 +- .../Controllers/UmbracoApiControllerBase.cs | 8 +- ...bracoApiControllerTypeCollectionBuilder.cs | 6 +- .../Controllers/UmbracoController.cs | 2 +- .../Controllers/UmbracoPageController.cs | 8 +- .../ServiceCollectionExtensions.cs | 6 +- .../UmbracoBuilderExtensions.cs | 85 ++--- .../UmbracoStartupFilter.cs | 2 +- .../Events/ActionExecutedEventArgs.cs | 2 +- .../HttpUmbracoFormRouteStringException.cs | 2 +- .../Extensions/ActionResultExtensions.cs | 2 - .../ApplicationBuilderExtensions.cs | 13 +- .../Extensions/BlockListTemplateExtensions.cs | 5 +- .../Extensions/CacheHelperExtensions.cs | 7 +- ...tionEndpointConventionBuilderExtensions.cs | 11 +- .../Extensions/ControllerExtensions.cs | 5 +- .../EndpointRouteBuilderExtensions.cs | 8 +- .../Extensions/FormCollectionExtensions.cs | 1 - .../Extensions/GridTemplateExtensions.cs | 2 +- .../Extensions/HttpContextExtensions.cs | 9 +- .../Extensions/HttpRequestExtensions.cs | 5 +- .../ImageCropperTemplateCoreExtensions.cs | 14 +- .../ImageCropperTemplateExtensions.cs | 6 +- .../Extensions/LinkGeneratorExtensions.cs | 16 +- .../Extensions/TypeLoaderExtensions.cs | 5 +- .../UmbracoCoreServiceCollectionExtensions.cs | 17 +- ...racoInstallApplicationBuilderExtensions.cs | 2 +- .../Extensions/UrlHelperExtensions.cs | 17 +- .../Extensions/ViewDataExtensions.cs | 8 +- .../AngularJsonOnlyConfigurationAttribute.cs | 4 +- .../Filters/BackOfficeCultureFilter.cs | 12 +- .../Filters/DisableBrowserCacheAttribute.cs | 2 +- ...tialViewMacroViewContextFilterAttribute.cs | 6 +- .../Filters/ExceptionViewModel.cs | 2 +- .../Filters/JsonDateTimeFormatAttribute.cs | 6 +- .../Filters/JsonExceptionFilterAttribute.cs | 4 +- .../Filters/ModelBindingExceptionAttribute.cs | 10 +- .../OutgoingNoHyphenGuidFormatAttribute.cs | 9 +- .../Filters/StatusCodeResultAttribute.cs | 5 +- .../UmbracoMemberAuthorizeAttribute.cs | 2 +- .../Filters/UmbracoMemberAuthorizeFilter.cs | 9 +- .../UmbracoUserTimeoutFilterAttribute.cs | 2 +- .../UmbracoVirtualPageFilterAttribute.cs | 10 +- ...ValidateUmbracoFormRouteStringAttribute.cs | 10 +- .../AngularJsonMediaTypeFormatter.cs | 2 +- .../IgnoreRequiredAttributesResolver.cs | 2 +- .../Install/InstallApiController.cs | 19 +- .../Install/InstallAreaRoutes.cs | 31 +- .../Install/InstallAuthorizeAttribute.cs | 6 +- .../Install/InstallController.cs | 29 +- ...mbracoBackOfficeIdentityCultureProvider.cs | 9 +- .../UmbracoPublishedContentCultureProvider.cs | 8 +- .../UmbracoRequestLocalizationOptions.cs | 4 +- .../Macros/MacroRenderer.cs | 27 +- .../Macros/MemberUserKeyProvider.cs | 4 +- .../Macros/PartialViewMacroEngine.cs | 12 +- .../Macros/PartialViewMacroPage.cs | 6 +- .../Macros/PartialViewMacroViewComponent.cs | 14 +- .../Middleware/BootFailedMiddleware.cs | 10 +- .../UmbracoRequestLoggingMiddleware.cs | 9 +- .../Middleware/UmbracoRequestMiddleware.cs | 16 +- .../ModelBinders/ContentModelBinder.cs | 13 +- .../ContentModelBinderProvider.cs | 8 +- .../HttpQueryStringModelBinder.cs | 3 +- .../ModelBinders/ModelBindingError.cs | 4 +- .../ModelBinders/ModelBindingException.cs | 2 +- .../ModelBinders/UmbracoJsonModelBinder.cs | 4 +- .../Mvc/HtmlStringUtilities.cs | 2 +- .../Mvc/UmbracoMvcConfigureOptions.cs | 6 +- .../UmbracoPluginPhysicalFileProvider.cs | 6 +- .../Profiler/InitializeWebProfiling.cs | 6 +- .../Profiler/WebProfiler.cs | 4 +- .../Profiler/WebProfilerHtml.cs | 4 +- ...assSoThatPublishedModelsNamespaceExists.cs | 2 +- .../CustomRouteContentFinderDelegate.cs | 5 +- src/Umbraco.Web.Common/Routing/IAreaRoutes.cs | 2 +- .../Routing/IRoutableDocumentFilter.cs | 4 +- .../Routing/PublicAccessChecker.cs | 4 +- .../Routing/RoutableDocumentFilter.cs | 11 +- .../Routing/UmbracoRouteValues.cs | 8 +- .../RuntimeMinification/SmidgeComposer.cs | 10 +- .../SmidgeHelperAccessor.cs | 2 +- .../RuntimeMinification/SmidgeNuglifyJs.cs | 2 +- .../SmidgeRuntimeMinifier.cs | 11 +- .../Security/BackOfficeUserManager.cs | 15 +- .../Security/BackofficeSecurity.cs | 11 +- .../Security/BackofficeSecurityFactory.cs | 8 +- .../Security/EncryptionHelper.cs | 7 +- .../Templates/TemplateRenderer.cs | 14 +- .../Umbraco.Web.Common.csproj | 2 + .../UmbracoContext/UmbracoContext.cs | 20 +- .../UmbracoContext/UmbracoContextFactory.cs | 16 +- src/Umbraco.Web.Common/UmbracoHelper.cs | 16 +- .../Views/UmbracoViewPage.cs | 19 +- src/Umbraco.Web.UI.NetCore/Program.cs | 3 +- src/Umbraco.Web.UI.NetCore/Startup.cs | 9 +- .../Umbraco.Web.UI.NetCore.csproj | 2 + .../Views/Partials/blocklist/default.cshtml | 2 +- .../Partials/grid/bootstrap3-fluid.cshtml | 2 +- .../Views/Partials/grid/bootstrap3.cshtml | 2 +- .../Views/Partials/grid/editors/embed.cshtml | 4 +- .../Views/Partials/grid/editors/macro.cshtml | 2 +- .../Views/Partials/grid/editors/media.cshtml | 2 +- .../Views/Partials/grid/editors/rte.cshtml | 2 +- .../Views/_ViewImports.cshtml | 4 +- .../Templates/Breadcrumb.cshtml | 6 +- .../Templates/EditProfile.cshtml | 6 +- .../PartialViewMacros/Templates/Empty.cshtml | 2 +- .../Templates/Gallery.cshtml | 10 +- .../ListAncestorsFromCurrentPage.cshtml | 6 +- .../ListChildPagesFromChangeableSource.cshtml | 9 +- .../ListChildPagesFromCurrentPage.cshtml | 9 +- .../ListChildPagesOrderedByDate.cshtml | 9 +- .../ListChildPagesOrderedByName.cshtml | 9 +- .../ListChildPagesOrderedByProperty.cshtml | 9 +- .../ListChildPagesWithDoctype.cshtml | 9 +- .../ListDescendantsFromCurrentPage.cshtml | 9 +- .../ListImagesFromMediaFolder.cshtml | 6 +- .../PartialViewMacros/Templates/Login.cshtml | 6 +- .../Templates/LoginStatus.cshtml | 8 +- .../Templates/MultinodeTree-picker.cshtml | 8 +- .../Templates/Navigation.cshtml | 9 +- .../Templates/RegisterMember.cshtml | 6 +- .../Templates/SiteMap.cshtml | 9 +- .../UmbracoBackOffice/AuthorizeUpgrade.cshtml | 14 +- .../umbraco/UmbracoBackOffice/Default.cshtml | 18 +- .../umbraco/UmbracoBackOffice/Preview.cshtml | 18 +- .../umbraco/UmbracoWebsite/NoNodes.cshtml | 2 +- .../RedirectToUmbracoPageResult.cs | 13 +- .../RedirectToUmbracoUrlResult.cs | 4 +- .../ActionResults/UmbracoPageResult.cs | 11 +- .../SurfaceControllerTypeCollection.cs | 4 +- .../SurfaceControllerTypeCollectionBuilder.cs | 6 +- .../Controllers/IUmbracoRenderingDefaults.cs | 2 +- .../Controllers/RenderNoContentController.cs | 9 +- .../Controllers/SurfaceController.cs | 21 +- .../Controllers/UmbLoginController.cs | 19 +- .../Controllers/UmbLoginStatusController.cs | 19 +- .../Controllers/UmbProfileController.cs | 19 +- .../Controllers/UmbRegisterController.cs | 19 +- .../Controllers/UmbracoRenderingDefaults.cs | 4 +- .../UmbracoBuilderExtensions.cs | 16 +- .../Extensions/HtmlHelperRenderExtensions.cs | 25 +- .../Extensions/LinkGeneratorExtensions.cs | 5 +- .../Extensions/PublishedContentExtensions.cs | 24 +- .../Extensions/TypeLoaderExtensions.cs | 6 +- ...racoWebsiteApplicationBuilderExtensions.cs | 2 +- .../Models/NoNodesViewModel.cs | 2 +- .../Routing/ControllerActionSearcher.cs | 8 +- .../Routing/FrontEndRoutes.cs | 25 +- .../Routing/IControllerActionSearcher.cs | 2 +- .../Routing/IUmbracoRouteValuesFactory.cs | 7 +- .../Routing/UmbracoRouteValueTransformer.cs | 23 +- .../Routing/UmbracoRouteValuesFactory.cs | 20 +- .../Security/UmbracoWebsiteSecurity.cs | 16 +- .../Umbraco.Web.Website.csproj | 2 + .../PluginRazorViewEngineOptionsSetup.cs | 11 +- .../ViewEngines/ProfilingViewEngine.cs | 7 +- ...ingViewEngineWrapperMvcViewOptionsSetup.cs | 4 +- .../RenderRazorViewEngineOptionsSetup.cs | 2 +- .../AspNetApplicationShutdownRegistry.cs | 4 +- .../AspNet/AspNetBackOfficeInfo.cs | 11 +- src/Umbraco.Web/AspNet/AspNetCookieManager.cs | 1 + .../AspNet/AspNetHostingEnvironment.cs | 10 +- src/Umbraco.Web/AspNet/AspNetIpResolver.cs | 2 +- .../AspNet/AspNetPasswordHasher.cs | 4 +- .../AspNet/AspNetSessionManager.cs | 3 +- .../AspNetUmbracoApplicationLifetime.cs | 2 +- .../AspNet/AspNetUserAgentProvider.cs | 2 +- src/Umbraco.Web/AspNet/FrameworkMarchal.cs | 2 +- src/Umbraco.Web/Composing/Current.cs | 50 ++- .../HttpContextUmbracoContextAccessor.cs | 2 + src/Umbraco.Web/HttpCookieExtensions.cs | 6 +- src/Umbraco.Web/HttpRequestExtensions.cs | 8 +- .../Macros/MemberUserKeyProvider.cs | 1 + src/Umbraco.Web/ModelStateExtensions.cs | 2 +- .../Membership/UmbracoMembershipMember.cs | 4 +- .../EnsurePublishedContentRequestAttribute.cs | 0 .../Mvc/MemberAuthorizeAttribute.cs | 4 +- src/Umbraco.Web/Mvc/PluginController.cs | 13 +- src/Umbraco.Web/Mvc/RenderRouteHandler.cs | 2 - src/Umbraco.Web/Mvc/RouteDefinition.cs | 1 + src/Umbraco.Web/Mvc/SurfaceController.cs | 7 +- .../Mvc/UmbracoVirtualNodeByIdRouteHandler.cs | 3 +- .../UmbracoVirtualNodeByUdiRouteHandler.cs | 4 +- .../Mvc/UmbracoVirtualNodeRouteHandler.cs | 5 +- .../Mvc/ViewDataDictionaryExtensions.cs | 2 +- .../AspNetUmbracoBootPermissionChecker.cs | 1 + src/Umbraco.Web/Runtime/WebFinalComponent.cs | 2 +- src/Umbraco.Web/Runtime/WebFinalComposer.cs | 5 +- ...eDirectoryBackOfficeUserPasswordChecker.cs | 2 +- .../AuthenticationOptionsExtensions.cs | 1 - .../Security/BackofficeSecurity.cs | 4 +- src/Umbraco.Web/Security/MembershipHelper.cs | 20 +- .../Security/MembershipProviderBase.cs | 10 +- .../Security/MembershipProviderExtensions.cs | 5 +- .../Providers/MembersMembershipProvider.cs | 21 +- .../Security/Providers/MembersRoleProvider.cs | 3 + .../Providers/UmbracoMembershipProvider.cs | 16 +- .../Security/PublicAccessChecker.cs | 9 +- .../Security/UmbracoMembershipProviderBase.cs | 3 +- src/Umbraco.Web/TypeLoaderExtensions.cs | 2 +- src/Umbraco.Web/UmbracoApplication.cs | 5 +- src/Umbraco.Web/UmbracoApplicationBase.cs | 25 +- src/Umbraco.Web/UmbracoBuilderExtensions.cs | 5 +- src/Umbraco.Web/UmbracoContext.cs | 11 +- src/Umbraco.Web/UmbracoContextFactory.cs | 11 +- .../UmbracoDbProviderFactoryCreator.cs | 3 +- src/Umbraco.Web/UmbracoHelper.cs | 17 +- src/Umbraco.Web/UmbracoHttpHandler.cs | 4 + src/Umbraco.Web/UmbracoWebService.cs | 6 +- src/Umbraco.Web/UrlHelperExtensions.cs | 11 +- src/Umbraco.Web/UrlHelperRenderExtensions.cs | 9 +- .../Filters/FeatureAuthorizeAttribute.cs | 2 +- .../WebApi/HttpActionContextExtensions.cs | 1 - .../WebApi/HttpRequestMessageExtensions.cs | 1 + .../WebApi/MemberAuthorizeAttribute.cs | 4 +- .../WebApi/NamespaceHttpControllerSelector.cs | 2 +- .../ParameterSwapControllerActionSelector.cs | 3 +- .../WebApi/UmbracoApiController.cs | 12 +- .../WebApi/UmbracoApiControllerBase.cs | 12 +- ...bracoApiControllerTypeCollectionBuilder.cs | 3 +- .../WebApi/UmbracoAuthorizeAttribute.cs | 3 + .../WebApi/UmbracoAuthorizedApiController.cs | 12 +- 3188 files changed, 12023 insertions(+), 11215 deletions(-) rename src/Umbraco.Core/{ => Extensions}/AssemblyExtensions.cs (96%) rename src/Umbraco.Core/{ => Extensions}/ClaimsIdentityExtensions.cs (96%) rename src/Umbraco.Core/{ => Extensions}/ConfigConnectionStringExtensions.cs (89%) rename src/Umbraco.Core/{ => Extensions}/ContentExtensions.cs (98%) rename src/Umbraco.Core/{ => Extensions}/ContentVariationExtensions.cs (98%) rename src/Umbraco.Core/{CacheHelperExtensions.cs => Extensions/CoreCacheHelperExtensions.cs} (74%) rename src/Umbraco.Core/{ => Extensions}/DataTableExtensions.cs (97%) rename src/Umbraco.Core/{ => Extensions}/DateTimeExtensions.cs (92%) rename src/Umbraco.Core/{ => Extensions}/DecimalExtensions.cs (89%) rename src/Umbraco.Core/{ => Extensions}/DelegateExtensions.cs (91%) rename src/Umbraco.Core/{ => Extensions}/DictionaryExtensions.cs (99%) rename src/Umbraco.Core/{ => Extensions}/EnumExtensions.cs (93%) rename src/Umbraco.Core/{ => Extensions}/EnumerableExtensions.cs (98%) rename src/Umbraco.Core/{ => Extensions}/ExpressionExtensions.cs (89%) rename src/Umbraco.Core/{ => Extensions}/IfExtensions.cs (95%) rename src/Umbraco.Core/{ => Extensions}/IntExtensions.cs (88%) rename src/Umbraco.Core/{ => Extensions}/KeyValuePairExtensions.cs (81%) rename src/Umbraco.Core/{ => Extensions}/MediaTypeExtensions.cs (70%) rename src/Umbraco.Core/{ => Extensions}/NameValueCollectionExtensions.cs (92%) rename src/Umbraco.Core/{ => Extensions}/ObjectExtensions.cs (99%) rename src/Umbraco.Core/{ => Extensions}/PasswordConfigurationExtensions.cs (90%) rename src/Umbraco.Core/{ => Extensions}/PublishedContentExtensions.cs (99%) rename src/Umbraco.Core/{ => Extensions}/PublishedElementExtensions.cs (97%) rename src/Umbraco.Core/{ => Extensions}/PublishedModelFactoryExtensions.cs (92%) rename src/Umbraco.Core/{ => Extensions}/PublishedPropertyExtension.cs (94%) rename src/Umbraco.Core/{ => Extensions}/SemVersionExtensions.cs (65%) rename src/Umbraco.Core/{ => Extensions}/StringExtensions.cs (99%) rename src/Umbraco.Core/{ => Extensions}/ThreadExtensions.cs (95%) rename src/Umbraco.Core/{ => Extensions}/TypeExtensions.cs (99%) rename src/Umbraco.Core/{ => Extensions}/TypeLoaderExtensions.cs (77%) rename src/Umbraco.Core/{ => Extensions}/UdiGetterExtensions.cs (98%) rename src/Umbraco.Core/{ => Extensions}/UmbracoContextAccessorExtensions.cs (82%) rename src/Umbraco.Core/{ => Extensions}/UmbracoContextExtensions.cs (74%) rename src/Umbraco.Core/{ => Extensions}/UriExtensions.cs (97%) rename src/Umbraco.Core/{ => Extensions}/VersionExtensions.cs (94%) rename src/Umbraco.Core/{ => Extensions}/WaitHandleExtensions.cs (94%) rename src/Umbraco.Core/{ => Extensions}/XmlExtensions.cs (99%) rename src/Umbraco.Core/Models/{EntityExtensions.cs => HaveAdditionalDataExtensions.cs} (72%) rename src/Umbraco.Examine.Lucene/{ => Extensions}/ExamineExtensions.cs (97%) create mode 100644 src/Umbraco.Web/Mvc/EnsurePublishedContentRequestAttribute.cs diff --git a/src/Umbraco.Core/Actions/ActionAssignDomain.cs b/src/Umbraco.Core/Actions/ActionAssignDomain.cs index 7dc3668e5d..e03e2de81c 100644 --- a/src/Umbraco.Core/Actions/ActionAssignDomain.cs +++ b/src/Umbraco.Core/Actions/ActionAssignDomain.cs @@ -1,8 +1,4 @@ -using Umbraco.Core; -using Umbraco.Core.CodeAnnotations; - - -namespace Umbraco.Web.Actions +namespace Umbraco.Cms.Core.Actions { /// /// This action is invoked when a domain is being assigned to a document diff --git a/src/Umbraco.Core/Actions/ActionBrowse.cs b/src/Umbraco.Core/Actions/ActionBrowse.cs index 64882c142a..2716d17e81 100644 --- a/src/Umbraco.Core/Actions/ActionBrowse.cs +++ b/src/Umbraco.Core/Actions/ActionBrowse.cs @@ -1,8 +1,4 @@ -using Umbraco.Core; -using Umbraco.Core.CodeAnnotations; - - -namespace Umbraco.Web.Actions +namespace Umbraco.Cms.Core.Actions { /// /// This action is used as a security constraint that grants a user the ability to view nodes in a tree diff --git a/src/Umbraco.Core/Actions/ActionChangeDocType.cs b/src/Umbraco.Core/Actions/ActionChangeDocType.cs index 60f6d52d3f..9372524e13 100644 --- a/src/Umbraco.Core/Actions/ActionChangeDocType.cs +++ b/src/Umbraco.Core/Actions/ActionChangeDocType.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.Actions +namespace Umbraco.Cms.Core.Actions { // TODO: Add this back in when we support this functionality again ///// diff --git a/src/Umbraco.Core/Actions/ActionCollection.cs b/src/Umbraco.Core/Actions/ActionCollection.cs index 1ba60317f5..3987e89305 100644 --- a/src/Umbraco.Core/Actions/ActionCollection.cs +++ b/src/Umbraco.Core/Actions/ActionCollection.cs @@ -1,11 +1,10 @@ using System.Collections.Generic; using System.Linq; -using Umbraco.Core; -using Umbraco.Core.Composing; -using Umbraco.Core.Models.Membership; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Extensions; - -namespace Umbraco.Web.Actions +namespace Umbraco.Cms.Core.Actions { public class ActionCollection : BuilderCollectionBase { diff --git a/src/Umbraco.Core/Actions/ActionCollectionBuilder.cs b/src/Umbraco.Core/Actions/ActionCollectionBuilder.cs index 1fe3008610..92ba18331a 100644 --- a/src/Umbraco.Core/Actions/ActionCollectionBuilder.cs +++ b/src/Umbraco.Core/Actions/ActionCollectionBuilder.cs @@ -1,8 +1,9 @@ using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core.Composing; -namespace Umbraco.Web.Actions +using Umbraco.Cms.Core.Composing; + +namespace Umbraco.Cms.Core.Actions { public class ActionCollectionBuilder : LazyCollectionBuilderBase { diff --git a/src/Umbraco.Core/Actions/ActionCopy.cs b/src/Umbraco.Core/Actions/ActionCopy.cs index a568d0aa37..a88d725f96 100644 --- a/src/Umbraco.Core/Actions/ActionCopy.cs +++ b/src/Umbraco.Core/Actions/ActionCopy.cs @@ -1,6 +1,4 @@ -using Umbraco.Core; - -namespace Umbraco.Web.Actions +namespace Umbraco.Cms.Core.Actions { /// /// This action is invoked when copying a document, media, member diff --git a/src/Umbraco.Core/Actions/ActionCreateBlueprintFromContent.cs b/src/Umbraco.Core/Actions/ActionCreateBlueprintFromContent.cs index 0a46393a81..7e9035d6d0 100644 --- a/src/Umbraco.Core/Actions/ActionCreateBlueprintFromContent.cs +++ b/src/Umbraco.Core/Actions/ActionCreateBlueprintFromContent.cs @@ -1,8 +1,4 @@ -using Umbraco.Core; -using Umbraco.Core.CodeAnnotations; - - -namespace Umbraco.Web.Actions +namespace Umbraco.Cms.Core.Actions { public class ActionCreateBlueprintFromContent : IAction { diff --git a/src/Umbraco.Core/Actions/ActionDelete.cs b/src/Umbraco.Core/Actions/ActionDelete.cs index 470f1453d6..4fa77d7528 100644 --- a/src/Umbraco.Core/Actions/ActionDelete.cs +++ b/src/Umbraco.Core/Actions/ActionDelete.cs @@ -1,6 +1,4 @@ -using Umbraco.Core; - -namespace Umbraco.Web.Actions +namespace Umbraco.Cms.Core.Actions { /// /// This action is invoked when a document, media, member is deleted diff --git a/src/Umbraco.Core/Actions/ActionMove.cs b/src/Umbraco.Core/Actions/ActionMove.cs index 74c783aab9..943ad98c9f 100644 --- a/src/Umbraco.Core/Actions/ActionMove.cs +++ b/src/Umbraco.Core/Actions/ActionMove.cs @@ -1,6 +1,4 @@ -using Umbraco.Core; - -namespace Umbraco.Web.Actions +namespace Umbraco.Cms.Core.Actions { /// /// This action is invoked upon creation of a document, media, member diff --git a/src/Umbraco.Core/Actions/ActionNew.cs b/src/Umbraco.Core/Actions/ActionNew.cs index ab208a79a3..2a11620483 100644 --- a/src/Umbraco.Core/Actions/ActionNew.cs +++ b/src/Umbraco.Core/Actions/ActionNew.cs @@ -1,6 +1,4 @@ -using Umbraco.Core; - -namespace Umbraco.Web.Actions +namespace Umbraco.Cms.Core.Actions { /// /// This action is invoked upon creation of a document diff --git a/src/Umbraco.Core/Actions/ActionProtect.cs b/src/Umbraco.Core/Actions/ActionProtect.cs index dc6c7ff4e7..4108853a4c 100644 --- a/src/Umbraco.Core/Actions/ActionProtect.cs +++ b/src/Umbraco.Core/Actions/ActionProtect.cs @@ -1,6 +1,4 @@ -using Umbraco.Core; - -namespace Umbraco.Web.Actions +namespace Umbraco.Cms.Core.Actions { /// /// This action is invoked when a document is protected or unprotected diff --git a/src/Umbraco.Core/Actions/ActionPublish.cs b/src/Umbraco.Core/Actions/ActionPublish.cs index 5c9ce08c35..ef2bd23cbb 100644 --- a/src/Umbraco.Core/Actions/ActionPublish.cs +++ b/src/Umbraco.Core/Actions/ActionPublish.cs @@ -1,8 +1,4 @@ -using Umbraco.Core; -using Umbraco.Core.CodeAnnotations; - - -namespace Umbraco.Web.Actions +namespace Umbraco.Cms.Core.Actions { /// /// This action is invoked when a document is being published diff --git a/src/Umbraco.Core/Actions/ActionRestore.cs b/src/Umbraco.Core/Actions/ActionRestore.cs index aa309131f2..9f90dc92f1 100644 --- a/src/Umbraco.Core/Actions/ActionRestore.cs +++ b/src/Umbraco.Core/Actions/ActionRestore.cs @@ -1,6 +1,6 @@  -namespace Umbraco.Web.Actions +namespace Umbraco.Cms.Core.Actions { /// /// This action is invoked when the content/media item is to be restored from the recycle bin diff --git a/src/Umbraco.Core/Actions/ActionRights.cs b/src/Umbraco.Core/Actions/ActionRights.cs index dd021d03c0..ed860fe2ea 100644 --- a/src/Umbraco.Core/Actions/ActionRights.cs +++ b/src/Umbraco.Core/Actions/ActionRights.cs @@ -1,6 +1,4 @@ -using Umbraco.Core; - -namespace Umbraco.Web.Actions +namespace Umbraco.Cms.Core.Actions { /// /// This action is invoked when rights are changed on a document diff --git a/src/Umbraco.Core/Actions/ActionRollback.cs b/src/Umbraco.Core/Actions/ActionRollback.cs index 18d9efdb8d..55aac4cab9 100644 --- a/src/Umbraco.Core/Actions/ActionRollback.cs +++ b/src/Umbraco.Core/Actions/ActionRollback.cs @@ -1,6 +1,4 @@ -using Umbraco.Core; - -namespace Umbraco.Web.Actions +namespace Umbraco.Cms.Core.Actions { /// /// This action is invoked when copying a document is being rolled back diff --git a/src/Umbraco.Core/Actions/ActionSort.cs b/src/Umbraco.Core/Actions/ActionSort.cs index 9c463bc18e..e4df6246b7 100644 --- a/src/Umbraco.Core/Actions/ActionSort.cs +++ b/src/Umbraco.Core/Actions/ActionSort.cs @@ -1,8 +1,4 @@ -using Umbraco.Core; -using Umbraco.Core.CodeAnnotations; - - -namespace Umbraco.Web.Actions +namespace Umbraco.Cms.Core.Actions { /// /// This action is invoked when children to a document, media, member is being sorted diff --git a/src/Umbraco.Core/Actions/ActionToPublish.cs b/src/Umbraco.Core/Actions/ActionToPublish.cs index 61475c81f5..9b263b57bf 100644 --- a/src/Umbraco.Core/Actions/ActionToPublish.cs +++ b/src/Umbraco.Core/Actions/ActionToPublish.cs @@ -1,6 +1,4 @@ -using Umbraco.Core; - -namespace Umbraco.Web.Actions +namespace Umbraco.Cms.Core.Actions { /// /// This action is invoked when children to a document is being sent to published (by an editor without publishrights) diff --git a/src/Umbraco.Core/Actions/ActionUnpublish.cs b/src/Umbraco.Core/Actions/ActionUnpublish.cs index f9270d926b..7d70b35937 100644 --- a/src/Umbraco.Core/Actions/ActionUnpublish.cs +++ b/src/Umbraco.Core/Actions/ActionUnpublish.cs @@ -1,8 +1,4 @@ -using Umbraco.Core; -using Umbraco.Core.CodeAnnotations; - - -namespace Umbraco.Web.Actions +namespace Umbraco.Cms.Core.Actions { /// diff --git a/src/Umbraco.Core/Actions/ActionUpdate.cs b/src/Umbraco.Core/Actions/ActionUpdate.cs index 2241c75955..0b77c84bdb 100644 --- a/src/Umbraco.Core/Actions/ActionUpdate.cs +++ b/src/Umbraco.Core/Actions/ActionUpdate.cs @@ -1,6 +1,4 @@ -using Umbraco.Core; - -namespace Umbraco.Web.Actions +namespace Umbraco.Cms.Core.Actions { /// /// This action is invoked when copying a document or media diff --git a/src/Umbraco.Core/Actions/IAction.cs b/src/Umbraco.Core/Actions/IAction.cs index 986ed9b509..8a68b34196 100644 --- a/src/Umbraco.Core/Actions/IAction.cs +++ b/src/Umbraco.Core/Actions/IAction.cs @@ -1,6 +1,6 @@ -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Web.Actions +namespace Umbraco.Cms.Core.Actions { /// /// Defines a back office action that can be permission assigned or subscribed to for notifications diff --git a/src/Umbraco.Core/Attempt.cs b/src/Umbraco.Core/Attempt.cs index d13ec6394c..eddd2c8785 100644 --- a/src/Umbraco.Core/Attempt.cs +++ b/src/Umbraco.Core/Attempt.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core +namespace Umbraco.Cms.Core { /// /// Provides ways to create attempts. diff --git a/src/Umbraco.Core/AttemptOfTResult.cs b/src/Umbraco.Core/AttemptOfTResult.cs index 79fae017e2..cebabe214b 100644 --- a/src/Umbraco.Core/AttemptOfTResult.cs +++ b/src/Umbraco.Core/AttemptOfTResult.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core +namespace Umbraco.Cms.Core { /// /// Represents the result of an operation attempt. diff --git a/src/Umbraco.Core/AttemptOfTResultTStatus.cs b/src/Umbraco.Core/AttemptOfTResultTStatus.cs index 8ce21e36c3..1278da86a5 100644 --- a/src/Umbraco.Core/AttemptOfTResultTStatus.cs +++ b/src/Umbraco.Core/AttemptOfTResultTStatus.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core +namespace Umbraco.Cms.Core { /// /// Represents the result of an operation attempt. diff --git a/src/Umbraco.Core/Cache/AppCacheExtensions.cs b/src/Umbraco.Core/Cache/AppCacheExtensions.cs index cbefb5d5c0..7e6e115fd9 100644 --- a/src/Umbraco.Core/Cache/AppCacheExtensions.cs +++ b/src/Umbraco.Core/Cache/AppCacheExtensions.cs @@ -1,8 +1,9 @@ using System; using System.Collections.Generic; using System.Linq; +using Umbraco.Cms.Core.Cache; -namespace Umbraco.Core.Cache +namespace Umbraco.Extensions { /// /// Extensions for strongly typed access diff --git a/src/Umbraco.Core/Cache/AppCaches.cs b/src/Umbraco.Core/Cache/AppCaches.cs index 2d482756c1..974d8bd6aa 100644 --- a/src/Umbraco.Core/Cache/AppCaches.cs +++ b/src/Umbraco.Core/Cache/AppCaches.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Cache +namespace Umbraco.Cms.Core.Cache { /// /// Represents the application caches. diff --git a/src/Umbraco.Core/Cache/AppPolicedCacheDictionary.cs b/src/Umbraco.Core/Cache/AppPolicedCacheDictionary.cs index fa13ebf088..1be1752b22 100644 --- a/src/Umbraco.Core/Cache/AppPolicedCacheDictionary.cs +++ b/src/Umbraco.Core/Cache/AppPolicedCacheDictionary.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Concurrent; -namespace Umbraco.Core.Cache +namespace Umbraco.Cms.Core.Cache { /// /// Provides a base class for implementing a dictionary of . diff --git a/src/Umbraco.Core/Cache/ApplicationCacheRefresher.cs b/src/Umbraco.Core/Cache/ApplicationCacheRefresher.cs index 751b2194b7..360fd44ba8 100644 --- a/src/Umbraco.Core/Cache/ApplicationCacheRefresher.cs +++ b/src/Umbraco.Core/Cache/ApplicationCacheRefresher.cs @@ -1,7 +1,6 @@ using System; -using Umbraco.Core.Cache; -namespace Umbraco.Web.Cache +namespace Umbraco.Cms.Core.Cache { public sealed class ApplicationCacheRefresher : CacheRefresherBase { diff --git a/src/Umbraco.Core/Cache/CacheKeys.cs b/src/Umbraco.Core/Cache/CacheKeys.cs index ec57d633b9..9f082df104 100644 --- a/src/Umbraco.Core/Cache/CacheKeys.cs +++ b/src/Umbraco.Core/Cache/CacheKeys.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Cache +namespace Umbraco.Cms.Core.Cache { /// /// Constants storing cache keys used in caching diff --git a/src/Umbraco.Core/Cache/CacheRefresherBase.cs b/src/Umbraco.Core/Cache/CacheRefresherBase.cs index bfa16ff3fa..d3a09dbf8f 100644 --- a/src/Umbraco.Core/Cache/CacheRefresherBase.cs +++ b/src/Umbraco.Core/Cache/CacheRefresherBase.cs @@ -1,9 +1,9 @@ using System; -using Umbraco.Core.Events; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Sync; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Sync; -namespace Umbraco.Core.Cache +namespace Umbraco.Cms.Core.Cache { /// /// A base class for cache refreshers that handles events. diff --git a/src/Umbraco.Core/Cache/CacheRefresherCollection.cs b/src/Umbraco.Core/Cache/CacheRefresherCollection.cs index e0b3cd48fd..2c9007cbe9 100644 --- a/src/Umbraco.Core/Cache/CacheRefresherCollection.cs +++ b/src/Umbraco.Core/Cache/CacheRefresherCollection.cs @@ -1,9 +1,9 @@ using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Core.Cache +namespace Umbraco.Cms.Core.Cache { public class CacheRefresherCollection : BuilderCollectionBase { diff --git a/src/Umbraco.Core/Cache/CacheRefresherCollectionBuilder.cs b/src/Umbraco.Core/Cache/CacheRefresherCollectionBuilder.cs index 8bae755149..34a274a177 100644 --- a/src/Umbraco.Core/Cache/CacheRefresherCollectionBuilder.cs +++ b/src/Umbraco.Core/Cache/CacheRefresherCollectionBuilder.cs @@ -1,6 +1,6 @@ -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Core.Cache +namespace Umbraco.Cms.Core.Cache { public class CacheRefresherCollectionBuilder : LazyCollectionBuilderBase { diff --git a/src/Umbraco.Core/Cache/CacheRefresherEventArgs.cs b/src/Umbraco.Core/Cache/CacheRefresherEventArgs.cs index 7dea4229ab..e1d04a7095 100644 --- a/src/Umbraco.Core/Cache/CacheRefresherEventArgs.cs +++ b/src/Umbraco.Core/Cache/CacheRefresherEventArgs.cs @@ -1,7 +1,7 @@ using System; -using Umbraco.Core.Sync; +using Umbraco.Cms.Core.Sync; -namespace Umbraco.Core.Cache +namespace Umbraco.Cms.Core.Cache { /// /// Event args for cache refresher updates diff --git a/src/Umbraco.Core/Cache/ContentCacheRefresher.cs b/src/Umbraco.Core/Cache/ContentCacheRefresher.cs index 6e04a06b95..e77fa7abef 100644 --- a/src/Umbraco.Core/Cache/ContentCacheRefresher.cs +++ b/src/Umbraco.Core/Cache/ContentCacheRefresher.cs @@ -1,16 +1,15 @@ using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Models; -using Umbraco.Core.Persistence.Repositories.Implement; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Services.Changes; -using Umbraco.Web.PublishedCache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Services.Changes; +using Umbraco.Extensions; -namespace Umbraco.Web.Cache +namespace Umbraco.Cms.Core.Cache { public sealed class ContentCacheRefresher : PayloadCacheRefresherBase { diff --git a/src/Umbraco.Core/Cache/ContentTypeCacheRefresher.cs b/src/Umbraco.Core/Cache/ContentTypeCacheRefresher.cs index 8681f2626e..8a1ba1234e 100644 --- a/src/Umbraco.Core/Cache/ContentTypeCacheRefresher.cs +++ b/src/Umbraco.Core/Cache/ContentTypeCacheRefresher.cs @@ -1,16 +1,15 @@ using System; using System.Linq; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Persistence.Repositories; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Services.Changes; -using Umbraco.Web.PublishedCache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Services.Changes; +using Umbraco.Extensions; -namespace Umbraco.Web.Cache +namespace Umbraco.Cms.Core.Cache { public sealed class ContentTypeCacheRefresher : PayloadCacheRefresherBase { diff --git a/src/Umbraco.Core/Cache/DataTypeCacheRefresher.cs b/src/Umbraco.Core/Cache/DataTypeCacheRefresher.cs index 7455722ef7..d5e11e17d3 100644 --- a/src/Umbraco.Core/Cache/DataTypeCacheRefresher.cs +++ b/src/Umbraco.Core/Cache/DataTypeCacheRefresher.cs @@ -1,15 +1,13 @@ using System; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.PropertyEditors.ValueConverters; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Web.PublishedCache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PropertyEditors.ValueConverters; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; - -namespace Umbraco.Web.Cache +namespace Umbraco.Cms.Core.Cache { public sealed class DataTypeCacheRefresher : PayloadCacheRefresherBase { diff --git a/src/Umbraco.Core/Cache/DeepCloneAppCache.cs b/src/Umbraco.Core/Cache/DeepCloneAppCache.cs index e70b40160e..451af437b2 100644 --- a/src/Umbraco.Core/Cache/DeepCloneAppCache.cs +++ b/src/Umbraco.Core/Cache/DeepCloneAppCache.cs @@ -1,10 +1,10 @@ using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Cache +namespace Umbraco.Cms.Core.Cache { /// /// Implements by wrapping an inner other diff --git a/src/Umbraco.Core/Cache/DictionaryAppCache.cs b/src/Umbraco.Core/Cache/DictionaryAppCache.cs index 04ee3e0afa..8857da0187 100644 --- a/src/Umbraco.Core/Cache/DictionaryAppCache.cs +++ b/src/Umbraco.Core/Cache/DictionaryAppCache.cs @@ -3,8 +3,9 @@ using System.Collections; using System.Collections.Concurrent; using System.Collections.Generic; using System.Text.RegularExpressions; +using Umbraco.Extensions; -namespace Umbraco.Core.Cache +namespace Umbraco.Cms.Core.Cache { /// /// Implements on top of a concurrent dictionary. diff --git a/src/Umbraco.Core/Cache/DictionaryCacheRefresher.cs b/src/Umbraco.Core/Cache/DictionaryCacheRefresher.cs index 525b4d2157..922afab8da 100644 --- a/src/Umbraco.Core/Cache/DictionaryCacheRefresher.cs +++ b/src/Umbraco.Core/Cache/DictionaryCacheRefresher.cs @@ -1,8 +1,7 @@ using System; -using Umbraco.Core.Cache; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Web.Cache +namespace Umbraco.Cms.Core.Cache { public sealed class DictionaryCacheRefresher : CacheRefresherBase { diff --git a/src/Umbraco.Core/Cache/DistributedCache.cs b/src/Umbraco.Core/Cache/DistributedCache.cs index 7ad9f9569f..bfd1162bc4 100644 --- a/src/Umbraco.Core/Cache/DistributedCache.cs +++ b/src/Umbraco.Core/Cache/DistributedCache.cs @@ -1,11 +1,9 @@ using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Sync; +using Umbraco.Cms.Core.Sync; -namespace Umbraco.Web.Cache +namespace Umbraco.Cms.Core.Cache { /// /// Represents the entry point into Umbraco's distributed cache infrastructure. diff --git a/src/Umbraco.Core/Cache/DomainCacheRefresher.cs b/src/Umbraco.Core/Cache/DomainCacheRefresher.cs index 7958728765..2773ca2d0f 100644 --- a/src/Umbraco.Core/Cache/DomainCacheRefresher.cs +++ b/src/Umbraco.Core/Cache/DomainCacheRefresher.cs @@ -1,11 +1,10 @@ using System; -using Umbraco.Core.Cache; -using Umbraco.Core.Models; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services.Changes; -using Umbraco.Web.PublishedCache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services.Changes; -namespace Umbraco.Web.Cache +namespace Umbraco.Cms.Core.Cache { public sealed class DomainCacheRefresher : PayloadCacheRefresherBase { diff --git a/src/Umbraco.Core/Cache/FastDictionaryAppCache.cs b/src/Umbraco.Core/Cache/FastDictionaryAppCache.cs index 54009af465..ddd9f96c73 100644 --- a/src/Umbraco.Core/Cache/FastDictionaryAppCache.cs +++ b/src/Umbraco.Core/Cache/FastDictionaryAppCache.cs @@ -3,9 +3,9 @@ using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; -using Umbraco.Core.Composing; +using Umbraco.Extensions; -namespace Umbraco.Core.Cache +namespace Umbraco.Cms.Core.Cache { /// /// Implements a fast on top of a concurrent dictionary. diff --git a/src/Umbraco.Core/Cache/FastDictionaryAppCacheBase.cs b/src/Umbraco.Core/Cache/FastDictionaryAppCacheBase.cs index 4b8098e19d..7ebbcc8b63 100644 --- a/src/Umbraco.Core/Cache/FastDictionaryAppCacheBase.cs +++ b/src/Umbraco.Core/Cache/FastDictionaryAppCacheBase.cs @@ -1,11 +1,10 @@ using System; -using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; -using Umbraco.Core.Composing; +using Umbraco.Extensions; -namespace Umbraco.Core.Cache +namespace Umbraco.Cms.Core.Cache { /// /// Provides a base class to fast, dictionary-based implementations. diff --git a/src/Umbraco.Core/Cache/GenericDictionaryRequestAppCache.cs b/src/Umbraco.Core/Cache/GenericDictionaryRequestAppCache.cs index 31914eb5b0..17558a78d4 100644 --- a/src/Umbraco.Core/Cache/GenericDictionaryRequestAppCache.cs +++ b/src/Umbraco.Core/Cache/GenericDictionaryRequestAppCache.cs @@ -3,9 +3,8 @@ using System.Collections; using System.Collections.Generic; using System.Linq; using System.Threading; -using Umbraco.Core.Composing; -namespace Umbraco.Core.Cache +namespace Umbraco.Cms.Core.Cache { /// /// Implements a fast on top of HttpContext.Items. diff --git a/src/Umbraco.Core/Cache/HttpRequestAppCache.cs b/src/Umbraco.Core/Cache/HttpRequestAppCache.cs index 00d427c965..2e053c3486 100644 --- a/src/Umbraco.Core/Cache/HttpRequestAppCache.cs +++ b/src/Umbraco.Core/Cache/HttpRequestAppCache.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; using System.Linq; using System.Threading; -namespace Umbraco.Core.Cache +namespace Umbraco.Cms.Core.Cache { /// /// Implements a fast on top of HttpContext.Items. diff --git a/src/Umbraco.Core/Cache/IAppCache.cs b/src/Umbraco.Core/Cache/IAppCache.cs index c84ec1135c..9b9b03af35 100644 --- a/src/Umbraco.Core/Cache/IAppCache.cs +++ b/src/Umbraco.Core/Cache/IAppCache.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; -namespace Umbraco.Core.Cache +namespace Umbraco.Cms.Core.Cache { /// /// Defines an application cache. diff --git a/src/Umbraco.Core/Cache/IAppPolicyCache.cs b/src/Umbraco.Core/Cache/IAppPolicyCache.cs index 9746e80804..a345ca1333 100644 --- a/src/Umbraco.Core/Cache/IAppPolicyCache.cs +++ b/src/Umbraco.Core/Cache/IAppPolicyCache.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Cache +namespace Umbraco.Cms.Core.Cache { /// /// Defines an application cache that support cache policies. diff --git a/src/Umbraco.Core/Cache/ICacheRefresher.cs b/src/Umbraco.Core/Cache/ICacheRefresher.cs index 257d1da05a..97a3bf08eb 100644 --- a/src/Umbraco.Core/Cache/ICacheRefresher.cs +++ b/src/Umbraco.Core/Cache/ICacheRefresher.cs @@ -1,7 +1,7 @@ using System; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Core.Cache +namespace Umbraco.Cms.Core.Cache { /// /// The IcacheRefresher Interface is used for load balancing. diff --git a/src/Umbraco.Core/Cache/IDistributedCacheBinder.cs b/src/Umbraco.Core/Cache/IDistributedCacheBinder.cs index cb83799f85..405e72ba06 100644 --- a/src/Umbraco.Core/Cache/IDistributedCacheBinder.cs +++ b/src/Umbraco.Core/Cache/IDistributedCacheBinder.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Events; +using Umbraco.Cms.Core.Events; -namespace Umbraco.Web.Cache +namespace Umbraco.Cms.Core.Cache { /// /// Binds events to the distributed cache. diff --git a/src/Umbraco.Core/Cache/IJsonCacheRefresher.cs b/src/Umbraco.Core/Cache/IJsonCacheRefresher.cs index 005d3c5101..619fc1eb56 100644 --- a/src/Umbraco.Core/Cache/IJsonCacheRefresher.cs +++ b/src/Umbraco.Core/Cache/IJsonCacheRefresher.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Cache +namespace Umbraco.Cms.Core.Cache { /// /// A cache refresher that supports refreshing or removing cache based on a custom Json payload diff --git a/src/Umbraco.Core/Cache/IPayloadCacheRefresher.cs b/src/Umbraco.Core/Cache/IPayloadCacheRefresher.cs index a30245a239..21dfdd840d 100644 --- a/src/Umbraco.Core/Cache/IPayloadCacheRefresher.cs +++ b/src/Umbraco.Core/Cache/IPayloadCacheRefresher.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Cache +namespace Umbraco.Cms.Core.Cache { /// /// A cache refresher that supports refreshing cache based on a custom payload diff --git a/src/Umbraco.Core/Cache/IRepositoryCachePolicy.cs b/src/Umbraco.Core/Cache/IRepositoryCachePolicy.cs index a31e715383..dff547c1ce 100644 --- a/src/Umbraco.Core/Cache/IRepositoryCachePolicy.cs +++ b/src/Umbraco.Core/Cache/IRepositoryCachePolicy.cs @@ -1,9 +1,8 @@ using System; using System.Collections.Generic; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Scoping; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Cache +namespace Umbraco.Cms.Core.Cache { public interface IRepositoryCachePolicy where TEntity : class, IEntity diff --git a/src/Umbraco.Core/Cache/IRequestCache.cs b/src/Umbraco.Core/Cache/IRequestCache.cs index 7ed7f8251c..1da08019c0 100644 --- a/src/Umbraco.Core/Cache/IRequestCache.cs +++ b/src/Umbraco.Core/Cache/IRequestCache.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace Umbraco.Core.Cache +namespace Umbraco.Cms.Core.Cache { public interface IRequestCache : IAppCache, IEnumerable> { diff --git a/src/Umbraco.Core/Cache/IsolatedCaches.cs b/src/Umbraco.Core/Cache/IsolatedCaches.cs index f070fe8b55..6d197489ca 100644 --- a/src/Umbraco.Core/Cache/IsolatedCaches.cs +++ b/src/Umbraco.Core/Cache/IsolatedCaches.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Cache +namespace Umbraco.Cms.Core.Cache { /// /// Represents a dictionary of for types. diff --git a/src/Umbraco.Core/Cache/JsonCacheRefresherBase.cs b/src/Umbraco.Core/Cache/JsonCacheRefresherBase.cs index 6826aab6ad..3e70bc54eb 100644 --- a/src/Umbraco.Core/Cache/JsonCacheRefresherBase.cs +++ b/src/Umbraco.Core/Cache/JsonCacheRefresherBase.cs @@ -1,7 +1,7 @@ -using Umbraco.Core.Serialization; -using Umbraco.Core.Sync; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Sync; -namespace Umbraco.Core.Cache +namespace Umbraco.Cms.Core.Cache { /// /// A base class for "json" cache refreshers. diff --git a/src/Umbraco.Core/Cache/LanguageCacheRefresher.cs b/src/Umbraco.Core/Cache/LanguageCacheRefresher.cs index b66e35f843..b15d247ddf 100644 --- a/src/Umbraco.Core/Cache/LanguageCacheRefresher.cs +++ b/src/Umbraco.Core/Cache/LanguageCacheRefresher.cs @@ -1,14 +1,11 @@ using System; -using System.Linq; -using Umbraco.Core.Cache; -using Umbraco.Core.Models; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Services.Changes; -using Umbraco.Web.PublishedCache; -using static Umbraco.Web.Cache.LanguageCacheRefresher.JsonPayload; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services.Changes; +using static Umbraco.Cms.Core.Cache.LanguageCacheRefresher.JsonPayload; -namespace Umbraco.Web.Cache +namespace Umbraco.Cms.Core.Cache { public sealed class LanguageCacheRefresher : PayloadCacheRefresherBase { diff --git a/src/Umbraco.Core/Cache/MacroCacheRefresher.cs b/src/Umbraco.Core/Cache/MacroCacheRefresher.cs index 009e9f38d0..dd4c4c73de 100644 --- a/src/Umbraco.Core/Cache/MacroCacheRefresher.cs +++ b/src/Umbraco.Core/Cache/MacroCacheRefresher.cs @@ -1,11 +1,10 @@ using System; -using Umbraco.Core.Cache; -using Umbraco.Core.Models; using System.Linq; -using Umbraco.Core.Persistence.Repositories.Implement; -using Umbraco.Core.Serialization; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Serialization; -namespace Umbraco.Web.Cache +namespace Umbraco.Cms.Core.Cache { public sealed class MacroCacheRefresher : PayloadCacheRefresherBase { diff --git a/src/Umbraco.Core/Cache/MediaCacheRefresher.cs b/src/Umbraco.Core/Cache/MediaCacheRefresher.cs index 9e62ed61fe..997083b0a7 100644 --- a/src/Umbraco.Core/Cache/MediaCacheRefresher.cs +++ b/src/Umbraco.Core/Cache/MediaCacheRefresher.cs @@ -1,14 +1,13 @@ using System; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Models; -using Umbraco.Core.Persistence.Repositories.Implement; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Services.Changes; -using Umbraco.Web.PublishedCache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Services.Changes; +using Umbraco.Extensions; -namespace Umbraco.Web.Cache +namespace Umbraco.Cms.Core.Cache { public sealed class MediaCacheRefresher : PayloadCacheRefresherBase { diff --git a/src/Umbraco.Core/Cache/MemberCacheRefresher.cs b/src/Umbraco.Core/Cache/MemberCacheRefresher.cs index a9a648acff..2d0ce7da16 100644 --- a/src/Umbraco.Core/Cache/MemberCacheRefresher.cs +++ b/src/Umbraco.Core/Cache/MemberCacheRefresher.cs @@ -1,13 +1,13 @@ //using Newtonsoft.Json; -using System; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Models; -using Umbraco.Core.Persistence.Repositories.Implement; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -namespace Umbraco.Web.Cache +using System; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; + +namespace Umbraco.Cms.Core.Cache { public sealed class MemberCacheRefresher : PayloadCacheRefresherBase { diff --git a/src/Umbraco.Core/Cache/MemberGroupCacheRefresher.cs b/src/Umbraco.Core/Cache/MemberGroupCacheRefresher.cs index 213ca11302..2db947d026 100644 --- a/src/Umbraco.Core/Cache/MemberGroupCacheRefresher.cs +++ b/src/Umbraco.Core/Cache/MemberGroupCacheRefresher.cs @@ -1,10 +1,8 @@ using System; -using System.Linq; -using Umbraco.Core.Cache; -using Umbraco.Core.Models; -using Umbraco.Core.Serialization; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Serialization; -namespace Umbraco.Web.Cache +namespace Umbraco.Cms.Core.Cache { public sealed class MemberGroupCacheRefresher : PayloadCacheRefresherBase { diff --git a/src/Umbraco.Core/Cache/NoAppCache.cs b/src/Umbraco.Core/Cache/NoAppCache.cs index cae3a7381e..475e67b94a 100644 --- a/src/Umbraco.Core/Cache/NoAppCache.cs +++ b/src/Umbraco.Core/Cache/NoAppCache.cs @@ -3,7 +3,7 @@ using System.Collections; using System.Collections.Generic; using System.Linq; -namespace Umbraco.Core.Cache +namespace Umbraco.Cms.Core.Cache { /// /// Implements and do not cache. diff --git a/src/Umbraco.Core/Cache/NoCacheRepositoryCachePolicy.cs b/src/Umbraco.Core/Cache/NoCacheRepositoryCachePolicy.cs index 20b57c49ff..48aab0a5ee 100644 --- a/src/Umbraco.Core/Cache/NoCacheRepositoryCachePolicy.cs +++ b/src/Umbraco.Core/Cache/NoCacheRepositoryCachePolicy.cs @@ -1,9 +1,9 @@ using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Cache +namespace Umbraco.Cms.Core.Cache { public class NoCacheRepositoryCachePolicy : IRepositoryCachePolicy where TEntity : class, IEntity diff --git a/src/Umbraco.Core/Cache/ObjectCacheAppCache.cs b/src/Umbraco.Core/Cache/ObjectCacheAppCache.cs index dc9163affb..7096d077a2 100644 --- a/src/Umbraco.Core/Cache/ObjectCacheAppCache.cs +++ b/src/Umbraco.Core/Cache/ObjectCacheAppCache.cs @@ -4,9 +4,9 @@ using System.Linq; using System.Runtime.Caching; using System.Text.RegularExpressions; using System.Threading; -using Umbraco.Core.Composing; +using Umbraco.Extensions; -namespace Umbraco.Core.Cache +namespace Umbraco.Cms.Core.Cache { /// /// Implements on top of a . diff --git a/src/Umbraco.Core/Cache/PayloadCacheRefresherBase.cs b/src/Umbraco.Core/Cache/PayloadCacheRefresherBase.cs index 7d3fd417d4..08d3e65506 100644 --- a/src/Umbraco.Core/Cache/PayloadCacheRefresherBase.cs +++ b/src/Umbraco.Core/Cache/PayloadCacheRefresherBase.cs @@ -1,8 +1,7 @@ -using System; -using Umbraco.Core.Serialization; -using Umbraco.Core.Sync; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Sync; -namespace Umbraco.Core.Cache +namespace Umbraco.Cms.Core.Cache { /// /// A base class for "payload" class refreshers. diff --git a/src/Umbraco.Core/Cache/PublicAccessCacheRefresher.cs b/src/Umbraco.Core/Cache/PublicAccessCacheRefresher.cs index 59c8231ed2..19064a8031 100644 --- a/src/Umbraco.Core/Cache/PublicAccessCacheRefresher.cs +++ b/src/Umbraco.Core/Cache/PublicAccessCacheRefresher.cs @@ -1,8 +1,7 @@ using System; -using Umbraco.Core.Cache; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Web.Cache +namespace Umbraco.Cms.Core.Cache { public sealed class PublicAccessCacheRefresher : CacheRefresherBase { diff --git a/src/Umbraco.Core/Cache/RelationTypeCacheRefresher.cs b/src/Umbraco.Core/Cache/RelationTypeCacheRefresher.cs index c9c8b47bbf..daa954b257 100644 --- a/src/Umbraco.Core/Cache/RelationTypeCacheRefresher.cs +++ b/src/Umbraco.Core/Cache/RelationTypeCacheRefresher.cs @@ -1,10 +1,8 @@ using System; -using Umbraco.Core.Cache; -using Umbraco.Core.Models; -using Umbraco.Core.Persistence.Repositories; -using Umbraco.Core.Persistence.Repositories.Implement; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Repositories; -namespace Umbraco.Web.Cache +namespace Umbraco.Cms.Core.Cache { public sealed class RelationTypeCacheRefresher : CacheRefresherBase { diff --git a/src/Umbraco.Core/Cache/RepositoryCachePolicyOptions.cs b/src/Umbraco.Core/Cache/RepositoryCachePolicyOptions.cs index 06095f058d..94c3380bfd 100644 --- a/src/Umbraco.Core/Cache/RepositoryCachePolicyOptions.cs +++ b/src/Umbraco.Core/Cache/RepositoryCachePolicyOptions.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Cache +namespace Umbraco.Cms.Core.Cache { /// /// Specifies how a repository cache policy should cache entities. diff --git a/src/Umbraco.Core/Cache/SafeLazy.cs b/src/Umbraco.Core/Cache/SafeLazy.cs index d901a534c6..9f2ad8f114 100644 --- a/src/Umbraco.Core/Cache/SafeLazy.cs +++ b/src/Umbraco.Core/Cache/SafeLazy.cs @@ -1,7 +1,7 @@ using System; using System.Runtime.ExceptionServices; -namespace Umbraco.Core.Cache +namespace Umbraco.Cms.Core.Cache { public static class SafeLazy { diff --git a/src/Umbraco.Core/Cache/TemplateCacheRefresher.cs b/src/Umbraco.Core/Cache/TemplateCacheRefresher.cs index 27e727f73a..d02d3190eb 100644 --- a/src/Umbraco.Core/Cache/TemplateCacheRefresher.cs +++ b/src/Umbraco.Core/Cache/TemplateCacheRefresher.cs @@ -1,10 +1,9 @@ using System; -using Umbraco.Core.Cache; -using Umbraco.Core.Models; -using Umbraco.Core.Persistence.Repositories; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Services; -namespace Umbraco.Web.Cache +namespace Umbraco.Cms.Core.Cache { public sealed class TemplateCacheRefresher : CacheRefresherBase { diff --git a/src/Umbraco.Core/Cache/TypedCacheRefresherBase.cs b/src/Umbraco.Core/Cache/TypedCacheRefresherBase.cs index 0b5a04b571..9c9314aeae 100644 --- a/src/Umbraco.Core/Cache/TypedCacheRefresherBase.cs +++ b/src/Umbraco.Core/Cache/TypedCacheRefresherBase.cs @@ -1,6 +1,6 @@ -using Umbraco.Core.Sync; +using Umbraco.Cms.Core.Sync; -namespace Umbraco.Core.Cache +namespace Umbraco.Cms.Core.Cache { /// /// A base class for "typed" cache refreshers. diff --git a/src/Umbraco.Core/Cache/UserCacheRefresher.cs b/src/Umbraco.Core/Cache/UserCacheRefresher.cs index 922a9df385..0e8b749e50 100644 --- a/src/Umbraco.Core/Cache/UserCacheRefresher.cs +++ b/src/Umbraco.Core/Cache/UserCacheRefresher.cs @@ -1,10 +1,8 @@ using System; -using Umbraco.Core.Cache; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Persistence.Repositories; -using Umbraco.Core.Persistence.Repositories.Implement; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Persistence.Repositories; -namespace Umbraco.Web.Cache +namespace Umbraco.Cms.Core.Cache { public sealed class UserCacheRefresher : CacheRefresherBase { diff --git a/src/Umbraco.Core/Cache/UserGroupCacheRefresher.cs b/src/Umbraco.Core/Cache/UserGroupCacheRefresher.cs index 3fd34abfcd..7519994069 100644 --- a/src/Umbraco.Core/Cache/UserGroupCacheRefresher.cs +++ b/src/Umbraco.Core/Cache/UserGroupCacheRefresher.cs @@ -1,10 +1,8 @@ using System; -using Umbraco.Core.Cache; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Persistence.Repositories; -using Umbraco.Core.Persistence.Repositories.Implement; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Persistence.Repositories; -namespace Umbraco.Web.Cache +namespace Umbraco.Cms.Core.Cache { /// /// Handles User group cache invalidation/refreshing diff --git a/src/Umbraco.Core/CodeAnnotations/FriendlyNameAttribute.cs b/src/Umbraco.Core/CodeAnnotations/FriendlyNameAttribute.cs index 218891c635..f6ee121742 100644 --- a/src/Umbraco.Core/CodeAnnotations/FriendlyNameAttribute.cs +++ b/src/Umbraco.Core/CodeAnnotations/FriendlyNameAttribute.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.CodeAnnotations +namespace Umbraco.Cms.Core.CodeAnnotations { /// /// Attribute to add a Friendly Name string with an UmbracoObjectType enum value diff --git a/src/Umbraco.Core/CodeAnnotations/UmbracoObjectTypeAttribute.cs b/src/Umbraco.Core/CodeAnnotations/UmbracoObjectTypeAttribute.cs index e4fe2cd504..126567de02 100644 --- a/src/Umbraco.Core/CodeAnnotations/UmbracoObjectTypeAttribute.cs +++ b/src/Umbraco.Core/CodeAnnotations/UmbracoObjectTypeAttribute.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.CodeAnnotations +namespace Umbraco.Cms.Core.CodeAnnotations { /// /// Attribute to associate a GUID string and Type with an UmbracoObjectType Enum value diff --git a/src/Umbraco.Core/CodeAnnotations/UmbracoUdiTypeAttribute.cs b/src/Umbraco.Core/CodeAnnotations/UmbracoUdiTypeAttribute.cs index 72af1d9a70..5f889daa5c 100644 --- a/src/Umbraco.Core/CodeAnnotations/UmbracoUdiTypeAttribute.cs +++ b/src/Umbraco.Core/CodeAnnotations/UmbracoUdiTypeAttribute.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.CodeAnnotations +namespace Umbraco.Cms.Core.CodeAnnotations { [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = false)] public class UmbracoUdiTypeAttribute : Attribute diff --git a/src/Umbraco.Core/Collections/CompositeIntStringKey.cs b/src/Umbraco.Core/Collections/CompositeIntStringKey.cs index cafc209e08..542a6337bd 100644 --- a/src/Umbraco.Core/Collections/CompositeIntStringKey.cs +++ b/src/Umbraco.Core/Collections/CompositeIntStringKey.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Collections +namespace Umbraco.Cms.Core.Collections { /// /// Represents a composite key of (int, string) for fast dictionaries. diff --git a/src/Umbraco.Core/Collections/CompositeNStringNStringKey.cs b/src/Umbraco.Core/Collections/CompositeNStringNStringKey.cs index a06696f6c6..f247f3b76b 100644 --- a/src/Umbraco.Core/Collections/CompositeNStringNStringKey.cs +++ b/src/Umbraco.Core/Collections/CompositeNStringNStringKey.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Collections +namespace Umbraco.Cms.Core.Collections { /// /// Represents a composite key of (string, string) for fast dictionaries. @@ -38,4 +38,4 @@ namespace Umbraco.Core.Collections public static bool operator !=(CompositeNStringNStringKey key1, CompositeNStringNStringKey key2) => key1._key2 != key2._key2 || key1._key1 != key2._key1; } -} \ No newline at end of file +} diff --git a/src/Umbraco.Core/Collections/CompositeStringStringKey.cs b/src/Umbraco.Core/Collections/CompositeStringStringKey.cs index c053b08a22..652717cfdb 100644 --- a/src/Umbraco.Core/Collections/CompositeStringStringKey.cs +++ b/src/Umbraco.Core/Collections/CompositeStringStringKey.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Collections +namespace Umbraco.Cms.Core.Collections { /// /// Represents a composite key of (string, string) for fast dictionaries. diff --git a/src/Umbraco.Core/Collections/CompositeTypeTypeKey.cs b/src/Umbraco.Core/Collections/CompositeTypeTypeKey.cs index e08e3305d2..321f12c592 100644 --- a/src/Umbraco.Core/Collections/CompositeTypeTypeKey.cs +++ b/src/Umbraco.Core/Collections/CompositeTypeTypeKey.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Collections +namespace Umbraco.Cms.Core.Collections { /// /// Represents a composite key of (Type, Type) for fast dictionaries. diff --git a/src/Umbraco.Core/Collections/ConcurrentHashSet.cs b/src/Umbraco.Core/Collections/ConcurrentHashSet.cs index c4dba51acd..4cbce05f4c 100644 --- a/src/Umbraco.Core/Collections/ConcurrentHashSet.cs +++ b/src/Umbraco.Core/Collections/ConcurrentHashSet.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; using System.Linq; using System.Threading; -namespace Umbraco.Core.Collections +namespace Umbraco.Cms.Core.Collections { /// /// A thread-safe representation of a . diff --git a/src/Umbraco.Core/Collections/DeepCloneableList.cs b/src/Umbraco.Core/Collections/DeepCloneableList.cs index b682e20358..ecd17aab46 100644 --- a/src/Umbraco.Core/Collections/DeepCloneableList.cs +++ b/src/Umbraco.Core/Collections/DeepCloneableList.cs @@ -2,10 +2,10 @@ using System.Collections.Generic; using System.ComponentModel; using System.Linq; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Collections +namespace Umbraco.Cms.Core.Collections { /// /// A List that can be deep cloned with deep cloned elements and can reset the collection's items dirty flags @@ -153,7 +153,7 @@ namespace Umbraco.Core.Collections return Enumerable.Empty(); } - public event PropertyChangedEventHandler PropertyChanged; // noop + public event PropertyChangedEventHandler PropertyChanged; // noop #endregion } } diff --git a/src/Umbraco.Core/Collections/EventClearingObservableCollection.cs b/src/Umbraco.Core/Collections/EventClearingObservableCollection.cs index af25cc1b4a..df98fa5220 100644 --- a/src/Umbraco.Core/Collections/EventClearingObservableCollection.cs +++ b/src/Umbraco.Core/Collections/EventClearingObservableCollection.cs @@ -2,7 +2,7 @@ using System.Collections.ObjectModel; using System.Collections.Specialized; -namespace Umbraco.Core.Collections +namespace Umbraco.Cms.Core.Collections { /// /// Allows clearing all event handlers diff --git a/src/Umbraco.Core/Collections/ListCloneBehavior.cs b/src/Umbraco.Core/Collections/ListCloneBehavior.cs index 539afca21a..148141f783 100644 --- a/src/Umbraco.Core/Collections/ListCloneBehavior.cs +++ b/src/Umbraco.Core/Collections/ListCloneBehavior.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Collections +namespace Umbraco.Cms.Core.Collections { public enum ListCloneBehavior { diff --git a/src/Umbraco.Core/Collections/ObservableDictionary.cs b/src/Umbraco.Core/Collections/ObservableDictionary.cs index fd9e469f07..a3c705e151 100644 --- a/src/Umbraco.Core/Collections/ObservableDictionary.cs +++ b/src/Umbraco.Core/Collections/ObservableDictionary.cs @@ -2,11 +2,9 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Collections.Specialized; -using System.ComponentModel; using System.Linq; -using System.Runtime.Serialization; -namespace Umbraco.Core.Collections +namespace Umbraco.Cms.Core.Collections { /// diff --git a/src/Umbraco.Core/Collections/OrderedHashSet.cs b/src/Umbraco.Core/Collections/OrderedHashSet.cs index 52b37bc7f9..51ae2fea22 100644 --- a/src/Umbraco.Core/Collections/OrderedHashSet.cs +++ b/src/Umbraco.Core/Collections/OrderedHashSet.cs @@ -1,6 +1,6 @@ using System.Collections.ObjectModel; -namespace Umbraco.Core.Collections +namespace Umbraco.Cms.Core.Collections { /// /// A custom collection similar to HashSet{T} which only contains unique items, however this collection keeps items in order diff --git a/src/Umbraco.Core/Collections/TopoGraph.cs b/src/Umbraco.Core/Collections/TopoGraph.cs index 955a210465..12b0d431ea 100644 --- a/src/Umbraco.Core/Collections/TopoGraph.cs +++ b/src/Umbraco.Core/Collections/TopoGraph.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; -namespace Umbraco.Core.Collections +namespace Umbraco.Cms.Core.Collections { public class TopoGraph { diff --git a/src/Umbraco.Core/Collections/TypeList.cs b/src/Umbraco.Core/Collections/TypeList.cs index 43df5f1af4..96565a843c 100644 --- a/src/Umbraco.Core/Collections/TypeList.cs +++ b/src/Umbraco.Core/Collections/TypeList.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; -namespace Umbraco.Core.Collections +namespace Umbraco.Cms.Core.Collections { /// /// Represents a list of types. diff --git a/src/Umbraco.Core/Composing/BuilderCollectionBase.cs b/src/Umbraco.Core/Composing/BuilderCollectionBase.cs index 484a9b930f..a5bf33f9c1 100644 --- a/src/Umbraco.Core/Composing/BuilderCollectionBase.cs +++ b/src/Umbraco.Core/Composing/BuilderCollectionBase.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.Linq; -namespace Umbraco.Core.Composing +namespace Umbraco.Cms.Core.Composing { /// /// Provides a base class for builder collections. diff --git a/src/Umbraco.Core/Composing/CollectionBuilderBase.cs b/src/Umbraco.Core/Composing/CollectionBuilderBase.cs index 14089ba924..ab33a6ebef 100644 --- a/src/Umbraco.Core/Composing/CollectionBuilderBase.cs +++ b/src/Umbraco.Core/Composing/CollectionBuilderBase.cs @@ -2,9 +2,9 @@ using System; using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.DependencyInjection; -using Umbraco.Core.DependencyInjection; +using Umbraco.Extensions; -namespace Umbraco.Core.Composing +namespace Umbraco.Cms.Core.Composing { /// /// Provides a base class for collection builders. diff --git a/src/Umbraco.Core/Composing/ComponentCollection.cs b/src/Umbraco.Core/Composing/ComponentCollection.cs index 509962599c..1cd505027b 100644 --- a/src/Umbraco.Core/Composing/ComponentCollection.cs +++ b/src/Umbraco.Core/Composing/ComponentCollection.cs @@ -2,9 +2,10 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; -using Umbraco.Core.Logging; +using Umbraco.Cms.Core.Logging; +using Umbraco.Extensions; -namespace Umbraco.Core.Composing +namespace Umbraco.Cms.Core.Composing { /// /// Represents the collection of implementations. diff --git a/src/Umbraco.Core/Composing/ComponentCollectionBuilder.cs b/src/Umbraco.Core/Composing/ComponentCollectionBuilder.cs index 903e2199e7..1e21de0304 100644 --- a/src/Umbraco.Core/Composing/ComponentCollectionBuilder.cs +++ b/src/Umbraco.Core/Composing/ComponentCollectionBuilder.cs @@ -1,9 +1,9 @@ using System; using System.Collections.Generic; using Microsoft.Extensions.DependencyInjection; -using Umbraco.Core.Logging; +using Umbraco.Cms.Core.Logging; -namespace Umbraco.Core.Composing +namespace Umbraco.Cms.Core.Composing { /// /// Builds a . diff --git a/src/Umbraco.Core/Composing/ComponentComposer.cs b/src/Umbraco.Core/Composing/ComponentComposer.cs index fca0161d05..00bfb0b00f 100644 --- a/src/Umbraco.Core/Composing/ComponentComposer.cs +++ b/src/Umbraco.Core/Composing/ComponentComposer.cs @@ -1,6 +1,6 @@ -using Umbraco.Core.DependencyInjection; +using Umbraco.Cms.Core.DependencyInjection; -namespace Umbraco.Core.Composing +namespace Umbraco.Cms.Core.Composing { /// /// Provides a base class for composers which compose a component. diff --git a/src/Umbraco.Core/Composing/ComposeAfterAttribute.cs b/src/Umbraco.Core/Composing/ComposeAfterAttribute.cs index 95c39c7094..c12ddbcd3e 100644 --- a/src/Umbraco.Core/Composing/ComposeAfterAttribute.cs +++ b/src/Umbraco.Core/Composing/ComposeAfterAttribute.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Composing +namespace Umbraco.Cms.Core.Composing { /// /// Indicates that a composer requires another composer. diff --git a/src/Umbraco.Core/Composing/ComposeBeforeAttribute.cs b/src/Umbraco.Core/Composing/ComposeBeforeAttribute.cs index f88445b0e7..382772de8d 100644 --- a/src/Umbraco.Core/Composing/ComposeBeforeAttribute.cs +++ b/src/Umbraco.Core/Composing/ComposeBeforeAttribute.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Composing +namespace Umbraco.Cms.Core.Composing { /// /// Indicates that a component is required by another composer. diff --git a/src/Umbraco.Core/Composing/Composers.cs b/src/Umbraco.Core/Composing/Composers.cs index 91c8244324..2250d022d5 100644 --- a/src/Umbraco.Core/Composing/Composers.cs +++ b/src/Umbraco.Core/Composing/Composers.cs @@ -3,12 +3,11 @@ using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; -using Umbraco.Core.Collections; -using Umbraco.Core.Logging; using Microsoft.Extensions.Logging; -using Umbraco.Core.DependencyInjection; +using Umbraco.Cms.Core.Collections; +using Umbraco.Cms.Core.DependencyInjection; -namespace Umbraco.Core.Composing +namespace Umbraco.Cms.Core.Composing { // note: this class is NOT thread-safe in any ways diff --git a/src/Umbraco.Core/Composing/CompositionExtensions.cs b/src/Umbraco.Core/Composing/CompositionExtensions.cs index d7b143df38..74f30b81b6 100644 --- a/src/Umbraco.Core/Composing/CompositionExtensions.cs +++ b/src/Umbraco.Core/Composing/CompositionExtensions.cs @@ -1,9 +1,8 @@ using System; -using Umbraco.Core.DependencyInjection; -using Umbraco.Core.Composing; -using Umbraco.Web.PublishedCache; +using Umbraco.Cms.Core.DependencyInjection; +using Umbraco.Cms.Core.PublishedCache; -namespace Umbraco.Infrastructure.PublishedCache +namespace Umbraco.Extensions { public static class CompositionExtensions { diff --git a/src/Umbraco.Core/Composing/DefaultUmbracoAssemblyProvider.cs b/src/Umbraco.Core/Composing/DefaultUmbracoAssemblyProvider.cs index 75039f19f3..bd0deaf6bb 100644 --- a/src/Umbraco.Core/Composing/DefaultUmbracoAssemblyProvider.cs +++ b/src/Umbraco.Core/Composing/DefaultUmbracoAssemblyProvider.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Reflection; using Microsoft.Extensions.Logging; -namespace Umbraco.Core.Composing +namespace Umbraco.Cms.Core.Composing { /// /// Returns a list of scannable assemblies based on an entry point assembly and it's references diff --git a/src/Umbraco.Core/Composing/DisableAttribute.cs b/src/Umbraco.Core/Composing/DisableAttribute.cs index e826f1c472..b3cfe59f11 100644 --- a/src/Umbraco.Core/Composing/DisableAttribute.cs +++ b/src/Umbraco.Core/Composing/DisableAttribute.cs @@ -1,7 +1,7 @@ using System; using System.Reflection; -namespace Umbraco.Core.Composing +namespace Umbraco.Cms.Core.Composing { /// /// Indicates that a composer should be disabled. diff --git a/src/Umbraco.Core/Composing/DisableComposerAttribute.cs b/src/Umbraco.Core/Composing/DisableComposerAttribute.cs index 7adc5673ec..59b36178cf 100644 --- a/src/Umbraco.Core/Composing/DisableComposerAttribute.cs +++ b/src/Umbraco.Core/Composing/DisableComposerAttribute.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Composing +namespace Umbraco.Cms.Core.Composing { /// /// Indicates that a composer should be disabled. diff --git a/src/Umbraco.Core/Composing/EnableAttribute.cs b/src/Umbraco.Core/Composing/EnableAttribute.cs index 276a04cbec..91fdd9e7e5 100644 --- a/src/Umbraco.Core/Composing/EnableAttribute.cs +++ b/src/Umbraco.Core/Composing/EnableAttribute.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Composing +namespace Umbraco.Cms.Core.Composing { /// /// Indicates that a composer should be enabled. diff --git a/src/Umbraco.Core/Composing/EnableComposerAttribute.cs b/src/Umbraco.Core/Composing/EnableComposerAttribute.cs index a1bc0a8123..048a19a80f 100644 --- a/src/Umbraco.Core/Composing/EnableComposerAttribute.cs +++ b/src/Umbraco.Core/Composing/EnableComposerAttribute.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Composing +namespace Umbraco.Cms.Core.Composing { /// /// Indicates that a composer should be enabled. diff --git a/src/Umbraco.Core/Composing/FindAssembliesWithReferencesTo.cs b/src/Umbraco.Core/Composing/FindAssembliesWithReferencesTo.cs index eb6d784a96..5b554a5321 100644 --- a/src/Umbraco.Core/Composing/FindAssembliesWithReferencesTo.cs +++ b/src/Umbraco.Core/Composing/FindAssembliesWithReferencesTo.cs @@ -1,11 +1,10 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using Microsoft.Extensions.Logging; -namespace Umbraco.Core.Composing +namespace Umbraco.Cms.Core.Composing { /// /// Finds Assemblies from the entry point assemblies, it's dependencies and it's transitive dependencies that reference that targetAssemblyNames diff --git a/src/Umbraco.Core/Composing/HideFromTypeFinderAttribute.cs b/src/Umbraco.Core/Composing/HideFromTypeFinderAttribute.cs index 54c846b944..b985a79494 100644 --- a/src/Umbraco.Core/Composing/HideFromTypeFinderAttribute.cs +++ b/src/Umbraco.Core/Composing/HideFromTypeFinderAttribute.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Composing +namespace Umbraco.Cms.Core.Composing { /// /// Notifies the TypeFinder that it should ignore the class marked with this attribute. diff --git a/src/Umbraco.Core/Composing/IAssemblyProvider.cs b/src/Umbraco.Core/Composing/IAssemblyProvider.cs index bde97a9556..fdc942ae24 100644 --- a/src/Umbraco.Core/Composing/IAssemblyProvider.cs +++ b/src/Umbraco.Core/Composing/IAssemblyProvider.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.Reflection; -namespace Umbraco.Core.Composing +namespace Umbraco.Cms.Core.Composing { /// /// Provides a list of assemblies that can be scanned diff --git a/src/Umbraco.Core/Composing/IBuilderCollection.cs b/src/Umbraco.Core/Composing/IBuilderCollection.cs index 3ce729392d..5e78cf0c2f 100644 --- a/src/Umbraco.Core/Composing/IBuilderCollection.cs +++ b/src/Umbraco.Core/Composing/IBuilderCollection.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace Umbraco.Core.Composing +namespace Umbraco.Cms.Core.Composing { /// /// Represents a builder collection, ie an immutable enumeration of items. diff --git a/src/Umbraco.Core/Composing/ICollectionBuilder.cs b/src/Umbraco.Core/Composing/ICollectionBuilder.cs index a48d06d2dd..ea09558cad 100644 --- a/src/Umbraco.Core/Composing/ICollectionBuilder.cs +++ b/src/Umbraco.Core/Composing/ICollectionBuilder.cs @@ -1,7 +1,7 @@ using System; using Microsoft.Extensions.DependencyInjection; -namespace Umbraco.Core.Composing +namespace Umbraco.Cms.Core.Composing { /// /// Represents a collection builder. diff --git a/src/Umbraco.Core/Composing/IComponent.cs b/src/Umbraco.Core/Composing/IComponent.cs index dcd0365b12..8e9cf815e8 100644 --- a/src/Umbraco.Core/Composing/IComponent.cs +++ b/src/Umbraco.Core/Composing/IComponent.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Composing +namespace Umbraco.Cms.Core.Composing { /// /// Represents a component. diff --git a/src/Umbraco.Core/Composing/IComposer.cs b/src/Umbraco.Core/Composing/IComposer.cs index d67bb71461..6f1978ee3e 100644 --- a/src/Umbraco.Core/Composing/IComposer.cs +++ b/src/Umbraco.Core/Composing/IComposer.cs @@ -1,6 +1,6 @@ -using Umbraco.Core.DependencyInjection; +using Umbraco.Cms.Core.DependencyInjection; -namespace Umbraco.Core.Composing +namespace Umbraco.Cms.Core.Composing { /// /// Represents a composer. diff --git a/src/Umbraco.Core/Composing/ICoreComposer.cs b/src/Umbraco.Core/Composing/ICoreComposer.cs index 1e9e5fced5..24daae75b1 100644 --- a/src/Umbraco.Core/Composing/ICoreComposer.cs +++ b/src/Umbraco.Core/Composing/ICoreComposer.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Composing +namespace Umbraco.Cms.Core.Composing { /// /// Represents a core . diff --git a/src/Umbraco.Core/Composing/IDiscoverable.cs b/src/Umbraco.Core/Composing/IDiscoverable.cs index c7bbb57a14..153fde36b6 100644 --- a/src/Umbraco.Core/Composing/IDiscoverable.cs +++ b/src/Umbraco.Core/Composing/IDiscoverable.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Composing +namespace Umbraco.Cms.Core.Composing { public interface IDiscoverable { } diff --git a/src/Umbraco.Core/Composing/IRuntimeHash.cs b/src/Umbraco.Core/Composing/IRuntimeHash.cs index c2fb829cc6..b19b22a7e9 100644 --- a/src/Umbraco.Core/Composing/IRuntimeHash.cs +++ b/src/Umbraco.Core/Composing/IRuntimeHash.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Composing +namespace Umbraco.Cms.Core.Composing { /// /// Used to create a hash value of the current runtime diff --git a/src/Umbraco.Core/Composing/ITypeFinder.cs b/src/Umbraco.Core/Composing/ITypeFinder.cs index 7ed6084074..2cf6ca23f7 100644 --- a/src/Umbraco.Core/Composing/ITypeFinder.cs +++ b/src/Umbraco.Core/Composing/ITypeFinder.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.Reflection; -namespace Umbraco.Core.Composing +namespace Umbraco.Cms.Core.Composing { /// /// Used to find objects by implemented types, names and/or attributes diff --git a/src/Umbraco.Core/Composing/IUserComposer.cs b/src/Umbraco.Core/Composing/IUserComposer.cs index 96f6b38189..52ed4fdf5c 100644 --- a/src/Umbraco.Core/Composing/IUserComposer.cs +++ b/src/Umbraco.Core/Composing/IUserComposer.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Composing +namespace Umbraco.Cms.Core.Composing { /// /// Represents a user . diff --git a/src/Umbraco.Core/Composing/LazyCollectionBuilderBase.cs b/src/Umbraco.Core/Composing/LazyCollectionBuilderBase.cs index 46b06daf7d..d8721b0d19 100644 --- a/src/Umbraco.Core/Composing/LazyCollectionBuilderBase.cs +++ b/src/Umbraco.Core/Composing/LazyCollectionBuilderBase.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.Linq; -namespace Umbraco.Core.Composing +namespace Umbraco.Cms.Core.Composing { /// /// Implements a lazy collection builder. diff --git a/src/Umbraco.Core/Composing/LazyResolve.cs b/src/Umbraco.Core/Composing/LazyResolve.cs index 5a60b54d87..afa22f74b6 100644 --- a/src/Umbraco.Core/Composing/LazyResolve.cs +++ b/src/Umbraco.Core/Composing/LazyResolve.cs @@ -1,7 +1,7 @@ using System; using Microsoft.Extensions.DependencyInjection; -namespace Umbraco.Core.Composing +namespace Umbraco.Cms.Core.Composing { public class LazyResolve : Lazy where T : class diff --git a/src/Umbraco.Core/Composing/OrderedCollectionBuilderBase.cs b/src/Umbraco.Core/Composing/OrderedCollectionBuilderBase.cs index 2bd4c0d434..939561f557 100644 --- a/src/Umbraco.Core/Composing/OrderedCollectionBuilderBase.cs +++ b/src/Umbraco.Core/Composing/OrderedCollectionBuilderBase.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; -namespace Umbraco.Core.Composing +namespace Umbraco.Cms.Core.Composing { /// /// Implements an ordered collection builder. diff --git a/src/Umbraco.Core/Composing/ReferenceResolver.cs b/src/Umbraco.Core/Composing/ReferenceResolver.cs index caa3ef8561..6ecd425ac1 100644 --- a/src/Umbraco.Core/Composing/ReferenceResolver.cs +++ b/src/Umbraco.Core/Composing/ReferenceResolver.cs @@ -7,7 +7,7 @@ using System.Reflection; using System.Security; using Microsoft.Extensions.Logging; -namespace Umbraco.Core.Composing +namespace Umbraco.Cms.Core.Composing { /// /// Resolves assemblies that reference one of the specified "targetAssemblies" either directly or transitively. diff --git a/src/Umbraco.Core/Composing/RuntimeHash.cs b/src/Umbraco.Core/Composing/RuntimeHash.cs index 16665384c6..ae13b49915 100644 --- a/src/Umbraco.Core/Composing/RuntimeHash.cs +++ b/src/Umbraco.Core/Composing/RuntimeHash.cs @@ -1,9 +1,9 @@ using System.Collections.Generic; using System.IO; using System.Linq; -using Umbraco.Core.Logging; +using Umbraco.Cms.Core.Logging; -namespace Umbraco.Core.Composing +namespace Umbraco.Cms.Core.Composing { /// /// Determines the runtime hash based on file system paths to scan diff --git a/src/Umbraco.Core/Composing/RuntimeHashPaths.cs b/src/Umbraco.Core/Composing/RuntimeHashPaths.cs index c5a994c9a6..12a878ee94 100644 --- a/src/Umbraco.Core/Composing/RuntimeHashPaths.cs +++ b/src/Umbraco.Core/Composing/RuntimeHashPaths.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.IO; -namespace Umbraco.Core.Composing +namespace Umbraco.Cms.Core.Composing { /// /// Paths used to determine the diff --git a/src/Umbraco.Core/Composing/SetCollectionBuilderBase.cs b/src/Umbraco.Core/Composing/SetCollectionBuilderBase.cs index 9261423bbc..358aab75dd 100644 --- a/src/Umbraco.Core/Composing/SetCollectionBuilderBase.cs +++ b/src/Umbraco.Core/Composing/SetCollectionBuilderBase.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; -namespace Umbraco.Core.Composing +namespace Umbraco.Cms.Core.Composing { /// /// Implements an un-ordered collection builder. diff --git a/src/Umbraco.Core/Composing/TypeCollectionBuilderBase.cs b/src/Umbraco.Core/Composing/TypeCollectionBuilderBase.cs index 9229a95cc3..0bebf8bf8b 100644 --- a/src/Umbraco.Core/Composing/TypeCollectionBuilderBase.cs +++ b/src/Umbraco.Core/Composing/TypeCollectionBuilderBase.cs @@ -1,9 +1,9 @@ using System; using System.Collections.Generic; using Microsoft.Extensions.DependencyInjection; -using Umbraco.Core.DependencyInjection; +using Umbraco.Extensions; -namespace Umbraco.Core.Composing +namespace Umbraco.Cms.Core.Composing { /// /// Provides a base class for collections of types. diff --git a/src/Umbraco.Core/Composing/TypeFinder.cs b/src/Umbraco.Core/Composing/TypeFinder.cs index 4cfcd9090c..4ec46bbda0 100644 --- a/src/Umbraco.Core/Composing/TypeFinder.cs +++ b/src/Umbraco.Core/Composing/TypeFinder.cs @@ -5,10 +5,11 @@ using System.Linq; using System.Reflection; using System.Security; using System.Text; -using Umbraco.Core.Configuration.UmbracoSettings; using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.Configuration.UmbracoSettings; +using Umbraco.Extensions; -namespace Umbraco.Core.Composing +namespace Umbraco.Cms.Core.Composing { /// diff --git a/src/Umbraco.Core/Composing/TypeFinderConfig.cs b/src/Umbraco.Core/Composing/TypeFinderConfig.cs index ef862fd49d..7940773231 100644 --- a/src/Umbraco.Core/Composing/TypeFinderConfig.cs +++ b/src/Umbraco.Core/Composing/TypeFinderConfig.cs @@ -2,10 +2,10 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Options; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Configuration.UmbracoSettings; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Configuration.UmbracoSettings; -namespace Umbraco.Core.Composing +namespace Umbraco.Cms.Core.Composing { /// /// TypeFinder config via appSettings diff --git a/src/Umbraco.Core/Composing/TypeFinderExtensions.cs b/src/Umbraco.Core/Composing/TypeFinderExtensions.cs index e364790556..cad92aa17b 100644 --- a/src/Umbraco.Core/Composing/TypeFinderExtensions.cs +++ b/src/Umbraco.Core/Composing/TypeFinderExtensions.cs @@ -1,8 +1,9 @@ using System; using System.Collections.Generic; using System.Reflection; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Core.Composing +namespace Umbraco.Extensions { public static class TypeFinderExtensions { diff --git a/src/Umbraco.Core/Composing/TypeHelper.cs b/src/Umbraco.Core/Composing/TypeHelper.cs index 1987a4059c..d683e313be 100644 --- a/src/Umbraco.Core/Composing/TypeHelper.cs +++ b/src/Umbraco.Core/Composing/TypeHelper.cs @@ -5,10 +5,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Reflection; +using Umbraco.Extensions; -namespace Umbraco.Core.Composing +namespace Umbraco.Cms.Core.Composing { - + /// /// A utility class for type checking, this provides internal caching so that calls to these methods will be faster /// than doing a manual type check in c# @@ -19,10 +20,10 @@ namespace Umbraco.Core.Composing = new ConcurrentDictionary, PropertyInfo[]>(); private static readonly ConcurrentDictionary GetFieldsCache = new ConcurrentDictionary(); - + private static readonly Assembly[] EmptyAssemblies = new Assembly[0]; - + /// /// Based on a type we'll check if it is IEnumerable{T} (or similar) and if so we'll return a List{T}, this will also deal with array types and return List{T} for those too. diff --git a/src/Umbraco.Core/Composing/TypeLoader.cs b/src/Umbraco.Core/Composing/TypeLoader.cs index c7bac236a6..759647482f 100644 --- a/src/Umbraco.Core/Composing/TypeLoader.cs +++ b/src/Umbraco.Core/Composing/TypeLoader.cs @@ -6,14 +6,14 @@ using System.Reflection; using System.Runtime.Serialization; using System.Text; using System.Threading; -using Umbraco.Core.Cache; -using Umbraco.Core.Collections; -using Umbraco.Core.IO; -using Umbraco.Core.Logging; -using File = System.IO.File; using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Collections; +using Umbraco.Cms.Core.Logging; +using Umbraco.Extensions; +using File = System.IO.File; -namespace Umbraco.Core.Composing +namespace Umbraco.Cms.Core.Composing { /// /// Provides methods to find and instantiate types. diff --git a/src/Umbraco.Core/Composing/VaryingRuntimeHash.cs b/src/Umbraco.Core/Composing/VaryingRuntimeHash.cs index 034af3b80c..eec2adc637 100644 --- a/src/Umbraco.Core/Composing/VaryingRuntimeHash.cs +++ b/src/Umbraco.Core/Composing/VaryingRuntimeHash.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Composing +namespace Umbraco.Cms.Core.Composing { /// /// A runtime hash this is always different on each app startup diff --git a/src/Umbraco.Core/Composing/WeightAttribute.cs b/src/Umbraco.Core/Composing/WeightAttribute.cs index ec652ba9a3..1225abca0c 100644 --- a/src/Umbraco.Core/Composing/WeightAttribute.cs +++ b/src/Umbraco.Core/Composing/WeightAttribute.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Composing +namespace Umbraco.Cms.Core.Composing { /// /// Specifies the weight of pretty much anything. diff --git a/src/Umbraco.Core/Composing/WeightedCollectionBuilderBase.cs b/src/Umbraco.Core/Composing/WeightedCollectionBuilderBase.cs index 88eb61de76..e15df52039 100644 --- a/src/Umbraco.Core/Composing/WeightedCollectionBuilderBase.cs +++ b/src/Umbraco.Core/Composing/WeightedCollectionBuilderBase.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.Linq; -namespace Umbraco.Core.Composing +namespace Umbraco.Cms.Core.Composing { /// /// Implements a weighted collection builder. diff --git a/src/Umbraco.Core/Configuration/ConfigConnectionString.cs b/src/Umbraco.Core/Configuration/ConfigConnectionString.cs index 72408e212c..dab615da51 100644 --- a/src/Umbraco.Core/Configuration/ConfigConnectionString.cs +++ b/src/Umbraco.Core/Configuration/ConfigConnectionString.cs @@ -1,7 +1,7 @@ using System; using System.Data.Common; -namespace Umbraco.Core.Configuration +namespace Umbraco.Cms.Core.Configuration { public class ConfigConnectionString { @@ -35,7 +35,7 @@ namespace Umbraco.Core.Configuration { if (dataSource.EndsWith(".sdf")) { - return Constants.DbProviderNames.SqlCe; + return Umbraco.Cms.Core.Constants.DbProviderNames.SqlCe; } } @@ -44,17 +44,17 @@ namespace Umbraco.Core.Configuration { if (builder.TryGetValue("Database", out var db) && db is string database && !string.IsNullOrEmpty(database)) { - return Constants.DbProviderNames.SqlServer; + return Umbraco.Cms.Core.Constants.DbProviderNames.SqlServer; } if (builder.TryGetValue("AttachDbFileName", out var a) && a is string attachDbFileName && !string.IsNullOrEmpty(attachDbFileName)) { - return Constants.DbProviderNames.SqlServer; + return Umbraco.Cms.Core.Constants.DbProviderNames.SqlServer; } if (builder.TryGetValue("Initial Catalog", out var i) && i is string initialCatalog && !string.IsNullOrEmpty(initialCatalog)) { - return Constants.DbProviderNames.SqlServer; + return Umbraco.Cms.Core.Constants.DbProviderNames.SqlServer; } } diff --git a/src/Umbraco.Core/Configuration/ContentSettingsExtensions.cs b/src/Umbraco.Core/Configuration/ContentSettingsExtensions.cs index 31f4373fd2..ac4e6b0864 100644 --- a/src/Umbraco.Core/Configuration/ContentSettingsExtensions.cs +++ b/src/Umbraco.Core/Configuration/ContentSettingsExtensions.cs @@ -1,8 +1,7 @@ using System.Linq; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Configuration.UmbracoSettings; +using Umbraco.Cms.Core.Configuration.Models; -namespace Umbraco.Core.Configuration +namespace Umbraco.Extensions { public static class ContentSettingsExtensions { diff --git a/src/Umbraco.Core/Configuration/Extensions/HealthCheckSettingsExtensions.cs b/src/Umbraco.Core/Configuration/Extensions/HealthCheckSettingsExtensions.cs index ae842cb040..7655252981 100644 --- a/src/Umbraco.Core/Configuration/Extensions/HealthCheckSettingsExtensions.cs +++ b/src/Umbraco.Core/Configuration/Extensions/HealthCheckSettingsExtensions.cs @@ -1,7 +1,8 @@ using System; -using Umbraco.Core.Configuration.Models; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Configuration.Models; -namespace Umbraco.Core.Configuration.Extensions +namespace Umbraco.Extensions { public static class HealthCheckSettingsExtensions { diff --git a/src/Umbraco.Core/Configuration/GlobalSettingsExtensions.cs b/src/Umbraco.Core/Configuration/GlobalSettingsExtensions.cs index f9b2362e14..a0fd308490 100644 --- a/src/Umbraco.Core/Configuration/GlobalSettingsExtensions.cs +++ b/src/Umbraco.Core/Configuration/GlobalSettingsExtensions.cs @@ -1,8 +1,8 @@ using System; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; -namespace Umbraco.Core.Configuration +namespace Umbraco.Extensions { public static class GlobalSettingsExtensions { diff --git a/src/Umbraco.Core/Configuration/Grid/GridConfig.cs b/src/Umbraco.Core/Configuration/Grid/GridConfig.cs index d9816101fd..27d6820399 100644 --- a/src/Umbraco.Core/Configuration/Grid/GridConfig.cs +++ b/src/Umbraco.Core/Configuration/Grid/GridConfig.cs @@ -1,10 +1,10 @@ using Microsoft.Extensions.Logging; -using Umbraco.Core.Cache; -using Umbraco.Core.Hosting; -using Umbraco.Core.Manifest; -using Umbraco.Core.Serialization; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Manifest; +using Umbraco.Cms.Core.Serialization; -namespace Umbraco.Core.Configuration.Grid +namespace Umbraco.Cms.Core.Configuration.Grid { public class GridConfig : IGridConfig { diff --git a/src/Umbraco.Core/Configuration/Grid/GridEditorsConfig.cs b/src/Umbraco.Core/Configuration/Grid/GridEditorsConfig.cs index 6ee72f1d04..680c47590e 100644 --- a/src/Umbraco.Core/Configuration/Grid/GridEditorsConfig.cs +++ b/src/Umbraco.Core/Configuration/Grid/GridEditorsConfig.cs @@ -2,13 +2,14 @@ using System.Collections.Generic; using System.IO; using Microsoft.Extensions.Logging; -using Umbraco.Core.Cache; -using Umbraco.Core.Hosting; -using Umbraco.Core.Manifest; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Serialization; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Manifest; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Extensions; -namespace Umbraco.Core.Configuration.Grid +namespace Umbraco.Cms.Core.Configuration.Grid { internal class GridEditorsConfig : IGridEditorsConfig { diff --git a/src/Umbraco.Core/Configuration/Grid/IGridConfig.cs b/src/Umbraco.Core/Configuration/Grid/IGridConfig.cs index a1170c136e..d009eddd25 100644 --- a/src/Umbraco.Core/Configuration/Grid/IGridConfig.cs +++ b/src/Umbraco.Core/Configuration/Grid/IGridConfig.cs @@ -1,9 +1,4 @@ -using System; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Umbraco.Core.Configuration.Grid +namespace Umbraco.Cms.Core.Configuration.Grid { public interface IGridConfig { diff --git a/src/Umbraco.Core/Configuration/Grid/IGridEditorConfig.cs b/src/Umbraco.Core/Configuration/Grid/IGridEditorConfig.cs index 0edd2f10c5..4bd75042ca 100644 --- a/src/Umbraco.Core/Configuration/Grid/IGridEditorConfig.cs +++ b/src/Umbraco.Core/Configuration/Grid/IGridEditorConfig.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace Umbraco.Core.Configuration.Grid +namespace Umbraco.Cms.Core.Configuration.Grid { public interface IGridEditorConfig { diff --git a/src/Umbraco.Core/Configuration/Grid/IGridEditorsConfig.cs b/src/Umbraco.Core/Configuration/Grid/IGridEditorsConfig.cs index 418d9b9560..a49ae41d6c 100644 --- a/src/Umbraco.Core/Configuration/Grid/IGridEditorsConfig.cs +++ b/src/Umbraco.Core/Configuration/Grid/IGridEditorsConfig.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace Umbraco.Core.Configuration.Grid +namespace Umbraco.Cms.Core.Configuration.Grid { public interface IGridEditorsConfig { diff --git a/src/Umbraco.Core/Configuration/IConfigManipulator.cs b/src/Umbraco.Core/Configuration/IConfigManipulator.cs index 16c5a509f2..f0f4bcde63 100644 --- a/src/Umbraco.Core/Configuration/IConfigManipulator.cs +++ b/src/Umbraco.Core/Configuration/IConfigManipulator.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Configuration +namespace Umbraco.Cms.Core.Configuration { public interface IConfigManipulator { diff --git a/src/Umbraco.Core/Configuration/ICronTabParser.cs b/src/Umbraco.Core/Configuration/ICronTabParser.cs index 7124a098b3..565d9fa47b 100644 --- a/src/Umbraco.Core/Configuration/ICronTabParser.cs +++ b/src/Umbraco.Core/Configuration/ICronTabParser.cs @@ -3,7 +3,7 @@ using System; -namespace Umbraco.Core.Configuration +namespace Umbraco.Cms.Core.Configuration { /// /// Defines the contract for that allows the parsing of chrontab expressions. diff --git a/src/Umbraco.Core/Configuration/IMemberPasswordConfiguration.cs b/src/Umbraco.Core/Configuration/IMemberPasswordConfiguration.cs index a7c956a337..7bd8ab9ef2 100644 --- a/src/Umbraco.Core/Configuration/IMemberPasswordConfiguration.cs +++ b/src/Umbraco.Core/Configuration/IMemberPasswordConfiguration.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Configuration +namespace Umbraco.Cms.Core.Configuration { /// /// The password configuration for members diff --git a/src/Umbraco.Core/Configuration/IPasswordConfiguration.cs b/src/Umbraco.Core/Configuration/IPasswordConfiguration.cs index 0c143f22e6..4d042d9270 100644 --- a/src/Umbraco.Core/Configuration/IPasswordConfiguration.cs +++ b/src/Umbraco.Core/Configuration/IPasswordConfiguration.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Core.Configuration +namespace Umbraco.Cms.Core.Configuration { /// /// Password configuration diff --git a/src/Umbraco.Core/Configuration/ITypeFinderSettings.cs b/src/Umbraco.Core/Configuration/ITypeFinderSettings.cs index 15e72a1f40..9dc5805423 100644 --- a/src/Umbraco.Core/Configuration/ITypeFinderSettings.cs +++ b/src/Umbraco.Core/Configuration/ITypeFinderSettings.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Configuration +namespace Umbraco.Cms.Core.Configuration { public interface ITypeFinderSettings { diff --git a/src/Umbraco.Core/Configuration/IUmbracoConfigurationSection.cs b/src/Umbraco.Core/Configuration/IUmbracoConfigurationSection.cs index 2cf4049c3b..4a1e65f13f 100644 --- a/src/Umbraco.Core/Configuration/IUmbracoConfigurationSection.cs +++ b/src/Umbraco.Core/Configuration/IUmbracoConfigurationSection.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Configuration +namespace Umbraco.Cms.Core.Configuration { /// /// Represents an Umbraco configuration section which can be used to pass to UmbracoConfiguration.For{T} @@ -7,4 +7,4 @@ { } -} \ No newline at end of file +} diff --git a/src/Umbraco.Core/Configuration/IUmbracoVersion.cs b/src/Umbraco.Core/Configuration/IUmbracoVersion.cs index 665979189d..4e6e6e92e6 100644 --- a/src/Umbraco.Core/Configuration/IUmbracoVersion.cs +++ b/src/Umbraco.Core/Configuration/IUmbracoVersion.cs @@ -1,7 +1,7 @@ using System; -using Semver; +using Umbraco.Cms.Core.Semver; -namespace Umbraco.Core.Configuration +namespace Umbraco.Cms.Core.Configuration { public interface IUmbracoVersion { diff --git a/src/Umbraco.Core/Configuration/IUserPasswordConfiguration.cs b/src/Umbraco.Core/Configuration/IUserPasswordConfiguration.cs index ca9a7f3271..db27103a67 100644 --- a/src/Umbraco.Core/Configuration/IUserPasswordConfiguration.cs +++ b/src/Umbraco.Core/Configuration/IUserPasswordConfiguration.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Configuration +namespace Umbraco.Cms.Core.Configuration { /// /// The password configuration for back office users diff --git a/src/Umbraco.Core/Configuration/LocalTempStorage.cs b/src/Umbraco.Core/Configuration/LocalTempStorage.cs index 50eab639d0..696ec7900e 100644 --- a/src/Umbraco.Core/Configuration/LocalTempStorage.cs +++ b/src/Umbraco.Core/Configuration/LocalTempStorage.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Configuration +namespace Umbraco.Cms.Core.Configuration { public enum LocalTempStorage { diff --git a/src/Umbraco.Core/Configuration/MemberPasswordConfiguration.cs b/src/Umbraco.Core/Configuration/MemberPasswordConfiguration.cs index 8e7cd97f35..8bc98f4286 100644 --- a/src/Umbraco.Core/Configuration/MemberPasswordConfiguration.cs +++ b/src/Umbraco.Core/Configuration/MemberPasswordConfiguration.cs @@ -1,6 +1,4 @@ -using Umbraco.Core.Configuration.UmbracoSettings; - -namespace Umbraco.Core.Configuration +namespace Umbraco.Cms.Core.Configuration { /// /// The password configuration for back office users diff --git a/src/Umbraco.Core/Configuration/Models/ActiveDirectorySettings.cs b/src/Umbraco.Core/Configuration/Models/ActiveDirectorySettings.cs index 135b8b763c..700e3fe3e1 100644 --- a/src/Umbraco.Core/Configuration/Models/ActiveDirectorySettings.cs +++ b/src/Umbraco.Core/Configuration/Models/ActiveDirectorySettings.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Core.Configuration.Models +namespace Umbraco.Cms.Core.Configuration.Models { /// /// Typed configuration options for active directory settings. diff --git a/src/Umbraco.Core/Configuration/Models/ConnectionStrings.cs b/src/Umbraco.Core/Configuration/Models/ConnectionStrings.cs index 52b8a02478..9e6ab4cff1 100644 --- a/src/Umbraco.Core/Configuration/Models/ConnectionStrings.cs +++ b/src/Umbraco.Core/Configuration/Models/ConnectionStrings.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Core.Configuration.Models +namespace Umbraco.Cms.Core.Configuration.Models { /// /// Typed configuration options for connection strings. diff --git a/src/Umbraco.Core/Configuration/Models/ContentErrorPage.cs b/src/Umbraco.Core/Configuration/Models/ContentErrorPage.cs index 842b2e6fb7..53bc96bbf5 100644 --- a/src/Umbraco.Core/Configuration/Models/ContentErrorPage.cs +++ b/src/Umbraco.Core/Configuration/Models/ContentErrorPage.cs @@ -3,9 +3,9 @@ using System; using System.ComponentModel.DataAnnotations; -using Umbraco.Core.Configuration.Models.Validation; +using Umbraco.Cms.Core.Configuration.Models.Validation; -namespace Umbraco.Core.Configuration.Models +namespace Umbraco.Cms.Core.Configuration.Models { /// /// Typed configuration for a content error page. diff --git a/src/Umbraco.Core/Configuration/Models/ContentImagingSettings.cs b/src/Umbraco.Core/Configuration/Models/ContentImagingSettings.cs index d31c5cb6d7..ee21484dab 100644 --- a/src/Umbraco.Core/Configuration/Models/ContentImagingSettings.cs +++ b/src/Umbraco.Core/Configuration/Models/ContentImagingSettings.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Core.Configuration.Models +namespace Umbraco.Cms.Core.Configuration.Models { /// /// Typed configuration options for content imaging settings. diff --git a/src/Umbraco.Core/Configuration/Models/ContentNotificationSettings.cs b/src/Umbraco.Core/Configuration/Models/ContentNotificationSettings.cs index 48a131adfa..2fa92eb4b5 100644 --- a/src/Umbraco.Core/Configuration/Models/ContentNotificationSettings.cs +++ b/src/Umbraco.Core/Configuration/Models/ContentNotificationSettings.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Core.Configuration.Models +namespace Umbraco.Cms.Core.Configuration.Models { /// /// Typed configuration options for content notification settings. diff --git a/src/Umbraco.Core/Configuration/Models/ContentSettings.cs b/src/Umbraco.Core/Configuration/Models/ContentSettings.cs index 01ffffa190..6738956686 100644 --- a/src/Umbraco.Core/Configuration/Models/ContentSettings.cs +++ b/src/Umbraco.Core/Configuration/Models/ContentSettings.cs @@ -3,9 +3,9 @@ using System; using System.Collections.Generic; -using Umbraco.Core.Macros; +using Umbraco.Cms.Core.Macros; -namespace Umbraco.Core.Configuration.Models +namespace Umbraco.Cms.Core.Configuration.Models { /// /// Typed configuration options for content settings. diff --git a/src/Umbraco.Core/Configuration/Models/CoreDebugSettings.cs b/src/Umbraco.Core/Configuration/Models/CoreDebugSettings.cs index a263fb648a..1978e02f18 100644 --- a/src/Umbraco.Core/Configuration/Models/CoreDebugSettings.cs +++ b/src/Umbraco.Core/Configuration/Models/CoreDebugSettings.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Core.Configuration.Models +namespace Umbraco.Cms.Core.Configuration.Models { /// /// Typed configuration options for core debug settings. diff --git a/src/Umbraco.Core/Configuration/Models/DatabaseServerMessengerSettings.cs b/src/Umbraco.Core/Configuration/Models/DatabaseServerMessengerSettings.cs index 8ad87bbb4e..d2afea19e7 100644 --- a/src/Umbraco.Core/Configuration/Models/DatabaseServerMessengerSettings.cs +++ b/src/Umbraco.Core/Configuration/Models/DatabaseServerMessengerSettings.cs @@ -3,7 +3,7 @@ using System; -namespace Umbraco.Core.Configuration.Models +namespace Umbraco.Cms.Core.Configuration.Models { /// /// Typed configuration options for database server messaging settings. diff --git a/src/Umbraco.Core/Configuration/Models/DatabaseServerRegistrarSettings.cs b/src/Umbraco.Core/Configuration/Models/DatabaseServerRegistrarSettings.cs index ae2502d8af..66d35f6a36 100644 --- a/src/Umbraco.Core/Configuration/Models/DatabaseServerRegistrarSettings.cs +++ b/src/Umbraco.Core/Configuration/Models/DatabaseServerRegistrarSettings.cs @@ -3,7 +3,7 @@ using System; -namespace Umbraco.Core.Configuration.Models +namespace Umbraco.Cms.Core.Configuration.Models { /// /// Typed configuration options for database server registrar settings. diff --git a/src/Umbraco.Core/Configuration/Models/DisabledHealthCheckSettings.cs b/src/Umbraco.Core/Configuration/Models/DisabledHealthCheckSettings.cs index 38c71fd83f..a24ec5b923 100644 --- a/src/Umbraco.Core/Configuration/Models/DisabledHealthCheckSettings.cs +++ b/src/Umbraco.Core/Configuration/Models/DisabledHealthCheckSettings.cs @@ -3,7 +3,7 @@ using System; -namespace Umbraco.Core.Configuration.Models +namespace Umbraco.Cms.Core.Configuration.Models { /// /// Typed configuration options for disabled healthcheck settings. diff --git a/src/Umbraco.Core/Configuration/Models/ExceptionFilterSettings.cs b/src/Umbraco.Core/Configuration/Models/ExceptionFilterSettings.cs index 1a1362ff21..0a6bc32351 100644 --- a/src/Umbraco.Core/Configuration/Models/ExceptionFilterSettings.cs +++ b/src/Umbraco.Core/Configuration/Models/ExceptionFilterSettings.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Core.Configuration.Models +namespace Umbraco.Cms.Core.Configuration.Models { /// /// Typed configuration options for exception filter settings. diff --git a/src/Umbraco.Core/Configuration/Models/GlobalSettings.cs b/src/Umbraco.Core/Configuration/Models/GlobalSettings.cs index c6e5d92794..ada191a46b 100644 --- a/src/Umbraco.Core/Configuration/Models/GlobalSettings.cs +++ b/src/Umbraco.Core/Configuration/Models/GlobalSettings.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Core.Configuration.Models +namespace Umbraco.Cms.Core.Configuration.Models { /// /// Typed configuration options for global settings. diff --git a/src/Umbraco.Core/Configuration/Models/HealthChecksNotificationMethodSettings.cs b/src/Umbraco.Core/Configuration/Models/HealthChecksNotificationMethodSettings.cs index 03293180db..0ca03d6cc0 100644 --- a/src/Umbraco.Core/Configuration/Models/HealthChecksNotificationMethodSettings.cs +++ b/src/Umbraco.Core/Configuration/Models/HealthChecksNotificationMethodSettings.cs @@ -2,9 +2,9 @@ // See LICENSE for more details. using System.Collections.Generic; -using Umbraco.Core.HealthChecks; +using Umbraco.Cms.Core.HealthChecks; -namespace Umbraco.Core.Configuration.Models +namespace Umbraco.Cms.Core.Configuration.Models { /// /// Typed configuration options for healthcheck notification method settings. diff --git a/src/Umbraco.Core/Configuration/Models/HealthChecksNotificationSettings.cs b/src/Umbraco.Core/Configuration/Models/HealthChecksNotificationSettings.cs index 3e52a70b29..316b494a19 100644 --- a/src/Umbraco.Core/Configuration/Models/HealthChecksNotificationSettings.cs +++ b/src/Umbraco.Core/Configuration/Models/HealthChecksNotificationSettings.cs @@ -5,7 +5,7 @@ using System; using System.Collections.Generic; using System.Linq; -namespace Umbraco.Core.Configuration.Models +namespace Umbraco.Cms.Core.Configuration.Models { /// /// Typed configuration options for healthcheck notification settings. diff --git a/src/Umbraco.Core/Configuration/Models/HealthChecksSettings.cs b/src/Umbraco.Core/Configuration/Models/HealthChecksSettings.cs index e3ae9a3f96..ba7ccf1371 100644 --- a/src/Umbraco.Core/Configuration/Models/HealthChecksSettings.cs +++ b/src/Umbraco.Core/Configuration/Models/HealthChecksSettings.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; using System.Linq; -namespace Umbraco.Core.Configuration.Models +namespace Umbraco.Cms.Core.Configuration.Models { /// /// Typed configuration options for healthchecks settings. diff --git a/src/Umbraco.Core/Configuration/Models/HostingSettings.cs b/src/Umbraco.Core/Configuration/Models/HostingSettings.cs index 0478e9b7e1..981cf8a6db 100644 --- a/src/Umbraco.Core/Configuration/Models/HostingSettings.cs +++ b/src/Umbraco.Core/Configuration/Models/HostingSettings.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Core.Configuration.Models +namespace Umbraco.Cms.Core.Configuration.Models { /// /// Typed configuration options for hosting settings. diff --git a/src/Umbraco.Core/Configuration/Models/ImagingAutoFillUploadField.cs b/src/Umbraco.Core/Configuration/Models/ImagingAutoFillUploadField.cs index 999bcf2dff..462a90c351 100644 --- a/src/Umbraco.Core/Configuration/Models/ImagingAutoFillUploadField.cs +++ b/src/Umbraco.Core/Configuration/Models/ImagingAutoFillUploadField.cs @@ -2,9 +2,9 @@ // See LICENSE for more details. using System.ComponentModel.DataAnnotations; -using Umbraco.Core.Configuration.Models.Validation; +using Umbraco.Cms.Core.Configuration.Models.Validation; -namespace Umbraco.Core.Configuration.Models +namespace Umbraco.Cms.Core.Configuration.Models { /// /// Typed configuration options for image autofill upload settings. diff --git a/src/Umbraco.Core/Configuration/Models/ImagingCacheSettings.cs b/src/Umbraco.Core/Configuration/Models/ImagingCacheSettings.cs index 0a3e723722..e9bdd77545 100644 --- a/src/Umbraco.Core/Configuration/Models/ImagingCacheSettings.cs +++ b/src/Umbraco.Core/Configuration/Models/ImagingCacheSettings.cs @@ -4,7 +4,7 @@ using System; using System.IO; -namespace Umbraco.Core.Configuration.Models +namespace Umbraco.Cms.Core.Configuration.Models { /// /// Typed configuration options for image cache settings. diff --git a/src/Umbraco.Core/Configuration/Models/ImagingResizeSettings.cs b/src/Umbraco.Core/Configuration/Models/ImagingResizeSettings.cs index c95aad52ad..e71ed4f2e4 100644 --- a/src/Umbraco.Core/Configuration/Models/ImagingResizeSettings.cs +++ b/src/Umbraco.Core/Configuration/Models/ImagingResizeSettings.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Core.Configuration.Models +namespace Umbraco.Cms.Core.Configuration.Models { /// /// Typed configuration options for image resize settings. diff --git a/src/Umbraco.Core/Configuration/Models/ImagingSettings.cs b/src/Umbraco.Core/Configuration/Models/ImagingSettings.cs index 343e2a040f..273e53f384 100644 --- a/src/Umbraco.Core/Configuration/Models/ImagingSettings.cs +++ b/src/Umbraco.Core/Configuration/Models/ImagingSettings.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Core.Configuration.Models +namespace Umbraco.Cms.Core.Configuration.Models { /// /// Typed configuration options for imaging settings. diff --git a/src/Umbraco.Core/Configuration/Models/IndexCreatorSettings.cs b/src/Umbraco.Core/Configuration/Models/IndexCreatorSettings.cs index 9ea7348211..5ae43f8d39 100644 --- a/src/Umbraco.Core/Configuration/Models/IndexCreatorSettings.cs +++ b/src/Umbraco.Core/Configuration/Models/IndexCreatorSettings.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Core.Configuration.Models +namespace Umbraco.Cms.Core.Configuration.Models { /// /// Typed configuration options for index creator settings. diff --git a/src/Umbraco.Core/Configuration/Models/KeepAliveSettings.cs b/src/Umbraco.Core/Configuration/Models/KeepAliveSettings.cs index 57336d35ac..831ad8d84d 100644 --- a/src/Umbraco.Core/Configuration/Models/KeepAliveSettings.cs +++ b/src/Umbraco.Core/Configuration/Models/KeepAliveSettings.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Core.Configuration.Models +namespace Umbraco.Cms.Core.Configuration.Models { /// /// Typed configuration options for keep alive settings. diff --git a/src/Umbraco.Core/Configuration/Models/LoggingSettings.cs b/src/Umbraco.Core/Configuration/Models/LoggingSettings.cs index 49f2517f8f..3f762e7577 100644 --- a/src/Umbraco.Core/Configuration/Models/LoggingSettings.cs +++ b/src/Umbraco.Core/Configuration/Models/LoggingSettings.cs @@ -3,7 +3,7 @@ using System; -namespace Umbraco.Core.Configuration.Models +namespace Umbraco.Cms.Core.Configuration.Models { /// /// Typed configuration options for logging settings. diff --git a/src/Umbraco.Core/Configuration/Models/MemberPasswordConfigurationSettings.cs b/src/Umbraco.Core/Configuration/Models/MemberPasswordConfigurationSettings.cs index abd12ae023..33afc51db4 100644 --- a/src/Umbraco.Core/Configuration/Models/MemberPasswordConfigurationSettings.cs +++ b/src/Umbraco.Core/Configuration/Models/MemberPasswordConfigurationSettings.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Core.Configuration.Models +namespace Umbraco.Cms.Core.Configuration.Models { /// /// Typed configuration options for member password settings. diff --git a/src/Umbraco.Core/Configuration/Models/ModelsBuilderSettings.cs b/src/Umbraco.Core/Configuration/Models/ModelsBuilderSettings.cs index 4f5916822e..33d5bf534d 100644 --- a/src/Umbraco.Core/Configuration/Models/ModelsBuilderSettings.cs +++ b/src/Umbraco.Core/Configuration/Models/ModelsBuilderSettings.cs @@ -1,9 +1,9 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -using Umbraco.Configuration; +using Umbraco.Extensions; -namespace Umbraco.Core.Configuration.Models +namespace Umbraco.Cms.Core.Configuration.Models { /// /// Typed configuration options for models builder settings. diff --git a/src/Umbraco.Core/Configuration/Models/NuCacheSettings.cs b/src/Umbraco.Core/Configuration/Models/NuCacheSettings.cs index f98b1f422e..aa67038702 100644 --- a/src/Umbraco.Core/Configuration/Models/NuCacheSettings.cs +++ b/src/Umbraco.Core/Configuration/Models/NuCacheSettings.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Core.Configuration.Models +namespace Umbraco.Cms.Core.Configuration.Models { /// /// Typed configuration options for NuCache settings. diff --git a/src/Umbraco.Core/Configuration/Models/RequestHandlerSettings.cs b/src/Umbraco.Core/Configuration/Models/RequestHandlerSettings.cs index ceea0f9038..5f5032f7c3 100644 --- a/src/Umbraco.Core/Configuration/Models/RequestHandlerSettings.cs +++ b/src/Umbraco.Core/Configuration/Models/RequestHandlerSettings.cs @@ -2,9 +2,10 @@ // See LICENSE for more details. using System.Collections.Generic; -using Umbraco.Core.Configuration.UmbracoSettings; +using Umbraco.Cms.Core.Configuration.UmbracoSettings; +using Umbraco.Extensions; -namespace Umbraco.Core.Configuration.Models +namespace Umbraco.Cms.Core.Configuration.Models { /// /// Typed configuration options for request handler settings. diff --git a/src/Umbraco.Core/Configuration/Models/RuntimeSettings.cs b/src/Umbraco.Core/Configuration/Models/RuntimeSettings.cs index 97af22ea8a..c598dfb86b 100644 --- a/src/Umbraco.Core/Configuration/Models/RuntimeSettings.cs +++ b/src/Umbraco.Core/Configuration/Models/RuntimeSettings.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Core.Configuration.Models +namespace Umbraco.Cms.Core.Configuration.Models { /// /// Typed configuration options for runtime settings. diff --git a/src/Umbraco.Core/Configuration/Models/SecuritySettings.cs b/src/Umbraco.Core/Configuration/Models/SecuritySettings.cs index 25bbbb645d..a20e42ed08 100644 --- a/src/Umbraco.Core/Configuration/Models/SecuritySettings.cs +++ b/src/Umbraco.Core/Configuration/Models/SecuritySettings.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Core.Configuration.Models +namespace Umbraco.Cms.Core.Configuration.Models { /// /// Typed configuration options for security settings. diff --git a/src/Umbraco.Core/Configuration/Models/SmtpSettings.cs b/src/Umbraco.Core/Configuration/Models/SmtpSettings.cs index fb4462f76d..9ad22abaeb 100644 --- a/src/Umbraco.Core/Configuration/Models/SmtpSettings.cs +++ b/src/Umbraco.Core/Configuration/Models/SmtpSettings.cs @@ -3,9 +3,9 @@ using System.ComponentModel.DataAnnotations; using System.Net.Mail; -using Umbraco.Core.Configuration.Models.Validation; +using Umbraco.Cms.Core.Configuration.Models.Validation; -namespace Umbraco.Core.Configuration.Models +namespace Umbraco.Cms.Core.Configuration.Models { /// /// Matches MailKit.Security.SecureSocketOptions and defined locally to avoid having to take diff --git a/src/Umbraco.Core/Configuration/Models/TourSettings.cs b/src/Umbraco.Core/Configuration/Models/TourSettings.cs index 25c06b9975..c61c2316b7 100644 --- a/src/Umbraco.Core/Configuration/Models/TourSettings.cs +++ b/src/Umbraco.Core/Configuration/Models/TourSettings.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Core.Configuration.Models +namespace Umbraco.Cms.Core.Configuration.Models { /// /// Typed configuration options for tour settings. diff --git a/src/Umbraco.Core/Configuration/Models/TypeFinderSettings.cs b/src/Umbraco.Core/Configuration/Models/TypeFinderSettings.cs index 63295c7259..9c8fc2b9d3 100644 --- a/src/Umbraco.Core/Configuration/Models/TypeFinderSettings.cs +++ b/src/Umbraco.Core/Configuration/Models/TypeFinderSettings.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Core.Configuration.Models +namespace Umbraco.Cms.Core.Configuration.Models { /// /// Typed configuration options for type finder settings. diff --git a/src/Umbraco.Core/Configuration/Models/UmbracoPluginSettings.cs b/src/Umbraco.Core/Configuration/Models/UmbracoPluginSettings.cs index 907b29490d..6dcad67ce2 100644 --- a/src/Umbraco.Core/Configuration/Models/UmbracoPluginSettings.cs +++ b/src/Umbraco.Core/Configuration/Models/UmbracoPluginSettings.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; -namespace Umbraco.Core.Configuration.Models +namespace Umbraco.Cms.Core.Configuration.Models { /// /// Typed configuration options for the plugins. diff --git a/src/Umbraco.Core/Configuration/Models/UserPasswordConfigurationSettings.cs b/src/Umbraco.Core/Configuration/Models/UserPasswordConfigurationSettings.cs index 09b9200760..f609181460 100644 --- a/src/Umbraco.Core/Configuration/Models/UserPasswordConfigurationSettings.cs +++ b/src/Umbraco.Core/Configuration/Models/UserPasswordConfigurationSettings.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Core.Configuration.Models +namespace Umbraco.Cms.Core.Configuration.Models { /// /// Typed configuration options for user password settings. diff --git a/src/Umbraco.Core/Configuration/Models/Validation/ConfigurationValidatorBase.cs b/src/Umbraco.Core/Configuration/Models/Validation/ConfigurationValidatorBase.cs index 348c809a91..9f0a23467d 100644 --- a/src/Umbraco.Core/Configuration/Models/Validation/ConfigurationValidatorBase.cs +++ b/src/Umbraco.Core/Configuration/Models/Validation/ConfigurationValidatorBase.cs @@ -3,8 +3,9 @@ using System.Collections.Generic; using System.Linq; +using Umbraco.Extensions; -namespace Umbraco.Core.Configuration.Models.Validation +namespace Umbraco.Cms.Core.Configuration.Models.Validation { /// /// Base class for configuration validators. diff --git a/src/Umbraco.Core/Configuration/Models/Validation/ContentSettingsValidator.cs b/src/Umbraco.Core/Configuration/Models/Validation/ContentSettingsValidator.cs index fdfd6de59c..d21d6277bf 100644 --- a/src/Umbraco.Core/Configuration/Models/Validation/ContentSettingsValidator.cs +++ b/src/Umbraco.Core/Configuration/Models/Validation/ContentSettingsValidator.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; using Microsoft.Extensions.Options; -namespace Umbraco.Core.Configuration.Models.Validation +namespace Umbraco.Cms.Core.Configuration.Models.Validation { /// /// Validator for configuration representated as . diff --git a/src/Umbraco.Core/Configuration/Models/Validation/GlobalSettingsValidator.cs b/src/Umbraco.Core/Configuration/Models/Validation/GlobalSettingsValidator.cs index 6bc9dc0a6f..b963bddc06 100644 --- a/src/Umbraco.Core/Configuration/Models/Validation/GlobalSettingsValidator.cs +++ b/src/Umbraco.Core/Configuration/Models/Validation/GlobalSettingsValidator.cs @@ -3,7 +3,7 @@ using Microsoft.Extensions.Options; -namespace Umbraco.Core.Configuration.Models.Validation +namespace Umbraco.Cms.Core.Configuration.Models.Validation { /// /// Validator for configuration representated as . diff --git a/src/Umbraco.Core/Configuration/Models/Validation/HealthChecksSettingsValidator.cs b/src/Umbraco.Core/Configuration/Models/Validation/HealthChecksSettingsValidator.cs index 449415c37f..a8b63f39a0 100644 --- a/src/Umbraco.Core/Configuration/Models/Validation/HealthChecksSettingsValidator.cs +++ b/src/Umbraco.Core/Configuration/Models/Validation/HealthChecksSettingsValidator.cs @@ -3,7 +3,7 @@ using Microsoft.Extensions.Options; -namespace Umbraco.Core.Configuration.Models.Validation +namespace Umbraco.Cms.Core.Configuration.Models.Validation { /// /// Validator for configuration representated as . diff --git a/src/Umbraco.Core/Configuration/Models/Validation/RequestHandlerSettingsValidator.cs b/src/Umbraco.Core/Configuration/Models/Validation/RequestHandlerSettingsValidator.cs index 647c7438c6..6260341c18 100644 --- a/src/Umbraco.Core/Configuration/Models/Validation/RequestHandlerSettingsValidator.cs +++ b/src/Umbraco.Core/Configuration/Models/Validation/RequestHandlerSettingsValidator.cs @@ -3,7 +3,7 @@ using Microsoft.Extensions.Options; -namespace Umbraco.Core.Configuration.Models.Validation +namespace Umbraco.Cms.Core.Configuration.Models.Validation { /// /// Validator for configuration representated as . diff --git a/src/Umbraco.Core/Configuration/Models/Validation/ValidatableEntryBase.cs b/src/Umbraco.Core/Configuration/Models/Validation/ValidatableEntryBase.cs index 37380eb9a6..970146a27e 100644 --- a/src/Umbraco.Core/Configuration/Models/Validation/ValidatableEntryBase.cs +++ b/src/Umbraco.Core/Configuration/Models/Validation/ValidatableEntryBase.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; using System.ComponentModel.DataAnnotations; -namespace Umbraco.Core.Configuration.Models.Validation +namespace Umbraco.Cms.Core.Configuration.Models.Validation { /// /// Provides a base class for configuration models that can be validated based on data annotations. diff --git a/src/Umbraco.Core/Configuration/Models/WebRoutingSettings.cs b/src/Umbraco.Core/Configuration/Models/WebRoutingSettings.cs index d94fdd8496..2fe33603ca 100644 --- a/src/Umbraco.Core/Configuration/Models/WebRoutingSettings.cs +++ b/src/Umbraco.Core/Configuration/Models/WebRoutingSettings.cs @@ -1,9 +1,9 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.PublishedContent; -namespace Umbraco.Core.Configuration.Models +namespace Umbraco.Cms.Core.Configuration.Models { /// /// Typed configuration options for web routing settings. diff --git a/src/Umbraco.Core/Configuration/ModelsBuilderConfigExtensions.cs b/src/Umbraco.Core/Configuration/ModelsBuilderConfigExtensions.cs index ef80796c8b..3d620ee9e5 100644 --- a/src/Umbraco.Core/Configuration/ModelsBuilderConfigExtensions.cs +++ b/src/Umbraco.Core/Configuration/ModelsBuilderConfigExtensions.cs @@ -1,10 +1,9 @@ using System.Configuration; using System.IO; -using Umbraco.Core.Hosting; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.IO; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; -namespace Umbraco.Core.Configuration +namespace Umbraco.Extensions { public static class ModelsBuilderConfigExtensions { diff --git a/src/Umbraco.Core/Configuration/ModelsMode.cs b/src/Umbraco.Core/Configuration/ModelsMode.cs index c3b32b1cab..1917f2b4cd 100644 --- a/src/Umbraco.Core/Configuration/ModelsMode.cs +++ b/src/Umbraco.Core/Configuration/ModelsMode.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Configuration +namespace Umbraco.Cms.Core.Configuration { /// /// Defines the models generation modes. diff --git a/src/Umbraco.Core/Configuration/ModelsModeExtensions.cs b/src/Umbraco.Core/Configuration/ModelsModeExtensions.cs index 6aae79ff8a..f5f4e9e09c 100644 --- a/src/Umbraco.Core/Configuration/ModelsModeExtensions.cs +++ b/src/Umbraco.Core/Configuration/ModelsModeExtensions.cs @@ -1,6 +1,6 @@ -using Umbraco.Core.Configuration; +using Umbraco.Cms.Core.Configuration; -namespace Umbraco.Configuration +namespace Umbraco.Extensions { /// /// Provides extensions for the enumeration. diff --git a/src/Umbraco.Core/Configuration/PasswordConfiguration.cs b/src/Umbraco.Core/Configuration/PasswordConfiguration.cs index 0c5ed9adb0..506821df6d 100644 --- a/src/Umbraco.Core/Configuration/PasswordConfiguration.cs +++ b/src/Umbraco.Core/Configuration/PasswordConfiguration.cs @@ -1,7 +1,6 @@ using System; -using Umbraco.Core.Configuration.UmbracoSettings; -namespace Umbraco.Core.Configuration +namespace Umbraco.Cms.Core.Configuration { public abstract class PasswordConfiguration : IPasswordConfiguration { diff --git a/src/Umbraco.Core/Configuration/UmbracoSettings/IChar.cs b/src/Umbraco.Core/Configuration/UmbracoSettings/IChar.cs index bd33472ea9..4073a12149 100644 --- a/src/Umbraco.Core/Configuration/UmbracoSettings/IChar.cs +++ b/src/Umbraco.Core/Configuration/UmbracoSettings/IChar.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Configuration.UmbracoSettings +namespace Umbraco.Cms.Core.Configuration.UmbracoSettings { public interface IChar { diff --git a/src/Umbraco.Core/Configuration/UmbracoSettings/IImagingAutoFillUploadField.cs b/src/Umbraco.Core/Configuration/UmbracoSettings/IImagingAutoFillUploadField.cs index 11b5e42e78..c7d91a6d0a 100644 --- a/src/Umbraco.Core/Configuration/UmbracoSettings/IImagingAutoFillUploadField.cs +++ b/src/Umbraco.Core/Configuration/UmbracoSettings/IImagingAutoFillUploadField.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Configuration.UmbracoSettings +namespace Umbraco.Cms.Core.Configuration.UmbracoSettings { public interface IImagingAutoFillUploadField { diff --git a/src/Umbraco.Core/Configuration/UmbracoSettings/IPasswordConfigurationSection.cs b/src/Umbraco.Core/Configuration/UmbracoSettings/IPasswordConfigurationSection.cs index a561b7808e..d79d8940c3 100644 --- a/src/Umbraco.Core/Configuration/UmbracoSettings/IPasswordConfigurationSection.cs +++ b/src/Umbraco.Core/Configuration/UmbracoSettings/IPasswordConfigurationSection.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Configuration.UmbracoSettings +namespace Umbraco.Cms.Core.Configuration.UmbracoSettings { public interface IPasswordConfigurationSection : IUmbracoConfigurationSection { diff --git a/src/Umbraco.Core/Configuration/UmbracoSettings/ITypeFinderConfig.cs b/src/Umbraco.Core/Configuration/UmbracoSettings/ITypeFinderConfig.cs index a290c26d15..903f21f21a 100644 --- a/src/Umbraco.Core/Configuration/UmbracoSettings/ITypeFinderConfig.cs +++ b/src/Umbraco.Core/Configuration/UmbracoSettings/ITypeFinderConfig.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace Umbraco.Core.Configuration.UmbracoSettings +namespace Umbraco.Cms.Core.Configuration.UmbracoSettings { public interface ITypeFinderConfig { diff --git a/src/Umbraco.Core/Configuration/UmbracoVersion.cs b/src/Umbraco.Core/Configuration/UmbracoVersion.cs index 2e45be6cc6..c67ae5a7e5 100644 --- a/src/Umbraco.Core/Configuration/UmbracoVersion.cs +++ b/src/Umbraco.Core/Configuration/UmbracoVersion.cs @@ -1,8 +1,9 @@ using System; using System.Reflection; -using Semver; +using Umbraco.Cms.Core.Semver; +using Umbraco.Extensions; -namespace Umbraco.Core.Configuration +namespace Umbraco.Cms.Core.Configuration { /// /// Represents the version of the executing code. diff --git a/src/Umbraco.Core/Configuration/UserPasswordConfiguration.cs b/src/Umbraco.Core/Configuration/UserPasswordConfiguration.cs index 07e6603cee..6c30fbba71 100644 --- a/src/Umbraco.Core/Configuration/UserPasswordConfiguration.cs +++ b/src/Umbraco.Core/Configuration/UserPasswordConfiguration.cs @@ -1,6 +1,4 @@ -using Umbraco.Core.Configuration.UmbracoSettings; - -namespace Umbraco.Core.Configuration +namespace Umbraco.Cms.Core.Configuration { /// /// The password configuration for back office users diff --git a/src/Umbraco.Core/Constants-AppSettings.cs b/src/Umbraco.Core/Constants-AppSettings.cs index 594be2966a..1fd3720bb9 100644 --- a/src/Umbraco.Core/Constants-AppSettings.cs +++ b/src/Umbraco.Core/Constants-AppSettings.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core +namespace Umbraco.Cms.Core { public static partial class Constants { diff --git a/src/Umbraco.Core/Constants-Applications.cs b/src/Umbraco.Core/Constants-Applications.cs index cf4f80d87b..da945731af 100644 --- a/src/Umbraco.Core/Constants-Applications.cs +++ b/src/Umbraco.Core/Constants-Applications.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core +namespace Umbraco.Cms.Core { public static partial class Constants { diff --git a/src/Umbraco.Core/Constants-Composing.cs b/src/Umbraco.Core/Constants-Composing.cs index e65629a278..a92f71ee04 100644 --- a/src/Umbraco.Core/Constants-Composing.cs +++ b/src/Umbraco.Core/Constants-Composing.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core +namespace Umbraco.Cms.Core { /// /// Defines constants. diff --git a/src/Umbraco.Core/Constants-Configuration.cs b/src/Umbraco.Core/Constants-Configuration.cs index 451ac5d438..6ad3e0fda0 100644 --- a/src/Umbraco.Core/Constants-Configuration.cs +++ b/src/Umbraco.Core/Constants-Configuration.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core +namespace Umbraco.Cms.Core { public static partial class Constants { diff --git a/src/Umbraco.Core/Constants-Conventions.cs b/src/Umbraco.Core/Constants-Conventions.cs index 0bfb890abd..92b1113ad0 100644 --- a/src/Umbraco.Core/Constants-Conventions.cs +++ b/src/Umbraco.Core/Constants-Conventions.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using Umbraco.Core.Models; - -namespace Umbraco.Core +namespace Umbraco.Cms.Core { public static partial class Constants { diff --git a/src/Umbraco.Core/Constants-DataTypes.cs b/src/Umbraco.Core/Constants-DataTypes.cs index c6f6c6478e..2cbc254e28 100644 --- a/src/Umbraco.Core/Constants-DataTypes.cs +++ b/src/Umbraco.Core/Constants-DataTypes.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core +namespace Umbraco.Cms.Core { public static partial class Constants { diff --git a/src/Umbraco.Core/Constants-DatabaseProviders.cs b/src/Umbraco.Core/Constants-DatabaseProviders.cs index e93e524bbc..da82746445 100644 --- a/src/Umbraco.Core/Constants-DatabaseProviders.cs +++ b/src/Umbraco.Core/Constants-DatabaseProviders.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core +namespace Umbraco.Cms.Core { public static partial class Constants { diff --git a/src/Umbraco.Core/Constants-DeploySelector.cs b/src/Umbraco.Core/Constants-DeploySelector.cs index f6f3f5fbae..30daacf42b 100644 --- a/src/Umbraco.Core/Constants-DeploySelector.cs +++ b/src/Umbraco.Core/Constants-DeploySelector.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core +namespace Umbraco.Cms.Core { public static partial class Constants { diff --git a/src/Umbraco.Core/Constants-HealthChecks.cs b/src/Umbraco.Core/Constants-HealthChecks.cs index c582e8ac34..5770bd07e4 100644 --- a/src/Umbraco.Core/Constants-HealthChecks.cs +++ b/src/Umbraco.Core/Constants-HealthChecks.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core +namespace Umbraco.Cms.Core { /// /// Defines constants. diff --git a/src/Umbraco.Core/Constants-Icons.cs b/src/Umbraco.Core/Constants-Icons.cs index 05213ed1c4..73051f5e95 100644 --- a/src/Umbraco.Core/Constants-Icons.cs +++ b/src/Umbraco.Core/Constants-Icons.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core +namespace Umbraco.Cms.Core { public static partial class Constants { diff --git a/src/Umbraco.Core/Constants-Indexes.cs b/src/Umbraco.Core/Constants-Indexes.cs index 1add0f721b..8384faa08d 100644 --- a/src/Umbraco.Core/Constants-Indexes.cs +++ b/src/Umbraco.Core/Constants-Indexes.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core +namespace Umbraco.Cms.Core { public static partial class Constants { diff --git a/src/Umbraco.Core/Constants-ModelsBuilder.cs b/src/Umbraco.Core/Constants-ModelsBuilder.cs index 28e70ed383..289c0355a8 100644 --- a/src/Umbraco.Core/Constants-ModelsBuilder.cs +++ b/src/Umbraco.Core/Constants-ModelsBuilder.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core +namespace Umbraco.Cms.Core { /// /// Defines constants. @@ -10,8 +10,7 @@ /// public static class ModelsBuilder { - - public const string DefaultModelsNamespace = "Umbraco.Web.PublishedModels"; + public const string DefaultModelsNamespace = "Umbraco.Cms.Web.Common.PublishedModels"; } } } diff --git a/src/Umbraco.Core/Constants-ObjectTypes.cs b/src/Umbraco.Core/Constants-ObjectTypes.cs index dacd7d9fc5..0a9847b848 100644 --- a/src/Umbraco.Core/Constants-ObjectTypes.cs +++ b/src/Umbraco.Core/Constants-ObjectTypes.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core +namespace Umbraco.Cms.Core { public static partial class Constants { diff --git a/src/Umbraco.Core/Constants-PackageRepository.cs b/src/Umbraco.Core/Constants-PackageRepository.cs index 42cf61f982..96ef39b7c1 100644 --- a/src/Umbraco.Core/Constants-PackageRepository.cs +++ b/src/Umbraco.Core/Constants-PackageRepository.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core +namespace Umbraco.Cms.Core { public static partial class Constants { diff --git a/src/Umbraco.Core/Constants-PropertyEditors.cs b/src/Umbraco.Core/Constants-PropertyEditors.cs index eb24cf4229..815f85b3a6 100644 --- a/src/Umbraco.Core/Constants-PropertyEditors.cs +++ b/src/Umbraco.Core/Constants-PropertyEditors.cs @@ -1,6 +1,6 @@ -using Umbraco.Core.PropertyEditors; +using Umbraco.Cms.Core.PropertyEditors; -namespace Umbraco.Core +namespace Umbraco.Cms.Core { public static partial class Constants { diff --git a/src/Umbraco.Core/Constants-PropertyTypeGroups.cs b/src/Umbraco.Core/Constants-PropertyTypeGroups.cs index d3402e69f8..a8dc3c84f8 100644 --- a/src/Umbraco.Core/Constants-PropertyTypeGroups.cs +++ b/src/Umbraco.Core/Constants-PropertyTypeGroups.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core +namespace Umbraco.Cms.Core { public static partial class Constants { diff --git a/src/Umbraco.Core/Constants-Security.cs b/src/Umbraco.Core/Constants-Security.cs index d50e5390d2..51b7a1824c 100644 --- a/src/Umbraco.Core/Constants-Security.cs +++ b/src/Umbraco.Core/Constants-Security.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core +namespace Umbraco.Cms.Core { public static partial class Constants { diff --git a/src/Umbraco.Core/Constants-SqlTemplates.cs b/src/Umbraco.Core/Constants-SqlTemplates.cs index 5a78b62f5b..116f04925e 100644 --- a/src/Umbraco.Core/Constants-SqlTemplates.cs +++ b/src/Umbraco.Core/Constants-SqlTemplates.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core +namespace Umbraco.Cms.Core { public static partial class Constants { diff --git a/src/Umbraco.Core/Constants-SvgSanitizer.cs b/src/Umbraco.Core/Constants-SvgSanitizer.cs index c92b9f56c7..048bf404d4 100644 --- a/src/Umbraco.Core/Constants-SvgSanitizer.cs +++ b/src/Umbraco.Core/Constants-SvgSanitizer.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace Umbraco.Core +namespace Umbraco.Cms.Core { public static partial class Constants { diff --git a/src/Umbraco.Core/Constants-System.cs b/src/Umbraco.Core/Constants-System.cs index 837db01b63..44ee99c420 100644 --- a/src/Umbraco.Core/Constants-System.cs +++ b/src/Umbraco.Core/Constants-System.cs @@ -1,4 +1,4 @@ - namespace Umbraco.Core + namespace Umbraco.Cms.Core { public static partial class Constants { diff --git a/src/Umbraco.Core/Constants-SystemDirectories.cs b/src/Umbraco.Core/Constants-SystemDirectories.cs index 464896edd9..46eab35343 100644 --- a/src/Umbraco.Core/Constants-SystemDirectories.cs +++ b/src/Umbraco.Core/Constants-SystemDirectories.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core +namespace Umbraco.Cms.Core { public static partial class Constants { diff --git a/src/Umbraco.Core/Constants-UdiEntityType.cs b/src/Umbraco.Core/Constants-UdiEntityType.cs index aaaa47d4b2..01e9ca213d 100644 --- a/src/Umbraco.Core/Constants-UdiEntityType.cs +++ b/src/Umbraco.Core/Constants-UdiEntityType.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core +namespace Umbraco.Cms.Core { public static partial class Constants { diff --git a/src/Umbraco.Core/Constants-Web.cs b/src/Umbraco.Core/Constants-Web.cs index d63106daf6..13cd7d7ad3 100644 --- a/src/Umbraco.Core/Constants-Web.cs +++ b/src/Umbraco.Core/Constants-Web.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core +namespace Umbraco.Cms.Core { public static partial class Constants { diff --git a/src/Umbraco.Core/ContentApps/ContentAppFactoryCollection.cs b/src/Umbraco.Core/ContentApps/ContentAppFactoryCollection.cs index 738da5ef60..d8b3e04772 100644 --- a/src/Umbraco.Core/ContentApps/ContentAppFactoryCollection.cs +++ b/src/Umbraco.Core/ContentApps/ContentAppFactoryCollection.cs @@ -1,13 +1,13 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Core.Composing; -using Umbraco.Core.Models.ContentEditing; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Security; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Security; +using Umbraco.Extensions; -namespace Umbraco.Web.ContentApps +namespace Umbraco.Cms.Core.ContentApps { public class ContentAppFactoryCollection : BuilderCollectionBase { diff --git a/src/Umbraco.Core/ContentApps/ContentAppFactoryCollectionBuilder.cs b/src/Umbraco.Core/ContentApps/ContentAppFactoryCollectionBuilder.cs index 138c426043..3c35054e9b 100644 --- a/src/Umbraco.Core/ContentApps/ContentAppFactoryCollectionBuilder.cs +++ b/src/Umbraco.Core/ContentApps/ContentAppFactoryCollectionBuilder.cs @@ -3,15 +3,13 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Core.Composing; -using Umbraco.Core.IO; -using Umbraco.Core.Manifest; -using Umbraco.Core.Models.ContentEditing; -using Umbraco.Core.Models.Identity; -using Umbraco.Core.Security; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Manifest; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Security; -namespace Umbraco.Web.ContentApps +namespace Umbraco.Cms.Core.ContentApps { public class ContentAppFactoryCollectionBuilder : OrderedCollectionBuilderBase { diff --git a/src/Umbraco.Core/ContentApps/ContentEditorContentAppFactory.cs b/src/Umbraco.Core/ContentApps/ContentEditorContentAppFactory.cs index 34652744ee..44cd9d5bbe 100644 --- a/src/Umbraco.Core/ContentApps/ContentEditorContentAppFactory.cs +++ b/src/Umbraco.Core/ContentApps/ContentEditorContentAppFactory.cs @@ -1,11 +1,9 @@ -using System; -using System.Collections.Generic; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Models.ContentEditing; -using Umbraco.Core.Models.Membership; +using System.Collections.Generic; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Models.Membership; -namespace Umbraco.Web.ContentApps +namespace Umbraco.Cms.Core.ContentApps { public class ContentEditorContentAppFactory : IContentAppFactory { diff --git a/src/Umbraco.Core/ContentApps/ContentInfoContentAppFactory.cs b/src/Umbraco.Core/ContentApps/ContentInfoContentAppFactory.cs index abad7f4bf8..865218b134 100644 --- a/src/Umbraco.Core/ContentApps/ContentInfoContentAppFactory.cs +++ b/src/Umbraco.Core/ContentApps/ContentInfoContentAppFactory.cs @@ -1,10 +1,9 @@ -using System; -using System.Collections.Generic; -using Umbraco.Core.Models; -using Umbraco.Core.Models.ContentEditing; -using Umbraco.Core.Models.Membership; +using System.Collections.Generic; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Models.Membership; -namespace Umbraco.Web.ContentApps +namespace Umbraco.Cms.Core.ContentApps { public class ContentInfoContentAppFactory : IContentAppFactory { diff --git a/src/Umbraco.Core/ContentApps/ContentTypeDesignContentAppFactory.cs b/src/Umbraco.Core/ContentApps/ContentTypeDesignContentAppFactory.cs index 361d59a5d5..dd9502ae63 100644 --- a/src/Umbraco.Core/ContentApps/ContentTypeDesignContentAppFactory.cs +++ b/src/Umbraco.Core/ContentApps/ContentTypeDesignContentAppFactory.cs @@ -1,10 +1,9 @@ -using System; -using System.Collections.Generic; -using Umbraco.Core.Models; -using Umbraco.Core.Models.ContentEditing; -using Umbraco.Core.Models.Membership; +using System.Collections.Generic; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Models.Membership; -namespace Umbraco.Web.ContentApps +namespace Umbraco.Cms.Core.ContentApps { public class ContentTypeDesignContentAppFactory : IContentAppFactory { diff --git a/src/Umbraco.Core/ContentApps/ContentTypeListViewContentAppFactory.cs b/src/Umbraco.Core/ContentApps/ContentTypeListViewContentAppFactory.cs index a04ab04668..079f639acf 100644 --- a/src/Umbraco.Core/ContentApps/ContentTypeListViewContentAppFactory.cs +++ b/src/Umbraco.Core/ContentApps/ContentTypeListViewContentAppFactory.cs @@ -1,10 +1,9 @@ -using System; -using System.Collections.Generic; -using Umbraco.Core.Models; -using Umbraco.Core.Models.ContentEditing; -using Umbraco.Core.Models.Membership; +using System.Collections.Generic; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Models.Membership; -namespace Umbraco.Web.ContentApps +namespace Umbraco.Cms.Core.ContentApps { public class ContentTypeListViewContentAppFactory : IContentAppFactory { diff --git a/src/Umbraco.Core/ContentApps/ContentTypePermissionsContentAppFactory.cs b/src/Umbraco.Core/ContentApps/ContentTypePermissionsContentAppFactory.cs index a86c4327fd..872bebda62 100644 --- a/src/Umbraco.Core/ContentApps/ContentTypePermissionsContentAppFactory.cs +++ b/src/Umbraco.Core/ContentApps/ContentTypePermissionsContentAppFactory.cs @@ -1,10 +1,9 @@ -using System; -using System.Collections.Generic; -using Umbraco.Core.Models; -using Umbraco.Core.Models.ContentEditing; -using Umbraco.Core.Models.Membership; +using System.Collections.Generic; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Models.Membership; -namespace Umbraco.Web.ContentApps +namespace Umbraco.Cms.Core.ContentApps { public class ContentTypePermissionsContentAppFactory : IContentAppFactory { diff --git a/src/Umbraco.Core/ContentApps/ContentTypeTemplatesContentAppFactory.cs b/src/Umbraco.Core/ContentApps/ContentTypeTemplatesContentAppFactory.cs index e20e2ef9c5..38a8fd388e 100644 --- a/src/Umbraco.Core/ContentApps/ContentTypeTemplatesContentAppFactory.cs +++ b/src/Umbraco.Core/ContentApps/ContentTypeTemplatesContentAppFactory.cs @@ -1,10 +1,9 @@ -using System; -using System.Collections.Generic; -using Umbraco.Core.Models; -using Umbraco.Core.Models.ContentEditing; -using Umbraco.Core.Models.Membership; +using System.Collections.Generic; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Models.Membership; -namespace Umbraco.Web.ContentApps +namespace Umbraco.Cms.Core.ContentApps { public class ContentTypeTemplatesContentAppFactory : IContentAppFactory { diff --git a/src/Umbraco.Core/ContentApps/ListViewContentAppFactory.cs b/src/Umbraco.Core/ContentApps/ListViewContentAppFactory.cs index ada6bb6cd7..e945f7ffd4 100644 --- a/src/Umbraco.Core/ContentApps/ListViewContentAppFactory.cs +++ b/src/Umbraco.Core/ContentApps/ListViewContentAppFactory.cs @@ -1,14 +1,13 @@ using System; using System.Collections.Generic; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Models.ContentEditing; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Services; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; -namespace Umbraco.Web.ContentApps +namespace Umbraco.Cms.Core.ContentApps { public class ListViewContentAppFactory : IContentAppFactory { @@ -36,14 +35,14 @@ namespace Umbraco.Web.ContentApps case IContent content: contentTypeAlias = content.ContentType.Alias; entityType = "content"; - dtdId = Core.Constants.DataTypes.DefaultContentListView; + dtdId = Constants.DataTypes.DefaultContentListView; break; - case IMedia media when !media.ContentType.IsContainer && media.ContentType.Alias != Core.Constants.Conventions.MediaTypes.Folder: + case IMedia media when !media.ContentType.IsContainer && media.ContentType.Alias != Constants.Conventions.MediaTypes.Folder: return null; case IMedia media: contentTypeAlias = media.ContentType.Alias; entityType = "media"; - dtdId = Core.Constants.DataTypes.DefaultMediaListView; + dtdId = Constants.DataTypes.DefaultMediaListView; break; default: return null; @@ -72,7 +71,7 @@ namespace Umbraco.Web.ContentApps Weight = Weight }; - var customDtdName = Core.Constants.Conventions.DataTypes.ListViewPrefix + contentTypeAlias; + var customDtdName = Constants.Conventions.DataTypes.ListViewPrefix + contentTypeAlias; //first try to get the custom one if there is one var dt = dataTypeService.GetDataType(customDtdName) @@ -121,7 +120,7 @@ namespace Umbraco.Web.ContentApps { new ContentPropertyDisplay { - Alias = $"{Core.Constants.PropertyEditors.InternalGenericPropertiesPrefix}containerView", + Alias = $"{Constants.PropertyEditors.InternalGenericPropertiesPrefix}containerView", Label = "", Value = null, View = editor.GetValueEditor().View, diff --git a/src/Umbraco.Core/ConventionsHelper.cs b/src/Umbraco.Core/ConventionsHelper.cs index d4b784875b..f5e0b168b9 100644 --- a/src/Umbraco.Core/ConventionsHelper.cs +++ b/src/Umbraco.Core/ConventionsHelper.cs @@ -1,8 +1,8 @@ using System.Collections.Generic; -using Umbraco.Core.Models; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Strings; -namespace Umbraco.Core +namespace Umbraco.Cms.Core { public static class ConventionsHelper { diff --git a/src/Umbraco.Core/CustomBooleanTypeConverter.cs b/src/Umbraco.Core/CustomBooleanTypeConverter.cs index dc4c5472e1..e528b9638d 100644 --- a/src/Umbraco.Core/CustomBooleanTypeConverter.cs +++ b/src/Umbraco.Core/CustomBooleanTypeConverter.cs @@ -1,7 +1,7 @@ using System; using System.ComponentModel; -namespace Umbraco.Core +namespace Umbraco.Cms.Core { /// /// Allows for converting string representations of 0 and 1 to boolean diff --git a/src/Umbraco.Core/Dashboards/AccessRule.cs b/src/Umbraco.Core/Dashboards/AccessRule.cs index 4f725e32f0..b1b5c37bd6 100644 --- a/src/Umbraco.Core/Dashboards/AccessRule.cs +++ b/src/Umbraco.Core/Dashboards/AccessRule.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Dashboards +namespace Umbraco.Cms.Core.Dashboards { /// /// Implements . diff --git a/src/Umbraco.Core/Dashboards/AccessRuleType.cs b/src/Umbraco.Core/Dashboards/AccessRuleType.cs index efed361f6c..103d944de8 100644 --- a/src/Umbraco.Core/Dashboards/AccessRuleType.cs +++ b/src/Umbraco.Core/Dashboards/AccessRuleType.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Dashboards +namespace Umbraco.Cms.Core.Dashboards { /// /// Defines dashboard access rules type. diff --git a/src/Umbraco.Core/Dashboards/ContentDashboard.cs b/src/Umbraco.Core/Dashboards/ContentDashboard.cs index 0cd96f738c..b959851cc7 100644 --- a/src/Umbraco.Core/Dashboards/ContentDashboard.cs +++ b/src/Umbraco.Core/Dashboards/ContentDashboard.cs @@ -1,8 +1,6 @@ -using Umbraco.Core; -using Umbraco.Core.Composing; -using Umbraco.Core.Dashboards; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Web.Dashboards +namespace Umbraco.Cms.Core.Dashboards { [Weight(10)] public class ContentDashboard : IDashboard diff --git a/src/Umbraco.Core/Dashboards/DashboardCollection.cs b/src/Umbraco.Core/Dashboards/DashboardCollection.cs index 616a2cc8cc..9fa13f1d3d 100644 --- a/src/Umbraco.Core/Dashboards/DashboardCollection.cs +++ b/src/Umbraco.Core/Dashboards/DashboardCollection.cs @@ -1,8 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Composing; -using Umbraco.Core.Dashboards; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Web.Dashboards +namespace Umbraco.Cms.Core.Dashboards { public class DashboardCollection : BuilderCollectionBase { diff --git a/src/Umbraco.Core/Dashboards/DashboardCollectionBuilder.cs b/src/Umbraco.Core/Dashboards/DashboardCollectionBuilder.cs index 7ed241b819..9fc60ce111 100644 --- a/src/Umbraco.Core/Dashboards/DashboardCollectionBuilder.cs +++ b/src/Umbraco.Core/Dashboards/DashboardCollectionBuilder.cs @@ -2,12 +2,11 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.DependencyInjection; -using Umbraco.Core; -using Umbraco.Core.Composing; -using Umbraco.Core.Dashboards; -using Umbraco.Core.Manifest; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Manifest; +using Umbraco.Extensions; -namespace Umbraco.Web.Dashboards +namespace Umbraco.Cms.Core.Dashboards { public class DashboardCollectionBuilder : WeightedCollectionBuilderBase { diff --git a/src/Umbraco.Core/Dashboards/DashboardSlim.cs b/src/Umbraco.Core/Dashboards/DashboardSlim.cs index a2869a90a2..2b39c91100 100644 --- a/src/Umbraco.Core/Dashboards/DashboardSlim.cs +++ b/src/Umbraco.Core/Dashboards/DashboardSlim.cs @@ -1,6 +1,6 @@ using System.Runtime.Serialization; -namespace Umbraco.Core.Dashboards +namespace Umbraco.Cms.Core.Dashboards { [DataContract(IsReference = true)] public class DashboardSlim : IDashboardSlim diff --git a/src/Umbraco.Core/Dashboards/ExamineDashboard.cs b/src/Umbraco.Core/Dashboards/ExamineDashboard.cs index 47cf97ca3b..5411f1d3ce 100644 --- a/src/Umbraco.Core/Dashboards/ExamineDashboard.cs +++ b/src/Umbraco.Core/Dashboards/ExamineDashboard.cs @@ -1,8 +1,7 @@ using System; -using Umbraco.Core.Composing; -using Umbraco.Core.Dashboards; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Web.Dashboards +namespace Umbraco.Cms.Core.Dashboards { [Weight(20)] public class ExamineDashboard : IDashboard diff --git a/src/Umbraco.Core/Dashboards/FormsDashboard.cs b/src/Umbraco.Core/Dashboards/FormsDashboard.cs index 867e8af3aa..c56ad7c51a 100644 --- a/src/Umbraco.Core/Dashboards/FormsDashboard.cs +++ b/src/Umbraco.Core/Dashboards/FormsDashboard.cs @@ -1,9 +1,7 @@ using System; -using Umbraco.Core; -using Umbraco.Core.Composing; -using Umbraco.Core.Dashboards; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Web.Dashboards +namespace Umbraco.Cms.Core.Dashboards { [Weight(10)] public class FormsDashboard : IDashboard diff --git a/src/Umbraco.Core/Dashboards/HealthCheckDashboard.cs b/src/Umbraco.Core/Dashboards/HealthCheckDashboard.cs index 746dd04439..24b4efaf6d 100644 --- a/src/Umbraco.Core/Dashboards/HealthCheckDashboard.cs +++ b/src/Umbraco.Core/Dashboards/HealthCheckDashboard.cs @@ -1,8 +1,7 @@ using System; -using Umbraco.Core.Composing; -using Umbraco.Core.Dashboards; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Web.Dashboards +namespace Umbraco.Cms.Core.Dashboards { [Weight(50)] public class HealthCheckDashboard : IDashboard diff --git a/src/Umbraco.Core/Dashboards/IAccessRule.cs b/src/Umbraco.Core/Dashboards/IAccessRule.cs index f44a846248..13d118e195 100644 --- a/src/Umbraco.Core/Dashboards/IAccessRule.cs +++ b/src/Umbraco.Core/Dashboards/IAccessRule.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Dashboards +namespace Umbraco.Cms.Core.Dashboards { /// /// Represents an access rule. diff --git a/src/Umbraco.Core/Dashboards/IDashboard.cs b/src/Umbraco.Core/Dashboards/IDashboard.cs index 6e429d9b40..41a60cb518 100644 --- a/src/Umbraco.Core/Dashboards/IDashboard.cs +++ b/src/Umbraco.Core/Dashboards/IDashboard.cs @@ -1,7 +1,6 @@ using System.Runtime.Serialization; -using Umbraco.Core.Composing; -namespace Umbraco.Core.Dashboards +namespace Umbraco.Cms.Core.Dashboards { /// /// Represents a dashboard. diff --git a/src/Umbraco.Core/Dashboards/IDashboardSlim.cs b/src/Umbraco.Core/Dashboards/IDashboardSlim.cs index 655f56dfd9..c85b969b83 100644 --- a/src/Umbraco.Core/Dashboards/IDashboardSlim.cs +++ b/src/Umbraco.Core/Dashboards/IDashboardSlim.cs @@ -1,6 +1,6 @@ using System.Runtime.Serialization; -namespace Umbraco.Core.Dashboards +namespace Umbraco.Cms.Core.Dashboards { /// /// Represents a dashboard with only minimal data. @@ -19,4 +19,4 @@ namespace Umbraco.Core.Dashboards [DataMember(Name = "view")] string View { get; } } -} \ No newline at end of file +} diff --git a/src/Umbraco.Core/Dashboards/MediaDashboard.cs b/src/Umbraco.Core/Dashboards/MediaDashboard.cs index c97ae298f3..acbad0bc2a 100644 --- a/src/Umbraco.Core/Dashboards/MediaDashboard.cs +++ b/src/Umbraco.Core/Dashboards/MediaDashboard.cs @@ -1,8 +1,7 @@ using System; -using Umbraco.Core.Composing; -using Umbraco.Core.Dashboards; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Web.Dashboards +namespace Umbraco.Cms.Core.Dashboards { [Weight(10)] public class MediaDashboard : IDashboard diff --git a/src/Umbraco.Core/Dashboards/MembersDashboard.cs b/src/Umbraco.Core/Dashboards/MembersDashboard.cs index 473722dce1..3023d63b8a 100644 --- a/src/Umbraco.Core/Dashboards/MembersDashboard.cs +++ b/src/Umbraco.Core/Dashboards/MembersDashboard.cs @@ -1,8 +1,7 @@ using System; -using Umbraco.Core.Composing; -using Umbraco.Core.Dashboards; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Web.Dashboards +namespace Umbraco.Cms.Core.Dashboards { [Weight(10)] public class MembersDashboard : IDashboard diff --git a/src/Umbraco.Core/Dashboards/ProfilerDashboard.cs b/src/Umbraco.Core/Dashboards/ProfilerDashboard.cs index 98cd7fcc92..7a3829209f 100644 --- a/src/Umbraco.Core/Dashboards/ProfilerDashboard.cs +++ b/src/Umbraco.Core/Dashboards/ProfilerDashboard.cs @@ -1,8 +1,7 @@ using System; -using Umbraco.Core.Composing; -using Umbraco.Core.Dashboards; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Web.Dashboards +namespace Umbraco.Cms.Core.Dashboards { [Weight(60)] public class ProfilerDashboard : IDashboard diff --git a/src/Umbraco.Core/Dashboards/PublishedStatusDashboard.cs b/src/Umbraco.Core/Dashboards/PublishedStatusDashboard.cs index 66faa20b55..5cae4594f7 100644 --- a/src/Umbraco.Core/Dashboards/PublishedStatusDashboard.cs +++ b/src/Umbraco.Core/Dashboards/PublishedStatusDashboard.cs @@ -1,8 +1,7 @@ using System; -using Umbraco.Core.Composing; -using Umbraco.Core.Dashboards; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Web.Dashboards +namespace Umbraco.Cms.Core.Dashboards { [Weight(30)] public class PublishedStatusDashboard : IDashboard diff --git a/src/Umbraco.Core/Dashboards/RedirectUrlDashboard.cs b/src/Umbraco.Core/Dashboards/RedirectUrlDashboard.cs index f538cbc122..15eb883697 100644 --- a/src/Umbraco.Core/Dashboards/RedirectUrlDashboard.cs +++ b/src/Umbraco.Core/Dashboards/RedirectUrlDashboard.cs @@ -1,8 +1,7 @@ using System; -using Umbraco.Core.Composing; -using Umbraco.Core.Dashboards; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Web.Dashboards +namespace Umbraco.Cms.Core.Dashboards { [Weight(20)] public class RedirectUrlDashboard : IDashboard diff --git a/src/Umbraco.Core/Dashboards/SettingsDashboards.cs b/src/Umbraco.Core/Dashboards/SettingsDashboards.cs index 5cd92e4c3f..e5f37fd5a3 100644 --- a/src/Umbraco.Core/Dashboards/SettingsDashboards.cs +++ b/src/Umbraco.Core/Dashboards/SettingsDashboards.cs @@ -1,8 +1,7 @@ using System; -using Umbraco.Core.Composing; -using Umbraco.Core.Dashboards; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Web.Dashboards +namespace Umbraco.Cms.Core.Dashboards { [Weight(10)] public class SettingsDashboard : IDashboard diff --git a/src/Umbraco.Core/DefaultEventMessagesFactory.cs b/src/Umbraco.Core/DefaultEventMessagesFactory.cs index 0d53645b5e..b795045f32 100644 --- a/src/Umbraco.Core/DefaultEventMessagesFactory.cs +++ b/src/Umbraco.Core/DefaultEventMessagesFactory.cs @@ -1,7 +1,7 @@ using System; -using Umbraco.Core.Events; +using Umbraco.Cms.Core.Events; -namespace Umbraco.Web +namespace Umbraco.Cms.Core { public class DefaultEventMessagesFactory : IEventMessagesFactory { diff --git a/src/Umbraco.Core/DelegateEqualityComparer.cs b/src/Umbraco.Core/DelegateEqualityComparer.cs index dae990c635..6aabbf62f4 100644 --- a/src/Umbraco.Core/DelegateEqualityComparer.cs +++ b/src/Umbraco.Core/DelegateEqualityComparer.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; -namespace Umbraco.Core +namespace Umbraco.Cms.Core { /// /// A custom equality comparer that excepts a delegate to do the comparison operation diff --git a/src/Umbraco.Core/DependencyInjection/IUmbracoBuilder.cs b/src/Umbraco.Core/DependencyInjection/IUmbracoBuilder.cs index f532f8cdaa..0b65c3443c 100644 --- a/src/Umbraco.Core/DependencyInjection/IUmbracoBuilder.cs +++ b/src/Umbraco.Core/DependencyInjection/IUmbracoBuilder.cs @@ -1,9 +1,9 @@ using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Core.DependencyInjection +namespace Umbraco.Cms.Core.DependencyInjection { public interface IUmbracoBuilder { diff --git a/src/Umbraco.Core/DependencyInjection/ServiceCollectionExtensions.cs b/src/Umbraco.Core/DependencyInjection/ServiceCollectionExtensions.cs index 97e70da9be..cec1cbb4eb 100644 --- a/src/Umbraco.Core/DependencyInjection/ServiceCollectionExtensions.cs +++ b/src/Umbraco.Core/DependencyInjection/ServiceCollectionExtensions.cs @@ -1,10 +1,9 @@ using System; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; -using Umbraco.Core; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Core.DependencyInjection +namespace Umbraco.Extensions { public static class ServiceCollectionExtensions { diff --git a/src/Umbraco.Core/DependencyInjection/ServiceProviderExtensions.cs b/src/Umbraco.Core/DependencyInjection/ServiceProviderExtensions.cs index 2c17709b33..9bcc0cf7f8 100644 --- a/src/Umbraco.Core/DependencyInjection/ServiceProviderExtensions.cs +++ b/src/Umbraco.Core/DependencyInjection/ServiceProviderExtensions.cs @@ -3,10 +3,10 @@ using System.Collections.Generic; using System.ComponentModel; using System.Linq; using Microsoft.Extensions.DependencyInjection; -using Umbraco.Core.Composing; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Models.PublishedContent; -namespace Umbraco.Core.DependencyInjection +namespace Umbraco.Extensions { /// /// Provides extension methods to the class. diff --git a/src/Umbraco.Core/DependencyInjection/UmbracoBuilder.Collections.cs b/src/Umbraco.Core/DependencyInjection/UmbracoBuilder.Collections.cs index e964852129..61802eaddd 100644 --- a/src/Umbraco.Core/DependencyInjection/UmbracoBuilder.Collections.cs +++ b/src/Umbraco.Core/DependencyInjection/UmbracoBuilder.Collections.cs @@ -1,24 +1,24 @@ -using Umbraco.Core.Cache; -using Umbraco.Core.Composing; -using Umbraco.Core.Dashboards; -using Umbraco.Core.HealthChecks; -using Umbraco.Core.HealthChecks.NotificationMethods; -using Umbraco.Core.Manifest; -using Umbraco.Core.PackageActions; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.PropertyEditors.Validators; -using Umbraco.Core.Strings; -using Umbraco.Core.Trees; -using Umbraco.Web.Actions; -using Umbraco.Web.ContentApps; -using Umbraco.Web.Dashboards; -using Umbraco.Web.Editors; -using Umbraco.Web.Media.EmbedProviders; -using Umbraco.Web.Routing; -using Umbraco.Web.Sections; -using Umbraco.Web.Tour; +using Umbraco.Cms.Core.Actions; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.ContentApps; +using Umbraco.Cms.Core.Dashboards; +using Umbraco.Cms.Core.Editors; +using Umbraco.Cms.Core.HealthChecks; +using Umbraco.Cms.Core.HealthChecks.NotificationMethods; +using Umbraco.Cms.Core.Manifest; +using Umbraco.Cms.Core.Media.EmbedProviders; +using Umbraco.Cms.Core.PackageActions; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.PropertyEditors.Validators; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Sections; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Core.Tour; +using Umbraco.Cms.Core.Trees; +using Umbraco.Extensions; -namespace Umbraco.Core.DependencyInjection +namespace Umbraco.Cms.Core.DependencyInjection { /// /// Extension methods for @@ -44,7 +44,7 @@ namespace Umbraco.Core.DependencyInjection .Append(); // all built-in finders in the correct order, // devs can then modify this list on application startup - builder.ContentFinders() + builder.ContentFinders() .Append() .Append() .Append() diff --git a/src/Umbraco.Core/DependencyInjection/UmbracoBuilder.Composers.cs b/src/Umbraco.Core/DependencyInjection/UmbracoBuilder.Composers.cs index 5bd2fe9e8c..b6f9e7ae88 100644 --- a/src/Umbraco.Core/DependencyInjection/UmbracoBuilder.Composers.cs +++ b/src/Umbraco.Core/DependencyInjection/UmbracoBuilder.Composers.cs @@ -1,9 +1,9 @@ using System; using System.Collections.Generic; using Microsoft.Extensions.Logging; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Core.DependencyInjection +namespace Umbraco.Cms.Core.DependencyInjection { /// /// Extension methods for diff --git a/src/Umbraco.Core/DependencyInjection/UmbracoBuilder.Configuration.cs b/src/Umbraco.Core/DependencyInjection/UmbracoBuilder.Configuration.cs index a31a44beeb..f987e29eac 100644 --- a/src/Umbraco.Core/DependencyInjection/UmbracoBuilder.Configuration.cs +++ b/src/Umbraco.Core/DependencyInjection/UmbracoBuilder.Configuration.cs @@ -1,9 +1,9 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Configuration.Models.Validation; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Configuration.Models.Validation; -namespace Umbraco.Core.DependencyInjection +namespace Umbraco.Cms.Core.DependencyInjection { /// /// Extension methods for @@ -22,29 +22,29 @@ namespace Umbraco.Core.DependencyInjection builder.Services.AddSingleton, RequestHandlerSettingsValidator>(); // Register configuration sections. - builder.Services.Configure(builder.Config.GetSection(Core.Constants.Configuration.ConfigActiveDirectory)); + builder.Services.Configure(builder.Config.GetSection(Constants.Configuration.ConfigActiveDirectory)); builder.Services.Configure(builder.Config.GetSection("ConnectionStrings"), o => o.BindNonPublicProperties = true); - builder.Services.Configure(builder.Config.GetSection(Core.Constants.Configuration.ConfigContent)); - builder.Services.Configure(builder.Config.GetSection(Core.Constants.Configuration.ConfigCoreDebug)); - builder.Services.Configure(builder.Config.GetSection(Core.Constants.Configuration.ConfigExceptionFilter)); - builder.Services.Configure(builder.Config.GetSection(Core.Constants.Configuration.ConfigGlobal)); - builder.Services.Configure(builder.Config.GetSection(Core.Constants.Configuration.ConfigHealthChecks)); - builder.Services.Configure(builder.Config.GetSection(Core.Constants.Configuration.ConfigHosting)); - builder.Services.Configure(builder.Config.GetSection(Core.Constants.Configuration.ConfigImaging)); - builder.Services.Configure(builder.Config.GetSection(Core.Constants.Configuration.ConfigExamine)); - builder.Services.Configure(builder.Config.GetSection(Core.Constants.Configuration.ConfigKeepAlive)); - builder.Services.Configure(builder.Config.GetSection(Core.Constants.Configuration.ConfigLogging)); - builder.Services.Configure(builder.Config.GetSection(Core.Constants.Configuration.ConfigMemberPassword)); - builder.Services.Configure(builder.Config.GetSection(Core.Constants.Configuration.ConfigModelsBuilder), o => o.BindNonPublicProperties = true); - builder.Services.Configure(builder.Config.GetSection(Core.Constants.Configuration.ConfigNuCache)); - builder.Services.Configure(builder.Config.GetSection(Core.Constants.Configuration.ConfigRequestHandler)); - builder.Services.Configure(builder.Config.GetSection(Core.Constants.Configuration.ConfigRuntime)); - builder.Services.Configure(builder.Config.GetSection(Core.Constants.Configuration.ConfigSecurity)); - builder.Services.Configure(builder.Config.GetSection(Core.Constants.Configuration.ConfigTours)); - builder.Services.Configure(builder.Config.GetSection(Core.Constants.Configuration.ConfigTypeFinder)); - builder.Services.Configure(builder.Config.GetSection(Core.Constants.Configuration.ConfigUserPassword)); - builder.Services.Configure(builder.Config.GetSection(Core.Constants.Configuration.ConfigWebRouting)); - builder.Services.Configure(builder.Config.GetSection(Core.Constants.Configuration.ConfigPlugins)); + builder.Services.Configure(builder.Config.GetSection(Constants.Configuration.ConfigContent)); + builder.Services.Configure(builder.Config.GetSection(Constants.Configuration.ConfigCoreDebug)); + builder.Services.Configure(builder.Config.GetSection(Constants.Configuration.ConfigExceptionFilter)); + builder.Services.Configure(builder.Config.GetSection(Constants.Configuration.ConfigGlobal)); + builder.Services.Configure(builder.Config.GetSection(Constants.Configuration.ConfigHealthChecks)); + builder.Services.Configure(builder.Config.GetSection(Constants.Configuration.ConfigHosting)); + builder.Services.Configure(builder.Config.GetSection(Constants.Configuration.ConfigImaging)); + builder.Services.Configure(builder.Config.GetSection(Constants.Configuration.ConfigExamine)); + builder.Services.Configure(builder.Config.GetSection(Constants.Configuration.ConfigKeepAlive)); + builder.Services.Configure(builder.Config.GetSection(Constants.Configuration.ConfigLogging)); + builder.Services.Configure(builder.Config.GetSection(Constants.Configuration.ConfigMemberPassword)); + builder.Services.Configure(builder.Config.GetSection(Constants.Configuration.ConfigModelsBuilder), o => o.BindNonPublicProperties = true); + builder.Services.Configure(builder.Config.GetSection(Constants.Configuration.ConfigNuCache)); + builder.Services.Configure(builder.Config.GetSection(Constants.Configuration.ConfigRequestHandler)); + builder.Services.Configure(builder.Config.GetSection(Constants.Configuration.ConfigRuntime)); + builder.Services.Configure(builder.Config.GetSection(Constants.Configuration.ConfigSecurity)); + builder.Services.Configure(builder.Config.GetSection(Constants.Configuration.ConfigTours)); + builder.Services.Configure(builder.Config.GetSection(Constants.Configuration.ConfigTypeFinder)); + builder.Services.Configure(builder.Config.GetSection(Constants.Configuration.ConfigUserPassword)); + builder.Services.Configure(builder.Config.GetSection(Constants.Configuration.ConfigWebRouting)); + builder.Services.Configure(builder.Config.GetSection(Constants.Configuration.ConfigPlugins)); return builder; } diff --git a/src/Umbraco.Core/DependencyInjection/UmbracoBuilder.Events.cs b/src/Umbraco.Core/DependencyInjection/UmbracoBuilder.Events.cs index c5bdb20b40..586f1d7d99 100644 --- a/src/Umbraco.Core/DependencyInjection/UmbracoBuilder.Events.cs +++ b/src/Umbraco.Core/DependencyInjection/UmbracoBuilder.Events.cs @@ -2,9 +2,9 @@ // See LICENSE for more details. using Microsoft.Extensions.DependencyInjection; -using Umbraco.Core.Events; +using Umbraco.Cms.Core.Events; -namespace Umbraco.Core.DependencyInjection +namespace Umbraco.Cms.Core.DependencyInjection { /// diff --git a/src/Umbraco.Core/DependencyInjection/UmbracoBuilder.cs b/src/Umbraco.Core/DependencyInjection/UmbracoBuilder.cs index a31e36db69..5249676fb6 100644 --- a/src/Umbraco.Core/DependencyInjection/UmbracoBuilder.cs +++ b/src/Umbraco.Core/DependencyInjection/UmbracoBuilder.cs @@ -3,44 +3,40 @@ using System; using System.Collections.Generic; -using System.Linq; using System.Runtime.InteropServices; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging.Abstractions; using Microsoft.Extensions.Options; -using Umbraco.Core.Cache; -using Umbraco.Core.Composing; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Grid; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Diagnostics; -using Umbraco.Core.Dictionary; -using Umbraco.Core.Events; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; -using Umbraco.Core.Logging; -using Umbraco.Core.Mail; -using Umbraco.Core.Manifest; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Routing; -using Umbraco.Core.Runtime; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Core.Sync; -using Umbraco.Web; -using Umbraco.Web.Cache; -using Umbraco.Web.Editors; -using Umbraco.Web.Features; -using Umbraco.Web.Install; -using Umbraco.Web.Models.PublishedContent; -using Umbraco.Web.Routing; -using Umbraco.Web.Services; -using Umbraco.Web.Templates; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Configuration.Grid; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Diagnostics; +using Umbraco.Cms.Core.Dictionary; +using Umbraco.Cms.Core.Editors; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Features; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Install; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Mail; +using Umbraco.Cms.Core.Manifest; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Runtime; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Sync; +using Umbraco.Cms.Core.Templates; +using Umbraco.Cms.Core.Web; +using Umbraco.Extensions; -namespace Umbraco.Core.DependencyInjection +namespace Umbraco.Cms.Core.DependencyInjection { public class UmbracoBuilder : IUmbracoBuilder { diff --git a/src/Umbraco.Core/DependencyInjection/UniqueServiceDescriptor.cs b/src/Umbraco.Core/DependencyInjection/UniqueServiceDescriptor.cs index 1d01d632a6..f0fc5b14c9 100644 --- a/src/Umbraco.Core/DependencyInjection/UniqueServiceDescriptor.cs +++ b/src/Umbraco.Core/DependencyInjection/UniqueServiceDescriptor.cs @@ -5,7 +5,7 @@ using System; using System.Collections.Generic; using Microsoft.Extensions.DependencyInjection; -namespace Umbraco.Core.DependencyInjection +namespace Umbraco.Cms.Core.DependencyInjection { /// /// A custom that supports unique checking diff --git a/src/Umbraco.Core/Deploy/ArtifactBase.cs b/src/Umbraco.Core/Deploy/ArtifactBase.cs index 432726699e..7c6f4c1814 100644 --- a/src/Umbraco.Core/Deploy/ArtifactBase.cs +++ b/src/Umbraco.Core/Deploy/ArtifactBase.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; -namespace Umbraco.Core.Deploy +namespace Umbraco.Cms.Core.Deploy { /// /// Provides a base class to all artifacts. diff --git a/src/Umbraco.Core/Deploy/ArtifactDependency.cs b/src/Umbraco.Core/Deploy/ArtifactDependency.cs index 374772210c..618400e395 100644 --- a/src/Umbraco.Core/Deploy/ArtifactDependency.cs +++ b/src/Umbraco.Core/Deploy/ArtifactDependency.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Deploy +namespace Umbraco.Cms.Core.Deploy { /// /// Represents an artifact dependency. diff --git a/src/Umbraco.Core/Deploy/ArtifactDependencyCollection.cs b/src/Umbraco.Core/Deploy/ArtifactDependencyCollection.cs index c447dbcde2..a5fff53800 100644 --- a/src/Umbraco.Core/Deploy/ArtifactDependencyCollection.cs +++ b/src/Umbraco.Core/Deploy/ArtifactDependencyCollection.cs @@ -2,7 +2,7 @@ using System.Collections; using System.Collections.Generic; -namespace Umbraco.Core.Deploy +namespace Umbraco.Cms.Core.Deploy { /// /// Represents a collection of distinct . diff --git a/src/Umbraco.Core/Deploy/ArtifactDependencyMode.cs b/src/Umbraco.Core/Deploy/ArtifactDependencyMode.cs index c285a5f9fb..7a2d108a13 100644 --- a/src/Umbraco.Core/Deploy/ArtifactDependencyMode.cs +++ b/src/Umbraco.Core/Deploy/ArtifactDependencyMode.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Deploy +namespace Umbraco.Cms.Core.Deploy { /// /// Indicates the mode of the dependency. diff --git a/src/Umbraco.Core/Deploy/ArtifactDeployState.cs b/src/Umbraco.Core/Deploy/ArtifactDeployState.cs index ede6801953..edd958c346 100644 --- a/src/Umbraco.Core/Deploy/ArtifactDeployState.cs +++ b/src/Umbraco.Core/Deploy/ArtifactDeployState.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Deploy +namespace Umbraco.Cms.Core.Deploy { /// /// Represent the state of an artifact being deployed. diff --git a/src/Umbraco.Core/Deploy/ArtifactDeployStateOfTArtifactTEntity.cs b/src/Umbraco.Core/Deploy/ArtifactDeployStateOfTArtifactTEntity.cs index 6d7a51b383..b0d7dd56b8 100644 --- a/src/Umbraco.Core/Deploy/ArtifactDeployStateOfTArtifactTEntity.cs +++ b/src/Umbraco.Core/Deploy/ArtifactDeployStateOfTArtifactTEntity.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Deploy +namespace Umbraco.Cms.Core.Deploy { /// /// Represent the state of an artifact being deployed. diff --git a/src/Umbraco.Core/Deploy/ArtifactSignature.cs b/src/Umbraco.Core/Deploy/ArtifactSignature.cs index 219e27140e..e0e4dab1ac 100644 --- a/src/Umbraco.Core/Deploy/ArtifactSignature.cs +++ b/src/Umbraco.Core/Deploy/ArtifactSignature.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.Linq; -namespace Umbraco.Core.Deploy +namespace Umbraco.Cms.Core.Deploy { public sealed class ArtifactSignature : IArtifactSignature { diff --git a/src/Umbraco.Core/Deploy/Difference.cs b/src/Umbraco.Core/Deploy/Difference.cs index 05d7c66013..f45f14f8e6 100644 --- a/src/Umbraco.Core/Deploy/Difference.cs +++ b/src/Umbraco.Core/Deploy/Difference.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Deploy +namespace Umbraco.Cms.Core.Deploy { public class Difference { diff --git a/src/Umbraco.Core/Deploy/Direction.cs b/src/Umbraco.Core/Deploy/Direction.cs index 4d87afa3a0..7a6ee5ae09 100644 --- a/src/Umbraco.Core/Deploy/Direction.cs +++ b/src/Umbraco.Core/Deploy/Direction.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Deploy +namespace Umbraco.Cms.Core.Deploy { public enum Direction { diff --git a/src/Umbraco.Core/Deploy/IArtifact.cs b/src/Umbraco.Core/Deploy/IArtifact.cs index 0668047fea..7712e53afa 100644 --- a/src/Umbraco.Core/Deploy/IArtifact.cs +++ b/src/Umbraco.Core/Deploy/IArtifact.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Deploy +namespace Umbraco.Cms.Core.Deploy { /// /// Represents an artifact ie an object that can be transfered between environments. diff --git a/src/Umbraco.Core/Deploy/IArtifactSignature.cs b/src/Umbraco.Core/Deploy/IArtifactSignature.cs index 287b70a8f4..ae856866d9 100644 --- a/src/Umbraco.Core/Deploy/IArtifactSignature.cs +++ b/src/Umbraco.Core/Deploy/IArtifactSignature.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace Umbraco.Core.Deploy +namespace Umbraco.Cms.Core.Deploy { /// /// Represents the signature of an artifact. diff --git a/src/Umbraco.Core/Deploy/IDataTypeConfigurationConnector.cs b/src/Umbraco.Core/Deploy/IDataTypeConfigurationConnector.cs index 3a673e92a2..548a6d80f1 100644 --- a/src/Umbraco.Core/Deploy/IDataTypeConfigurationConnector.cs +++ b/src/Umbraco.Core/Deploy/IDataTypeConfigurationConnector.cs @@ -1,8 +1,8 @@ using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Deploy +namespace Umbraco.Cms.Core.Deploy { /// /// Defines methods that can convert data type configuration to / from an environment-agnostic string. diff --git a/src/Umbraco.Core/Deploy/IDeployContext.cs b/src/Umbraco.Core/Deploy/IDeployContext.cs index 01d1a8e98c..c2a3a39d1e 100644 --- a/src/Umbraco.Core/Deploy/IDeployContext.cs +++ b/src/Umbraco.Core/Deploy/IDeployContext.cs @@ -1,8 +1,7 @@ using System; using System.Collections.Generic; -using System.Threading; -namespace Umbraco.Core.Deploy +namespace Umbraco.Cms.Core.Deploy { /// /// Represents a deployment context. diff --git a/src/Umbraco.Core/Deploy/IFileSource.cs b/src/Umbraco.Core/Deploy/IFileSource.cs index e789e0bf24..6e582803a2 100644 --- a/src/Umbraco.Core/Deploy/IFileSource.cs +++ b/src/Umbraco.Core/Deploy/IFileSource.cs @@ -3,7 +3,7 @@ using System.IO; using System.Threading; using System.Threading.Tasks; -namespace Umbraco.Core.Deploy +namespace Umbraco.Cms.Core.Deploy { /// /// Represents a file source, ie a mean for a target environment involved in a diff --git a/src/Umbraco.Core/Deploy/IFileType.cs b/src/Umbraco.Core/Deploy/IFileType.cs index f7ab22ffae..ef6c44e1e6 100644 --- a/src/Umbraco.Core/Deploy/IFileType.cs +++ b/src/Umbraco.Core/Deploy/IFileType.cs @@ -2,7 +2,7 @@ using System.Threading; using System.Threading.Tasks; -namespace Umbraco.Core.Deploy +namespace Umbraco.Cms.Core.Deploy { public interface IFileType { diff --git a/src/Umbraco.Core/Deploy/IFileTypeCollection.cs b/src/Umbraco.Core/Deploy/IFileTypeCollection.cs index 9e2ab137d1..d19d2ad64a 100644 --- a/src/Umbraco.Core/Deploy/IFileTypeCollection.cs +++ b/src/Umbraco.Core/Deploy/IFileTypeCollection.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Deploy +namespace Umbraco.Cms.Core.Deploy { public interface IFileTypeCollection { diff --git a/src/Umbraco.Core/Deploy/IImageSourceParser.cs b/src/Umbraco.Core/Deploy/IImageSourceParser.cs index 061125955c..a15b45f40b 100644 --- a/src/Umbraco.Core/Deploy/IImageSourceParser.cs +++ b/src/Umbraco.Core/Deploy/IImageSourceParser.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace Umbraco.Core.Deploy +namespace Umbraco.Cms.Core.Deploy { /// /// Provides methods to parse image tag sources in property values. diff --git a/src/Umbraco.Core/Deploy/ILocalLinkParser.cs b/src/Umbraco.Core/Deploy/ILocalLinkParser.cs index d6d68ed81d..f807b9604f 100644 --- a/src/Umbraco.Core/Deploy/ILocalLinkParser.cs +++ b/src/Umbraco.Core/Deploy/ILocalLinkParser.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace Umbraco.Core.Deploy +namespace Umbraco.Cms.Core.Deploy { /// /// Provides methods to parse local link tags in property values. diff --git a/src/Umbraco.Core/Deploy/IMacroParser.cs b/src/Umbraco.Core/Deploy/IMacroParser.cs index 725cd6c88e..622a4abc1b 100644 --- a/src/Umbraco.Core/Deploy/IMacroParser.cs +++ b/src/Umbraco.Core/Deploy/IMacroParser.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace Umbraco.Core.Deploy +namespace Umbraco.Cms.Core.Deploy { public interface IMacroParser { diff --git a/src/Umbraco.Core/Deploy/IServiceConnector.cs b/src/Umbraco.Core/Deploy/IServiceConnector.cs index a0fc274236..3a57f722cf 100644 --- a/src/Umbraco.Core/Deploy/IServiceConnector.cs +++ b/src/Umbraco.Core/Deploy/IServiceConnector.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Core.Deploy +namespace Umbraco.Cms.Core.Deploy { /// /// Connects to an Umbraco service. diff --git a/src/Umbraco.Core/Deploy/IUniqueIdentifyingServiceConnector.cs b/src/Umbraco.Core/Deploy/IUniqueIdentifyingServiceConnector.cs index a657ba78b6..66364a08f3 100644 --- a/src/Umbraco.Core/Deploy/IUniqueIdentifyingServiceConnector.cs +++ b/src/Umbraco.Core/Deploy/IUniqueIdentifyingServiceConnector.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Deploy +namespace Umbraco.Cms.Core.Deploy { /// /// Provides a method to retrieve an artifact's unique identifier. diff --git a/src/Umbraco.Core/Deploy/IValueConnector.cs b/src/Umbraco.Core/Deploy/IValueConnector.cs index 5329725663..b7ba2e4096 100644 --- a/src/Umbraco.Core/Deploy/IValueConnector.cs +++ b/src/Umbraco.Core/Deploy/IValueConnector.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Deploy +namespace Umbraco.Cms.Core.Deploy { /// /// Defines methods that can convert a property value to / from an environment-agnostic string. diff --git a/src/Umbraco.Core/Diagnostics/IMarchal.cs b/src/Umbraco.Core/Diagnostics/IMarchal.cs index cde4592b1b..988eaca78c 100644 --- a/src/Umbraco.Core/Diagnostics/IMarchal.cs +++ b/src/Umbraco.Core/Diagnostics/IMarchal.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Diagnostics +namespace Umbraco.Cms.Core.Diagnostics { /// /// Provides a collection of methods for allocating unmanaged memory, copying unmanaged memory blocks, and converting managed to unmanaged types, as well as other miscellaneous methods used when interacting with unmanaged code. diff --git a/src/Umbraco.Core/Diagnostics/MiniDump.cs b/src/Umbraco.Core/Diagnostics/MiniDump.cs index 51f595bfb2..da5a729148 100644 --- a/src/Umbraco.Core/Diagnostics/MiniDump.cs +++ b/src/Umbraco.Core/Diagnostics/MiniDump.cs @@ -2,9 +2,9 @@ using System; using System.Diagnostics; using System.IO; using System.Runtime.InteropServices; -using Umbraco.Core.Hosting; +using Umbraco.Cms.Core.Hosting; -namespace Umbraco.Core.Diagnostics +namespace Umbraco.Cms.Core.Diagnostics { // taken from https://blogs.msdn.microsoft.com/dondu/2010/10/24/writing-minidumps-in-c/ // and https://blogs.msdn.microsoft.com/dondu/2010/10/31/writing-minidumps-from-exceptions-in-c/ diff --git a/src/Umbraco.Core/Diagnostics/NoopMarchal.cs b/src/Umbraco.Core/Diagnostics/NoopMarchal.cs index 09629f9595..273a4fb32c 100644 --- a/src/Umbraco.Core/Diagnostics/NoopMarchal.cs +++ b/src/Umbraco.Core/Diagnostics/NoopMarchal.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Diagnostics +namespace Umbraco.Cms.Core.Diagnostics { internal class NoopMarchal : IMarchal { diff --git a/src/Umbraco.Core/Dictionary/ICultureDictionary.cs b/src/Umbraco.Core/Dictionary/ICultureDictionary.cs index d03a5dfa73..9a6898c18d 100644 --- a/src/Umbraco.Core/Dictionary/ICultureDictionary.cs +++ b/src/Umbraco.Core/Dictionary/ICultureDictionary.cs @@ -1,8 +1,7 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; using System.Globalization; -namespace Umbraco.Core.Dictionary +namespace Umbraco.Cms.Core.Dictionary { /// /// Represents a dictionary based on a specific culture diff --git a/src/Umbraco.Core/Dictionary/ICultureDictionaryFactory.cs b/src/Umbraco.Core/Dictionary/ICultureDictionaryFactory.cs index 8f94de4394..40fbb1bad8 100644 --- a/src/Umbraco.Core/Dictionary/ICultureDictionaryFactory.cs +++ b/src/Umbraco.Core/Dictionary/ICultureDictionaryFactory.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Dictionary +namespace Umbraco.Cms.Core.Dictionary { public interface ICultureDictionaryFactory { diff --git a/src/Umbraco.Core/Dictionary/UmbracoCultureDictionary.cs b/src/Umbraco.Core/Dictionary/UmbracoCultureDictionary.cs index 1f23ec645c..d06989b6f8 100644 --- a/src/Umbraco.Core/Dictionary/UmbracoCultureDictionary.cs +++ b/src/Umbraco.Core/Dictionary/UmbracoCultureDictionary.cs @@ -2,13 +2,13 @@ using System.Collections.Generic; using System.Globalization; using System.Linq; -using Umbraco.Core.Cache; -using Umbraco.Core.Models; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; -namespace Umbraco.Core.Dictionary +namespace Umbraco.Cms.Core.Dictionary { - /// /// A culture dictionary that uses the Umbraco ILocalizationService /// diff --git a/src/Umbraco.Core/Dictionary/UmbracoCultureDictionaryFactory.cs b/src/Umbraco.Core/Dictionary/UmbracoCultureDictionaryFactory.cs index e2e30f3d76..8713e338ea 100644 --- a/src/Umbraco.Core/Dictionary/UmbracoCultureDictionaryFactory.cs +++ b/src/Umbraco.Core/Dictionary/UmbracoCultureDictionaryFactory.cs @@ -1,7 +1,7 @@ -using Umbraco.Core.Cache; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Services; -namespace Umbraco.Core.Dictionary +namespace Umbraco.Cms.Core.Dictionary { /// /// A culture dictionary factory used to create an Umbraco.Core.Dictionary.ICultureDictionary. diff --git a/src/Umbraco.Core/Direction.cs b/src/Umbraco.Core/Direction.cs index 7d3906ffd0..152a3663fd 100644 --- a/src/Umbraco.Core/Direction.cs +++ b/src/Umbraco.Core/Direction.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core +namespace Umbraco.Cms.Core { public enum Direction { diff --git a/src/Umbraco.Core/DisposableObjectSlim.cs b/src/Umbraco.Core/DisposableObjectSlim.cs index 6874ad8001..4304098324 100644 --- a/src/Umbraco.Core/DisposableObjectSlim.cs +++ b/src/Umbraco.Core/DisposableObjectSlim.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core +namespace Umbraco.Cms.Core { /// /// Abstract implementation of managed IDisposable. diff --git a/src/Umbraco.Core/Editors/BackOfficePreviewModel.cs b/src/Umbraco.Core/Editors/BackOfficePreviewModel.cs index 40d145afb0..74cc590e83 100644 --- a/src/Umbraco.Core/Editors/BackOfficePreviewModel.cs +++ b/src/Umbraco.Core/Editors/BackOfficePreviewModel.cs @@ -1,8 +1,8 @@ using System.Collections.Generic; -using Umbraco.Core.Models; -using Umbraco.Web.Features; +using Umbraco.Cms.Core.Features; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Web.Editors +namespace Umbraco.Cms.Core.Editors { public class BackOfficePreviewModel { diff --git a/src/Umbraco.Core/Editors/EditorModelEventArgs.cs b/src/Umbraco.Core/Editors/EditorModelEventArgs.cs index 24ee1a3d85..da7f0ba9cb 100644 --- a/src/Umbraco.Core/Editors/EditorModelEventArgs.cs +++ b/src/Umbraco.Core/Editors/EditorModelEventArgs.cs @@ -1,6 +1,7 @@ using System; +using Umbraco.Cms.Core.Web; -namespace Umbraco.Web.Editors +namespace Umbraco.Cms.Core.Editors { public sealed class EditorModelEventArgs : EditorModelEventArgs { diff --git a/src/Umbraco.Core/Editors/EditorValidatorCollection.cs b/src/Umbraco.Core/Editors/EditorValidatorCollection.cs index 0e42b0027c..3b07be5553 100644 --- a/src/Umbraco.Core/Editors/EditorValidatorCollection.cs +++ b/src/Umbraco.Core/Editors/EditorValidatorCollection.cs @@ -1,10 +1,7 @@ using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; -using System.Linq; -using Umbraco.Core; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Web.Editors +namespace Umbraco.Cms.Core.Editors { public class EditorValidatorCollection : BuilderCollectionBase { diff --git a/src/Umbraco.Core/Editors/EditorValidatorCollectionBuilder.cs b/src/Umbraco.Core/Editors/EditorValidatorCollectionBuilder.cs index 994a813cf4..223778b79d 100644 --- a/src/Umbraco.Core/Editors/EditorValidatorCollectionBuilder.cs +++ b/src/Umbraco.Core/Editors/EditorValidatorCollectionBuilder.cs @@ -1,6 +1,6 @@ -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Web.Editors +namespace Umbraco.Cms.Core.Editors { public class EditorValidatorCollectionBuilder : LazyCollectionBuilderBase { diff --git a/src/Umbraco.Core/Editors/EditorValidatorOfT.cs b/src/Umbraco.Core/Editors/EditorValidatorOfT.cs index 715a49179e..a70509237a 100644 --- a/src/Umbraco.Core/Editors/EditorValidatorOfT.cs +++ b/src/Umbraco.Core/Editors/EditorValidatorOfT.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.ComponentModel.DataAnnotations; -namespace Umbraco.Web.Editors +namespace Umbraco.Cms.Core.Editors { /// /// Provides a base class for implementations. diff --git a/src/Umbraco.Core/Editors/IEditorValidator.cs b/src/Umbraco.Core/Editors/IEditorValidator.cs index 2d655e3506..17bb195e4b 100644 --- a/src/Umbraco.Core/Editors/IEditorValidator.cs +++ b/src/Umbraco.Core/Editors/IEditorValidator.cs @@ -1,9 +1,9 @@ using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Web.Editors +namespace Umbraco.Cms.Core.Editors { // note - about IEditorValidator // diff --git a/src/Umbraco.Core/Editors/UserEditorAuthorizationHelper.cs b/src/Umbraco.Core/Editors/UserEditorAuthorizationHelper.cs index d8a5f675b2..0ecbdbd4ab 100644 --- a/src/Umbraco.Core/Editors/UserEditorAuthorizationHelper.cs +++ b/src/Umbraco.Core/Editors/UserEditorAuthorizationHelper.cs @@ -1,12 +1,15 @@ -using System.Collections.Generic; -using System.Linq; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Security; -using Umbraco.Core.Services; +// Copyright (c) Umbraco. +// See LICENSE for more details. -namespace Umbraco.Web.Editors +using System.Collections.Generic; +using System.Linq; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; + +namespace Umbraco.Cms.Core.Editors { public class UserEditorAuthorizationHelper { diff --git a/src/Umbraco.Core/Enum.cs b/src/Umbraco.Core/Enum.cs index 36fa3898cb..8e2beca025 100644 --- a/src/Umbraco.Core/Enum.cs +++ b/src/Umbraco.Core/Enum.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.Linq; -namespace Umbraco.Core +namespace Umbraco.Cms.Core { /// /// Provides utility methods for handling enumerations. diff --git a/src/Umbraco.Core/Events/CancellableEnumerableObjectEventArgs.cs b/src/Umbraco.Core/Events/CancellableEnumerableObjectEventArgs.cs index 1d52d0d847..e70338b3bc 100644 --- a/src/Umbraco.Core/Events/CancellableEnumerableObjectEventArgs.cs +++ b/src/Umbraco.Core/Events/CancellableEnumerableObjectEventArgs.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.Linq; -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { /// /// Represents event data, for events that support cancellation, and expose impacted objects. diff --git a/src/Umbraco.Core/Events/CancellableEventArgs.cs b/src/Umbraco.Core/Events/CancellableEventArgs.cs index 2aa693147d..a6be7fa3e8 100644 --- a/src/Umbraco.Core/Events/CancellableEventArgs.cs +++ b/src/Umbraco.Core/Events/CancellableEventArgs.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.Collections.ObjectModel; -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { /// /// Represents event data for events that support cancellation. diff --git a/src/Umbraco.Core/Events/CancellableObjectEventArgs.cs b/src/Umbraco.Core/Events/CancellableObjectEventArgs.cs index 1d47e9fd95..9c96732888 100644 --- a/src/Umbraco.Core/Events/CancellableObjectEventArgs.cs +++ b/src/Umbraco.Core/Events/CancellableObjectEventArgs.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { /// /// Provides a base class for classes representing event data, for events that support cancellation, and expose an impacted object. diff --git a/src/Umbraco.Core/Events/CancellableObjectEventArgsOfTEventObject.cs b/src/Umbraco.Core/Events/CancellableObjectEventArgsOfTEventObject.cs index ace2ce0a4f..1d90effe2a 100644 --- a/src/Umbraco.Core/Events/CancellableObjectEventArgsOfTEventObject.cs +++ b/src/Umbraco.Core/Events/CancellableObjectEventArgsOfTEventObject.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { /// /// Represent event data, for events that support cancellation, and expose an impacted object. diff --git a/src/Umbraco.Core/Events/ContentCacheEventArgs.cs b/src/Umbraco.Core/Events/ContentCacheEventArgs.cs index fd0adb4570..78f714f754 100644 --- a/src/Umbraco.Core/Events/ContentCacheEventArgs.cs +++ b/src/Umbraco.Core/Events/ContentCacheEventArgs.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { public class ContentCacheEventArgs : System.ComponentModel.CancelEventArgs { } } diff --git a/src/Umbraco.Core/Events/ContentPublishedEventArgs.cs b/src/Umbraco.Core/Events/ContentPublishedEventArgs.cs index 8c0690d591..ceec857c64 100644 --- a/src/Umbraco.Core/Events/ContentPublishedEventArgs.cs +++ b/src/Umbraco.Core/Events/ContentPublishedEventArgs.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { /// /// Represents event data for the Published event. @@ -25,6 +25,6 @@ namespace Umbraco.Core.Events /// Determines whether a culture has been unpublished, during a Published event. /// public bool HasUnpublishedCulture(IContent content, string culture) - => content.WasPropertyDirty(ContentBase.ChangeTrackingPrefix.UnpublishedCulture + culture); + => content.WasPropertyDirty(ContentBase.ChangeTrackingPrefix.UnpublishedCulture + culture); } } diff --git a/src/Umbraco.Core/Events/ContentPublishingEventArgs.cs b/src/Umbraco.Core/Events/ContentPublishingEventArgs.cs index b64bb19def..e7893ea195 100644 --- a/src/Umbraco.Core/Events/ContentPublishingEventArgs.cs +++ b/src/Umbraco.Core/Events/ContentPublishingEventArgs.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { /// /// Represents event data for the Publishing event. diff --git a/src/Umbraco.Core/Events/ContentSavedEventArgs.cs b/src/Umbraco.Core/Events/ContentSavedEventArgs.cs index e2d8c25dd1..554330563a 100644 --- a/src/Umbraco.Core/Events/ContentSavedEventArgs.cs +++ b/src/Umbraco.Core/Events/ContentSavedEventArgs.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { /// /// Represents event data for the Saved event. diff --git a/src/Umbraco.Core/Events/ContentSavingEventArgs.cs b/src/Umbraco.Core/Events/ContentSavingEventArgs.cs index 384353ee2e..b1cded2eb4 100644 --- a/src/Umbraco.Core/Events/ContentSavingEventArgs.cs +++ b/src/Umbraco.Core/Events/ContentSavingEventArgs.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { /// /// Represent event data for the Saving event. diff --git a/src/Umbraco.Core/Events/CopyEventArgs.cs b/src/Umbraco.Core/Events/CopyEventArgs.cs index d2d39e0ba9..c4985513cb 100644 --- a/src/Umbraco.Core/Events/CopyEventArgs.cs +++ b/src/Umbraco.Core/Events/CopyEventArgs.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { public class CopyEventArgs : CancellableObjectEventArgs, IEquatable> { diff --git a/src/Umbraco.Core/Events/DatabaseCreationEventArgs.cs b/src/Umbraco.Core/Events/DatabaseCreationEventArgs.cs index 514ca68d41..15e36f21e7 100644 --- a/src/Umbraco.Core/Events/DatabaseCreationEventArgs.cs +++ b/src/Umbraco.Core/Events/DatabaseCreationEventArgs.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { public class DatabaseCreationEventArgs : System.ComponentModel.CancelEventArgs{} } diff --git a/src/Umbraco.Core/Events/DeleteEventArgs.cs b/src/Umbraco.Core/Events/DeleteEventArgs.cs index 5be669886e..0a3f76eeb8 100644 --- a/src/Umbraco.Core/Events/DeleteEventArgs.cs +++ b/src/Umbraco.Core/Events/DeleteEventArgs.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.Linq; -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { [SupersedeEvent(typeof(SaveEventArgs<>))] [SupersedeEvent(typeof(PublishEventArgs<>))] diff --git a/src/Umbraco.Core/Events/DeleteRevisionsEventArgs.cs b/src/Umbraco.Core/Events/DeleteRevisionsEventArgs.cs index 46fdfc6f93..a7eb48107e 100644 --- a/src/Umbraco.Core/Events/DeleteRevisionsEventArgs.cs +++ b/src/Umbraco.Core/Events/DeleteRevisionsEventArgs.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { public class DeleteRevisionsEventArgs : DeleteEventArgs, IEquatable { diff --git a/src/Umbraco.Core/Events/EventAggregator.Notifications.cs b/src/Umbraco.Core/Events/EventAggregator.Notifications.cs index faadc2fc59..859edd4997 100644 --- a/src/Umbraco.Core/Events/EventAggregator.Notifications.cs +++ b/src/Umbraco.Core/Events/EventAggregator.Notifications.cs @@ -8,7 +8,7 @@ using System.Linq; using System.Threading; using System.Threading.Tasks; -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { /// /// Contains types and methods that allow publishing general notifications. diff --git a/src/Umbraco.Core/Events/EventAggregator.cs b/src/Umbraco.Core/Events/EventAggregator.cs index 33c8c3aa4f..edb97c1672 100644 --- a/src/Umbraco.Core/Events/EventAggregator.cs +++ b/src/Umbraco.Core/Events/EventAggregator.cs @@ -6,7 +6,7 @@ using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { /// /// A factory method used to resolve all services. diff --git a/src/Umbraco.Core/Events/EventDefinition.cs b/src/Umbraco.Core/Events/EventDefinition.cs index e8da5aec3d..9502fac332 100644 --- a/src/Umbraco.Core/Events/EventDefinition.cs +++ b/src/Umbraco.Core/Events/EventDefinition.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { public class EventDefinition : EventDefinitionBase { diff --git a/src/Umbraco.Core/Events/EventDefinitionBase.cs b/src/Umbraco.Core/Events/EventDefinitionBase.cs index b61d00d75f..3fc6040c71 100644 --- a/src/Umbraco.Core/Events/EventDefinitionBase.cs +++ b/src/Umbraco.Core/Events/EventDefinitionBase.cs @@ -1,7 +1,8 @@ using System; using System.Reflection; +using Umbraco.Extensions; -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { public abstract class EventDefinitionBase : IEventDefinition, IEquatable { diff --git a/src/Umbraco.Core/Events/EventDefinitionFilter.cs b/src/Umbraco.Core/Events/EventDefinitionFilter.cs index 36838a1e3c..47b0f9a44e 100644 --- a/src/Umbraco.Core/Events/EventDefinitionFilter.cs +++ b/src/Umbraco.Core/Events/EventDefinitionFilter.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { /// /// The filter used in the GetEvents method which determines diff --git a/src/Umbraco.Core/Events/EventExtensions.cs b/src/Umbraco.Core/Events/EventExtensions.cs index d1c8dde5fb..4d98cbbcca 100644 --- a/src/Umbraco.Core/Events/EventExtensions.cs +++ b/src/Umbraco.Core/Events/EventExtensions.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { /// /// Extension methods for cancellable event operations diff --git a/src/Umbraco.Core/Events/EventMessage.cs b/src/Umbraco.Core/Events/EventMessage.cs index e3bf0a6f66..eef0985c23 100644 --- a/src/Umbraco.Core/Events/EventMessage.cs +++ b/src/Umbraco.Core/Events/EventMessage.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { /// /// An event message diff --git a/src/Umbraco.Core/Events/EventMessageType.cs b/src/Umbraco.Core/Events/EventMessageType.cs index c112312ee6..afbed0d590 100644 --- a/src/Umbraco.Core/Events/EventMessageType.cs +++ b/src/Umbraco.Core/Events/EventMessageType.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { /// /// The type of event message diff --git a/src/Umbraco.Core/Events/EventMessages.cs b/src/Umbraco.Core/Events/EventMessages.cs index 6f2bf5b736..23b40118c7 100644 --- a/src/Umbraco.Core/Events/EventMessages.cs +++ b/src/Umbraco.Core/Events/EventMessages.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { /// /// Event messages collection diff --git a/src/Umbraco.Core/Events/EventNameExtractor.cs b/src/Umbraco.Core/Events/EventNameExtractor.cs index b8274d4c70..cbff67d491 100644 --- a/src/Umbraco.Core/Events/EventNameExtractor.cs +++ b/src/Umbraco.Core/Events/EventNameExtractor.cs @@ -4,7 +4,7 @@ using System.Linq; using System.Reflection; using System.Text.RegularExpressions; -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { /// /// There is actually no way to discover an event name in c# at the time of raising the event. It is possible diff --git a/src/Umbraco.Core/Events/EventNameExtractorError.cs b/src/Umbraco.Core/Events/EventNameExtractorError.cs index c39029fc72..8a506f9071 100644 --- a/src/Umbraco.Core/Events/EventNameExtractorError.cs +++ b/src/Umbraco.Core/Events/EventNameExtractorError.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { public enum EventNameExtractorError { diff --git a/src/Umbraco.Core/Events/EventNameExtractorResult.cs b/src/Umbraco.Core/Events/EventNameExtractorResult.cs index 70be9966c0..bdfd884401 100644 --- a/src/Umbraco.Core/Events/EventNameExtractorResult.cs +++ b/src/Umbraco.Core/Events/EventNameExtractorResult.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { public class EventNameExtractorResult { diff --git a/src/Umbraco.Core/Events/ExportedMemberEventArgs.cs b/src/Umbraco.Core/Events/ExportedMemberEventArgs.cs index 45b4366677..2026f41ff3 100644 --- a/src/Umbraco.Core/Events/ExportedMemberEventArgs.cs +++ b/src/Umbraco.Core/Events/ExportedMemberEventArgs.cs @@ -1,8 +1,8 @@ using System; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Membership; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Membership; -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { public class ExportedMemberEventArgs : EventArgs { diff --git a/src/Umbraco.Core/Events/IDeletingMediaFilesEventArgs.cs b/src/Umbraco.Core/Events/IDeletingMediaFilesEventArgs.cs index b221e9d447..9a6a4357e0 100644 --- a/src/Umbraco.Core/Events/IDeletingMediaFilesEventArgs.cs +++ b/src/Umbraco.Core/Events/IDeletingMediaFilesEventArgs.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { public interface IDeletingMediaFilesEventArgs { diff --git a/src/Umbraco.Core/Events/IEventAggregator.cs b/src/Umbraco.Core/Events/IEventAggregator.cs index 0d8905dd62..82cc1a68ca 100644 --- a/src/Umbraco.Core/Events/IEventAggregator.cs +++ b/src/Umbraco.Core/Events/IEventAggregator.cs @@ -4,7 +4,7 @@ using System.Threading; using System.Threading.Tasks; -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { /// /// Defines an object that channels events from multiple objects into a single object diff --git a/src/Umbraco.Core/Events/IEventDefinition.cs b/src/Umbraco.Core/Events/IEventDefinition.cs index 2afab1ee0f..09985f833a 100644 --- a/src/Umbraco.Core/Events/IEventDefinition.cs +++ b/src/Umbraco.Core/Events/IEventDefinition.cs @@ -1,6 +1,4 @@ -using System; - -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { public interface IEventDefinition { diff --git a/src/Umbraco.Core/Events/IEventDispatcher.cs b/src/Umbraco.Core/Events/IEventDispatcher.cs index 9d2c12ceac..84e522761c 100644 --- a/src/Umbraco.Core/Events/IEventDispatcher.cs +++ b/src/Umbraco.Core/Events/IEventDispatcher.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { /// /// Dispatches events from within a scope. diff --git a/src/Umbraco.Core/Events/IEventMessagesAccessor.cs b/src/Umbraco.Core/Events/IEventMessagesAccessor.cs index be4603a285..7d95ae1cb5 100644 --- a/src/Umbraco.Core/Events/IEventMessagesAccessor.cs +++ b/src/Umbraco.Core/Events/IEventMessagesAccessor.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { public interface IEventMessagesAccessor { diff --git a/src/Umbraco.Core/Events/IEventMessagesFactory.cs b/src/Umbraco.Core/Events/IEventMessagesFactory.cs index c35539b658..6b3e4fe0af 100644 --- a/src/Umbraco.Core/Events/IEventMessagesFactory.cs +++ b/src/Umbraco.Core/Events/IEventMessagesFactory.cs @@ -1,6 +1,4 @@ -using System.Collections.Generic; - -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { /// /// Event messages factory diff --git a/src/Umbraco.Core/Events/INotification.cs b/src/Umbraco.Core/Events/INotification.cs index 3030b0836f..734e9343cf 100644 --- a/src/Umbraco.Core/Events/INotification.cs +++ b/src/Umbraco.Core/Events/INotification.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { /// /// A marker interface to represent a notification. diff --git a/src/Umbraco.Core/Events/INotificationHandler.cs b/src/Umbraco.Core/Events/INotificationHandler.cs index 4cfe52e005..25aea986c6 100644 --- a/src/Umbraco.Core/Events/INotificationHandler.cs +++ b/src/Umbraco.Core/Events/INotificationHandler.cs @@ -4,7 +4,7 @@ using System.Threading; using System.Threading.Tasks; -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { /// /// Defines a handler for a notification. diff --git a/src/Umbraco.Core/Events/ImportPackageEventArgs.cs b/src/Umbraco.Core/Events/ImportPackageEventArgs.cs index a044cd71b3..5b04bff318 100644 --- a/src/Umbraco.Core/Events/ImportPackageEventArgs.cs +++ b/src/Umbraco.Core/Events/ImportPackageEventArgs.cs @@ -1,9 +1,8 @@ using System; using System.Collections.Generic; -using System.ComponentModel; -using Umbraco.Core.Models.Packaging; +using Umbraco.Cms.Core.Models.Packaging; -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { public class ImportPackageEventArgs : CancellableEnumerableObjectEventArgs, IEquatable> { @@ -16,7 +15,7 @@ namespace Umbraco.Core.Events public ImportPackageEventArgs(TEntity eventObject, IPackageInfo packageMetaData) : this(eventObject, packageMetaData, true) { - + } public IPackageInfo PackageMetaData { get; } diff --git a/src/Umbraco.Core/Events/MacroErrorEventArgs.cs b/src/Umbraco.Core/Events/MacroErrorEventArgs.cs index afabec4d98..b1558482a8 100644 --- a/src/Umbraco.Core/Events/MacroErrorEventArgs.cs +++ b/src/Umbraco.Core/Events/MacroErrorEventArgs.cs @@ -1,7 +1,7 @@ using System; -using Umbraco.Core.Macros; +using Umbraco.Cms.Core.Macros; -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { // Provides information on the macro that caused an error public class MacroErrorEventArgs : EventArgs diff --git a/src/Umbraco.Core/Events/MoveEventArgs.cs b/src/Umbraco.Core/Events/MoveEventArgs.cs index f1b09917d8..dfb42fcc96 100644 --- a/src/Umbraco.Core/Events/MoveEventArgs.cs +++ b/src/Umbraco.Core/Events/MoveEventArgs.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.Linq; -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { public class MoveEventArgs : CancellableObjectEventArgs, IEquatable> { diff --git a/src/Umbraco.Core/Events/MoveEventInfo.cs b/src/Umbraco.Core/Events/MoveEventInfo.cs index 0b6702611b..9abcbd2c68 100644 --- a/src/Umbraco.Core/Events/MoveEventInfo.cs +++ b/src/Umbraco.Core/Events/MoveEventInfo.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { public class MoveEventInfo : IEquatable> { diff --git a/src/Umbraco.Core/Events/NewEventArgs.cs b/src/Umbraco.Core/Events/NewEventArgs.cs index 3969f17b8c..a659787547 100644 --- a/src/Umbraco.Core/Events/NewEventArgs.cs +++ b/src/Umbraco.Core/Events/NewEventArgs.cs @@ -1,8 +1,7 @@ using System; using System.Collections.Generic; -using Umbraco.Core.Models; -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { public class NewEventArgs : CancellableObjectEventArgs, IEquatable> { diff --git a/src/Umbraco.Core/Events/PassThroughEventDispatcher.cs b/src/Umbraco.Core/Events/PassThroughEventDispatcher.cs index dec3a62a88..0b2e72cc7f 100644 --- a/src/Umbraco.Core/Events/PassThroughEventDispatcher.cs +++ b/src/Umbraco.Core/Events/PassThroughEventDispatcher.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.Linq; -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { /// /// An IEventDispatcher that immediately raise all events. diff --git a/src/Umbraco.Core/Events/PublishEventArgs.cs b/src/Umbraco.Core/Events/PublishEventArgs.cs index 4be655873e..101458b897 100644 --- a/src/Umbraco.Core/Events/PublishEventArgs.cs +++ b/src/Umbraco.Core/Events/PublishEventArgs.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { public class PublishEventArgs : CancellableEnumerableObjectEventArgs, IEquatable> { diff --git a/src/Umbraco.Core/Events/QueuingEventDispatcherBase.cs b/src/Umbraco.Core/Events/QueuingEventDispatcherBase.cs index b4dc6187fa..784390ebe7 100644 --- a/src/Umbraco.Core/Events/QueuingEventDispatcherBase.cs +++ b/src/Umbraco.Core/Events/QueuingEventDispatcherBase.cs @@ -1,11 +1,12 @@ using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core.Collections; -using Umbraco.Core.Composing; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Collections; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Extensions; -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { /// /// An IEventDispatcher that queues events. diff --git a/src/Umbraco.Core/Events/RecycleBinEventArgs.cs b/src/Umbraco.Core/Events/RecycleBinEventArgs.cs index 3f0f3784a2..a1791618bc 100644 --- a/src/Umbraco.Core/Events/RecycleBinEventArgs.cs +++ b/src/Umbraco.Core/Events/RecycleBinEventArgs.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { public class RecycleBinEventArgs : CancellableEventArgs, IEquatable { diff --git a/src/Umbraco.Core/Events/RefreshContentEventArgs.cs b/src/Umbraco.Core/Events/RefreshContentEventArgs.cs index c92633fcef..c41043a039 100644 --- a/src/Umbraco.Core/Events/RefreshContentEventArgs.cs +++ b/src/Umbraco.Core/Events/RefreshContentEventArgs.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { //public class RefreshContentEventArgs : System.ComponentModel.CancelEventArgs { } } diff --git a/src/Umbraco.Core/Events/RolesEventArgs.cs b/src/Umbraco.Core/Events/RolesEventArgs.cs index 3104412f99..a4fb6c3d18 100644 --- a/src/Umbraco.Core/Events/RolesEventArgs.cs +++ b/src/Umbraco.Core/Events/RolesEventArgs.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { public class RolesEventArgs : EventArgs { diff --git a/src/Umbraco.Core/Events/RollbackEventArgs.cs b/src/Umbraco.Core/Events/RollbackEventArgs.cs index 9ebdb20e64..c83b209e05 100644 --- a/src/Umbraco.Core/Events/RollbackEventArgs.cs +++ b/src/Umbraco.Core/Events/RollbackEventArgs.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { public class RollbackEventArgs : CancellableObjectEventArgs { diff --git a/src/Umbraco.Core/Events/SaveEventArgs.cs b/src/Umbraco.Core/Events/SaveEventArgs.cs index 0b061c2227..173c9fe2d6 100644 --- a/src/Umbraco.Core/Events/SaveEventArgs.cs +++ b/src/Umbraco.Core/Events/SaveEventArgs.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { public class SaveEventArgs : CancellableEnumerableObjectEventArgs { diff --git a/src/Umbraco.Core/Events/SendEmailEventArgs.cs b/src/Umbraco.Core/Events/SendEmailEventArgs.cs index 7ee9469b57..720f125d9c 100644 --- a/src/Umbraco.Core/Events/SendEmailEventArgs.cs +++ b/src/Umbraco.Core/Events/SendEmailEventArgs.cs @@ -1,7 +1,7 @@ using System; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { public class SendEmailEventArgs : EventArgs { diff --git a/src/Umbraco.Core/Events/SendToPublishEventArgs.cs b/src/Umbraco.Core/Events/SendToPublishEventArgs.cs index 21e9276e43..b74c0846f0 100644 --- a/src/Umbraco.Core/Events/SendToPublishEventArgs.cs +++ b/src/Umbraco.Core/Events/SendToPublishEventArgs.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { public class SendToPublishEventArgs : CancellableObjectEventArgs { diff --git a/src/Umbraco.Core/Events/SupersedeEventAttribute.cs b/src/Umbraco.Core/Events/SupersedeEventAttribute.cs index d7198ea117..d733f0706a 100644 --- a/src/Umbraco.Core/Events/SupersedeEventAttribute.cs +++ b/src/Umbraco.Core/Events/SupersedeEventAttribute.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { /// /// This is used to know if the event arg attributed should supersede another event arg type when diff --git a/src/Umbraco.Core/Events/TransientEventMessagesFactory.cs b/src/Umbraco.Core/Events/TransientEventMessagesFactory.cs index 7a0947c990..1179a6316e 100644 --- a/src/Umbraco.Core/Events/TransientEventMessagesFactory.cs +++ b/src/Umbraco.Core/Events/TransientEventMessagesFactory.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { /// /// A simple/default transient messages factory diff --git a/src/Umbraco.Core/Events/TypedEventHandler.cs b/src/Umbraco.Core/Events/TypedEventHandler.cs index 84bac77ca0..11301448e0 100644 --- a/src/Umbraco.Core/Events/TypedEventHandler.cs +++ b/src/Umbraco.Core/Events/TypedEventHandler.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { [Serializable] public delegate void TypedEventHandler(TSender sender, TEventArgs e); diff --git a/src/Umbraco.Core/Events/UmbracoApplicationStarting.cs b/src/Umbraco.Core/Events/UmbracoApplicationStarting.cs index e78a6e4608..2e7d8c768c 100644 --- a/src/Umbraco.Core/Events/UmbracoApplicationStarting.cs +++ b/src/Umbraco.Core/Events/UmbracoApplicationStarting.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { public class UmbracoApplicationStarting : INotification diff --git a/src/Umbraco.Core/Events/UmbracoApplicationStopping.cs b/src/Umbraco.Core/Events/UmbracoApplicationStopping.cs index bef6f0de19..54ce079012 100644 --- a/src/Umbraco.Core/Events/UmbracoApplicationStopping.cs +++ b/src/Umbraco.Core/Events/UmbracoApplicationStopping.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { public class UmbracoApplicationStopping : INotification { } } diff --git a/src/Umbraco.Core/Events/UmbracoRequestBegin.cs b/src/Umbraco.Core/Events/UmbracoRequestBegin.cs index c72ddc904d..ffb55938b3 100644 --- a/src/Umbraco.Core/Events/UmbracoRequestBegin.cs +++ b/src/Umbraco.Core/Events/UmbracoRequestBegin.cs @@ -1,9 +1,9 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -using Umbraco.Web; +using Umbraco.Cms.Core.Web; -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { /// /// Notification raised on each request begin. diff --git a/src/Umbraco.Core/Events/UmbracoRequestEnd.cs b/src/Umbraco.Core/Events/UmbracoRequestEnd.cs index 1988a2dd50..b4e0f26b81 100644 --- a/src/Umbraco.Core/Events/UmbracoRequestEnd.cs +++ b/src/Umbraco.Core/Events/UmbracoRequestEnd.cs @@ -1,9 +1,9 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -using Umbraco.Web; +using Umbraco.Cms.Core.Web; -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { /// /// Notification raised on each request end. diff --git a/src/Umbraco.Core/Events/UninstallPackageEventArgs.cs b/src/Umbraco.Core/Events/UninstallPackageEventArgs.cs index 63c5ceaba0..e83210b3a0 100644 --- a/src/Umbraco.Core/Events/UninstallPackageEventArgs.cs +++ b/src/Umbraco.Core/Events/UninstallPackageEventArgs.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Models.Packaging; +using Umbraco.Cms.Core.Packaging; -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { public class UninstallPackageEventArgs: CancellableObjectEventArgs> { diff --git a/src/Umbraco.Core/Events/UserGroupWithUsers.cs b/src/Umbraco.Core/Events/UserGroupWithUsers.cs index 7d456a22ea..17946a781f 100644 --- a/src/Umbraco.Core/Events/UserGroupWithUsers.cs +++ b/src/Umbraco.Core/Events/UserGroupWithUsers.cs @@ -1,7 +1,6 @@ -using System; -using Umbraco.Core.Models.Membership; +using Umbraco.Cms.Core.Models.Membership; -namespace Umbraco.Core.Events +namespace Umbraco.Cms.Core.Events { public class UserGroupWithUsers { diff --git a/src/Umbraco.Core/Exceptions/AuthorizationException.cs b/src/Umbraco.Core/Exceptions/AuthorizationException.cs index b87a8da8b8..fa2399fc5c 100644 --- a/src/Umbraco.Core/Exceptions/AuthorizationException.cs +++ b/src/Umbraco.Core/Exceptions/AuthorizationException.cs @@ -1,7 +1,7 @@ using System; using System.Runtime.Serialization; -namespace Umbraco.Core.Exceptions +namespace Umbraco.Cms.Core.Exceptions { /// /// The exception that is thrown when authorization failed. diff --git a/src/Umbraco.Core/Exceptions/BootFailedException.cs b/src/Umbraco.Core/Exceptions/BootFailedException.cs index e8ffe1d2e9..5f546c7b9d 100644 --- a/src/Umbraco.Core/Exceptions/BootFailedException.cs +++ b/src/Umbraco.Core/Exceptions/BootFailedException.cs @@ -2,7 +2,7 @@ using System.Runtime.Serialization; using System.Text; -namespace Umbraco.Core.Exceptions +namespace Umbraco.Cms.Core.Exceptions { /// /// An exception that is thrown if the Umbraco application cannot boot. @@ -53,7 +53,7 @@ namespace Umbraco.Core.Exceptions /// Rethrows a captured . /// /// The boot failed exception. - /// + /// /// /// /// The exception can be null, in which case a default message is used. diff --git a/src/Umbraco.Core/Exceptions/DataOperationException.cs b/src/Umbraco.Core/Exceptions/DataOperationException.cs index a48fdbc721..f4146758bd 100644 --- a/src/Umbraco.Core/Exceptions/DataOperationException.cs +++ b/src/Umbraco.Core/Exceptions/DataOperationException.cs @@ -1,7 +1,7 @@ using System; using System.Runtime.Serialization; -namespace Umbraco.Core.Exceptions +namespace Umbraco.Cms.Core.Exceptions { /// /// diff --git a/src/Umbraco.Core/Exceptions/InvalidCompositionException.cs b/src/Umbraco.Core/Exceptions/InvalidCompositionException.cs index 684e23b020..90e1d03490 100644 --- a/src/Umbraco.Core/Exceptions/InvalidCompositionException.cs +++ b/src/Umbraco.Core/Exceptions/InvalidCompositionException.cs @@ -1,7 +1,8 @@ using System; using System.Runtime.Serialization; +using Umbraco.Extensions; -namespace Umbraco.Core.Exceptions +namespace Umbraco.Cms.Core.Exceptions { /// /// The exception that is thrown when a composition is invalid. diff --git a/src/Umbraco.Core/Exceptions/PanicException.cs b/src/Umbraco.Core/Exceptions/PanicException.cs index 75edf7fd73..9ba1311e84 100644 --- a/src/Umbraco.Core/Exceptions/PanicException.cs +++ b/src/Umbraco.Core/Exceptions/PanicException.cs @@ -1,7 +1,7 @@ using System; using System.Runtime.Serialization; -namespace Umbraco.Core.Exceptions +namespace Umbraco.Cms.Core.Exceptions { /// /// Represents an internal exception that in theory should never been thrown, it is only thrown in circumstances that should never happen. diff --git a/src/Umbraco.Core/Exceptions/UnattendedInstallException.cs b/src/Umbraco.Core/Exceptions/UnattendedInstallException.cs index 6f672d17cd..2a2b97b23d 100644 --- a/src/Umbraco.Core/Exceptions/UnattendedInstallException.cs +++ b/src/Umbraco.Core/Exceptions/UnattendedInstallException.cs @@ -1,7 +1,7 @@ using System; using System.Runtime.Serialization; -namespace Umbraco.Core.Exceptions +namespace Umbraco.Cms.Core.Exceptions { /// /// An exception that is thrown if an unattended installation occurs. diff --git a/src/Umbraco.Core/ExpressionHelper.cs b/src/Umbraco.Core/ExpressionHelper.cs index 93598fe97e..bb59605a46 100644 --- a/src/Umbraco.Core/ExpressionHelper.cs +++ b/src/Umbraco.Core/ExpressionHelper.cs @@ -4,9 +4,9 @@ using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Reflection; -using Umbraco.Core.Persistence; +using Umbraco.Cms.Core.Persistence; -namespace Umbraco.Core +namespace Umbraco.Cms.Core { /// /// A set of helper methods for dealing with expressions diff --git a/src/Umbraco.Core/AssemblyExtensions.cs b/src/Umbraco.Core/Extensions/AssemblyExtensions.cs similarity index 96% rename from src/Umbraco.Core/AssemblyExtensions.cs rename to src/Umbraco.Core/Extensions/AssemblyExtensions.cs index 19162e5934..cefaae5b86 100644 --- a/src/Umbraco.Core/AssemblyExtensions.cs +++ b/src/Umbraco.Core/Extensions/AssemblyExtensions.cs @@ -1,8 +1,11 @@ -using System; +// Copyright (c) Umbraco. +// See LICENSE for more details. + +using System; using System.IO; using System.Reflection; -namespace Umbraco.Core +namespace Umbraco.Extensions { public static class AssemblyExtensions { diff --git a/src/Umbraco.Core/ClaimsIdentityExtensions.cs b/src/Umbraco.Core/Extensions/ClaimsIdentityExtensions.cs similarity index 96% rename from src/Umbraco.Core/ClaimsIdentityExtensions.cs rename to src/Umbraco.Core/Extensions/ClaimsIdentityExtensions.cs index 2827f859b7..3d58253dd9 100644 --- a/src/Umbraco.Core/ClaimsIdentityExtensions.cs +++ b/src/Umbraco.Core/Extensions/ClaimsIdentityExtensions.cs @@ -1,8 +1,11 @@ -using System; +// Copyright (c) Umbraco. +// See LICENSE for more details. + +using System; using System.Security.Claims; using System.Security.Principal; -namespace Umbraco.Core +namespace Umbraco.Extensions { public static class ClaimsIdentityExtensions { diff --git a/src/Umbraco.Core/ConfigConnectionStringExtensions.cs b/src/Umbraco.Core/Extensions/ConfigConnectionStringExtensions.cs similarity index 89% rename from src/Umbraco.Core/ConfigConnectionStringExtensions.cs rename to src/Umbraco.Core/Extensions/ConfigConnectionStringExtensions.cs index 8047af88c5..c1b788c0b9 100644 --- a/src/Umbraco.Core/ConfigConnectionStringExtensions.cs +++ b/src/Umbraco.Core/Extensions/ConfigConnectionStringExtensions.cs @@ -1,9 +1,13 @@ +// Copyright (c) Umbraco. +// See LICENSE for more details. + using System; using System.IO; using System.Linq; -using Umbraco.Core.Configuration; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration; -namespace Umbraco.Core +namespace Umbraco.Extensions { public static class ConfigConnectionStringExtensions { @@ -11,7 +15,10 @@ namespace Umbraco.Core { var dbIsSqlCe = false; if (databaseSettings?.ProviderName != null) + { dbIsSqlCe = databaseSettings.ProviderName == Constants.DbProviderNames.SqlCe; + } + var sqlCeDatabaseExists = false; if (dbIsSqlCe) { diff --git a/src/Umbraco.Core/ContentExtensions.cs b/src/Umbraco.Core/Extensions/ContentExtensions.cs similarity index 98% rename from src/Umbraco.Core/ContentExtensions.cs rename to src/Umbraco.Core/Extensions/ContentExtensions.cs index 42f47ff604..7794d60b15 100644 --- a/src/Umbraco.Core/ContentExtensions.cs +++ b/src/Umbraco.Core/Extensions/ContentExtensions.cs @@ -1,16 +1,19 @@ +// Copyright (c) Umbraco. +// See LICENSE for more details. + using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Xml.Linq; -using Umbraco.Core.IO; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; -namespace Umbraco.Core +namespace Umbraco.Extensions { public static class ContentExtensions { diff --git a/src/Umbraco.Core/ContentVariationExtensions.cs b/src/Umbraco.Core/Extensions/ContentVariationExtensions.cs similarity index 98% rename from src/Umbraco.Core/ContentVariationExtensions.cs rename to src/Umbraco.Core/Extensions/ContentVariationExtensions.cs index 1c34a61c3a..c6d6b2c557 100644 --- a/src/Umbraco.Core/ContentVariationExtensions.cs +++ b/src/Umbraco.Core/Extensions/ContentVariationExtensions.cs @@ -1,8 +1,11 @@ -using System; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; +// Copyright (c) Umbraco. +// See LICENSE for more details. -namespace Umbraco.Core +using System; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; + +namespace Umbraco.Extensions { /// /// Provides extension methods for content variations. diff --git a/src/Umbraco.Core/CacheHelperExtensions.cs b/src/Umbraco.Core/Extensions/CoreCacheHelperExtensions.cs similarity index 74% rename from src/Umbraco.Core/CacheHelperExtensions.cs rename to src/Umbraco.Core/Extensions/CoreCacheHelperExtensions.cs index 2b01ae1028..8dfec45c7e 100644 --- a/src/Umbraco.Core/CacheHelperExtensions.cs +++ b/src/Umbraco.Core/Extensions/CoreCacheHelperExtensions.cs @@ -1,14 +1,15 @@ -using Umbraco.Core.Cache; +// Copyright (c) Umbraco. +// See LICENSE for more details. -namespace Umbraco.Core +using Umbraco.Cms.Core.Cache; + +namespace Umbraco.Extensions { - /// /// Extension methods for the cache helper /// - public static class CacheHelperExtensions + public static class CoreCacheHelperExtensions { - public const string PartialViewCacheKey = "Umbraco.Web.PartialViewCacheKey"; /// diff --git a/src/Umbraco.Core/DataTableExtensions.cs b/src/Umbraco.Core/Extensions/DataTableExtensions.cs similarity index 97% rename from src/Umbraco.Core/DataTableExtensions.cs rename to src/Umbraco.Core/Extensions/DataTableExtensions.cs index 63b2671d09..5221fff3fa 100644 --- a/src/Umbraco.Core/DataTableExtensions.cs +++ b/src/Umbraco.Core/Extensions/DataTableExtensions.cs @@ -1,9 +1,12 @@ -using System; +// Copyright (c) Umbraco. +// See LICENSE for more details. + +using System; using System.Collections.Generic; using System.Data; using System.Linq; -namespace Umbraco.Core +namespace Umbraco.Extensions { /// /// Static and extension methods for the DataTable object diff --git a/src/Umbraco.Core/DateTimeExtensions.cs b/src/Umbraco.Core/Extensions/DateTimeExtensions.cs similarity index 92% rename from src/Umbraco.Core/DateTimeExtensions.cs rename to src/Umbraco.Core/Extensions/DateTimeExtensions.cs index 378d06a637..e500cf86b0 100644 --- a/src/Umbraco.Core/DateTimeExtensions.cs +++ b/src/Umbraco.Core/Extensions/DateTimeExtensions.cs @@ -1,14 +1,13 @@ -using System; -using System.Collections.Generic; -using System.Globalization; -using System.Linq; -using System.Text; +// Copyright (c) Umbraco. +// See LICENSE for more details. -namespace Umbraco.Core +using System; +using System.Globalization; + +namespace Umbraco.Extensions { public static class DateTimeExtensions { - /// /// Returns the DateTime as an ISO formatted string that is globally expectable /// diff --git a/src/Umbraco.Core/DecimalExtensions.cs b/src/Umbraco.Core/Extensions/DecimalExtensions.cs similarity index 89% rename from src/Umbraco.Core/DecimalExtensions.cs rename to src/Umbraco.Core/Extensions/DecimalExtensions.cs index 8b3218d88c..fa62805841 100644 --- a/src/Umbraco.Core/DecimalExtensions.cs +++ b/src/Umbraco.Core/Extensions/DecimalExtensions.cs @@ -1,4 +1,7 @@ -namespace Umbraco.Core +// Copyright (c) Umbraco. +// See LICENSE for more details. + +namespace Umbraco.Extensions { /// /// Provides extension methods for System.Decimal. diff --git a/src/Umbraco.Core/DelegateExtensions.cs b/src/Umbraco.Core/Extensions/DelegateExtensions.cs similarity index 91% rename from src/Umbraco.Core/DelegateExtensions.cs rename to src/Umbraco.Core/Extensions/DelegateExtensions.cs index c9b2e681c5..43e3c8947b 100644 --- a/src/Umbraco.Core/DelegateExtensions.cs +++ b/src/Umbraco.Core/Extensions/DelegateExtensions.cs @@ -1,8 +1,12 @@ -using System; +// Copyright (c) Umbraco. +// See LICENSE for more details. + +using System; using System.Diagnostics; using System.Threading; +using Umbraco.Cms.Core; -namespace Umbraco.Core +namespace Umbraco.Extensions { public static class DelegateExtensions { diff --git a/src/Umbraco.Core/DictionaryExtensions.cs b/src/Umbraco.Core/Extensions/DictionaryExtensions.cs similarity index 99% rename from src/Umbraco.Core/DictionaryExtensions.cs rename to src/Umbraco.Core/Extensions/DictionaryExtensions.cs index b44e9b68c0..12e8de726f 100644 --- a/src/Umbraco.Core/DictionaryExtensions.cs +++ b/src/Umbraco.Core/Extensions/DictionaryExtensions.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Umbraco. +// See LICENSE for more details. + +using System; using System.Collections; using System.Collections.Concurrent; using System.Collections.Generic; @@ -8,7 +11,7 @@ using System.Net; using System.Text; using System.Threading.Tasks; -namespace Umbraco.Core +namespace Umbraco.Extensions { /// /// Extension methods for Dictionary & ConcurrentDictionary diff --git a/src/Umbraco.Core/EnumExtensions.cs b/src/Umbraco.Core/Extensions/EnumExtensions.cs similarity index 93% rename from src/Umbraco.Core/EnumExtensions.cs rename to src/Umbraco.Core/Extensions/EnumExtensions.cs index 9097432f64..e13467ef32 100644 --- a/src/Umbraco.Core/EnumExtensions.cs +++ b/src/Umbraco.Core/Extensions/EnumExtensions.cs @@ -1,6 +1,9 @@ -using System; +// Copyright (c) Umbraco. +// See LICENSE for more details. -namespace Umbraco.Core +using System; + +namespace Umbraco.Extensions { /// /// Provides extension methods to . diff --git a/src/Umbraco.Core/EnumerableExtensions.cs b/src/Umbraco.Core/Extensions/EnumerableExtensions.cs similarity index 98% rename from src/Umbraco.Core/EnumerableExtensions.cs rename to src/Umbraco.Core/Extensions/EnumerableExtensions.cs index a055cdb08e..895a423ea2 100644 --- a/src/Umbraco.Core/EnumerableExtensions.cs +++ b/src/Umbraco.Core/Extensions/EnumerableExtensions.cs @@ -1,12 +1,16 @@ -using System; +// Copyright (c) Umbraco. +// See LICENSE for more details. + +using System; using System.Collections.Generic; using System.Linq; +using Umbraco.Cms.Core; -namespace Umbraco.Core +namespace Umbraco.Extensions { - /// + /// /// Extensions for enumerable sources - /// + /// public static class EnumerableExtensions { public static bool IsCollectionEmpty(this IReadOnlyCollection list) => list == null || list.Count == 0; diff --git a/src/Umbraco.Core/ExpressionExtensions.cs b/src/Umbraco.Core/Extensions/ExpressionExtensions.cs similarity index 89% rename from src/Umbraco.Core/ExpressionExtensions.cs rename to src/Umbraco.Core/Extensions/ExpressionExtensions.cs index 04642c02d2..d76f39a8de 100644 --- a/src/Umbraco.Core/ExpressionExtensions.cs +++ b/src/Umbraco.Core/Extensions/ExpressionExtensions.cs @@ -1,7 +1,10 @@ -using System; +// Copyright (c) Umbraco. +// See LICENSE for more details. + +using System; using System.Linq.Expressions; -namespace Umbraco.Core +namespace Umbraco.Cms.Core { internal static class ExpressionExtensions { diff --git a/src/Umbraco.Core/IfExtensions.cs b/src/Umbraco.Core/Extensions/IfExtensions.cs similarity index 95% rename from src/Umbraco.Core/IfExtensions.cs rename to src/Umbraco.Core/Extensions/IfExtensions.cs index 2f87e0c08c..a9de084d08 100644 --- a/src/Umbraco.Core/IfExtensions.cs +++ b/src/Umbraco.Core/Extensions/IfExtensions.cs @@ -1,17 +1,15 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; +// Copyright (c) Umbraco. +// See LICENSE for more details. -namespace Umbraco.Core +using System; + +namespace Umbraco.Extensions { - /// /// Extension methods for 'If' checking like checking If something is null or not null /// public static class IfExtensions { - /// The if not null. /// The item. /// The action. diff --git a/src/Umbraco.Core/IntExtensions.cs b/src/Umbraco.Core/Extensions/IntExtensions.cs similarity index 88% rename from src/Umbraco.Core/IntExtensions.cs rename to src/Umbraco.Core/Extensions/IntExtensions.cs index d50490e939..4f79baa3f5 100644 --- a/src/Umbraco.Core/IntExtensions.cs +++ b/src/Umbraco.Core/Extensions/IntExtensions.cs @@ -1,6 +1,9 @@ -using System; +// Copyright (c) Umbraco. +// See LICENSE for more details. -namespace Umbraco.Core +using System; + +namespace Umbraco.Extensions { public static class IntExtensions { diff --git a/src/Umbraco.Core/KeyValuePairExtensions.cs b/src/Umbraco.Core/Extensions/KeyValuePairExtensions.cs similarity index 81% rename from src/Umbraco.Core/KeyValuePairExtensions.cs rename to src/Umbraco.Core/Extensions/KeyValuePairExtensions.cs index 30fd3fee50..73927f7a41 100644 --- a/src/Umbraco.Core/KeyValuePairExtensions.cs +++ b/src/Umbraco.Core/Extensions/KeyValuePairExtensions.cs @@ -1,6 +1,9 @@ -using System.Collections.Generic; +// Copyright (c) Umbraco. +// See LICENSE for more details. -namespace Umbraco.Core +using System.Collections.Generic; + +namespace Umbraco.Extensions { /// /// Provides extension methods for the struct. diff --git a/src/Umbraco.Core/MediaTypeExtensions.cs b/src/Umbraco.Core/Extensions/MediaTypeExtensions.cs similarity index 70% rename from src/Umbraco.Core/MediaTypeExtensions.cs rename to src/Umbraco.Core/Extensions/MediaTypeExtensions.cs index 3a2a3ba6e2..2c46271964 100644 --- a/src/Umbraco.Core/MediaTypeExtensions.cs +++ b/src/Umbraco.Core/Extensions/MediaTypeExtensions.cs @@ -1,4 +1,10 @@ -namespace Umbraco.Core.Models +// Copyright (c) Umbraco. +// See LICENSE for more details. + +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models; + +namespace Umbraco.Extensions { public static class MediaTypeExtensions { diff --git a/src/Umbraco.Core/NameValueCollectionExtensions.cs b/src/Umbraco.Core/Extensions/NameValueCollectionExtensions.cs similarity index 92% rename from src/Umbraco.Core/NameValueCollectionExtensions.cs rename to src/Umbraco.Core/Extensions/NameValueCollectionExtensions.cs index b7272c042d..1d9b093ef1 100644 --- a/src/Umbraco.Core/NameValueCollectionExtensions.cs +++ b/src/Umbraco.Core/Extensions/NameValueCollectionExtensions.cs @@ -1,10 +1,11 @@ -using System; +// Copyright (c) Umbraco. +// See LICENSE for more details. + using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; -using System.Text; -namespace Umbraco.Core +namespace Umbraco.Extensions { public static class NameValueCollectionExtensions { diff --git a/src/Umbraco.Core/ObjectExtensions.cs b/src/Umbraco.Core/Extensions/ObjectExtensions.cs similarity index 99% rename from src/Umbraco.Core/ObjectExtensions.cs rename to src/Umbraco.Core/Extensions/ObjectExtensions.cs index 29b19364a4..e2cb09c978 100644 --- a/src/Umbraco.Core/ObjectExtensions.cs +++ b/src/Umbraco.Core/Extensions/ObjectExtensions.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Umbraco. +// See LICENSE for more details. + +using System; using System.Collections; using System.Collections.Concurrent; using System.Collections.Generic; @@ -8,16 +11,16 @@ using System.Linq.Expressions; using System.Reflection; using System.Runtime.CompilerServices; using System.Xml; -using Umbraco.Core.Collections; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Collections; -namespace Umbraco.Core +namespace Umbraco.Extensions { /// /// Provides object extension methods. /// public static class ObjectExtensions { - private static readonly ConcurrentDictionary NullableGenericCache = new ConcurrentDictionary(); private static readonly ConcurrentDictionary InputTypeConverterCache = new ConcurrentDictionary(); private static readonly ConcurrentDictionary DestinationTypeConverterCache = new ConcurrentDictionary(); diff --git a/src/Umbraco.Core/PasswordConfigurationExtensions.cs b/src/Umbraco.Core/Extensions/PasswordConfigurationExtensions.cs similarity index 90% rename from src/Umbraco.Core/PasswordConfigurationExtensions.cs rename to src/Umbraco.Core/Extensions/PasswordConfigurationExtensions.cs index be13b574ed..a16a6f30a1 100644 --- a/src/Umbraco.Core/PasswordConfigurationExtensions.cs +++ b/src/Umbraco.Core/Extensions/PasswordConfigurationExtensions.cs @@ -1,9 +1,10 @@ -using System.Collections.Generic; -using Umbraco.Core.Configuration; -using Umbraco.Core.Security; -using Umbraco.Core.Services; +// Copyright (c) Umbraco. +// See LICENSE for more details. -namespace Umbraco.Web +using System.Collections.Generic; +using Umbraco.Cms.Core.Configuration; + +namespace Umbraco.Extensions { public static class PasswordConfigurationExtensions { diff --git a/src/Umbraco.Core/PublishedContentExtensions.cs b/src/Umbraco.Core/Extensions/PublishedContentExtensions.cs similarity index 99% rename from src/Umbraco.Core/PublishedContentExtensions.cs rename to src/Umbraco.Core/Extensions/PublishedContentExtensions.cs index 0a917a6d86..f609123370 100644 --- a/src/Umbraco.Core/PublishedContentExtensions.cs +++ b/src/Umbraco.Core/Extensions/PublishedContentExtensions.cs @@ -1,15 +1,19 @@ +// Copyright (c) Umbraco. +// See LICENSE for more details. + using System; using System.Collections.Generic; using System.Data; using System.Linq; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Services; -using Umbraco.Web.PublishedCache; -using Umbraco.Web.Routing; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Services; -namespace Umbraco.Core +namespace Umbraco.Extensions { public static class PublishedContentExtensions { @@ -1168,7 +1172,7 @@ namespace Umbraco.Core return new DataTable(); //no children found //use new utility class to create table so that we don't have to maintain code in many places, just one - var dt = Core.DataTableExtensions.GenerateDataTable( + var dt = DataTableExtensions.GenerateDataTable( //pass in the alias of the first child node since this is the node type we're rendering headers for firstNode.ContentType.Alias, //pass in the callback to extract the Dictionary of all defined aliases to their names @@ -1177,7 +1181,7 @@ namespace Umbraco.Core () => { //create all row data - var tableData = Core.DataTableExtensions.CreateTableData(); + var tableData = DataTableExtensions.CreateTableData(); //loop through each child and create row data for it foreach (var n in content.Children(variationContextAccessor).OrderBy(x => x.SortOrder)) { @@ -1206,7 +1210,7 @@ namespace Umbraco.Core userVals[p.Alias] = p.GetValue(); } //add the row data - Core.DataTableExtensions.AddRowData(tableData, standardVals, userVals); + DataTableExtensions.AddRowData(tableData, standardVals, userVals); } return tableData; diff --git a/src/Umbraco.Core/PublishedElementExtensions.cs b/src/Umbraco.Core/Extensions/PublishedElementExtensions.cs similarity index 97% rename from src/Umbraco.Core/PublishedElementExtensions.cs rename to src/Umbraco.Core/Extensions/PublishedElementExtensions.cs index a5eaef2df9..265a2aae77 100644 --- a/src/Umbraco.Core/PublishedElementExtensions.cs +++ b/src/Umbraco.Core/Extensions/PublishedElementExtensions.cs @@ -1,10 +1,14 @@ -using System; +// Copyright (c) Umbraco. +// See LICENSE for more details. + +using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Web.Routing; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Routing; -namespace Umbraco.Core +namespace Umbraco.Extensions { /// /// Provides extension methods for IPublishedElement. diff --git a/src/Umbraco.Core/PublishedModelFactoryExtensions.cs b/src/Umbraco.Core/Extensions/PublishedModelFactoryExtensions.cs similarity index 92% rename from src/Umbraco.Core/PublishedModelFactoryExtensions.cs rename to src/Umbraco.Core/Extensions/PublishedModelFactoryExtensions.cs index 3794bc6954..f10c22ef08 100644 --- a/src/Umbraco.Core/PublishedModelFactoryExtensions.cs +++ b/src/Umbraco.Core/Extensions/PublishedModelFactoryExtensions.cs @@ -1,9 +1,10 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using Umbraco.Core.Models.PublishedContent; +// Copyright (c) Umbraco. +// See LICENSE for more details. -namespace Umbraco.Core +using System; +using Umbraco.Cms.Core.Models.PublishedContent; + +namespace Umbraco.Extensions { /// /// Provides extension methods for . diff --git a/src/Umbraco.Core/PublishedPropertyExtension.cs b/src/Umbraco.Core/Extensions/PublishedPropertyExtension.cs similarity index 94% rename from src/Umbraco.Core/PublishedPropertyExtension.cs rename to src/Umbraco.Core/Extensions/PublishedPropertyExtension.cs index 259a2714d3..e95322b32a 100644 --- a/src/Umbraco.Core/PublishedPropertyExtension.cs +++ b/src/Umbraco.Core/Extensions/PublishedPropertyExtension.cs @@ -1,6 +1,9 @@ -using Umbraco.Core.Models.PublishedContent; +// Copyright (c) Umbraco. +// See LICENSE for more details. -namespace Umbraco.Core +using Umbraco.Cms.Core.Models.PublishedContent; + +namespace Umbraco.Extensions { /// /// Provides extension methods for IPublishedProperty. diff --git a/src/Umbraco.Core/SemVersionExtensions.cs b/src/Umbraco.Core/Extensions/SemVersionExtensions.cs similarity index 65% rename from src/Umbraco.Core/SemVersionExtensions.cs rename to src/Umbraco.Core/Extensions/SemVersionExtensions.cs index e96b6fae45..85e4892a09 100644 --- a/src/Umbraco.Core/SemVersionExtensions.cs +++ b/src/Umbraco.Core/Extensions/SemVersionExtensions.cs @@ -1,6 +1,9 @@ -using Semver; +// Copyright (c) Umbraco. +// See LICENSE for more details. -namespace Umbraco.Core +using Umbraco.Cms.Core.Semver; + +namespace Umbraco.Extensions { public static class SemVersionExtensions { diff --git a/src/Umbraco.Core/StringExtensions.cs b/src/Umbraco.Core/Extensions/StringExtensions.cs similarity index 99% rename from src/Umbraco.Core/StringExtensions.cs rename to src/Umbraco.Core/Extensions/StringExtensions.cs index 0dc48b2229..8902712a19 100644 --- a/src/Umbraco.Core/StringExtensions.cs +++ b/src/Umbraco.Core/Extensions/StringExtensions.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Umbraco. +// See LICENSE for more details. + +using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics.CodeAnalysis; @@ -8,10 +11,11 @@ using System.Linq; using System.Security.Cryptography; using System.Text; using System.Text.RegularExpressions; -using Umbraco.Core.IO; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Strings; -namespace Umbraco.Core +namespace Umbraco.Extensions { /// /// String extension methods diff --git a/src/Umbraco.Core/ThreadExtensions.cs b/src/Umbraco.Core/Extensions/ThreadExtensions.cs similarity index 95% rename from src/Umbraco.Core/ThreadExtensions.cs rename to src/Umbraco.Core/Extensions/ThreadExtensions.cs index 3c9001ac48..1c585a2de8 100644 --- a/src/Umbraco.Core/ThreadExtensions.cs +++ b/src/Umbraco.Core/Extensions/ThreadExtensions.cs @@ -1,7 +1,10 @@ -using System.Globalization; +// Copyright (c) Umbraco. +// See LICENSE for more details. + +using System.Globalization; using System.Threading; -namespace Umbraco.Core +namespace Umbraco.Extensions { public static class ThreadExtensions { diff --git a/src/Umbraco.Core/TypeExtensions.cs b/src/Umbraco.Core/Extensions/TypeExtensions.cs similarity index 99% rename from src/Umbraco.Core/TypeExtensions.cs rename to src/Umbraco.Core/Extensions/TypeExtensions.cs index 70639d7ff1..67a6dd1dce 100644 --- a/src/Umbraco.Core/TypeExtensions.cs +++ b/src/Umbraco.Core/Extensions/TypeExtensions.cs @@ -1,13 +1,17 @@ +// Copyright (c) Umbraco. +// See LICENSE for more details. + using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; -using Umbraco.Core.Composing; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Strings; -namespace Umbraco.Core +namespace Umbraco.Extensions { public static class TypeExtensions { @@ -17,6 +21,7 @@ namespace Umbraco.Core ? Activator.CreateInstance(t) : null; } + internal static MethodInfo GetGenericMethod(this Type type, string name, params Type[] parameterTypes) { var methods = type.GetMethods().Where(method => method.Name == name); diff --git a/src/Umbraco.Core/TypeLoaderExtensions.cs b/src/Umbraco.Core/Extensions/TypeLoaderExtensions.cs similarity index 77% rename from src/Umbraco.Core/TypeLoaderExtensions.cs rename to src/Umbraco.Core/Extensions/TypeLoaderExtensions.cs index 9c086ab8b9..515a1d2018 100644 --- a/src/Umbraco.Core/TypeLoaderExtensions.cs +++ b/src/Umbraco.Core/Extensions/TypeLoaderExtensions.cs @@ -1,11 +1,14 @@ -using System; -using System.Collections.Generic; -using Umbraco.Core.Cache; -using Umbraco.Core.Composing; -using Umbraco.Core.PackageActions; -using Umbraco.Core.PropertyEditors; +// Copyright (c) Umbraco. +// See LICENSE for more details. -namespace Umbraco.Core +using System; +using System.Collections.Generic; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.PackageActions; +using Umbraco.Cms.Core.PropertyEditors; + +namespace Umbraco.Extensions { public static class TypeLoaderExtensions { diff --git a/src/Umbraco.Core/UdiGetterExtensions.cs b/src/Umbraco.Core/Extensions/UdiGetterExtensions.cs similarity index 98% rename from src/Umbraco.Core/UdiGetterExtensions.cs rename to src/Umbraco.Core/Extensions/UdiGetterExtensions.cs index 958e2c13a2..b164effdd6 100644 --- a/src/Umbraco.Core/UdiGetterExtensions.cs +++ b/src/Umbraco.Core/Extensions/UdiGetterExtensions.cs @@ -1,8 +1,12 @@ -using System; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; +// Copyright (c) Umbraco. +// See LICENSE for more details. -namespace Umbraco.Core +using System; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; + +namespace Umbraco.Extensions { /// /// Provides extension methods that return udis for Umbraco entities. diff --git a/src/Umbraco.Core/UmbracoContextAccessorExtensions.cs b/src/Umbraco.Core/Extensions/UmbracoContextAccessorExtensions.cs similarity index 82% rename from src/Umbraco.Core/UmbracoContextAccessorExtensions.cs rename to src/Umbraco.Core/Extensions/UmbracoContextAccessorExtensions.cs index a8521762c6..33bed3eda5 100644 --- a/src/Umbraco.Core/UmbracoContextAccessorExtensions.cs +++ b/src/Umbraco.Core/Extensions/UmbracoContextAccessorExtensions.cs @@ -1,9 +1,11 @@ +// Copyright (c) Umbraco. +// See LICENSE for more details. + using System; -using Umbraco.Web; +using Umbraco.Cms.Core.Web; -namespace Umbraco.Core +namespace Umbraco.Extensions { - public static class UmbracoContextAccessorExtensions { public static IUmbracoContext GetRequiredUmbracoContext(this IUmbracoContextAccessor umbracoContextAccessor) diff --git a/src/Umbraco.Core/UmbracoContextExtensions.cs b/src/Umbraco.Core/Extensions/UmbracoContextExtensions.cs similarity index 74% rename from src/Umbraco.Core/UmbracoContextExtensions.cs rename to src/Umbraco.Core/Extensions/UmbracoContextExtensions.cs index 06ae2aa497..7d0e31f285 100644 --- a/src/Umbraco.Core/UmbracoContextExtensions.cs +++ b/src/Umbraco.Core/Extensions/UmbracoContextExtensions.cs @@ -1,6 +1,9 @@ -using Umbraco.Web; +// Copyright (c) Umbraco. +// See LICENSE for more details. -namespace Umbraco.Core +using Umbraco.Cms.Core.Web; + +namespace Umbraco.Extensions { public static class UmbracoContextExtensions { diff --git a/src/Umbraco.Core/UriExtensions.cs b/src/Umbraco.Core/Extensions/UriExtensions.cs similarity index 97% rename from src/Umbraco.Core/UriExtensions.cs rename to src/Umbraco.Core/Extensions/UriExtensions.cs index 26580fab84..5527fc890e 100644 --- a/src/Umbraco.Core/UriExtensions.cs +++ b/src/Umbraco.Core/Extensions/UriExtensions.cs @@ -1,12 +1,9 @@ -using System; -using System.IO; -using System.Linq; -using Microsoft.Extensions.Logging; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; +// Copyright (c) Umbraco. +// See LICENSE for more details. -namespace Umbraco.Core +using System; + +namespace Umbraco.Extensions { /// /// Provides extension methods to . diff --git a/src/Umbraco.Core/VersionExtensions.cs b/src/Umbraco.Core/Extensions/VersionExtensions.cs similarity index 94% rename from src/Umbraco.Core/VersionExtensions.cs rename to src/Umbraco.Core/Extensions/VersionExtensions.cs index e6f8dea7f4..06451ce8a0 100644 --- a/src/Umbraco.Core/VersionExtensions.cs +++ b/src/Umbraco.Core/Extensions/VersionExtensions.cs @@ -1,9 +1,11 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using Semver; +// Copyright (c) Umbraco. +// See LICENSE for more details. -namespace Umbraco.Core +using System; +using System.Collections.Generic; +using Umbraco.Cms.Core.Semver; + +namespace Umbraco.Extensions { public static class VersionExtensions { diff --git a/src/Umbraco.Core/WaitHandleExtensions.cs b/src/Umbraco.Core/Extensions/WaitHandleExtensions.cs similarity index 94% rename from src/Umbraco.Core/WaitHandleExtensions.cs rename to src/Umbraco.Core/Extensions/WaitHandleExtensions.cs index 96f179e7ed..6058ef2974 100644 --- a/src/Umbraco.Core/WaitHandleExtensions.cs +++ b/src/Umbraco.Core/Extensions/WaitHandleExtensions.cs @@ -1,11 +1,13 @@ -using System.Threading; +// Copyright (c) Umbraco. +// See LICENSE for more details. + +using System.Threading; using System.Threading.Tasks; -namespace Umbraco.Core +namespace Umbraco.Extensions { public static class WaitHandleExtensions { - // http://stackoverflow.com/questions/25382583/waiting-on-a-named-semaphore-with-waitone100-vs-waitone0-task-delay100 // http://blog.nerdbank.net/2011/07/c-await-for-waithandle.html // F# has a AwaitWaitHandle method that accepts a time out... and seems pretty complex... diff --git a/src/Umbraco.Core/XmlExtensions.cs b/src/Umbraco.Core/Extensions/XmlExtensions.cs similarity index 99% rename from src/Umbraco.Core/XmlExtensions.cs rename to src/Umbraco.Core/Extensions/XmlExtensions.cs index ef0132dd69..a5356e07f6 100644 --- a/src/Umbraco.Core/XmlExtensions.cs +++ b/src/Umbraco.Core/Extensions/XmlExtensions.cs @@ -1,15 +1,16 @@ -using System; +// Copyright (c) Umbraco. +// See LICENSE for more details. + +using System; using System.Collections.Generic; -using System.IO; using System.Linq; using System.Text; -using System.Threading.Tasks; using System.Xml; using System.Xml.Linq; using System.Xml.XPath; -using Umbraco.Core.Xml; +using Umbraco.Cms.Core.Xml; -namespace Umbraco.Core +namespace Umbraco.Extensions { /// /// Extension methods for xml objects diff --git a/src/Umbraco.Core/Features/DisabledFeatures.cs b/src/Umbraco.Core/Features/DisabledFeatures.cs index 1b54691365..e572818baf 100644 --- a/src/Umbraco.Core/Features/DisabledFeatures.cs +++ b/src/Umbraco.Core/Features/DisabledFeatures.cs @@ -1,6 +1,6 @@ -using Umbraco.Core.Collections; +using Umbraco.Cms.Core.Collections; -namespace Umbraco.Web.Features +namespace Umbraco.Cms.Core.Features { /// /// Represents disabled features. diff --git a/src/Umbraco.Core/Features/EnabledFeatures.cs b/src/Umbraco.Core/Features/EnabledFeatures.cs index fe9c496298..9645f94cdf 100644 --- a/src/Umbraco.Core/Features/EnabledFeatures.cs +++ b/src/Umbraco.Core/Features/EnabledFeatures.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.Features +namespace Umbraco.Cms.Core.Features { /// /// Represents enabled features. diff --git a/src/Umbraco.Core/Features/IUmbracoFeature.cs b/src/Umbraco.Core/Features/IUmbracoFeature.cs index ccb80b0a9f..efb5337a00 100644 --- a/src/Umbraco.Core/Features/IUmbracoFeature.cs +++ b/src/Umbraco.Core/Features/IUmbracoFeature.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.Features +namespace Umbraco.Cms.Core.Features { /// /// This is a marker interface to allow controllers to be disabled if also marked with FeatureAuthorizeAttribute. diff --git a/src/Umbraco.Core/Features/UmbracoFeatures.cs b/src/Umbraco.Core/Features/UmbracoFeatures.cs index 1dacf01494..8f08d25357 100644 --- a/src/Umbraco.Core/Features/UmbracoFeatures.cs +++ b/src/Umbraco.Core/Features/UmbracoFeatures.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Web.Features +namespace Umbraco.Cms.Core.Features { /// /// Represents the Umbraco features. diff --git a/src/Umbraco.Core/GuidUdi.cs b/src/Umbraco.Core/GuidUdi.cs index 08dad39f12..904d6140f2 100644 --- a/src/Umbraco.Core/GuidUdi.cs +++ b/src/Umbraco.Core/GuidUdi.cs @@ -1,7 +1,7 @@ using System; using System.ComponentModel; -namespace Umbraco.Core +namespace Umbraco.Cms.Core { /// /// Represents a guid-based entity identifier. diff --git a/src/Umbraco.Core/GuidUtils.cs b/src/Umbraco.Core/GuidUtils.cs index ba07d09236..6a8938dcf0 100644 --- a/src/Umbraco.Core/GuidUtils.cs +++ b/src/Umbraco.Core/GuidUtils.cs @@ -2,7 +2,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -namespace Umbraco.Core +namespace Umbraco.Cms.Core { /// /// Utility methods for the struct. diff --git a/src/Umbraco.Core/HashCodeCombiner.cs b/src/Umbraco.Core/HashCodeCombiner.cs index 9e968cacbb..d8c1ac2a07 100644 --- a/src/Umbraco.Core/HashCodeCombiner.cs +++ b/src/Umbraco.Core/HashCodeCombiner.cs @@ -2,7 +2,7 @@ using System.Globalization; using System.IO; -namespace Umbraco.Core +namespace Umbraco.Cms.Core { /// /// Used to create a .NET HashCode from multiple objects. diff --git a/src/Umbraco.Core/HashCodeHelper.cs b/src/Umbraco.Core/HashCodeHelper.cs index dd9d5c89dc..9324450cf6 100644 --- a/src/Umbraco.Core/HashCodeHelper.cs +++ b/src/Umbraco.Core/HashCodeHelper.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace Umbraco.Core +namespace Umbraco.Cms.Core { /// /// Borrowed from http://stackoverflow.com/a/2575444/694494 diff --git a/src/Umbraco.Core/HashGenerator.cs b/src/Umbraco.Core/HashGenerator.cs index c7fad08089..255cf381af 100644 --- a/src/Umbraco.Core/HashGenerator.cs +++ b/src/Umbraco.Core/HashGenerator.cs @@ -1,10 +1,9 @@ using System; -using System.Globalization; using System.IO; using System.Security.Cryptography; using System.Text; -namespace Umbraco.Core +namespace Umbraco.Cms.Core { /// /// Used to generate a string hash using crypto libraries over multiple objects diff --git a/src/Umbraco.Core/HealthChecks/AcceptableConfiguration.cs b/src/Umbraco.Core/HealthChecks/AcceptableConfiguration.cs index f0f20fd4a2..043850203e 100644 --- a/src/Umbraco.Core/HealthChecks/AcceptableConfiguration.cs +++ b/src/Umbraco.Core/HealthChecks/AcceptableConfiguration.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.HealthChecks +namespace Umbraco.Cms.Core.HealthChecks { public class AcceptableConfiguration { diff --git a/src/Umbraco.Core/HealthChecks/Checks/AbstractSettingsCheck.cs b/src/Umbraco.Core/HealthChecks/Checks/AbstractSettingsCheck.cs index 0869e7c8ec..d51ba38e34 100644 --- a/src/Umbraco.Core/HealthChecks/Checks/AbstractSettingsCheck.cs +++ b/src/Umbraco.Core/HealthChecks/Checks/AbstractSettingsCheck.cs @@ -5,9 +5,10 @@ using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; -namespace Umbraco.Core.HealthChecks.Checks +namespace Umbraco.Cms.Core.HealthChecks.Checks { /// /// Provides a base class for health checks of configuration values. diff --git a/src/Umbraco.Core/HealthChecks/Checks/Configuration/MacroErrorsCheck.cs b/src/Umbraco.Core/HealthChecks/Checks/Configuration/MacroErrorsCheck.cs index 9ce0ae1404..3237879a03 100644 --- a/src/Umbraco.Core/HealthChecks/Checks/Configuration/MacroErrorsCheck.cs +++ b/src/Umbraco.Core/HealthChecks/Checks/Configuration/MacroErrorsCheck.cs @@ -4,10 +4,11 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Options; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; -namespace Umbraco.Core.HealthChecks.Checks.Configuration +namespace Umbraco.Cms.Core.HealthChecks.Checks.Configuration { /// /// Health check for the recommended production configuration for Macro Errors. diff --git a/src/Umbraco.Core/HealthChecks/Checks/Configuration/NotificationEmailCheck.cs b/src/Umbraco.Core/HealthChecks/Checks/Configuration/NotificationEmailCheck.cs index be0793635f..2a4fb1553c 100644 --- a/src/Umbraco.Core/HealthChecks/Checks/Configuration/NotificationEmailCheck.cs +++ b/src/Umbraco.Core/HealthChecks/Checks/Configuration/NotificationEmailCheck.cs @@ -3,10 +3,11 @@ using System.Collections.Generic; using Microsoft.Extensions.Options; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; -namespace Umbraco.Core.HealthChecks.Checks.Configuration +namespace Umbraco.Cms.Core.HealthChecks.Checks.Configuration { /// /// Health check for the recommended production configuration for Notification Email. diff --git a/src/Umbraco.Core/HealthChecks/Checks/Data/DatabaseIntegrityCheck.cs b/src/Umbraco.Core/HealthChecks/Checks/Data/DatabaseIntegrityCheck.cs index a826d4dd45..dda7fb2e6e 100644 --- a/src/Umbraco.Core/HealthChecks/Checks/Data/DatabaseIntegrityCheck.cs +++ b/src/Umbraco.Core/HealthChecks/Checks/Data/DatabaseIntegrityCheck.cs @@ -6,10 +6,10 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; -using Umbraco.Core.Models; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; -namespace Umbraco.Core.HealthChecks.Checks.Data +namespace Umbraco.Cms.Core.HealthChecks.Checks.Data { /// /// Health check for the integrity of the data in the database. diff --git a/src/Umbraco.Core/HealthChecks/Checks/LiveEnvironment/CompilationDebugCheck.cs b/src/Umbraco.Core/HealthChecks/Checks/LiveEnvironment/CompilationDebugCheck.cs index e134dcd413..ff37807f27 100644 --- a/src/Umbraco.Core/HealthChecks/Checks/LiveEnvironment/CompilationDebugCheck.cs +++ b/src/Umbraco.Core/HealthChecks/Checks/LiveEnvironment/CompilationDebugCheck.cs @@ -3,10 +3,11 @@ using System.Collections.Generic; using Microsoft.Extensions.Options; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; -namespace Umbraco.Core.HealthChecks.Checks.LiveEnvironment +namespace Umbraco.Cms.Core.HealthChecks.Checks.LiveEnvironment { /// /// Health check for the configuration of debug-flag. diff --git a/src/Umbraco.Core/HealthChecks/Checks/Permissions/FolderAndFilePermissionsCheck.cs b/src/Umbraco.Core/HealthChecks/Checks/Permissions/FolderAndFilePermissionsCheck.cs index 0bb7c56486..03d7dd45f6 100644 --- a/src/Umbraco.Core/HealthChecks/Checks/Permissions/FolderAndFilePermissionsCheck.cs +++ b/src/Umbraco.Core/HealthChecks/Checks/Permissions/FolderAndFilePermissionsCheck.cs @@ -6,10 +6,11 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; -using Umbraco.Core.Install; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Install; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; -namespace Umbraco.Core.HealthChecks.Checks.Permissions +namespace Umbraco.Cms.Core.HealthChecks.Checks.Permissions { /// /// Health check for the folder and file permissions. diff --git a/src/Umbraco.Core/HealthChecks/Checks/Security/BaseHttpHeaderCheck.cs b/src/Umbraco.Core/HealthChecks/Checks/Security/BaseHttpHeaderCheck.cs index d8869e12fa..f9dccbc585 100644 --- a/src/Umbraco.Core/HealthChecks/Checks/Security/BaseHttpHeaderCheck.cs +++ b/src/Umbraco.Core/HealthChecks/Checks/Security/BaseHttpHeaderCheck.cs @@ -8,10 +8,11 @@ using System.Linq; using System.Net.Http; using System.Text.RegularExpressions; using System.Threading.Tasks; -using Umbraco.Core.Hosting; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; -namespace Umbraco.Core.HealthChecks.Checks.Security +namespace Umbraco.Cms.Core.HealthChecks.Checks.Security { /// /// Provides a base class for health checks of http header values. diff --git a/src/Umbraco.Core/HealthChecks/Checks/Security/ClickJackingCheck.cs b/src/Umbraco.Core/HealthChecks/Checks/Security/ClickJackingCheck.cs index 6bb92e4176..957ee0b715 100644 --- a/src/Umbraco.Core/HealthChecks/Checks/Security/ClickJackingCheck.cs +++ b/src/Umbraco.Core/HealthChecks/Checks/Security/ClickJackingCheck.cs @@ -1,10 +1,10 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -using Umbraco.Core.Hosting; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Services; -namespace Umbraco.Core.HealthChecks.Checks.Security +namespace Umbraco.Cms.Core.HealthChecks.Checks.Security { /// /// Health check for the recommended production setup regarding the X-Frame-Options header. diff --git a/src/Umbraco.Core/HealthChecks/Checks/Security/ExcessiveHeadersCheck.cs b/src/Umbraco.Core/HealthChecks/Checks/Security/ExcessiveHeadersCheck.cs index 000c14f93d..aa38e8afed 100644 --- a/src/Umbraco.Core/HealthChecks/Checks/Security/ExcessiveHeadersCheck.cs +++ b/src/Umbraco.Core/HealthChecks/Checks/Security/ExcessiveHeadersCheck.cs @@ -6,10 +6,11 @@ using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Threading.Tasks; -using Umbraco.Core.Hosting; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; -namespace Umbraco.Core.HealthChecks.Checks.Security +namespace Umbraco.Cms.Core.HealthChecks.Checks.Security { /// /// Health check for the recommended production setup regarding unnecessary headers. diff --git a/src/Umbraco.Core/HealthChecks/Checks/Security/HstsCheck.cs b/src/Umbraco.Core/HealthChecks/Checks/Security/HstsCheck.cs index 828d2d2470..b2166b88bd 100644 --- a/src/Umbraco.Core/HealthChecks/Checks/Security/HstsCheck.cs +++ b/src/Umbraco.Core/HealthChecks/Checks/Security/HstsCheck.cs @@ -1,10 +1,10 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -using Umbraco.Core.Hosting; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Services; -namespace Umbraco.Core.HealthChecks.Checks.Security +namespace Umbraco.Cms.Core.HealthChecks.Checks.Security { /// /// Health check for the recommended production setup regarding the Strict-Transport-Security header. diff --git a/src/Umbraco.Core/HealthChecks/Checks/Security/HttpsCheck.cs b/src/Umbraco.Core/HealthChecks/Checks/Security/HttpsCheck.cs index 5916c48b82..01638366d1 100644 --- a/src/Umbraco.Core/HealthChecks/Checks/Security/HttpsCheck.cs +++ b/src/Umbraco.Core/HealthChecks/Checks/Security/HttpsCheck.cs @@ -9,11 +9,12 @@ using System.Net.Security; using System.Security.Cryptography.X509Certificates; using System.Threading.Tasks; using Microsoft.Extensions.Options; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; -namespace Umbraco.Core.HealthChecks.Checks.Security +namespace Umbraco.Cms.Core.HealthChecks.Checks.Security { /// /// Health checks for the recommended production setup regarding https. diff --git a/src/Umbraco.Core/HealthChecks/Checks/Security/NoSniffCheck.cs b/src/Umbraco.Core/HealthChecks/Checks/Security/NoSniffCheck.cs index 0722f4cf64..035733e4ee 100644 --- a/src/Umbraco.Core/HealthChecks/Checks/Security/NoSniffCheck.cs +++ b/src/Umbraco.Core/HealthChecks/Checks/Security/NoSniffCheck.cs @@ -1,10 +1,10 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -using Umbraco.Core.Hosting; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Services; -namespace Umbraco.Core.HealthChecks.Checks.Security +namespace Umbraco.Cms.Core.HealthChecks.Checks.Security { /// /// Health check for the recommended production setup regarding the X-Content-Type-Options header. diff --git a/src/Umbraco.Core/HealthChecks/Checks/Security/XssProtectionCheck.cs b/src/Umbraco.Core/HealthChecks/Checks/Security/XssProtectionCheck.cs index 5a1973d05b..6c05c39f46 100644 --- a/src/Umbraco.Core/HealthChecks/Checks/Security/XssProtectionCheck.cs +++ b/src/Umbraco.Core/HealthChecks/Checks/Security/XssProtectionCheck.cs @@ -1,10 +1,10 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -using Umbraco.Core.Hosting; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Services; -namespace Umbraco.Core.HealthChecks.Checks.Security +namespace Umbraco.Cms.Core.HealthChecks.Checks.Security { /// /// Health check for the recommended production setup regarding the X-XSS-Protection header. diff --git a/src/Umbraco.Core/HealthChecks/Checks/Services/SmtpCheck.cs b/src/Umbraco.Core/HealthChecks/Checks/Services/SmtpCheck.cs index f4e150fbed..618b44b9b3 100644 --- a/src/Umbraco.Core/HealthChecks/Checks/Services/SmtpCheck.cs +++ b/src/Umbraco.Core/HealthChecks/Checks/Services/SmtpCheck.cs @@ -7,10 +7,11 @@ using System.IO; using System.Net.Sockets; using System.Threading.Tasks; using Microsoft.Extensions.Options; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; -namespace Umbraco.Core.HealthChecks.Checks.Services +namespace Umbraco.Cms.Core.HealthChecks.Checks.Services { /// /// Health check for the recommended setup regarding SMTP. diff --git a/src/Umbraco.Core/HealthChecks/ConfigurationServiceResult.cs b/src/Umbraco.Core/HealthChecks/ConfigurationServiceResult.cs index 114f1d9ed2..79cd61bced 100644 --- a/src/Umbraco.Core/HealthChecks/ConfigurationServiceResult.cs +++ b/src/Umbraco.Core/HealthChecks/ConfigurationServiceResult.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.HealthChecks +namespace Umbraco.Cms.Core.HealthChecks { public class ConfigurationServiceResult { diff --git a/src/Umbraco.Core/HealthChecks/HealthCheck.cs b/src/Umbraco.Core/HealthChecks/HealthCheck.cs index 36c60e5164..fb006d7fcf 100644 --- a/src/Umbraco.Core/HealthChecks/HealthCheck.cs +++ b/src/Umbraco.Core/HealthChecks/HealthCheck.cs @@ -2,9 +2,10 @@ using System.Collections.Generic; using System.Runtime.Serialization; using System.Threading.Tasks; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; +using Umbraco.Extensions; -namespace Umbraco.Core.HealthChecks +namespace Umbraco.Cms.Core.HealthChecks { /// /// Provides a base class for health checks, filling in the healthcheck metadata on construction diff --git a/src/Umbraco.Core/HealthChecks/HealthCheckAction.cs b/src/Umbraco.Core/HealthChecks/HealthCheckAction.cs index a89f6b73ad..52ccc28ee0 100644 --- a/src/Umbraco.Core/HealthChecks/HealthCheckAction.cs +++ b/src/Umbraco.Core/HealthChecks/HealthCheckAction.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.Runtime.Serialization; -namespace Umbraco.Core.HealthChecks +namespace Umbraco.Cms.Core.HealthChecks { [DataContract(Name = "healthCheckAction", Namespace = "")] public class HealthCheckAction diff --git a/src/Umbraco.Core/HealthChecks/HealthCheckAttribute.cs b/src/Umbraco.Core/HealthChecks/HealthCheckAttribute.cs index 9a265a2e03..596d41c372 100644 --- a/src/Umbraco.Core/HealthChecks/HealthCheckAttribute.cs +++ b/src/Umbraco.Core/HealthChecks/HealthCheckAttribute.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.HealthChecks +namespace Umbraco.Cms.Core.HealthChecks { /// /// Metadata attribute for Health checks diff --git a/src/Umbraco.Core/HealthChecks/HealthCheckCollection.cs b/src/Umbraco.Core/HealthChecks/HealthCheckCollection.cs index 88fadee5ec..2987ff1112 100644 --- a/src/Umbraco.Core/HealthChecks/HealthCheckCollection.cs +++ b/src/Umbraco.Core/HealthChecks/HealthCheckCollection.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Core.HealthChecks +namespace Umbraco.Cms.Core.HealthChecks { public class HealthCheckCollection : BuilderCollectionBase { diff --git a/src/Umbraco.Core/HealthChecks/HealthCheckGroup.cs b/src/Umbraco.Core/HealthChecks/HealthCheckGroup.cs index 71b0013d8e..17d585f256 100644 --- a/src/Umbraco.Core/HealthChecks/HealthCheckGroup.cs +++ b/src/Umbraco.Core/HealthChecks/HealthCheckGroup.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.Runtime.Serialization; -namespace Umbraco.Core.HealthChecks +namespace Umbraco.Cms.Core.HealthChecks { [DataContract(Name = "healthCheckGroup", Namespace = "")] public class HealthCheckGroup diff --git a/src/Umbraco.Core/HealthChecks/HealthCheckNotificationMethodAttribute.cs b/src/Umbraco.Core/HealthChecks/HealthCheckNotificationMethodAttribute.cs index 7e5223772f..6dd6df4b8b 100644 --- a/src/Umbraco.Core/HealthChecks/HealthCheckNotificationMethodAttribute.cs +++ b/src/Umbraco.Core/HealthChecks/HealthCheckNotificationMethodAttribute.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.HealthChecks +namespace Umbraco.Cms.Core.HealthChecks { /// /// Metadata attribute for health check notification methods diff --git a/src/Umbraco.Core/HealthChecks/HealthCheckNotificationMethodCollection.cs b/src/Umbraco.Core/HealthChecks/HealthCheckNotificationMethodCollection.cs index bcf197aa39..7fa8486df6 100644 --- a/src/Umbraco.Core/HealthChecks/HealthCheckNotificationMethodCollection.cs +++ b/src/Umbraco.Core/HealthChecks/HealthCheckNotificationMethodCollection.cs @@ -1,8 +1,8 @@ using System.Collections.Generic; -using Umbraco.Core.Composing; -using Umbraco.Core.HealthChecks.NotificationMethods; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.HealthChecks.NotificationMethods; -namespace Umbraco.Core.HealthChecks +namespace Umbraco.Cms.Core.HealthChecks { public class HealthCheckNotificationMethodCollection : BuilderCollectionBase { diff --git a/src/Umbraco.Core/HealthChecks/HealthCheckNotificationMethodCollectionBuilder.cs b/src/Umbraco.Core/HealthChecks/HealthCheckNotificationMethodCollectionBuilder.cs index e5d91432f5..48f2629e2a 100644 --- a/src/Umbraco.Core/HealthChecks/HealthCheckNotificationMethodCollectionBuilder.cs +++ b/src/Umbraco.Core/HealthChecks/HealthCheckNotificationMethodCollectionBuilder.cs @@ -1,7 +1,7 @@ -using Umbraco.Core.Composing; -using Umbraco.Core.HealthChecks.NotificationMethods; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.HealthChecks.NotificationMethods; -namespace Umbraco.Core.HealthChecks +namespace Umbraco.Cms.Core.HealthChecks { public class HealthCheckNotificationMethodCollectionBuilder : LazyCollectionBuilderBase { diff --git a/src/Umbraco.Core/HealthChecks/HealthCheckNotificationVerbosity.cs b/src/Umbraco.Core/HealthChecks/HealthCheckNotificationVerbosity.cs index e79b1e627c..cba8ab5c0f 100644 --- a/src/Umbraco.Core/HealthChecks/HealthCheckNotificationVerbosity.cs +++ b/src/Umbraco.Core/HealthChecks/HealthCheckNotificationVerbosity.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.HealthChecks +namespace Umbraco.Cms.Core.HealthChecks { public enum HealthCheckNotificationVerbosity { diff --git a/src/Umbraco.Core/HealthChecks/HealthCheckResults.cs b/src/Umbraco.Core/HealthChecks/HealthCheckResults.cs index 904649deb1..dd073f32f5 100644 --- a/src/Umbraco.Core/HealthChecks/HealthCheckResults.cs +++ b/src/Umbraco.Core/HealthChecks/HealthCheckResults.cs @@ -4,8 +4,9 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Extensions.Logging; +using Umbraco.Extensions; -namespace Umbraco.Core.HealthChecks +namespace Umbraco.Cms.Core.HealthChecks { public class HealthCheckResults { diff --git a/src/Umbraco.Core/HealthChecks/HealthCheckStatus.cs b/src/Umbraco.Core/HealthChecks/HealthCheckStatus.cs index 84e3933133..fc787803d2 100644 --- a/src/Umbraco.Core/HealthChecks/HealthCheckStatus.cs +++ b/src/Umbraco.Core/HealthChecks/HealthCheckStatus.cs @@ -2,7 +2,7 @@ using System.Linq; using System.Runtime.Serialization; -namespace Umbraco.Core.HealthChecks +namespace Umbraco.Cms.Core.HealthChecks { /// /// The status returned for a health check when it performs it check diff --git a/src/Umbraco.Core/HealthChecks/HeathCheckCollectionBuilder.cs b/src/Umbraco.Core/HealthChecks/HeathCheckCollectionBuilder.cs index 57d89b00d9..495fc42cf1 100644 --- a/src/Umbraco.Core/HealthChecks/HeathCheckCollectionBuilder.cs +++ b/src/Umbraco.Core/HealthChecks/HeathCheckCollectionBuilder.cs @@ -1,7 +1,7 @@ using Microsoft.Extensions.DependencyInjection; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Core.HealthChecks +namespace Umbraco.Cms.Core.HealthChecks { public class HealthCheckCollectionBuilder : LazyCollectionBuilderBase { diff --git a/src/Umbraco.Core/HealthChecks/NotificationMethods/EmailNotificationMethod.cs b/src/Umbraco.Core/HealthChecks/NotificationMethods/EmailNotificationMethod.cs index 97ef86d205..51e31b1811 100644 --- a/src/Umbraco.Core/HealthChecks/NotificationMethods/EmailNotificationMethod.cs +++ b/src/Umbraco.Core/HealthChecks/NotificationMethods/EmailNotificationMethod.cs @@ -1,13 +1,14 @@ using System; using System.Threading.Tasks; using Microsoft.Extensions.Options; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Core.Mail; -using Umbraco.Core.Models; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Mail; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; -namespace Umbraco.Core.HealthChecks.NotificationMethods +namespace Umbraco.Cms.Core.HealthChecks.NotificationMethods { [HealthCheckNotificationMethod("email")] public class EmailNotificationMethod : NotificationMethodBase diff --git a/src/Umbraco.Core/HealthChecks/NotificationMethods/IHealthCheckNotificationMethod.cs b/src/Umbraco.Core/HealthChecks/NotificationMethods/IHealthCheckNotificationMethod.cs index 1bed571e14..1bce4a5a63 100644 --- a/src/Umbraco.Core/HealthChecks/NotificationMethods/IHealthCheckNotificationMethod.cs +++ b/src/Umbraco.Core/HealthChecks/NotificationMethods/IHealthCheckNotificationMethod.cs @@ -1,7 +1,7 @@ using System.Threading.Tasks; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Core.HealthChecks.NotificationMethods +namespace Umbraco.Cms.Core.HealthChecks.NotificationMethods { public interface IHealthCheckNotificationMethod : IDiscoverable { diff --git a/src/Umbraco.Core/HealthChecks/NotificationMethods/IMarkdownToHtmlConverter.cs b/src/Umbraco.Core/HealthChecks/NotificationMethods/IMarkdownToHtmlConverter.cs index 0ab33eb6d2..3961d4d25f 100644 --- a/src/Umbraco.Core/HealthChecks/NotificationMethods/IMarkdownToHtmlConverter.cs +++ b/src/Umbraco.Core/HealthChecks/NotificationMethods/IMarkdownToHtmlConverter.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.HealthChecks.NotificationMethods +namespace Umbraco.Cms.Core.HealthChecks.NotificationMethods { public interface IMarkdownToHtmlConverter { diff --git a/src/Umbraco.Core/HealthChecks/NotificationMethods/NotificationMethodBase.cs b/src/Umbraco.Core/HealthChecks/NotificationMethods/NotificationMethodBase.cs index f491e26ae9..10af1de106 100644 --- a/src/Umbraco.Core/HealthChecks/NotificationMethods/NotificationMethodBase.cs +++ b/src/Umbraco.Core/HealthChecks/NotificationMethods/NotificationMethodBase.cs @@ -2,9 +2,9 @@ using System.Reflection; using System.Threading.Tasks; using Microsoft.Extensions.Options; -using Umbraco.Core.Configuration.Models; +using Umbraco.Cms.Core.Configuration.Models; -namespace Umbraco.Core.HealthChecks.NotificationMethods +namespace Umbraco.Cms.Core.HealthChecks.NotificationMethods { public abstract class NotificationMethodBase : IHealthCheckNotificationMethod { diff --git a/src/Umbraco.Core/HealthChecks/StatusResultType.cs b/src/Umbraco.Core/HealthChecks/StatusResultType.cs index ce91080267..b06322a267 100644 --- a/src/Umbraco.Core/HealthChecks/StatusResultType.cs +++ b/src/Umbraco.Core/HealthChecks/StatusResultType.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.HealthChecks +namespace Umbraco.Cms.Core.HealthChecks { public enum StatusResultType { diff --git a/src/Umbraco.Core/HealthChecks/ValueComparisonType.cs b/src/Umbraco.Core/HealthChecks/ValueComparisonType.cs index 905c92e7ce..254a53c6fb 100644 --- a/src/Umbraco.Core/HealthChecks/ValueComparisonType.cs +++ b/src/Umbraco.Core/HealthChecks/ValueComparisonType.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.HealthChecks +namespace Umbraco.Cms.Core.HealthChecks { public enum ValueComparisonType { diff --git a/src/Umbraco.Core/HexEncoder.cs b/src/Umbraco.Core/HexEncoder.cs index ec0e4492ac..ce4df997ab 100644 --- a/src/Umbraco.Core/HexEncoder.cs +++ b/src/Umbraco.Core/HexEncoder.cs @@ -1,7 +1,7 @@ using System.Linq; using System.Runtime.CompilerServices; -namespace Umbraco.Core +namespace Umbraco.Cms.Core { /// /// Provides methods for encoding byte arrays into hexadecimal strings. diff --git a/src/Umbraco.Core/Hosting/IApplicationShutdownRegistry.cs b/src/Umbraco.Core/Hosting/IApplicationShutdownRegistry.cs index 93441f1a47..2d1336ab90 100644 --- a/src/Umbraco.Core/Hosting/IApplicationShutdownRegistry.cs +++ b/src/Umbraco.Core/Hosting/IApplicationShutdownRegistry.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Hosting +namespace Umbraco.Cms.Core.Hosting { public interface IApplicationShutdownRegistry { diff --git a/src/Umbraco.Core/Hosting/IHostingEnvironment.cs b/src/Umbraco.Core/Hosting/IHostingEnvironment.cs index e01435422d..311d7559d0 100644 --- a/src/Umbraco.Core/Hosting/IHostingEnvironment.cs +++ b/src/Umbraco.Core/Hosting/IHostingEnvironment.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Hosting +namespace Umbraco.Cms.Core.Hosting { public interface IHostingEnvironment { diff --git a/src/Umbraco.Core/Hosting/IUmbracoApplicationLifetime.cs b/src/Umbraco.Core/Hosting/IUmbracoApplicationLifetime.cs index 50b7727ecf..f55040f96a 100644 --- a/src/Umbraco.Core/Hosting/IUmbracoApplicationLifetime.cs +++ b/src/Umbraco.Core/Hosting/IUmbracoApplicationLifetime.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Hosting +namespace Umbraco.Cms.Core.Hosting { public interface IUmbracoApplicationLifetime { diff --git a/src/Umbraco.Core/Hosting/NoopApplicationShutdownRegistry.cs b/src/Umbraco.Core/Hosting/NoopApplicationShutdownRegistry.cs index 3ffef04410..15b08d1ac6 100644 --- a/src/Umbraco.Core/Hosting/NoopApplicationShutdownRegistry.cs +++ b/src/Umbraco.Core/Hosting/NoopApplicationShutdownRegistry.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Hosting +namespace Umbraco.Cms.Core.Hosting { internal class NoopApplicationShutdownRegistry : IApplicationShutdownRegistry { diff --git a/src/Umbraco.Core/HybridAccessorBase.cs b/src/Umbraco.Core/HybridAccessorBase.cs index ad33fbf067..ae3b4471e9 100644 --- a/src/Umbraco.Core/HybridAccessorBase.cs +++ b/src/Umbraco.Core/HybridAccessorBase.cs @@ -1,9 +1,8 @@ using System; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Scoping; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Scoping; -namespace Umbraco.Web +namespace Umbraco.Cms.Core { /// /// Provides a base class for hybrid accessors. diff --git a/src/Umbraco.Core/HybridEventMessagesAccessor.cs b/src/Umbraco.Core/HybridEventMessagesAccessor.cs index 82e784e093..6f4d33a307 100644 --- a/src/Umbraco.Core/HybridEventMessagesAccessor.cs +++ b/src/Umbraco.Core/HybridEventMessagesAccessor.cs @@ -1,7 +1,7 @@ -using Umbraco.Core.Cache; -using Umbraco.Core.Events; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Events; -namespace Umbraco.Web +namespace Umbraco.Cms.Core { public class HybridEventMessagesAccessor : HybridAccessorBase, IEventMessagesAccessor { diff --git a/src/Umbraco.Core/IBackOfficeInfo.cs b/src/Umbraco.Core/IBackOfficeInfo.cs index 936fb73382..66f5d97bd9 100644 --- a/src/Umbraco.Core/IBackOfficeInfo.cs +++ b/src/Umbraco.Core/IBackOfficeInfo.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core +namespace Umbraco.Cms.Core { public interface IBackOfficeInfo { diff --git a/src/Umbraco.Core/IBackofficeSecurityFactory.cs b/src/Umbraco.Core/IBackofficeSecurityFactory.cs index 5176682e61..ac7c875f16 100644 --- a/src/Umbraco.Core/IBackofficeSecurityFactory.cs +++ b/src/Umbraco.Core/IBackofficeSecurityFactory.cs @@ -1,6 +1,4 @@ -using Umbraco.Web.Security; - -namespace Umbraco.Core +namespace Umbraco.Cms.Core { /// /// Creates and manages instances. diff --git a/src/Umbraco.Core/ICompletable.cs b/src/Umbraco.Core/ICompletable.cs index 594d82b0ae..2061723575 100644 --- a/src/Umbraco.Core/ICompletable.cs +++ b/src/Umbraco.Core/ICompletable.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core +namespace Umbraco.Cms.Core { public interface ICompletable : IDisposable { diff --git a/src/Umbraco.Core/IDisposeOnRequestEnd.cs b/src/Umbraco.Core/IDisposeOnRequestEnd.cs index cf1ec3a177..97df5793b9 100644 --- a/src/Umbraco.Core/IDisposeOnRequestEnd.cs +++ b/src/Umbraco.Core/IDisposeOnRequestEnd.cs @@ -1,9 +1,6 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -namespace Umbraco.Core +namespace Umbraco.Cms.Core { /// /// Any class implementing this interface that is added to the httpcontext.items keys or values will be disposed of at the end of the request. diff --git a/src/Umbraco.Core/IO/CleanFolderResult.cs b/src/Umbraco.Core/IO/CleanFolderResult.cs index 547157daff..a49c9a5b0c 100644 --- a/src/Umbraco.Core/IO/CleanFolderResult.cs +++ b/src/Umbraco.Core/IO/CleanFolderResult.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.IO; -namespace Umbraco.Core.IO +namespace Umbraco.Cms.Core.IO { public class CleanFolderResult { diff --git a/src/Umbraco.Core/IO/CleanFolderResultStatus.cs b/src/Umbraco.Core/IO/CleanFolderResultStatus.cs index 41bd56d53d..3180677acb 100644 --- a/src/Umbraco.Core/IO/CleanFolderResultStatus.cs +++ b/src/Umbraco.Core/IO/CleanFolderResultStatus.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.IO +namespace Umbraco.Cms.Core.IO { public enum CleanFolderResultStatus { diff --git a/src/Umbraco.Core/IO/FileSystemExtensions.cs b/src/Umbraco.Core/IO/FileSystemExtensions.cs index 444f312153..e688ca22da 100644 --- a/src/Umbraco.Core/IO/FileSystemExtensions.cs +++ b/src/Umbraco.Core/IO/FileSystemExtensions.cs @@ -1,8 +1,9 @@ using System; using System.IO; using System.Threading; +using Umbraco.Cms.Core.IO; -namespace Umbraco.Core.IO +namespace Umbraco.Extensions { public static class FileSystemExtensions { diff --git a/src/Umbraco.Core/IO/FileSystemWrapper.cs b/src/Umbraco.Core/IO/FileSystemWrapper.cs index 14d028c16d..5802c327d5 100644 --- a/src/Umbraco.Core/IO/FileSystemWrapper.cs +++ b/src/Umbraco.Core/IO/FileSystemWrapper.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.IO; -namespace Umbraco.Core.IO +namespace Umbraco.Cms.Core.IO { /// /// All custom file systems that are based upon another IFileSystem should inherit from FileSystemWrapper diff --git a/src/Umbraco.Core/IO/FileSystems.cs b/src/Umbraco.Core/IO/FileSystems.cs index 62f46edce4..52ee2fe0d3 100644 --- a/src/Umbraco.Core/IO/FileSystems.cs +++ b/src/Umbraco.Core/IO/FileSystems.cs @@ -3,12 +3,12 @@ using System.Collections.Concurrent; using System.Collections.Generic; using System.Threading; using Microsoft.Extensions.Logging; -using Umbraco.Core.Hosting; -using Umbraco.Core.Configuration.Models; using Microsoft.Extensions.Options; -using Umbraco.Core.DependencyInjection; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Extensions; -namespace Umbraco.Core.IO +namespace Umbraco.Cms.Core.IO { public class FileSystems : IFileSystems { diff --git a/src/Umbraco.Core/IO/IFileSystem.cs b/src/Umbraco.Core/IO/IFileSystem.cs index 9de1ea40f2..281ffd0e14 100644 --- a/src/Umbraco.Core/IO/IFileSystem.cs +++ b/src/Umbraco.Core/IO/IFileSystem.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.IO; -namespace Umbraco.Core.IO +namespace Umbraco.Cms.Core.IO { /// /// Provides methods allowing the manipulation of files. diff --git a/src/Umbraco.Core/IO/IFileSystems.cs b/src/Umbraco.Core/IO/IFileSystems.cs index f7d35058e3..3a169e33a3 100644 --- a/src/Umbraco.Core/IO/IFileSystems.cs +++ b/src/Umbraco.Core/IO/IFileSystems.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.IO +namespace Umbraco.Cms.Core.IO { /// /// Provides the system filesystems. diff --git a/src/Umbraco.Core/IO/IIOHelper.cs b/src/Umbraco.Core/IO/IIOHelper.cs index a342192612..a9057803f4 100644 --- a/src/Umbraco.Core/IO/IIOHelper.cs +++ b/src/Umbraco.Core/IO/IIOHelper.cs @@ -1,9 +1,8 @@ using System; using System.Collections.Generic; using System.IO; -using Umbraco.Core.Hosting; -namespace Umbraco.Core.IO +namespace Umbraco.Cms.Core.IO { public interface IIOHelper { diff --git a/src/Umbraco.Core/IO/IMediaFileSystem.cs b/src/Umbraco.Core/IO/IMediaFileSystem.cs index 8ed0ba60ca..eced74482e 100644 --- a/src/Umbraco.Core/IO/IMediaFileSystem.cs +++ b/src/Umbraco.Core/IO/IMediaFileSystem.cs @@ -1,9 +1,9 @@ using System; using System.Collections.Generic; using System.IO; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.IO +namespace Umbraco.Cms.Core.IO { /// /// Provides methods allowing the manipulation of media files. diff --git a/src/Umbraco.Core/IO/IMediaPathScheme.cs b/src/Umbraco.Core/IO/IMediaPathScheme.cs index 9a38cdc74f..bd48b21a16 100644 --- a/src/Umbraco.Core/IO/IMediaPathScheme.cs +++ b/src/Umbraco.Core/IO/IMediaPathScheme.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.IO +namespace Umbraco.Cms.Core.IO { /// /// Represents a media file path scheme. diff --git a/src/Umbraco.Core/IO/IOHelper.cs b/src/Umbraco.Core/IO/IOHelper.cs index 903b6e4a5c..56db480632 100644 --- a/src/Umbraco.Core/IO/IOHelper.cs +++ b/src/Umbraco.Core/IO/IOHelper.cs @@ -1,15 +1,14 @@ using System; using System.Collections.Generic; -using System.Diagnostics; using System.Globalization; using System.IO; using System.Linq; using System.Reflection; -using System.Runtime.InteropServices; -using Umbraco.Core.Hosting; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Strings; +using Umbraco.Extensions; -namespace Umbraco.Core.IO +namespace Umbraco.Cms.Core.IO { public abstract class IOHelper : IIOHelper { diff --git a/src/Umbraco.Core/IO/IOHelperExtensions.cs b/src/Umbraco.Core/IO/IOHelperExtensions.cs index 6912974196..d50c779f81 100644 --- a/src/Umbraco.Core/IO/IOHelperExtensions.cs +++ b/src/Umbraco.Core/IO/IOHelperExtensions.cs @@ -1,7 +1,8 @@ using System; using System.IO; +using Umbraco.Cms.Core.IO; -namespace Umbraco.Core.IO +namespace Umbraco.Extensions { public static class IOHelperExtensions { @@ -49,6 +50,6 @@ namespace Umbraco.Core.IO return "umbraco-test." + Guid.NewGuid().ToString("N").Substring(0, 8); } - + } } diff --git a/src/Umbraco.Core/IO/IOHelperLinux.cs b/src/Umbraco.Core/IO/IOHelperLinux.cs index 2c2e778740..116a7200b3 100644 --- a/src/Umbraco.Core/IO/IOHelperLinux.cs +++ b/src/Umbraco.Core/IO/IOHelperLinux.cs @@ -1,9 +1,9 @@ using System; using System.IO; using System.Linq; -using Umbraco.Core.Hosting; +using Umbraco.Cms.Core.Hosting; -namespace Umbraco.Core.IO +namespace Umbraco.Cms.Core.IO { public class IOHelperLinux : IOHelper { diff --git a/src/Umbraco.Core/IO/IOHelperOSX.cs b/src/Umbraco.Core/IO/IOHelperOSX.cs index 90d96998c3..53b9cb4dc0 100644 --- a/src/Umbraco.Core/IO/IOHelperOSX.cs +++ b/src/Umbraco.Core/IO/IOHelperOSX.cs @@ -1,10 +1,9 @@ using System; using System.IO; using System.Linq; -using Umbraco.Core.Hosting; +using Umbraco.Cms.Core.Hosting; - -namespace Umbraco.Core.IO +namespace Umbraco.Cms.Core.IO { public class IOHelperOSX : IOHelper { diff --git a/src/Umbraco.Core/IO/IOHelperWindows.cs b/src/Umbraco.Core/IO/IOHelperWindows.cs index 3cffc27751..cb60f164dc 100644 --- a/src/Umbraco.Core/IO/IOHelperWindows.cs +++ b/src/Umbraco.Core/IO/IOHelperWindows.cs @@ -1,10 +1,9 @@ using System; using System.IO; using System.Linq; -using Umbraco.Core.Hosting; +using Umbraco.Cms.Core.Hosting; - -namespace Umbraco.Core.IO +namespace Umbraco.Cms.Core.IO { public class IOHelperWindows : IOHelper { diff --git a/src/Umbraco.Core/IO/MediaFileSystem.cs b/src/Umbraco.Core/IO/MediaFileSystem.cs index 5e5a3f3e97..6d598941c5 100644 --- a/src/Umbraco.Core/IO/MediaFileSystem.cs +++ b/src/Umbraco.Core/IO/MediaFileSystem.cs @@ -4,10 +4,11 @@ using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.Extensions.Logging; -using Umbraco.Core.Models; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Strings; +using Umbraco.Extensions; -namespace Umbraco.Core.IO +namespace Umbraco.Cms.Core.IO { /// /// A custom file system provider for media diff --git a/src/Umbraco.Core/IO/MediaPathSchemes/CombinedGuidsMediaPathScheme.cs b/src/Umbraco.Core/IO/MediaPathSchemes/CombinedGuidsMediaPathScheme.cs index 49fe3dc05e..a23468d5ac 100644 --- a/src/Umbraco.Core/IO/MediaPathSchemes/CombinedGuidsMediaPathScheme.cs +++ b/src/Umbraco.Core/IO/MediaPathSchemes/CombinedGuidsMediaPathScheme.cs @@ -1,7 +1,7 @@ using System; using System.IO; -namespace Umbraco.Core.IO.MediaPathSchemes +namespace Umbraco.Cms.Core.IO.MediaPathSchemes { /// /// Implements a combined-guids media path scheme. diff --git a/src/Umbraco.Core/IO/MediaPathSchemes/OriginalMediaPathScheme.cs b/src/Umbraco.Core/IO/MediaPathSchemes/OriginalMediaPathScheme.cs index 52f84e9901..ea23bf0145 100644 --- a/src/Umbraco.Core/IO/MediaPathSchemes/OriginalMediaPathScheme.cs +++ b/src/Umbraco.Core/IO/MediaPathSchemes/OriginalMediaPathScheme.cs @@ -2,10 +2,8 @@ using System.Globalization; using System.IO; using System.Threading; -using Umbraco.Core.Composing; -using Umbraco.Core.Configuration; -namespace Umbraco.Core.IO.MediaPathSchemes +namespace Umbraco.Cms.Core.IO.MediaPathSchemes { /// /// Implements the original media path scheme. diff --git a/src/Umbraco.Core/IO/MediaPathSchemes/TwoGuidsMediaPathScheme.cs b/src/Umbraco.Core/IO/MediaPathSchemes/TwoGuidsMediaPathScheme.cs index 3c06e295e6..2fffd4e7d6 100644 --- a/src/Umbraco.Core/IO/MediaPathSchemes/TwoGuidsMediaPathScheme.cs +++ b/src/Umbraco.Core/IO/MediaPathSchemes/TwoGuidsMediaPathScheme.cs @@ -1,7 +1,7 @@ using System; using System.IO; -namespace Umbraco.Core.IO.MediaPathSchemes +namespace Umbraco.Cms.Core.IO.MediaPathSchemes { /// /// Implements a two-guids media path scheme. diff --git a/src/Umbraco.Core/IO/MediaPathSchemes/UniqueMediaPathScheme.cs b/src/Umbraco.Core/IO/MediaPathSchemes/UniqueMediaPathScheme.cs index b8f1356041..faf94fb6e6 100644 --- a/src/Umbraco.Core/IO/MediaPathSchemes/UniqueMediaPathScheme.cs +++ b/src/Umbraco.Core/IO/MediaPathSchemes/UniqueMediaPathScheme.cs @@ -1,7 +1,7 @@ using System; using System.IO; -namespace Umbraco.Core.IO.MediaPathSchemes +namespace Umbraco.Cms.Core.IO.MediaPathSchemes { /// /// Implements a unique directory media path scheme. diff --git a/src/Umbraco.Core/IO/PhysicalFileSystem.cs b/src/Umbraco.Core/IO/PhysicalFileSystem.cs index c8d49e0c19..898a7f0ce4 100644 --- a/src/Umbraco.Core/IO/PhysicalFileSystem.cs +++ b/src/Umbraco.Core/IO/PhysicalFileSystem.cs @@ -4,9 +4,10 @@ using System.IO; using System.Linq; using System.Threading; using Microsoft.Extensions.Logging; -using Umbraco.Core.Hosting; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Extensions; -namespace Umbraco.Core.IO +namespace Umbraco.Cms.Core.IO { public interface IPhysicalFileSystem : IFileSystem {} public class PhysicalFileSystem : IPhysicalFileSystem diff --git a/src/Umbraco.Core/IO/ShadowFileSystem.cs b/src/Umbraco.Core/IO/ShadowFileSystem.cs index 84ff1b428b..97f2cac668 100644 --- a/src/Umbraco.Core/IO/ShadowFileSystem.cs +++ b/src/Umbraco.Core/IO/ShadowFileSystem.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; using System.Text.RegularExpressions; -namespace Umbraco.Core.IO +namespace Umbraco.Cms.Core.IO { internal class ShadowFileSystem : IFileSystem { diff --git a/src/Umbraco.Core/IO/ShadowFileSystems.cs b/src/Umbraco.Core/IO/ShadowFileSystems.cs index daec6e8dc5..413cc73d8a 100644 --- a/src/Umbraco.Core/IO/ShadowFileSystems.cs +++ b/src/Umbraco.Core/IO/ShadowFileSystems.cs @@ -1,6 +1,4 @@ -using System; - -namespace Umbraco.Core.IO +namespace Umbraco.Cms.Core.IO { // shadow filesystems is definitively ... too convoluted diff --git a/src/Umbraco.Core/IO/ShadowWrapper.cs b/src/Umbraco.Core/IO/ShadowWrapper.cs index 1683fb5b4e..cda61cf7b5 100644 --- a/src/Umbraco.Core/IO/ShadowWrapper.cs +++ b/src/Umbraco.Core/IO/ShadowWrapper.cs @@ -3,9 +3,10 @@ using System.Collections.Generic; using System.IO; using System.Linq; using Microsoft.Extensions.Logging; -using Umbraco.Core.Hosting; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Extensions; -namespace Umbraco.Core.IO +namespace Umbraco.Cms.Core.IO { internal class ShadowWrapper : IFileSystem { diff --git a/src/Umbraco.Core/IO/SystemFiles.cs b/src/Umbraco.Core/IO/SystemFiles.cs index 92e9156f2f..64199a1c51 100644 --- a/src/Umbraco.Core/IO/SystemFiles.cs +++ b/src/Umbraco.Core/IO/SystemFiles.cs @@ -1,9 +1,7 @@ using System.IO; -using Umbraco.Core.Composing; -using Umbraco.Core.Configuration; -using Umbraco.Core.Hosting; +using Umbraco.Cms.Core.Hosting; -namespace Umbraco.Core.IO +namespace Umbraco.Cms.Core.IO { public class SystemFiles { diff --git a/src/Umbraco.Core/IO/ViewHelper.cs b/src/Umbraco.Core/IO/ViewHelper.cs index 954bdded00..9a7016b6be 100644 --- a/src/Umbraco.Core/IO/ViewHelper.cs +++ b/src/Umbraco.Core/IO/ViewHelper.cs @@ -2,9 +2,10 @@ using System; using System.IO; using System.Linq; using System.Text; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Extensions; -namespace Umbraco.Core.IO +namespace Umbraco.Cms.Core.IO { public class ViewHelper { @@ -69,8 +70,8 @@ namespace Umbraco.Core.IO // either // @inherits Umbraco.Web.Mvc.UmbracoViewPage // @inherits Umbraco.Web.Mvc.UmbracoViewPage - content.AppendLine("@using Umbraco.Web.PublishedModels;"); - content.Append("@inherits Umbraco.Web.Common.Views.UmbracoViewPage"); + content.AppendLine("@using Umbraco.Cms.Web.Common.PublishedModels;"); + content.Append("@inherits Umbraco.Cms.Web.Common.AspNetCore.UmbracoViewPage"); if (modelClassName.IsNullOrWhiteSpace() == false) { content.Append("<"); diff --git a/src/Umbraco.Core/IRegisteredObject.cs b/src/Umbraco.Core/IRegisteredObject.cs index abe52e2350..54ac6e1a57 100644 --- a/src/Umbraco.Core/IRegisteredObject.cs +++ b/src/Umbraco.Core/IRegisteredObject.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core +namespace Umbraco.Cms.Core { public interface IRegisteredObject { diff --git a/src/Umbraco.Core/Install/FilePermissionTest.cs b/src/Umbraco.Core/Install/FilePermissionTest.cs index fe714ca8fa..f84d9a0a7b 100644 --- a/src/Umbraco.Core/Install/FilePermissionTest.cs +++ b/src/Umbraco.Core/Install/FilePermissionTest.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Install +namespace Umbraco.Cms.Core.Install { public enum FilePermissionTest { diff --git a/src/Umbraco.Core/Install/IFilePermissionHelper.cs b/src/Umbraco.Core/Install/IFilePermissionHelper.cs index 6bddd02db4..cfda3a396d 100644 --- a/src/Umbraco.Core/Install/IFilePermissionHelper.cs +++ b/src/Umbraco.Core/Install/IFilePermissionHelper.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; -namespace Umbraco.Core.Install +namespace Umbraco.Cms.Core.Install { /// /// Helper to test File and folder permissions diff --git a/src/Umbraco.Core/Install/InstallException.cs b/src/Umbraco.Core/Install/InstallException.cs index 3dc297e6b2..c21359e953 100644 --- a/src/Umbraco.Core/Install/InstallException.cs +++ b/src/Umbraco.Core/Install/InstallException.cs @@ -1,7 +1,7 @@ using System; using System.Runtime.Serialization; -namespace Umbraco.Web.Install +namespace Umbraco.Cms.Core.Install { /// /// Used for steps to be able to return a JSON structure back to the UI. diff --git a/src/Umbraco.Core/Install/InstallStatusTracker.cs b/src/Umbraco.Core/Install/InstallStatusTracker.cs index 4260fa189d..66b05d0fe1 100644 --- a/src/Umbraco.Core/Install/InstallStatusTracker.cs +++ b/src/Umbraco.Core/Install/InstallStatusTracker.cs @@ -2,13 +2,13 @@ using System.Collections.Generic; using System.IO; using System.Linq; -using Umbraco.Core; -using Umbraco.Core.Collections; -using Umbraco.Core.Hosting; -using Umbraco.Core.Serialization; -using Umbraco.Web.Install.Models; +using Umbraco.Cms.Core.Collections; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Install.Models; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Extensions; -namespace Umbraco.Web.Install +namespace Umbraco.Cms.Core.Install { /// /// An internal in-memory status tracker for the current installation diff --git a/src/Umbraco.Core/Install/InstallSteps/FilePermissionsStep.cs b/src/Umbraco.Core/Install/InstallSteps/FilePermissionsStep.cs index d2c2c84339..5b7d91468f 100644 --- a/src/Umbraco.Core/Install/InstallSteps/FilePermissionsStep.cs +++ b/src/Umbraco.Core/Install/InstallSteps/FilePermissionsStep.cs @@ -4,11 +4,11 @@ using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; -using Umbraco.Core.Services; -using Umbraco.Web.Install; -using Umbraco.Web.Install.Models; +using Umbraco.Cms.Core.Install.Models; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; -namespace Umbraco.Core.Install.InstallSteps +namespace Umbraco.Cms.Core.Install.InstallSteps { /// /// Represents a step in the installation that ensure all the required permissions on files and folders are correct. diff --git a/src/Umbraco.Core/Install/InstallSteps/StarterKitCleanupStep.cs b/src/Umbraco.Core/Install/InstallSteps/StarterKitCleanupStep.cs index 94407bee8d..1370158eff 100644 --- a/src/Umbraco.Core/Install/InstallSteps/StarterKitCleanupStep.cs +++ b/src/Umbraco.Core/Install/InstallSteps/StarterKitCleanupStep.cs @@ -3,10 +3,10 @@ using System.IO; using System.Linq; using System.Net; using System.Threading.Tasks; -using Umbraco.Core.Hosting; -using Umbraco.Web.Install.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Install.Models; -namespace Umbraco.Web.Install.InstallSteps +namespace Umbraco.Cms.Core.Install.InstallSteps { [InstallSetupStep(InstallationType.NewInstall, "StarterKitCleanup", 32, "Almost done")] @@ -33,7 +33,7 @@ namespace Umbraco.Web.Install.InstallSteps private void CleanupInstallation(int packageId, string packageFile) { - var zipFile = new FileInfo(Path.Combine(_hostingEnvironment.MapPathContentRoot(Core.Constants.SystemDirectories.Packages), WebUtility.UrlDecode(packageFile))); + var zipFile = new FileInfo(Path.Combine(_hostingEnvironment.MapPathContentRoot(Constants.SystemDirectories.Packages), WebUtility.UrlDecode(packageFile))); if (zipFile.Exists) zipFile.Delete(); diff --git a/src/Umbraco.Core/Install/InstallSteps/StarterKitInstallStep.cs b/src/Umbraco.Core/Install/InstallSteps/StarterKitInstallStep.cs index 4866c472e6..00b2ab33e4 100644 --- a/src/Umbraco.Core/Install/InstallSteps/StarterKitInstallStep.cs +++ b/src/Umbraco.Core/Install/InstallSteps/StarterKitInstallStep.cs @@ -2,12 +2,12 @@ using System.IO; using System.Linq; using System.Threading.Tasks; -using Umbraco.Core.Hosting; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Web.Install.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Install.Models; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; -namespace Umbraco.Web.Install.InstallSteps +namespace Umbraco.Cms.Core.Install.InstallSteps { [InstallSetupStep(InstallationType.NewInstall, "StarterKitInstall", 31, "", diff --git a/src/Umbraco.Core/Install/InstallSteps/TelemetryIdentifierStep.cs b/src/Umbraco.Core/Install/InstallSteps/TelemetryIdentifierStep.cs index 01d8e428c7..37769afc53 100644 --- a/src/Umbraco.Core/Install/InstallSteps/TelemetryIdentifierStep.cs +++ b/src/Umbraco.Core/Install/InstallSteps/TelemetryIdentifierStep.cs @@ -2,11 +2,11 @@ using System.Threading.Tasks; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Web.Install.Models; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Install.Models; -namespace Umbraco.Web.Install.InstallSteps +namespace Umbraco.Cms.Core.Install.InstallSteps { [InstallSetupStep(InstallationType.NewInstall | InstallationType.Upgrade, "TelemetryIdConfiguration", 0, "", diff --git a/src/Umbraco.Core/Install/InstallSteps/UpgradeStep.cs b/src/Umbraco.Core/Install/InstallSteps/UpgradeStep.cs index 5637d84a89..2666d81310 100644 --- a/src/Umbraco.Core/Install/InstallSteps/UpgradeStep.cs +++ b/src/Umbraco.Core/Install/InstallSteps/UpgradeStep.cs @@ -1,11 +1,11 @@ using System; using System.Threading.Tasks; -using Semver; -using Umbraco.Core; -using Umbraco.Core.Configuration; -using Umbraco.Web.Install.Models; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Install.Models; +using Umbraco.Cms.Core.Semver; +using Umbraco.Cms.Core.Services; -namespace Umbraco.Web.Install.InstallSteps +namespace Umbraco.Cms.Core.Install.InstallSteps { /// /// This step is purely here to show the button to commence the upgrade diff --git a/src/Umbraco.Core/Install/Models/DatabaseModel.cs b/src/Umbraco.Core/Install/Models/DatabaseModel.cs index 4b09534f39..c7f4ce0aab 100644 --- a/src/Umbraco.Core/Install/Models/DatabaseModel.cs +++ b/src/Umbraco.Core/Install/Models/DatabaseModel.cs @@ -1,6 +1,6 @@ using System.Runtime.Serialization; -namespace Umbraco.Web.Install.Models +namespace Umbraco.Cms.Core.Install.Models { [DataContract(Name = "database", Namespace = "")] public class DatabaseModel diff --git a/src/Umbraco.Core/Install/Models/DatabaseType.cs b/src/Umbraco.Core/Install/Models/DatabaseType.cs index a8b98a7de5..5eef471562 100644 --- a/src/Umbraco.Core/Install/Models/DatabaseType.cs +++ b/src/Umbraco.Core/Install/Models/DatabaseType.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.Install.Models +namespace Umbraco.Cms.Core.Install.Models { public enum DatabaseType { diff --git a/src/Umbraco.Core/Install/Models/InstallInstructions.cs b/src/Umbraco.Core/Install/Models/InstallInstructions.cs index 159edda9e6..41ef0bacc4 100644 --- a/src/Umbraco.Core/Install/Models/InstallInstructions.cs +++ b/src/Umbraco.Core/Install/Models/InstallInstructions.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.Runtime.Serialization; -namespace Umbraco.Web.Install.Models +namespace Umbraco.Cms.Core.Install.Models { [DataContract(Name = "installInstructions", Namespace = "")] public class InstallInstructions diff --git a/src/Umbraco.Core/Install/Models/InstallProgressResultModel.cs b/src/Umbraco.Core/Install/Models/InstallProgressResultModel.cs index 7ea3b3375b..02f1d9b482 100644 --- a/src/Umbraco.Core/Install/Models/InstallProgressResultModel.cs +++ b/src/Umbraco.Core/Install/Models/InstallProgressResultModel.cs @@ -1,6 +1,6 @@ using System.Runtime.Serialization; -namespace Umbraco.Web.Install.Models +namespace Umbraco.Cms.Core.Install.Models { /// diff --git a/src/Umbraco.Core/Install/Models/InstallSetup.cs b/src/Umbraco.Core/Install/Models/InstallSetup.cs index f61e301a09..358bd92234 100644 --- a/src/Umbraco.Core/Install/Models/InstallSetup.cs +++ b/src/Umbraco.Core/Install/Models/InstallSetup.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.Runtime.Serialization; -namespace Umbraco.Web.Install.Models +namespace Umbraco.Cms.Core.Install.Models { /// /// Model containing all the install steps for setting up the UI diff --git a/src/Umbraco.Core/Install/Models/InstallSetupResult.cs b/src/Umbraco.Core/Install/Models/InstallSetupResult.cs index 4ef4b70f51..071857193f 100644 --- a/src/Umbraco.Core/Install/Models/InstallSetupResult.cs +++ b/src/Umbraco.Core/Install/Models/InstallSetupResult.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace Umbraco.Web.Install.Models +namespace Umbraco.Cms.Core.Install.Models { /// /// The object returned from each installation step diff --git a/src/Umbraco.Core/Install/Models/InstallSetupStep.cs b/src/Umbraco.Core/Install/Models/InstallSetupStep.cs index fd50d7855c..8bfe1d75ec 100644 --- a/src/Umbraco.Core/Install/Models/InstallSetupStep.cs +++ b/src/Umbraco.Core/Install/Models/InstallSetupStep.cs @@ -1,9 +1,9 @@ using System; using System.Runtime.Serialization; using System.Threading.Tasks; -using Umbraco.Core; +using Umbraco.Extensions; -namespace Umbraco.Web.Install.Models +namespace Umbraco.Cms.Core.Install.Models { /// /// Model to give to the front-end to collect the information for each step @@ -82,6 +82,6 @@ namespace Umbraco.Web.Install.Models /// [IgnoreDataMember] public abstract Type StepType { get; } - + } } diff --git a/src/Umbraco.Core/Install/Models/InstallSetupStepAttribute.cs b/src/Umbraco.Core/Install/Models/InstallSetupStepAttribute.cs index 9cecdacf99..7feaced052 100644 --- a/src/Umbraco.Core/Install/Models/InstallSetupStepAttribute.cs +++ b/src/Umbraco.Core/Install/Models/InstallSetupStepAttribute.cs @@ -1,7 +1,6 @@ using System; -using System.Text.RegularExpressions; -namespace Umbraco.Web.Install.Models +namespace Umbraco.Cms.Core.Install.Models { public sealed class InstallSetupStepAttribute : Attribute { diff --git a/src/Umbraco.Core/Install/Models/InstallTrackingItem.cs b/src/Umbraco.Core/Install/Models/InstallTrackingItem.cs index 9bc8201ba9..48ad91abed 100644 --- a/src/Umbraco.Core/Install/Models/InstallTrackingItem.cs +++ b/src/Umbraco.Core/Install/Models/InstallTrackingItem.cs @@ -1,7 +1,6 @@ using System.Collections.Generic; -using System.Runtime.Serialization; -namespace Umbraco.Web.Install.Models +namespace Umbraco.Cms.Core.Install.Models { public class InstallTrackingItem { diff --git a/src/Umbraco.Core/Install/Models/InstallationType.cs b/src/Umbraco.Core/Install/Models/InstallationType.cs index b0202a4c3a..99ecf8ce1f 100644 --- a/src/Umbraco.Core/Install/Models/InstallationType.cs +++ b/src/Umbraco.Core/Install/Models/InstallationType.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Web.Install.Models +namespace Umbraco.Cms.Core.Install.Models { [Flags] public enum InstallationType diff --git a/src/Umbraco.Core/Install/Models/Package.cs b/src/Umbraco.Core/Install/Models/Package.cs index c30e0db16f..60676e9564 100644 --- a/src/Umbraco.Core/Install/Models/Package.cs +++ b/src/Umbraco.Core/Install/Models/Package.cs @@ -1,11 +1,7 @@ using System; -using System.Collections.Generic; -using System.Linq; using System.Runtime.Serialization; -using System.Text; -using System.Threading.Tasks; -namespace Umbraco.Web.Install.Models +namespace Umbraco.Cms.Core.Install.Models { [DataContract(Name = "package")] public class Package diff --git a/src/Umbraco.Core/Install/Models/UserModel.cs b/src/Umbraco.Core/Install/Models/UserModel.cs index aed397a7d9..1c36b711d4 100644 --- a/src/Umbraco.Core/Install/Models/UserModel.cs +++ b/src/Umbraco.Core/Install/Models/UserModel.cs @@ -1,6 +1,6 @@ using System.Runtime.Serialization; -namespace Umbraco.Web.Install.Models +namespace Umbraco.Cms.Core.Install.Models { [DataContract(Name = "user", Namespace = "")] public class UserModel diff --git a/src/Umbraco.Core/InstallLog.cs b/src/Umbraco.Core/InstallLog.cs index cb14ebd650..245e917771 100644 --- a/src/Umbraco.Core/InstallLog.cs +++ b/src/Umbraco.Core/InstallLog.cs @@ -1,10 +1,6 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core { public class InstallLog { diff --git a/src/Umbraco.Core/LambdaExpressionCacheKey.cs b/src/Umbraco.Core/LambdaExpressionCacheKey.cs index c191732acc..72fd9b3c6d 100644 --- a/src/Umbraco.Core/LambdaExpressionCacheKey.cs +++ b/src/Umbraco.Core/LambdaExpressionCacheKey.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; -namespace Umbraco.Core +namespace Umbraco.Cms.Core { /// /// Represents a simple in a form which is suitable for using as a dictionary key diff --git a/src/Umbraco.Core/Logging/DisposableTimer.cs b/src/Umbraco.Core/Logging/DisposableTimer.cs index 9fdb93c057..50bfd537cd 100644 --- a/src/Umbraco.Core/Logging/DisposableTimer.cs +++ b/src/Umbraco.Core/Logging/DisposableTimer.cs @@ -2,7 +2,7 @@ using System.Diagnostics; using Microsoft.Extensions.Logging; -namespace Umbraco.Core.Logging +namespace Umbraco.Cms.Core.Logging { /// /// Starts the timer and invokes a callback upon disposal. Provides a simple way of timing an operation by wrapping it in a using (C#) statement. diff --git a/src/Umbraco.Core/Logging/ILoggingConfiguration.cs b/src/Umbraco.Core/Logging/ILoggingConfiguration.cs index 6590f9fc65..34e4d702c6 100644 --- a/src/Umbraco.Core/Logging/ILoggingConfiguration.cs +++ b/src/Umbraco.Core/Logging/ILoggingConfiguration.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Logging +namespace Umbraco.Cms.Core.Logging { public interface ILoggingConfiguration diff --git a/src/Umbraco.Core/Logging/IMessageTemplates.cs b/src/Umbraco.Core/Logging/IMessageTemplates.cs index b455e4af21..99d88ce926 100644 --- a/src/Umbraco.Core/Logging/IMessageTemplates.cs +++ b/src/Umbraco.Core/Logging/IMessageTemplates.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Logging +namespace Umbraco.Cms.Core.Logging { /// /// Provides tools to support message templates. diff --git a/src/Umbraco.Core/Logging/IProfiler.cs b/src/Umbraco.Core/Logging/IProfiler.cs index d855612c95..d64cb49362 100644 --- a/src/Umbraco.Core/Logging/IProfiler.cs +++ b/src/Umbraco.Core/Logging/IProfiler.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Logging +namespace Umbraco.Cms.Core.Logging { /// diff --git a/src/Umbraco.Core/Logging/IProfilerHtml.cs b/src/Umbraco.Core/Logging/IProfilerHtml.cs index 4f9ee62e0b..30812fc156 100644 --- a/src/Umbraco.Core/Logging/IProfilerHtml.cs +++ b/src/Umbraco.Core/Logging/IProfilerHtml.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Logging +namespace Umbraco.Cms.Core.Logging { /// /// Used to render a profiler in a web page diff --git a/src/Umbraco.Core/Logging/IProfilingLogger.cs b/src/Umbraco.Core/Logging/IProfilingLogger.cs index 019b43d61e..fd51bd2da3 100644 --- a/src/Umbraco.Core/Logging/IProfilingLogger.cs +++ b/src/Umbraco.Core/Logging/IProfilingLogger.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Logging +namespace Umbraco.Cms.Core.Logging { /// /// Defines the profiling logging service. diff --git a/src/Umbraco.Core/Logging/LogLevel.cs b/src/Umbraco.Core/Logging/LogLevel.cs index f1b65499d6..9e12002324 100644 --- a/src/Umbraco.Core/Logging/LogLevel.cs +++ b/src/Umbraco.Core/Logging/LogLevel.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Logging +namespace Umbraco.Cms.Core.Logging { /// /// Specifies the level of a log event. diff --git a/src/Umbraco.Core/Logging/LogProfiler.cs b/src/Umbraco.Core/Logging/LogProfiler.cs index 047331fd3a..1f4b4bbe90 100644 --- a/src/Umbraco.Core/Logging/LogProfiler.cs +++ b/src/Umbraco.Core/Logging/LogProfiler.cs @@ -2,7 +2,7 @@ using System.Diagnostics; using Microsoft.Extensions.Logging; -namespace Umbraco.Core.Logging +namespace Umbraco.Cms.Core.Logging { /// /// Implements by writing profiling results to an . diff --git a/src/Umbraco.Core/Logging/LoggingConfiguration.cs b/src/Umbraco.Core/Logging/LoggingConfiguration.cs index ecd806211c..f191af3023 100644 --- a/src/Umbraco.Core/Logging/LoggingConfiguration.cs +++ b/src/Umbraco.Core/Logging/LoggingConfiguration.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Logging +namespace Umbraco.Cms.Core.Logging { public class LoggingConfiguration : ILoggingConfiguration { diff --git a/src/Umbraco.Core/Logging/LoggingTaskExtension.cs b/src/Umbraco.Core/Logging/LoggingTaskExtension.cs index 2e3aa0a883..5a6f995dfa 100644 --- a/src/Umbraco.Core/Logging/LoggingTaskExtension.cs +++ b/src/Umbraco.Core/Logging/LoggingTaskExtension.cs @@ -2,7 +2,7 @@ using System.Threading; using System.Threading.Tasks; -namespace Umbraco.Core.Logging +namespace Umbraco.Cms.Core.Logging { internal static class LoggingTaskExtension { diff --git a/src/Umbraco.Core/Logging/NoopProfiler.cs b/src/Umbraco.Core/Logging/NoopProfiler.cs index e7b43e5e2d..89a0307515 100644 --- a/src/Umbraco.Core/Logging/NoopProfiler.cs +++ b/src/Umbraco.Core/Logging/NoopProfiler.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Logging +namespace Umbraco.Cms.Core.Logging { public class NoopProfiler : IProfiler { diff --git a/src/Umbraco.Core/Logging/ProfilerExtensions.cs b/src/Umbraco.Core/Logging/ProfilerExtensions.cs index 533837b08b..f3c18a0231 100644 --- a/src/Umbraco.Core/Logging/ProfilerExtensions.cs +++ b/src/Umbraco.Core/Logging/ProfilerExtensions.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Logging +namespace Umbraco.Cms.Core.Logging { internal static class ProfilerExtensions { diff --git a/src/Umbraco.Core/Logging/ProfilingLogger.cs b/src/Umbraco.Core/Logging/ProfilingLogger.cs index 520e14e17d..3abb3d348f 100644 --- a/src/Umbraco.Core/Logging/ProfilingLogger.cs +++ b/src/Umbraco.Core/Logging/ProfilingLogger.cs @@ -1,9 +1,7 @@ using System; using Microsoft.Extensions.Logging; -using Umbraco.Core.Models; - -namespace Umbraco.Core.Logging +namespace Umbraco.Cms.Core.Logging { /// /// Provides logging and profiling services. diff --git a/src/Umbraco.Core/Macros/IMacroRenderer.cs b/src/Umbraco.Core/Macros/IMacroRenderer.cs index d858315403..a969946340 100644 --- a/src/Umbraco.Core/Macros/IMacroRenderer.cs +++ b/src/Umbraco.Core/Macros/IMacroRenderer.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.PublishedContent; -namespace Umbraco.Web.Macros +namespace Umbraco.Cms.Core.Macros { /// /// Renders a macro diff --git a/src/Umbraco.Core/Macros/MacroContent.cs b/src/Umbraco.Core/Macros/MacroContent.cs index 60dfb9210d..a7f8b003b4 100644 --- a/src/Umbraco.Core/Macros/MacroContent.cs +++ b/src/Umbraco.Core/Macros/MacroContent.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Web.Macros +namespace Umbraco.Cms.Core.Macros { // represents the content of a macro public class MacroContent diff --git a/src/Umbraco.Core/Macros/MacroErrorBehaviour.cs b/src/Umbraco.Core/Macros/MacroErrorBehaviour.cs index dd3d506b23..b3c505682a 100644 --- a/src/Umbraco.Core/Macros/MacroErrorBehaviour.cs +++ b/src/Umbraco.Core/Macros/MacroErrorBehaviour.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Macros +namespace Umbraco.Cms.Core.Macros { public enum MacroErrorBehaviour { diff --git a/src/Umbraco.Core/Macros/MacroModel.cs b/src/Umbraco.Core/Macros/MacroModel.cs index 6b5013115a..08f52c0f53 100644 --- a/src/Umbraco.Core/Macros/MacroModel.cs +++ b/src/Umbraco.Core/Macros/MacroModel.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Web.Macros +namespace Umbraco.Cms.Core.Macros { public class MacroModel { diff --git a/src/Umbraco.Core/Macros/MacroPropertyModel.cs b/src/Umbraco.Core/Macros/MacroPropertyModel.cs index 0621155be7..78683a323d 100644 --- a/src/Umbraco.Core/Macros/MacroPropertyModel.cs +++ b/src/Umbraco.Core/Macros/MacroPropertyModel.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.Macros +namespace Umbraco.Cms.Core.Macros { public class MacroPropertyModel { diff --git a/src/Umbraco.Core/Mail/IEmailSender.cs b/src/Umbraco.Core/Mail/IEmailSender.cs index 3862d0e717..b5b353455d 100644 --- a/src/Umbraco.Core/Mail/IEmailSender.cs +++ b/src/Umbraco.Core/Mail/IEmailSender.cs @@ -1,7 +1,7 @@ using System.Threading.Tasks; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Mail +namespace Umbraco.Cms.Core.Mail { /// /// Simple abstraction to send an email message diff --git a/src/Umbraco.Core/Mail/ISmsSender.cs b/src/Umbraco.Core/Mail/ISmsSender.cs index a2ff054c48..885ad89da2 100644 --- a/src/Umbraco.Core/Mail/ISmsSender.cs +++ b/src/Umbraco.Core/Mail/ISmsSender.cs @@ -1,6 +1,6 @@ using System.Threading.Tasks; -namespace Umbraco.Core.Mail +namespace Umbraco.Cms.Core.Mail { /// /// Service to send an SMS diff --git a/src/Umbraco.Core/Mail/NotImplementedEmailSender.cs b/src/Umbraco.Core/Mail/NotImplementedEmailSender.cs index bb8d787cbf..45e7925764 100644 --- a/src/Umbraco.Core/Mail/NotImplementedEmailSender.cs +++ b/src/Umbraco.Core/Mail/NotImplementedEmailSender.cs @@ -1,8 +1,8 @@ using System; using System.Threading.Tasks; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Mail +namespace Umbraco.Cms.Core.Mail { internal class NotImplementedEmailSender : IEmailSender { diff --git a/src/Umbraco.Core/Mail/NotImplementedSmsSender.cs b/src/Umbraco.Core/Mail/NotImplementedSmsSender.cs index 16c3d04711..0cb5016a1b 100644 --- a/src/Umbraco.Core/Mail/NotImplementedSmsSender.cs +++ b/src/Umbraco.Core/Mail/NotImplementedSmsSender.cs @@ -1,7 +1,7 @@ using System; using System.Threading.Tasks; -namespace Umbraco.Core.Mail +namespace Umbraco.Cms.Core.Mail { /// /// An that throws diff --git a/src/Umbraco.Core/Manifest/IManifestFilter.cs b/src/Umbraco.Core/Manifest/IManifestFilter.cs index 88e00a3966..0984f1a889 100644 --- a/src/Umbraco.Core/Manifest/IManifestFilter.cs +++ b/src/Umbraco.Core/Manifest/IManifestFilter.cs @@ -1,7 +1,6 @@ using System.Collections.Generic; - -namespace Umbraco.Core.Manifest +namespace Umbraco.Cms.Core.Manifest { /// /// Provides filtering for package manifests. diff --git a/src/Umbraco.Core/Manifest/IManifestParser.cs b/src/Umbraco.Core/Manifest/IManifestParser.cs index 3eec7007b3..371ec54dae 100644 --- a/src/Umbraco.Core/Manifest/IManifestParser.cs +++ b/src/Umbraco.Core/Manifest/IManifestParser.cs @@ -1,7 +1,4 @@ -using System.Collections.Generic; -using Umbraco.Core.PropertyEditors; - -namespace Umbraco.Core.Manifest +namespace Umbraco.Cms.Core.Manifest { public interface IManifestParser { diff --git a/src/Umbraco.Core/Manifest/IPackageManifest.cs b/src/Umbraco.Core/Manifest/IPackageManifest.cs index 01b0be70db..39e4878233 100644 --- a/src/Umbraco.Core/Manifest/IPackageManifest.cs +++ b/src/Umbraco.Core/Manifest/IPackageManifest.cs @@ -1,7 +1,7 @@ using System.Runtime.Serialization; -using Umbraco.Core.PropertyEditors; +using Umbraco.Cms.Core.PropertyEditors; -namespace Umbraco.Core.Manifest +namespace Umbraco.Cms.Core.Manifest { public interface IPackageManifest { diff --git a/src/Umbraco.Core/Manifest/ManifestContentAppDefinition.cs b/src/Umbraco.Core/Manifest/ManifestContentAppDefinition.cs index 35293a6377..d3f915603d 100644 --- a/src/Umbraco.Core/Manifest/ManifestContentAppDefinition.cs +++ b/src/Umbraco.Core/Manifest/ManifestContentAppDefinition.cs @@ -1,7 +1,7 @@ using System; using System.Runtime.Serialization; -namespace Umbraco.Core.Manifest +namespace Umbraco.Cms.Core.Manifest { // contentApps: [ // { diff --git a/src/Umbraco.Core/Manifest/ManifestContentAppFactory.cs b/src/Umbraco.Core/Manifest/ManifestContentAppFactory.cs index e407ac7013..d865bb01aa 100644 --- a/src/Umbraco.Core/Manifest/ManifestContentAppFactory.cs +++ b/src/Umbraco.Core/Manifest/ManifestContentAppFactory.cs @@ -2,12 +2,13 @@ using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; -using Umbraco.Core.IO; -using Umbraco.Core.Models; -using Umbraco.Core.Models.ContentEditing; -using Umbraco.Core.Models.Membership; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Extensions; -namespace Umbraco.Core.Manifest +namespace Umbraco.Cms.Core.Manifest { // contentApps: [ // { diff --git a/src/Umbraco.Core/Manifest/ManifestDashboard.cs b/src/Umbraco.Core/Manifest/ManifestDashboard.cs index 2d6f96b5c2..50df4bb15e 100644 --- a/src/Umbraco.Core/Manifest/ManifestDashboard.cs +++ b/src/Umbraco.Core/Manifest/ManifestDashboard.cs @@ -1,9 +1,8 @@ using System; -using System.ComponentModel; using System.Runtime.Serialization; -using Umbraco.Core.Dashboards; +using Umbraco.Cms.Core.Dashboards; -namespace Umbraco.Core.Manifest +namespace Umbraco.Cms.Core.Manifest { [DataContract] public class ManifestDashboard : IDashboard diff --git a/src/Umbraco.Core/Manifest/ManifestFilterCollection.cs b/src/Umbraco.Core/Manifest/ManifestFilterCollection.cs index febdb7e356..20a3468c36 100644 --- a/src/Umbraco.Core/Manifest/ManifestFilterCollection.cs +++ b/src/Umbraco.Core/Manifest/ManifestFilterCollection.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Core.Manifest +namespace Umbraco.Cms.Core.Manifest { /// /// Contains the manifest filters. diff --git a/src/Umbraco.Core/Manifest/ManifestFilterCollectionBuilder.cs b/src/Umbraco.Core/Manifest/ManifestFilterCollectionBuilder.cs index 47593c2548..00ac3609dd 100644 --- a/src/Umbraco.Core/Manifest/ManifestFilterCollectionBuilder.cs +++ b/src/Umbraco.Core/Manifest/ManifestFilterCollectionBuilder.cs @@ -1,7 +1,7 @@ using Microsoft.Extensions.DependencyInjection; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Core.Manifest +namespace Umbraco.Cms.Core.Manifest { public class ManifestFilterCollectionBuilder : OrderedCollectionBuilderBase { diff --git a/src/Umbraco.Core/Manifest/ManifestSection.cs b/src/Umbraco.Core/Manifest/ManifestSection.cs index 584e2a157b..0422d6c5b6 100644 --- a/src/Umbraco.Core/Manifest/ManifestSection.cs +++ b/src/Umbraco.Core/Manifest/ManifestSection.cs @@ -1,7 +1,7 @@ using System.Runtime.Serialization; -using Umbraco.Core.Models.Sections; +using Umbraco.Cms.Core.Sections; -namespace Umbraco.Core.Manifest +namespace Umbraco.Cms.Core.Manifest { [DataContract(Name = "section", Namespace = "")] public class ManifestSection : ISection diff --git a/src/Umbraco.Core/Manifest/ManifestWatcher.cs b/src/Umbraco.Core/Manifest/ManifestWatcher.cs index b6cd82b31f..26c54a8b5e 100644 --- a/src/Umbraco.Core/Manifest/ManifestWatcher.cs +++ b/src/Umbraco.Core/Manifest/ManifestWatcher.cs @@ -3,9 +3,10 @@ using System.Collections.Generic; using System.IO; using System.Linq; using Microsoft.Extensions.Logging; -using Umbraco.Core.Hosting; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Extensions; -namespace Umbraco.Core.Manifest +namespace Umbraco.Cms.Core.Manifest { public class ManifestWatcher : IDisposable { diff --git a/src/Umbraco.Core/Manifest/PackageManifest.cs b/src/Umbraco.Core/Manifest/PackageManifest.cs index 5e10030693..1a533b1f24 100644 --- a/src/Umbraco.Core/Manifest/PackageManifest.cs +++ b/src/Umbraco.Core/Manifest/PackageManifest.cs @@ -1,8 +1,8 @@ using System; using System.Runtime.Serialization; -using Umbraco.Core.PropertyEditors; +using Umbraco.Cms.Core.PropertyEditors; -namespace Umbraco.Core.Manifest +namespace Umbraco.Cms.Core.Manifest { /// /// Represents the content of a package manifest. diff --git a/src/Umbraco.Core/Mapping/IMapDefinition.cs b/src/Umbraco.Core/Mapping/IMapDefinition.cs index ffea07c3eb..c90896ebc7 100644 --- a/src/Umbraco.Core/Mapping/IMapDefinition.cs +++ b/src/Umbraco.Core/Mapping/IMapDefinition.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Mapping +namespace Umbraco.Cms.Core.Mapping { /// /// Defines maps for . diff --git a/src/Umbraco.Core/Mapping/MapDefinitionCollection.cs b/src/Umbraco.Core/Mapping/MapDefinitionCollection.cs index e2438515f0..d9cc08ad43 100644 --- a/src/Umbraco.Core/Mapping/MapDefinitionCollection.cs +++ b/src/Umbraco.Core/Mapping/MapDefinitionCollection.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Core.Mapping +namespace Umbraco.Cms.Core.Mapping { public class MapDefinitionCollection : BuilderCollectionBase { diff --git a/src/Umbraco.Core/Mapping/MapDefinitionCollectionBuilder.cs b/src/Umbraco.Core/Mapping/MapDefinitionCollectionBuilder.cs index 6cccde9525..698dce1648 100644 --- a/src/Umbraco.Core/Mapping/MapDefinitionCollectionBuilder.cs +++ b/src/Umbraco.Core/Mapping/MapDefinitionCollectionBuilder.cs @@ -1,7 +1,7 @@ using Microsoft.Extensions.DependencyInjection; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Core.Mapping +namespace Umbraco.Cms.Core.Mapping { public class MapDefinitionCollectionBuilder : SetCollectionBuilderBase { diff --git a/src/Umbraco.Core/Mapping/MapperContext.cs b/src/Umbraco.Core/Mapping/MapperContext.cs index a7044a05b9..f44cae2253 100644 --- a/src/Umbraco.Core/Mapping/MapperContext.cs +++ b/src/Umbraco.Core/Mapping/MapperContext.cs @@ -1,8 +1,7 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; -namespace Umbraco.Core.Mapping +namespace Umbraco.Cms.Core.Mapping { /// /// Represents a mapper context. diff --git a/src/Umbraco.Core/Mapping/UmbracoMapper.cs b/src/Umbraco.Core/Mapping/UmbracoMapper.cs index e62825101c..42efa9b007 100644 --- a/src/Umbraco.Core/Mapping/UmbracoMapper.cs +++ b/src/Umbraco.Core/Mapping/UmbracoMapper.cs @@ -3,9 +3,10 @@ using System.Collections; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; -using Umbraco.Core.Exceptions; +using Umbraco.Cms.Core.Exceptions; +using Umbraco.Extensions; -namespace Umbraco.Core.Mapping +namespace Umbraco.Cms.Core.Mapping { // notes: // AutoMapper maps null to empty arrays, lists, etc diff --git a/src/Umbraco.Core/Media/EmbedProviders/DailyMotion.cs b/src/Umbraco.Core/Media/EmbedProviders/DailyMotion.cs index f56a29c2d5..e5fc553ea8 100644 --- a/src/Umbraco.Core/Media/EmbedProviders/DailyMotion.cs +++ b/src/Umbraco.Core/Media/EmbedProviders/DailyMotion.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Serialization; +using Umbraco.Cms.Core.Serialization; -namespace Umbraco.Web.Media.EmbedProviders +namespace Umbraco.Cms.Core.Media.EmbedProviders { public class DailyMotion : EmbedProviderBase { diff --git a/src/Umbraco.Core/Media/EmbedProviders/EmbedProviderBase.cs b/src/Umbraco.Core/Media/EmbedProviders/EmbedProviderBase.cs index cc7f5d2349..bbc690ce97 100644 --- a/src/Umbraco.Core/Media/EmbedProviders/EmbedProviderBase.cs +++ b/src/Umbraco.Core/Media/EmbedProviders/EmbedProviderBase.cs @@ -4,10 +4,9 @@ using System.Net; using System.Net.Http; using System.Text; using System.Xml; -using Umbraco.Core.Media; -using Umbraco.Core.Serialization; +using Umbraco.Cms.Core.Serialization; -namespace Umbraco.Web.Media.EmbedProviders +namespace Umbraco.Cms.Core.Media.EmbedProviders { public abstract class EmbedProviderBase : IEmbedProvider { diff --git a/src/Umbraco.Core/Media/EmbedProviders/EmbedProvidersCollection.cs b/src/Umbraco.Core/Media/EmbedProviders/EmbedProvidersCollection.cs index 88a317c545..490ff64357 100644 --- a/src/Umbraco.Core/Media/EmbedProviders/EmbedProvidersCollection.cs +++ b/src/Umbraco.Core/Media/EmbedProviders/EmbedProvidersCollection.cs @@ -1,8 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Composing; -using Umbraco.Core.Media; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Web.Media.EmbedProviders +namespace Umbraco.Cms.Core.Media.EmbedProviders { public class EmbedProvidersCollection : BuilderCollectionBase { diff --git a/src/Umbraco.Core/Media/EmbedProviders/EmbedProvidersCollectionBuilder.cs b/src/Umbraco.Core/Media/EmbedProviders/EmbedProvidersCollectionBuilder.cs index 0c6ea7a3e3..f79880b61f 100644 --- a/src/Umbraco.Core/Media/EmbedProviders/EmbedProvidersCollectionBuilder.cs +++ b/src/Umbraco.Core/Media/EmbedProviders/EmbedProvidersCollectionBuilder.cs @@ -1,7 +1,6 @@ -using Umbraco.Core.Composing; -using Umbraco.Core.Media; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Web.Media.EmbedProviders +namespace Umbraco.Cms.Core.Media.EmbedProviders { public class EmbedProvidersCollectionBuilder : OrderedCollectionBuilderBase { diff --git a/src/Umbraco.Core/Media/EmbedProviders/Flickr.cs b/src/Umbraco.Core/Media/EmbedProviders/Flickr.cs index a6ead2df3a..48d4be06dc 100644 --- a/src/Umbraco.Core/Media/EmbedProviders/Flickr.cs +++ b/src/Umbraco.Core/Media/EmbedProviders/Flickr.cs @@ -1,8 +1,8 @@ using System.Collections.Generic; using System.Net; -using Umbraco.Core.Serialization; +using Umbraco.Cms.Core.Serialization; -namespace Umbraco.Web.Media.EmbedProviders +namespace Umbraco.Cms.Core.Media.EmbedProviders { public class Flickr : EmbedProviderBase { diff --git a/src/Umbraco.Core/Media/EmbedProviders/GettyImages.cs b/src/Umbraco.Core/Media/EmbedProviders/GettyImages.cs index 0db0a97b8e..3dbe44a9e2 100644 --- a/src/Umbraco.Core/Media/EmbedProviders/GettyImages.cs +++ b/src/Umbraco.Core/Media/EmbedProviders/GettyImages.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Serialization; +using Umbraco.Cms.Core.Serialization; -namespace Umbraco.Web.Media.EmbedProviders +namespace Umbraco.Cms.Core.Media.EmbedProviders { public class GettyImages : EmbedProviderBase { diff --git a/src/Umbraco.Core/Media/EmbedProviders/Giphy.cs b/src/Umbraco.Core/Media/EmbedProviders/Giphy.cs index 319afda5b6..ae39b04123 100644 --- a/src/Umbraco.Core/Media/EmbedProviders/Giphy.cs +++ b/src/Umbraco.Core/Media/EmbedProviders/Giphy.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Serialization; +using Umbraco.Cms.Core.Serialization; -namespace Umbraco.Web.Media.EmbedProviders +namespace Umbraco.Cms.Core.Media.EmbedProviders { /// /// Embed Provider for Giphy.com the popular online GIFs and animated sticker provider. diff --git a/src/Umbraco.Core/Media/EmbedProviders/Hulu.cs b/src/Umbraco.Core/Media/EmbedProviders/Hulu.cs index 4deea8c23d..305d69d497 100644 --- a/src/Umbraco.Core/Media/EmbedProviders/Hulu.cs +++ b/src/Umbraco.Core/Media/EmbedProviders/Hulu.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Serialization; +using Umbraco.Cms.Core.Serialization; -namespace Umbraco.Web.Media.EmbedProviders +namespace Umbraco.Cms.Core.Media.EmbedProviders { public class Hulu : EmbedProviderBase { diff --git a/src/Umbraco.Core/Media/EmbedProviders/Issuu.cs b/src/Umbraco.Core/Media/EmbedProviders/Issuu.cs index 3baaf7ea35..50ff03d880 100644 --- a/src/Umbraco.Core/Media/EmbedProviders/Issuu.cs +++ b/src/Umbraco.Core/Media/EmbedProviders/Issuu.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Serialization; +using Umbraco.Cms.Core.Serialization; -namespace Umbraco.Web.Media.EmbedProviders +namespace Umbraco.Cms.Core.Media.EmbedProviders { public class Issuu : EmbedProviderBase { diff --git a/src/Umbraco.Core/Media/EmbedProviders/Kickstarter.cs b/src/Umbraco.Core/Media/EmbedProviders/Kickstarter.cs index ef75b6ebe8..b3527a82a1 100644 --- a/src/Umbraco.Core/Media/EmbedProviders/Kickstarter.cs +++ b/src/Umbraco.Core/Media/EmbedProviders/Kickstarter.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Serialization; +using Umbraco.Cms.Core.Serialization; -namespace Umbraco.Web.Media.EmbedProviders +namespace Umbraco.Cms.Core.Media.EmbedProviders { public class Kickstarter : EmbedProviderBase { diff --git a/src/Umbraco.Core/Media/EmbedProviders/OEmbedResponse.cs b/src/Umbraco.Core/Media/EmbedProviders/OEmbedResponse.cs index 0719f2ed20..33710d49d0 100644 --- a/src/Umbraco.Core/Media/EmbedProviders/OEmbedResponse.cs +++ b/src/Umbraco.Core/Media/EmbedProviders/OEmbedResponse.cs @@ -1,7 +1,7 @@ using System.Net; using System.Runtime.Serialization; -namespace Umbraco.Web.Media.EmbedProviders +namespace Umbraco.Cms.Core.Media.EmbedProviders { /// /// Wrapper class for OEmbed response diff --git a/src/Umbraco.Core/Media/EmbedProviders/Slideshare.cs b/src/Umbraco.Core/Media/EmbedProviders/Slideshare.cs index 7fa149d145..1517886458 100644 --- a/src/Umbraco.Core/Media/EmbedProviders/Slideshare.cs +++ b/src/Umbraco.Core/Media/EmbedProviders/Slideshare.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Serialization; +using Umbraco.Cms.Core.Serialization; -namespace Umbraco.Web.Media.EmbedProviders +namespace Umbraco.Cms.Core.Media.EmbedProviders { public class Slideshare : EmbedProviderBase { diff --git a/src/Umbraco.Core/Media/EmbedProviders/SoundCloud.cs b/src/Umbraco.Core/Media/EmbedProviders/SoundCloud.cs index 43cc92b0b4..36426b8625 100644 --- a/src/Umbraco.Core/Media/EmbedProviders/SoundCloud.cs +++ b/src/Umbraco.Core/Media/EmbedProviders/SoundCloud.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Serialization; +using Umbraco.Cms.Core.Serialization; -namespace Umbraco.Web.Media.EmbedProviders +namespace Umbraco.Cms.Core.Media.EmbedProviders { public class Soundcloud : EmbedProviderBase { diff --git a/src/Umbraco.Core/Media/EmbedProviders/Ted.cs b/src/Umbraco.Core/Media/EmbedProviders/Ted.cs index cd4b78d065..a50681adf7 100644 --- a/src/Umbraco.Core/Media/EmbedProviders/Ted.cs +++ b/src/Umbraco.Core/Media/EmbedProviders/Ted.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Serialization; +using Umbraco.Cms.Core.Serialization; -namespace Umbraco.Web.Media.EmbedProviders +namespace Umbraco.Cms.Core.Media.EmbedProviders { public class Ted : EmbedProviderBase { diff --git a/src/Umbraco.Core/Media/EmbedProviders/Twitter.cs b/src/Umbraco.Core/Media/EmbedProviders/Twitter.cs index 2bb4203411..1504fb931c 100644 --- a/src/Umbraco.Core/Media/EmbedProviders/Twitter.cs +++ b/src/Umbraco.Core/Media/EmbedProviders/Twitter.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Serialization; +using Umbraco.Cms.Core.Serialization; -namespace Umbraco.Web.Media.EmbedProviders +namespace Umbraco.Cms.Core.Media.EmbedProviders { public class Twitter : EmbedProviderBase { diff --git a/src/Umbraco.Core/Media/EmbedProviders/Vimeo.cs b/src/Umbraco.Core/Media/EmbedProviders/Vimeo.cs index 709ba61b3b..e745ba50c0 100644 --- a/src/Umbraco.Core/Media/EmbedProviders/Vimeo.cs +++ b/src/Umbraco.Core/Media/EmbedProviders/Vimeo.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Serialization; +using Umbraco.Cms.Core.Serialization; -namespace Umbraco.Web.Media.EmbedProviders +namespace Umbraco.Cms.Core.Media.EmbedProviders { public class Vimeo : EmbedProviderBase { diff --git a/src/Umbraco.Core/Media/EmbedProviders/Youtube.cs b/src/Umbraco.Core/Media/EmbedProviders/Youtube.cs index 30b83caa88..9a8a28bf00 100644 --- a/src/Umbraco.Core/Media/EmbedProviders/Youtube.cs +++ b/src/Umbraco.Core/Media/EmbedProviders/Youtube.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Serialization; +using Umbraco.Cms.Core.Serialization; -namespace Umbraco.Web.Media.EmbedProviders +namespace Umbraco.Cms.Core.Media.EmbedProviders { public class YouTube : EmbedProviderBase { diff --git a/src/Umbraco.Core/Media/Exif/BitConverterEx.cs b/src/Umbraco.Core/Media/Exif/BitConverterEx.cs index 9850efa907..6afc6e4308 100644 --- a/src/Umbraco.Core/Media/Exif/BitConverterEx.cs +++ b/src/Umbraco.Core/Media/Exif/BitConverterEx.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Web.Media.Exif +namespace Umbraco.Cms.Core.Media.Exif { /// /// An endian-aware converter for converting between base data types diff --git a/src/Umbraco.Core/Media/Exif/ExifBitConverter.cs b/src/Umbraco.Core/Media/Exif/ExifBitConverter.cs index 1dcae62acd..900c9b1b43 100644 --- a/src/Umbraco.Core/Media/Exif/ExifBitConverter.cs +++ b/src/Umbraco.Core/Media/Exif/ExifBitConverter.cs @@ -1,7 +1,7 @@ using System; using System.Text; -namespace Umbraco.Web.Media.Exif +namespace Umbraco.Cms.Core.Media.Exif { /// /// Converts between exif data types and array of bytes. diff --git a/src/Umbraco.Core/Media/Exif/ExifEnums.cs b/src/Umbraco.Core/Media/Exif/ExifEnums.cs index 5ba5b1d704..1ce0ec4891 100644 --- a/src/Umbraco.Core/Media/Exif/ExifEnums.cs +++ b/src/Umbraco.Core/Media/Exif/ExifEnums.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Web.Media.Exif +namespace Umbraco.Cms.Core.Media.Exif { internal enum Compression : ushort { diff --git a/src/Umbraco.Core/Media/Exif/ExifExceptions.cs b/src/Umbraco.Core/Media/Exif/ExifExceptions.cs index 3d2ce61e9e..3d0472c100 100644 --- a/src/Umbraco.Core/Media/Exif/ExifExceptions.cs +++ b/src/Umbraco.Core/Media/Exif/ExifExceptions.cs @@ -1,7 +1,7 @@ using System; using System.Runtime.Serialization; -namespace Umbraco.Web.Media.Exif +namespace Umbraco.Cms.Core.Media.Exif { /// /// The exception that is thrown when the format of the JPEG/EXIF file could not be understood. diff --git a/src/Umbraco.Core/Media/Exif/ExifExtendedProperty.cs b/src/Umbraco.Core/Media/Exif/ExifExtendedProperty.cs index 8889a13e1d..662390c065 100644 --- a/src/Umbraco.Core/Media/Exif/ExifExtendedProperty.cs +++ b/src/Umbraco.Core/Media/Exif/ExifExtendedProperty.cs @@ -1,7 +1,7 @@ using System; using System.Text; -namespace Umbraco.Web.Media.Exif +namespace Umbraco.Cms.Core.Media.Exif { /// /// Represents an enumerated value. diff --git a/src/Umbraco.Core/Media/Exif/ExifFileTypeDescriptor.cs b/src/Umbraco.Core/Media/Exif/ExifFileTypeDescriptor.cs index 4eba0e5686..a4c001935b 100644 --- a/src/Umbraco.Core/Media/Exif/ExifFileTypeDescriptor.cs +++ b/src/Umbraco.Core/Media/Exif/ExifFileTypeDescriptor.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.ComponentModel; -namespace Umbraco.Web.Media.Exif +namespace Umbraco.Cms.Core.Media.Exif { /// /// Provides a custom type descriptor for an ExifFile instance. diff --git a/src/Umbraco.Core/Media/Exif/ExifInterOperability.cs b/src/Umbraco.Core/Media/Exif/ExifInterOperability.cs index e7d8813767..160ee38636 100644 --- a/src/Umbraco.Core/Media/Exif/ExifInterOperability.cs +++ b/src/Umbraco.Core/Media/Exif/ExifInterOperability.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.Media.Exif +namespace Umbraco.Cms.Core.Media.Exif { /// /// Represents interoperability data for an exif tag in the platform byte order. diff --git a/src/Umbraco.Core/Media/Exif/ExifProperty.cs b/src/Umbraco.Core/Media/Exif/ExifProperty.cs index 588d3d9f92..d530e494b0 100644 --- a/src/Umbraco.Core/Media/Exif/ExifProperty.cs +++ b/src/Umbraco.Core/Media/Exif/ExifProperty.cs @@ -1,7 +1,7 @@ using System; using System.Text; -namespace Umbraco.Web.Media.Exif +namespace Umbraco.Cms.Core.Media.Exif { /// /// Represents the abstract base class for an Exif property. diff --git a/src/Umbraco.Core/Media/Exif/ExifPropertyCollection.cs b/src/Umbraco.Core/Media/Exif/ExifPropertyCollection.cs index 7f6258cbca..f26a409695 100644 --- a/src/Umbraco.Core/Media/Exif/ExifPropertyCollection.cs +++ b/src/Umbraco.Core/Media/Exif/ExifPropertyCollection.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.Text; -namespace Umbraco.Web.Media.Exif +namespace Umbraco.Cms.Core.Media.Exif { /// /// Represents a collection of objects. diff --git a/src/Umbraco.Core/Media/Exif/ExifPropertyFactory.cs b/src/Umbraco.Core/Media/Exif/ExifPropertyFactory.cs index 68769eb1f3..8d1b1af490 100644 --- a/src/Umbraco.Core/Media/Exif/ExifPropertyFactory.cs +++ b/src/Umbraco.Core/Media/Exif/ExifPropertyFactory.cs @@ -1,7 +1,7 @@ using System; using System.Text; -namespace Umbraco.Web.Media.Exif +namespace Umbraco.Cms.Core.Media.Exif { /// /// Creates exif properties from interoperability parameters. diff --git a/src/Umbraco.Core/Media/Exif/ExifTag.cs b/src/Umbraco.Core/Media/Exif/ExifTag.cs index 5c85b9558d..22215044b2 100644 --- a/src/Umbraco.Core/Media/Exif/ExifTag.cs +++ b/src/Umbraco.Core/Media/Exif/ExifTag.cs @@ -1,5 +1,5 @@  -namespace Umbraco.Web.Media.Exif +namespace Umbraco.Cms.Core.Media.Exif { /// /// Represents the tags associated with exif fields. diff --git a/src/Umbraco.Core/Media/Exif/ExifTagFactory.cs b/src/Umbraco.Core/Media/Exif/ExifTagFactory.cs index a9f1896fe7..a66cee1b36 100644 --- a/src/Umbraco.Core/Media/Exif/ExifTagFactory.cs +++ b/src/Umbraco.Core/Media/Exif/ExifTagFactory.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Web.Media.Exif +namespace Umbraco.Cms.Core.Media.Exif { internal static class ExifTagFactory { diff --git a/src/Umbraco.Core/Media/Exif/IFD.cs b/src/Umbraco.Core/Media/Exif/IFD.cs index c73a7ed97a..e275e8d52a 100644 --- a/src/Umbraco.Core/Media/Exif/IFD.cs +++ b/src/Umbraco.Core/Media/Exif/IFD.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.Media.Exif +namespace Umbraco.Cms.Core.Media.Exif { /// /// Represents the IFD section containing tags. diff --git a/src/Umbraco.Core/Media/Exif/ImageFile.cs b/src/Umbraco.Core/Media/Exif/ImageFile.cs index f59f9dc73f..f2190b3e1c 100644 --- a/src/Umbraco.Core/Media/Exif/ImageFile.cs +++ b/src/Umbraco.Core/Media/Exif/ImageFile.cs @@ -1,9 +1,9 @@ using System.ComponentModel; using System.IO; using System.Text; -using Umbraco.Web.Media.TypeDetector; +using Umbraco.Cms.Core.Media.TypeDetector; -namespace Umbraco.Web.Media.Exif +namespace Umbraco.Cms.Core.Media.Exif { /// /// Represents the base class for image files. diff --git a/src/Umbraco.Core/Media/Exif/ImageFileDirectory.cs b/src/Umbraco.Core/Media/Exif/ImageFileDirectory.cs index 7b2c134f52..ed4564a486 100644 --- a/src/Umbraco.Core/Media/Exif/ImageFileDirectory.cs +++ b/src/Umbraco.Core/Media/Exif/ImageFileDirectory.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; -namespace Umbraco.Web.Media.Exif +namespace Umbraco.Cms.Core.Media.Exif { /// /// Represents an image file directory. diff --git a/src/Umbraco.Core/Media/Exif/ImageFileDirectoryEntry.cs b/src/Umbraco.Core/Media/Exif/ImageFileDirectoryEntry.cs index 2d364c4d0c..7d1568afb3 100644 --- a/src/Umbraco.Core/Media/Exif/ImageFileDirectoryEntry.cs +++ b/src/Umbraco.Core/Media/Exif/ImageFileDirectoryEntry.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Web.Media.Exif +namespace Umbraco.Cms.Core.Media.Exif { /// /// Represents an entry in the image file directory. diff --git a/src/Umbraco.Core/Media/Exif/ImageFileFormat.cs b/src/Umbraco.Core/Media/Exif/ImageFileFormat.cs index 364877f7da..09cfcce589 100644 --- a/src/Umbraco.Core/Media/Exif/ImageFileFormat.cs +++ b/src/Umbraco.Core/Media/Exif/ImageFileFormat.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.Media.Exif +namespace Umbraco.Cms.Core.Media.Exif { /// /// Represents the format of the . diff --git a/src/Umbraco.Core/Media/Exif/JFIFEnums.cs b/src/Umbraco.Core/Media/Exif/JFIFEnums.cs index d3a55eec79..ff6b0463ed 100644 --- a/src/Umbraco.Core/Media/Exif/JFIFEnums.cs +++ b/src/Umbraco.Core/Media/Exif/JFIFEnums.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.Media.Exif +namespace Umbraco.Cms.Core.Media.Exif { /// /// Represents the units for the X and Y densities diff --git a/src/Umbraco.Core/Media/Exif/JFIFExtendedProperty.cs b/src/Umbraco.Core/Media/Exif/JFIFExtendedProperty.cs index 24b3ac74be..d3a0e7fb46 100644 --- a/src/Umbraco.Core/Media/Exif/JFIFExtendedProperty.cs +++ b/src/Umbraco.Core/Media/Exif/JFIFExtendedProperty.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Web.Media.Exif +namespace Umbraco.Cms.Core.Media.Exif { /// /// Represents the JFIF version as a 16 bit unsigned integer. (EXIF Specification: SHORT) diff --git a/src/Umbraco.Core/Media/Exif/JFIFThumbnail.cs b/src/Umbraco.Core/Media/Exif/JFIFThumbnail.cs index e7fc5fd51a..de9fe8f76f 100644 --- a/src/Umbraco.Core/Media/Exif/JFIFThumbnail.cs +++ b/src/Umbraco.Core/Media/Exif/JFIFThumbnail.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.Media.Exif +namespace Umbraco.Cms.Core.Media.Exif { /// /// Represents a JFIF thumbnail. diff --git a/src/Umbraco.Core/Media/Exif/JPEGExceptions.cs b/src/Umbraco.Core/Media/Exif/JPEGExceptions.cs index 40fd9f3be8..dde0326f99 100644 --- a/src/Umbraco.Core/Media/Exif/JPEGExceptions.cs +++ b/src/Umbraco.Core/Media/Exif/JPEGExceptions.cs @@ -1,7 +1,7 @@ using System; using System.Runtime.Serialization; -namespace Umbraco.Web.Media.Exif +namespace Umbraco.Cms.Core.Media.Exif { diff --git a/src/Umbraco.Core/Media/Exif/JPEGFile.cs b/src/Umbraco.Core/Media/Exif/JPEGFile.cs index 83e6a81eec..373dfbc377 100644 --- a/src/Umbraco.Core/Media/Exif/JPEGFile.cs +++ b/src/Umbraco.Core/Media/Exif/JPEGFile.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.IO; using System.Text; -namespace Umbraco.Web.Media.Exif +namespace Umbraco.Cms.Core.Media.Exif { /// /// Represents the binary view of a JPEG compressed file. diff --git a/src/Umbraco.Core/Media/Exif/JPEGMarker.cs b/src/Umbraco.Core/Media/Exif/JPEGMarker.cs index 3fb04dff28..a7a3b4a9b1 100644 --- a/src/Umbraco.Core/Media/Exif/JPEGMarker.cs +++ b/src/Umbraco.Core/Media/Exif/JPEGMarker.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.Media.Exif +namespace Umbraco.Cms.Core.Media.Exif { /// /// Represents a JPEG marker byte. diff --git a/src/Umbraco.Core/Media/Exif/JPEGSection.cs b/src/Umbraco.Core/Media/Exif/JPEGSection.cs index 78565d2bfa..07dd488384 100644 --- a/src/Umbraco.Core/Media/Exif/JPEGSection.cs +++ b/src/Umbraco.Core/Media/Exif/JPEGSection.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.Media.Exif +namespace Umbraco.Cms.Core.Media.Exif { /// /// Represents the memory view of a JPEG section. diff --git a/src/Umbraco.Core/Media/Exif/MathEx.cs b/src/Umbraco.Core/Media/Exif/MathEx.cs index 94cbccfbda..8cac15f5b4 100644 --- a/src/Umbraco.Core/Media/Exif/MathEx.cs +++ b/src/Umbraco.Core/Media/Exif/MathEx.cs @@ -1,7 +1,7 @@ using System; using System.Text; -namespace Umbraco.Web.Media.Exif +namespace Umbraco.Cms.Core.Media.Exif { /// /// Contains extended Math functions. diff --git a/src/Umbraco.Core/Media/Exif/SvgFile.cs b/src/Umbraco.Core/Media/Exif/SvgFile.cs index 1213bb513f..00516eecb8 100644 --- a/src/Umbraco.Core/Media/Exif/SvgFile.cs +++ b/src/Umbraco.Core/Media/Exif/SvgFile.cs @@ -2,7 +2,7 @@ using System.Linq; using System.Xml.Linq; -namespace Umbraco.Web.Media.Exif +namespace Umbraco.Cms.Core.Media.Exif { internal class SvgFile : ImageFile { @@ -16,9 +16,9 @@ namespace Umbraco.Web.Media.Exif var height = document.Root?.Attributes().Where(x => x.Name == "height").Select(x => x.Value).FirstOrDefault(); Properties.Add(new ExifSInt(ExifTag.PixelYDimension, - height == null ? Core.Constants.Conventions.Media.DefaultSize : int.Parse(height))); + height == null ? Constants.Conventions.Media.DefaultSize : int.Parse(height))); Properties.Add(new ExifSInt(ExifTag.PixelXDimension, - width == null ? Core.Constants.Conventions.Media.DefaultSize : int.Parse(width))); + width == null ? Constants.Conventions.Media.DefaultSize : int.Parse(width))); Format = ImageFileFormat.SVG; } diff --git a/src/Umbraco.Core/Media/Exif/TIFFFile.cs b/src/Umbraco.Core/Media/Exif/TIFFFile.cs index 19575eaff2..8841e8337b 100644 --- a/src/Umbraco.Core/Media/Exif/TIFFFile.cs +++ b/src/Umbraco.Core/Media/Exif/TIFFFile.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.IO; -namespace Umbraco.Web.Media.Exif +namespace Umbraco.Cms.Core.Media.Exif { /// /// Represents the binary view of a TIFF file. diff --git a/src/Umbraco.Core/Media/Exif/TIFFHeader.cs b/src/Umbraco.Core/Media/Exif/TIFFHeader.cs index 339525ef2c..ac7c503d0c 100644 --- a/src/Umbraco.Core/Media/Exif/TIFFHeader.cs +++ b/src/Umbraco.Core/Media/Exif/TIFFHeader.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.Media.Exif +namespace Umbraco.Cms.Core.Media.Exif { /// /// Represents a TIFF Header. diff --git a/src/Umbraco.Core/Media/Exif/TIFFStrip.cs b/src/Umbraco.Core/Media/Exif/TIFFStrip.cs index 8207eb64e8..9930961e20 100644 --- a/src/Umbraco.Core/Media/Exif/TIFFStrip.cs +++ b/src/Umbraco.Core/Media/Exif/TIFFStrip.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Web.Media.Exif +namespace Umbraco.Cms.Core.Media.Exif { /// /// Represents a strip of compressed image data in a TIFF file. diff --git a/src/Umbraco.Core/Media/Exif/Utility.cs b/src/Umbraco.Core/Media/Exif/Utility.cs index d2daa3b632..033b97ecc7 100644 --- a/src/Umbraco.Core/Media/Exif/Utility.cs +++ b/src/Umbraco.Core/Media/Exif/Utility.cs @@ -1,6 +1,6 @@ using System.IO; -namespace Umbraco.Web.Media.Exif +namespace Umbraco.Cms.Core.Media.Exif { /// /// Contains utility functions. diff --git a/src/Umbraco.Core/Media/ExifImageDimensionExtractor.cs b/src/Umbraco.Core/Media/ExifImageDimensionExtractor.cs index 441d2d6170..8987b60fee 100644 --- a/src/Umbraco.Core/Media/ExifImageDimensionExtractor.cs +++ b/src/Umbraco.Core/Media/ExifImageDimensionExtractor.cs @@ -1,8 +1,8 @@ using System; using System.IO; -using Umbraco.Web.Media.Exif; +using Umbraco.Cms.Core.Media.Exif; -namespace Umbraco.Core.Media +namespace Umbraco.Cms.Core.Media { public static class ExifImageDimensionExtractor { @@ -19,7 +19,7 @@ namespace Umbraco.Core.Media height = Convert.ToInt32(jpgInfo.Properties[ExifTag.PixelYDimension].Value); width = Convert.ToInt32(jpgInfo.Properties[ExifTag.PixelXDimension].Value); } - + return height > 0 && width > 0; } } diff --git a/src/Umbraco.Core/Media/IEmbedProvider.cs b/src/Umbraco.Core/Media/IEmbedProvider.cs index 39da6fae0d..55b5e4a53a 100644 --- a/src/Umbraco.Core/Media/IEmbedProvider.cs +++ b/src/Umbraco.Core/Media/IEmbedProvider.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace Umbraco.Core.Media +namespace Umbraco.Cms.Core.Media { public interface IEmbedProvider { diff --git a/src/Umbraco.Core/Media/IImageDimensionExtractor.cs b/src/Umbraco.Core/Media/IImageDimensionExtractor.cs index 3da7f37393..c31260a9ce 100644 --- a/src/Umbraco.Core/Media/IImageDimensionExtractor.cs +++ b/src/Umbraco.Core/Media/IImageDimensionExtractor.cs @@ -1,6 +1,6 @@ using System.IO; -namespace Umbraco.Web.Media +namespace Umbraco.Cms.Core.Media { public interface IImageDimensionExtractor { diff --git a/src/Umbraco.Core/Media/IImageUrlGenerator.cs b/src/Umbraco.Core/Media/IImageUrlGenerator.cs index 7c77a34388..c8628f3147 100644 --- a/src/Umbraco.Core/Media/IImageUrlGenerator.cs +++ b/src/Umbraco.Core/Media/IImageUrlGenerator.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Media +namespace Umbraco.Cms.Core.Media { public interface IImageUrlGenerator { diff --git a/src/Umbraco.Core/Media/ImageSize.cs b/src/Umbraco.Core/Media/ImageSize.cs index 6d073ac196..9acef58836 100644 --- a/src/Umbraco.Core/Media/ImageSize.cs +++ b/src/Umbraco.Core/Media/ImageSize.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.Media +namespace Umbraco.Cms.Core.Media { public struct ImageSize { diff --git a/src/Umbraco.Core/Media/ImageUrlGeneratorExtensions.cs b/src/Umbraco.Core/Media/ImageUrlGeneratorExtensions.cs index 902f84331b..5b7be5ef0e 100644 --- a/src/Umbraco.Core/Media/ImageUrlGeneratorExtensions.cs +++ b/src/Umbraco.Core/Media/ImageUrlGeneratorExtensions.cs @@ -1,6 +1,7 @@ using System; +using Umbraco.Cms.Core.Media; -namespace Umbraco.Core.Media +namespace Umbraco.Extensions { public static class ImageUrlGeneratorExtensions { diff --git a/src/Umbraco.Core/Media/OEmbedResult.cs b/src/Umbraco.Core/Media/OEmbedResult.cs index bed07d9b5e..fd2c5ff421 100644 --- a/src/Umbraco.Core/Media/OEmbedResult.cs +++ b/src/Umbraco.Core/Media/OEmbedResult.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Media +namespace Umbraco.Cms.Core.Media { public class OEmbedResult { diff --git a/src/Umbraco.Core/Media/OEmbedStatus.cs b/src/Umbraco.Core/Media/OEmbedStatus.cs index 0f1f22b0e2..268fc1cd0d 100644 --- a/src/Umbraco.Core/Media/OEmbedStatus.cs +++ b/src/Umbraco.Core/Media/OEmbedStatus.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Media +namespace Umbraco.Cms.Core.Media { public enum OEmbedStatus { diff --git a/src/Umbraco.Core/Media/TypeDetector/JpegDetector.cs b/src/Umbraco.Core/Media/TypeDetector/JpegDetector.cs index d06671f667..0481323a4a 100644 --- a/src/Umbraco.Core/Media/TypeDetector/JpegDetector.cs +++ b/src/Umbraco.Core/Media/TypeDetector/JpegDetector.cs @@ -1,6 +1,6 @@ using System.IO; -namespace Umbraco.Web.Media.TypeDetector +namespace Umbraco.Cms.Core.Media.TypeDetector { public class JpegDetector : RasterizedTypeDetector { diff --git a/src/Umbraco.Core/Media/TypeDetector/RasterizedTypeDetector.cs b/src/Umbraco.Core/Media/TypeDetector/RasterizedTypeDetector.cs index a4ded5f8c4..4089842a00 100644 --- a/src/Umbraco.Core/Media/TypeDetector/RasterizedTypeDetector.cs +++ b/src/Umbraco.Core/Media/TypeDetector/RasterizedTypeDetector.cs @@ -1,6 +1,6 @@ using System.IO; -namespace Umbraco.Web.Media.TypeDetector +namespace Umbraco.Cms.Core.Media.TypeDetector { public abstract class RasterizedTypeDetector { diff --git a/src/Umbraco.Core/Media/TypeDetector/SvgDetector.cs b/src/Umbraco.Core/Media/TypeDetector/SvgDetector.cs index fbd1b2c74c..81f13b199d 100644 --- a/src/Umbraco.Core/Media/TypeDetector/SvgDetector.cs +++ b/src/Umbraco.Core/Media/TypeDetector/SvgDetector.cs @@ -1,7 +1,7 @@ using System.IO; using System.Xml.Linq; -namespace Umbraco.Web.Media.TypeDetector +namespace Umbraco.Cms.Core.Media.TypeDetector { public class SvgDetector { diff --git a/src/Umbraco.Core/Media/TypeDetector/TIFFDetector.cs b/src/Umbraco.Core/Media/TypeDetector/TIFFDetector.cs index 7adb1cd9de..61a1a46c9c 100644 --- a/src/Umbraco.Core/Media/TypeDetector/TIFFDetector.cs +++ b/src/Umbraco.Core/Media/TypeDetector/TIFFDetector.cs @@ -1,7 +1,7 @@ using System.IO; using System.Text; -namespace Umbraco.Web.Media.TypeDetector +namespace Umbraco.Cms.Core.Media.TypeDetector { public class TIFFDetector { diff --git a/src/Umbraco.Core/Media/UploadAutoFillProperties.cs b/src/Umbraco.Core/Media/UploadAutoFillProperties.cs index 44d5f5c8c3..105b0ce074 100644 --- a/src/Umbraco.Core/Media/UploadAutoFillProperties.cs +++ b/src/Umbraco.Core/Media/UploadAutoFillProperties.cs @@ -1,13 +1,12 @@ using System; using System.IO; using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.IO; -using Umbraco.Core.Media; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models; +using Umbraco.Extensions; -namespace Umbraco.Web.Media +namespace Umbraco.Cms.Core.Media { /// /// Provides methods to manage auto-fill properties for upload fields. diff --git a/src/Umbraco.Core/Migrations/IMigration.cs b/src/Umbraco.Core/Migrations/IMigration.cs index c929234f77..059ab4f2f5 100644 --- a/src/Umbraco.Core/Migrations/IMigration.cs +++ b/src/Umbraco.Core/Migrations/IMigration.cs @@ -1,6 +1,6 @@ -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Core.Migrations +namespace Umbraco.Cms.Core.Migrations { /// /// Represents a migration. diff --git a/src/Umbraco.Core/Migrations/IncompleteMigrationExpressionException.cs b/src/Umbraco.Core/Migrations/IncompleteMigrationExpressionException.cs index 3c81e2f0e2..bebed7ab50 100644 --- a/src/Umbraco.Core/Migrations/IncompleteMigrationExpressionException.cs +++ b/src/Umbraco.Core/Migrations/IncompleteMigrationExpressionException.cs @@ -1,7 +1,7 @@ using System; using System.Runtime.Serialization; -namespace Umbraco.Core.Migrations +namespace Umbraco.Cms.Core.Migrations { /// /// The exception that is thrown when a migration expression is not executed. diff --git a/src/Umbraco.Core/Migrations/NoopMigration.cs b/src/Umbraco.Core/Migrations/NoopMigration.cs index 7a2a7d5875..9156c8cd09 100644 --- a/src/Umbraco.Core/Migrations/NoopMigration.cs +++ b/src/Umbraco.Core/Migrations/NoopMigration.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Migrations +namespace Umbraco.Cms.Core.Migrations { public class NoopMigration : IMigration { diff --git a/src/Umbraco.Core/Models/AnchorsModel.cs b/src/Umbraco.Core/Models/AnchorsModel.cs index 9edcf3466b..6033f092f8 100644 --- a/src/Umbraco.Core/Models/AnchorsModel.cs +++ b/src/Umbraco.Core/Models/AnchorsModel.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.Models +namespace Umbraco.Cms.Core.Models { public class AnchorsModel { diff --git a/src/Umbraco.Core/Models/AuditEntry.cs b/src/Umbraco.Core/Models/AuditEntry.cs index 5399e399c0..b89979e08f 100644 --- a/src/Umbraco.Core/Models/AuditEntry.cs +++ b/src/Umbraco.Core/Models/AuditEntry.cs @@ -1,8 +1,8 @@ using System; using System.Runtime.Serialization; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents an audited event. diff --git a/src/Umbraco.Core/Models/AuditItem.cs b/src/Umbraco.Core/Models/AuditItem.cs index 5fbde7f362..13b6ff1264 100644 --- a/src/Umbraco.Core/Models/AuditItem.cs +++ b/src/Umbraco.Core/Models/AuditItem.cs @@ -1,6 +1,6 @@ -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { public sealed class AuditItem : EntityBase, IAuditItem { diff --git a/src/Umbraco.Core/Models/AuditType.cs b/src/Umbraco.Core/Models/AuditType.cs index 8a57948805..cea6c7ccf2 100644 --- a/src/Umbraco.Core/Models/AuditType.cs +++ b/src/Umbraco.Core/Models/AuditType.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Defines audit types. @@ -47,7 +47,7 @@ /// /// Variant(s) being sent to publishing. - /// + /// SendToPublishVariant, /// @@ -109,7 +109,7 @@ /// Package being uninstalled. /// PackagerUninstall, - + /// /// Custom audit message. /// diff --git a/src/Umbraco.Core/Models/BackOfficeTour.cs b/src/Umbraco.Core/Models/BackOfficeTour.cs index 7ebc2392f6..4889fb5dde 100644 --- a/src/Umbraco.Core/Models/BackOfficeTour.cs +++ b/src/Umbraco.Core/Models/BackOfficeTour.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.Runtime.Serialization; -namespace Umbraco.Web.Models +namespace Umbraco.Cms.Core.Models { /// /// A model representing a tour. diff --git a/src/Umbraco.Core/Models/BackOfficeTourFile.cs b/src/Umbraco.Core/Models/BackOfficeTourFile.cs index 6840171f48..3229a736d8 100644 --- a/src/Umbraco.Core/Models/BackOfficeTourFile.cs +++ b/src/Umbraco.Core/Models/BackOfficeTourFile.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.Runtime.Serialization; -namespace Umbraco.Web.Models +namespace Umbraco.Cms.Core.Models { /// /// A model representing the file used to load a tour. diff --git a/src/Umbraco.Core/Models/BackOfficeTourStep.cs b/src/Umbraco.Core/Models/BackOfficeTourStep.cs index 9c216b95fe..4c56be29fc 100644 --- a/src/Umbraco.Core/Models/BackOfficeTourStep.cs +++ b/src/Umbraco.Core/Models/BackOfficeTourStep.cs @@ -1,6 +1,6 @@ using System.Runtime.Serialization; -namespace Umbraco.Web.Models +namespace Umbraco.Cms.Core.Models { /// /// A model representing a step in a tour. diff --git a/src/Umbraco.Core/Models/Blocks/BlockListItem.cs b/src/Umbraco.Core/Models/Blocks/BlockListItem.cs index 620c3d9fe0..400649ff05 100644 --- a/src/Umbraco.Core/Models/Blocks/BlockListItem.cs +++ b/src/Umbraco.Core/Models/Blocks/BlockListItem.cs @@ -1,8 +1,8 @@ using System; using System.Runtime.Serialization; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.PublishedContent; -namespace Umbraco.Core.Models.Blocks +namespace Umbraco.Cms.Core.Models.Blocks { /// /// Represents a layout item for the Block List editor. diff --git a/src/Umbraco.Core/Models/Blocks/BlockListModel.cs b/src/Umbraco.Core/Models/Blocks/BlockListModel.cs index 92a426c3d4..f2e556e004 100644 --- a/src/Umbraco.Core/Models/Blocks/BlockListModel.cs +++ b/src/Umbraco.Core/Models/Blocks/BlockListModel.cs @@ -4,7 +4,7 @@ using System.Collections.ObjectModel; using System.Linq; using System.Runtime.Serialization; -namespace Umbraco.Core.Models.Blocks +namespace Umbraco.Cms.Core.Models.Blocks { /// /// The strongly typed model for the Block List editor. diff --git a/src/Umbraco.Core/Models/Blocks/ContentAndSettingsReference.cs b/src/Umbraco.Core/Models/Blocks/ContentAndSettingsReference.cs index f7222fe140..48d93ec985 100644 --- a/src/Umbraco.Core/Models/Blocks/ContentAndSettingsReference.cs +++ b/src/Umbraco.Core/Models/Blocks/ContentAndSettingsReference.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; -namespace Umbraco.Core.Models.Blocks +namespace Umbraco.Cms.Core.Models.Blocks { public struct ContentAndSettingsReference : IEquatable { diff --git a/src/Umbraco.Core/Models/Blocks/IBlockReference.cs b/src/Umbraco.Core/Models/Blocks/IBlockReference.cs index 7f5c835b3c..48c2b85637 100644 --- a/src/Umbraco.Core/Models/Blocks/IBlockReference.cs +++ b/src/Umbraco.Core/Models/Blocks/IBlockReference.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models.Blocks +namespace Umbraco.Cms.Core.Models.Blocks { /// /// Represents a data item reference for a Block Editor implementation. diff --git a/src/Umbraco.Core/Models/ChangingPasswordModel.cs b/src/Umbraco.Core/Models/ChangingPasswordModel.cs index 3816044c0a..cb24e6d769 100644 --- a/src/Umbraco.Core/Models/ChangingPasswordModel.cs +++ b/src/Umbraco.Core/Models/ChangingPasswordModel.cs @@ -1,6 +1,6 @@ using System.Runtime.Serialization; -namespace Umbraco.Web.Models +namespace Umbraco.Cms.Core.Models { /// /// A model representing the data required to set a member/user password depending on the provider installed. diff --git a/src/Umbraco.Core/Models/Consent.cs b/src/Umbraco.Core/Models/Consent.cs index 10b7208abb..5bbb5e4607 100644 --- a/src/Umbraco.Core/Models/Consent.cs +++ b/src/Umbraco.Core/Models/Consent.cs @@ -1,9 +1,9 @@ using System; using System.Collections.Generic; using System.Runtime.Serialization; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents a consent. diff --git a/src/Umbraco.Core/Models/ConsentExtensions.cs b/src/Umbraco.Core/Models/ConsentExtensions.cs index fabeaf5809..b95c7b66f9 100644 --- a/src/Umbraco.Core/Models/ConsentExtensions.cs +++ b/src/Umbraco.Core/Models/ConsentExtensions.cs @@ -1,4 +1,6 @@ -namespace Umbraco.Core.Models +using Umbraco.Cms.Core.Models; + +namespace Umbraco.Extensions { /// /// Provides extension methods for the interface. diff --git a/src/Umbraco.Core/Models/ConsentState.cs b/src/Umbraco.Core/Models/ConsentState.cs index ed370823f3..0828561ff8 100644 --- a/src/Umbraco.Core/Models/ConsentState.cs +++ b/src/Umbraco.Core/Models/ConsentState.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents the state of a consent. diff --git a/src/Umbraco.Core/Models/Content.cs b/src/Umbraco.Core/Models/Content.cs index 04f49e704e..1b4f939d16 100644 --- a/src/Umbraco.Core/Models/Content.cs +++ b/src/Umbraco.Core/Models/Content.cs @@ -3,9 +3,9 @@ using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Runtime.Serialization; -using Umbraco.Core.Exceptions; +using Umbraco.Extensions; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents a Content object @@ -101,12 +101,12 @@ namespace Umbraco.Core.Models { _schedule.ClearCollectionChangedEvents(); } - + SetPropertyValueAndDetectChanges(value, ref _schedule, nameof(ContentSchedule)); if (_schedule != null) { _schedule.CollectionChanged += ScheduleCollectionChanged; - } + } } } @@ -237,7 +237,7 @@ namespace Umbraco.Core.Models if (_publishInfos != null) { _publishInfos.CollectionChanged += PublishNamesCollectionChanged; - } + } } } diff --git a/src/Umbraco.Core/Models/ContentBase.cs b/src/Umbraco.Core/Models/ContentBase.cs index 1e71da34c4..139cfca1ee 100644 --- a/src/Umbraco.Core/Models/ContentBase.cs +++ b/src/Umbraco.Core/Models/ContentBase.cs @@ -4,9 +4,10 @@ using System.Collections.Specialized; using System.Diagnostics; using System.Linq; using System.Runtime.Serialization; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Extensions; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents an abstract class for base Content properties and methods diff --git a/src/Umbraco.Core/Models/ContentBaseExtensions.cs b/src/Umbraco.Core/Models/ContentBaseExtensions.cs index 2b9a246573..45fe9e41d9 100644 --- a/src/Umbraco.Core/Models/ContentBaseExtensions.cs +++ b/src/Umbraco.Core/Models/ContentBaseExtensions.cs @@ -1,9 +1,10 @@ using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Strings; -namespace Umbraco.Core.Strings +namespace Umbraco.Extensions { /// /// Provides extension methods to IContentBase to get URL segments. diff --git a/src/Umbraco.Core/Models/ContentCultureInfos.cs b/src/Umbraco.Core/Models/ContentCultureInfos.cs index 2f9c08b985..ab7a0a8e37 100644 --- a/src/Umbraco.Core/Models/ContentCultureInfos.cs +++ b/src/Umbraco.Core/Models/ContentCultureInfos.cs @@ -1,8 +1,8 @@ using System; using System.Collections.Generic; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// The name of a content variant for a given culture diff --git a/src/Umbraco.Core/Models/ContentCultureInfosCollection.cs b/src/Umbraco.Core/Models/ContentCultureInfosCollection.cs index 07ee661497..03dde33a1a 100644 --- a/src/Umbraco.Core/Models/ContentCultureInfosCollection.cs +++ b/src/Umbraco.Core/Models/ContentCultureInfosCollection.cs @@ -1,8 +1,8 @@ using System; using System.Collections.Specialized; -using Umbraco.Core.Collections; +using Umbraco.Cms.Core.Collections; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// The culture names of a content's variants diff --git a/src/Umbraco.Core/Models/ContentDataIntegrityReport.cs b/src/Umbraco.Core/Models/ContentDataIntegrityReport.cs index 9f0f147083..8a13a26e40 100644 --- a/src/Umbraco.Core/Models/ContentDataIntegrityReport.cs +++ b/src/Umbraco.Core/Models/ContentDataIntegrityReport.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.Linq; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { public class ContentDataIntegrityReport { diff --git a/src/Umbraco.Core/Models/ContentDataIntegrityReportEntry.cs b/src/Umbraco.Core/Models/ContentDataIntegrityReportEntry.cs index 517b9e80dc..e6138addbc 100644 --- a/src/Umbraco.Core/Models/ContentDataIntegrityReportEntry.cs +++ b/src/Umbraco.Core/Models/ContentDataIntegrityReportEntry.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { public class ContentDataIntegrityReportEntry { diff --git a/src/Umbraco.Core/Models/ContentDataIntegrityReportOptions.cs b/src/Umbraco.Core/Models/ContentDataIntegrityReportOptions.cs index c4689467c1..52ea3d4032 100644 --- a/src/Umbraco.Core/Models/ContentDataIntegrityReportOptions.cs +++ b/src/Umbraco.Core/Models/ContentDataIntegrityReportOptions.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { public class ContentDataIntegrityReportOptions { @@ -8,6 +8,6 @@ public bool FixIssues { get; set; } // TODO: We could define all sorts of options for the data integrity check like what to check for, what to fix, etc... - // things like Tag data consistency, etc... + // things like Tag data consistency, etc... } } diff --git a/src/Umbraco.Core/Models/ContentEditing/AssignedContentPermissions.cs b/src/Umbraco.Core/Models/ContentEditing/AssignedContentPermissions.cs index 655a984da0..8b727d65d4 100644 --- a/src/Umbraco.Core/Models/ContentEditing/AssignedContentPermissions.cs +++ b/src/Umbraco.Core/Models/ContentEditing/AssignedContentPermissions.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// The permissions assigned to a content node diff --git a/src/Umbraco.Core/Models/ContentEditing/AssignedUserGroupPermissions.cs b/src/Umbraco.Core/Models/ContentEditing/AssignedUserGroupPermissions.cs index 13366a9596..afd19af028 100644 --- a/src/Umbraco.Core/Models/ContentEditing/AssignedUserGroupPermissions.cs +++ b/src/Umbraco.Core/Models/ContentEditing/AssignedUserGroupPermissions.cs @@ -2,7 +2,7 @@ using System.Linq; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// The user group permissions assigned to a content node diff --git a/src/Umbraco.Core/Models/ContentEditing/AuditLog.cs b/src/Umbraco.Core/Models/ContentEditing/AuditLog.cs index 9074accdfe..3ade6e864d 100644 --- a/src/Umbraco.Core/Models/ContentEditing/AuditLog.cs +++ b/src/Umbraco.Core/Models/ContentEditing/AuditLog.cs @@ -1,7 +1,7 @@ using System; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { [DataContract(Name = "auditLog", Namespace = "")] public class AuditLog @@ -13,7 +13,7 @@ namespace Umbraco.Web.Models.ContentEditing public string UserName { get; set; } [DataMember(Name = "userAvatars")] - public string[] UserAvatars { get; set; } + public string[] UserAvatars { get; set; } [DataMember(Name = "nodeId")] public int NodeId { get; set; } diff --git a/src/Umbraco.Core/Models/ContentEditing/BackOfficeNotification.cs b/src/Umbraco.Core/Models/ContentEditing/BackOfficeNotification.cs index ffdd26d960..22d97b8a22 100644 --- a/src/Umbraco.Core/Models/ContentEditing/BackOfficeNotification.cs +++ b/src/Umbraco.Core/Models/ContentEditing/BackOfficeNotification.cs @@ -1,6 +1,6 @@ using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { [DataContract(Name = "notification", Namespace = "")] public class BackOfficeNotification diff --git a/src/Umbraco.Core/Models/ContentEditing/CodeFileDisplay.cs b/src/Umbraco.Core/Models/ContentEditing/CodeFileDisplay.cs index 2dc50f1936..49dfa9dd22 100644 --- a/src/Umbraco.Core/Models/ContentEditing/CodeFileDisplay.cs +++ b/src/Umbraco.Core/Models/ContentEditing/CodeFileDisplay.cs @@ -2,9 +2,9 @@ using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.Runtime.Serialization; -using Umbraco.Core; +using Umbraco.Extensions; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { [DataContract(Name = "scriptFile", Namespace = "")] public class CodeFileDisplay : INotificationModel, IValidatableObject diff --git a/src/Umbraco.Core/Models/ContentEditing/ContentApp.cs b/src/Umbraco.Core/Models/ContentEditing/ContentApp.cs index 64e4b41186..e40e126c96 100644 --- a/src/Umbraco.Core/Models/ContentEditing/ContentApp.cs +++ b/src/Umbraco.Core/Models/ContentEditing/ContentApp.cs @@ -1,6 +1,6 @@ using System.Runtime.Serialization; -namespace Umbraco.Core.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// Represents a content app. diff --git a/src/Umbraco.Core/Models/ContentEditing/ContentAppBadge.cs b/src/Umbraco.Core/Models/ContentEditing/ContentAppBadge.cs index 19dbd2b8e7..4e1089c97b 100644 --- a/src/Umbraco.Core/Models/ContentEditing/ContentAppBadge.cs +++ b/src/Umbraco.Core/Models/ContentEditing/ContentAppBadge.cs @@ -1,6 +1,6 @@ using System.Runtime.Serialization; -namespace Umbraco.Core.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// Represents a content app badge diff --git a/src/Umbraco.Core/Models/ContentEditing/ContentAppBadgeType.cs b/src/Umbraco.Core/Models/ContentEditing/ContentAppBadgeType.cs index a46fa7d3a9..9bcadd1383 100644 --- a/src/Umbraco.Core/Models/ContentEditing/ContentAppBadgeType.cs +++ b/src/Umbraco.Core/Models/ContentEditing/ContentAppBadgeType.cs @@ -1,6 +1,6 @@ using System.Runtime.Serialization; -namespace Umbraco.Core.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { // TODO: This was marked with `[StringEnumConverter]` to inform the serializer // to serialize the values to string instead of INT (which is the default) diff --git a/src/Umbraco.Core/Models/ContentEditing/ContentBaseSave.cs b/src/Umbraco.Core/Models/ContentEditing/ContentBaseSave.cs index a949aa2bd3..b1bebf1731 100644 --- a/src/Umbraco.Core/Models/ContentEditing/ContentBaseSave.cs +++ b/src/Umbraco.Core/Models/ContentEditing/ContentBaseSave.cs @@ -1,10 +1,9 @@ using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Runtime.Serialization; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Editors; +using Umbraco.Cms.Core.Models.Editors; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// A model representing a content item to be saved diff --git a/src/Umbraco.Core/Models/ContentEditing/ContentDomainsAndCulture.cs b/src/Umbraco.Core/Models/ContentEditing/ContentDomainsAndCulture.cs index dfd2cd2344..2b08a340f0 100644 --- a/src/Umbraco.Core/Models/ContentEditing/ContentDomainsAndCulture.cs +++ b/src/Umbraco.Core/Models/ContentEditing/ContentDomainsAndCulture.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { [DataContract(Name = "ContentDomainsAndCulture")] public class ContentDomainsAndCulture diff --git a/src/Umbraco.Core/Models/ContentEditing/ContentItemBasic.cs b/src/Umbraco.Core/Models/ContentEditing/ContentItemBasic.cs index 5f5bc3cebd..12dab25a9e 100644 --- a/src/Umbraco.Core/Models/ContentEditing/ContentItemBasic.cs +++ b/src/Umbraco.Core/Models/ContentEditing/ContentItemBasic.cs @@ -4,7 +4,7 @@ using System.ComponentModel.DataAnnotations; using System.Linq; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// A model representing a basic content item diff --git a/src/Umbraco.Core/Models/ContentEditing/ContentItemDisplay.cs b/src/Umbraco.Core/Models/ContentEditing/ContentItemDisplay.cs index 5840a4df19..7a3f441e0a 100644 --- a/src/Umbraco.Core/Models/ContentEditing/ContentItemDisplay.cs +++ b/src/Umbraco.Core/Models/ContentEditing/ContentItemDisplay.cs @@ -3,12 +3,9 @@ using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.Runtime.Serialization; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Models.ContentEditing; -using Umbraco.Web.Routing; +using Umbraco.Cms.Core.Routing; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// A model representing a content item to be displayed in the back office diff --git a/src/Umbraco.Core/Models/ContentEditing/ContentItemDisplayBase.cs b/src/Umbraco.Core/Models/ContentEditing/ContentItemDisplayBase.cs index 98f898aeea..d992e3da9a 100644 --- a/src/Umbraco.Core/Models/ContentEditing/ContentItemDisplayBase.cs +++ b/src/Umbraco.Core/Models/ContentEditing/ContentItemDisplayBase.cs @@ -2,7 +2,7 @@ using System.ComponentModel; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { public abstract class ContentItemDisplayBase : TabbedContentItem, INotificationModel, IErrorModel where T : ContentPropertyBasic diff --git a/src/Umbraco.Core/Models/ContentEditing/ContentItemSave.cs b/src/Umbraco.Core/Models/ContentEditing/ContentItemSave.cs index 0dc1fa5c27..9207a70a0a 100644 --- a/src/Umbraco.Core/Models/ContentEditing/ContentItemSave.cs +++ b/src/Umbraco.Core/Models/ContentEditing/ContentItemSave.cs @@ -1,10 +1,9 @@ using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Runtime.Serialization; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Editors; +using Umbraco.Cms.Core.Models.Editors; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// A model representing a content item to be saved diff --git a/src/Umbraco.Core/Models/ContentEditing/ContentPropertyBasic.cs b/src/Umbraco.Core/Models/ContentEditing/ContentPropertyBasic.cs index 73845f8461..85581dc2e1 100644 --- a/src/Umbraco.Core/Models/ContentEditing/ContentPropertyBasic.cs +++ b/src/Umbraco.Core/Models/ContentEditing/ContentPropertyBasic.cs @@ -2,9 +2,9 @@ using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.Runtime.Serialization; -using Umbraco.Core.PropertyEditors; +using Umbraco.Cms.Core.PropertyEditors; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// Represents a content property to be saved diff --git a/src/Umbraco.Core/Models/ContentEditing/ContentPropertyCollectionDto.cs b/src/Umbraco.Core/Models/ContentEditing/ContentPropertyCollectionDto.cs index d4c94410fe..3c772c0866 100644 --- a/src/Umbraco.Core/Models/ContentEditing/ContentPropertyCollectionDto.cs +++ b/src/Umbraco.Core/Models/ContentEditing/ContentPropertyCollectionDto.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.Linq; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// Used to map property values when saving content/media/members diff --git a/src/Umbraco.Core/Models/ContentEditing/ContentPropertyDisplay.cs b/src/Umbraco.Core/Models/ContentEditing/ContentPropertyDisplay.cs index 9a07d29a02..fe953850b0 100644 --- a/src/Umbraco.Core/Models/ContentEditing/ContentPropertyDisplay.cs +++ b/src/Umbraco.Core/Models/ContentEditing/ContentPropertyDisplay.cs @@ -2,7 +2,7 @@ using System.ComponentModel.DataAnnotations; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// Represents a content property that is displayed in the UI diff --git a/src/Umbraco.Core/Models/ContentEditing/ContentPropertyDto.cs b/src/Umbraco.Core/Models/ContentEditing/ContentPropertyDto.cs index 2bf1603bb2..fd24964f27 100644 --- a/src/Umbraco.Core/Models/ContentEditing/ContentPropertyDto.cs +++ b/src/Umbraco.Core/Models/ContentEditing/ContentPropertyDto.cs @@ -1,6 +1,4 @@ -using Umbraco.Core.Models; - -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// Represents a content property from the database diff --git a/src/Umbraco.Core/Models/ContentEditing/ContentRedirectUrl.cs b/src/Umbraco.Core/Models/ContentEditing/ContentRedirectUrl.cs index 41fcb98c31..e509ff5db1 100644 --- a/src/Umbraco.Core/Models/ContentEditing/ContentRedirectUrl.cs +++ b/src/Umbraco.Core/Models/ContentEditing/ContentRedirectUrl.cs @@ -1,7 +1,7 @@ using System; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { [DataContract(Name = "contentRedirectUrl", Namespace = "")] public class ContentRedirectUrl diff --git a/src/Umbraco.Core/Models/ContentEditing/ContentSaveAction.cs b/src/Umbraco.Core/Models/ContentEditing/ContentSaveAction.cs index ad5bfe0192..3beb970564 100644 --- a/src/Umbraco.Core/Models/ContentEditing/ContentSaveAction.cs +++ b/src/Umbraco.Core/Models/ContentEditing/ContentSaveAction.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// The action associated with saving a content item diff --git a/src/Umbraco.Core/Models/ContentEditing/ContentSavedState.cs b/src/Umbraco.Core/Models/ContentEditing/ContentSavedState.cs index 2ceb682a13..00fce177b4 100644 --- a/src/Umbraco.Core/Models/ContentEditing/ContentSavedState.cs +++ b/src/Umbraco.Core/Models/ContentEditing/ContentSavedState.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// The saved state of a content item diff --git a/src/Umbraco.Core/Models/ContentEditing/ContentSortOrder.cs b/src/Umbraco.Core/Models/ContentEditing/ContentSortOrder.cs index 86b30652bb..bde99ef661 100644 --- a/src/Umbraco.Core/Models/ContentEditing/ContentSortOrder.cs +++ b/src/Umbraco.Core/Models/ContentEditing/ContentSortOrder.cs @@ -1,11 +1,7 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.Runtime.Serialization; -using System.Text; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// A model representing a new sort order for a content/media item diff --git a/src/Umbraco.Core/Models/ContentEditing/ContentTypeBasic.cs b/src/Umbraco.Core/Models/ContentEditing/ContentTypeBasic.cs index f9d633ebea..dc3e455fb0 100644 --- a/src/Umbraco.Core/Models/ContentEditing/ContentTypeBasic.cs +++ b/src/Umbraco.Core/Models/ContentEditing/ContentTypeBasic.cs @@ -3,9 +3,9 @@ using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.Runtime.Serialization; -using Umbraco.Core; +using Umbraco.Extensions; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// A basic version of a content type diff --git a/src/Umbraco.Core/Models/ContentEditing/ContentTypeCompositionDisplay.cs b/src/Umbraco.Core/Models/ContentEditing/ContentTypeCompositionDisplay.cs index 77b5f53b24..0ff43178c9 100644 --- a/src/Umbraco.Core/Models/ContentEditing/ContentTypeCompositionDisplay.cs +++ b/src/Umbraco.Core/Models/ContentEditing/ContentTypeCompositionDisplay.cs @@ -2,7 +2,7 @@ using System.ComponentModel; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { public abstract class ContentTypeCompositionDisplay : ContentTypeBasic, INotificationModel { diff --git a/src/Umbraco.Core/Models/ContentEditing/ContentTypeSave.cs b/src/Umbraco.Core/Models/ContentEditing/ContentTypeSave.cs index 005e3c96a6..a45c4ac4f6 100644 --- a/src/Umbraco.Core/Models/ContentEditing/ContentTypeSave.cs +++ b/src/Umbraco.Core/Models/ContentEditing/ContentTypeSave.cs @@ -2,9 +2,9 @@ using System.ComponentModel.DataAnnotations; using System.Linq; using System.Runtime.Serialization; -using Umbraco.Core; +using Umbraco.Extensions; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// Abstract model used to save content types diff --git a/src/Umbraco.Core/Models/ContentEditing/ContentVariantSave.cs b/src/Umbraco.Core/Models/ContentEditing/ContentVariantSave.cs index 45c30bcd25..cc8e8b9493 100644 --- a/src/Umbraco.Core/Models/ContentEditing/ContentVariantSave.cs +++ b/src/Umbraco.Core/Models/ContentEditing/ContentVariantSave.cs @@ -2,10 +2,9 @@ using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Runtime.Serialization; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Validation; +using Umbraco.Cms.Core.Models.Validation; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { [DataContract(Name = "contentVariant", Namespace = "")] public class ContentVariantSave : IContentProperties diff --git a/src/Umbraco.Core/Models/ContentEditing/ContentVariationDisplay.cs b/src/Umbraco.Core/Models/ContentEditing/ContentVariationDisplay.cs index 64491e2270..b1d53c2059 100644 --- a/src/Umbraco.Core/Models/ContentEditing/ContentVariationDisplay.cs +++ b/src/Umbraco.Core/Models/ContentEditing/ContentVariationDisplay.cs @@ -4,7 +4,7 @@ using System.ComponentModel; using System.Linq; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// Represents the variant info for a content item diff --git a/src/Umbraco.Core/Models/ContentEditing/CreatedDocumentTypeCollectionResult.cs b/src/Umbraco.Core/Models/ContentEditing/CreatedDocumentTypeCollectionResult.cs index cbf23743ba..b1db2759f0 100644 --- a/src/Umbraco.Core/Models/ContentEditing/CreatedDocumentTypeCollectionResult.cs +++ b/src/Umbraco.Core/Models/ContentEditing/CreatedDocumentTypeCollectionResult.cs @@ -1,11 +1,6 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Runtime.Serialization; -using System.Text; -using System.Threading.Tasks; +using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// The result of creating a content type collection in the UI diff --git a/src/Umbraco.Core/Models/ContentEditing/DataTypeBasic.cs b/src/Umbraco.Core/Models/ContentEditing/DataTypeBasic.cs index f5d38f61e6..eb6047103a 100644 --- a/src/Umbraco.Core/Models/ContentEditing/DataTypeBasic.cs +++ b/src/Umbraco.Core/Models/ContentEditing/DataTypeBasic.cs @@ -1,7 +1,7 @@ using System.ComponentModel; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// The basic data type information diff --git a/src/Umbraco.Core/Models/ContentEditing/DataTypeConfigurationFieldDisplay.cs b/src/Umbraco.Core/Models/ContentEditing/DataTypeConfigurationFieldDisplay.cs index 26d650b02b..72afedb407 100644 --- a/src/Umbraco.Core/Models/ContentEditing/DataTypeConfigurationFieldDisplay.cs +++ b/src/Umbraco.Core/Models/ContentEditing/DataTypeConfigurationFieldDisplay.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// Represents a datatype configuration field model for editing. diff --git a/src/Umbraco.Core/Models/ContentEditing/DataTypeConfigurationFieldSave.cs b/src/Umbraco.Core/Models/ContentEditing/DataTypeConfigurationFieldSave.cs index d480f4c4b7..7f88a7c1f9 100644 --- a/src/Umbraco.Core/Models/ContentEditing/DataTypeConfigurationFieldSave.cs +++ b/src/Umbraco.Core/Models/ContentEditing/DataTypeConfigurationFieldSave.cs @@ -1,6 +1,6 @@ using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// Represents a datatype configuration field model for editing. diff --git a/src/Umbraco.Core/Models/ContentEditing/DataTypeDisplay.cs b/src/Umbraco.Core/Models/ContentEditing/DataTypeDisplay.cs index 65ece0f6aa..a30490582f 100644 --- a/src/Umbraco.Core/Models/ContentEditing/DataTypeDisplay.cs +++ b/src/Umbraco.Core/Models/ContentEditing/DataTypeDisplay.cs @@ -2,7 +2,7 @@ using System.ComponentModel.DataAnnotations; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// Represents a data type that is being edited diff --git a/src/Umbraco.Core/Models/ContentEditing/DataTypeReferences.cs b/src/Umbraco.Core/Models/ContentEditing/DataTypeReferences.cs index d9cd93e7c8..420b5b5679 100644 --- a/src/Umbraco.Core/Models/ContentEditing/DataTypeReferences.cs +++ b/src/Umbraco.Core/Models/ContentEditing/DataTypeReferences.cs @@ -2,7 +2,7 @@ using System.Linq; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { [DataContract(Name = "dataTypeReferences", Namespace = "")] public class DataTypeReferences diff --git a/src/Umbraco.Core/Models/ContentEditing/DataTypeSave.cs b/src/Umbraco.Core/Models/ContentEditing/DataTypeSave.cs index aa916c7566..b25fa7caa8 100644 --- a/src/Umbraco.Core/Models/ContentEditing/DataTypeSave.cs +++ b/src/Umbraco.Core/Models/ContentEditing/DataTypeSave.cs @@ -1,10 +1,9 @@ using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Runtime.Serialization; -using Umbraco.Core.Models; -using Umbraco.Core.PropertyEditors; +using Umbraco.Cms.Core.PropertyEditors; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// Represents a datatype model for editing. diff --git a/src/Umbraco.Core/Models/ContentEditing/DictionaryDisplay.cs b/src/Umbraco.Core/Models/ContentEditing/DictionaryDisplay.cs index 8b8f53c21a..41e49ba34d 100644 --- a/src/Umbraco.Core/Models/ContentEditing/DictionaryDisplay.cs +++ b/src/Umbraco.Core/Models/ContentEditing/DictionaryDisplay.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// The dictionary display model diff --git a/src/Umbraco.Core/Models/ContentEditing/DictionaryOverviewDisplay.cs b/src/Umbraco.Core/Models/ContentEditing/DictionaryOverviewDisplay.cs index 7941b0ac44..f67163d7a1 100644 --- a/src/Umbraco.Core/Models/ContentEditing/DictionaryOverviewDisplay.cs +++ b/src/Umbraco.Core/Models/ContentEditing/DictionaryOverviewDisplay.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// The dictionary overview display. @@ -28,7 +28,7 @@ namespace Umbraco.Web.Models.ContentEditing /// [DataMember(Name = "id")] public int Id { get; set; } - + /// /// Gets or sets the level. /// diff --git a/src/Umbraco.Core/Models/ContentEditing/DictionaryOverviewTranslationDisplay.cs b/src/Umbraco.Core/Models/ContentEditing/DictionaryOverviewTranslationDisplay.cs index 9f08617921..e5948ecf4a 100644 --- a/src/Umbraco.Core/Models/ContentEditing/DictionaryOverviewTranslationDisplay.cs +++ b/src/Umbraco.Core/Models/ContentEditing/DictionaryOverviewTranslationDisplay.cs @@ -1,6 +1,6 @@ using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// The dictionary translation overview display. diff --git a/src/Umbraco.Core/Models/ContentEditing/DictionarySave.cs b/src/Umbraco.Core/Models/ContentEditing/DictionarySave.cs index e99abd1f80..0e652e7160 100644 --- a/src/Umbraco.Core/Models/ContentEditing/DictionarySave.cs +++ b/src/Umbraco.Core/Models/ContentEditing/DictionarySave.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// Dictionary Save model diff --git a/src/Umbraco.Core/Models/ContentEditing/DictionaryTranslationDisplay.cs b/src/Umbraco.Core/Models/ContentEditing/DictionaryTranslationDisplay.cs index 2437de6ffd..901afaa3bc 100644 --- a/src/Umbraco.Core/Models/ContentEditing/DictionaryTranslationDisplay.cs +++ b/src/Umbraco.Core/Models/ContentEditing/DictionaryTranslationDisplay.cs @@ -1,6 +1,6 @@ using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// @@ -13,6 +13,6 @@ namespace Umbraco.Web.Models.ContentEditing /// Gets or sets the display name. /// [DataMember(Name = "displayName")] - public string DisplayName { get; set; } + public string DisplayName { get; set; } } } diff --git a/src/Umbraco.Core/Models/ContentEditing/DictionaryTranslationSave.cs b/src/Umbraco.Core/Models/ContentEditing/DictionaryTranslationSave.cs index 72a28f633f..00332248e6 100644 --- a/src/Umbraco.Core/Models/ContentEditing/DictionaryTranslationSave.cs +++ b/src/Umbraco.Core/Models/ContentEditing/DictionaryTranslationSave.cs @@ -1,6 +1,6 @@ using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// The dictionary translation save model @@ -11,7 +11,7 @@ namespace Umbraco.Web.Models.ContentEditing /// /// Gets or sets the ISO code. /// - [DataMember(Name = "isoCode")] + [DataMember(Name = "isoCode")] public string IsoCode { get; set; } /// @@ -19,7 +19,7 @@ namespace Umbraco.Web.Models.ContentEditing /// [DataMember(Name = "translation")] public string Translation { get; set; } - + /// /// Gets or sets the language id. /// diff --git a/src/Umbraco.Core/Models/ContentEditing/DocumentTypeDisplay.cs b/src/Umbraco.Core/Models/ContentEditing/DocumentTypeDisplay.cs index dd5818626a..7d45c46600 100644 --- a/src/Umbraco.Core/Models/ContentEditing/DocumentTypeDisplay.cs +++ b/src/Umbraco.Core/Models/ContentEditing/DocumentTypeDisplay.cs @@ -1,8 +1,7 @@ using System.Collections.Generic; using System.Runtime.Serialization; -using Umbraco.Core.Models.ContentEditing; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { [DataContract(Name = "contentType", Namespace = "")] public class DocumentTypeDisplay : ContentTypeCompositionDisplay diff --git a/src/Umbraco.Core/Models/ContentEditing/DocumentTypeSave.cs b/src/Umbraco.Core/Models/ContentEditing/DocumentTypeSave.cs index 21164b493b..d446c19273 100644 --- a/src/Umbraco.Core/Models/ContentEditing/DocumentTypeSave.cs +++ b/src/Umbraco.Core/Models/ContentEditing/DocumentTypeSave.cs @@ -2,9 +2,9 @@ using System.ComponentModel.DataAnnotations; using System.Linq; using System.Runtime.Serialization; -using Umbraco.Core; +using Umbraco.Extensions; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// Model used to save a document type diff --git a/src/Umbraco.Core/Models/ContentEditing/DomainDisplay.cs b/src/Umbraco.Core/Models/ContentEditing/DomainDisplay.cs index ea3ea509c9..49ed898f3b 100644 --- a/src/Umbraco.Core/Models/ContentEditing/DomainDisplay.cs +++ b/src/Umbraco.Core/Models/ContentEditing/DomainDisplay.cs @@ -1,10 +1,10 @@ using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { [DataContract(Name = "DomainDisplay")] public class DomainDisplay - { + { public DomainDisplay(string name, int lang) { Name = name; diff --git a/src/Umbraco.Core/Models/ContentEditing/DomainSave.cs b/src/Umbraco.Core/Models/ContentEditing/DomainSave.cs index 6853762af3..3f8d836aba 100644 --- a/src/Umbraco.Core/Models/ContentEditing/DomainSave.cs +++ b/src/Umbraco.Core/Models/ContentEditing/DomainSave.cs @@ -1,6 +1,6 @@ using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { [DataContract(Name = "DomainSave")] public class DomainSave diff --git a/src/Umbraco.Core/Models/ContentEditing/EditorNavigation.cs b/src/Umbraco.Core/Models/ContentEditing/EditorNavigation.cs index 007c3267cd..a789012fc7 100644 --- a/src/Umbraco.Core/Models/ContentEditing/EditorNavigation.cs +++ b/src/Umbraco.Core/Models/ContentEditing/EditorNavigation.cs @@ -1,6 +1,6 @@ using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// A model representing the navigation ("apps") inside an editor in the back office diff --git a/src/Umbraco.Core/Models/ContentEditing/EntityBasic.cs b/src/Umbraco.Core/Models/ContentEditing/EntityBasic.cs index 946fd2102a..b923beabaf 100644 --- a/src/Umbraco.Core/Models/ContentEditing/EntityBasic.cs +++ b/src/Umbraco.Core/Models/ContentEditing/EntityBasic.cs @@ -3,10 +3,9 @@ using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.Runtime.Serialization; -using Umbraco.Core; -using Umbraco.Core.Models.Validation; +using Umbraco.Cms.Core.Models.Validation; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { [DataContract(Name = "entity", Namespace = "")] public class EntityBasic diff --git a/src/Umbraco.Core/Models/ContentEditing/GetAvailableCompositionsFilter.cs b/src/Umbraco.Core/Models/ContentEditing/GetAvailableCompositionsFilter.cs index b1528db697..96ab35d54f 100644 --- a/src/Umbraco.Core/Models/ContentEditing/GetAvailableCompositionsFilter.cs +++ b/src/Umbraco.Core/Models/ContentEditing/GetAvailableCompositionsFilter.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { public class GetAvailableCompositionsFilter { diff --git a/src/Umbraco.Core/Models/ContentEditing/IContentAppFactory.cs b/src/Umbraco.Core/Models/ContentEditing/IContentAppFactory.cs index 6b8d90d418..3c0def3c1f 100644 --- a/src/Umbraco.Core/Models/ContentEditing/IContentAppFactory.cs +++ b/src/Umbraco.Core/Models/ContentEditing/IContentAppFactory.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Models.Membership; +using Umbraco.Cms.Core.Models.Membership; -namespace Umbraco.Core.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// Represents a content app factory. diff --git a/src/Umbraco.Core/Models/ContentEditing/IContentProperties.cs b/src/Umbraco.Core/Models/ContentEditing/IContentProperties.cs index f57be4a896..ca8b2439c2 100644 --- a/src/Umbraco.Core/Models/ContentEditing/IContentProperties.cs +++ b/src/Umbraco.Core/Models/ContentEditing/IContentProperties.cs @@ -1,7 +1,6 @@ using System.Collections.Generic; -using Umbraco.Core.Models; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { public interface IContentProperties diff --git a/src/Umbraco.Core/Models/ContentEditing/IContentSave.cs b/src/Umbraco.Core/Models/ContentEditing/IContentSave.cs index 789b44dadf..dfaf183479 100644 --- a/src/Umbraco.Core/Models/ContentEditing/IContentSave.cs +++ b/src/Umbraco.Core/Models/ContentEditing/IContentSave.cs @@ -1,6 +1,4 @@ -using Umbraco.Core.Models; - -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// An interface exposes the shared parts of content, media, members that we use during model binding in order to share logic diff --git a/src/Umbraco.Core/Models/ContentEditing/IErrorModel.cs b/src/Umbraco.Core/Models/ContentEditing/IErrorModel.cs index 606856095f..4352771cac 100644 --- a/src/Umbraco.Core/Models/ContentEditing/IErrorModel.cs +++ b/src/Umbraco.Core/Models/ContentEditing/IErrorModel.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { public interface IErrorModel { diff --git a/src/Umbraco.Core/Models/ContentEditing/IHaveUploadedFiles.cs b/src/Umbraco.Core/Models/ContentEditing/IHaveUploadedFiles.cs index d8df23b2e6..a1d4198427 100644 --- a/src/Umbraco.Core/Models/ContentEditing/IHaveUploadedFiles.cs +++ b/src/Umbraco.Core/Models/ContentEditing/IHaveUploadedFiles.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Models.Editors; +using Umbraco.Cms.Core.Models.Editors; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { public interface IHaveUploadedFiles { diff --git a/src/Umbraco.Core/Models/ContentEditing/INotificationModel.cs b/src/Umbraco.Core/Models/ContentEditing/INotificationModel.cs index 910d47a221..5bc9996f6b 100644 --- a/src/Umbraco.Core/Models/ContentEditing/INotificationModel.cs +++ b/src/Umbraco.Core/Models/ContentEditing/INotificationModel.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { public interface INotificationModel { diff --git a/src/Umbraco.Core/Models/ContentEditing/ITabbedContent.cs b/src/Umbraco.Core/Models/ContentEditing/ITabbedContent.cs index 229ca3678d..3f1d847151 100644 --- a/src/Umbraco.Core/Models/ContentEditing/ITabbedContent.cs +++ b/src/Umbraco.Core/Models/ContentEditing/ITabbedContent.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { public interface ITabbedContent diff --git a/src/Umbraco.Core/Models/ContentEditing/Language.cs b/src/Umbraco.Core/Models/ContentEditing/Language.cs index 75dd07bf09..617b18bb6e 100644 --- a/src/Umbraco.Core/Models/ContentEditing/Language.cs +++ b/src/Umbraco.Core/Models/ContentEditing/Language.cs @@ -2,7 +2,7 @@ using System.ComponentModel.DataAnnotations; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { [DataContract(Name = "language", Namespace = "")] public class Language diff --git a/src/Umbraco.Core/Models/ContentEditing/LinkDisplay.cs b/src/Umbraco.Core/Models/ContentEditing/LinkDisplay.cs index 5b6379288f..69bbd91edc 100644 --- a/src/Umbraco.Core/Models/ContentEditing/LinkDisplay.cs +++ b/src/Umbraco.Core/Models/ContentEditing/LinkDisplay.cs @@ -1,7 +1,6 @@ using System.Runtime.Serialization; -using Umbraco.Core; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { [DataContract(Name = "link", Namespace = "")] public class LinkDisplay diff --git a/src/Umbraco.Core/Models/ContentEditing/ListViewAwareContentItemDisplayBase.cs b/src/Umbraco.Core/Models/ContentEditing/ListViewAwareContentItemDisplayBase.cs index 250ec3f633..d3817f9875 100644 --- a/src/Umbraco.Core/Models/ContentEditing/ListViewAwareContentItemDisplayBase.cs +++ b/src/Umbraco.Core/Models/ContentEditing/ListViewAwareContentItemDisplayBase.cs @@ -1,6 +1,6 @@ using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// An abstract model representing a content item that can be contained in a list view diff --git a/src/Umbraco.Core/Models/ContentEditing/MacroDisplay.cs b/src/Umbraco.Core/Models/ContentEditing/MacroDisplay.cs index 55f0d5b89d..d5d363057f 100644 --- a/src/Umbraco.Core/Models/ContentEditing/MacroDisplay.cs +++ b/src/Umbraco.Core/Models/ContentEditing/MacroDisplay.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// The macro display model @@ -46,7 +46,7 @@ namespace Umbraco.Web.Models.ContentEditing [DataMember(Name = "cacheByPage")] public bool CacheByPage { get; set; } - /// + /// /// Gets or sets a value indicating whether the macro should be cached by user /// [DataMember(Name = "cacheByUser")] diff --git a/src/Umbraco.Core/Models/ContentEditing/MacroParameter.cs b/src/Umbraco.Core/Models/ContentEditing/MacroParameter.cs index ed3551449c..19949e9d68 100644 --- a/src/Umbraco.Core/Models/ContentEditing/MacroParameter.cs +++ b/src/Umbraco.Core/Models/ContentEditing/MacroParameter.cs @@ -2,7 +2,7 @@ using System.ComponentModel.DataAnnotations; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// Represents a macro parameter with an editor diff --git a/src/Umbraco.Core/Models/ContentEditing/MacroParameterDisplay.cs b/src/Umbraco.Core/Models/ContentEditing/MacroParameterDisplay.cs index 866e631dc4..daf793e3c1 100644 --- a/src/Umbraco.Core/Models/ContentEditing/MacroParameterDisplay.cs +++ b/src/Umbraco.Core/Models/ContentEditing/MacroParameterDisplay.cs @@ -1,6 +1,6 @@ using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// The macro parameter display. diff --git a/src/Umbraco.Core/Models/ContentEditing/MediaItemDisplay.cs b/src/Umbraco.Core/Models/ContentEditing/MediaItemDisplay.cs index a1d2a3696f..c20337f68d 100644 --- a/src/Umbraco.Core/Models/ContentEditing/MediaItemDisplay.cs +++ b/src/Umbraco.Core/Models/ContentEditing/MediaItemDisplay.cs @@ -1,8 +1,7 @@ using System.Collections.Generic; using System.Runtime.Serialization; -using Umbraco.Core.Models.ContentEditing; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// A model representing a media item to be displayed in the back office diff --git a/src/Umbraco.Core/Models/ContentEditing/MediaItemSave.cs b/src/Umbraco.Core/Models/ContentEditing/MediaItemSave.cs index d983077fa2..06c201ab67 100644 --- a/src/Umbraco.Core/Models/ContentEditing/MediaItemSave.cs +++ b/src/Umbraco.Core/Models/ContentEditing/MediaItemSave.cs @@ -1,7 +1,6 @@ using System.Runtime.Serialization; -using Umbraco.Core.Models; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// A model representing a media item to be saved diff --git a/src/Umbraco.Core/Models/ContentEditing/MediaTypeDisplay.cs b/src/Umbraco.Core/Models/ContentEditing/MediaTypeDisplay.cs index ea0393336c..2c7c50550d 100644 --- a/src/Umbraco.Core/Models/ContentEditing/MediaTypeDisplay.cs +++ b/src/Umbraco.Core/Models/ContentEditing/MediaTypeDisplay.cs @@ -1,6 +1,6 @@ using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { [DataContract(Name = "contentType", Namespace = "")] public class MediaTypeDisplay : ContentTypeCompositionDisplay diff --git a/src/Umbraco.Core/Models/ContentEditing/MediaTypeSave.cs b/src/Umbraco.Core/Models/ContentEditing/MediaTypeSave.cs index 3e3a64740b..1ef2a1988b 100644 --- a/src/Umbraco.Core/Models/ContentEditing/MediaTypeSave.cs +++ b/src/Umbraco.Core/Models/ContentEditing/MediaTypeSave.cs @@ -1,6 +1,6 @@ using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// Model used to save a media type diff --git a/src/Umbraco.Core/Models/ContentEditing/MemberBasic.cs b/src/Umbraco.Core/Models/ContentEditing/MemberBasic.cs index 2352fd46ca..376e758573 100644 --- a/src/Umbraco.Core/Models/ContentEditing/MemberBasic.cs +++ b/src/Umbraco.Core/Models/ContentEditing/MemberBasic.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// Used for basic member information diff --git a/src/Umbraco.Core/Models/ContentEditing/MemberDisplay.cs b/src/Umbraco.Core/Models/ContentEditing/MemberDisplay.cs index 0a5caeccc7..c422b226e3 100644 --- a/src/Umbraco.Core/Models/ContentEditing/MemberDisplay.cs +++ b/src/Umbraco.Core/Models/ContentEditing/MemberDisplay.cs @@ -1,8 +1,7 @@ using System.Collections.Generic; using System.Runtime.Serialization; -using Umbraco.Core.Models.ContentEditing; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// A model representing a member to be displayed in the back office diff --git a/src/Umbraco.Core/Models/ContentEditing/MemberGroupDisplay.cs b/src/Umbraco.Core/Models/ContentEditing/MemberGroupDisplay.cs index 55239700a4..2d930727aa 100644 --- a/src/Umbraco.Core/Models/ContentEditing/MemberGroupDisplay.cs +++ b/src/Umbraco.Core/Models/ContentEditing/MemberGroupDisplay.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { [DataContract(Name = "memberGroup", Namespace = "")] public class MemberGroupDisplay : EntityBasic, INotificationModel diff --git a/src/Umbraco.Core/Models/ContentEditing/MemberGroupSave.cs b/src/Umbraco.Core/Models/ContentEditing/MemberGroupSave.cs index ed5c8de40f..2b863a758d 100644 --- a/src/Umbraco.Core/Models/ContentEditing/MemberGroupSave.cs +++ b/src/Umbraco.Core/Models/ContentEditing/MemberGroupSave.cs @@ -1,6 +1,6 @@ using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { [DataContract(Name = "memberGroup", Namespace = "")] public class MemberGroupSave : EntityBasic diff --git a/src/Umbraco.Core/Models/ContentEditing/MemberListDisplay.cs b/src/Umbraco.Core/Models/ContentEditing/MemberListDisplay.cs index 4783e2b992..cad4fa9af9 100644 --- a/src/Umbraco.Core/Models/ContentEditing/MemberListDisplay.cs +++ b/src/Umbraco.Core/Models/ContentEditing/MemberListDisplay.cs @@ -1,8 +1,7 @@ using System.Collections.Generic; using System.Runtime.Serialization; -using Umbraco.Core.Models.ContentEditing; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// A model representing a member list to be displayed in the back office diff --git a/src/Umbraco.Core/Models/ContentEditing/MemberPropertyTypeBasic.cs b/src/Umbraco.Core/Models/ContentEditing/MemberPropertyTypeBasic.cs index f3fe7a262c..b25f2ae5c8 100644 --- a/src/Umbraco.Core/Models/ContentEditing/MemberPropertyTypeBasic.cs +++ b/src/Umbraco.Core/Models/ContentEditing/MemberPropertyTypeBasic.cs @@ -1,6 +1,6 @@ using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// Basic member property type diff --git a/src/Umbraco.Core/Models/ContentEditing/MemberPropertyTypeDisplay.cs b/src/Umbraco.Core/Models/ContentEditing/MemberPropertyTypeDisplay.cs index e5612f5247..873883c8db 100644 --- a/src/Umbraco.Core/Models/ContentEditing/MemberPropertyTypeDisplay.cs +++ b/src/Umbraco.Core/Models/ContentEditing/MemberPropertyTypeDisplay.cs @@ -1,6 +1,6 @@ using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { [DataContract(Name = "propertyType")] public class MemberPropertyTypeDisplay : PropertyTypeDisplay diff --git a/src/Umbraco.Core/Models/ContentEditing/MemberSave.cs b/src/Umbraco.Core/Models/ContentEditing/MemberSave.cs index 8bba20f7bd..6b5c0096a0 100644 --- a/src/Umbraco.Core/Models/ContentEditing/MemberSave.cs +++ b/src/Umbraco.Core/Models/ContentEditing/MemberSave.cs @@ -2,11 +2,10 @@ using System.ComponentModel.DataAnnotations; using System.Linq; using System.Runtime.Serialization; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Validation; +using Umbraco.Cms.Core.Models.Validation; +using Umbraco.Extensions; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// public class MemberSave : ContentBaseSave diff --git a/src/Umbraco.Core/Models/ContentEditing/MemberTypeDisplay.cs b/src/Umbraco.Core/Models/ContentEditing/MemberTypeDisplay.cs index fdecbce57f..67e390f378 100644 --- a/src/Umbraco.Core/Models/ContentEditing/MemberTypeDisplay.cs +++ b/src/Umbraco.Core/Models/ContentEditing/MemberTypeDisplay.cs @@ -1,6 +1,6 @@ using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { [DataContract(Name = "contentType", Namespace = "")] public class MemberTypeDisplay : ContentTypeCompositionDisplay diff --git a/src/Umbraco.Core/Models/ContentEditing/MemberTypeSave.cs b/src/Umbraco.Core/Models/ContentEditing/MemberTypeSave.cs index b7def40e11..80ac46ae09 100644 --- a/src/Umbraco.Core/Models/ContentEditing/MemberTypeSave.cs +++ b/src/Umbraco.Core/Models/ContentEditing/MemberTypeSave.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// Model used to save a member type diff --git a/src/Umbraco.Core/Models/ContentEditing/MessagesExtensions.cs b/src/Umbraco.Core/Models/ContentEditing/MessagesExtensions.cs index 0f9a1dc500..0026dcc21e 100644 --- a/src/Umbraco.Core/Models/ContentEditing/MessagesExtensions.cs +++ b/src/Umbraco.Core/Models/ContentEditing/MessagesExtensions.cs @@ -1,7 +1,7 @@ using System.Linq; -using Umbraco.Core; +using Umbraco.Cms.Core.Models.ContentEditing; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Extensions { public static class MessagesExtensions { diff --git a/src/Umbraco.Core/Models/ContentEditing/ModelWithNotifications.cs b/src/Umbraco.Core/Models/ContentEditing/ModelWithNotifications.cs index 2cf34e029d..d79be81725 100644 --- a/src/Umbraco.Core/Models/ContentEditing/ModelWithNotifications.cs +++ b/src/Umbraco.Core/Models/ContentEditing/ModelWithNotifications.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// A generic model supporting notifications, this is useful for returning any model type to include notifications from api controllers diff --git a/src/Umbraco.Core/Models/ContentEditing/MoveOrCopy.cs b/src/Umbraco.Core/Models/ContentEditing/MoveOrCopy.cs index a36e2f37be..c27cf70ccf 100644 --- a/src/Umbraco.Core/Models/ContentEditing/MoveOrCopy.cs +++ b/src/Umbraco.Core/Models/ContentEditing/MoveOrCopy.cs @@ -1,10 +1,7 @@ -using System; -using System.ComponentModel.DataAnnotations; -using System.Linq; +using System.ComponentModel.DataAnnotations; using System.Runtime.Serialization; -using System.Text; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// A model representing a model for moving or copying diff --git a/src/Umbraco.Core/Models/ContentEditing/NotificationStyle.cs b/src/Umbraco.Core/Models/ContentEditing/NotificationStyle.cs index ade66a2888..aeda314f4c 100644 --- a/src/Umbraco.Core/Models/ContentEditing/NotificationStyle.cs +++ b/src/Umbraco.Core/Models/ContentEditing/NotificationStyle.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { public enum NotificationStyle { diff --git a/src/Umbraco.Core/Models/ContentEditing/NotifySetting.cs b/src/Umbraco.Core/Models/ContentEditing/NotifySetting.cs index 14e4c1cf0d..11ddfc0ca0 100644 --- a/src/Umbraco.Core/Models/ContentEditing/NotifySetting.cs +++ b/src/Umbraco.Core/Models/ContentEditing/NotifySetting.cs @@ -1,5 +1,6 @@ using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing + +namespace Umbraco.Cms.Core.Models.ContentEditing { [DataContract(Name = "notifySetting", Namespace = "")] public class NotifySetting diff --git a/src/Umbraco.Core/Models/ContentEditing/ObjectType.cs b/src/Umbraco.Core/Models/ContentEditing/ObjectType.cs index 522b0c666b..6b7192ad68 100644 --- a/src/Umbraco.Core/Models/ContentEditing/ObjectType.cs +++ b/src/Umbraco.Core/Models/ContentEditing/ObjectType.cs @@ -1,7 +1,7 @@ using System; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { [DataContract(Name = "objectType", Namespace = "")] public class ObjectType diff --git a/src/Umbraco.Core/Models/ContentEditing/Permission.cs b/src/Umbraco.Core/Models/ContentEditing/Permission.cs index 2bb905200a..90bfd86bd2 100644 --- a/src/Umbraco.Core/Models/ContentEditing/Permission.cs +++ b/src/Umbraco.Core/Models/ContentEditing/Permission.cs @@ -1,7 +1,7 @@ using System; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { [DataContract(Name = "permission", Namespace = "")] public class Permission : ICloneable diff --git a/src/Umbraco.Core/Models/ContentEditing/PostedFiles.cs b/src/Umbraco.Core/Models/ContentEditing/PostedFiles.cs index e0ec347b45..69029c961a 100644 --- a/src/Umbraco.Core/Models/ContentEditing/PostedFiles.cs +++ b/src/Umbraco.Core/Models/ContentEditing/PostedFiles.cs @@ -1,8 +1,8 @@ using System.Collections.Generic; using System.Runtime.Serialization; -using Umbraco.Core.Models.Editors; +using Umbraco.Cms.Core.Models.Editors; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// This is used for the response of PostAddFile so that we can analyze the response in a filter and remove the diff --git a/src/Umbraco.Core/Models/ContentEditing/PostedFolder.cs b/src/Umbraco.Core/Models/ContentEditing/PostedFolder.cs index 35cd908787..ea5217c1a8 100644 --- a/src/Umbraco.Core/Models/ContentEditing/PostedFolder.cs +++ b/src/Umbraco.Core/Models/ContentEditing/PostedFolder.cs @@ -1,6 +1,6 @@ using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// Used to create a folder with the MediaController @@ -14,4 +14,4 @@ namespace Umbraco.Web.Models.ContentEditing [DataMember(Name = "name")] public string Name { get; set; } } -} \ No newline at end of file +} diff --git a/src/Umbraco.Core/Models/ContentEditing/PropertyEditorBasic.cs b/src/Umbraco.Core/Models/ContentEditing/PropertyEditorBasic.cs index 241af35819..7c71cb4a63 100644 --- a/src/Umbraco.Core/Models/ContentEditing/PropertyEditorBasic.cs +++ b/src/Umbraco.Core/Models/ContentEditing/PropertyEditorBasic.cs @@ -1,7 +1,6 @@ -using System; -using System.Runtime.Serialization; +using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// Defines an available property editor to be able to select for a data type diff --git a/src/Umbraco.Core/Models/ContentEditing/PropertyGroupBasic.cs b/src/Umbraco.Core/Models/ContentEditing/PropertyGroupBasic.cs index a516dbd1d5..0bea10a476 100644 --- a/src/Umbraco.Core/Models/ContentEditing/PropertyGroupBasic.cs +++ b/src/Umbraco.Core/Models/ContentEditing/PropertyGroupBasic.cs @@ -2,7 +2,7 @@ using System.ComponentModel.DataAnnotations; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { [DataContract(Name = "propertyGroup", Namespace = "")] public abstract class PropertyGroupBasic diff --git a/src/Umbraco.Core/Models/ContentEditing/PropertyGroupDisplay.cs b/src/Umbraco.Core/Models/ContentEditing/PropertyGroupDisplay.cs index 1523daacda..6c4d234abe 100644 --- a/src/Umbraco.Core/Models/ContentEditing/PropertyGroupDisplay.cs +++ b/src/Umbraco.Core/Models/ContentEditing/PropertyGroupDisplay.cs @@ -2,7 +2,7 @@ using System.ComponentModel; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { [DataContract(Name = "propertyGroup", Namespace = "")] public class PropertyGroupDisplay : PropertyGroupBasic diff --git a/src/Umbraco.Core/Models/ContentEditing/PropertyTypeBasic.cs b/src/Umbraco.Core/Models/ContentEditing/PropertyTypeBasic.cs index 793e4e391d..3b2a3aa37b 100644 --- a/src/Umbraco.Core/Models/ContentEditing/PropertyTypeBasic.cs +++ b/src/Umbraco.Core/Models/ContentEditing/PropertyTypeBasic.cs @@ -3,7 +3,7 @@ using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { [DataContract(Name = "propertyType")] public class PropertyTypeBasic diff --git a/src/Umbraco.Core/Models/ContentEditing/PropertyTypeDisplay.cs b/src/Umbraco.Core/Models/ContentEditing/PropertyTypeDisplay.cs index d3878bfeba..20a8cbe2e8 100644 --- a/src/Umbraco.Core/Models/ContentEditing/PropertyTypeDisplay.cs +++ b/src/Umbraco.Core/Models/ContentEditing/PropertyTypeDisplay.cs @@ -2,7 +2,7 @@ using System.ComponentModel; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { [DataContract(Name = "propertyType")] public class PropertyTypeDisplay : PropertyTypeBasic diff --git a/src/Umbraco.Core/Models/ContentEditing/PropertyTypeValidation.cs b/src/Umbraco.Core/Models/ContentEditing/PropertyTypeValidation.cs index a45af12341..17c71eb479 100644 --- a/src/Umbraco.Core/Models/ContentEditing/PropertyTypeValidation.cs +++ b/src/Umbraco.Core/Models/ContentEditing/PropertyTypeValidation.cs @@ -1,6 +1,6 @@ using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// An object representing the property type validation settings diff --git a/src/Umbraco.Core/Models/ContentEditing/PublicAccess.cs b/src/Umbraco.Core/Models/ContentEditing/PublicAccess.cs index dcf2dcae92..c0678ea9d9 100644 --- a/src/Umbraco.Core/Models/ContentEditing/PublicAccess.cs +++ b/src/Umbraco.Core/Models/ContentEditing/PublicAccess.cs @@ -1,6 +1,6 @@ using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { [DataContract(Name = "publicAccess", Namespace = "")] public class PublicAccess diff --git a/src/Umbraco.Core/Models/ContentEditing/RedirectUrlSearchResults.cs b/src/Umbraco.Core/Models/ContentEditing/RedirectUrlSearchResults.cs index 8833bfdbf6..ba5616371b 100644 --- a/src/Umbraco.Core/Models/ContentEditing/RedirectUrlSearchResults.cs +++ b/src/Umbraco.Core/Models/ContentEditing/RedirectUrlSearchResults.cs @@ -1,8 +1,7 @@ using System.Collections.Generic; using System.Runtime.Serialization; -using Umbraco.Core.Models; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { [DataContract(Name = "redirectUrlSearchResult", Namespace = "")] public class RedirectUrlSearchResult diff --git a/src/Umbraco.Core/Models/ContentEditing/RelationDisplay.cs b/src/Umbraco.Core/Models/ContentEditing/RelationDisplay.cs index 24ebabc615..61b9b3f39b 100644 --- a/src/Umbraco.Core/Models/ContentEditing/RelationDisplay.cs +++ b/src/Umbraco.Core/Models/ContentEditing/RelationDisplay.cs @@ -2,7 +2,7 @@ using System.ComponentModel; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { [DataContract(Name = "relation", Namespace = "")] public class RelationDisplay diff --git a/src/Umbraco.Core/Models/ContentEditing/RelationTypeDisplay.cs b/src/Umbraco.Core/Models/ContentEditing/RelationTypeDisplay.cs index 1d31f8a0de..27f0f525df 100644 --- a/src/Umbraco.Core/Models/ContentEditing/RelationTypeDisplay.cs +++ b/src/Umbraco.Core/Models/ContentEditing/RelationTypeDisplay.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.ComponentModel; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { [DataContract(Name = "relationType", Namespace = "")] public class RelationTypeDisplay : EntityBasic, INotificationModel diff --git a/src/Umbraco.Core/Models/ContentEditing/RelationTypeSave.cs b/src/Umbraco.Core/Models/ContentEditing/RelationTypeSave.cs index 434cf1de89..b72a03eec4 100644 --- a/src/Umbraco.Core/Models/ContentEditing/RelationTypeSave.cs +++ b/src/Umbraco.Core/Models/ContentEditing/RelationTypeSave.cs @@ -1,7 +1,7 @@ using System; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { [DataContract(Name = "relationType", Namespace = "")] public class RelationTypeSave : EntityBasic diff --git a/src/Umbraco.Core/Models/ContentEditing/RichTextEditorCommand.cs b/src/Umbraco.Core/Models/ContentEditing/RichTextEditorCommand.cs index 9eb7b57bba..f5c757ad9d 100644 --- a/src/Umbraco.Core/Models/ContentEditing/RichTextEditorCommand.cs +++ b/src/Umbraco.Core/Models/ContentEditing/RichTextEditorCommand.cs @@ -1,13 +1,13 @@ using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { [DataContract(Name = "richtexteditorcommand", Namespace = "")] public class RichTextEditorCommand { [DataMember(Name = "name")] public string Name { get; set; } - + [DataMember(Name = "alias")] public string Alias { get; set; } diff --git a/src/Umbraco.Core/Models/ContentEditing/RichTextEditorConfiguration.cs b/src/Umbraco.Core/Models/ContentEditing/RichTextEditorConfiguration.cs index 65ed5a2f7a..c239d5e70c 100644 --- a/src/Umbraco.Core/Models/ContentEditing/RichTextEditorConfiguration.cs +++ b/src/Umbraco.Core/Models/ContentEditing/RichTextEditorConfiguration.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { [DataContract(Name = "richtexteditorconfiguration", Namespace = "")] public class RichTextEditorConfiguration diff --git a/src/Umbraco.Core/Models/ContentEditing/RichTextEditorPlugin.cs b/src/Umbraco.Core/Models/ContentEditing/RichTextEditorPlugin.cs index a3ce9e508c..4e8fde56df 100644 --- a/src/Umbraco.Core/Models/ContentEditing/RichTextEditorPlugin.cs +++ b/src/Umbraco.Core/Models/ContentEditing/RichTextEditorPlugin.cs @@ -1,11 +1,6 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Runtime.Serialization; -using System.Text; -using System.Threading.Tasks; +using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { [DataContract(Name = "richtexteditorplugin", Namespace = "")] public class RichTextEditorPlugin diff --git a/src/Umbraco.Core/Models/ContentEditing/RollbackVersion.cs b/src/Umbraco.Core/Models/ContentEditing/RollbackVersion.cs index dad1341a8c..3b7342a67b 100644 --- a/src/Umbraco.Core/Models/ContentEditing/RollbackVersion.cs +++ b/src/Umbraco.Core/Models/ContentEditing/RollbackVersion.cs @@ -1,7 +1,7 @@ using System; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { [DataContract(Name = "rollbackVersion", Namespace = "")] public class RollbackVersion diff --git a/src/Umbraco.Core/Models/ContentEditing/SearchResult.cs b/src/Umbraco.Core/Models/ContentEditing/SearchResult.cs index 1cdd539165..d7de53baeb 100644 --- a/src/Umbraco.Core/Models/ContentEditing/SearchResult.cs +++ b/src/Umbraco.Core/Models/ContentEditing/SearchResult.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { [DataContract(Name = "result", Namespace = "")] public class SearchResult diff --git a/src/Umbraco.Core/Models/ContentEditing/SearchResultEntity.cs b/src/Umbraco.Core/Models/ContentEditing/SearchResultEntity.cs index 45360d9464..5307e06e67 100644 --- a/src/Umbraco.Core/Models/ContentEditing/SearchResultEntity.cs +++ b/src/Umbraco.Core/Models/ContentEditing/SearchResultEntity.cs @@ -1,6 +1,6 @@ using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { [DataContract(Name = "searchResult", Namespace = "")] public class SearchResultEntity : EntityBasic diff --git a/src/Umbraco.Core/Models/ContentEditing/SearchResults.cs b/src/Umbraco.Core/Models/ContentEditing/SearchResults.cs index f791d55cab..4c76fff108 100644 --- a/src/Umbraco.Core/Models/ContentEditing/SearchResults.cs +++ b/src/Umbraco.Core/Models/ContentEditing/SearchResults.cs @@ -2,7 +2,7 @@ using System.Linq; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { [DataContract(Name = "results", Namespace = "")] public class SearchResults diff --git a/src/Umbraco.Core/Models/ContentEditing/Section.cs b/src/Umbraco.Core/Models/ContentEditing/Section.cs index b51bbf249f..d62125ade8 100644 --- a/src/Umbraco.Core/Models/ContentEditing/Section.cs +++ b/src/Umbraco.Core/Models/ContentEditing/Section.cs @@ -1,6 +1,6 @@ using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// Represents a section (application) in the back office diff --git a/src/Umbraco.Core/Models/ContentEditing/SimpleNotificationModel.cs b/src/Umbraco.Core/Models/ContentEditing/SimpleNotificationModel.cs index 6b74ba5e0a..1c01a3153c 100644 --- a/src/Umbraco.Core/Models/ContentEditing/SimpleNotificationModel.cs +++ b/src/Umbraco.Core/Models/ContentEditing/SimpleNotificationModel.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { [DataContract(Name = "notificationModel", Namespace = "")] public class SimpleNotificationModel : INotificationModel diff --git a/src/Umbraco.Core/Models/ContentEditing/SnippetDisplay.cs b/src/Umbraco.Core/Models/ContentEditing/SnippetDisplay.cs index e05f8c5c89..db24cef2ad 100644 --- a/src/Umbraco.Core/Models/ContentEditing/SnippetDisplay.cs +++ b/src/Umbraco.Core/Models/ContentEditing/SnippetDisplay.cs @@ -1,6 +1,6 @@ using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { [DataContract(Name = "scriptFile", Namespace = "")] public class SnippetDisplay diff --git a/src/Umbraco.Core/Models/ContentEditing/StyleSheet.cs b/src/Umbraco.Core/Models/ContentEditing/StyleSheet.cs index 3daf8d8323..c4794e5536 100644 --- a/src/Umbraco.Core/Models/ContentEditing/StyleSheet.cs +++ b/src/Umbraco.Core/Models/ContentEditing/StyleSheet.cs @@ -1,10 +1,6 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Runtime.Serialization; -using System.Text; +using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { [DataContract(Name = "stylesheet", Namespace = "")] public class Stylesheet diff --git a/src/Umbraco.Core/Models/ContentEditing/StylesheetRule.cs b/src/Umbraco.Core/Models/ContentEditing/StylesheetRule.cs index b3212445ae..81f7c0fcea 100644 --- a/src/Umbraco.Core/Models/ContentEditing/StylesheetRule.cs +++ b/src/Umbraco.Core/Models/ContentEditing/StylesheetRule.cs @@ -1,11 +1,6 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Runtime.Serialization; -using System.Text; -using System.Threading.Tasks; +using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { [DataContract(Name = "stylesheetRule", Namespace = "")] public class StylesheetRule diff --git a/src/Umbraco.Core/Models/ContentEditing/Tab.cs b/src/Umbraco.Core/Models/ContentEditing/Tab.cs index 758317606c..5971162575 100644 --- a/src/Umbraco.Core/Models/ContentEditing/Tab.cs +++ b/src/Umbraco.Core/Models/ContentEditing/Tab.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// Represents a tab in the UI diff --git a/src/Umbraco.Core/Models/ContentEditing/TabbedContentItem.cs b/src/Umbraco.Core/Models/ContentEditing/TabbedContentItem.cs index 60b282ecac..2695d01c7a 100644 --- a/src/Umbraco.Core/Models/ContentEditing/TabbedContentItem.cs +++ b/src/Umbraco.Core/Models/ContentEditing/TabbedContentItem.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { public abstract class TabbedContentItem : ContentItemBasic, ITabbedContent where T : ContentPropertyBasic { diff --git a/src/Umbraco.Core/Models/ContentEditing/TemplateDisplay.cs b/src/Umbraco.Core/Models/ContentEditing/TemplateDisplay.cs index b752aa1af2..e73f36c189 100644 --- a/src/Umbraco.Core/Models/ContentEditing/TemplateDisplay.cs +++ b/src/Umbraco.Core/Models/ContentEditing/TemplateDisplay.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { [DataContract(Name = "template", Namespace = "")] public class TemplateDisplay : INotificationModel diff --git a/src/Umbraco.Core/Models/ContentEditing/TreeSearchResult.cs b/src/Umbraco.Core/Models/ContentEditing/TreeSearchResult.cs index 820f3bae70..e5b21ce893 100644 --- a/src/Umbraco.Core/Models/ContentEditing/TreeSearchResult.cs +++ b/src/Umbraco.Core/Models/ContentEditing/TreeSearchResult.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// Represents a search result by entity type diff --git a/src/Umbraco.Core/Models/ContentEditing/UmbracoEntityTypes.cs b/src/Umbraco.Core/Models/ContentEditing/UmbracoEntityTypes.cs index fcf7271673..7e8cf39ffd 100644 --- a/src/Umbraco.Core/Models/ContentEditing/UmbracoEntityTypes.cs +++ b/src/Umbraco.Core/Models/ContentEditing/UmbracoEntityTypes.cs @@ -1,7 +1,4 @@ -using System; -using System.ComponentModel; - -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// Represents the type's of Umbraco entities that can be resolved from the EntityController @@ -52,7 +49,7 @@ namespace Umbraco.Web.Models.ContentEditing /// Member Group /// MemberGroup, - + /// /// "Media Type /// diff --git a/src/Umbraco.Core/Models/ContentEditing/UnpublishContent.cs b/src/Umbraco.Core/Models/ContentEditing/UnpublishContent.cs index 22cb43f467..0dff38eefd 100644 --- a/src/Umbraco.Core/Models/ContentEditing/UnpublishContent.cs +++ b/src/Umbraco.Core/Models/ContentEditing/UnpublishContent.cs @@ -1,11 +1,6 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Runtime.Serialization; -using System.Text; -using System.Threading.Tasks; +using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// Used to unpublish content and variants diff --git a/src/Umbraco.Core/Models/ContentEditing/UrlAndAnchors.cs b/src/Umbraco.Core/Models/ContentEditing/UrlAndAnchors.cs index 86642a8d65..0e8c711e83 100644 --- a/src/Umbraco.Core/Models/ContentEditing/UrlAndAnchors.cs +++ b/src/Umbraco.Core/Models/ContentEditing/UrlAndAnchors.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { [DataContract(Name = "urlAndAnchors", Namespace = "")] public class UrlAndAnchors diff --git a/src/Umbraco.Core/Models/ContentEditing/UserBasic.cs b/src/Umbraco.Core/Models/ContentEditing/UserBasic.cs index 9a48a8243e..e67d3bae6e 100644 --- a/src/Umbraco.Core/Models/ContentEditing/UserBasic.cs +++ b/src/Umbraco.Core/Models/ContentEditing/UserBasic.cs @@ -2,9 +2,9 @@ using System.Collections.Generic; using System.ComponentModel; using System.Runtime.Serialization; -using Umbraco.Core.Models.Membership; +using Umbraco.Cms.Core.Models.Membership; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// The user model used for paging and listing users in the UI diff --git a/src/Umbraco.Core/Models/ContentEditing/UserDetail.cs b/src/Umbraco.Core/Models/ContentEditing/UserDetail.cs index 3bcff43fa2..c655ba1875 100644 --- a/src/Umbraco.Core/Models/ContentEditing/UserDetail.cs +++ b/src/Umbraco.Core/Models/ContentEditing/UserDetail.cs @@ -3,7 +3,7 @@ using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// Represents information for the current user diff --git a/src/Umbraco.Core/Models/ContentEditing/UserDisplay.cs b/src/Umbraco.Core/Models/ContentEditing/UserDisplay.cs index 312095e1d1..f16ad854e6 100644 --- a/src/Umbraco.Core/Models/ContentEditing/UserDisplay.cs +++ b/src/Umbraco.Core/Models/ContentEditing/UserDisplay.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.ComponentModel; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// Represents a user that is being edited diff --git a/src/Umbraco.Core/Models/ContentEditing/UserGroupBasic.cs b/src/Umbraco.Core/Models/ContentEditing/UserGroupBasic.cs index 3d959e0d32..e4c76b699e 100644 --- a/src/Umbraco.Core/Models/ContentEditing/UserGroupBasic.cs +++ b/src/Umbraco.Core/Models/ContentEditing/UserGroupBasic.cs @@ -2,7 +2,7 @@ using System.Linq; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { [DataContract(Name = "userGroup", Namespace = "")] public class UserGroupBasic : EntityBasic, INotificationModel diff --git a/src/Umbraco.Core/Models/ContentEditing/UserGroupDisplay.cs b/src/Umbraco.Core/Models/ContentEditing/UserGroupDisplay.cs index 62f1df305b..2e570df9dd 100644 --- a/src/Umbraco.Core/Models/ContentEditing/UserGroupDisplay.cs +++ b/src/Umbraco.Core/Models/ContentEditing/UserGroupDisplay.cs @@ -2,7 +2,7 @@ using System.Linq; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { [DataContract(Name = "userGroup", Namespace = "")] public class UserGroupDisplay : UserGroupBasic diff --git a/src/Umbraco.Core/Models/ContentEditing/UserGroupPermissionsSave.cs b/src/Umbraco.Core/Models/ContentEditing/UserGroupPermissionsSave.cs index 4c9a751573..ae5b4805a7 100644 --- a/src/Umbraco.Core/Models/ContentEditing/UserGroupPermissionsSave.cs +++ b/src/Umbraco.Core/Models/ContentEditing/UserGroupPermissionsSave.cs @@ -2,9 +2,9 @@ using System.ComponentModel.DataAnnotations; using System.Linq; using System.Runtime.Serialization; -using Umbraco.Core; +using Umbraco.Extensions; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// Used to assign user group permissions to a content node diff --git a/src/Umbraco.Core/Models/ContentEditing/UserGroupSave.cs b/src/Umbraco.Core/Models/ContentEditing/UserGroupSave.cs index 1b2bb710a2..7d24378494 100644 --- a/src/Umbraco.Core/Models/ContentEditing/UserGroupSave.cs +++ b/src/Umbraco.Core/Models/ContentEditing/UserGroupSave.cs @@ -2,10 +2,10 @@ using System.ComponentModel.DataAnnotations; using System.Linq; using System.Runtime.Serialization; -using Umbraco.Core; -using Umbraco.Core.Models.Membership; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Extensions; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { [DataContract(Name = "userGroup", Namespace = "")] public class UserGroupSave : EntityBasic, IValidatableObject diff --git a/src/Umbraco.Core/Models/ContentEditing/UserInvite.cs b/src/Umbraco.Core/Models/ContentEditing/UserInvite.cs index bf2a84fbbe..6eb5c12ddf 100644 --- a/src/Umbraco.Core/Models/ContentEditing/UserInvite.cs +++ b/src/Umbraco.Core/Models/ContentEditing/UserInvite.cs @@ -4,10 +4,10 @@ using System.Linq; using System.Runtime.Serialization; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Extensions; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// Represents the data used to invite a user diff --git a/src/Umbraco.Core/Models/ContentEditing/UserProfile.cs b/src/Umbraco.Core/Models/ContentEditing/UserProfile.cs index 18981ece64..314e0cfc09 100644 --- a/src/Umbraco.Core/Models/ContentEditing/UserProfile.cs +++ b/src/Umbraco.Core/Models/ContentEditing/UserProfile.cs @@ -2,7 +2,7 @@ using System.ComponentModel.DataAnnotations; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// A bare minimum structure that represents a user, usually attached to other objects diff --git a/src/Umbraco.Core/Models/ContentEditing/UserSave.cs b/src/Umbraco.Core/Models/ContentEditing/UserSave.cs index 2533ebb105..bfc434a30d 100644 --- a/src/Umbraco.Core/Models/ContentEditing/UserSave.cs +++ b/src/Umbraco.Core/Models/ContentEditing/UserSave.cs @@ -3,7 +3,7 @@ using System.ComponentModel.DataAnnotations; using System.Linq; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.ContentEditing +namespace Umbraco.Cms.Core.Models.ContentEditing { /// /// Represents the data used to persist a user diff --git a/src/Umbraco.Core/Models/ContentModel.cs b/src/Umbraco.Core/Models/ContentModel.cs index 5ab2c0b7b3..e62f51fd16 100644 --- a/src/Umbraco.Core/Models/ContentModel.cs +++ b/src/Umbraco.Core/Models/ContentModel.cs @@ -1,7 +1,7 @@ using System; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.PublishedContent; -namespace Umbraco.Web.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents the model for the current Umbraco view. diff --git a/src/Umbraco.Core/Models/ContentModelOfTContent.cs b/src/Umbraco.Core/Models/ContentModelOfTContent.cs index 31c8cbb2c7..ab882342b5 100644 --- a/src/Umbraco.Core/Models/ContentModelOfTContent.cs +++ b/src/Umbraco.Core/Models/ContentModelOfTContent.cs @@ -1,6 +1,6 @@ -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.PublishedContent; -namespace Umbraco.Web.Models +namespace Umbraco.Cms.Core.Models { public class ContentModel : ContentModel where TContent : IPublishedContent diff --git a/src/Umbraco.Core/Models/ContentRepositoryExtensions.cs b/src/Umbraco.Core/Models/ContentRepositoryExtensions.cs index b94a3e9610..a50890bee0 100644 --- a/src/Umbraco.Core/Models/ContentRepositoryExtensions.cs +++ b/src/Umbraco.Core/Models/ContentRepositoryExtensions.cs @@ -1,8 +1,9 @@ using System; using System.Collections.Generic; using System.Linq; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Models +namespace Umbraco.Extensions { /// /// Extension methods used to manipulate content variations by the document repository diff --git a/src/Umbraco.Core/Models/ContentSchedule.cs b/src/Umbraco.Core/Models/ContentSchedule.cs index 4dba0456b0..ce4686a7b1 100644 --- a/src/Umbraco.Core/Models/ContentSchedule.cs +++ b/src/Umbraco.Core/Models/ContentSchedule.cs @@ -1,7 +1,8 @@ using System; using System.Runtime.Serialization; +using Umbraco.Extensions; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents a scheduled action for a document. diff --git a/src/Umbraco.Core/Models/ContentScheduleAction.cs b/src/Umbraco.Core/Models/ContentScheduleAction.cs index 0816f17731..03be526814 100644 --- a/src/Umbraco.Core/Models/ContentScheduleAction.cs +++ b/src/Umbraco.Core/Models/ContentScheduleAction.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Defines scheduled actions for documents. diff --git a/src/Umbraco.Core/Models/ContentScheduleCollection.cs b/src/Umbraco.Core/Models/ContentScheduleCollection.cs index 0ebcc0fe4b..34e1dcea3f 100644 --- a/src/Umbraco.Core/Models/ContentScheduleCollection.cs +++ b/src/Umbraco.Core/Models/ContentScheduleCollection.cs @@ -1,10 +1,10 @@ using System; -using System.Linq; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Collections.Specialized; +using System.Linq; +using Umbraco.Extensions; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { public class ContentScheduleCollection : INotifyCollectionChanged, IDeepCloneable, IEquatable { diff --git a/src/Umbraco.Core/Models/ContentStatus.cs b/src/Umbraco.Core/Models/ContentStatus.cs index 1d35844874..15d5d59861 100644 --- a/src/Umbraco.Core/Models/ContentStatus.cs +++ b/src/Umbraco.Core/Models/ContentStatus.cs @@ -1,7 +1,7 @@ using System; using System.Runtime.Serialization; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Describes the states of a document, with regard to (schedule) publishing. @@ -14,7 +14,7 @@ namespace Umbraco.Core.Models // Unpublished (add release date)-> AwaitingRelease (release)-> Published (expire)-> Expired /// - /// The document is not trashed, and not published. + /// The document is not trashed, and not published. /// [EnumMember] Unpublished, diff --git a/src/Umbraco.Core/Models/ContentTagsExtensions.cs b/src/Umbraco.Core/Models/ContentTagsExtensions.cs index 60f0cc69fb..ed9d1fad12 100644 --- a/src/Umbraco.Core/Models/ContentTagsExtensions.cs +++ b/src/Umbraco.Core/Models/ContentTagsExtensions.cs @@ -1,10 +1,11 @@ using System; using System.Collections.Generic; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; -namespace Umbraco.Core.Models +namespace Umbraco.Extensions { /// /// Provides extension methods for the class, to manage tags. diff --git a/src/Umbraco.Core/Models/ContentType.cs b/src/Umbraco.Core/Models/ContentType.cs index 364544e464..9a0e1a6854 100644 --- a/src/Umbraco.Core/Models/ContentType.cs +++ b/src/Umbraco.Core/Models/ContentType.cs @@ -1,11 +1,11 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Reflection; using System.Runtime.Serialization; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Strings; +using Umbraco.Extensions; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents the content type that a object is based on @@ -65,7 +65,7 @@ namespace Umbraco.Core.Models get { return AllowedTemplates.FirstOrDefault(x => x != null && x.Id == DefaultTemplateId); } } - + [DataMember] public int DefaultTemplateId { diff --git a/src/Umbraco.Core/Models/ContentTypeAvailableCompositionsResult.cs b/src/Umbraco.Core/Models/ContentTypeAvailableCompositionsResult.cs index 6bf1f28907..529ae0bbe6 100644 --- a/src/Umbraco.Core/Models/ContentTypeAvailableCompositionsResult.cs +++ b/src/Umbraco.Core/Models/ContentTypeAvailableCompositionsResult.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Used when determining available compositions for a given content type diff --git a/src/Umbraco.Core/Models/ContentTypeAvailableCompositionsResults.cs b/src/Umbraco.Core/Models/ContentTypeAvailableCompositionsResults.cs index 3d863d83c1..180552cd74 100644 --- a/src/Umbraco.Core/Models/ContentTypeAvailableCompositionsResults.cs +++ b/src/Umbraco.Core/Models/ContentTypeAvailableCompositionsResults.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.Linq; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Used when determining available compositions for a given content type diff --git a/src/Umbraco.Core/Models/ContentTypeBase.cs b/src/Umbraco.Core/Models/ContentTypeBase.cs index cb1531d739..2bda8d5751 100644 --- a/src/Umbraco.Core/Models/ContentTypeBase.cs +++ b/src/Umbraco.Core/Models/ContentTypeBase.cs @@ -4,10 +4,11 @@ using System.Collections.Specialized; using System.Diagnostics; using System.Linq; using System.Runtime.Serialization; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Strings; +using Umbraco.Extensions; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents an abstract class for base ContentType properties and methods diff --git a/src/Umbraco.Core/Models/ContentTypeBaseExtensions.cs b/src/Umbraco.Core/Models/ContentTypeBaseExtensions.cs index 35c7b8e164..d771efa12b 100644 --- a/src/Umbraco.Core/Models/ContentTypeBaseExtensions.cs +++ b/src/Umbraco.Core/Models/ContentTypeBaseExtensions.cs @@ -1,10 +1,9 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; -namespace Umbraco.Core.Models +namespace Umbraco.Extensions { /// /// Provides extensions methods for . diff --git a/src/Umbraco.Core/Models/ContentTypeCompositionBase.cs b/src/Umbraco.Core/Models/ContentTypeCompositionBase.cs index 0f37b2ecab..bfe6bae659 100644 --- a/src/Umbraco.Core/Models/ContentTypeCompositionBase.cs +++ b/src/Umbraco.Core/Models/ContentTypeCompositionBase.cs @@ -2,10 +2,10 @@ using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; -using Umbraco.Core.Exceptions; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Exceptions; +using Umbraco.Cms.Core.Strings; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents an abstract class for composition specific ContentType properties and methods diff --git a/src/Umbraco.Core/Models/ContentTypeImportModel.cs b/src/Umbraco.Core/Models/ContentTypeImportModel.cs index f6f7988ba7..46f091f039 100644 --- a/src/Umbraco.Core/Models/ContentTypeImportModel.cs +++ b/src/Umbraco.Core/Models/ContentTypeImportModel.cs @@ -1,8 +1,8 @@ using System.Collections.Generic; using System.Runtime.Serialization; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Models.ContentEditing; -namespace Umbraco.Web.Models +namespace Umbraco.Cms.Core.Models { [DataContract(Name = "contentTypeImportModel")] public class ContentTypeImportModel : INotificationModel diff --git a/src/Umbraco.Core/Models/ContentTypeSort.cs b/src/Umbraco.Core/Models/ContentTypeSort.cs index d5b58084b1..fb595ef43f 100644 --- a/src/Umbraco.Core/Models/ContentTypeSort.cs +++ b/src/Umbraco.Core/Models/ContentTypeSort.cs @@ -1,7 +1,7 @@ using System; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents a POCO for setting sort order on a ContentType reference diff --git a/src/Umbraco.Core/Models/ContentVariation.cs b/src/Umbraco.Core/Models/ContentVariation.cs index 486f0e54f2..00c7f197a8 100644 --- a/src/Umbraco.Core/Models/ContentVariation.cs +++ b/src/Umbraco.Core/Models/ContentVariation.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Indicates how values can vary. diff --git a/src/Umbraco.Core/Models/CultureImpact.cs b/src/Umbraco.Core/Models/CultureImpact.cs index eeb7fa82a3..1f8e938c63 100644 --- a/src/Umbraco.Core/Models/CultureImpact.cs +++ b/src/Umbraco.Core/Models/CultureImpact.cs @@ -1,7 +1,8 @@ using System; using System.Linq; +using Umbraco.Extensions; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents the impact of a culture set. diff --git a/src/Umbraco.Core/Models/DataType.cs b/src/Umbraco.Core/Models/DataType.cs index b9fe055d4d..b60c3b85fb 100644 --- a/src/Umbraco.Core/Models/DataType.cs +++ b/src/Umbraco.Core/Models/DataType.cs @@ -1,11 +1,11 @@ using System; using System.Collections.Generic; using System.Runtime.Serialization; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Serialization; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Implements . diff --git a/src/Umbraco.Core/Models/DataTypeExtensions.cs b/src/Umbraco.Core/Models/DataTypeExtensions.cs index 4f4bd4d6c3..a7bef7b9a9 100644 --- a/src/Umbraco.Core/Models/DataTypeExtensions.cs +++ b/src/Umbraco.Core/Models/DataTypeExtensions.cs @@ -1,10 +1,9 @@ using System; using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Models +namespace Umbraco.Extensions { /// /// Provides extensions methods for . diff --git a/src/Umbraco.Core/Models/DeepCloneHelper.cs b/src/Umbraco.Core/Models/DeepCloneHelper.cs index 453b455d4b..ab8f323e7d 100644 --- a/src/Umbraco.Core/Models/DeepCloneHelper.cs +++ b/src/Umbraco.Core/Models/DeepCloneHelper.cs @@ -4,9 +4,9 @@ using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Reflection; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { public static class DeepCloneHelper { diff --git a/src/Umbraco.Core/Models/DictionaryItem.cs b/src/Umbraco.Core/Models/DictionaryItem.cs index c23e8f86a4..2bd4d3db6f 100644 --- a/src/Umbraco.Core/Models/DictionaryItem.cs +++ b/src/Umbraco.Core/Models/DictionaryItem.cs @@ -2,9 +2,10 @@ using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Extensions; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents a Dictionary Item diff --git a/src/Umbraco.Core/Models/DictionaryItemExtensions.cs b/src/Umbraco.Core/Models/DictionaryItemExtensions.cs index edcf15dd88..ba0a655c75 100644 --- a/src/Umbraco.Core/Models/DictionaryItemExtensions.cs +++ b/src/Umbraco.Core/Models/DictionaryItemExtensions.cs @@ -1,6 +1,7 @@ using System.Linq; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Models +namespace Umbraco.Extensions { public static class DictionaryItemExtensions { diff --git a/src/Umbraco.Core/Models/DictionaryTranslation.cs b/src/Umbraco.Core/Models/DictionaryTranslation.cs index a00f9e887f..22833882f7 100644 --- a/src/Umbraco.Core/Models/DictionaryTranslation.cs +++ b/src/Umbraco.Core/Models/DictionaryTranslation.cs @@ -1,8 +1,8 @@ using System; using System.Runtime.Serialization; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents a translation for a diff --git a/src/Umbraco.Core/Models/DoNotCloneAttribute.cs b/src/Umbraco.Core/Models/DoNotCloneAttribute.cs index 5cce9777cb..39a7bcd900 100644 --- a/src/Umbraco.Core/Models/DoNotCloneAttribute.cs +++ b/src/Umbraco.Core/Models/DoNotCloneAttribute.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Used to attribute properties that have a setter and are a reference type diff --git a/src/Umbraco.Core/Models/Editors/ContentPropertyData.cs b/src/Umbraco.Core/Models/Editors/ContentPropertyData.cs index c51b1c4f51..548691ab50 100644 --- a/src/Umbraco.Core/Models/Editors/ContentPropertyData.cs +++ b/src/Umbraco.Core/Models/Editors/ContentPropertyData.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Models.Editors +namespace Umbraco.Cms.Core.Models.Editors { /// /// Represents data that has been submitted to be saved for a content property diff --git a/src/Umbraco.Core/Models/Editors/ContentPropertyFile.cs b/src/Umbraco.Core/Models/Editors/ContentPropertyFile.cs index f27feba8cf..9c1806cf08 100644 --- a/src/Umbraco.Core/Models/Editors/ContentPropertyFile.cs +++ b/src/Umbraco.Core/Models/Editors/ContentPropertyFile.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models.Editors +namespace Umbraco.Cms.Core.Models.Editors { /// @@ -22,7 +22,7 @@ public string Segment { get; set; } /// - /// An array of metadata that is parsed out from the file info posted to the server which is set on the client. + /// An array of metadata that is parsed out from the file info posted to the server which is set on the client. /// /// /// This can be used for property types like Nested Content that need to have special unique identifiers for each file since there might be multiple files diff --git a/src/Umbraco.Core/Models/Editors/UmbracoEntityReference.cs b/src/Umbraco.Core/Models/Editors/UmbracoEntityReference.cs index fa7fb398f0..acd56f5642 100644 --- a/src/Umbraco.Core/Models/Editors/UmbracoEntityReference.cs +++ b/src/Umbraco.Core/Models/Editors/UmbracoEntityReference.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; -namespace Umbraco.Core.Models.Editors +namespace Umbraco.Cms.Core.Models.Editors { /// /// Used to track reference to other entities in a property value diff --git a/src/Umbraco.Core/Models/EmailMessage.cs b/src/Umbraco.Core/Models/EmailMessage.cs index 11483e1b20..964e6e81ec 100644 --- a/src/Umbraco.Core/Models/EmailMessage.cs +++ b/src/Umbraco.Core/Models/EmailMessage.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { public class EmailMessage { diff --git a/src/Umbraco.Core/Models/Entities/BeingDirty.cs b/src/Umbraco.Core/Models/Entities/BeingDirty.cs index 92b4ab5c4b..7128e0ca65 100644 --- a/src/Umbraco.Core/Models/Entities/BeingDirty.cs +++ b/src/Umbraco.Core/Models/Entities/BeingDirty.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace Umbraco.Core.Models.Entities +namespace Umbraco.Cms.Core.Models.Entities { /// /// Provides a concrete implementation of . diff --git a/src/Umbraco.Core/Models/Entities/BeingDirtyBase.cs b/src/Umbraco.Core/Models/Entities/BeingDirtyBase.cs index a1f4bad9a1..45f1ad1a4f 100644 --- a/src/Umbraco.Core/Models/Entities/BeingDirtyBase.cs +++ b/src/Umbraco.Core/Models/Entities/BeingDirtyBase.cs @@ -5,7 +5,7 @@ using System.ComponentModel; using System.Linq; using System.Runtime.Serialization; -namespace Umbraco.Core.Models.Entities +namespace Umbraco.Cms.Core.Models.Entities { /// /// Provides a base implementation of and . diff --git a/src/Umbraco.Core/Models/Entities/ContentEntitySlim.cs b/src/Umbraco.Core/Models/Entities/ContentEntitySlim.cs index 6eeed53a89..45d23d26d4 100644 --- a/src/Umbraco.Core/Models/Entities/ContentEntitySlim.cs +++ b/src/Umbraco.Core/Models/Entities/ContentEntitySlim.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models.Entities +namespace Umbraco.Cms.Core.Models.Entities { /// /// Implements . @@ -14,4 +14,4 @@ /// public string ContentTypeThumbnail { get; set; } } -} \ No newline at end of file +} diff --git a/src/Umbraco.Core/Models/Entities/DocumentEntitySlim.cs b/src/Umbraco.Core/Models/Entities/DocumentEntitySlim.cs index 8536b1ded3..b5aca80087 100644 --- a/src/Umbraco.Core/Models/Entities/DocumentEntitySlim.cs +++ b/src/Umbraco.Core/Models/Entities/DocumentEntitySlim.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.Linq; -namespace Umbraco.Core.Models.Entities +namespace Umbraco.Cms.Core.Models.Entities { /// @@ -43,6 +43,6 @@ namespace Umbraco.Core.Models.Entities /// public bool Edited { get; set; } - + } } diff --git a/src/Umbraco.Core/Models/Entities/EntityBase.cs b/src/Umbraco.Core/Models/Entities/EntityBase.cs index d848d3f404..77c497c68a 100644 --- a/src/Umbraco.Core/Models/Entities/EntityBase.cs +++ b/src/Umbraco.Core/Models/Entities/EntityBase.cs @@ -2,7 +2,7 @@ using System.Diagnostics; using System.Runtime.Serialization; -namespace Umbraco.Core.Models.Entities +namespace Umbraco.Cms.Core.Models.Entities { /// /// Provides a base class for entities. @@ -80,7 +80,7 @@ namespace Umbraco.Core.Models.Entities _id = default; _key = Guid.Empty; _hasIdentity = false; - } + } public virtual bool Equals(EntityBase other) { diff --git a/src/Umbraco.Core/Models/Entities/EntityExtensions.cs b/src/Umbraco.Core/Models/Entities/EntityExtensions.cs index 2df08f207d..ba3421349d 100644 --- a/src/Umbraco.Core/Models/Entities/EntityExtensions.cs +++ b/src/Umbraco.Core/Models/Entities/EntityExtensions.cs @@ -1,6 +1,10 @@ -using System; +// Copyright (c) Umbraco. +// See LICENSE for more details. -namespace Umbraco.Core.Models.Entities +using System; +using Umbraco.Cms.Core.Models.Entities; + +namespace Umbraco.Extensions { public static class EntityExtensions { diff --git a/src/Umbraco.Core/Models/Entities/EntitySlim.cs b/src/Umbraco.Core/Models/Entities/EntitySlim.cs index 489601cf66..3bf91bc5be 100644 --- a/src/Umbraco.Core/Models/Entities/EntitySlim.cs +++ b/src/Umbraco.Core/Models/Entities/EntitySlim.cs @@ -1,11 +1,8 @@ using System; using System.Collections.Generic; -using System.ComponentModel; -using System.Linq; using System.Runtime.Serialization; -using Umbraco.Core.Exceptions; -namespace Umbraco.Core.Models.Entities +namespace Umbraco.Cms.Core.Models.Entities { /// /// Implementation of for internal use. diff --git a/src/Umbraco.Core/Models/Entities/ICanBeDirty.cs b/src/Umbraco.Core/Models/Entities/ICanBeDirty.cs index 03e2f19c70..d8644431d5 100644 --- a/src/Umbraco.Core/Models/Entities/ICanBeDirty.cs +++ b/src/Umbraco.Core/Models/Entities/ICanBeDirty.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.ComponentModel; -namespace Umbraco.Core.Models.Entities +namespace Umbraco.Cms.Core.Models.Entities { /// /// Defines an entity that tracks property changes and can be dirty. diff --git a/src/Umbraco.Core/Models/Entities/IContentEntitySlim.cs b/src/Umbraco.Core/Models/Entities/IContentEntitySlim.cs index 9ab557b02c..43de032894 100644 --- a/src/Umbraco.Core/Models/Entities/IContentEntitySlim.cs +++ b/src/Umbraco.Core/Models/Entities/IContentEntitySlim.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models.Entities +namespace Umbraco.Cms.Core.Models.Entities { /// /// Represents a lightweight content entity, managed by the entity service. diff --git a/src/Umbraco.Core/Models/Entities/IDocumentEntitySlim.cs b/src/Umbraco.Core/Models/Entities/IDocumentEntitySlim.cs index 0258d49114..d160e144bb 100644 --- a/src/Umbraco.Core/Models/Entities/IDocumentEntitySlim.cs +++ b/src/Umbraco.Core/Models/Entities/IDocumentEntitySlim.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace Umbraco.Core.Models.Entities +namespace Umbraco.Cms.Core.Models.Entities { /// diff --git a/src/Umbraco.Core/Models/Entities/IEntity.cs b/src/Umbraco.Core/Models/Entities/IEntity.cs index 7aafcbeccb..6aeea58553 100644 --- a/src/Umbraco.Core/Models/Entities/IEntity.cs +++ b/src/Umbraco.Core/Models/Entities/IEntity.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Models.Entities +namespace Umbraco.Cms.Core.Models.Entities { /// /// Defines an entity. diff --git a/src/Umbraco.Core/Models/Entities/IEntitySlim.cs b/src/Umbraco.Core/Models/Entities/IEntitySlim.cs index 116d5c2b44..dfdb00edaa 100644 --- a/src/Umbraco.Core/Models/Entities/IEntitySlim.cs +++ b/src/Umbraco.Core/Models/Entities/IEntitySlim.cs @@ -1,7 +1,6 @@ using System; -using System.Collections.Generic; -namespace Umbraco.Core.Models.Entities +namespace Umbraco.Cms.Core.Models.Entities { /// /// Represents a lightweight entity, managed by the entity service. diff --git a/src/Umbraco.Core/Models/Entities/IHaveAdditionalData.cs b/src/Umbraco.Core/Models/Entities/IHaveAdditionalData.cs index 597856b86d..d36d190706 100644 --- a/src/Umbraco.Core/Models/Entities/IHaveAdditionalData.cs +++ b/src/Umbraco.Core/Models/Entities/IHaveAdditionalData.cs @@ -1,10 +1,6 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; +using System.Collections.Generic; -namespace Umbraco.Core.Models.Entities +namespace Umbraco.Cms.Core.Models.Entities { /// /// Provides support for additional data. diff --git a/src/Umbraco.Core/Models/Entities/IMediaEntitySlim.cs b/src/Umbraco.Core/Models/Entities/IMediaEntitySlim.cs index f7daf79ec9..15060e3a45 100644 --- a/src/Umbraco.Core/Models/Entities/IMediaEntitySlim.cs +++ b/src/Umbraco.Core/Models/Entities/IMediaEntitySlim.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models.Entities +namespace Umbraco.Cms.Core.Models.Entities { /// /// Represents a lightweight media entity, managed by the entity service. diff --git a/src/Umbraco.Core/Models/Entities/IMemberEntitySlim.cs b/src/Umbraco.Core/Models/Entities/IMemberEntitySlim.cs index 050a999cc2..a43607fda7 100644 --- a/src/Umbraco.Core/Models/Entities/IMemberEntitySlim.cs +++ b/src/Umbraco.Core/Models/Entities/IMemberEntitySlim.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models.Entities +namespace Umbraco.Cms.Core.Models.Entities { public interface IMemberEntitySlim : IContentEntitySlim { diff --git a/src/Umbraco.Core/Models/Entities/IRememberBeingDirty.cs b/src/Umbraco.Core/Models/Entities/IRememberBeingDirty.cs index e679b98b93..618bab2698 100644 --- a/src/Umbraco.Core/Models/Entities/IRememberBeingDirty.cs +++ b/src/Umbraco.Core/Models/Entities/IRememberBeingDirty.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace Umbraco.Core.Models.Entities +namespace Umbraco.Cms.Core.Models.Entities { /// /// Defines an entity that tracks property changes and can be dirty, and remembers diff --git a/src/Umbraco.Core/Models/Entities/ITreeEntity.cs b/src/Umbraco.Core/Models/Entities/ITreeEntity.cs index ab63e1e1d8..b970f46726 100644 --- a/src/Umbraco.Core/Models/Entities/ITreeEntity.cs +++ b/src/Umbraco.Core/Models/Entities/ITreeEntity.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models.Entities +namespace Umbraco.Cms.Core.Models.Entities { /// /// Defines an entity that belongs to a tree. diff --git a/src/Umbraco.Core/Models/Entities/IUmbracoEntity.cs b/src/Umbraco.Core/Models/Entities/IUmbracoEntity.cs index f76ec2438a..d89e5d9312 100644 --- a/src/Umbraco.Core/Models/Entities/IUmbracoEntity.cs +++ b/src/Umbraco.Core/Models/Entities/IUmbracoEntity.cs @@ -1,6 +1,4 @@ -using System.Collections.Generic; - -namespace Umbraco.Core.Models.Entities +namespace Umbraco.Cms.Core.Models.Entities { /// diff --git a/src/Umbraco.Core/Models/Entities/IValueObject.cs b/src/Umbraco.Core/Models/Entities/IValueObject.cs index 2d2e69e7ae..e1b7ea01a6 100644 --- a/src/Umbraco.Core/Models/Entities/IValueObject.cs +++ b/src/Umbraco.Core/Models/Entities/IValueObject.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models.Entities +namespace Umbraco.Cms.Core.Models.Entities { /// /// Marker interface for value object, eg. objects without diff --git a/src/Umbraco.Core/Models/Entities/MediaEntitySlim.cs b/src/Umbraco.Core/Models/Entities/MediaEntitySlim.cs index 6292a5a35a..41d024de3b 100644 --- a/src/Umbraco.Core/Models/Entities/MediaEntitySlim.cs +++ b/src/Umbraco.Core/Models/Entities/MediaEntitySlim.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models.Entities +namespace Umbraco.Cms.Core.Models.Entities { /// /// Implements . diff --git a/src/Umbraco.Core/Models/Entities/MemberEntitySlim.cs b/src/Umbraco.Core/Models/Entities/MemberEntitySlim.cs index 338f363856..66e3650fc5 100644 --- a/src/Umbraco.Core/Models/Entities/MemberEntitySlim.cs +++ b/src/Umbraco.Core/Models/Entities/MemberEntitySlim.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models.Entities +namespace Umbraco.Cms.Core.Models.Entities { public class MemberEntitySlim : ContentEntitySlim, IMemberEntitySlim { diff --git a/src/Umbraco.Core/Models/Entities/TreeEntityBase.cs b/src/Umbraco.Core/Models/Entities/TreeEntityBase.cs index 937d7ab0fc..629e01a706 100644 --- a/src/Umbraco.Core/Models/Entities/TreeEntityBase.cs +++ b/src/Umbraco.Core/Models/Entities/TreeEntityBase.cs @@ -1,7 +1,7 @@ using System; using System.Runtime.Serialization; -namespace Umbraco.Core.Models.Entities +namespace Umbraco.Cms.Core.Models.Entities { /// /// Provides a base class for tree entities. diff --git a/src/Umbraco.Core/Models/Entities/TreeEntityPath.cs b/src/Umbraco.Core/Models/Entities/TreeEntityPath.cs index 54142a7527..a9a1e339df 100644 --- a/src/Umbraco.Core/Models/Entities/TreeEntityPath.cs +++ b/src/Umbraco.Core/Models/Entities/TreeEntityPath.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models.Entities +namespace Umbraco.Cms.Core.Models.Entities { /// /// Represents the path of a tree entity. diff --git a/src/Umbraco.Core/Models/EntityContainer.cs b/src/Umbraco.Core/Models/EntityContainer.cs index 5c2ada7149..31a72356db 100644 --- a/src/Umbraco.Core/Models/EntityContainer.cs +++ b/src/Umbraco.Core/Models/EntityContainer.cs @@ -1,9 +1,9 @@ using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents a folder for organizing entities such as content types and data types. diff --git a/src/Umbraco.Core/Models/File.cs b/src/Umbraco.Core/Models/File.cs index b2be44d020..7c7031a027 100644 --- a/src/Umbraco.Core/Models/File.cs +++ b/src/Umbraco.Core/Models/File.cs @@ -1,8 +1,8 @@ using System; using System.Runtime.Serialization; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents an abstract file which provides basic functionality for a File with an Alias and Name diff --git a/src/Umbraco.Core/Models/Folder.cs b/src/Umbraco.Core/Models/Folder.cs index 9889726fdc..810bcaf3b3 100644 --- a/src/Umbraco.Core/Models/Folder.cs +++ b/src/Umbraco.Core/Models/Folder.cs @@ -1,6 +1,6 @@ -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { public sealed class Folder : EntityBase { diff --git a/src/Umbraco.Core/Models/EntityExtensions.cs b/src/Umbraco.Core/Models/HaveAdditionalDataExtensions.cs similarity index 72% rename from src/Umbraco.Core/Models/EntityExtensions.cs rename to src/Umbraco.Core/Models/HaveAdditionalDataExtensions.cs index 5ef68e99ea..033bb26d26 100644 --- a/src/Umbraco.Core/Models/EntityExtensions.cs +++ b/src/Umbraco.Core/Models/HaveAdditionalDataExtensions.cs @@ -1,8 +1,11 @@ -using Umbraco.Core.Models.Entities; +// Copyright (c) Umbraco. +// See LICENSE for more details. -namespace Umbraco.Core.Models +using Umbraco.Cms.Core.Models.Entities; + +namespace Umbraco.Extensions { - public static class EntityExtensions + public static class HaveAdditionalDataExtensions { /// /// Gets additional data. diff --git a/src/Umbraco.Core/Models/IAuditEntry.cs b/src/Umbraco.Core/Models/IAuditEntry.cs index c097f84752..c756a80004 100644 --- a/src/Umbraco.Core/Models/IAuditEntry.cs +++ b/src/Umbraco.Core/Models/IAuditEntry.cs @@ -1,7 +1,7 @@ using System; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents an audited event. diff --git a/src/Umbraco.Core/Models/IAuditItem.cs b/src/Umbraco.Core/Models/IAuditItem.cs index ed70ada8ad..4189b49410 100644 --- a/src/Umbraco.Core/Models/IAuditItem.cs +++ b/src/Umbraco.Core/Models/IAuditItem.cs @@ -1,6 +1,6 @@ -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents an audit item. diff --git a/src/Umbraco.Core/Models/IConsent.cs b/src/Umbraco.Core/Models/IConsent.cs index 7e0156fd6e..b02cd42282 100644 --- a/src/Umbraco.Core/Models/IConsent.cs +++ b/src/Umbraco.Core/Models/IConsent.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents a consent state. diff --git a/src/Umbraco.Core/Models/IContent.cs b/src/Umbraco.Core/Models/IContent.cs index 7a4fc83253..516d82b7bb 100644 --- a/src/Umbraco.Core/Models/IContent.cs +++ b/src/Umbraco.Core/Models/IContent.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// diff --git a/src/Umbraco.Core/Models/IContentBase.cs b/src/Umbraco.Core/Models/IContentBase.cs index 1aade803b8..4900ab00e1 100644 --- a/src/Umbraco.Core/Models/IContentBase.cs +++ b/src/Umbraco.Core/Models/IContentBase.cs @@ -1,8 +1,8 @@ using System; using System.Collections.Generic; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Provides a base class for content items. diff --git a/src/Umbraco.Core/Models/IContentModel.cs b/src/Umbraco.Core/Models/IContentModel.cs index 692547aa3e..8aa8c18306 100644 --- a/src/Umbraco.Core/Models/IContentModel.cs +++ b/src/Umbraco.Core/Models/IContentModel.cs @@ -1,7 +1,6 @@ -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.PublishedContent; -namespace Umbraco.Web.Models +namespace Umbraco.Cms.Core.Models { /// /// The basic view model returned for front-end Umbraco controllers diff --git a/src/Umbraco.Core/Models/IContentType.cs b/src/Umbraco.Core/Models/IContentType.cs index e071bd7c82..f04a73d5e0 100644 --- a/src/Umbraco.Core/Models/IContentType.cs +++ b/src/Umbraco.Core/Models/IContentType.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Defines a ContentType, which Content is based on diff --git a/src/Umbraco.Core/Models/IContentTypeBase.cs b/src/Umbraco.Core/Models/IContentTypeBase.cs index d65e2dcdfb..d0dc798eca 100644 --- a/src/Umbraco.Core/Models/IContentTypeBase.cs +++ b/src/Umbraco.Core/Models/IContentTypeBase.cs @@ -1,8 +1,7 @@ -using System; -using System.Collections.Generic; -using Umbraco.Core.Models.Entities; +using System.Collections.Generic; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Defines the base for a ContentType with properties that diff --git a/src/Umbraco.Core/Models/IContentTypeComposition.cs b/src/Umbraco.Core/Models/IContentTypeComposition.cs index cf60b121af..296cd58781 100644 --- a/src/Umbraco.Core/Models/IContentTypeComposition.cs +++ b/src/Umbraco.Core/Models/IContentTypeComposition.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Defines the Composition of a ContentType diff --git a/src/Umbraco.Core/Models/IDataType.cs b/src/Umbraco.Core/Models/IDataType.cs index 39278abdc1..4c6d0a3e31 100644 --- a/src/Umbraco.Core/Models/IDataType.cs +++ b/src/Umbraco.Core/Models/IDataType.cs @@ -1,7 +1,7 @@ -using Umbraco.Core.Models.Entities; -using Umbraco.Core.PropertyEditors; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.PropertyEditors; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents a data type. diff --git a/src/Umbraco.Core/Models/IDataValueEditor.cs b/src/Umbraco.Core/Models/IDataValueEditor.cs index 0ac61b92ce..aef9fcf94b 100644 --- a/src/Umbraco.Core/Models/IDataValueEditor.cs +++ b/src/Umbraco.Core/Models/IDataValueEditor.cs @@ -1,11 +1,11 @@ using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Xml.Linq; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Editors; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Models.Editors; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Services; -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.Models { /// diff --git a/src/Umbraco.Core/Models/IDeepCloneable.cs b/src/Umbraco.Core/Models/IDeepCloneable.cs index 057326b3c7..a7568b7e81 100644 --- a/src/Umbraco.Core/Models/IDeepCloneable.cs +++ b/src/Umbraco.Core/Models/IDeepCloneable.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Provides a mean to deep-clone an object. diff --git a/src/Umbraco.Core/Models/IDictionaryItem.cs b/src/Umbraco.Core/Models/IDictionaryItem.cs index 1176eb3833..f299ce2ac5 100644 --- a/src/Umbraco.Core/Models/IDictionaryItem.cs +++ b/src/Umbraco.Core/Models/IDictionaryItem.cs @@ -1,9 +1,9 @@ using System; using System.Collections.Generic; using System.Runtime.Serialization; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { public interface IDictionaryItem : IEntity, IRememberBeingDirty { diff --git a/src/Umbraco.Core/Models/IDictionaryTranslation.cs b/src/Umbraco.Core/Models/IDictionaryTranslation.cs index 8510e5c520..c80318d073 100644 --- a/src/Umbraco.Core/Models/IDictionaryTranslation.cs +++ b/src/Umbraco.Core/Models/IDictionaryTranslation.cs @@ -1,7 +1,7 @@ using System.Runtime.Serialization; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { public interface IDictionaryTranslation : IEntity, IRememberBeingDirty { diff --git a/src/Umbraco.Core/Models/IDomain.cs b/src/Umbraco.Core/Models/IDomain.cs index 55d5bc88c2..d855c5aa1b 100644 --- a/src/Umbraco.Core/Models/IDomain.cs +++ b/src/Umbraco.Core/Models/IDomain.cs @@ -1,6 +1,6 @@ -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { public interface IDomain : IEntity, IRememberBeingDirty { diff --git a/src/Umbraco.Core/Models/IFile.cs b/src/Umbraco.Core/Models/IFile.cs index 835c9bf434..48a2e234b6 100644 --- a/src/Umbraco.Core/Models/IFile.cs +++ b/src/Umbraco.Core/Models/IFile.cs @@ -1,7 +1,6 @@ -using System; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Defines a File @@ -43,6 +42,6 @@ namespace Umbraco.Core.Models /// Gets or sets the file's virtual path (i.e. the file path relative to the root of the website) /// string VirtualPath { get; set; } - + } } diff --git a/src/Umbraco.Core/Models/IKeyValue.cs b/src/Umbraco.Core/Models/IKeyValue.cs index 6025d4d37b..52c1f5c568 100644 --- a/src/Umbraco.Core/Models/IKeyValue.cs +++ b/src/Umbraco.Core/Models/IKeyValue.cs @@ -1,7 +1,6 @@ -using System; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { public interface IKeyValue : IEntity { diff --git a/src/Umbraco.Core/Models/ILanguage.cs b/src/Umbraco.Core/Models/ILanguage.cs index c0d2fed839..363f8df138 100644 --- a/src/Umbraco.Core/Models/ILanguage.cs +++ b/src/Umbraco.Core/Models/ILanguage.cs @@ -1,8 +1,8 @@ using System.Globalization; using System.Runtime.Serialization; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents a language. diff --git a/src/Umbraco.Core/Models/IMacro.cs b/src/Umbraco.Core/Models/IMacro.cs index 9d1c47154c..e91da77774 100644 --- a/src/Umbraco.Core/Models/IMacro.cs +++ b/src/Umbraco.Core/Models/IMacro.cs @@ -1,9 +1,7 @@ -using System; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Umbraco.Core.Models.Entities; +using System.Runtime.Serialization; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Defines a Macro @@ -51,7 +49,7 @@ namespace Umbraco.Core.Models /// [DataMember] bool DontRender { get; set; } - + /// /// Gets or set the path to the macro source to render /// diff --git a/src/Umbraco.Core/Models/IMacroProperty.cs b/src/Umbraco.Core/Models/IMacroProperty.cs index a414c285c7..609c1bf044 100644 --- a/src/Umbraco.Core/Models/IMacroProperty.cs +++ b/src/Umbraco.Core/Models/IMacroProperty.cs @@ -1,8 +1,8 @@ using System; using System.Runtime.Serialization; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Defines a Property for a Macro diff --git a/src/Umbraco.Core/Models/IMedia.cs b/src/Umbraco.Core/Models/IMedia.cs index 75e94d66e7..cbb80fdd59 100644 --- a/src/Umbraco.Core/Models/IMedia.cs +++ b/src/Umbraco.Core/Models/IMedia.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { public interface IMedia : IContentBase { } diff --git a/src/Umbraco.Core/Models/IMediaType.cs b/src/Umbraco.Core/Models/IMediaType.cs index 90fdc97ad7..13655f0f55 100644 --- a/src/Umbraco.Core/Models/IMediaType.cs +++ b/src/Umbraco.Core/Models/IMediaType.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Defines a ContentType, which Media is based on diff --git a/src/Umbraco.Core/Models/IMediaUrlGenerator.cs b/src/Umbraco.Core/Models/IMediaUrlGenerator.cs index 41e1be8d6c..5d649ecd8a 100644 --- a/src/Umbraco.Core/Models/IMediaUrlGenerator.cs +++ b/src/Umbraco.Core/Models/IMediaUrlGenerator.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.Models { /// /// Used to generate paths to media items for a specified property editor alias @@ -6,7 +6,7 @@ public interface IMediaUrlGenerator { /// - /// Tries to get a media path for a given property editor alias + /// Tries to get a media path for a given property editor alias /// /// The property editor alias /// The value of the property diff --git a/src/Umbraco.Core/Models/IMember.cs b/src/Umbraco.Core/Models/IMember.cs index c46eb512c5..c78d1012a9 100644 --- a/src/Umbraco.Core/Models/IMember.cs +++ b/src/Umbraco.Core/Models/IMember.cs @@ -1,9 +1,9 @@ using System; using System.ComponentModel; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Models.Membership; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Membership; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { public interface IMember : IContentBase, IMembershipUser, IHaveAdditionalData { @@ -13,7 +13,7 @@ namespace Umbraco.Core.Models string ContentTypeAlias { get; } /// - /// Internal/Experimental - only used for mapping queries. + /// Internal/Experimental - only used for mapping queries. /// /// /// Adding these to have first level properties instead of the Properties collection. @@ -21,7 +21,7 @@ namespace Umbraco.Core.Models [EditorBrowsable(EditorBrowsableState.Never)] string LongStringPropertyValue { get; set; } /// - /// Internal/Experimental - only used for mapping queries. + /// Internal/Experimental - only used for mapping queries. /// /// /// Adding these to have first level properties instead of the Properties collection. @@ -29,7 +29,7 @@ namespace Umbraco.Core.Models [EditorBrowsable(EditorBrowsableState.Never)] string ShortStringPropertyValue { get; set; } /// - /// Internal/Experimental - only used for mapping queries. + /// Internal/Experimental - only used for mapping queries. /// /// /// Adding these to have first level properties instead of the Properties collection. @@ -37,7 +37,7 @@ namespace Umbraco.Core.Models [EditorBrowsable(EditorBrowsableState.Never)] int IntegerPropertyValue { get; set; } /// - /// Internal/Experimental - only used for mapping queries. + /// Internal/Experimental - only used for mapping queries. /// /// /// Adding these to have first level properties instead of the Properties collection. @@ -45,7 +45,7 @@ namespace Umbraco.Core.Models [EditorBrowsable(EditorBrowsableState.Never)] bool BoolPropertyValue { get; set; } /// - /// Internal/Experimental - only used for mapping queries. + /// Internal/Experimental - only used for mapping queries. /// /// /// Adding these to have first level properties instead of the Properties collection. @@ -53,7 +53,7 @@ namespace Umbraco.Core.Models [EditorBrowsable(EditorBrowsableState.Never)] DateTime DateTimePropertyValue { get; set; } /// - /// Internal/Experimental - only used for mapping queries. + /// Internal/Experimental - only used for mapping queries. /// /// /// Adding these to have first level properties instead of the Properties collection. diff --git a/src/Umbraco.Core/Models/IMemberGroup.cs b/src/Umbraco.Core/Models/IMemberGroup.cs index 0b1e4a8324..ff6ba0c5b9 100644 --- a/src/Umbraco.Core/Models/IMemberGroup.cs +++ b/src/Umbraco.Core/Models/IMemberGroup.cs @@ -1,7 +1,6 @@ -using System.Collections.Generic; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents a member type diff --git a/src/Umbraco.Core/Models/IMemberType.cs b/src/Umbraco.Core/Models/IMemberType.cs index 29d78eddcb..d18b61ed98 100644 --- a/src/Umbraco.Core/Models/IMemberType.cs +++ b/src/Umbraco.Core/Models/IMemberType.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Defines a MemberType, which Member is based on diff --git a/src/Umbraco.Core/Models/IMigrationEntry.cs b/src/Umbraco.Core/Models/IMigrationEntry.cs index 5ab4853542..b5dae1981a 100644 --- a/src/Umbraco.Core/Models/IMigrationEntry.cs +++ b/src/Umbraco.Core/Models/IMigrationEntry.cs @@ -1,8 +1,7 @@ -using System; -using Semver; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Semver; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { public interface IMigrationEntry : IEntity, IRememberBeingDirty { diff --git a/src/Umbraco.Core/Models/IPartialView.cs b/src/Umbraco.Core/Models/IPartialView.cs index 31099a1aae..c45b76534d 100644 --- a/src/Umbraco.Core/Models/IPartialView.cs +++ b/src/Umbraco.Core/Models/IPartialView.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { public interface IPartialView : IFile { diff --git a/src/Umbraco.Core/Models/IProperty.cs b/src/Umbraco.Core/Models/IProperty.cs index 44e84d9b68..3991c7f2c6 100644 --- a/src/Umbraco.Core/Models/IProperty.cs +++ b/src/Umbraco.Core/Models/IProperty.cs @@ -1,8 +1,7 @@ -using System; using System.Collections.Generic; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { public interface IProperty : IEntity, IRememberBeingDirty { diff --git a/src/Umbraco.Core/Models/IPropertyCollection.cs b/src/Umbraco.Core/Models/IPropertyCollection.cs index c947a5e12d..3997856ae7 100644 --- a/src/Umbraco.Core/Models/IPropertyCollection.cs +++ b/src/Umbraco.Core/Models/IPropertyCollection.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.Collections.Specialized; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { public interface IPropertyCollection : IEnumerable, IDeepCloneable, INotifyCollectionChanged { diff --git a/src/Umbraco.Core/Models/IPropertyType.cs b/src/Umbraco.Core/Models/IPropertyType.cs index be52339d65..adb8e283ee 100644 --- a/src/Umbraco.Core/Models/IPropertyType.cs +++ b/src/Umbraco.Core/Models/IPropertyType.cs @@ -1,9 +1,7 @@ using System; -using System.ComponentModel; -using System.Runtime.Serialization; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { public interface IPropertyType : IEntity, IRememberBeingDirty { diff --git a/src/Umbraco.Core/Models/IPropertyValue.cs b/src/Umbraco.Core/Models/IPropertyValue.cs index abc459a72f..1bd391625b 100644 --- a/src/Umbraco.Core/Models/IPropertyValue.cs +++ b/src/Umbraco.Core/Models/IPropertyValue.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { public interface IPropertyValue { diff --git a/src/Umbraco.Core/Models/IRedirectUrl.cs b/src/Umbraco.Core/Models/IRedirectUrl.cs index 527dad57da..7e007559a5 100644 --- a/src/Umbraco.Core/Models/IRedirectUrl.cs +++ b/src/Umbraco.Core/Models/IRedirectUrl.cs @@ -1,8 +1,8 @@ using System; using System.Runtime.Serialization; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents a redirect URL. diff --git a/src/Umbraco.Core/Models/IRelation.cs b/src/Umbraco.Core/Models/IRelation.cs index 6bd348d72f..7a0fe756ed 100644 --- a/src/Umbraco.Core/Models/IRelation.cs +++ b/src/Umbraco.Core/Models/IRelation.cs @@ -1,8 +1,8 @@ using System; using System.Runtime.Serialization; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { public interface IRelation : IEntity, IRememberBeingDirty { diff --git a/src/Umbraco.Core/Models/IRelationType.cs b/src/Umbraco.Core/Models/IRelationType.cs index 9253fae8ab..9efde4b939 100644 --- a/src/Umbraco.Core/Models/IRelationType.cs +++ b/src/Umbraco.Core/Models/IRelationType.cs @@ -1,8 +1,8 @@ using System; using System.Runtime.Serialization; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { public interface IRelationType : IEntity, IRememberBeingDirty { diff --git a/src/Umbraco.Core/Models/IScript.cs b/src/Umbraco.Core/Models/IScript.cs index 9fdc321107..6a07d2aa25 100644 --- a/src/Umbraco.Core/Models/IScript.cs +++ b/src/Umbraco.Core/Models/IScript.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { public interface IScript : IFile { diff --git a/src/Umbraco.Core/Models/IServerRegistration.cs b/src/Umbraco.Core/Models/IServerRegistration.cs index 70d3964fc5..4aba9b10c0 100644 --- a/src/Umbraco.Core/Models/IServerRegistration.cs +++ b/src/Umbraco.Core/Models/IServerRegistration.cs @@ -1,8 +1,8 @@ using System; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Sync; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Sync; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { public interface IServerRegistration : IServerAddress, IEntity, IRememberBeingDirty { diff --git a/src/Umbraco.Core/Models/ISimpleContentType.cs b/src/Umbraco.Core/Models/ISimpleContentType.cs index 52364cfa1e..9f1ab38aca 100644 --- a/src/Umbraco.Core/Models/ISimpleContentType.cs +++ b/src/Umbraco.Core/Models/ISimpleContentType.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents a simplified view of a content type. diff --git a/src/Umbraco.Core/Models/IStylesheet.cs b/src/Umbraco.Core/Models/IStylesheet.cs index bc2d870ea4..6ef0867d16 100644 --- a/src/Umbraco.Core/Models/IStylesheet.cs +++ b/src/Umbraco.Core/Models/IStylesheet.cs @@ -1,7 +1,6 @@ using System.Collections.Generic; -using Umbraco.Core.Models.Entities; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { public interface IStylesheet : IFile { diff --git a/src/Umbraco.Core/Models/IStylesheetProperty.cs b/src/Umbraco.Core/Models/IStylesheetProperty.cs index c44a147d54..781fb474b2 100644 --- a/src/Umbraco.Core/Models/IStylesheetProperty.cs +++ b/src/Umbraco.Core/Models/IStylesheetProperty.cs @@ -1,6 +1,6 @@ -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { public interface IStylesheetProperty : IRememberBeingDirty { diff --git a/src/Umbraco.Core/Models/ITag.cs b/src/Umbraco.Core/Models/ITag.cs index f2c30b2644..79840481bb 100644 --- a/src/Umbraco.Core/Models/ITag.cs +++ b/src/Umbraco.Core/Models/ITag.cs @@ -1,7 +1,7 @@ using System.Runtime.Serialization; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents a tag entity. diff --git a/src/Umbraco.Core/Models/ITemplate.cs b/src/Umbraco.Core/Models/ITemplate.cs index 1a3ce30087..1c4f794c49 100644 --- a/src/Umbraco.Core/Models/ITemplate.cs +++ b/src/Umbraco.Core/Models/ITemplate.cs @@ -1,6 +1,6 @@ -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Defines a Template File (Mvc View) diff --git a/src/Umbraco.Core/Models/IconModel.cs b/src/Umbraco.Core/Models/IconModel.cs index 12fa8884ae..75e90cf0fb 100644 --- a/src/Umbraco.Core/Models/IconModel.cs +++ b/src/Umbraco.Core/Models/IconModel.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { public class IconModel { diff --git a/src/Umbraco.Core/Models/Identity/ExternalLogin.cs b/src/Umbraco.Core/Models/Identity/ExternalLogin.cs index a5de9da0cb..485ec66df4 100644 --- a/src/Umbraco.Core/Models/Identity/ExternalLogin.cs +++ b/src/Umbraco.Core/Models/Identity/ExternalLogin.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Models.Identity +namespace Umbraco.Cms.Core.Models.Identity { /// public class ExternalLogin : IExternalLogin diff --git a/src/Umbraco.Core/Models/Identity/IExternalLogin.cs b/src/Umbraco.Core/Models/Identity/IExternalLogin.cs index 2718802324..1cc570c36f 100644 --- a/src/Umbraco.Core/Models/Identity/IExternalLogin.cs +++ b/src/Umbraco.Core/Models/Identity/IExternalLogin.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models.Identity +namespace Umbraco.Cms.Core.Models.Identity { /// /// Used to persist external login data for a user diff --git a/src/Umbraco.Core/Models/Identity/IIdentityUserLogin.cs b/src/Umbraco.Core/Models/Identity/IIdentityUserLogin.cs index 05703a1b2c..89ec823875 100644 --- a/src/Umbraco.Core/Models/Identity/IIdentityUserLogin.cs +++ b/src/Umbraco.Core/Models/Identity/IIdentityUserLogin.cs @@ -1,6 +1,6 @@ -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models.Identity +namespace Umbraco.Cms.Core.Models.Identity { /// /// An external login provider linked to a user diff --git a/src/Umbraco.Core/Models/Identity/IdentityUserLogin.cs b/src/Umbraco.Core/Models/Identity/IdentityUserLogin.cs index 5974822c20..b719d9cd51 100644 --- a/src/Umbraco.Core/Models/Identity/IdentityUserLogin.cs +++ b/src/Umbraco.Core/Models/Identity/IdentityUserLogin.cs @@ -1,7 +1,7 @@ using System; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models.Identity +namespace Umbraco.Cms.Core.Models.Identity { /// diff --git a/src/Umbraco.Core/Models/ImageCropAnchor.cs b/src/Umbraco.Core/Models/ImageCropAnchor.cs index a24b4df6fa..118f7348ae 100644 --- a/src/Umbraco.Core/Models/ImageCropAnchor.cs +++ b/src/Umbraco.Core/Models/ImageCropAnchor.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.Models +namespace Umbraco.Cms.Core.Models { public enum ImageCropAnchor { diff --git a/src/Umbraco.Core/Models/ImageCropMode.cs b/src/Umbraco.Core/Models/ImageCropMode.cs index 1e168d03e0..1cd7294a58 100644 --- a/src/Umbraco.Core/Models/ImageCropMode.cs +++ b/src/Umbraco.Core/Models/ImageCropMode.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.Models +namespace Umbraco.Cms.Core.Models { public enum ImageCropMode { diff --git a/src/Umbraco.Core/Models/ImageCropRatioMode.cs b/src/Umbraco.Core/Models/ImageCropRatioMode.cs index 9f63cdea77..19f69cbeac 100644 --- a/src/Umbraco.Core/Models/ImageCropRatioMode.cs +++ b/src/Umbraco.Core/Models/ImageCropRatioMode.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.Models +namespace Umbraco.Cms.Core.Models { public enum ImageCropRatioMode { diff --git a/src/Umbraco.Core/Models/ImageUrlGenerationOptions.cs b/src/Umbraco.Core/Models/ImageUrlGenerationOptions.cs index 369ee9b25b..99f42bbefa 100644 --- a/src/Umbraco.Core/Models/ImageUrlGenerationOptions.cs +++ b/src/Umbraco.Core/Models/ImageUrlGenerationOptions.cs @@ -1,6 +1,4 @@ -using Umbraco.Web.Models; - -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// These are options that are passed to the IImageUrlGenerator implementation to determine diff --git a/src/Umbraco.Core/Models/KeyValue.cs b/src/Umbraco.Core/Models/KeyValue.cs index 2d47fcbfb3..eabb94568a 100644 --- a/src/Umbraco.Core/Models/KeyValue.cs +++ b/src/Umbraco.Core/Models/KeyValue.cs @@ -1,8 +1,8 @@ using System; using System.Runtime.Serialization; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Implements . diff --git a/src/Umbraco.Core/Models/Language.cs b/src/Umbraco.Core/Models/Language.cs index 0ac8526181..6be774f7d2 100644 --- a/src/Umbraco.Core/Models/Language.cs +++ b/src/Umbraco.Core/Models/Language.cs @@ -2,11 +2,10 @@ using System.Globalization; using System.Runtime.Serialization; using System.Threading; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents a Language. diff --git a/src/Umbraco.Core/Models/Link.cs b/src/Umbraco.Core/Models/Link.cs index 74ad4ad2af..f461eb850d 100644 --- a/src/Umbraco.Core/Models/Link.cs +++ b/src/Umbraco.Core/Models/Link.cs @@ -1,6 +1,4 @@ -using Umbraco.Core; - -namespace Umbraco.Web.Models +namespace Umbraco.Cms.Core.Models { public class Link { diff --git a/src/Umbraco.Core/Models/LinkType.cs b/src/Umbraco.Core/Models/LinkType.cs index 3db3165d7f..e4879249d8 100644 --- a/src/Umbraco.Core/Models/LinkType.cs +++ b/src/Umbraco.Core/Models/LinkType.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.Models +namespace Umbraco.Cms.Core.Models { public enum LinkType { @@ -6,4 +6,4 @@ Media, External } -} \ No newline at end of file +} diff --git a/src/Umbraco.Core/Models/LocalPackageInstallModel.cs b/src/Umbraco.Core/Models/LocalPackageInstallModel.cs index bd32b176a5..6cd35ab3d9 100644 --- a/src/Umbraco.Core/Models/LocalPackageInstallModel.cs +++ b/src/Umbraco.Core/Models/LocalPackageInstallModel.cs @@ -1,8 +1,8 @@ using System.Collections.Generic; using System.Runtime.Serialization; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Models.ContentEditing; -namespace Umbraco.Web.Models +namespace Umbraco.Cms.Core.Models { /// /// A model that represents uploading a local package diff --git a/src/Umbraco.Core/Models/Macro.cs b/src/Umbraco.Core/Models/Macro.cs index 083c288e09..7fd60b98f0 100644 --- a/src/Umbraco.Core/Models/Macro.cs +++ b/src/Umbraco.Core/Models/Macro.cs @@ -4,10 +4,11 @@ using System.Collections.Specialized; using System.ComponentModel; using System.Linq; using System.Runtime.Serialization; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Strings; +using Umbraco.Extensions; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents a Macro diff --git a/src/Umbraco.Core/Models/MacroProperty.cs b/src/Umbraco.Core/Models/MacroProperty.cs index 6714baf17b..a8f4ece17c 100644 --- a/src/Umbraco.Core/Models/MacroProperty.cs +++ b/src/Umbraco.Core/Models/MacroProperty.cs @@ -1,8 +1,8 @@ using System; using System.Runtime.Serialization; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents a Macro Property @@ -57,7 +57,7 @@ namespace Umbraco.Core.Models private int _sortOrder; private int _id; private string _editorAlias; - + /// /// Gets or sets the Key of the Property /// diff --git a/src/Umbraco.Core/Models/MacroPropertyCollection.cs b/src/Umbraco.Core/Models/MacroPropertyCollection.cs index 1017ba8c8c..f2f0b6520f 100644 --- a/src/Umbraco.Core/Models/MacroPropertyCollection.cs +++ b/src/Umbraco.Core/Models/MacroPropertyCollection.cs @@ -1,7 +1,8 @@ using System; -using Umbraco.Core.Collections; +using Umbraco.Cms.Core.Collections; +using Umbraco.Extensions; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// A macro's property collection diff --git a/src/Umbraco.Core/Models/Mapping/AuditMapDefinition.cs b/src/Umbraco.Core/Models/Mapping/AuditMapDefinition.cs index 51a0fed704..811e2e57a2 100644 --- a/src/Umbraco.Core/Models/Mapping/AuditMapDefinition.cs +++ b/src/Umbraco.Core/Models/Mapping/AuditMapDefinition.cs @@ -1,8 +1,7 @@ -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models.ContentEditing; -namespace Umbraco.Web.Models.Mapping +namespace Umbraco.Cms.Core.Models.Mapping { public class AuditMapDefinition : IMapDefinition { diff --git a/src/Umbraco.Core/Models/Mapping/CodeFileMapDefinition.cs b/src/Umbraco.Core/Models/Mapping/CodeFileMapDefinition.cs index 425f057dc5..6adfcf0fc5 100644 --- a/src/Umbraco.Core/Models/Mapping/CodeFileMapDefinition.cs +++ b/src/Umbraco.Core/Models/Mapping/CodeFileMapDefinition.cs @@ -1,8 +1,7 @@ -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models.ContentEditing; -namespace Umbraco.Web.Models.Mapping +namespace Umbraco.Cms.Core.Models.Mapping { public class CodeFileMapDefinition : IMapDefinition { diff --git a/src/Umbraco.Core/Models/Mapping/CommonMapper.cs b/src/Umbraco.Core/Models/Mapping/CommonMapper.cs index 5ee33c72fa..b6a220e04c 100644 --- a/src/Umbraco.Core/Models/Mapping/CommonMapper.cs +++ b/src/Umbraco.Core/Models/Mapping/CommonMapper.cs @@ -1,18 +1,16 @@ using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.Models.ContentEditing; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Services; -using Umbraco.Web.ContentApps; -using Umbraco.Web.Models.ContentEditing; -using UserProfile = Umbraco.Web.Models.ContentEditing.UserProfile; +using Umbraco.Cms.Core.ContentApps; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; +using UserProfile = Umbraco.Cms.Core.Models.ContentEditing.UserProfile; -namespace Umbraco.Web.Models.Mapping +namespace Umbraco.Cms.Core.Models.Mapping { public class CommonMapper { diff --git a/src/Umbraco.Core/Models/Mapping/ContentPropertyBasicMapper.cs b/src/Umbraco.Core/Models/Mapping/ContentPropertyBasicMapper.cs index 9742753b47..0b4ade6328 100644 --- a/src/Umbraco.Core/Models/Mapping/ContentPropertyBasicMapper.cs +++ b/src/Umbraco.Core/Models/Mapping/ContentPropertyBasicMapper.cs @@ -1,14 +1,13 @@ using System; using System.Linq; using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Services; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; -namespace Umbraco.Web.Models.Mapping +namespace Umbraco.Cms.Core.Models.Mapping { /// /// Creates a base generic ContentPropertyBasic from a Property diff --git a/src/Umbraco.Core/Models/Mapping/ContentPropertyDisplayMapper.cs b/src/Umbraco.Core/Models/Mapping/ContentPropertyDisplayMapper.cs index c72f4fac7c..3957699deb 100644 --- a/src/Umbraco.Core/Models/Mapping/ContentPropertyDisplayMapper.cs +++ b/src/Umbraco.Core/Models/Mapping/ContentPropertyDisplayMapper.cs @@ -1,12 +1,15 @@ -using Microsoft.Extensions.Logging; -using Umbraco.Core.Dictionary; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Services; -using Umbraco.Web.Models.ContentEditing; +// Copyright (c) Umbraco. +// See LICENSE for more details. -namespace Umbraco.Web.Models.Mapping +using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.Dictionary; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; + +namespace Umbraco.Cms.Core.Models.Mapping { /// /// Creates a ContentPropertyDisplay from a Property diff --git a/src/Umbraco.Core/Models/Mapping/ContentPropertyDtoMapper.cs b/src/Umbraco.Core/Models/Mapping/ContentPropertyDtoMapper.cs index 456e23b68a..056fb8e619 100644 --- a/src/Umbraco.Core/Models/Mapping/ContentPropertyDtoMapper.cs +++ b/src/Umbraco.Core/Models/Mapping/ContentPropertyDtoMapper.cs @@ -1,11 +1,10 @@ using Microsoft.Extensions.Logging; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Services; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Services; -namespace Umbraco.Web.Models.Mapping +namespace Umbraco.Cms.Core.Models.Mapping { /// /// Creates a ContentPropertyDto from a Property diff --git a/src/Umbraco.Core/Models/Mapping/ContentPropertyMapDefinition.cs b/src/Umbraco.Core/Models/Mapping/ContentPropertyMapDefinition.cs index 7740685615..5893d1e1e5 100644 --- a/src/Umbraco.Core/Models/Mapping/ContentPropertyMapDefinition.cs +++ b/src/Umbraco.Core/Models/Mapping/ContentPropertyMapDefinition.cs @@ -1,12 +1,11 @@ using Microsoft.Extensions.Logging; -using Umbraco.Core.Dictionary; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Services; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Dictionary; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Services; -namespace Umbraco.Web.Models.Mapping +namespace Umbraco.Cms.Core.Models.Mapping { /// /// A mapper which declares how to map content properties. These mappings are shared among media (and probably members) which is diff --git a/src/Umbraco.Core/Models/Mapping/ContentSavedStateMapper.cs b/src/Umbraco.Core/Models/Mapping/ContentSavedStateMapper.cs index 82f1d4e9bb..a087ce0d3e 100644 --- a/src/Umbraco.Core/Models/Mapping/ContentSavedStateMapper.cs +++ b/src/Umbraco.Core/Models/Mapping/ContentSavedStateMapper.cs @@ -1,10 +1,9 @@ using System; -using Umbraco.Core; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Extensions; -namespace Umbraco.Web.Models.Mapping +namespace Umbraco.Cms.Core.Models.Mapping { /// /// Returns the for an item diff --git a/src/Umbraco.Core/Models/Mapping/ContentTypeMapDefinition.cs b/src/Umbraco.Core/Models/Mapping/ContentTypeMapDefinition.cs index 0ed781fe10..162032216d 100644 --- a/src/Umbraco.Core/Models/Mapping/ContentTypeMapDefinition.cs +++ b/src/Umbraco.Core/Models/Mapping/ContentTypeMapDefinition.cs @@ -3,19 +3,18 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Exceptions; -using Umbraco.Core.Hosting; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Exceptions; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Extensions; -namespace Umbraco.Web.Models.Mapping +namespace Umbraco.Cms.Core.Models.Mapping { /// /// Defines mappings for content/media/members type mappings diff --git a/src/Umbraco.Core/Models/Mapping/ContentVariantMapper.cs b/src/Umbraco.Core/Models/Mapping/ContentVariantMapper.cs index 6cefd152e9..ddc7add7ed 100644 --- a/src/Umbraco.Core/Models/Mapping/ContentVariantMapper.cs +++ b/src/Umbraco.Core/Models/Mapping/ContentVariantMapper.cs @@ -1,14 +1,12 @@ using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.Services; -using Umbraco.Web.Models.ContentEditing; -using Language = Umbraco.Web.Models.ContentEditing.Language; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; -namespace Umbraco.Web.Models.Mapping +namespace Umbraco.Cms.Core.Models.Mapping { public class ContentVariantMapper { @@ -96,17 +94,17 @@ namespace Umbraco.Web.Models.Mapping return variant.Language == null || variant.Language.IsDefault; } - private IEnumerable GetLanguages(MapperContext context) + private IEnumerable GetLanguages(MapperContext context) { var allLanguages = _localizationService.GetAllLanguages().OrderBy(x => x.Id).ToList(); if (allLanguages.Count == 0) { // This should never happen - return Enumerable.Empty(); + return Enumerable.Empty(); } else { - return context.MapEnumerable(allLanguages).ToList(); + return context.MapEnumerable(allLanguages).ToList(); } } @@ -130,7 +128,7 @@ namespace Umbraco.Web.Models.Mapping return segments.Distinct(); } - private ContentVariantDisplay CreateVariantDisplay(MapperContext context, IContent content, Language language, string segment) + private ContentVariantDisplay CreateVariantDisplay(MapperContext context, IContent content, ContentEditing.Language language, string segment) { context.SetCulture(language?.IsoCode); context.SetSegment(segment); @@ -145,7 +143,7 @@ namespace Umbraco.Web.Models.Mapping return variantDisplay; } - private string GetDisplayName(Language language, string segment) + private string GetDisplayName(ContentEditing.Language language, string segment) { var isCultureVariant = language != null; var isSegmentVariant = !segment.IsNullOrWhiteSpace(); diff --git a/src/Umbraco.Core/Models/Mapping/DataTypeMapDefinition.cs b/src/Umbraco.Core/Models/Mapping/DataTypeMapDefinition.cs index 1d96d92ee4..c1b60d7d9c 100644 --- a/src/Umbraco.Core/Models/Mapping/DataTypeMapDefinition.cs +++ b/src/Umbraco.Core/Models/Mapping/DataTypeMapDefinition.cs @@ -3,15 +3,14 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Serialization; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Extensions; -namespace Umbraco.Web.Models.Mapping +namespace Umbraco.Cms.Core.Models.Mapping { public class DataTypeMapDefinition : IMapDefinition { diff --git a/src/Umbraco.Core/Models/Mapping/DictionaryMapDefinition.cs b/src/Umbraco.Core/Models/Mapping/DictionaryMapDefinition.cs index 278adc56e0..aef6473ca5 100644 --- a/src/Umbraco.Core/Models/Mapping/DictionaryMapDefinition.cs +++ b/src/Umbraco.Core/Models/Mapping/DictionaryMapDefinition.cs @@ -1,13 +1,11 @@ using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.Services; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Services; -namespace Umbraco.Web.Models.Mapping +namespace Umbraco.Cms.Core.Models.Mapping { /// /// diff --git a/src/Umbraco.Core/Models/Mapping/LanguageMapDefinition.cs b/src/Umbraco.Core/Models/Mapping/LanguageMapDefinition.cs index 6fcbe1a88b..fa88f958a9 100644 --- a/src/Umbraco.Core/Models/Mapping/LanguageMapDefinition.cs +++ b/src/Umbraco.Core/Models/Mapping/LanguageMapDefinition.cs @@ -1,20 +1,18 @@ using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Web.Models.ContentEditing; -using Language = Umbraco.Web.Models.ContentEditing.Language; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models.ContentEditing; -namespace Umbraco.Web.Models.Mapping +namespace Umbraco.Cms.Core.Models.Mapping { public class LanguageMapDefinition : IMapDefinition { public void DefineMaps(UmbracoMapper mapper) { mapper.Define((source, context) => new EntityBasic(), Map); - mapper.Define((source, context) => new Language(), Map); - mapper.Define, IEnumerable>((source, context) => new List(), Map); + mapper.Define((source, context) => new ContentEditing.Language(), Map); + mapper.Define, IEnumerable>((source, context) => new List(), Map); } // Umbraco.Code.MapAll -Udi -Path -Trashed -AdditionalData -Icon @@ -28,7 +26,7 @@ namespace Umbraco.Web.Models.Mapping } // Umbraco.Code.MapAll - private static void Map(ILanguage source, Language target, MapperContext context) + private static void Map(ILanguage source, ContentEditing.Language target, MapperContext context) { target.Id = source.Id; target.IsoCode = source.IsoCode; @@ -38,14 +36,14 @@ namespace Umbraco.Web.Models.Mapping target.FallbackLanguageId = source.FallbackLanguageId; } - private static void Map(IEnumerable source, IEnumerable target, MapperContext context) + private static void Map(IEnumerable source, IEnumerable target, MapperContext context) { if (target == null) throw new ArgumentNullException(nameof(target)); - if (!(target is List list)) + if (!(target is List list)) throw new NotSupportedException($"{nameof(target)} must be a List."); - var temp = context.MapEnumerable(source); + var temp = context.MapEnumerable(source); //Put the default language first in the list & then sort rest by a-z var defaultLang = temp.SingleOrDefault(x => x.IsDefault); diff --git a/src/Umbraco.Core/Models/Mapping/MacroMapDefinition.cs b/src/Umbraco.Core/Models/Mapping/MacroMapDefinition.cs index 0e003c83a2..eb5d55d0b6 100644 --- a/src/Umbraco.Core/Models/Mapping/MacroMapDefinition.cs +++ b/src/Umbraco.Core/Models/Mapping/MacroMapDefinition.cs @@ -1,12 +1,10 @@ using System.Collections.Generic; using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.PropertyEditors; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.PropertyEditors; -namespace Umbraco.Web.Models.Mapping +namespace Umbraco.Cms.Core.Models.Mapping { public class MacroMapDefinition : IMapDefinition { diff --git a/src/Umbraco.Core/Models/Mapping/MapperContextExtensions.cs b/src/Umbraco.Core/Models/Mapping/MapperContextExtensions.cs index 3133441846..e385a693cb 100644 --- a/src/Umbraco.Core/Models/Mapping/MapperContextExtensions.cs +++ b/src/Umbraco.Core/Models/Mapping/MapperContextExtensions.cs @@ -1,6 +1,6 @@ -using Umbraco.Core.Mapping; +using Umbraco.Cms.Core.Mapping; -namespace Umbraco.Web.Models.Mapping +namespace Umbraco.Extensions { /// /// Provides extension methods for the class. diff --git a/src/Umbraco.Core/Models/Mapping/MemberTabsAndPropertiesMapper.cs b/src/Umbraco.Core/Models/Mapping/MemberTabsAndPropertiesMapper.cs index 2f1e76b834..e54203619e 100644 --- a/src/Umbraco.Core/Models/Mapping/MemberTabsAndPropertiesMapper.cs +++ b/src/Umbraco.Core/Models/Mapping/MemberTabsAndPropertiesMapper.cs @@ -2,17 +2,16 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Dictionary; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Dictionary; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; -namespace Umbraco.Web.Models.Mapping +namespace Umbraco.Cms.Core.Models.Mapping { /// /// A custom tab/property resolver for members which will ensure that the built-in membership properties are or aren't displayed diff --git a/src/Umbraco.Core/Models/Mapping/PropertyTypeGroupMapper.cs b/src/Umbraco.Core/Models/Mapping/PropertyTypeGroupMapper.cs index b41f5d4b19..4545414e51 100644 --- a/src/Umbraco.Core/Models/Mapping/PropertyTypeGroupMapper.cs +++ b/src/Umbraco.Core/Models/Mapping/PropertyTypeGroupMapper.cs @@ -2,14 +2,13 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Extensions; -namespace Umbraco.Web.Models.Mapping +namespace Umbraco.Cms.Core.Models.Mapping { public class PropertyTypeGroupMapper where TPropertyType : PropertyTypeDisplay, new() diff --git a/src/Umbraco.Core/Models/Mapping/RedirectUrlMapDefinition.cs b/src/Umbraco.Core/Models/Mapping/RedirectUrlMapDefinition.cs index 08c89b34f8..dda5f2a939 100644 --- a/src/Umbraco.Core/Models/Mapping/RedirectUrlMapDefinition.cs +++ b/src/Umbraco.Core/Models/Mapping/RedirectUrlMapDefinition.cs @@ -1,9 +1,8 @@ -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Web.Models.ContentEditing; -using Umbraco.Web.Routing; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Routing; -namespace Umbraco.Web.Models.Mapping +namespace Umbraco.Cms.Core.Models.Mapping { public class RedirectUrlMapDefinition : IMapDefinition { diff --git a/src/Umbraco.Core/Models/Mapping/RelationMapDefinition.cs b/src/Umbraco.Core/Models/Mapping/RelationMapDefinition.cs index 9de506b5eb..cddb862d50 100644 --- a/src/Umbraco.Core/Models/Mapping/RelationMapDefinition.cs +++ b/src/Umbraco.Core/Models/Mapping/RelationMapDefinition.cs @@ -1,10 +1,9 @@ -using Umbraco.Core; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.Services; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; -namespace Umbraco.Web.Models.Mapping +namespace Umbraco.Cms.Core.Models.Mapping { public class RelationMapDefinition : IMapDefinition { diff --git a/src/Umbraco.Core/Models/Mapping/SectionMapDefinition.cs b/src/Umbraco.Core/Models/Mapping/SectionMapDefinition.cs index 20b1d2e05f..f3c1991a8e 100644 --- a/src/Umbraco.Core/Models/Mapping/SectionMapDefinition.cs +++ b/src/Umbraco.Core/Models/Mapping/SectionMapDefinition.cs @@ -1,11 +1,11 @@ -using Umbraco.Core.Manifest; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models.Sections; -using Umbraco.Core.Services; -using Umbraco.Web.Models.ContentEditing; -using Umbraco.Web.Sections; +using Umbraco.Cms.Core.Manifest; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Sections; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; -namespace Umbraco.Web.Models.Mapping +namespace Umbraco.Cms.Core.Models.Mapping { public class SectionMapDefinition : IMapDefinition { diff --git a/src/Umbraco.Core/Models/Mapping/TabsAndPropertiesMapper.cs b/src/Umbraco.Core/Models/Mapping/TabsAndPropertiesMapper.cs index d2c8fc1303..3716767b3d 100644 --- a/src/Umbraco.Core/Models/Mapping/TabsAndPropertiesMapper.cs +++ b/src/Umbraco.Core/Models/Mapping/TabsAndPropertiesMapper.cs @@ -1,14 +1,13 @@ using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core; -using Umbraco.Core.Dictionary; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.Services; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Dictionary; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; -namespace Umbraco.Web.Models.Mapping +namespace Umbraco.Cms.Core.Models.Mapping { public abstract class TabsAndPropertiesMapper { diff --git a/src/Umbraco.Core/Models/Mapping/TagMapDefinition.cs b/src/Umbraco.Core/Models/Mapping/TagMapDefinition.cs index 32912489c2..a23ce1ed69 100644 --- a/src/Umbraco.Core/Models/Mapping/TagMapDefinition.cs +++ b/src/Umbraco.Core/Models/Mapping/TagMapDefinition.cs @@ -1,7 +1,6 @@ -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Mapping; -namespace Umbraco.Web.Models.Mapping +namespace Umbraco.Cms.Core.Models.Mapping { public class TagMapDefinition : IMapDefinition { diff --git a/src/Umbraco.Core/Models/Mapping/TemplateMapDefinition.cs b/src/Umbraco.Core/Models/Mapping/TemplateMapDefinition.cs index 99b69c1fb3..8ca26244e3 100644 --- a/src/Umbraco.Core/Models/Mapping/TemplateMapDefinition.cs +++ b/src/Umbraco.Core/Models/Mapping/TemplateMapDefinition.cs @@ -1,9 +1,8 @@ -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.Strings; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Strings; -namespace Umbraco.Web.Models.Mapping +namespace Umbraco.Cms.Core.Models.Mapping { public class TemplateMapDefinition : IMapDefinition { diff --git a/src/Umbraco.Core/Models/Mapping/UserMapDefinition.cs b/src/Umbraco.Core/Models/Mapping/UserMapDefinition.cs index d206aac998..3631629c7b 100644 --- a/src/Umbraco.Core/Models/Mapping/UserMapDefinition.cs +++ b/src/Umbraco.Core/Models/Mapping/UserMapDefinition.cs @@ -3,23 +3,21 @@ using System.Collections.Generic; using System.Globalization; using System.Linq; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.IO; -using Umbraco.Core.Mapping; -using Umbraco.Core.Media; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Models.Sections; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; -using Umbraco.Web.Actions; -using Umbraco.Web.Models.ContentEditing; -using Umbraco.Web.Services; +using Umbraco.Cms.Core.Actions; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Media; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Sections; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Extensions; -namespace Umbraco.Web.Models.Mapping +namespace Umbraco.Cms.Core.Models.Mapping { public class UserMapDefinition : IMapDefinition { diff --git a/src/Umbraco.Core/Models/Media.cs b/src/Umbraco.Core/Models/Media.cs index c4e841f27b..f5b3574be7 100644 --- a/src/Umbraco.Core/Models/Media.cs +++ b/src/Umbraco.Core/Models/Media.cs @@ -1,7 +1,7 @@ using System; using System.Runtime.Serialization; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents a Media object diff --git a/src/Umbraco.Core/Models/MediaExtensions.cs b/src/Umbraco.Core/Models/MediaExtensions.cs index 5b444c6af8..a7571d6317 100644 --- a/src/Umbraco.Core/Models/MediaExtensions.cs +++ b/src/Umbraco.Core/Models/MediaExtensions.cs @@ -1,8 +1,9 @@ using System.Linq; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.PropertyEditors; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PropertyEditors; -namespace Umbraco.Core.Models +namespace Umbraco.Extensions { public static class MediaExtensions { @@ -16,7 +17,7 @@ namespace Umbraco.Core.Models // TODO: would need to be adjusted to variations, when media become variants if (mediaUrlGenerators.TryGetMediaPath(property.PropertyType.PropertyEditorAlias, property.GetValue(), out var mediaUrl)) - { + { return mediaUrl; } diff --git a/src/Umbraco.Core/Models/MediaType.cs b/src/Umbraco.Core/Models/MediaType.cs index 0c59ba6750..dbdf1eeb15 100644 --- a/src/Umbraco.Core/Models/MediaType.cs +++ b/src/Umbraco.Core/Models/MediaType.cs @@ -1,8 +1,8 @@ using System; using System.Runtime.Serialization; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Strings; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents the content type that a object is based on diff --git a/src/Umbraco.Core/Models/Member.cs b/src/Umbraco.Core/Models/Member.cs index 8a765b2f25..455aa44c13 100644 --- a/src/Umbraco.Core/Models/Member.cs +++ b/src/Umbraco.Core/Models/Member.cs @@ -3,9 +3,9 @@ using System.Collections.Generic; using System.ComponentModel; using System.Runtime.Serialization; using Microsoft.Extensions.Logging; +using Umbraco.Extensions; - -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents a Member object diff --git a/src/Umbraco.Core/Models/MemberGroup.cs b/src/Umbraco.Core/Models/MemberGroup.cs index 8c06da418d..3e712bbb61 100644 --- a/src/Umbraco.Core/Models/MemberGroup.cs +++ b/src/Umbraco.Core/Models/MemberGroup.cs @@ -1,9 +1,9 @@ using System; using System.Collections.Generic; using System.Runtime.Serialization; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents a member type diff --git a/src/Umbraco.Core/Models/MemberType.cs b/src/Umbraco.Core/Models/MemberType.cs index 00f3870ed9..b55c598cac 100644 --- a/src/Umbraco.Core/Models/MemberType.cs +++ b/src/Umbraco.Core/Models/MemberType.cs @@ -1,9 +1,10 @@ using System; using System.Collections.Generic; using System.Runtime.Serialization; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Strings; +using Umbraco.Extensions; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents the content type that a object is based on diff --git a/src/Umbraco.Core/Models/MemberTypePropertyProfileAccess.cs b/src/Umbraco.Core/Models/MemberTypePropertyProfileAccess.cs index 0be9080841..89bf2f283d 100644 --- a/src/Umbraco.Core/Models/MemberTypePropertyProfileAccess.cs +++ b/src/Umbraco.Core/Models/MemberTypePropertyProfileAccess.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Used to track the property types that are visible/editable on member profiles diff --git a/src/Umbraco.Core/Models/Membership/ContentPermissionSet.cs b/src/Umbraco.Core/Models/Membership/ContentPermissionSet.cs index fcf1228e69..9c585589fa 100644 --- a/src/Umbraco.Core/Models/Membership/ContentPermissionSet.cs +++ b/src/Umbraco.Core/Models/Membership/ContentPermissionSet.cs @@ -1,8 +1,7 @@ using System; -using System.Collections.Generic; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models.Membership +namespace Umbraco.Cms.Core.Models.Membership { /// /// Represents an -> user group & permission key value pair collection diff --git a/src/Umbraco.Core/Models/Membership/EntityPermission.cs b/src/Umbraco.Core/Models/Membership/EntityPermission.cs index 156ab2c4bd..4fc975eb50 100644 --- a/src/Umbraco.Core/Models/Membership/EntityPermission.cs +++ b/src/Umbraco.Core/Models/Membership/EntityPermission.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Models.Membership +namespace Umbraco.Cms.Core.Models.Membership { /// /// Represents an entity permission (defined on the user group and derived to retrieve permissions for a given user) diff --git a/src/Umbraco.Core/Models/Membership/EntityPermissionCollection.cs b/src/Umbraco.Core/Models/Membership/EntityPermissionCollection.cs index 12e874d5d7..f1fb0c2297 100644 --- a/src/Umbraco.Core/Models/Membership/EntityPermissionCollection.cs +++ b/src/Umbraco.Core/Models/Membership/EntityPermissionCollection.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.Linq; -namespace Umbraco.Core.Models.Membership +namespace Umbraco.Cms.Core.Models.Membership { /// /// A of diff --git a/src/Umbraco.Core/Models/Membership/EntityPermissionSet.cs b/src/Umbraco.Core/Models/Membership/EntityPermissionSet.cs index e85ab06f33..fc9afd1dc4 100644 --- a/src/Umbraco.Core/Models/Membership/EntityPermissionSet.cs +++ b/src/Umbraco.Core/Models/Membership/EntityPermissionSet.cs @@ -1,8 +1,7 @@ using System; using System.Collections.Generic; -using System.Linq; -namespace Umbraco.Core.Models.Membership +namespace Umbraco.Cms.Core.Models.Membership { /// /// Represents an entity -> user group & permission key value pair collection diff --git a/src/Umbraco.Core/Models/Membership/IMembershipUser.cs b/src/Umbraco.Core/Models/Membership/IMembershipUser.cs index 9b1c8a0c07..3374f1f11a 100644 --- a/src/Umbraco.Core/Models/Membership/IMembershipUser.cs +++ b/src/Umbraco.Core/Models/Membership/IMembershipUser.cs @@ -1,7 +1,7 @@ using System; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models.Membership +namespace Umbraco.Cms.Core.Models.Membership { /// /// Defines the base contract for and diff --git a/src/Umbraco.Core/Models/Membership/IProfile.cs b/src/Umbraco.Core/Models/Membership/IProfile.cs index 7da095bb14..773b7f5607 100644 --- a/src/Umbraco.Core/Models/Membership/IProfile.cs +++ b/src/Umbraco.Core/Models/Membership/IProfile.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models.Membership +namespace Umbraco.Cms.Core.Models.Membership { /// /// Defines the User Profile interface diff --git a/src/Umbraco.Core/Models/Membership/IReadOnlyUserGroup.cs b/src/Umbraco.Core/Models/Membership/IReadOnlyUserGroup.cs index 571c13cf70..f75d42d790 100644 --- a/src/Umbraco.Core/Models/Membership/IReadOnlyUserGroup.cs +++ b/src/Umbraco.Core/Models/Membership/IReadOnlyUserGroup.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace Umbraco.Core.Models.Membership +namespace Umbraco.Cms.Core.Models.Membership { /// /// A readonly user group providing basic information diff --git a/src/Umbraco.Core/Models/Membership/IUser.cs b/src/Umbraco.Core/Models/Membership/IUser.cs index 3a3a18b5ab..f9763bc7e9 100644 --- a/src/Umbraco.Core/Models/Membership/IUser.cs +++ b/src/Umbraco.Core/Models/Membership/IUser.cs @@ -1,9 +1,8 @@ using System; using System.Collections.Generic; -using System.ComponentModel; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models.Membership +namespace Umbraco.Cms.Core.Models.Membership { /// @@ -19,7 +18,7 @@ namespace Umbraco.Core.Models.Membership int[] StartContentIds { get; set; } int[] StartMediaIds { get; set; } string Language { get; set; } - + DateTime? EmailConfirmedDate { get; set; } DateTime? InvitedDate { get; set; } diff --git a/src/Umbraco.Core/Models/Membership/IUserGroup.cs b/src/Umbraco.Core/Models/Membership/IUserGroup.cs index 508eb015ed..7278ef5ecc 100644 --- a/src/Umbraco.Core/Models/Membership/IUserGroup.cs +++ b/src/Umbraco.Core/Models/Membership/IUserGroup.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models.Membership +namespace Umbraco.Cms.Core.Models.Membership { public interface IUserGroup : IEntity, IRememberBeingDirty { diff --git a/src/Umbraco.Core/Models/Membership/MemberCountType.cs b/src/Umbraco.Core/Models/Membership/MemberCountType.cs index 233b5c2424..89990994e8 100644 --- a/src/Umbraco.Core/Models/Membership/MemberCountType.cs +++ b/src/Umbraco.Core/Models/Membership/MemberCountType.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models.Membership +namespace Umbraco.Cms.Core.Models.Membership { /// /// The types of members to count diff --git a/src/Umbraco.Core/Models/Membership/MemberExportModel.cs b/src/Umbraco.Core/Models/Membership/MemberExportModel.cs index 7a87033ac2..b4114e154f 100644 --- a/src/Umbraco.Core/Models/Membership/MemberExportModel.cs +++ b/src/Umbraco.Core/Models/Membership/MemberExportModel.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; -namespace Umbraco.Core.Models.Membership +namespace Umbraco.Cms.Core.Models.Membership { public class MemberExportModel { diff --git a/src/Umbraco.Core/Models/Membership/MemberExportProperty.cs b/src/Umbraco.Core/Models/Membership/MemberExportProperty.cs index 3d20eb9123..b55ed8a866 100644 --- a/src/Umbraco.Core/Models/Membership/MemberExportProperty.cs +++ b/src/Umbraco.Core/Models/Membership/MemberExportProperty.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Models.Membership +namespace Umbraco.Cms.Core.Models.Membership { public class MemberExportProperty { diff --git a/src/Umbraco.Core/Models/Membership/ReadOnlyUserGroup.cs b/src/Umbraco.Core/Models/Membership/ReadOnlyUserGroup.cs index 2c93664ec6..1d8457e20f 100644 --- a/src/Umbraco.Core/Models/Membership/ReadOnlyUserGroup.cs +++ b/src/Umbraco.Core/Models/Membership/ReadOnlyUserGroup.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.Linq; -namespace Umbraco.Core.Models.Membership +namespace Umbraco.Cms.Core.Models.Membership { public class ReadOnlyUserGroup : IReadOnlyUserGroup, IEquatable { diff --git a/src/Umbraco.Core/Models/Membership/User.cs b/src/Umbraco.Core/Models/Membership/User.cs index 7599997750..3a9dae19d2 100644 --- a/src/Umbraco.Core/Models/Membership/User.cs +++ b/src/Umbraco.Core/Models/Membership/User.cs @@ -2,12 +2,11 @@ using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; -using Umbraco.Core.Composing; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Extensions; -namespace Umbraco.Core.Models.Membership +namespace Umbraco.Cms.Core.Models.Membership { /// /// Represents a backoffice user @@ -128,7 +127,7 @@ namespace Umbraco.Core.Models.Membership (enum1, enum2) => enum1.UnsortedSequenceEqual(enum2), enum1 => enum1.GetHashCode()); - + [DataMember] public DateTime? EmailConfirmedDate { diff --git a/src/Umbraco.Core/Models/Membership/UserGroup.cs b/src/Umbraco.Core/Models/Membership/UserGroup.cs index c66463af79..0c5f4a7d66 100644 --- a/src/Umbraco.Core/Models/Membership/UserGroup.cs +++ b/src/Umbraco.Core/Models/Membership/UserGroup.cs @@ -1,10 +1,11 @@ using System; using System.Collections.Generic; using System.Runtime.Serialization; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Strings; +using Umbraco.Extensions; -namespace Umbraco.Core.Models.Membership +namespace Umbraco.Cms.Core.Models.Membership { /// /// Represents a Group for a Backoffice User diff --git a/src/Umbraco.Core/Models/Membership/UserGroupExtensions.cs b/src/Umbraco.Core/Models/Membership/UserGroupExtensions.cs index 0c7302b06e..1dabc044f3 100644 --- a/src/Umbraco.Core/Models/Membership/UserGroupExtensions.cs +++ b/src/Umbraco.Core/Models/Membership/UserGroupExtensions.cs @@ -1,4 +1,7 @@ -namespace Umbraco.Core.Models.Membership +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models.Membership; + +namespace Umbraco.Extensions { public static class UserGroupExtensions { diff --git a/src/Umbraco.Core/Models/Membership/UserPasswordSettings.cs b/src/Umbraco.Core/Models/Membership/UserPasswordSettings.cs index 4ce349a1c5..b9f271be2f 100644 --- a/src/Umbraco.Core/Models/Membership/UserPasswordSettings.cs +++ b/src/Umbraco.Core/Models/Membership/UserPasswordSettings.cs @@ -1,6 +1,6 @@ using System.Runtime.Serialization; -namespace Umbraco.Core.Models.Membership +namespace Umbraco.Cms.Core.Models.Membership { /// /// The data stored against the user for their password configuration diff --git a/src/Umbraco.Core/Models/Membership/UserProfile.cs b/src/Umbraco.Core/Models/Membership/UserProfile.cs index 14b08dd3cd..edda94aa8f 100644 --- a/src/Umbraco.Core/Models/Membership/UserProfile.cs +++ b/src/Umbraco.Core/Models/Membership/UserProfile.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Models.Membership +namespace Umbraco.Cms.Core.Models.Membership { public class UserProfile : IProfile, IEquatable { diff --git a/src/Umbraco.Core/Models/Membership/UserState.cs b/src/Umbraco.Core/Models/Membership/UserState.cs index fc277b4fa3..13d2077105 100644 --- a/src/Umbraco.Core/Models/Membership/UserState.cs +++ b/src/Umbraco.Core/Models/Membership/UserState.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models.Membership +namespace Umbraco.Cms.Core.Models.Membership { /// /// The state of a user diff --git a/src/Umbraco.Core/Models/MigrationEntry.cs b/src/Umbraco.Core/Models/MigrationEntry.cs index 1af66d2978..2fc5ea5340 100644 --- a/src/Umbraco.Core/Models/MigrationEntry.cs +++ b/src/Umbraco.Core/Models/MigrationEntry.cs @@ -1,8 +1,8 @@ using System; -using Semver; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Semver; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { public class MigrationEntry : EntityBase, IMigrationEntry { diff --git a/src/Umbraco.Core/Models/Notification.cs b/src/Umbraco.Core/Models/Notification.cs index 351b60039e..b65064f266 100644 --- a/src/Umbraco.Core/Models/Notification.cs +++ b/src/Umbraco.Core/Models/Notification.cs @@ -1,9 +1,6 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { public class Notification { diff --git a/src/Umbraco.Core/Models/NotificationEmailBodyParams.cs b/src/Umbraco.Core/Models/NotificationEmailBodyParams.cs index e85284fe5a..89d67763d1 100644 --- a/src/Umbraco.Core/Models/NotificationEmailBodyParams.cs +++ b/src/Umbraco.Core/Models/NotificationEmailBodyParams.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { public class NotificationEmailBodyParams { diff --git a/src/Umbraco.Core/Models/NotificationEmailSubjectParams.cs b/src/Umbraco.Core/Models/NotificationEmailSubjectParams.cs index 07b26dbcc1..fea247d6bf 100644 --- a/src/Umbraco.Core/Models/NotificationEmailSubjectParams.cs +++ b/src/Umbraco.Core/Models/NotificationEmailSubjectParams.cs @@ -1,10 +1,6 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { public class NotificationEmailSubjectParams diff --git a/src/Umbraco.Core/Models/ObjectTypes.cs b/src/Umbraco.Core/Models/ObjectTypes.cs index 2ddbdca77a..38211f23fa 100644 --- a/src/Umbraco.Core/Models/ObjectTypes.cs +++ b/src/Umbraco.Core/Models/ObjectTypes.cs @@ -1,9 +1,9 @@ using System; using System.Collections.Concurrent; using System.Reflection; -using Umbraco.Core.CodeAnnotations; +using Umbraco.Cms.Core.CodeAnnotations; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Provides utilities and extension methods to handle object types. diff --git a/src/Umbraco.Core/Models/PackageInstallModel.cs b/src/Umbraco.Core/Models/PackageInstallModel.cs index b489604261..e1f61647b5 100644 --- a/src/Umbraco.Core/Models/PackageInstallModel.cs +++ b/src/Umbraco.Core/Models/PackageInstallModel.cs @@ -1,10 +1,7 @@ using System; -using System.Linq; using System.Runtime.Serialization; -using System.Text; -using System.Threading.Tasks; -namespace Umbraco.Web.Models +namespace Umbraco.Cms.Core.Models { [DataContract(Name = "packageInstallModel")] public class PackageInstallModel diff --git a/src/Umbraco.Core/Models/PackageInstallResult.cs b/src/Umbraco.Core/Models/PackageInstallResult.cs index 91b19cda14..6e1a7c747e 100644 --- a/src/Umbraco.Core/Models/PackageInstallResult.cs +++ b/src/Umbraco.Core/Models/PackageInstallResult.cs @@ -1,7 +1,6 @@ -using System; -using System.Runtime.Serialization; +using System.Runtime.Serialization; -namespace Umbraco.Web.Models +namespace Umbraco.Cms.Core.Models { /// /// Model that is returned when a package is totally finished installing diff --git a/src/Umbraco.Core/Models/Packaging/ActionRunAt.cs b/src/Umbraco.Core/Models/Packaging/ActionRunAt.cs index 0023d4dbed..e4f3538d20 100644 --- a/src/Umbraco.Core/Models/Packaging/ActionRunAt.cs +++ b/src/Umbraco.Core/Models/Packaging/ActionRunAt.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models.Packaging +namespace Umbraco.Cms.Core.Models.Packaging { public enum ActionRunAt { @@ -6,4 +6,4 @@ Install, Uninstall } -} \ No newline at end of file +} diff --git a/src/Umbraco.Core/Models/Packaging/CompiledPackage.cs b/src/Umbraco.Core/Models/Packaging/CompiledPackage.cs index cf48d6ac53..a975141205 100644 --- a/src/Umbraco.Core/Models/Packaging/CompiledPackage.cs +++ b/src/Umbraco.Core/Models/Packaging/CompiledPackage.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.IO; using System.Xml.Linq; -namespace Umbraco.Core.Models.Packaging +namespace Umbraco.Cms.Core.Models.Packaging { /// /// The model of the package definition within an umbraco (zip) package file diff --git a/src/Umbraco.Core/Models/Packaging/CompiledPackageContentBase.cs b/src/Umbraco.Core/Models/Packaging/CompiledPackageContentBase.cs index 7b668796a4..d1e98376aa 100644 --- a/src/Umbraco.Core/Models/Packaging/CompiledPackageContentBase.cs +++ b/src/Umbraco.Core/Models/Packaging/CompiledPackageContentBase.cs @@ -1,6 +1,7 @@ using System.Xml.Linq; +using Umbraco.Extensions; -namespace Umbraco.Core.Models.Packaging +namespace Umbraco.Cms.Core.Models.Packaging { /// /// Compiled representation of a content base (Document or Media) diff --git a/src/Umbraco.Core/Models/Packaging/CompiledPackageFile.cs b/src/Umbraco.Core/Models/Packaging/CompiledPackageFile.cs index 2cb989b42b..c8f1423cbf 100644 --- a/src/Umbraco.Core/Models/Packaging/CompiledPackageFile.cs +++ b/src/Umbraco.Core/Models/Packaging/CompiledPackageFile.cs @@ -1,7 +1,7 @@ using System; using System.Xml.Linq; -namespace Umbraco.Core.Models.Packaging +namespace Umbraco.Cms.Core.Models.Packaging { public class CompiledPackageFile { @@ -22,4 +22,4 @@ namespace Umbraco.Core.Models.Packaging public string OriginalName { get; set; } } -} \ No newline at end of file +} diff --git a/src/Umbraco.Core/Models/Packaging/IPackageInfo.cs b/src/Umbraco.Core/Models/Packaging/IPackageInfo.cs index e4e9addf76..817ef086c9 100644 --- a/src/Umbraco.Core/Models/Packaging/IPackageInfo.cs +++ b/src/Umbraco.Core/Models/Packaging/IPackageInfo.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; -namespace Umbraco.Core.Models.Packaging +namespace Umbraco.Cms.Core.Models.Packaging { public interface IPackageInfo { diff --git a/src/Umbraco.Core/Models/Packaging/PackageAction.cs b/src/Umbraco.Core/Models/Packaging/PackageAction.cs index ab7b120eae..25c04c0480 100644 --- a/src/Umbraco.Core/Models/Packaging/PackageAction.cs +++ b/src/Umbraco.Core/Models/Packaging/PackageAction.cs @@ -2,7 +2,7 @@ using System.Runtime.Serialization; using System.Xml.Linq; -namespace Umbraco.Core.Models.Packaging +namespace Umbraco.Cms.Core.Models.Packaging { /// /// Defines a package action declared within a package manifest diff --git a/src/Umbraco.Core/Models/Packaging/PreInstallWarnings.cs b/src/Umbraco.Core/Models/Packaging/PreInstallWarnings.cs index 69c7a5641d..646084bbdf 100644 --- a/src/Umbraco.Core/Models/Packaging/PreInstallWarnings.cs +++ b/src/Umbraco.Core/Models/Packaging/PreInstallWarnings.cs @@ -1,9 +1,7 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; -using System.Runtime.Serialization; -namespace Umbraco.Core.Models.Packaging +namespace Umbraco.Cms.Core.Models.Packaging { public class PreInstallWarnings { diff --git a/src/Umbraco.Core/Models/Packaging/RequirementsType.cs b/src/Umbraco.Core/Models/Packaging/RequirementsType.cs index 2b6894ed0f..114c95bfcb 100644 --- a/src/Umbraco.Core/Models/Packaging/RequirementsType.cs +++ b/src/Umbraco.Core/Models/Packaging/RequirementsType.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models.Packaging +namespace Umbraco.Cms.Core.Models.Packaging { public enum RequirementsType { diff --git a/src/Umbraco.Core/Models/PagedResult.cs b/src/Umbraco.Core/Models/PagedResult.cs index 4119751eb3..f15768cc2d 100644 --- a/src/Umbraco.Core/Models/PagedResult.cs +++ b/src/Umbraco.Core/Models/PagedResult.cs @@ -1,7 +1,7 @@ using System; using System.Runtime.Serialization; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents a paged result for a model collection diff --git a/src/Umbraco.Core/Models/PagedResultOfT.cs b/src/Umbraco.Core/Models/PagedResultOfT.cs index efb68863dd..dc51cfdb1b 100644 --- a/src/Umbraco.Core/Models/PagedResultOfT.cs +++ b/src/Umbraco.Core/Models/PagedResultOfT.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.Runtime.Serialization; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents a paged result for a model collection diff --git a/src/Umbraco.Core/Models/PartialView.cs b/src/Umbraco.Core/Models/PartialView.cs index 130d240c6d..fa090305b2 100644 --- a/src/Umbraco.Core/Models/PartialView.cs +++ b/src/Umbraco.Core/Models/PartialView.cs @@ -1,7 +1,7 @@ using System; using System.Runtime.Serialization; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents a Partial View file diff --git a/src/Umbraco.Core/Models/PartialViewMacroModel.cs b/src/Umbraco.Core/Models/PartialViewMacroModel.cs index f3272644f4..1ab2078a76 100644 --- a/src/Umbraco.Core/Models/PartialViewMacroModel.cs +++ b/src/Umbraco.Core/Models/PartialViewMacroModel.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.PublishedContent; -namespace Umbraco.Web.Models +namespace Umbraco.Cms.Core.Models { /// /// The model used when rendering Partial View Macros @@ -21,7 +21,7 @@ namespace Umbraco.Web.Models MacroAlias = macroAlias; MacroId = macroId; } - + public IPublishedContent Content { get; } public string MacroName { get; } public string MacroAlias { get; } diff --git a/src/Umbraco.Core/Models/PartialViewMacroModelExtensions.cs b/src/Umbraco.Core/Models/PartialViewMacroModelExtensions.cs index 9a74a1db31..8ec2206d60 100644 --- a/src/Umbraco.Core/Models/PartialViewMacroModelExtensions.cs +++ b/src/Umbraco.Core/Models/PartialViewMacroModelExtensions.cs @@ -1,6 +1,6 @@ -using Umbraco.Core; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Web.Models +namespace Umbraco.Extensions { /// /// Extension methods for the PartialViewMacroModel object diff --git a/src/Umbraco.Core/Models/PartialViewType.cs b/src/Umbraco.Core/Models/PartialViewType.cs index 6204b6e165..5dc6dbc59c 100644 --- a/src/Umbraco.Core/Models/PartialViewType.cs +++ b/src/Umbraco.Core/Models/PartialViewType.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { public enum PartialViewType : byte { diff --git a/src/Umbraco.Core/Models/PasswordChangedModel.cs b/src/Umbraco.Core/Models/PasswordChangedModel.cs index cdebd90fc5..11696cfc08 100644 --- a/src/Umbraco.Core/Models/PasswordChangedModel.cs +++ b/src/Umbraco.Core/Models/PasswordChangedModel.cs @@ -1,6 +1,6 @@ using System.ComponentModel.DataAnnotations; -namespace Umbraco.Web.Models +namespace Umbraco.Cms.Core.Models { /// /// A model representing an attempt at changing a password diff --git a/src/Umbraco.Core/Models/Property.cs b/src/Umbraco.Core/Models/Property.cs index 798f84cf6f..00a774cc25 100644 --- a/src/Umbraco.Core/Models/Property.cs +++ b/src/Umbraco.Core/Models/Property.cs @@ -3,10 +3,11 @@ using System.Collections; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; -using Umbraco.Core.Collections; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Collections; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Extensions; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents a property. diff --git a/src/Umbraco.Core/Models/PropertyCollection.cs b/src/Umbraco.Core/Models/PropertyCollection.cs index 21b13d58da..593e163e03 100644 --- a/src/Umbraco.Core/Models/PropertyCollection.cs +++ b/src/Umbraco.Core/Models/PropertyCollection.cs @@ -4,8 +4,9 @@ using System.Collections.ObjectModel; using System.Collections.Specialized; using System.Linq; using System.Runtime.Serialization; +using Umbraco.Extensions; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// diff --git a/src/Umbraco.Core/Models/PropertyGroup.cs b/src/Umbraco.Core/Models/PropertyGroup.cs index 022fb6ed03..e086839304 100644 --- a/src/Umbraco.Core/Models/PropertyGroup.cs +++ b/src/Umbraco.Core/Models/PropertyGroup.cs @@ -2,9 +2,10 @@ using System.Collections.Specialized; using System.Diagnostics; using System.Runtime.Serialization; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Extensions; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// A group of property types, which corresponds to the properties grouped under a Tab. @@ -69,7 +70,7 @@ namespace Umbraco.Core.Models { _propertyTypes.ClearCollectionChangedEvents(); } - + _propertyTypes = value; // since we're adding this collection to this group, diff --git a/src/Umbraco.Core/Models/PropertyGroupCollection.cs b/src/Umbraco.Core/Models/PropertyGroupCollection.cs index 11f4e470ee..a82f2278af 100644 --- a/src/Umbraco.Core/Models/PropertyGroupCollection.cs +++ b/src/Umbraco.Core/Models/PropertyGroupCollection.cs @@ -6,7 +6,7 @@ using System.Linq; using System.Runtime.Serialization; using System.Threading; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// diff --git a/src/Umbraco.Core/Models/PropertyTagsExtensions.cs b/src/Umbraco.Core/Models/PropertyTagsExtensions.cs index ba33547dd6..390f644831 100644 --- a/src/Umbraco.Core/Models/PropertyTagsExtensions.cs +++ b/src/Umbraco.Core/Models/PropertyTagsExtensions.cs @@ -2,11 +2,13 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; -namespace Umbraco.Core.Models +namespace Umbraco.Extensions { /// /// Provides extension methods for the class to manage tags. diff --git a/src/Umbraco.Core/Models/PropertyType.cs b/src/Umbraco.Core/Models/PropertyType.cs index 4ded638e44..29e3dd6f33 100644 --- a/src/Umbraco.Core/Models/PropertyType.cs +++ b/src/Umbraco.Core/Models/PropertyType.cs @@ -1,12 +1,11 @@ using System; using System.Diagnostics; -using System.Linq; using System.Runtime.Serialization; -using Umbraco.Core.Composing; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Strings; +using Umbraco.Extensions; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents a property type. diff --git a/src/Umbraco.Core/Models/PropertyTypeCollection.cs b/src/Umbraco.Core/Models/PropertyTypeCollection.cs index 132c80e7d1..df4e3c65e7 100644 --- a/src/Umbraco.Core/Models/PropertyTypeCollection.cs +++ b/src/Umbraco.Core/Models/PropertyTypeCollection.cs @@ -6,7 +6,7 @@ using System.Linq; using System.Runtime.Serialization; using System.Threading; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { //public interface IPropertyTypeCollection: IEnumerable @@ -84,7 +84,7 @@ namespace Umbraco.Core.Models } // 'new' keyword is required! we can explicitly implement ICollection.Add BUT since normally a concrete PropertyType type - // is passed in, the explicit implementation doesn't get called, this ensures it does get called. + // is passed in, the explicit implementation doesn't get called, this ensures it does get called. public new void Add(IPropertyType item) { item.SupportsPublishing = SupportsPublishing; @@ -165,7 +165,7 @@ namespace Umbraco.Core.Models } public event NotifyCollectionChangedEventHandler CollectionChanged; - + /// /// Clears all event handlers /// diff --git a/src/Umbraco.Core/Models/PublicAccessEntry.cs b/src/Umbraco.Core/Models/PublicAccessEntry.cs index e48e3bd711..d5bb3d95c0 100644 --- a/src/Umbraco.Core/Models/PublicAccessEntry.cs +++ b/src/Umbraco.Core/Models/PublicAccessEntry.cs @@ -1,13 +1,12 @@ using System; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Collections.Specialized; using System.Linq; using System.Runtime.Serialization; -using Umbraco.Core.Collections; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Collections; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { [Serializable] [DataContract(IsReference = true)] @@ -77,7 +76,7 @@ namespace Umbraco.Core.Models } } - + public IEnumerable RemovedRules => _removedRules; public IEnumerable Rules => _ruleCollection; diff --git a/src/Umbraco.Core/Models/PublicAccessRule.cs b/src/Umbraco.Core/Models/PublicAccessRule.cs index 482ddd0638..0b66c5a289 100644 --- a/src/Umbraco.Core/Models/PublicAccessRule.cs +++ b/src/Umbraco.Core/Models/PublicAccessRule.cs @@ -1,8 +1,8 @@ using System; using System.Runtime.Serialization; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { [Serializable] [DataContract(IsReference = true)] diff --git a/src/Umbraco.Core/Models/PublishedContent/Fallback.cs b/src/Umbraco.Core/Models/PublishedContent/Fallback.cs index 0434218555..1aaa0d9814 100644 --- a/src/Umbraco.Core/Models/PublishedContent/Fallback.cs +++ b/src/Umbraco.Core/Models/PublishedContent/Fallback.cs @@ -2,7 +2,7 @@ using System.Collections; using System.Collections.Generic; -namespace Umbraco.Core.Models.PublishedContent +namespace Umbraco.Cms.Core.Models.PublishedContent { /// /// Manages the built-in fallback policies. diff --git a/src/Umbraco.Core/Models/PublishedContent/HttpContextVariationContextAccessor.cs b/src/Umbraco.Core/Models/PublishedContent/HttpContextVariationContextAccessor.cs index 9410a4f611..47b8395897 100644 --- a/src/Umbraco.Core/Models/PublishedContent/HttpContextVariationContextAccessor.cs +++ b/src/Umbraco.Core/Models/PublishedContent/HttpContextVariationContextAccessor.cs @@ -1,7 +1,6 @@ -using Umbraco.Core.Cache; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Cache; -namespace Umbraco.Web.Models.PublishedContent +namespace Umbraco.Cms.Core.Models.PublishedContent { /// /// Implements on top of . diff --git a/src/Umbraco.Core/Models/PublishedContent/HybridVariationContextAccessor.cs b/src/Umbraco.Core/Models/PublishedContent/HybridVariationContextAccessor.cs index 6f97c1dc5c..c412a4de3a 100644 --- a/src/Umbraco.Core/Models/PublishedContent/HybridVariationContextAccessor.cs +++ b/src/Umbraco.Core/Models/PublishedContent/HybridVariationContextAccessor.cs @@ -1,7 +1,6 @@ -using Umbraco.Core.Cache; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Cache; -namespace Umbraco.Web.Models.PublishedContent +namespace Umbraco.Cms.Core.Models.PublishedContent { /// /// Implements a hybrid . diff --git a/src/Umbraco.Core/Models/PublishedContent/ILivePublishedModelFactory.cs b/src/Umbraco.Core/Models/PublishedContent/ILivePublishedModelFactory.cs index 091893fb72..f16fe0d3f5 100644 --- a/src/Umbraco.Core/Models/PublishedContent/ILivePublishedModelFactory.cs +++ b/src/Umbraco.Core/Models/PublishedContent/ILivePublishedModelFactory.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models.PublishedContent +namespace Umbraco.Cms.Core.Models.PublishedContent { /// diff --git a/src/Umbraco.Core/Models/PublishedContent/IPublishedContent.cs b/src/Umbraco.Core/Models/PublishedContent/IPublishedContent.cs index f8784973b7..5d4eb2f74f 100644 --- a/src/Umbraco.Core/Models/PublishedContent/IPublishedContent.cs +++ b/src/Umbraco.Core/Models/PublishedContent/IPublishedContent.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; -namespace Umbraco.Core.Models.PublishedContent +namespace Umbraco.Cms.Core.Models.PublishedContent { /// /// diff --git a/src/Umbraco.Core/Models/PublishedContent/IPublishedContentType.cs b/src/Umbraco.Core/Models/PublishedContent/IPublishedContentType.cs index f9330176aa..866acc0c4d 100644 --- a/src/Umbraco.Core/Models/PublishedContent/IPublishedContentType.cs +++ b/src/Umbraco.Core/Models/PublishedContent/IPublishedContentType.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; -namespace Umbraco.Core.Models.PublishedContent +namespace Umbraco.Cms.Core.Models.PublishedContent { /// /// Represents an type. diff --git a/src/Umbraco.Core/Models/PublishedContent/IPublishedContentTypeFactory.cs b/src/Umbraco.Core/Models/PublishedContent/IPublishedContentTypeFactory.cs index cc514b791e..b1a1740b31 100644 --- a/src/Umbraco.Core/Models/PublishedContent/IPublishedContentTypeFactory.cs +++ b/src/Umbraco.Core/Models/PublishedContent/IPublishedContentTypeFactory.cs @@ -1,4 +1,4 @@ -namespace Umbraco. Core.Models.PublishedContent +namespace Umbraco.Cms.Core.Models.PublishedContent { /// diff --git a/src/Umbraco.Core/Models/PublishedContent/IPublishedElement.cs b/src/Umbraco.Core/Models/PublishedContent/IPublishedElement.cs index 4c72dc914a..f70fb9db7b 100644 --- a/src/Umbraco.Core/Models/PublishedContent/IPublishedElement.cs +++ b/src/Umbraco.Core/Models/PublishedContent/IPublishedElement.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; -namespace Umbraco.Core.Models.PublishedContent +namespace Umbraco.Cms.Core.Models.PublishedContent { /// /// Represents a published element. diff --git a/src/Umbraco.Core/Models/PublishedContent/IPublishedModelFactory.cs b/src/Umbraco.Core/Models/PublishedContent/IPublishedModelFactory.cs index 60fa0fe603..0d7440ff9c 100644 --- a/src/Umbraco.Core/Models/PublishedContent/IPublishedModelFactory.cs +++ b/src/Umbraco.Core/Models/PublishedContent/IPublishedModelFactory.cs @@ -1,7 +1,7 @@ using System; using System.Collections; -namespace Umbraco.Core.Models.PublishedContent +namespace Umbraco.Cms.Core.Models.PublishedContent { /// diff --git a/src/Umbraco.Core/Models/PublishedContent/IPublishedProperty.cs b/src/Umbraco.Core/Models/PublishedContent/IPublishedProperty.cs index 2ee7dcb28f..0c4bf4c4eb 100644 --- a/src/Umbraco.Core/Models/PublishedContent/IPublishedProperty.cs +++ b/src/Umbraco.Core/Models/PublishedContent/IPublishedProperty.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models.PublishedContent +namespace Umbraco.Cms.Core.Models.PublishedContent { /// /// Represents a property of an IPublishedElement. diff --git a/src/Umbraco.Core/Models/PublishedContent/IPublishedPropertyType.cs b/src/Umbraco.Core/Models/PublishedContent/IPublishedPropertyType.cs index 40f2bf3df2..04d900e89f 100644 --- a/src/Umbraco.Core/Models/PublishedContent/IPublishedPropertyType.cs +++ b/src/Umbraco.Core/Models/PublishedContent/IPublishedPropertyType.cs @@ -1,7 +1,7 @@ using System; -using Umbraco.Core.PropertyEditors; +using Umbraco.Cms.Core.PropertyEditors; -namespace Umbraco.Core.Models.PublishedContent +namespace Umbraco.Cms.Core.Models.PublishedContent { /// /// Represents a published property type. @@ -105,4 +105,4 @@ namespace Umbraco.Core.Models.PublishedContent /// Type ClrType { get; } } -} \ No newline at end of file +} diff --git a/src/Umbraco.Core/Models/PublishedContent/IPublishedValueFallback.cs b/src/Umbraco.Core/Models/PublishedContent/IPublishedValueFallback.cs index 23df9e485f..4ece22ab22 100644 --- a/src/Umbraco.Core/Models/PublishedContent/IPublishedValueFallback.cs +++ b/src/Umbraco.Core/Models/PublishedContent/IPublishedValueFallback.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models.PublishedContent +namespace Umbraco.Cms.Core.Models.PublishedContent { /// /// Provides a fallback strategy for getting values. diff --git a/src/Umbraco.Core/Models/PublishedContent/IVariationContextAccessor.cs b/src/Umbraco.Core/Models/PublishedContent/IVariationContextAccessor.cs index b9c416da00..39f256faf2 100644 --- a/src/Umbraco.Core/Models/PublishedContent/IVariationContextAccessor.cs +++ b/src/Umbraco.Core/Models/PublishedContent/IVariationContextAccessor.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models.PublishedContent +namespace Umbraco.Cms.Core.Models.PublishedContent { /// /// Gives access to the current . diff --git a/src/Umbraco.Core/Models/PublishedContent/IndexedArrayItem.cs b/src/Umbraco.Core/Models/PublishedContent/IndexedArrayItem.cs index 4b0432ca50..7c7049c026 100644 --- a/src/Umbraco.Core/Models/PublishedContent/IndexedArrayItem.cs +++ b/src/Umbraco.Core/Models/PublishedContent/IndexedArrayItem.cs @@ -1,7 +1,7 @@ using System.Net; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Strings; -namespace Umbraco.Core.Models.PublishedContent +namespace Umbraco.Cms.Core.Models.PublishedContent { /// /// Represents an item in an array that stores its own index and the total count. diff --git a/src/Umbraco.Core/Models/PublishedContent/ModelType.cs b/src/Umbraco.Core/Models/PublishedContent/ModelType.cs index 94e7958780..921059ff22 100644 --- a/src/Umbraco.Core/Models/PublishedContent/ModelType.cs +++ b/src/Umbraco.Core/Models/PublishedContent/ModelType.cs @@ -3,9 +3,9 @@ using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Reflection; -using Umbraco.Core.Exceptions; +using Umbraco.Cms.Core.Exceptions; -namespace Umbraco.Core.Models.PublishedContent +namespace Umbraco.Cms.Core.Models.PublishedContent { /// /// diff --git a/src/Umbraco.Core/Models/PublishedContent/NoopPublishedModelFactory.cs b/src/Umbraco.Core/Models/PublishedContent/NoopPublishedModelFactory.cs index 77001f43ed..d3f97a893d 100644 --- a/src/Umbraco.Core/Models/PublishedContent/NoopPublishedModelFactory.cs +++ b/src/Umbraco.Core/Models/PublishedContent/NoopPublishedModelFactory.cs @@ -2,7 +2,7 @@ using System.Collections; using System.Collections.Generic; -namespace Umbraco.Core.Models.PublishedContent +namespace Umbraco.Cms.Core.Models.PublishedContent { /// /// Represents a no-operation factory. diff --git a/src/Umbraco.Core/Models/PublishedContent/NoopPublishedValueFallback.cs b/src/Umbraco.Core/Models/PublishedContent/NoopPublishedValueFallback.cs index 245bbd1d39..82a6b44565 100644 --- a/src/Umbraco.Core/Models/PublishedContent/NoopPublishedValueFallback.cs +++ b/src/Umbraco.Core/Models/PublishedContent/NoopPublishedValueFallback.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models.PublishedContent +namespace Umbraco.Cms.Core.Models.PublishedContent { /// /// Provides a noop implementation for . diff --git a/src/Umbraco.Core/Models/PublishedContent/PublishedContentBase.cs b/src/Umbraco.Core/Models/PublishedContent/PublishedContentBase.cs index 02912a6f8e..7c57b8281f 100644 --- a/src/Umbraco.Core/Models/PublishedContent/PublishedContentBase.cs +++ b/src/Umbraco.Core/Models/PublishedContent/PublishedContentBase.cs @@ -1,10 +1,9 @@ using System; using System.Collections.Generic; using System.Diagnostics; -using Umbraco.Core; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Extensions; -namespace Umbraco.Web.Models +namespace Umbraco.Cms.Core.Models.PublishedContent { /// /// Provide an abstract base class for IPublishedContent implementations. diff --git a/src/Umbraco.Core/Models/PublishedContent/PublishedContentExtensionsForModels.cs b/src/Umbraco.Core/Models/PublishedContent/PublishedContentExtensionsForModels.cs index 5739f559a6..2990c5969f 100644 --- a/src/Umbraco.Core/Models/PublishedContent/PublishedContentExtensionsForModels.cs +++ b/src/Umbraco.Core/Models/PublishedContent/PublishedContentExtensionsForModels.cs @@ -1,8 +1,8 @@ using System; +using Umbraco.Cms.Core.Models.PublishedContent; -namespace Umbraco.Core.Models.PublishedContent +namespace Umbraco.Extensions { - /// /// Provides strongly typed published content models services. /// diff --git a/src/Umbraco.Core/Models/PublishedContent/PublishedContentModel.cs b/src/Umbraco.Core/Models/PublishedContent/PublishedContentModel.cs index 43f6160250..ee92ae2d39 100644 --- a/src/Umbraco.Core/Models/PublishedContent/PublishedContentModel.cs +++ b/src/Umbraco.Core/Models/PublishedContent/PublishedContentModel.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models.PublishedContent +namespace Umbraco.Cms.Core.Models.PublishedContent { /// /// Represents a strongly-typed published content. diff --git a/src/Umbraco.Core/Models/PublishedContent/PublishedContentType.cs b/src/Umbraco.Core/Models/PublishedContent/PublishedContentType.cs index daf75f5c50..b48c13f21f 100644 --- a/src/Umbraco.Core/Models/PublishedContent/PublishedContentType.cs +++ b/src/Umbraco.Core/Models/PublishedContent/PublishedContentType.cs @@ -1,8 +1,9 @@ using System; using System.Collections.Generic; using System.Linq; +using Umbraco.Extensions; -namespace Umbraco.Core.Models.PublishedContent +namespace Umbraco.Cms.Core.Models.PublishedContent { /// /// Represents an type. @@ -76,7 +77,7 @@ namespace Umbraco.Core.Models.PublishedContent InitializeIndexes(); } - + [Obsolete("Use the overload specifying a key instead")] public PublishedContentType(int id, string alias, PublishedItemType itemType, IEnumerable compositionAliases, Func> propertyTypes, ContentVariation variations, bool isElement = false) : this(Guid.Empty, id, alias, itemType, compositionAliases, variations, isElement) diff --git a/src/Umbraco.Core/Models/PublishedContent/PublishedContentTypeConverter.cs b/src/Umbraco.Core/Models/PublishedContent/PublishedContentTypeConverter.cs index 094f481db9..9c57fe29a9 100644 --- a/src/Umbraco.Core/Models/PublishedContent/PublishedContentTypeConverter.cs +++ b/src/Umbraco.Core/Models/PublishedContent/PublishedContentTypeConverter.cs @@ -3,7 +3,7 @@ using System.ComponentModel; using System.Globalization; using System.Linq; -namespace Umbraco.Core.Models.PublishedContent +namespace Umbraco.Cms.Core.Models.PublishedContent { internal class PublishedContentTypeConverter : TypeConverter { diff --git a/src/Umbraco.Core/Models/PublishedContent/PublishedContentTypeFactory.cs b/src/Umbraco.Core/Models/PublishedContent/PublishedContentTypeFactory.cs index 1d32feba16..d93049abeb 100644 --- a/src/Umbraco.Core/Models/PublishedContent/PublishedContentTypeFactory.cs +++ b/src/Umbraco.Core/Models/PublishedContent/PublishedContentTypeFactory.cs @@ -1,10 +1,10 @@ using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Services; -namespace Umbraco.Core.Models.PublishedContent +namespace Umbraco.Cms.Core.Models.PublishedContent { /// /// Provides a default implementation for . diff --git a/src/Umbraco.Core/Models/PublishedContent/PublishedContentWrapped.cs b/src/Umbraco.Core/Models/PublishedContent/PublishedContentWrapped.cs index 88a904bac1..763c9e438f 100644 --- a/src/Umbraco.Core/Models/PublishedContent/PublishedContentWrapped.cs +++ b/src/Umbraco.Core/Models/PublishedContent/PublishedContentWrapped.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; -namespace Umbraco.Core.Models.PublishedContent +namespace Umbraco.Cms.Core.Models.PublishedContent { // // we cannot implement strongly-typed content by inheriting from some sort diff --git a/src/Umbraco.Core/Models/PublishedContent/PublishedCultureInfos.cs b/src/Umbraco.Core/Models/PublishedContent/PublishedCultureInfos.cs index 8cf159ac60..5f8d209162 100644 --- a/src/Umbraco.Core/Models/PublishedContent/PublishedCultureInfos.cs +++ b/src/Umbraco.Core/Models/PublishedContent/PublishedCultureInfos.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Models.PublishedContent +namespace Umbraco.Cms.Core.Models.PublishedContent { /// /// Contains culture specific values for . diff --git a/src/Umbraco.Core/Models/PublishedContent/PublishedDataType.cs b/src/Umbraco.Core/Models/PublishedContent/PublishedDataType.cs index 5f8ec3d335..ecf3981c36 100644 --- a/src/Umbraco.Core/Models/PublishedContent/PublishedDataType.cs +++ b/src/Umbraco.Core/Models/PublishedContent/PublishedDataType.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Models.PublishedContent +namespace Umbraco.Cms.Core.Models.PublishedContent { /// /// Represents a published data type. diff --git a/src/Umbraco.Core/Models/PublishedContent/PublishedElementModel.cs b/src/Umbraco.Core/Models/PublishedContent/PublishedElementModel.cs index 882109f908..2de60c5705 100644 --- a/src/Umbraco.Core/Models/PublishedContent/PublishedElementModel.cs +++ b/src/Umbraco.Core/Models/PublishedContent/PublishedElementModel.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models.PublishedContent +namespace Umbraco.Cms.Core.Models.PublishedContent { /// /// diff --git a/src/Umbraco.Core/Models/PublishedContent/PublishedElementWrapped.cs b/src/Umbraco.Core/Models/PublishedContent/PublishedElementWrapped.cs index 481b9bd5d2..3feb4835e7 100644 --- a/src/Umbraco.Core/Models/PublishedContent/PublishedElementWrapped.cs +++ b/src/Umbraco.Core/Models/PublishedContent/PublishedElementWrapped.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; -namespace Umbraco.Core.Models.PublishedContent +namespace Umbraco.Cms.Core.Models.PublishedContent { /// /// Provides an abstract base class for IPublishedElement implementations that diff --git a/src/Umbraco.Core/Models/PublishedContent/PublishedItemType.cs b/src/Umbraco.Core/Models/PublishedContent/PublishedItemType.cs index 42e9c9538d..7d16152b6e 100644 --- a/src/Umbraco.Core/Models/PublishedContent/PublishedItemType.cs +++ b/src/Umbraco.Core/Models/PublishedContent/PublishedItemType.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models.PublishedContent +namespace Umbraco.Cms.Core.Models.PublishedContent { /// /// The type of published element. diff --git a/src/Umbraco.Core/Models/PublishedContent/PublishedModelAttribute.cs b/src/Umbraco.Core/Models/PublishedContent/PublishedModelAttribute.cs index 3f2c63a78f..035c8a213a 100644 --- a/src/Umbraco.Core/Models/PublishedContent/PublishedModelAttribute.cs +++ b/src/Umbraco.Core/Models/PublishedContent/PublishedModelAttribute.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Models.PublishedContent +namespace Umbraco.Cms.Core.Models.PublishedContent { /// /// diff --git a/src/Umbraco.Core/Models/PublishedContent/PublishedModelFactory.cs b/src/Umbraco.Core/Models/PublishedContent/PublishedModelFactory.cs index 0c6a21ddb3..23a060a3fd 100644 --- a/src/Umbraco.Core/Models/PublishedContent/PublishedModelFactory.cs +++ b/src/Umbraco.Core/Models/PublishedContent/PublishedModelFactory.cs @@ -3,7 +3,7 @@ using System.Collections; using System.Collections.Generic; using System.Reflection; -namespace Umbraco.Core.Models.PublishedContent +namespace Umbraco.Cms.Core.Models.PublishedContent { /// /// Implements a strongly typed content model factory diff --git a/src/Umbraco.Core/Models/PublishedContent/PublishedPropertyBase.cs b/src/Umbraco.Core/Models/PublishedContent/PublishedPropertyBase.cs index 33f8e94139..dd77d899ca 100644 --- a/src/Umbraco.Core/Models/PublishedContent/PublishedPropertyBase.cs +++ b/src/Umbraco.Core/Models/PublishedContent/PublishedPropertyBase.cs @@ -1,7 +1,7 @@ using System; -using Umbraco.Core.PropertyEditors; +using Umbraco.Cms.Core.PropertyEditors; -namespace Umbraco.Core.Models.PublishedContent +namespace Umbraco.Cms.Core.Models.PublishedContent { /// /// Provides a base class for IPublishedProperty implementations which converts and caches diff --git a/src/Umbraco.Core/Models/PublishedContent/PublishedPropertyType.cs b/src/Umbraco.Core/Models/PublishedContent/PublishedPropertyType.cs index b5e87ad6ff..236edc0ff0 100644 --- a/src/Umbraco.Core/Models/PublishedContent/PublishedPropertyType.cs +++ b/src/Umbraco.Core/Models/PublishedContent/PublishedPropertyType.cs @@ -1,9 +1,9 @@ using System; using System.Xml.Linq; using System.Xml.XPath; -using Umbraco.Core.PropertyEditors; +using Umbraco.Cms.Core.PropertyEditors; -namespace Umbraco.Core.Models.PublishedContent +namespace Umbraco.Cms.Core.Models.PublishedContent { /// /// Represents a published property type. diff --git a/src/Umbraco.Core/Models/PublishedContent/PublishedSearchResult.cs b/src/Umbraco.Core/Models/PublishedContent/PublishedSearchResult.cs index 6d30334415..c713d02bbe 100644 --- a/src/Umbraco.Core/Models/PublishedContent/PublishedSearchResult.cs +++ b/src/Umbraco.Core/Models/PublishedContent/PublishedSearchResult.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models.PublishedContent +namespace Umbraco.Cms.Core.Models.PublishedContent { public class PublishedSearchResult { diff --git a/src/Umbraco.Core/Models/PublishedContent/PublishedValueFallback.cs b/src/Umbraco.Core/Models/PublishedContent/PublishedValueFallback.cs index 79c7f824fc..2c4ecfdb67 100644 --- a/src/Umbraco.Core/Models/PublishedContent/PublishedValueFallback.cs +++ b/src/Umbraco.Core/Models/PublishedContent/PublishedValueFallback.cs @@ -1,11 +1,9 @@ using System; using System.Collections.Generic; -using System.Linq; -using Umbraco.Core; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; -namespace Umbraco.Web.Models.PublishedContent +namespace Umbraco.Cms.Core.Models.PublishedContent { /// /// Provides a default implementation for . diff --git a/src/Umbraco.Core/Models/PublishedContent/RawValueProperty.cs b/src/Umbraco.Core/Models/PublishedContent/RawValueProperty.cs index 596840cf6a..92509015de 100644 --- a/src/Umbraco.Core/Models/PublishedContent/RawValueProperty.cs +++ b/src/Umbraco.Core/Models/PublishedContent/RawValueProperty.cs @@ -1,7 +1,7 @@ using System; -using Umbraco.Core.PropertyEditors; +using Umbraco.Cms.Core.PropertyEditors; -namespace Umbraco.Core.Models.PublishedContent +namespace Umbraco.Cms.Core.Models.PublishedContent { /// /// diff --git a/src/Umbraco.Core/Models/PublishedContent/ThreadCultureVariationContextAccessor.cs b/src/Umbraco.Core/Models/PublishedContent/ThreadCultureVariationContextAccessor.cs index 7a000c223a..a3c4cbfb70 100644 --- a/src/Umbraco.Core/Models/PublishedContent/ThreadCultureVariationContextAccessor.cs +++ b/src/Umbraco.Core/Models/PublishedContent/ThreadCultureVariationContextAccessor.cs @@ -2,7 +2,7 @@ using System.Collections.Concurrent; using System.Threading; -namespace Umbraco.Core.Models.PublishedContent +namespace Umbraco.Cms.Core.Models.PublishedContent { /// /// Provides a CurrentUICulture-based implementation of . diff --git a/src/Umbraco.Core/Models/PublishedContent/UrlMode.cs b/src/Umbraco.Core/Models/PublishedContent/UrlMode.cs index d11459bb9e..8e24f25332 100644 --- a/src/Umbraco.Core/Models/PublishedContent/UrlMode.cs +++ b/src/Umbraco.Core/Models/PublishedContent/UrlMode.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models.PublishedContent +namespace Umbraco.Cms.Core.Models.PublishedContent { /// /// Specifies the type of URLs that the URL provider should produce, Auto is the default. diff --git a/src/Umbraco.Core/Models/PublishedContent/VariationContext.cs b/src/Umbraco.Core/Models/PublishedContent/VariationContext.cs index 424fc7c4a8..87b5d0f517 100644 --- a/src/Umbraco.Core/Models/PublishedContent/VariationContext.cs +++ b/src/Umbraco.Core/Models/PublishedContent/VariationContext.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models.PublishedContent +namespace Umbraco.Cms.Core.Models.PublishedContent { /// /// Represents the variation context. diff --git a/src/Umbraco.Core/Models/PublishedContent/VariationContextAccessorExtensions.cs b/src/Umbraco.Core/Models/PublishedContent/VariationContextAccessorExtensions.cs index a387ea87b8..16ccd81000 100644 --- a/src/Umbraco.Core/Models/PublishedContent/VariationContextAccessorExtensions.cs +++ b/src/Umbraco.Core/Models/PublishedContent/VariationContextAccessorExtensions.cs @@ -1,4 +1,10 @@ -namespace Umbraco.Core.Models.PublishedContent +// Copyright (c) Umbraco. +// See LICENSE for more details. + +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; + +namespace Umbraco.Extensions { public static class VariationContextAccessorExtensions { @@ -14,7 +20,10 @@ // use context values var publishedVariationContext = variationContextAccessor?.VariationContext; - if (culture == null) culture = variations.VariesByCulture() ? publishedVariationContext?.Culture : ""; + if (culture == null) + { + culture = variations.VariesByCulture() ? publishedVariationContext?.Culture : ""; + } if (segment == null) { diff --git a/src/Umbraco.Core/Models/PublishedState.cs b/src/Umbraco.Core/Models/PublishedState.cs index ace7cbdebc..87c106e11e 100644 --- a/src/Umbraco.Core/Models/PublishedState.cs +++ b/src/Umbraco.Core/Models/PublishedState.cs @@ -1,6 +1,4 @@ -using System; - -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// diff --git a/src/Umbraco.Core/Models/Range.cs b/src/Umbraco.Core/Models/Range.cs index 108d564665..7aa4bf5ed8 100644 --- a/src/Umbraco.Core/Models/Range.cs +++ b/src/Umbraco.Core/Models/Range.cs @@ -1,7 +1,7 @@ using System; using System.Globalization; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents a range with a minimum and maximum value. diff --git a/src/Umbraco.Core/Models/ReadOnlyRelation.cs b/src/Umbraco.Core/Models/ReadOnlyRelation.cs index f2801a93ec..a57a5ba7e1 100644 --- a/src/Umbraco.Core/Models/ReadOnlyRelation.cs +++ b/src/Umbraco.Core/Models/ReadOnlyRelation.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// A read only relation. Can be used to bulk save witch performs better than the normal save operation, diff --git a/src/Umbraco.Core/Models/RedirectUrl.cs b/src/Umbraco.Core/Models/RedirectUrl.cs index f4eb955c64..2997ae0ffd 100644 --- a/src/Umbraco.Core/Models/RedirectUrl.cs +++ b/src/Umbraco.Core/Models/RedirectUrl.cs @@ -1,8 +1,8 @@ using System; using System.Runtime.Serialization; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Implements . diff --git a/src/Umbraco.Core/Models/Relation.cs b/src/Umbraco.Core/Models/Relation.cs index 7afa476226..26656593fd 100644 --- a/src/Umbraco.Core/Models/Relation.cs +++ b/src/Umbraco.Core/Models/Relation.cs @@ -1,8 +1,8 @@ using System; using System.Runtime.Serialization; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents a Relation between two items diff --git a/src/Umbraco.Core/Models/RelationType.cs b/src/Umbraco.Core/Models/RelationType.cs index f848a90cb1..2def0eb636 100644 --- a/src/Umbraco.Core/Models/RelationType.cs +++ b/src/Umbraco.Core/Models/RelationType.cs @@ -1,9 +1,8 @@ using System; using System.Runtime.Serialization; -using Umbraco.Core.Exceptions; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents a RelationType diff --git a/src/Umbraco.Core/Models/RelationTypeExtensions.cs b/src/Umbraco.Core/Models/RelationTypeExtensions.cs index 4d9d6856cb..1e7282b66b 100644 --- a/src/Umbraco.Core/Models/RelationTypeExtensions.cs +++ b/src/Umbraco.Core/Models/RelationTypeExtensions.cs @@ -1,4 +1,10 @@ -namespace Umbraco.Core.Models +// Copyright (c) Umbraco. +// See LICENSE for more details. + +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models; + +namespace Umbraco.Extensions { public static class RelationTypeExtensions { diff --git a/src/Umbraco.Core/Models/RequestPasswordResetModel.cs b/src/Umbraco.Core/Models/RequestPasswordResetModel.cs index 0ea173bfd6..10ade8b589 100644 --- a/src/Umbraco.Core/Models/RequestPasswordResetModel.cs +++ b/src/Umbraco.Core/Models/RequestPasswordResetModel.cs @@ -1,7 +1,7 @@ using System.ComponentModel.DataAnnotations; using System.Runtime.Serialization; -namespace Umbraco.Web.Models +namespace Umbraco.Cms.Core.Models { [DataContract(Name = "requestPasswordReset", Namespace = "")] diff --git a/src/Umbraco.Core/Models/Script.cs b/src/Umbraco.Core/Models/Script.cs index be96c04ddd..3841be5598 100644 --- a/src/Umbraco.Core/Models/Script.cs +++ b/src/Umbraco.Core/Models/Script.cs @@ -1,8 +1,7 @@ using System; using System.Runtime.Serialization; - -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents a Script file diff --git a/src/Umbraco.Core/Models/Security/LoginModel.cs b/src/Umbraco.Core/Models/Security/LoginModel.cs index 98c9d23cff..3a639603eb 100644 --- a/src/Umbraco.Core/Models/Security/LoginModel.cs +++ b/src/Umbraco.Core/Models/Security/LoginModel.cs @@ -1,7 +1,7 @@ using System.ComponentModel.DataAnnotations; using System.Runtime.Serialization; -namespace Umbraco.Core.Models.Security +namespace Umbraco.Cms.Core.Models.Security { public class LoginModel : PostRedirectModel { diff --git a/src/Umbraco.Core/Models/Security/LoginStatusModel.cs b/src/Umbraco.Core/Models/Security/LoginStatusModel.cs index 3978a84334..040c72187d 100644 --- a/src/Umbraco.Core/Models/Security/LoginStatusModel.cs +++ b/src/Umbraco.Core/Models/Security/LoginStatusModel.cs @@ -1,6 +1,6 @@ using System.ComponentModel.DataAnnotations; -namespace Umbraco.Core.Models.Security +namespace Umbraco.Cms.Core.Models.Security { /// /// The model representing the status of a logged in member. diff --git a/src/Umbraco.Core/Models/Security/PostRedirectModel.cs b/src/Umbraco.Core/Models/Security/PostRedirectModel.cs index 3a87cdcbe5..179b24ce0c 100644 --- a/src/Umbraco.Core/Models/Security/PostRedirectModel.cs +++ b/src/Umbraco.Core/Models/Security/PostRedirectModel.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models.Security +namespace Umbraco.Cms.Core.Models.Security { /// /// A base model containing a value to indicate to Umbraco where to redirect to after Posting if diff --git a/src/Umbraco.Core/Models/Security/ProfileModel.cs b/src/Umbraco.Core/Models/Security/ProfileModel.cs index 8493a5f5a9..2a495b1264 100644 --- a/src/Umbraco.Core/Models/Security/ProfileModel.cs +++ b/src/Umbraco.Core/Models/Security/ProfileModel.cs @@ -2,9 +2,8 @@ using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; -using Umbraco.Web.Models; -namespace Umbraco.Core.Models.Security +namespace Umbraco.Cms.Core.Models.Security { /// /// A readonly member profile model diff --git a/src/Umbraco.Core/Models/Security/RegisterModel.cs b/src/Umbraco.Core/Models/Security/RegisterModel.cs index fca749703d..0cfb249fe0 100644 --- a/src/Umbraco.Core/Models/Security/RegisterModel.cs +++ b/src/Umbraco.Core/Models/Security/RegisterModel.cs @@ -1,8 +1,7 @@ using System.Collections.Generic; using System.ComponentModel.DataAnnotations; -using Umbraco.Web.Models; -namespace Umbraco.Core.Models.Security +namespace Umbraco.Cms.Core.Models.Security { public class RegisterModel : PostRedirectModel { diff --git a/src/Umbraco.Core/Models/SendCodeViewModel.cs b/src/Umbraco.Core/Models/SendCodeViewModel.cs index 32aac5d87c..2e33702932 100644 --- a/src/Umbraco.Core/Models/SendCodeViewModel.cs +++ b/src/Umbraco.Core/Models/SendCodeViewModel.cs @@ -1,9 +1,7 @@ -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations; using System.Runtime.Serialization; -namespace Umbraco.Web.Models +namespace Umbraco.Cms.Core.Models { /// /// Used for 2FA verification diff --git a/src/Umbraco.Core/Models/ServerRegistration.cs b/src/Umbraco.Core/Models/ServerRegistration.cs index a862b11c23..5aa926bdaa 100644 --- a/src/Umbraco.Core/Models/ServerRegistration.cs +++ b/src/Umbraco.Core/Models/ServerRegistration.cs @@ -1,8 +1,9 @@ using System; using System.Globalization; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Extensions; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents a registered server in a multiple-servers environment. diff --git a/src/Umbraco.Core/Models/SetPasswordModel.cs b/src/Umbraco.Core/Models/SetPasswordModel.cs index d3f8cfef6f..dece266d74 100644 --- a/src/Umbraco.Core/Models/SetPasswordModel.cs +++ b/src/Umbraco.Core/Models/SetPasswordModel.cs @@ -1,7 +1,7 @@ using System.ComponentModel.DataAnnotations; using System.Runtime.Serialization; -namespace Umbraco.Web.Models +namespace Umbraco.Cms.Core.Models { [DataContract(Name = "setPassword", Namespace = "")] public class SetPasswordModel diff --git a/src/Umbraco.Core/Models/SimpleContentType.cs b/src/Umbraco.Core/Models/SimpleContentType.cs index 81195aac16..56ea073b91 100644 --- a/src/Umbraco.Core/Models/SimpleContentType.cs +++ b/src/Umbraco.Core/Models/SimpleContentType.cs @@ -1,6 +1,7 @@ using System; +using Umbraco.Extensions; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Implements . diff --git a/src/Umbraco.Core/Models/SimpleValidationModel.cs b/src/Umbraco.Core/Models/SimpleValidationModel.cs index cca44613fb..30efec7dfe 100644 --- a/src/Umbraco.Core/Models/SimpleValidationModel.cs +++ b/src/Umbraco.Core/Models/SimpleValidationModel.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { public class SimpleValidationModel { diff --git a/src/Umbraco.Core/Models/Stylesheet.cs b/src/Umbraco.Core/Models/Stylesheet.cs index 48f00a1650..6d796f66d7 100644 --- a/src/Umbraco.Core/Models/Stylesheet.cs +++ b/src/Umbraco.Core/Models/Stylesheet.cs @@ -4,9 +4,10 @@ using System.ComponentModel; using System.Data; using System.Linq; using System.Runtime.Serialization; -using Umbraco.Core.Strings.Css; +using Umbraco.Cms.Core.Strings.Css; +using Umbraco.Extensions; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents a Stylesheet file diff --git a/src/Umbraco.Core/Models/StylesheetProperty.cs b/src/Umbraco.Core/Models/StylesheetProperty.cs index bc895113bc..9a4ac93963 100644 --- a/src/Umbraco.Core/Models/StylesheetProperty.cs +++ b/src/Umbraco.Core/Models/StylesheetProperty.cs @@ -1,8 +1,8 @@ using System; using System.Runtime.Serialization; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents a Stylesheet Property diff --git a/src/Umbraco.Core/Models/Tag.cs b/src/Umbraco.Core/Models/Tag.cs index 2c14beb14a..3d47b696d5 100644 --- a/src/Umbraco.Core/Models/Tag.cs +++ b/src/Umbraco.Core/Models/Tag.cs @@ -1,8 +1,8 @@ using System; using System.Runtime.Serialization; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents a tag entity. diff --git a/src/Umbraco.Core/Models/TagModel.cs b/src/Umbraco.Core/Models/TagModel.cs index 3b6ab2d9eb..04b02cdbb8 100644 --- a/src/Umbraco.Core/Models/TagModel.cs +++ b/src/Umbraco.Core/Models/TagModel.cs @@ -1,6 +1,6 @@ using System.Runtime.Serialization; -namespace Umbraco.Web.Models +namespace Umbraco.Cms.Core.Models { [DataContract(Name = "tag", Namespace = "")] public class TagModel diff --git a/src/Umbraco.Core/Models/TaggableObjectTypes.cs b/src/Umbraco.Core/Models/TaggableObjectTypes.cs index fbd75e2100..8a9384ec74 100644 --- a/src/Umbraco.Core/Models/TaggableObjectTypes.cs +++ b/src/Umbraco.Core/Models/TaggableObjectTypes.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Enum representing the taggable object types diff --git a/src/Umbraco.Core/Models/TaggedEntity.cs b/src/Umbraco.Core/Models/TaggedEntity.cs index 8c4695555d..9bc05eae15 100644 --- a/src/Umbraco.Core/Models/TaggedEntity.cs +++ b/src/Umbraco.Core/Models/TaggedEntity.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents a tagged entity. diff --git a/src/Umbraco.Core/Models/TaggedProperty.cs b/src/Umbraco.Core/Models/TaggedProperty.cs index 2d9fda9a4f..d2c5dc0b23 100644 --- a/src/Umbraco.Core/Models/TaggedProperty.cs +++ b/src/Umbraco.Core/Models/TaggedProperty.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents a tagged property on an entity. diff --git a/src/Umbraco.Core/Models/TagsStorageType.cs b/src/Umbraco.Core/Models/TagsStorageType.cs index f594320e8b..7bd8ea7937 100644 --- a/src/Umbraco.Core/Models/TagsStorageType.cs +++ b/src/Umbraco.Core/Models/TagsStorageType.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Defines how tags are stored. diff --git a/src/Umbraco.Core/Models/Template.cs b/src/Umbraco.Core/Models/Template.cs index e9cfb71efd..bd90060ce7 100644 --- a/src/Umbraco.Core/Models/Template.cs +++ b/src/Umbraco.Core/Models/Template.cs @@ -1,8 +1,9 @@ using System; using System.Runtime.Serialization; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Strings; +using Umbraco.Extensions; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents a Template file. diff --git a/src/Umbraco.Core/Models/TemplateNode.cs b/src/Umbraco.Core/Models/TemplateNode.cs index 13e5b22846..cef3d4ea79 100644 --- a/src/Umbraco.Core/Models/TemplateNode.cs +++ b/src/Umbraco.Core/Models/TemplateNode.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents a template in a template tree diff --git a/src/Umbraco.Core/Models/TemplateOnDisk.cs b/src/Umbraco.Core/Models/TemplateOnDisk.cs index 3b571c6ffc..4ea450162c 100644 --- a/src/Umbraco.Core/Models/TemplateOnDisk.cs +++ b/src/Umbraco.Core/Models/TemplateOnDisk.cs @@ -1,8 +1,8 @@ using System; using System.Runtime.Serialization; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Strings; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents a Template file that can have its content on disk. diff --git a/src/Umbraco.Core/Models/TemplateQuery/ContentTypeModel.cs b/src/Umbraco.Core/Models/TemplateQuery/ContentTypeModel.cs index 4974932476..e032b4ca11 100644 --- a/src/Umbraco.Core/Models/TemplateQuery/ContentTypeModel.cs +++ b/src/Umbraco.Core/Models/TemplateQuery/ContentTypeModel.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Umbraco.Web.Models.TemplateQuery +namespace Umbraco.Cms.Core.Models.TemplateQuery { public class ContentTypeModel { diff --git a/src/Umbraco.Core/Models/TemplateQuery/Operator.cs b/src/Umbraco.Core/Models/TemplateQuery/Operator.cs index 135c43507e..eb3fe4be29 100644 --- a/src/Umbraco.Core/Models/TemplateQuery/Operator.cs +++ b/src/Umbraco.Core/Models/TemplateQuery/Operator.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.Models.TemplateQuery +namespace Umbraco.Cms.Core.Models.TemplateQuery { public enum Operator { diff --git a/src/Umbraco.Core/Models/TemplateQuery/OperatorFactory.cs b/src/Umbraco.Core/Models/TemplateQuery/OperatorFactory.cs index ba9c318615..a8e3b40fef 100644 --- a/src/Umbraco.Core/Models/TemplateQuery/OperatorFactory.cs +++ b/src/Umbraco.Core/Models/TemplateQuery/OperatorFactory.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Web.Models.TemplateQuery +namespace Umbraco.Cms.Core.Models.TemplateQuery { public static class OperatorFactory { diff --git a/src/Umbraco.Core/Models/TemplateQuery/OperatorTerm.cs b/src/Umbraco.Core/Models/TemplateQuery/OperatorTerm.cs index 086f0ff818..ce66965c68 100644 --- a/src/Umbraco.Core/Models/TemplateQuery/OperatorTerm.cs +++ b/src/Umbraco.Core/Models/TemplateQuery/OperatorTerm.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace Umbraco.Web.Models.TemplateQuery +namespace Umbraco.Cms.Core.Models.TemplateQuery { public class OperatorTerm { diff --git a/src/Umbraco.Core/Models/TemplateQuery/PropertyModel.cs b/src/Umbraco.Core/Models/TemplateQuery/PropertyModel.cs index d1bc860ea0..4270f9d48f 100644 --- a/src/Umbraco.Core/Models/TemplateQuery/PropertyModel.cs +++ b/src/Umbraco.Core/Models/TemplateQuery/PropertyModel.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.Models.TemplateQuery +namespace Umbraco.Cms.Core.Models.TemplateQuery { public class PropertyModel { diff --git a/src/Umbraco.Core/Models/TemplateQuery/QueryCondition.cs b/src/Umbraco.Core/Models/TemplateQuery/QueryCondition.cs index 27cf901e49..c80c8c764c 100644 --- a/src/Umbraco.Core/Models/TemplateQuery/QueryCondition.cs +++ b/src/Umbraco.Core/Models/TemplateQuery/QueryCondition.cs @@ -1,7 +1,4 @@ -using System.Collections.Generic; -using Umbraco.Core.Models.PublishedContent; - -namespace Umbraco.Web.Models.TemplateQuery +namespace Umbraco.Cms.Core.Models.TemplateQuery { public class QueryCondition { diff --git a/src/Umbraco.Core/Models/TemplateQuery/QueryConditionExtensions.cs b/src/Umbraco.Core/Models/TemplateQuery/QueryConditionExtensions.cs index 089c0e13ba..2d000d4b2f 100644 --- a/src/Umbraco.Core/Models/TemplateQuery/QueryConditionExtensions.cs +++ b/src/Umbraco.Core/Models/TemplateQuery/QueryConditionExtensions.cs @@ -1,8 +1,9 @@ using System; using System.Linq.Expressions; using System.Reflection; +using Umbraco.Cms.Core.Models.TemplateQuery; -namespace Umbraco.Web.Models.TemplateQuery +namespace Umbraco.Extensions { public static class QueryConditionExtensions { diff --git a/src/Umbraco.Core/Models/TemplateQuery/QueryModel.cs b/src/Umbraco.Core/Models/TemplateQuery/QueryModel.cs index 90ee4c2452..a18d1e4021 100644 --- a/src/Umbraco.Core/Models/TemplateQuery/QueryModel.cs +++ b/src/Umbraco.Core/Models/TemplateQuery/QueryModel.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace Umbraco.Web.Models.TemplateQuery +namespace Umbraco.Cms.Core.Models.TemplateQuery { public class QueryModel { diff --git a/src/Umbraco.Core/Models/TemplateQuery/QueryResultModel.cs b/src/Umbraco.Core/Models/TemplateQuery/QueryResultModel.cs index 46556dc75e..b4cd15fce4 100644 --- a/src/Umbraco.Core/Models/TemplateQuery/QueryResultModel.cs +++ b/src/Umbraco.Core/Models/TemplateQuery/QueryResultModel.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace Umbraco.Web.Models.TemplateQuery +namespace Umbraco.Cms.Core.Models.TemplateQuery { public class QueryResultModel diff --git a/src/Umbraco.Core/Models/TemplateQuery/SortExpression.cs b/src/Umbraco.Core/Models/TemplateQuery/SortExpression.cs index 46f3afa308..8a66819b72 100644 --- a/src/Umbraco.Core/Models/TemplateQuery/SortExpression.cs +++ b/src/Umbraco.Core/Models/TemplateQuery/SortExpression.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.Models.TemplateQuery +namespace Umbraco.Cms.Core.Models.TemplateQuery { public class SortExpression { diff --git a/src/Umbraco.Core/Models/TemplateQuery/SourceModel.cs b/src/Umbraco.Core/Models/TemplateQuery/SourceModel.cs index b26912f113..95e7fbc3e7 100644 --- a/src/Umbraco.Core/Models/TemplateQuery/SourceModel.cs +++ b/src/Umbraco.Core/Models/TemplateQuery/SourceModel.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.Models.TemplateQuery +namespace Umbraco.Cms.Core.Models.TemplateQuery { public class SourceModel { diff --git a/src/Umbraco.Core/Models/TemplateQuery/TemplateQueryResult.cs b/src/Umbraco.Core/Models/TemplateQuery/TemplateQueryResult.cs index a59b0dc2d8..8519862de8 100644 --- a/src/Umbraco.Core/Models/TemplateQuery/TemplateQueryResult.cs +++ b/src/Umbraco.Core/Models/TemplateQuery/TemplateQueryResult.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.Models.TemplateQuery +namespace Umbraco.Cms.Core.Models.TemplateQuery { public class TemplateQueryResult { diff --git a/src/Umbraco.Core/Models/Trees/ActionMenuItem.cs b/src/Umbraco.Core/Models/Trees/ActionMenuItem.cs index fe760fb94d..2f05541c19 100644 --- a/src/Umbraco.Core/Models/Trees/ActionMenuItem.cs +++ b/src/Umbraco.Core/Models/Trees/ActionMenuItem.cs @@ -1,7 +1,7 @@ -using Umbraco.Core; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; -namespace Umbraco.Web.Models.Trees +namespace Umbraco.Cms.Core.Models.Trees { /// /// diff --git a/src/Umbraco.Core/Models/Trees/CreateChildEntity.cs b/src/Umbraco.Core/Models/Trees/CreateChildEntity.cs index 03bac2cfec..a8d945242e 100644 --- a/src/Umbraco.Core/Models/Trees/CreateChildEntity.cs +++ b/src/Umbraco.Core/Models/Trees/CreateChildEntity.cs @@ -1,7 +1,7 @@ -using Umbraco.Core.Services; -using Umbraco.Web.Actions; +using Umbraco.Cms.Core.Actions; +using Umbraco.Cms.Core.Services; -namespace Umbraco.Web.Models.Trees +namespace Umbraco.Cms.Core.Models.Trees { /// /// Represents the refresh node menu item diff --git a/src/Umbraco.Core/Models/Trees/ExportMember.cs b/src/Umbraco.Core/Models/Trees/ExportMember.cs index 558f7c1fa1..30f904f952 100644 --- a/src/Umbraco.Core/Models/Trees/ExportMember.cs +++ b/src/Umbraco.Core/Models/Trees/ExportMember.cs @@ -1,6 +1,6 @@ -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Services; -namespace Umbraco.Web.Models.Trees +namespace Umbraco.Cms.Core.Models.Trees { /// /// Represents the export member menu item diff --git a/src/Umbraco.Core/Models/Trees/MenuItem.cs b/src/Umbraco.Core/Models/Trees/MenuItem.cs index 1b7c130a60..4c275709aa 100644 --- a/src/Umbraco.Core/Models/Trees/MenuItem.cs +++ b/src/Umbraco.Core/Models/Trees/MenuItem.cs @@ -1,13 +1,13 @@ -using System.ComponentModel.DataAnnotations; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; using System.Runtime.Serialization; -using Umbraco.Web.Trees; -using System.Collections.Generic; -using Umbraco.Core; -using Umbraco.Core.Services; -using Umbraco.Web.Actions; using System.Threading; +using Umbraco.Cms.Core.Actions; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Trees; +using Umbraco.Extensions; -namespace Umbraco.Web.Models.Trees +namespace Umbraco.Cms.Core.Models.Trees { /// /// A context menu item diff --git a/src/Umbraco.Core/Models/Trees/RefreshNode.cs b/src/Umbraco.Core/Models/Trees/RefreshNode.cs index def753140e..01eb2fa34a 100644 --- a/src/Umbraco.Core/Models/Trees/RefreshNode.cs +++ b/src/Umbraco.Core/Models/Trees/RefreshNode.cs @@ -1,6 +1,6 @@ -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Services; -namespace Umbraco.Web.Models.Trees +namespace Umbraco.Cms.Core.Models.Trees { /// /// diff --git a/src/Umbraco.Core/Models/UmbracoDomain.cs b/src/Umbraco.Core/Models/UmbracoDomain.cs index c4a49de5d3..6930499783 100644 --- a/src/Umbraco.Core/Models/UmbracoDomain.cs +++ b/src/Umbraco.Core/Models/UmbracoDomain.cs @@ -1,8 +1,8 @@ using System; using System.Runtime.Serialization; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { [Serializable] [DataContract(IsReference = true)] diff --git a/src/Umbraco.Core/Models/UmbracoObjectTypes.cs b/src/Umbraco.Core/Models/UmbracoObjectTypes.cs index f403ea6e67..00dbd490f8 100644 --- a/src/Umbraco.Core/Models/UmbracoObjectTypes.cs +++ b/src/Umbraco.Core/Models/UmbracoObjectTypes.cs @@ -1,6 +1,6 @@ -using Umbraco.Core.CodeAnnotations; +using Umbraco.Cms.Core.CodeAnnotations; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Enum used to represent the Umbraco Object Types and their associated GUIDs diff --git a/src/Umbraco.Core/Models/UmbracoProperty.cs b/src/Umbraco.Core/Models/UmbracoProperty.cs index 8b41141b95..bffcd43fb3 100644 --- a/src/Umbraco.Core/Models/UmbracoProperty.cs +++ b/src/Umbraco.Core/Models/UmbracoProperty.cs @@ -1,11 +1,7 @@ using System.ComponentModel; using System.ComponentModel.DataAnnotations; -using System.Xml; -using Umbraco.Core; -using Umbraco.Core.Models; -using DataType = System.ComponentModel.DataAnnotations.DataType; -namespace Umbraco.Web.Models +namespace Umbraco.Cms.Core.Models { /// /// A simple representation of an Umbraco property @@ -22,7 +18,7 @@ namespace Umbraco.Web.Models // and when we set this value on the property object that gets sent to the database we do a TryConvertTo to the // real type anyways. - [DataType(DataType.Text)] + [DataType(System.ComponentModel.DataAnnotations.DataType.Text)] public string Value { get; set; } [ReadOnly(true)] diff --git a/src/Umbraco.Core/Models/UmbracoUserExtensions.cs b/src/Umbraco.Core/Models/UmbracoUserExtensions.cs index 18684f7946..8c4a0cf59b 100644 --- a/src/Umbraco.Core/Models/UmbracoUserExtensions.cs +++ b/src/Umbraco.Core/Models/UmbracoUserExtensions.cs @@ -1,14 +1,16 @@ -using System; +// Copyright (c) Umbraco. +// See LICENSE for more details. + +using System; using System.Collections.Generic; using System.Globalization; using System.Linq; -using System.Text; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Services; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Services; -namespace Umbraco.Core.Models +namespace Umbraco.Extensions { public static class UmbracoUserExtensions { diff --git a/src/Umbraco.Core/Models/UnLinkLoginModel.cs b/src/Umbraco.Core/Models/UnLinkLoginModel.cs index 824fadaf90..38d1901c12 100644 --- a/src/Umbraco.Core/Models/UnLinkLoginModel.cs +++ b/src/Umbraco.Core/Models/UnLinkLoginModel.cs @@ -1,7 +1,7 @@ using System.ComponentModel.DataAnnotations; using System.Runtime.Serialization; -namespace Umbraco.Web.Models +namespace Umbraco.Cms.Core.Models { public class UnLinkLoginModel { diff --git a/src/Umbraco.Core/Models/UpgradeCheckResponse.cs b/src/Umbraco.Core/Models/UpgradeCheckResponse.cs index 854f6cc4de..8f036ca30f 100644 --- a/src/Umbraco.Core/Models/UpgradeCheckResponse.cs +++ b/src/Umbraco.Core/Models/UpgradeCheckResponse.cs @@ -1,8 +1,8 @@ -using System.Runtime.Serialization; -using System.Net; -using Umbraco.Core.Configuration; +using System.Net; +using System.Runtime.Serialization; +using Umbraco.Cms.Core.Configuration; -namespace Umbraco.Web.Models +namespace Umbraco.Cms.Core.Models { [DataContract(Name = "upgrade", Namespace = "")] public class UpgradeCheckResponse diff --git a/src/Umbraco.Core/Models/UserExtensions.cs b/src/Umbraco.Core/Models/UserExtensions.cs index 6a3ea16ff7..e944107f3f 100644 --- a/src/Umbraco.Core/Models/UserExtensions.cs +++ b/src/Umbraco.Core/Models/UserExtensions.cs @@ -3,16 +3,16 @@ using System.Collections.Generic; using System.Linq; using System.Net; using System.Security.Cryptography; -using Umbraco.Core.Cache; -using Umbraco.Core.IO; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Services; -using Umbraco.Core.Security; -using Umbraco.Core.Media; -using Umbraco.Web.Models; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Media; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { public static class UserExtensions { diff --git a/src/Umbraco.Core/Models/UserTourStatus.cs b/src/Umbraco.Core/Models/UserTourStatus.cs index d1834f3d6b..6fe7b024d0 100644 --- a/src/Umbraco.Core/Models/UserTourStatus.cs +++ b/src/Umbraco.Core/Models/UserTourStatus.cs @@ -1,7 +1,7 @@ using System; using System.Runtime.Serialization; -namespace Umbraco.Web.Models +namespace Umbraco.Cms.Core.Models { /// /// A model representing the tours a user has taken/completed @@ -57,4 +57,4 @@ namespace Umbraco.Web.Models return !Equals(left, right); } } -} \ No newline at end of file +} diff --git a/src/Umbraco.Core/Models/ValidatePasswordResetCodeModel.cs b/src/Umbraco.Core/Models/ValidatePasswordResetCodeModel.cs index 152d7460fd..8f1ff2f49c 100644 --- a/src/Umbraco.Core/Models/ValidatePasswordResetCodeModel.cs +++ b/src/Umbraco.Core/Models/ValidatePasswordResetCodeModel.cs @@ -2,7 +2,7 @@ using System.ComponentModel.DataAnnotations; using System.Runtime.Serialization; -namespace Umbraco.Web.Models +namespace Umbraco.Cms.Core.Models { [Serializable] [DataContract(Name = "validatePasswordReset", Namespace = "")] diff --git a/src/Umbraco.Core/Models/Validation/RequiredForPersistenceAttribute.cs b/src/Umbraco.Core/Models/Validation/RequiredForPersistenceAttribute.cs index feb889e962..10133a7f36 100644 --- a/src/Umbraco.Core/Models/Validation/RequiredForPersistenceAttribute.cs +++ b/src/Umbraco.Core/Models/Validation/RequiredForPersistenceAttribute.cs @@ -1,9 +1,9 @@ using System.ComponentModel.DataAnnotations; using System.Linq; using System.Reflection; -using Umbraco.Core.PropertyEditors; +using Umbraco.Cms.Core.PropertyEditors; -namespace Umbraco.Core.Models.Validation +namespace Umbraco.Cms.Core.Models.Validation { /// /// Specifies that a data field value is required in order to persist an object. diff --git a/src/Umbraco.Core/Models/ValueStorageType.cs b/src/Umbraco.Core/Models/ValueStorageType.cs index abbae60dc7..cca84b72b7 100644 --- a/src/Umbraco.Core/Models/ValueStorageType.cs +++ b/src/Umbraco.Core/Models/ValueStorageType.cs @@ -1,7 +1,7 @@ using System; using System.Runtime.Serialization; -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core.Models { /// /// Represents the supported database types for storing a value. diff --git a/src/Umbraco.Core/MonitorLock.cs b/src/Umbraco.Core/MonitorLock.cs index 9d17c86be8..11651aaa6c 100644 --- a/src/Umbraco.Core/MonitorLock.cs +++ b/src/Umbraco.Core/MonitorLock.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core +namespace Umbraco.Cms.Core { /// /// Provides an equivalent to the c# lock statement, to be used in a using block. diff --git a/src/Umbraco.Core/NamedUdiRange.cs b/src/Umbraco.Core/NamedUdiRange.cs index f4c4066d61..b66cdb0998 100644 --- a/src/Umbraco.Core/NamedUdiRange.cs +++ b/src/Umbraco.Core/NamedUdiRange.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core +namespace Umbraco.Cms.Core { /// /// Represents a complemented with a name. diff --git a/src/Umbraco.Core/Net/IIpResolver.cs b/src/Umbraco.Core/Net/IIpResolver.cs index 7fb6b8a793..6c7ab72dec 100644 --- a/src/Umbraco.Core/Net/IIpResolver.cs +++ b/src/Umbraco.Core/Net/IIpResolver.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Net +namespace Umbraco.Cms.Core.Net { public interface IIpResolver { diff --git a/src/Umbraco.Core/Net/ISessionIdResolver.cs b/src/Umbraco.Core/Net/ISessionIdResolver.cs index 745be5a435..580c04c8e2 100644 --- a/src/Umbraco.Core/Net/ISessionIdResolver.cs +++ b/src/Umbraco.Core/Net/ISessionIdResolver.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Net +namespace Umbraco.Cms.Core.Net { public interface ISessionIdResolver { diff --git a/src/Umbraco.Core/Net/IUserAgentProvider.cs b/src/Umbraco.Core/Net/IUserAgentProvider.cs index 14246ea99e..fdca8c1dbf 100644 --- a/src/Umbraco.Core/Net/IUserAgentProvider.cs +++ b/src/Umbraco.Core/Net/IUserAgentProvider.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Net +namespace Umbraco.Cms.Core.Net { public interface IUserAgentProvider { diff --git a/src/Umbraco.Core/Net/NullSessionIdResolver.cs b/src/Umbraco.Core/Net/NullSessionIdResolver.cs index 6bfa578268..c7bd462aba 100644 --- a/src/Umbraco.Core/Net/NullSessionIdResolver.cs +++ b/src/Umbraco.Core/Net/NullSessionIdResolver.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Net +namespace Umbraco.Cms.Core.Net { public class NullSessionIdResolver : ISessionIdResolver { diff --git a/src/Umbraco.Core/NetworkHelper.cs b/src/Umbraco.Core/NetworkHelper.cs index 1929e45ee3..8e1bfaea92 100644 --- a/src/Umbraco.Core/NetworkHelper.cs +++ b/src/Umbraco.Core/NetworkHelper.cs @@ -1,6 +1,7 @@ using System; +using Umbraco.Extensions; -namespace Umbraco.Core +namespace Umbraco.Cms.Core { /// /// Currently just used to get the machine name in med trust and to format a machine name for use with file names diff --git a/src/Umbraco.Core/PackageActions/AllowDoctype.cs b/src/Umbraco.Core/PackageActions/AllowDoctype.cs index c68d116e25..7e2bf47fab 100644 --- a/src/Umbraco.Core/PackageActions/AllowDoctype.cs +++ b/src/Umbraco.Core/PackageActions/AllowDoctype.cs @@ -1,10 +1,11 @@ using System.Collections; using System.Linq; using System.Xml.Linq; -using Umbraco.Core.Models; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; -namespace Umbraco.Core.PackageActions +namespace Umbraco.Cms.Core.PackageActions { /// /// This class implements the IPackageAction Interface, used to execute code when packages are installed. diff --git a/src/Umbraco.Core/PackageActions/IPackageAction.cs b/src/Umbraco.Core/PackageActions/IPackageAction.cs index d4dfb4079b..65db0116ea 100644 --- a/src/Umbraco.Core/PackageActions/IPackageAction.cs +++ b/src/Umbraco.Core/PackageActions/IPackageAction.cs @@ -1,7 +1,7 @@ using System.Xml.Linq; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Core.PackageActions +namespace Umbraco.Cms.Core.PackageActions { public interface IPackageAction : IDiscoverable { diff --git a/src/Umbraco.Core/PackageActions/PackageActionCollection.cs b/src/Umbraco.Core/PackageActions/PackageActionCollection.cs index 813695f84c..078eb0c09f 100644 --- a/src/Umbraco.Core/PackageActions/PackageActionCollection.cs +++ b/src/Umbraco.Core/PackageActions/PackageActionCollection.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Core.PackageActions +namespace Umbraco.Cms.Core.PackageActions { public sealed class PackageActionCollection : BuilderCollectionBase { diff --git a/src/Umbraco.Core/PackageActions/PackageActionCollectionBuilder.cs b/src/Umbraco.Core/PackageActions/PackageActionCollectionBuilder.cs index d30fb92cf9..efabeeaad8 100644 --- a/src/Umbraco.Core/PackageActions/PackageActionCollectionBuilder.cs +++ b/src/Umbraco.Core/PackageActions/PackageActionCollectionBuilder.cs @@ -1,6 +1,6 @@ -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Core.PackageActions +namespace Umbraco.Cms.Core.PackageActions { public class PackageActionCollectionBuilder : LazyCollectionBuilderBase { diff --git a/src/Umbraco.Core/PackageActions/PublishRootDocument.cs b/src/Umbraco.Core/PackageActions/PublishRootDocument.cs index ff871142d6..8a73275e1e 100644 --- a/src/Umbraco.Core/PackageActions/PublishRootDocument.cs +++ b/src/Umbraco.Core/PackageActions/PublishRootDocument.cs @@ -1,7 +1,8 @@ using System.Xml.Linq; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; -namespace Umbraco.Core.PackageActions +namespace Umbraco.Cms.Core.PackageActions { /// /// This class implements the IPackageAction Interface, used to execute code when packages are installed. diff --git a/src/Umbraco.Core/Packaging/CompiledPackageXmlParser.cs b/src/Umbraco.Core/Packaging/CompiledPackageXmlParser.cs index be3f38cb22..2838a2678d 100644 --- a/src/Umbraco.Core/Packaging/CompiledPackageXmlParser.cs +++ b/src/Umbraco.Core/Packaging/CompiledPackageXmlParser.cs @@ -4,10 +4,11 @@ using System.IO; using System.Linq; using System.Xml.Linq; using Microsoft.Extensions.Options; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Models.Packaging; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models.Packaging; +using Umbraco.Extensions; -namespace Umbraco.Core.Packaging +namespace Umbraco.Cms.Core.Packaging { /// /// Parses the xml document contained in a compiled (zip) Umbraco package diff --git a/src/Umbraco.Core/Packaging/ConflictingPackageData.cs b/src/Umbraco.Core/Packaging/ConflictingPackageData.cs index 9a976bea41..27e96d8c82 100644 --- a/src/Umbraco.Core/Packaging/ConflictingPackageData.cs +++ b/src/Umbraco.Core/Packaging/ConflictingPackageData.cs @@ -2,10 +2,10 @@ using System.Collections.Generic; using System.Linq; using System.Xml.Linq; -using Umbraco.Core.Models; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; -namespace Umbraco.Core.Packaging +namespace Umbraco.Cms.Core.Packaging { public class ConflictingPackageData { diff --git a/src/Umbraco.Core/Packaging/ICreatedPackagesRepository.cs b/src/Umbraco.Core/Packaging/ICreatedPackagesRepository.cs index 42606da6ef..c4d36f817f 100644 --- a/src/Umbraco.Core/Packaging/ICreatedPackagesRepository.cs +++ b/src/Umbraco.Core/Packaging/ICreatedPackagesRepository.cs @@ -1,6 +1,4 @@ -using Umbraco.Core.Models.Packaging; - -namespace Umbraco.Core.Packaging +namespace Umbraco.Cms.Core.Packaging { /// /// Manages the storage of created package definitions diff --git a/src/Umbraco.Core/Packaging/IInstalledPackagesRepository.cs b/src/Umbraco.Core/Packaging/IInstalledPackagesRepository.cs index 61f611edc5..399e79d6d3 100644 --- a/src/Umbraco.Core/Packaging/IInstalledPackagesRepository.cs +++ b/src/Umbraco.Core/Packaging/IInstalledPackagesRepository.cs @@ -1,6 +1,4 @@ -using System; - -namespace Umbraco.Core.Packaging +namespace Umbraco.Cms.Core.Packaging { /// /// Manages the storage of installed package definitions diff --git a/src/Umbraco.Core/Packaging/IPackageActionRunner.cs b/src/Umbraco.Core/Packaging/IPackageActionRunner.cs index 1f8c134364..e170ff7961 100644 --- a/src/Umbraco.Core/Packaging/IPackageActionRunner.cs +++ b/src/Umbraco.Core/Packaging/IPackageActionRunner.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.Xml.Linq; -namespace Umbraco.Core.Packaging +namespace Umbraco.Cms.Core.Packaging { public interface IPackageActionRunner { diff --git a/src/Umbraco.Core/Packaging/IPackageDefinitionRepository.cs b/src/Umbraco.Core/Packaging/IPackageDefinitionRepository.cs index 343a0a05ea..c074a45ae1 100644 --- a/src/Umbraco.Core/Packaging/IPackageDefinitionRepository.cs +++ b/src/Umbraco.Core/Packaging/IPackageDefinitionRepository.cs @@ -1,7 +1,6 @@ using System.Collections.Generic; -using Umbraco.Core.Models.Packaging; -namespace Umbraco.Core.Packaging +namespace Umbraco.Cms.Core.Packaging { /// /// Defines methods for persisting package definitions to storage @@ -20,4 +19,4 @@ namespace Umbraco.Core.Packaging /// bool SavePackage(PackageDefinition definition); } -} \ No newline at end of file +} diff --git a/src/Umbraco.Core/Packaging/IPackageInstallation.cs b/src/Umbraco.Core/Packaging/IPackageInstallation.cs index a9fa3c9cc7..ca2f9a9397 100644 --- a/src/Umbraco.Core/Packaging/IPackageInstallation.cs +++ b/src/Umbraco.Core/Packaging/IPackageInstallation.cs @@ -1,9 +1,8 @@ using System.Collections.Generic; using System.IO; -using System.Xml.Linq; -using Umbraco.Core.Models.Packaging; +using Umbraco.Cms.Core.Models.Packaging; -namespace Umbraco.Core.Packaging +namespace Umbraco.Cms.Core.Packaging { public interface IPackageInstallation { diff --git a/src/Umbraco.Core/Packaging/InstallationSummary.cs b/src/Umbraco.Core/Packaging/InstallationSummary.cs index abeaa82bc1..cf2efcd159 100644 --- a/src/Umbraco.Core/Packaging/InstallationSummary.cs +++ b/src/Umbraco.Core/Packaging/InstallationSummary.cs @@ -2,8 +2,10 @@ using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Packaging; -namespace Umbraco.Core.Models.Packaging +namespace Umbraco.Cms.Core.Packaging { [Serializable] [DataContract(IsReference = true)] diff --git a/src/Umbraco.Core/Packaging/PackageActionRunner.cs b/src/Umbraco.Core/Packaging/PackageActionRunner.cs index 138feadf29..8fd54fa431 100644 --- a/src/Umbraco.Core/Packaging/PackageActionRunner.cs +++ b/src/Umbraco.Core/Packaging/PackageActionRunner.cs @@ -2,9 +2,9 @@ using System.Collections.Generic; using System.Xml.Linq; using Microsoft.Extensions.Logging; -using Umbraco.Core.PackageActions; +using Umbraco.Cms.Core.PackageActions; -namespace Umbraco.Core.Packaging +namespace Umbraco.Cms.Core.Packaging { /// /// Package actions are executed on package install / uninstall. diff --git a/src/Umbraco.Core/Packaging/PackageDefinition.cs b/src/Umbraco.Core/Packaging/PackageDefinition.cs index 379b400e75..03a17d147e 100644 --- a/src/Umbraco.Core/Packaging/PackageDefinition.cs +++ b/src/Umbraco.Core/Packaging/PackageDefinition.cs @@ -4,8 +4,9 @@ using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Runtime.Serialization; +using Umbraco.Cms.Core.Models.Packaging; -namespace Umbraco.Core.Models.Packaging +namespace Umbraco.Cms.Core.Packaging { [DataContract(Name = "packageInstance")] public class PackageDefinition : IPackageInfo diff --git a/src/Umbraco.Core/Packaging/PackageDefinitionXmlParser.cs b/src/Umbraco.Core/Packaging/PackageDefinitionXmlParser.cs index d194b0ea56..3ba47f09c0 100644 --- a/src/Umbraco.Core/Packaging/PackageDefinitionXmlParser.cs +++ b/src/Umbraco.Core/Packaging/PackageDefinitionXmlParser.cs @@ -3,10 +3,10 @@ using System.Collections.Generic; using System.Linq; using System.Xml.Linq; using Microsoft.Extensions.Logging; -using Umbraco.Core.Configuration; -using Umbraco.Core.Models.Packaging; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Extensions; -namespace Umbraco.Core.Packaging +namespace Umbraco.Cms.Core.Packaging { /// /// Converts a to and from XML diff --git a/src/Umbraco.Core/Packaging/PackageExtraction.cs b/src/Umbraco.Core/Packaging/PackageExtraction.cs index 4e3ba929dc..fddf9f4d1a 100644 --- a/src/Umbraco.Core/Packaging/PackageExtraction.cs +++ b/src/Umbraco.Core/Packaging/PackageExtraction.cs @@ -1,10 +1,11 @@ using System; using System.Collections.Generic; using System.IO; -using System.Linq; using System.IO.Compression; +using System.Linq; +using Umbraco.Extensions; -namespace Umbraco.Core.Packaging +namespace Umbraco.Cms.Core.Packaging { public class PackageExtraction { @@ -45,7 +46,7 @@ namespace Umbraco.Core.Packaging private static void CheckPackageExists(FileInfo packageFile) { if (packageFile == null) throw new ArgumentNullException(nameof(packageFile)); - + if (!packageFile.Exists) throw new ArgumentException($"Package file: {packageFile} could not be found"); diff --git a/src/Umbraco.Core/Packaging/PackageFileInstallation.cs b/src/Umbraco.Core/Packaging/PackageFileInstallation.cs index 884085548e..c9feccb6b5 100644 --- a/src/Umbraco.Core/Packaging/PackageFileInstallation.cs +++ b/src/Umbraco.Core/Packaging/PackageFileInstallation.cs @@ -1,13 +1,14 @@ using System.Collections.Generic; using System.IO; using System.Linq; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; -using Umbraco.Core.Logging; -using Umbraco.Core.Models.Packaging; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Models.Packaging; using File = System.IO.File; +using Umbraco.Extensions; -namespace Umbraco.Core.Packaging +namespace Umbraco.Cms.Core.Packaging { /// /// Installs package files diff --git a/src/Umbraco.Core/Packaging/PackageInstallType.cs b/src/Umbraco.Core/Packaging/PackageInstallType.cs index 015b994aec..0c6abbc9f9 100644 --- a/src/Umbraco.Core/Packaging/PackageInstallType.cs +++ b/src/Umbraco.Core/Packaging/PackageInstallType.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Packaging +namespace Umbraco.Cms.Core.Packaging { public enum PackageInstallType { @@ -6,4 +6,4 @@ NewInstall, Upgrade } -} \ No newline at end of file +} diff --git a/src/Umbraco.Core/Packaging/PackagesRepository.cs b/src/Umbraco.Core/Packaging/PackagesRepository.cs index b89448d891..904f73ab93 100644 --- a/src/Umbraco.Core/Packaging/PackagesRepository.cs +++ b/src/Umbraco.Core/Packaging/PackagesRepository.cs @@ -7,15 +7,16 @@ using System.Linq; using System.Xml.Linq; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Packaging; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Packaging; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; using File = System.IO.File; -namespace Umbraco.Core.Packaging +namespace Umbraco.Cms.Core.Packaging { /// /// Manages the storage of installed/created package definitions diff --git a/src/Umbraco.Core/Packaging/UninstallationSummary.cs b/src/Umbraco.Core/Packaging/UninstallationSummary.cs index fd39954f6b..b751c46c50 100644 --- a/src/Umbraco.Core/Packaging/UninstallationSummary.cs +++ b/src/Umbraco.Core/Packaging/UninstallationSummary.cs @@ -2,8 +2,10 @@ using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Packaging; -namespace Umbraco.Core.Models.Packaging +namespace Umbraco.Cms.Core.Packaging { [Serializable] [DataContract(IsReference = true)] diff --git a/src/Umbraco.Core/Persistence/Constants-DatabaseSchema.cs b/src/Umbraco.Core/Persistence/Constants-DatabaseSchema.cs index f430a8894c..73004c491d 100644 --- a/src/Umbraco.Core/Persistence/Constants-DatabaseSchema.cs +++ b/src/Umbraco.Core/Persistence/Constants-DatabaseSchema.cs @@ -1,5 +1,5 @@ // ReSharper disable once CheckNamespace -namespace Umbraco.Core +namespace Umbraco.Cms.Core { public static partial class Constants { diff --git a/src/Umbraco.Core/Persistence/Constants-DbProviderNames.cs b/src/Umbraco.Core/Persistence/Constants-DbProviderNames.cs index 8e81a5acf8..7c08189d74 100644 --- a/src/Umbraco.Core/Persistence/Constants-DbProviderNames.cs +++ b/src/Umbraco.Core/Persistence/Constants-DbProviderNames.cs @@ -1,5 +1,5 @@  // ReSharper disable once CheckNamespace -namespace Umbraco.Core +namespace Umbraco.Cms.Core { static partial class Constants { diff --git a/src/Umbraco.Core/Persistence/Constants-Locks.cs b/src/Umbraco.Core/Persistence/Constants-Locks.cs index e64f40ced7..5312bf6886 100644 --- a/src/Umbraco.Core/Persistence/Constants-Locks.cs +++ b/src/Umbraco.Core/Persistence/Constants-Locks.cs @@ -1,5 +1,8 @@ // ReSharper disable once CheckNamespace -namespace Umbraco.Core + +using Umbraco.Cms.Core.Runtime; + +namespace Umbraco.Cms.Core { static partial class Constants { diff --git a/src/Umbraco.Core/Persistence/IQueryRepository.cs b/src/Umbraco.Core/Persistence/IQueryRepository.cs index 3e23b72186..9513573908 100644 --- a/src/Umbraco.Core/Persistence/IQueryRepository.cs +++ b/src/Umbraco.Core/Persistence/IQueryRepository.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Persistence.Querying; +using Umbraco.Cms.Core.Persistence.Querying; -namespace Umbraco.Core.Persistence +namespace Umbraco.Cms.Core.Persistence { /// /// Defines the base implementation of a querying repository. diff --git a/src/Umbraco.Core/Persistence/IReadRepository.cs b/src/Umbraco.Core/Persistence/IReadRepository.cs index 8b2a4c2533..ea5d24f774 100644 --- a/src/Umbraco.Core/Persistence/IReadRepository.cs +++ b/src/Umbraco.Core/Persistence/IReadRepository.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace Umbraco.Core.Persistence +namespace Umbraco.Cms.Core.Persistence { /// /// Defines the base implementation of a reading repository. @@ -22,4 +22,4 @@ namespace Umbraco.Core.Persistence /// bool Exists(TId id); } -} \ No newline at end of file +} diff --git a/src/Umbraco.Core/Persistence/IReadWriteQueryRepository.cs b/src/Umbraco.Core/Persistence/IReadWriteQueryRepository.cs index aaaf276e0b..b260144de6 100644 --- a/src/Umbraco.Core/Persistence/IReadWriteQueryRepository.cs +++ b/src/Umbraco.Core/Persistence/IReadWriteQueryRepository.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Persistence +namespace Umbraco.Cms.Core.Persistence { /// /// Defines the base implementation of a reading, writing and querying repository. diff --git a/src/Umbraco.Core/Persistence/IRepository.cs b/src/Umbraco.Core/Persistence/IRepository.cs index 9c51a8affd..f91c4c998b 100644 --- a/src/Umbraco.Core/Persistence/IRepository.cs +++ b/src/Umbraco.Core/Persistence/IRepository.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Persistence +namespace Umbraco.Cms.Core.Persistence { /// /// Defines the base implementation of a repository. diff --git a/src/Umbraco.Core/Persistence/IWriteRepository.cs b/src/Umbraco.Core/Persistence/IWriteRepository.cs index 26687648b9..ff766fbe36 100644 --- a/src/Umbraco.Core/Persistence/IWriteRepository.cs +++ b/src/Umbraco.Core/Persistence/IWriteRepository.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Persistence +namespace Umbraco.Cms.Core.Persistence { /// /// Defines the base implementation of a writing repository. @@ -16,4 +16,4 @@ /// void Delete(TEntity entity); } -} \ No newline at end of file +} diff --git a/src/Umbraco.Core/Persistence/Querying/IQuery.cs b/src/Umbraco.Core/Persistence/Querying/IQuery.cs index d5723b6032..c55d14001d 100644 --- a/src/Umbraco.Core/Persistence/Querying/IQuery.cs +++ b/src/Umbraco.Core/Persistence/Querying/IQuery.cs @@ -3,7 +3,7 @@ using System.Collections; using System.Collections.Generic; using System.Linq.Expressions; -namespace Umbraco.Core.Persistence.Querying +namespace Umbraco.Cms.Core.Persistence.Querying { /// /// Represents a query for building Linq translatable SQL queries diff --git a/src/Umbraco.Core/Persistence/Querying/StringPropertyMatchType.cs b/src/Umbraco.Core/Persistence/Querying/StringPropertyMatchType.cs index f4c95c02b5..3e48a00d05 100644 --- a/src/Umbraco.Core/Persistence/Querying/StringPropertyMatchType.cs +++ b/src/Umbraco.Core/Persistence/Querying/StringPropertyMatchType.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Persistence.Querying +namespace Umbraco.Cms.Core.Persistence.Querying { /// /// Determines how to match a string property value diff --git a/src/Umbraco.Core/Persistence/Querying/ValuePropertyMatchType.cs b/src/Umbraco.Core/Persistence/Querying/ValuePropertyMatchType.cs index 14cba2bb17..58daf2e577 100644 --- a/src/Umbraco.Core/Persistence/Querying/ValuePropertyMatchType.cs +++ b/src/Umbraco.Core/Persistence/Querying/ValuePropertyMatchType.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Persistence.Querying +namespace Umbraco.Cms.Core.Persistence.Querying { /// /// Determine how to match a number or data value diff --git a/src/Umbraco.Core/Persistence/Repositories/IAuditEntryRepository.cs b/src/Umbraco.Core/Persistence/Repositories/IAuditEntryRepository.cs index 1d4d2fe531..159267c16e 100644 --- a/src/Umbraco.Core/Persistence/Repositories/IAuditEntryRepository.cs +++ b/src/Umbraco.Core/Persistence/Repositories/IAuditEntryRepository.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Persistence.Repositories +namespace Umbraco.Cms.Core.Persistence.Repositories { /// /// Represents a repository for entities. diff --git a/src/Umbraco.Core/Persistence/Repositories/IAuditRepository.cs b/src/Umbraco.Core/Persistence/Repositories/IAuditRepository.cs index fbd9ec2e13..37394c9898 100644 --- a/src/Umbraco.Core/Persistence/Repositories/IAuditRepository.cs +++ b/src/Umbraco.Core/Persistence/Repositories/IAuditRepository.cs @@ -1,8 +1,8 @@ using System.Collections.Generic; -using Umbraco.Core.Models; -using Umbraco.Core.Persistence.Querying; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Querying; -namespace Umbraco.Core.Persistence.Repositories +namespace Umbraco.Cms.Core.Persistence.Repositories { public interface IAuditRepository : IReadRepository, IWriteRepository, IQueryRepository { @@ -28,7 +28,7 @@ namespace Umbraco.Core.Persistence.Repositories /// IEnumerable GetPagedResultsByQuery( IQuery query, - long pageIndex, int pageSize, out long totalRecords, + long pageIndex, int pageSize, out long totalRecords, Direction orderDirection, AuditType[] auditTypeFilter, IQuery customFilter); diff --git a/src/Umbraco.Core/Persistence/Repositories/IConsentRepository.cs b/src/Umbraco.Core/Persistence/Repositories/IConsentRepository.cs index 85cfb52ba3..a89ed56285 100644 --- a/src/Umbraco.Core/Persistence/Repositories/IConsentRepository.cs +++ b/src/Umbraco.Core/Persistence/Repositories/IConsentRepository.cs @@ -1,6 +1,6 @@ -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Persistence.Repositories +namespace Umbraco.Cms.Core.Persistence.Repositories { /// /// Represents a repository for entities. diff --git a/src/Umbraco.Core/Persistence/Repositories/IContentTypeCommonRepository.cs b/src/Umbraco.Core/Persistence/Repositories/IContentTypeCommonRepository.cs index e7657ac941..955ad47a72 100644 --- a/src/Umbraco.Core/Persistence/Repositories/IContentTypeCommonRepository.cs +++ b/src/Umbraco.Core/Persistence/Repositories/IContentTypeCommonRepository.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Persistence.Repositories +namespace Umbraco.Cms.Core.Persistence.Repositories { // TODO // this should be IContentTypeRepository, and what is IContentTypeRepository at the moment should diff --git a/src/Umbraco.Core/Persistence/Repositories/IDataTypeContainerRepository.cs b/src/Umbraco.Core/Persistence/Repositories/IDataTypeContainerRepository.cs index 57d3871e5a..3e19c08f99 100644 --- a/src/Umbraco.Core/Persistence/Repositories/IDataTypeContainerRepository.cs +++ b/src/Umbraco.Core/Persistence/Repositories/IDataTypeContainerRepository.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Persistence.Repositories +namespace Umbraco.Cms.Core.Persistence.Repositories { public interface IDataTypeContainerRepository : IEntityContainerRepository { } diff --git a/src/Umbraco.Core/Persistence/Repositories/IDictionaryRepository.cs b/src/Umbraco.Core/Persistence/Repositories/IDictionaryRepository.cs index 6314b01374..c448b39ce9 100644 --- a/src/Umbraco.Core/Persistence/Repositories/IDictionaryRepository.cs +++ b/src/Umbraco.Core/Persistence/Repositories/IDictionaryRepository.cs @@ -1,8 +1,8 @@ using System; using System.Collections.Generic; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Persistence.Repositories +namespace Umbraco.Cms.Core.Persistence.Repositories { public interface IDictionaryRepository : IReadWriteQueryRepository { diff --git a/src/Umbraco.Core/Persistence/Repositories/IDocumentTypeContainerRepository.cs b/src/Umbraco.Core/Persistence/Repositories/IDocumentTypeContainerRepository.cs index ec8dfb9110..53fd62fdbe 100644 --- a/src/Umbraco.Core/Persistence/Repositories/IDocumentTypeContainerRepository.cs +++ b/src/Umbraco.Core/Persistence/Repositories/IDocumentTypeContainerRepository.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Persistence.Repositories +namespace Umbraco.Cms.Core.Persistence.Repositories { public interface IDocumentTypeContainerRepository : IEntityContainerRepository { } diff --git a/src/Umbraco.Core/Persistence/Repositories/IDomainRepository.cs b/src/Umbraco.Core/Persistence/Repositories/IDomainRepository.cs index 1542f54801..a0827f95c1 100644 --- a/src/Umbraco.Core/Persistence/Repositories/IDomainRepository.cs +++ b/src/Umbraco.Core/Persistence/Repositories/IDomainRepository.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Persistence.Repositories +namespace Umbraco.Cms.Core.Persistence.Repositories { public interface IDomainRepository : IReadWriteQueryRepository { diff --git a/src/Umbraco.Core/Persistence/Repositories/IEntityContainerRepository.cs b/src/Umbraco.Core/Persistence/Repositories/IEntityContainerRepository.cs index f1c8353a0d..9b76a8f965 100644 --- a/src/Umbraco.Core/Persistence/Repositories/IEntityContainerRepository.cs +++ b/src/Umbraco.Core/Persistence/Repositories/IEntityContainerRepository.cs @@ -1,6 +1,6 @@ -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Persistence.Repositories +namespace Umbraco.Cms.Core.Persistence.Repositories { public interface IEntityContainerRepository : IReadRepository, IWriteRepository { } diff --git a/src/Umbraco.Core/Persistence/Repositories/IExternalLoginRepository.cs b/src/Umbraco.Core/Persistence/Repositories/IExternalLoginRepository.cs index a3455249fe..8821c332c3 100644 --- a/src/Umbraco.Core/Persistence/Repositories/IExternalLoginRepository.cs +++ b/src/Umbraco.Core/Persistence/Repositories/IExternalLoginRepository.cs @@ -1,8 +1,7 @@ -using System; using System.Collections.Generic; -using Umbraco.Core.Models.Identity; +using Umbraco.Cms.Core.Models.Identity; -namespace Umbraco.Core.Persistence.Repositories +namespace Umbraco.Cms.Core.Persistence.Repositories { public interface IExternalLoginRepository : IReadWriteQueryRepository { diff --git a/src/Umbraco.Core/Persistence/Repositories/IInstallationRepository.cs b/src/Umbraco.Core/Persistence/Repositories/IInstallationRepository.cs index fbc7d2cfbc..5dc7ab0555 100644 --- a/src/Umbraco.Core/Persistence/Repositories/IInstallationRepository.cs +++ b/src/Umbraco.Core/Persistence/Repositories/IInstallationRepository.cs @@ -1,8 +1,6 @@ -using System; -using System.Threading.Tasks; -using Umbraco.Core.Models; +using System.Threading.Tasks; -namespace Umbraco.Core.Persistence.Repositories +namespace Umbraco.Cms.Core.Persistence.Repositories { public interface IInstallationRepository { diff --git a/src/Umbraco.Core/Persistence/Repositories/IKeyValueRepository.cs b/src/Umbraco.Core/Persistence/Repositories/IKeyValueRepository.cs index 0eb2b27eb0..e9625892d4 100644 --- a/src/Umbraco.Core/Persistence/Repositories/IKeyValueRepository.cs +++ b/src/Umbraco.Core/Persistence/Repositories/IKeyValueRepository.cs @@ -1,6 +1,6 @@ -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Persistence.Repositories +namespace Umbraco.Cms.Core.Persistence.Repositories { public interface IKeyValueRepository : IReadRepository, IWriteRepository { diff --git a/src/Umbraco.Core/Persistence/Repositories/ILanguageRepository.cs b/src/Umbraco.Core/Persistence/Repositories/ILanguageRepository.cs index fbcbf13651..0ea0638d9f 100644 --- a/src/Umbraco.Core/Persistence/Repositories/ILanguageRepository.cs +++ b/src/Umbraco.Core/Persistence/Repositories/ILanguageRepository.cs @@ -1,6 +1,6 @@ -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Persistence.Repositories +namespace Umbraco.Cms.Core.Persistence.Repositories { public interface ILanguageRepository : IReadWriteQueryRepository { diff --git a/src/Umbraco.Core/Persistence/Repositories/IMacroRepository.cs b/src/Umbraco.Core/Persistence/Repositories/IMacroRepository.cs index 1ed08352ed..44ab86b80a 100644 --- a/src/Umbraco.Core/Persistence/Repositories/IMacroRepository.cs +++ b/src/Umbraco.Core/Persistence/Repositories/IMacroRepository.cs @@ -1,7 +1,7 @@ using System; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Persistence.Repositories +namespace Umbraco.Cms.Core.Persistence.Repositories { public interface IMacroRepository : IReadWriteQueryRepository, IReadRepository { diff --git a/src/Umbraco.Core/Persistence/Repositories/IMediaTypeContainerRepository.cs b/src/Umbraco.Core/Persistence/Repositories/IMediaTypeContainerRepository.cs index 6a133c053a..cf2c181d5f 100644 --- a/src/Umbraco.Core/Persistence/Repositories/IMediaTypeContainerRepository.cs +++ b/src/Umbraco.Core/Persistence/Repositories/IMediaTypeContainerRepository.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Persistence.Repositories +namespace Umbraco.Cms.Core.Persistence.Repositories { public interface IMediaTypeContainerRepository : IEntityContainerRepository { } diff --git a/src/Umbraco.Core/Persistence/Repositories/IMemberGroupRepository.cs b/src/Umbraco.Core/Persistence/Repositories/IMemberGroupRepository.cs index d63b1bb9db..74fdc4d00c 100644 --- a/src/Umbraco.Core/Persistence/Repositories/IMemberGroupRepository.cs +++ b/src/Umbraco.Core/Persistence/Repositories/IMemberGroupRepository.cs @@ -1,8 +1,8 @@ using System; using System.Collections.Generic; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Persistence.Repositories +namespace Umbraco.Cms.Core.Persistence.Repositories { public interface IMemberGroupRepository : IReadWriteQueryRepository { diff --git a/src/Umbraco.Core/Persistence/Repositories/INotificationsRepository.cs b/src/Umbraco.Core/Persistence/Repositories/INotificationsRepository.cs index d24e981085..069c31ef50 100644 --- a/src/Umbraco.Core/Persistence/Repositories/INotificationsRepository.cs +++ b/src/Umbraco.Core/Persistence/Repositories/INotificationsRepository.cs @@ -1,10 +1,10 @@ using System; using System.Collections.Generic; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Models.Membership; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Membership; -namespace Umbraco.Core.Persistence.Repositories +namespace Umbraco.Cms.Core.Persistence.Repositories { public interface INotificationsRepository : IRepository { diff --git a/src/Umbraco.Core/Persistence/Repositories/IPartialViewMacroRepository.cs b/src/Umbraco.Core/Persistence/Repositories/IPartialViewMacroRepository.cs index b360f9b1a5..c731d39780 100644 --- a/src/Umbraco.Core/Persistence/Repositories/IPartialViewMacroRepository.cs +++ b/src/Umbraco.Core/Persistence/Repositories/IPartialViewMacroRepository.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Persistence.Repositories +namespace Umbraco.Cms.Core.Persistence.Repositories { // this only exists to differentiate with IPartialViewRepository in IoC // without resorting to constants, names, whatever - and IPartialViewRepository diff --git a/src/Umbraco.Core/Persistence/Repositories/IPartialViewRepository.cs b/src/Umbraco.Core/Persistence/Repositories/IPartialViewRepository.cs index 5a7bae1ce3..b0eb7055ec 100644 --- a/src/Umbraco.Core/Persistence/Repositories/IPartialViewRepository.cs +++ b/src/Umbraco.Core/Persistence/Repositories/IPartialViewRepository.cs @@ -1,7 +1,7 @@ using System.IO; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Persistence.Repositories +namespace Umbraco.Cms.Core.Persistence.Repositories { public interface IPartialViewRepository : IReadRepository, IWriteRepository { diff --git a/src/Umbraco.Core/Persistence/Repositories/IRedirectUrlRepository.cs b/src/Umbraco.Core/Persistence/Repositories/IRedirectUrlRepository.cs index 36f885520d..3a4e5f900b 100644 --- a/src/Umbraco.Core/Persistence/Repositories/IRedirectUrlRepository.cs +++ b/src/Umbraco.Core/Persistence/Repositories/IRedirectUrlRepository.cs @@ -1,8 +1,8 @@ using System; using System.Collections.Generic; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Persistence.Repositories +namespace Umbraco.Cms.Core.Persistence.Repositories { /// /// Defines the repository. diff --git a/src/Umbraco.Core/Persistence/Repositories/IRelationRepository.cs b/src/Umbraco.Core/Persistence/Repositories/IRelationRepository.cs index ca40848138..cff64d4a79 100644 --- a/src/Umbraco.Core/Persistence/Repositories/IRelationRepository.cs +++ b/src/Umbraco.Core/Persistence/Repositories/IRelationRepository.cs @@ -1,11 +1,11 @@ using System; using System.Collections.Generic; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Persistence.Querying; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Services; -namespace Umbraco.Core.Persistence.Repositories +namespace Umbraco.Cms.Core.Persistence.Repositories { public interface IRelationRepository : IReadWriteQueryRepository { diff --git a/src/Umbraco.Core/Persistence/Repositories/IRelationTypeRepository.cs b/src/Umbraco.Core/Persistence/Repositories/IRelationTypeRepository.cs index 393bf5a7ca..26dfe4acba 100644 --- a/src/Umbraco.Core/Persistence/Repositories/IRelationTypeRepository.cs +++ b/src/Umbraco.Core/Persistence/Repositories/IRelationTypeRepository.cs @@ -1,7 +1,7 @@ using System; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Persistence.Repositories +namespace Umbraco.Cms.Core.Persistence.Repositories { public interface IRelationTypeRepository : IReadWriteQueryRepository, IReadRepository { } diff --git a/src/Umbraco.Core/Persistence/Repositories/IScriptRepository.cs b/src/Umbraco.Core/Persistence/Repositories/IScriptRepository.cs index 70226777b5..6d2dd4bc57 100644 --- a/src/Umbraco.Core/Persistence/Repositories/IScriptRepository.cs +++ b/src/Umbraco.Core/Persistence/Repositories/IScriptRepository.cs @@ -1,7 +1,7 @@ using System.IO; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Persistence.Repositories +namespace Umbraco.Cms.Core.Persistence.Repositories { public interface IScriptRepository : IReadRepository, IWriteRepository { diff --git a/src/Umbraco.Core/Persistence/Repositories/IServerRegistrationRepository.cs b/src/Umbraco.Core/Persistence/Repositories/IServerRegistrationRepository.cs index eac90b57d2..b76b46a82a 100644 --- a/src/Umbraco.Core/Persistence/Repositories/IServerRegistrationRepository.cs +++ b/src/Umbraco.Core/Persistence/Repositories/IServerRegistrationRepository.cs @@ -1,7 +1,7 @@ using System; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Persistence.Repositories +namespace Umbraco.Cms.Core.Persistence.Repositories { public interface IServerRegistrationRepository : IReadWriteQueryRepository { diff --git a/src/Umbraco.Core/Persistence/Repositories/IStylesheetRepository.cs b/src/Umbraco.Core/Persistence/Repositories/IStylesheetRepository.cs index dbcab32dbf..445630a535 100644 --- a/src/Umbraco.Core/Persistence/Repositories/IStylesheetRepository.cs +++ b/src/Umbraco.Core/Persistence/Repositories/IStylesheetRepository.cs @@ -1,7 +1,7 @@ using System.IO; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Persistence.Repositories +namespace Umbraco.Cms.Core.Persistence.Repositories { public interface IStylesheetRepository : IReadRepository, IWriteRepository { diff --git a/src/Umbraco.Core/Persistence/Repositories/ITagRepository.cs b/src/Umbraco.Core/Persistence/Repositories/ITagRepository.cs index c3e6dc028b..d11192c32f 100644 --- a/src/Umbraco.Core/Persistence/Repositories/ITagRepository.cs +++ b/src/Umbraco.Core/Persistence/Repositories/ITagRepository.cs @@ -1,8 +1,8 @@ using System; using System.Collections.Generic; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Persistence.Repositories +namespace Umbraco.Cms.Core.Persistence.Repositories { public interface ITagRepository : IReadWriteQueryRepository { @@ -35,7 +35,7 @@ namespace Umbraco.Core.Persistence.Repositories /// /// The identifier of the content item. void RemoveAll(int contentId); - + /// /// Removes all assigned tags from a content property. /// diff --git a/src/Umbraco.Core/Persistence/Repositories/ITemplateRepository.cs b/src/Umbraco.Core/Persistence/Repositories/ITemplateRepository.cs index 2e9bdcfc4a..24c83ff29d 100644 --- a/src/Umbraco.Core/Persistence/Repositories/ITemplateRepository.cs +++ b/src/Umbraco.Core/Persistence/Repositories/ITemplateRepository.cs @@ -1,8 +1,8 @@ using System.Collections.Generic; using System.IO; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Persistence.Repositories +namespace Umbraco.Cms.Core.Persistence.Repositories { public interface ITemplateRepository : IReadWriteQueryRepository { diff --git a/src/Umbraco.Core/Persistence/Repositories/IUpgradeCheckRepository.cs b/src/Umbraco.Core/Persistence/Repositories/IUpgradeCheckRepository.cs index 6d56994781..d64f177f14 100644 --- a/src/Umbraco.Core/Persistence/Repositories/IUpgradeCheckRepository.cs +++ b/src/Umbraco.Core/Persistence/Repositories/IUpgradeCheckRepository.cs @@ -1,8 +1,7 @@ using System.Threading.Tasks; -using Semver; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Semver; -namespace Umbraco.Core.Persistence.Repositories +namespace Umbraco.Cms.Core.Persistence.Repositories { public interface IUpgradeCheckRepository { diff --git a/src/Umbraco.Core/Persistence/Repositories/IUserGroupRepository.cs b/src/Umbraco.Core/Persistence/Repositories/IUserGroupRepository.cs index 85fa8d894b..7bb42cb774 100644 --- a/src/Umbraco.Core/Persistence/Repositories/IUserGroupRepository.cs +++ b/src/Umbraco.Core/Persistence/Repositories/IUserGroupRepository.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Models.Membership; +using Umbraco.Cms.Core.Models.Membership; -namespace Umbraco.Core.Persistence.Repositories +namespace Umbraco.Cms.Core.Persistence.Repositories { public interface IUserGroupRepository : IReadWriteQueryRepository { diff --git a/src/Umbraco.Core/Persistence/Repositories/IUserRepository.cs b/src/Umbraco.Core/Persistence/Repositories/IUserRepository.cs index 0d1a8764ae..799cb01963 100644 --- a/src/Umbraco.Core/Persistence/Repositories/IUserRepository.cs +++ b/src/Umbraco.Core/Persistence/Repositories/IUserRepository.cs @@ -1,10 +1,10 @@ using System; using System.Collections.Generic; using System.Linq.Expressions; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Persistence.Querying; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Persistence.Querying; -namespace Umbraco.Core.Persistence.Repositories +namespace Umbraco.Cms.Core.Persistence.Repositories { public interface IUserRepository : IReadWriteQueryRepository { diff --git a/src/Umbraco.Core/Persistence/Repositories/InstallationRepository.cs b/src/Umbraco.Core/Persistence/Repositories/InstallationRepository.cs index 01c91fe051..58ebf8f5c4 100644 --- a/src/Umbraco.Core/Persistence/Repositories/InstallationRepository.cs +++ b/src/Umbraco.Core/Persistence/Repositories/InstallationRepository.cs @@ -1,10 +1,9 @@ using System.Net.Http; using System.Text; using System.Threading.Tasks; -using Umbraco.Core.Models; -using Umbraco.Core.Serialization; +using Umbraco.Cms.Core.Serialization; -namespace Umbraco.Core.Persistence.Repositories.Implement +namespace Umbraco.Cms.Core.Persistence.Repositories { public class InstallationRepository : IInstallationRepository { diff --git a/src/Umbraco.Core/Persistence/Repositories/RepositoryCacheKeys.cs b/src/Umbraco.Core/Persistence/Repositories/RepositoryCacheKeys.cs index 693656eb65..f5388d8f95 100644 --- a/src/Umbraco.Core/Persistence/Repositories/RepositoryCacheKeys.cs +++ b/src/Umbraco.Core/Persistence/Repositories/RepositoryCacheKeys.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; -namespace Umbraco.Core.Persistence.Repositories.Implement +namespace Umbraco.Cms.Core.Persistence.Repositories { /// /// Provides cache keys for repositories. diff --git a/src/Umbraco.Core/Persistence/Repositories/UpgradeCheckRepository.cs b/src/Umbraco.Core/Persistence/Repositories/UpgradeCheckRepository.cs index 1babb3c1ad..2f55293a13 100644 --- a/src/Umbraco.Core/Persistence/Repositories/UpgradeCheckRepository.cs +++ b/src/Umbraco.Core/Persistence/Repositories/UpgradeCheckRepository.cs @@ -2,11 +2,10 @@ using System.Net.Http; using System.Text; using System.Threading.Tasks; -using Semver; -using Umbraco.Core.Models; -using Umbraco.Core.Serialization; +using Umbraco.Cms.Core.Semver; +using Umbraco.Cms.Core.Serialization; -namespace Umbraco.Core.Persistence.Repositories.Implement +namespace Umbraco.Cms.Core.Persistence.Repositories { public class UpgradeCheckRepository : IUpgradeCheckRepository { diff --git a/src/Umbraco.Core/Persistence/SqlExtensionsStatics.cs b/src/Umbraco.Core/Persistence/SqlExtensionsStatics.cs index 0974b8df6d..71df9a362e 100644 --- a/src/Umbraco.Core/Persistence/SqlExtensionsStatics.cs +++ b/src/Umbraco.Core/Persistence/SqlExtensionsStatics.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Persistence +namespace Umbraco.Cms.Core.Persistence { /// /// Provides a mean to express aliases in SELECT Sql statements. diff --git a/src/Umbraco.Core/PropertyEditors/BlockListConfiguration.cs b/src/Umbraco.Core/PropertyEditors/BlockListConfiguration.cs index 27064e2aa7..f29511150c 100644 --- a/src/Umbraco.Core/PropertyEditors/BlockListConfiguration.cs +++ b/src/Umbraco.Core/PropertyEditors/BlockListConfiguration.cs @@ -1,8 +1,7 @@ using System; using System.Runtime.Serialization; -using Umbraco.Core.PropertyEditors; -namespace Umbraco.Web.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// The configuration object for the Block List editor diff --git a/src/Umbraco.Core/PropertyEditors/ColorPickerConfiguration.cs b/src/Umbraco.Core/PropertyEditors/ColorPickerConfiguration.cs index b49cdf4ae1..80350bb350 100644 --- a/src/Umbraco.Core/PropertyEditors/ColorPickerConfiguration.cs +++ b/src/Umbraco.Core/PropertyEditors/ColorPickerConfiguration.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// Represents the configuration for the color picker value editor. diff --git a/src/Umbraco.Core/PropertyEditors/ConfigurationEditor.cs b/src/Umbraco.Core/PropertyEditors/ConfigurationEditor.cs index e40db6e3cd..d4f1d84984 100644 --- a/src/Umbraco.Core/PropertyEditors/ConfigurationEditor.cs +++ b/src/Umbraco.Core/PropertyEditors/ConfigurationEditor.cs @@ -2,9 +2,10 @@ using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; -using Umbraco.Core.Serialization; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Extensions; -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// Represents a data type configuration editor. diff --git a/src/Umbraco.Core/PropertyEditors/ConfigurationField.cs b/src/Umbraco.Core/PropertyEditors/ConfigurationField.cs index 52df839712..8b7abfafe6 100644 --- a/src/Umbraco.Core/PropertyEditors/ConfigurationField.cs +++ b/src/Umbraco.Core/PropertyEditors/ConfigurationField.cs @@ -1,10 +1,10 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Reflection; using System.Runtime.Serialization; +using Umbraco.Extensions; -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// Represents a datatype configuration field for editing. diff --git a/src/Umbraco.Core/PropertyEditors/ConfigurationFieldAttribute.cs b/src/Umbraco.Core/PropertyEditors/ConfigurationFieldAttribute.cs index 1852c742f0..ff32308f36 100644 --- a/src/Umbraco.Core/PropertyEditors/ConfigurationFieldAttribute.cs +++ b/src/Umbraco.Core/PropertyEditors/ConfigurationFieldAttribute.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// Marks a ConfigurationEditor property as a configuration field, and a class as a configuration field type. diff --git a/src/Umbraco.Core/PropertyEditors/ContentPickerConfiguration.cs b/src/Umbraco.Core/PropertyEditors/ContentPickerConfiguration.cs index 021d416781..1f25b6abac 100644 --- a/src/Umbraco.Core/PropertyEditors/ContentPickerConfiguration.cs +++ b/src/Umbraco.Core/PropertyEditors/ContentPickerConfiguration.cs @@ -1,7 +1,4 @@ -using Umbraco.Core; -using Umbraco.Core.PropertyEditors; - -namespace Umbraco.Web.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { public class ContentPickerConfiguration : IIgnoreUserStartNodesConfig { @@ -11,7 +8,7 @@ namespace Umbraco.Web.PropertyEditors [ConfigurationField("startNodeId", "Start node", "treepicker")] // + config in configuration editor ctor public Udi StartNodeId { get; set; } - [ConfigurationField(Core.Constants.DataTypes.ReservedPreValueKeys.IgnoreUserStartNodes, + [ConfigurationField(Constants.DataTypes.ReservedPreValueKeys.IgnoreUserStartNodes, "Ignore User Start Nodes", "boolean", Description = "Selecting this option allows a user to choose nodes that they normally don't have access to.")] public bool IgnoreUserStartNodes { get; set; } diff --git a/src/Umbraco.Core/PropertyEditors/DataEditor.cs b/src/Umbraco.Core/PropertyEditors/DataEditor.cs index ef533aa083..de011c6555 100644 --- a/src/Umbraco.Core/PropertyEditors/DataEditor.cs +++ b/src/Umbraco.Core/PropertyEditors/DataEditor.cs @@ -3,12 +3,14 @@ using System.Collections.Generic; using System.Diagnostics; using System.Runtime.Serialization; using Microsoft.Extensions.Logging; -using Umbraco.Core.Composing; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Extensions; -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// Represents a data editor. diff --git a/src/Umbraco.Core/PropertyEditors/DataEditorAttribute.cs b/src/Umbraco.Core/PropertyEditors/DataEditorAttribute.cs index 7b3be7ea5f..f8fbc051cd 100644 --- a/src/Umbraco.Core/PropertyEditors/DataEditorAttribute.cs +++ b/src/Umbraco.Core/PropertyEditors/DataEditorAttribute.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// Marks a class that represents a data editor. diff --git a/src/Umbraco.Core/PropertyEditors/DataEditorCollection.cs b/src/Umbraco.Core/PropertyEditors/DataEditorCollection.cs index d10a34a6c6..d4ddc21827 100644 --- a/src/Umbraco.Core/PropertyEditors/DataEditorCollection.cs +++ b/src/Umbraco.Core/PropertyEditors/DataEditorCollection.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { public class DataEditorCollection : BuilderCollectionBase { diff --git a/src/Umbraco.Core/PropertyEditors/DataEditorCollectionBuilder.cs b/src/Umbraco.Core/PropertyEditors/DataEditorCollectionBuilder.cs index c0c0a3651e..4794d37c21 100644 --- a/src/Umbraco.Core/PropertyEditors/DataEditorCollectionBuilder.cs +++ b/src/Umbraco.Core/PropertyEditors/DataEditorCollectionBuilder.cs @@ -1,6 +1,6 @@ -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { public class DataEditorCollectionBuilder : LazyCollectionBuilderBase { diff --git a/src/Umbraco.Core/PropertyEditors/DataValueEditor.cs b/src/Umbraco.Core/PropertyEditors/DataValueEditor.cs index 237af042cf..2415f48907 100644 --- a/src/Umbraco.Core/PropertyEditors/DataValueEditor.cs +++ b/src/Umbraco.Core/PropertyEditors/DataValueEditor.cs @@ -6,14 +6,15 @@ using System.Linq; using System.Runtime.Serialization; using System.Xml.Linq; using Microsoft.Extensions.Logging; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Editors; -using Umbraco.Core.PropertyEditors.Validators; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Editors; +using Umbraco.Cms.Core.PropertyEditors.Validators; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Extensions; -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// Represents a value editor. diff --git a/src/Umbraco.Core/PropertyEditors/DataValueReferenceFactoryCollection.cs b/src/Umbraco.Core/PropertyEditors/DataValueReferenceFactoryCollection.cs index 1dadd6cf0a..9a9efa5e2c 100644 --- a/src/Umbraco.Core/PropertyEditors/DataValueReferenceFactoryCollection.cs +++ b/src/Umbraco.Core/PropertyEditors/DataValueReferenceFactoryCollection.cs @@ -1,9 +1,9 @@ using System.Collections.Generic; -using Umbraco.Core.Composing; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Editors; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Editors; -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { public class DataValueReferenceFactoryCollection : BuilderCollectionBase { diff --git a/src/Umbraco.Core/PropertyEditors/DataValueReferenceFactoryCollectionBuilder.cs b/src/Umbraco.Core/PropertyEditors/DataValueReferenceFactoryCollectionBuilder.cs index 2cf76712c8..b42ea74e88 100644 --- a/src/Umbraco.Core/PropertyEditors/DataValueReferenceFactoryCollectionBuilder.cs +++ b/src/Umbraco.Core/PropertyEditors/DataValueReferenceFactoryCollectionBuilder.cs @@ -1,6 +1,6 @@ -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { public class DataValueReferenceFactoryCollectionBuilder : OrderedCollectionBuilderBase { diff --git a/src/Umbraco.Core/PropertyEditors/DateTimeConfiguration.cs b/src/Umbraco.Core/PropertyEditors/DateTimeConfiguration.cs index 9801ba0271..985d58f06d 100644 --- a/src/Umbraco.Core/PropertyEditors/DateTimeConfiguration.cs +++ b/src/Umbraco.Core/PropertyEditors/DateTimeConfiguration.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// Represents the configuration for the datetime value editor. diff --git a/src/Umbraco.Core/PropertyEditors/DateValueEditor.cs b/src/Umbraco.Core/PropertyEditors/DateValueEditor.cs index b6208197c7..2cb9c0f887 100644 --- a/src/Umbraco.Core/PropertyEditors/DateValueEditor.cs +++ b/src/Umbraco.Core/PropertyEditors/DateValueEditor.cs @@ -1,12 +1,12 @@ using System; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PropertyEditors.Validators; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Extensions; -namespace Umbraco.Web.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// CUstom value editor so we can serialize with the correct date format (excluding time) diff --git a/src/Umbraco.Core/PropertyEditors/DecimalConfigurationEditor.cs b/src/Umbraco.Core/PropertyEditors/DecimalConfigurationEditor.cs index efb1df1eb7..52eefbd400 100644 --- a/src/Umbraco.Core/PropertyEditors/DecimalConfigurationEditor.cs +++ b/src/Umbraco.Core/PropertyEditors/DecimalConfigurationEditor.cs @@ -1,7 +1,6 @@ -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.PropertyEditors.Validators; +using Umbraco.Cms.Core.PropertyEditors.Validators; -namespace Umbraco.Web.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// A custom pre-value editor class to deal with the legacy way that the pre-value data is stored. diff --git a/src/Umbraco.Core/PropertyEditors/DecimalPropertyEditor.cs b/src/Umbraco.Core/PropertyEditors/DecimalPropertyEditor.cs index 4aea9f944f..01723ecea4 100644 --- a/src/Umbraco.Core/PropertyEditors/DecimalPropertyEditor.cs +++ b/src/Umbraco.Core/PropertyEditors/DecimalPropertyEditor.cs @@ -1,12 +1,11 @@ using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.PropertyEditors.Validators; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PropertyEditors.Validators; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; -namespace Umbraco.Web.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// Represents a decimal property and parameter editor. diff --git a/src/Umbraco.Core/PropertyEditors/DefaultPropertyIndexValueFactory.cs b/src/Umbraco.Core/PropertyEditors/DefaultPropertyIndexValueFactory.cs index 0d06b59a9c..b70a1be851 100644 --- a/src/Umbraco.Core/PropertyEditors/DefaultPropertyIndexValueFactory.cs +++ b/src/Umbraco.Core/PropertyEditors/DefaultPropertyIndexValueFactory.cs @@ -1,7 +1,8 @@ using System.Collections.Generic; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Extensions; -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// Provides a default implementation for , returning a single field to index containing the property value. diff --git a/src/Umbraco.Core/PropertyEditors/DefaultPropertyValueConverterAttribute.cs b/src/Umbraco.Core/PropertyEditors/DefaultPropertyValueConverterAttribute.cs index 5922457b43..a38ea29e0b 100644 --- a/src/Umbraco.Core/PropertyEditors/DefaultPropertyValueConverterAttribute.cs +++ b/src/Umbraco.Core/PropertyEditors/DefaultPropertyValueConverterAttribute.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// Indicates that this is a default property value converter (shipped with Umbraco) diff --git a/src/Umbraco.Core/PropertyEditors/DropDownFlexibleConfiguration.cs b/src/Umbraco.Core/PropertyEditors/DropDownFlexibleConfiguration.cs index 0a9d750964..4d74f4aec2 100644 --- a/src/Umbraco.Core/PropertyEditors/DropDownFlexibleConfiguration.cs +++ b/src/Umbraco.Core/PropertyEditors/DropDownFlexibleConfiguration.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { public class DropDownFlexibleConfiguration : ValueListConfiguration { diff --git a/src/Umbraco.Core/PropertyEditors/EditorType.cs b/src/Umbraco.Core/PropertyEditors/EditorType.cs index bd53cfe81d..93d0b91b18 100644 --- a/src/Umbraco.Core/PropertyEditors/EditorType.cs +++ b/src/Umbraco.Core/PropertyEditors/EditorType.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// Represents the type of an editor. @@ -23,4 +23,4 @@ namespace Umbraco.Core.PropertyEditors /// MacroParameter = 2 } -} \ No newline at end of file +} diff --git a/src/Umbraco.Core/PropertyEditors/EmailAddressConfiguration.cs b/src/Umbraco.Core/PropertyEditors/EmailAddressConfiguration.cs index fa8eb830b0..380d54dcad 100644 --- a/src/Umbraco.Core/PropertyEditors/EmailAddressConfiguration.cs +++ b/src/Umbraco.Core/PropertyEditors/EmailAddressConfiguration.cs @@ -1,7 +1,6 @@ using System; -using Umbraco.Core.PropertyEditors; -namespace Umbraco.Web.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// Represents the configuration for the email address value editor. diff --git a/src/Umbraco.Core/PropertyEditors/GridEditor.cs b/src/Umbraco.Core/PropertyEditors/GridEditor.cs index 7af72cf5ea..06f32658d2 100644 --- a/src/Umbraco.Core/PropertyEditors/GridEditor.cs +++ b/src/Umbraco.Core/PropertyEditors/GridEditor.cs @@ -1,8 +1,8 @@ using System.Collections.Generic; using System.Runtime.Serialization; -using Umbraco.Core.Configuration.Grid; +using Umbraco.Cms.Core.Configuration.Grid; -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { [DataContract] diff --git a/src/Umbraco.Core/PropertyEditors/IConfigurationEditor.cs b/src/Umbraco.Core/PropertyEditors/IConfigurationEditor.cs index d38c594def..413f7ee24b 100644 --- a/src/Umbraco.Core/PropertyEditors/IConfigurationEditor.cs +++ b/src/Umbraco.Core/PropertyEditors/IConfigurationEditor.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Serialization; +using Umbraco.Cms.Core.Serialization; -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// Represents an editor for editing the configuration of editors. diff --git a/src/Umbraco.Core/PropertyEditors/IConfigureValueType.cs b/src/Umbraco.Core/PropertyEditors/IConfigureValueType.cs index 69774270bd..831d5d19fd 100644 --- a/src/Umbraco.Core/PropertyEditors/IConfigureValueType.cs +++ b/src/Umbraco.Core/PropertyEditors/IConfigureValueType.cs @@ -1,6 +1,6 @@ -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// Represents a configuration that configures the value type. @@ -15,4 +15,4 @@ namespace Umbraco.Core.PropertyEditors /// string ValueType { get; } } -} \ No newline at end of file +} diff --git a/src/Umbraco.Core/PropertyEditors/IDataEditor.cs b/src/Umbraco.Core/PropertyEditors/IDataEditor.cs index 3685cc6494..e632172990 100644 --- a/src/Umbraco.Core/PropertyEditors/IDataEditor.cs +++ b/src/Umbraco.Core/PropertyEditors/IDataEditor.cs @@ -1,7 +1,8 @@ using System.Collections.Generic; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// Represents a data editor. diff --git a/src/Umbraco.Core/PropertyEditors/IDataValueReference.cs b/src/Umbraco.Core/PropertyEditors/IDataValueReference.cs index 8c0806a4a4..af5ddb1ec8 100644 --- a/src/Umbraco.Core/PropertyEditors/IDataValueReference.cs +++ b/src/Umbraco.Core/PropertyEditors/IDataValueReference.cs @@ -1,7 +1,8 @@ using System.Collections.Generic; -using Umbraco.Core.Models.Editors; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Editors; -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// Resolve references from values diff --git a/src/Umbraco.Core/PropertyEditors/IDataValueReferenceFactory.cs b/src/Umbraco.Core/PropertyEditors/IDataValueReferenceFactory.cs index c13c1ed212..6acfccf4e7 100644 --- a/src/Umbraco.Core/PropertyEditors/IDataValueReferenceFactory.cs +++ b/src/Umbraco.Core/PropertyEditors/IDataValueReferenceFactory.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { public interface IDataValueReferenceFactory { @@ -10,7 +10,7 @@ bool IsForEditor(IDataEditor dataEditor); /// - /// + /// /// /// IDataValueReference GetDataValueReference(); diff --git a/src/Umbraco.Core/PropertyEditors/IIgnoreUserStartNodesConfig.cs b/src/Umbraco.Core/PropertyEditors/IIgnoreUserStartNodesConfig.cs index 28ce8654c3..d6c20b9cdb 100644 --- a/src/Umbraco.Core/PropertyEditors/IIgnoreUserStartNodesConfig.cs +++ b/src/Umbraco.Core/PropertyEditors/IIgnoreUserStartNodesConfig.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// Marker interface for any editor configuration that supports Ignoring user start nodes diff --git a/src/Umbraco.Core/PropertyEditors/IManifestValueValidator.cs b/src/Umbraco.Core/PropertyEditors/IManifestValueValidator.cs index 559ea08bb7..28cf26022f 100644 --- a/src/Umbraco.Core/PropertyEditors/IManifestValueValidator.cs +++ b/src/Umbraco.Core/PropertyEditors/IManifestValueValidator.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// Defines a value validator that can be referenced in a manifest. @@ -11,4 +11,4 @@ /// string ValidationName { get; } } -} \ No newline at end of file +} diff --git a/src/Umbraco.Core/PropertyEditors/IPropertyIndexValueFactory.cs b/src/Umbraco.Core/PropertyEditors/IPropertyIndexValueFactory.cs index 26552afc6f..d3a8a2bac5 100644 --- a/src/Umbraco.Core/PropertyEditors/IPropertyIndexValueFactory.cs +++ b/src/Umbraco.Core/PropertyEditors/IPropertyIndexValueFactory.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// Represents a property index value factory. diff --git a/src/Umbraco.Core/PropertyEditors/IPropertyValueConverter.cs b/src/Umbraco.Core/PropertyEditors/IPropertyValueConverter.cs index 0a9cf632bc..392a133b11 100644 --- a/src/Umbraco.Core/PropertyEditors/IPropertyValueConverter.cs +++ b/src/Umbraco.Core/PropertyEditors/IPropertyValueConverter.cs @@ -1,8 +1,8 @@ using System; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Models.PublishedContent; -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// Provides published content properties conversion service. diff --git a/src/Umbraco.Core/PropertyEditors/IValueFormatValidator.cs b/src/Umbraco.Core/PropertyEditors/IValueFormatValidator.cs index 9f29d65ffd..8c59d3492c 100644 --- a/src/Umbraco.Core/PropertyEditors/IValueFormatValidator.cs +++ b/src/Umbraco.Core/PropertyEditors/IValueFormatValidator.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.ComponentModel.DataAnnotations; -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// Defines a value format validator. diff --git a/src/Umbraco.Core/PropertyEditors/IValueRequiredValidator.cs b/src/Umbraco.Core/PropertyEditors/IValueRequiredValidator.cs index 1b4074c96f..2334a543ba 100644 --- a/src/Umbraco.Core/PropertyEditors/IValueRequiredValidator.cs +++ b/src/Umbraco.Core/PropertyEditors/IValueRequiredValidator.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.ComponentModel.DataAnnotations; -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// Defines a required value validator. diff --git a/src/Umbraco.Core/PropertyEditors/IValueValidator.cs b/src/Umbraco.Core/PropertyEditors/IValueValidator.cs index 5c9bae71b5..0c97f0a41b 100644 --- a/src/Umbraco.Core/PropertyEditors/IValueValidator.cs +++ b/src/Umbraco.Core/PropertyEditors/IValueValidator.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.ComponentModel.DataAnnotations; -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// Defines a value validator. diff --git a/src/Umbraco.Core/PropertyEditors/IntegerConfigurationEditor.cs b/src/Umbraco.Core/PropertyEditors/IntegerConfigurationEditor.cs index bb1f8af790..e7c2114dd2 100644 --- a/src/Umbraco.Core/PropertyEditors/IntegerConfigurationEditor.cs +++ b/src/Umbraco.Core/PropertyEditors/IntegerConfigurationEditor.cs @@ -1,7 +1,6 @@ -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.PropertyEditors.Validators; +using Umbraco.Cms.Core.PropertyEditors.Validators; -namespace Umbraco.Web.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// A custom pre-value editor class to deal with the legacy way that the pre-value data is stored. diff --git a/src/Umbraco.Core/PropertyEditors/IntegerPropertyEditor.cs b/src/Umbraco.Core/PropertyEditors/IntegerPropertyEditor.cs index 43b988a49f..639cd4293a 100644 --- a/src/Umbraco.Core/PropertyEditors/IntegerPropertyEditor.cs +++ b/src/Umbraco.Core/PropertyEditors/IntegerPropertyEditor.cs @@ -1,12 +1,11 @@ using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.PropertyEditors.Validators; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PropertyEditors.Validators; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; -namespace Umbraco.Web.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// Represents an integer property and parameter editor. diff --git a/src/Umbraco.Core/PropertyEditors/LabelConfiguration.cs b/src/Umbraco.Core/PropertyEditors/LabelConfiguration.cs index bbdd437e54..28fe05d151 100644 --- a/src/Umbraco.Core/PropertyEditors/LabelConfiguration.cs +++ b/src/Umbraco.Core/PropertyEditors/LabelConfiguration.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// Represents the configuration for the label value editor. diff --git a/src/Umbraco.Core/PropertyEditors/ListViewConfiguration.cs b/src/Umbraco.Core/PropertyEditors/ListViewConfiguration.cs index 083e36029e..9b720e4fd8 100644 --- a/src/Umbraco.Core/PropertyEditors/ListViewConfiguration.cs +++ b/src/Umbraco.Core/PropertyEditors/ListViewConfiguration.cs @@ -1,7 +1,6 @@ using System.Runtime.Serialization; -using Umbraco.Core.PropertyEditors; -namespace Umbraco.Web.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// Represents the configuration for the listview value editor. diff --git a/src/Umbraco.Core/PropertyEditors/ManifestValueValidatorCollection.cs b/src/Umbraco.Core/PropertyEditors/ManifestValueValidatorCollection.cs index 0f3719dd8c..45a2dc51bb 100644 --- a/src/Umbraco.Core/PropertyEditors/ManifestValueValidatorCollection.cs +++ b/src/Umbraco.Core/PropertyEditors/ManifestValueValidatorCollection.cs @@ -1,9 +1,10 @@ using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; +using Umbraco.Extensions; -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { public class ManifestValueValidatorCollection : BuilderCollectionBase { diff --git a/src/Umbraco.Core/PropertyEditors/ManifestValueValidatorCollectionBuilder.cs b/src/Umbraco.Core/PropertyEditors/ManifestValueValidatorCollectionBuilder.cs index 0ebda864f6..2247d3e62f 100644 --- a/src/Umbraco.Core/PropertyEditors/ManifestValueValidatorCollectionBuilder.cs +++ b/src/Umbraco.Core/PropertyEditors/ManifestValueValidatorCollectionBuilder.cs @@ -1,6 +1,6 @@ -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { public class ManifestValueValidatorCollectionBuilder : LazyCollectionBuilderBase { diff --git a/src/Umbraco.Core/PropertyEditors/MarkdownConfiguration.cs b/src/Umbraco.Core/PropertyEditors/MarkdownConfiguration.cs index f32b3ffb44..193c916f2c 100644 --- a/src/Umbraco.Core/PropertyEditors/MarkdownConfiguration.cs +++ b/src/Umbraco.Core/PropertyEditors/MarkdownConfiguration.cs @@ -1,6 +1,4 @@ -using Umbraco.Core.PropertyEditors; - -namespace Umbraco.Web.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// Represents the configuration for the markdown value editor. diff --git a/src/Umbraco.Core/PropertyEditors/MediaPickerConfiguration.cs b/src/Umbraco.Core/PropertyEditors/MediaPickerConfiguration.cs index b8b9476184..06faedea0d 100644 --- a/src/Umbraco.Core/PropertyEditors/MediaPickerConfiguration.cs +++ b/src/Umbraco.Core/PropertyEditors/MediaPickerConfiguration.cs @@ -1,7 +1,4 @@ -using Umbraco.Core; -using Umbraco.Core.PropertyEditors; - -namespace Umbraco.Web.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// Represents the configuration for the media picker value editor. @@ -20,7 +17,7 @@ namespace Umbraco.Web.PropertyEditors [ConfigurationField("startNodeId", "Start node", "mediapicker")] public Udi StartNodeId { get; set; } - [ConfigurationField(Core.Constants.DataTypes.ReservedPreValueKeys.IgnoreUserStartNodes, + [ConfigurationField(Constants.DataTypes.ReservedPreValueKeys.IgnoreUserStartNodes, "Ignore User Start Nodes", "boolean", Description = "Selecting this option allows a user to choose nodes that they normally don't have access to.")] public bool IgnoreUserStartNodes { get; set; } diff --git a/src/Umbraco.Core/PropertyEditors/MediaUrlGeneratorCollection.cs b/src/Umbraco.Core/PropertyEditors/MediaUrlGeneratorCollection.cs index 0374ca5cd2..c3c168ed1f 100644 --- a/src/Umbraco.Core/PropertyEditors/MediaUrlGeneratorCollection.cs +++ b/src/Umbraco.Core/PropertyEditors/MediaUrlGeneratorCollection.cs @@ -1,7 +1,8 @@ using System.Collections.Generic; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { public class MediaUrlGeneratorCollection : BuilderCollectionBase { diff --git a/src/Umbraco.Core/PropertyEditors/MediaUrlGeneratorCollectionBuilder.cs b/src/Umbraco.Core/PropertyEditors/MediaUrlGeneratorCollectionBuilder.cs index 40a68fd4e3..3ad03cb13c 100644 --- a/src/Umbraco.Core/PropertyEditors/MediaUrlGeneratorCollectionBuilder.cs +++ b/src/Umbraco.Core/PropertyEditors/MediaUrlGeneratorCollectionBuilder.cs @@ -1,6 +1,7 @@ -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { public class MediaUrlGeneratorCollectionBuilder : LazyCollectionBuilderBase { diff --git a/src/Umbraco.Core/PropertyEditors/MemberGroupPickerPropertyEditor.cs b/src/Umbraco.Core/PropertyEditors/MemberGroupPickerPropertyEditor.cs index 34448b3816..6fb2e5467d 100644 --- a/src/Umbraco.Core/PropertyEditors/MemberGroupPickerPropertyEditor.cs +++ b/src/Umbraco.Core/PropertyEditors/MemberGroupPickerPropertyEditor.cs @@ -1,11 +1,9 @@ using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; -namespace Umbraco.Web.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { [DataEditor( Constants.PropertyEditors.Aliases.MemberGroupPicker, diff --git a/src/Umbraco.Core/PropertyEditors/MemberPickerConfiguration.cs b/src/Umbraco.Core/PropertyEditors/MemberPickerConfiguration.cs index ba7dea6548..6d6fb3a8b7 100644 --- a/src/Umbraco.Core/PropertyEditors/MemberPickerConfiguration.cs +++ b/src/Umbraco.Core/PropertyEditors/MemberPickerConfiguration.cs @@ -1,7 +1,6 @@ using System.Collections.Generic; -using Umbraco.Core.PropertyEditors; -namespace Umbraco.Web.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { public class MemberPickerConfiguration : ConfigurationEditor { diff --git a/src/Umbraco.Core/PropertyEditors/MemberPickerPropertyEditor.cs b/src/Umbraco.Core/PropertyEditors/MemberPickerPropertyEditor.cs index b572f47cfd..a2cf440b58 100644 --- a/src/Umbraco.Core/PropertyEditors/MemberPickerPropertyEditor.cs +++ b/src/Umbraco.Core/PropertyEditors/MemberPickerPropertyEditor.cs @@ -1,11 +1,9 @@ using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; -namespace Umbraco.Web.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { [DataEditor( Constants.PropertyEditors.Aliases.MemberPicker, diff --git a/src/Umbraco.Core/PropertyEditors/MissingPropertyEditor.cs b/src/Umbraco.Core/PropertyEditors/MissingPropertyEditor.cs index 902aab7cc7..0bffd5fce3 100644 --- a/src/Umbraco.Core/PropertyEditors/MissingPropertyEditor.cs +++ b/src/Umbraco.Core/PropertyEditors/MissingPropertyEditor.cs @@ -1,7 +1,8 @@ using System; using System.Collections.Generic; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// Represents a temporary representation of an editor for cases where a data type is created but not editor is available. diff --git a/src/Umbraco.Core/PropertyEditors/MultiNodePickerConfiguration.cs b/src/Umbraco.Core/PropertyEditors/MultiNodePickerConfiguration.cs index 0725971e95..54ae68550d 100644 --- a/src/Umbraco.Core/PropertyEditors/MultiNodePickerConfiguration.cs +++ b/src/Umbraco.Core/PropertyEditors/MultiNodePickerConfiguration.cs @@ -1,6 +1,4 @@ -using Umbraco.Core.PropertyEditors; - -namespace Umbraco.Web.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// Represents the configuration for the multinode picker value editor. @@ -22,7 +20,7 @@ namespace Umbraco.Web.PropertyEditors [ConfigurationField("showOpenButton", "Show open button", "boolean", Description = "Opens the node in a dialog")] public bool ShowOpen { get; set; } - [ConfigurationField(Core.Constants.DataTypes.ReservedPreValueKeys.IgnoreUserStartNodes, + [ConfigurationField(Constants.DataTypes.ReservedPreValueKeys.IgnoreUserStartNodes, "Ignore User Start Nodes", "boolean", Description = "Selecting this option allows a user to choose nodes that they normally don't have access to.")] public bool IgnoreUserStartNodes { get; set; } diff --git a/src/Umbraco.Core/PropertyEditors/MultiNodePickerConfigurationTreeSource.cs b/src/Umbraco.Core/PropertyEditors/MultiNodePickerConfigurationTreeSource.cs index 749f46abc5..1277ed9bc0 100644 --- a/src/Umbraco.Core/PropertyEditors/MultiNodePickerConfigurationTreeSource.cs +++ b/src/Umbraco.Core/PropertyEditors/MultiNodePickerConfigurationTreeSource.cs @@ -1,10 +1,9 @@ using System.Runtime.Serialization; -using Umbraco.Core; -namespace Umbraco.Web.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// - /// Represents the 'startNode' value for the + /// Represents the 'startNode' value for the /// [DataContract] public class MultiNodePickerConfigurationTreeSource diff --git a/src/Umbraco.Core/PropertyEditors/MultiUrlPickerConfiguration.cs b/src/Umbraco.Core/PropertyEditors/MultiUrlPickerConfiguration.cs index 239569478f..c3913fd6b8 100644 --- a/src/Umbraco.Core/PropertyEditors/MultiUrlPickerConfiguration.cs +++ b/src/Umbraco.Core/PropertyEditors/MultiUrlPickerConfiguration.cs @@ -1,6 +1,4 @@ -using Umbraco.Core.PropertyEditors; - -namespace Umbraco.Web.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { public class MultiUrlPickerConfiguration : IIgnoreUserStartNodesConfig @@ -11,7 +9,7 @@ namespace Umbraco.Web.PropertyEditors [ConfigurationField("maxNumber", "Maximum number of items", "number")] public int MaxNumber { get; set; } - [ConfigurationField(Core.Constants.DataTypes.ReservedPreValueKeys.IgnoreUserStartNodes, + [ConfigurationField(Constants.DataTypes.ReservedPreValueKeys.IgnoreUserStartNodes, "Ignore User Start Nodes", "boolean", Description = "Selecting this option allows a user to choose nodes that they normally don't have access to.")] public bool IgnoreUserStartNodes { get; set; } diff --git a/src/Umbraco.Core/PropertyEditors/MultipleTextStringConfiguration.cs b/src/Umbraco.Core/PropertyEditors/MultipleTextStringConfiguration.cs index 7513222ca2..506b3bebc9 100644 --- a/src/Umbraco.Core/PropertyEditors/MultipleTextStringConfiguration.cs +++ b/src/Umbraco.Core/PropertyEditors/MultipleTextStringConfiguration.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// Represents the configuration for a multiple textstring value editor. diff --git a/src/Umbraco.Core/PropertyEditors/NestedContentConfiguration.cs b/src/Umbraco.Core/PropertyEditors/NestedContentConfiguration.cs index e75be48f36..4fd1e1e104 100644 --- a/src/Umbraco.Core/PropertyEditors/NestedContentConfiguration.cs +++ b/src/Umbraco.Core/PropertyEditors/NestedContentConfiguration.cs @@ -1,7 +1,6 @@ using System.Runtime.Serialization; -using Umbraco.Core.PropertyEditors; -namespace Umbraco.Web.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// diff --git a/src/Umbraco.Core/PropertyEditors/ParameterEditorCollection.cs b/src/Umbraco.Core/PropertyEditors/ParameterEditorCollection.cs index dacda815ec..5ad20665f4 100644 --- a/src/Umbraco.Core/PropertyEditors/ParameterEditorCollection.cs +++ b/src/Umbraco.Core/PropertyEditors/ParameterEditorCollection.cs @@ -1,8 +1,8 @@ using System.Linq; -using Umbraco.Core.Composing; -using Umbraco.Core.Manifest; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Manifest; -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { public class ParameterEditorCollection : BuilderCollectionBase { diff --git a/src/Umbraco.Core/PropertyEditors/ParameterEditors/ContentTypeParameterEditor.cs b/src/Umbraco.Core/PropertyEditors/ParameterEditors/ContentTypeParameterEditor.cs index 619fd89692..dd5e0f7480 100644 --- a/src/Umbraco.Core/PropertyEditors/ParameterEditors/ContentTypeParameterEditor.cs +++ b/src/Umbraco.Core/PropertyEditors/ParameterEditors/ContentTypeParameterEditor.cs @@ -1,10 +1,9 @@ using Microsoft.Extensions.Logging; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; -namespace Umbraco.Web.PropertyEditors.ParameterEditors +namespace Umbraco.Cms.Core.PropertyEditors.ParameterEditors { /// /// Represents a content type parameter editor. diff --git a/src/Umbraco.Core/PropertyEditors/ParameterEditors/MultipleContentPickerParameterEditor.cs b/src/Umbraco.Core/PropertyEditors/ParameterEditors/MultipleContentPickerParameterEditor.cs index 5110dfdc79..10019cf086 100644 --- a/src/Umbraco.Core/PropertyEditors/ParameterEditors/MultipleContentPickerParameterEditor.cs +++ b/src/Umbraco.Core/PropertyEditors/ParameterEditors/MultipleContentPickerParameterEditor.cs @@ -1,11 +1,9 @@ using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; -namespace Umbraco.Web.PropertyEditors.ParameterEditors +namespace Umbraco.Cms.Core.PropertyEditors.ParameterEditors { /// /// Represents a parameter editor of some sort. diff --git a/src/Umbraco.Core/PropertyEditors/ParameterEditors/MultipleContentTypeParameterEditor.cs b/src/Umbraco.Core/PropertyEditors/ParameterEditors/MultipleContentTypeParameterEditor.cs index ff08420cd9..d251a66f05 100644 --- a/src/Umbraco.Core/PropertyEditors/ParameterEditors/MultipleContentTypeParameterEditor.cs +++ b/src/Umbraco.Core/PropertyEditors/ParameterEditors/MultipleContentTypeParameterEditor.cs @@ -1,10 +1,9 @@ using Microsoft.Extensions.Logging; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; -namespace Umbraco.Web.PropertyEditors.ParameterEditors +namespace Umbraco.Cms.Core.PropertyEditors.ParameterEditors { [DataEditor( "contentTypeMultiple", diff --git a/src/Umbraco.Core/PropertyEditors/ParameterEditors/MultipleMediaPickerParameterEditor.cs b/src/Umbraco.Core/PropertyEditors/ParameterEditors/MultipleMediaPickerParameterEditor.cs index a2750447a8..b593994ac5 100644 --- a/src/Umbraco.Core/PropertyEditors/ParameterEditors/MultipleMediaPickerParameterEditor.cs +++ b/src/Umbraco.Core/PropertyEditors/ParameterEditors/MultipleMediaPickerParameterEditor.cs @@ -1,11 +1,9 @@ using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; -namespace Umbraco.Web.PropertyEditors.ParameterEditors +namespace Umbraco.Cms.Core.PropertyEditors.ParameterEditors { /// /// Represents a multiple media picker macro parameter editor. diff --git a/src/Umbraco.Core/PropertyEditors/ParameterEditors/MultiplePropertyGroupParameterEditor.cs b/src/Umbraco.Core/PropertyEditors/ParameterEditors/MultiplePropertyGroupParameterEditor.cs index 22571db975..2a4369cdb8 100644 --- a/src/Umbraco.Core/PropertyEditors/ParameterEditors/MultiplePropertyGroupParameterEditor.cs +++ b/src/Umbraco.Core/PropertyEditors/ParameterEditors/MultiplePropertyGroupParameterEditor.cs @@ -1,10 +1,9 @@ using Microsoft.Extensions.Logging; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; -namespace Umbraco.Web.PropertyEditors.ParameterEditors +namespace Umbraco.Cms.Core.PropertyEditors.ParameterEditors { [DataEditor( "tabPickerMultiple", diff --git a/src/Umbraco.Core/PropertyEditors/ParameterEditors/MultiplePropertyTypeParameterEditor.cs b/src/Umbraco.Core/PropertyEditors/ParameterEditors/MultiplePropertyTypeParameterEditor.cs index 251d982777..5222463964 100644 --- a/src/Umbraco.Core/PropertyEditors/ParameterEditors/MultiplePropertyTypeParameterEditor.cs +++ b/src/Umbraco.Core/PropertyEditors/ParameterEditors/MultiplePropertyTypeParameterEditor.cs @@ -1,10 +1,9 @@ using Microsoft.Extensions.Logging; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; -namespace Umbraco.Web.PropertyEditors.ParameterEditors +namespace Umbraco.Cms.Core.PropertyEditors.ParameterEditors { [DataEditor( "propertyTypePickerMultiple", diff --git a/src/Umbraco.Core/PropertyEditors/ParameterEditors/PropertyGroupParameterEditor.cs b/src/Umbraco.Core/PropertyEditors/ParameterEditors/PropertyGroupParameterEditor.cs index aabef3e1b0..7e53fa79a5 100644 --- a/src/Umbraco.Core/PropertyEditors/ParameterEditors/PropertyGroupParameterEditor.cs +++ b/src/Umbraco.Core/PropertyEditors/ParameterEditors/PropertyGroupParameterEditor.cs @@ -1,10 +1,9 @@ using Microsoft.Extensions.Logging; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; -namespace Umbraco.Web.PropertyEditors.ParameterEditors +namespace Umbraco.Cms.Core.PropertyEditors.ParameterEditors { [DataEditor( "tabPicker", diff --git a/src/Umbraco.Core/PropertyEditors/ParameterEditors/PropertyTypeParameterEditor.cs b/src/Umbraco.Core/PropertyEditors/ParameterEditors/PropertyTypeParameterEditor.cs index c3178d3138..8da3f6c610 100644 --- a/src/Umbraco.Core/PropertyEditors/ParameterEditors/PropertyTypeParameterEditor.cs +++ b/src/Umbraco.Core/PropertyEditors/ParameterEditors/PropertyTypeParameterEditor.cs @@ -1,10 +1,9 @@ using Microsoft.Extensions.Logging; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; -namespace Umbraco.Web.PropertyEditors.ParameterEditors +namespace Umbraco.Cms.Core.PropertyEditors.ParameterEditors { [DataEditor( "propertyTypePicker", diff --git a/src/Umbraco.Core/PropertyEditors/PropertyCacheLevel.cs b/src/Umbraco.Core/PropertyEditors/PropertyCacheLevel.cs index afecf70cb1..9c94008616 100644 --- a/src/Umbraco.Core/PropertyEditors/PropertyCacheLevel.cs +++ b/src/Umbraco.Core/PropertyEditors/PropertyCacheLevel.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// Specifies the level of cache for a property value. diff --git a/src/Umbraco.Core/PropertyEditors/PropertyEditorCollection.cs b/src/Umbraco.Core/PropertyEditors/PropertyEditorCollection.cs index a3c02aeb0d..e5b6e96c7b 100644 --- a/src/Umbraco.Core/PropertyEditors/PropertyEditorCollection.cs +++ b/src/Umbraco.Core/PropertyEditors/PropertyEditorCollection.cs @@ -1,8 +1,8 @@ using System.Linq; -using Umbraco.Core.Composing; -using Umbraco.Core.Manifest; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Manifest; -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { public class PropertyEditorCollection : BuilderCollectionBase { diff --git a/src/Umbraco.Core/PropertyEditors/PropertyEditorTagsExtensions.cs b/src/Umbraco.Core/PropertyEditors/PropertyEditorTagsExtensions.cs index 3b2a9dd4e2..ddd12c5003 100644 --- a/src/Umbraco.Core/PropertyEditors/PropertyEditorTagsExtensions.cs +++ b/src/Umbraco.Core/PropertyEditors/PropertyEditorTagsExtensions.cs @@ -1,4 +1,6 @@ -namespace Umbraco.Core.PropertyEditors +using Umbraco.Cms.Core.PropertyEditors; + +namespace Umbraco.Extensions { /// /// Provides extension methods for the interface to manage tags. diff --git a/src/Umbraco.Core/PropertyEditors/PropertyValueConverterBase.cs b/src/Umbraco.Core/PropertyEditors/PropertyValueConverterBase.cs index 2ec0438328..9da1df938f 100644 --- a/src/Umbraco.Core/PropertyEditors/PropertyValueConverterBase.cs +++ b/src/Umbraco.Core/PropertyEditors/PropertyValueConverterBase.cs @@ -1,12 +1,12 @@ using System; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.PublishedContent; -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// Provides a default implementation for . /// - /// + /// public abstract class PropertyValueConverterBase : IPropertyValueConverter { /// diff --git a/src/Umbraco.Core/PropertyEditors/PropertyValueConverterCollection.cs b/src/Umbraco.Core/PropertyEditors/PropertyValueConverterCollection.cs index a5e91562dc..136967e7ab 100644 --- a/src/Umbraco.Core/PropertyEditors/PropertyValueConverterCollection.cs +++ b/src/Umbraco.Core/PropertyEditors/PropertyValueConverterCollection.cs @@ -1,10 +1,10 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Reflection; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; +using Umbraco.Extensions; -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { public class PropertyValueConverterCollection : BuilderCollectionBase { diff --git a/src/Umbraco.Core/PropertyEditors/PropertyValueConverterCollectionBuilder.cs b/src/Umbraco.Core/PropertyEditors/PropertyValueConverterCollectionBuilder.cs index a64fe8c43a..f7bbca2b02 100644 --- a/src/Umbraco.Core/PropertyEditors/PropertyValueConverterCollectionBuilder.cs +++ b/src/Umbraco.Core/PropertyEditors/PropertyValueConverterCollectionBuilder.cs @@ -1,6 +1,6 @@ -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { public class PropertyValueConverterCollectionBuilder : OrderedCollectionBuilderBase { diff --git a/src/Umbraco.Core/PropertyEditors/PropertyValueLevel.cs b/src/Umbraco.Core/PropertyEditors/PropertyValueLevel.cs index 956ce03b30..583bf87f3e 100644 --- a/src/Umbraco.Core/PropertyEditors/PropertyValueLevel.cs +++ b/src/Umbraco.Core/PropertyEditors/PropertyValueLevel.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// Indicates the level of a value. diff --git a/src/Umbraco.Core/PropertyEditors/RichTextConfiguration.cs b/src/Umbraco.Core/PropertyEditors/RichTextConfiguration.cs index 341a4750f6..2d580b7590 100644 --- a/src/Umbraco.Core/PropertyEditors/RichTextConfiguration.cs +++ b/src/Umbraco.Core/PropertyEditors/RichTextConfiguration.cs @@ -1,7 +1,4 @@ -using Umbraco.Core; -using Umbraco.Core.PropertyEditors; - -namespace Umbraco.Web.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// Represents the configuration for the rich text value editor. @@ -15,7 +12,7 @@ namespace Umbraco.Web.PropertyEditors [ConfigurationField("hideLabel", "Hide Label", "boolean")] public bool HideLabel { get; set; } - [ConfigurationField(Core.Constants.DataTypes.ReservedPreValueKeys.IgnoreUserStartNodes, + [ConfigurationField(Constants.DataTypes.ReservedPreValueKeys.IgnoreUserStartNodes, "Ignore User Start Nodes", "boolean", Description = "Selecting this option allows a user to choose nodes that they normally don't have access to.")] public bool IgnoreUserStartNodes { get; set; } diff --git a/src/Umbraco.Core/PropertyEditors/SliderConfiguration.cs b/src/Umbraco.Core/PropertyEditors/SliderConfiguration.cs index dc71c2a48f..8d41873a11 100644 --- a/src/Umbraco.Core/PropertyEditors/SliderConfiguration.cs +++ b/src/Umbraco.Core/PropertyEditors/SliderConfiguration.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// Represents the configuration for the slider value editor. diff --git a/src/Umbraco.Core/PropertyEditors/TagConfiguration.cs b/src/Umbraco.Core/PropertyEditors/TagConfiguration.cs index 28e2a2e3c8..61fa80472d 100644 --- a/src/Umbraco.Core/PropertyEditors/TagConfiguration.cs +++ b/src/Umbraco.Core/PropertyEditors/TagConfiguration.cs @@ -1,6 +1,6 @@ -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// Represents the configuration for the tag value editor. diff --git a/src/Umbraco.Core/PropertyEditors/TagsPropertyEditorAttribute.cs b/src/Umbraco.Core/PropertyEditors/TagsPropertyEditorAttribute.cs index 6549f1a233..9075d9be97 100644 --- a/src/Umbraco.Core/PropertyEditors/TagsPropertyEditorAttribute.cs +++ b/src/Umbraco.Core/PropertyEditors/TagsPropertyEditorAttribute.cs @@ -1,7 +1,7 @@ using System; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// Marks property editors that support tags. diff --git a/src/Umbraco.Core/PropertyEditors/TextAreaConfiguration.cs b/src/Umbraco.Core/PropertyEditors/TextAreaConfiguration.cs index 86a4184307..86ca35ef64 100644 --- a/src/Umbraco.Core/PropertyEditors/TextAreaConfiguration.cs +++ b/src/Umbraco.Core/PropertyEditors/TextAreaConfiguration.cs @@ -1,6 +1,4 @@ -using Umbraco.Core.PropertyEditors; - -namespace Umbraco.Web.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// Represents the configuration for the textarea value editor. diff --git a/src/Umbraco.Core/PropertyEditors/TextOnlyValueEditor.cs b/src/Umbraco.Core/PropertyEditors/TextOnlyValueEditor.cs index aeac87079c..11c1fe93a5 100644 --- a/src/Umbraco.Core/PropertyEditors/TextOnlyValueEditor.cs +++ b/src/Umbraco.Core/PropertyEditors/TextOnlyValueEditor.cs @@ -1,11 +1,10 @@ using System; -using Umbraco.Core.Models; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; -namespace Umbraco.Web.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// Custom value editor which ensures that the value stored is just plain text and that diff --git a/src/Umbraco.Core/PropertyEditors/TextStringValueConverter.cs b/src/Umbraco.Core/PropertyEditors/TextStringValueConverter.cs index e373b375a5..5b9977518b 100644 --- a/src/Umbraco.Core/PropertyEditors/TextStringValueConverter.cs +++ b/src/Umbraco.Core/PropertyEditors/TextStringValueConverter.cs @@ -1,11 +1,9 @@ using System; using System.Linq; -using Umbraco.Core; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.PropertyEditors; -using Umbraco.Web.Templates; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Templates; -namespace Umbraco.Web.PropertyEditors.ValueConverters +namespace Umbraco.Cms.Core.PropertyEditors { [DefaultPropertyValueConverter] public class TextStringValueConverter : PropertyValueConverterBase diff --git a/src/Umbraco.Core/PropertyEditors/TextboxConfiguration.cs b/src/Umbraco.Core/PropertyEditors/TextboxConfiguration.cs index 641cc8e42a..fb56567bc5 100644 --- a/src/Umbraco.Core/PropertyEditors/TextboxConfiguration.cs +++ b/src/Umbraco.Core/PropertyEditors/TextboxConfiguration.cs @@ -1,6 +1,4 @@ -using Umbraco.Core.PropertyEditors; - -namespace Umbraco.Web.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// Represents the configuration for the textbox value editor. diff --git a/src/Umbraco.Core/PropertyEditors/TrueFalseConfiguration.cs b/src/Umbraco.Core/PropertyEditors/TrueFalseConfiguration.cs index 03973cfc90..ab5b1ae964 100644 --- a/src/Umbraco.Core/PropertyEditors/TrueFalseConfiguration.cs +++ b/src/Umbraco.Core/PropertyEditors/TrueFalseConfiguration.cs @@ -1,6 +1,4 @@ -using Umbraco.Core.PropertyEditors; - -namespace Umbraco.Web.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// Represents the configuration for the boolean value editor. diff --git a/src/Umbraco.Core/PropertyEditors/UserPickerConfiguration.cs b/src/Umbraco.Core/PropertyEditors/UserPickerConfiguration.cs index bf3cd197a3..3e2a48ffd6 100644 --- a/src/Umbraco.Core/PropertyEditors/UserPickerConfiguration.cs +++ b/src/Umbraco.Core/PropertyEditors/UserPickerConfiguration.cs @@ -1,7 +1,6 @@ using System.Collections.Generic; -using Umbraco.Core.PropertyEditors; -namespace Umbraco.Web.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { public class UserPickerConfiguration : ConfigurationEditor { diff --git a/src/Umbraco.Core/PropertyEditors/UserPickerPropertyEditor.cs b/src/Umbraco.Core/PropertyEditors/UserPickerPropertyEditor.cs index f22c3d94dc..963e44dab6 100644 --- a/src/Umbraco.Core/PropertyEditors/UserPickerPropertyEditor.cs +++ b/src/Umbraco.Core/PropertyEditors/UserPickerPropertyEditor.cs @@ -1,11 +1,9 @@ using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; -namespace Umbraco.Web.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { [DataEditor( Constants.PropertyEditors.Aliases.UserPicker, diff --git a/src/Umbraco.Core/PropertyEditors/Validation/ComplexEditorElementTypeValidationResult.cs b/src/Umbraco.Core/PropertyEditors/Validation/ComplexEditorElementTypeValidationResult.cs index 9c68deb7b5..ac7eb9ff61 100644 --- a/src/Umbraco.Core/PropertyEditors/Validation/ComplexEditorElementTypeValidationResult.cs +++ b/src/Umbraco.Core/PropertyEditors/Validation/ComplexEditorElementTypeValidationResult.cs @@ -2,13 +2,13 @@ using System.Collections.Generic; using System.ComponentModel.DataAnnotations; -namespace Umbraco.Web.PropertyEditors.Validation +namespace Umbraco.Cms.Core.PropertyEditors.Validation { /// /// A collection of for an element type within complex editor represented by an Element Type /// /// - /// For a more indepth explanation of how server side validation works with the angular app, see this GitHub PR: + /// For a more indepth explanation of how server side validation works with the angular app, see this GitHub PR: /// https://github.com/umbraco/Umbraco-CMS/pull/8339 /// public class ComplexEditorElementTypeValidationResult : ValidationResult diff --git a/src/Umbraco.Core/PropertyEditors/Validation/ComplexEditorPropertyTypeValidationResult.cs b/src/Umbraco.Core/PropertyEditors/Validation/ComplexEditorPropertyTypeValidationResult.cs index 3036529fb7..449ef432d8 100644 --- a/src/Umbraco.Core/PropertyEditors/Validation/ComplexEditorPropertyTypeValidationResult.cs +++ b/src/Umbraco.Core/PropertyEditors/Validation/ComplexEditorPropertyTypeValidationResult.cs @@ -3,13 +3,13 @@ using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; -namespace Umbraco.Web.PropertyEditors.Validation +namespace Umbraco.Cms.Core.PropertyEditors.Validation { /// /// A collection of for a property type within a complex editor represented by an Element Type /// /// - /// For a more indepth explanation of how server side validation works with the angular app, see this GitHub PR: + /// For a more indepth explanation of how server side validation works with the angular app, see this GitHub PR: /// https://github.com/umbraco/Umbraco-CMS/pull/8339 /// public class ComplexEditorPropertyTypeValidationResult : ValidationResult diff --git a/src/Umbraco.Core/PropertyEditors/Validation/ComplexEditorValidationResult.cs b/src/Umbraco.Core/PropertyEditors/Validation/ComplexEditorValidationResult.cs index 178e1ec1f4..225963f461 100644 --- a/src/Umbraco.Core/PropertyEditors/Validation/ComplexEditorValidationResult.cs +++ b/src/Umbraco.Core/PropertyEditors/Validation/ComplexEditorValidationResult.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.ComponentModel.DataAnnotations; -namespace Umbraco.Web.PropertyEditors.Validation +namespace Umbraco.Cms.Core.PropertyEditors.Validation { /// @@ -10,7 +10,7 @@ namespace Umbraco.Web.PropertyEditors.Validation /// /// For example, each represents validation results for a row in Nested Content. /// - /// For a more indepth explanation of how server side validation works with the angular app, see this GitHub PR: + /// For a more indepth explanation of how server side validation works with the angular app, see this GitHub PR: /// https://github.com/umbraco/Umbraco-CMS/pull/8339 /// public class ComplexEditorValidationResult : ValidationResult diff --git a/src/Umbraco.Core/PropertyEditors/Validators/DateTimeValidator.cs b/src/Umbraco.Core/PropertyEditors/Validators/DateTimeValidator.cs index e964eae448..69c004376d 100644 --- a/src/Umbraco.Core/PropertyEditors/Validators/DateTimeValidator.cs +++ b/src/Umbraco.Core/PropertyEditors/Validators/DateTimeValidator.cs @@ -1,10 +1,9 @@ using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; -using Umbraco.Core; -using Umbraco.Core.PropertyEditors; +using Umbraco.Extensions; -namespace Umbraco.Web.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors.Validators { /// /// Used to validate if the value is a valid date/time diff --git a/src/Umbraco.Core/PropertyEditors/Validators/DecimalValidator.cs b/src/Umbraco.Core/PropertyEditors/Validators/DecimalValidator.cs index f464044923..7393603f85 100644 --- a/src/Umbraco.Core/PropertyEditors/Validators/DecimalValidator.cs +++ b/src/Umbraco.Core/PropertyEditors/Validators/DecimalValidator.cs @@ -1,7 +1,8 @@ using System.Collections.Generic; using System.ComponentModel.DataAnnotations; +using Umbraco.Extensions; -namespace Umbraco.Core.PropertyEditors.Validators +namespace Umbraco.Cms.Core.PropertyEditors.Validators { /// /// A validator that validates that the value is a valid decimal diff --git a/src/Umbraco.Core/PropertyEditors/Validators/DelimitedValueValidator.cs b/src/Umbraco.Core/PropertyEditors/Validators/DelimitedValueValidator.cs index 38912091c0..749f06d43f 100644 --- a/src/Umbraco.Core/PropertyEditors/Validators/DelimitedValueValidator.cs +++ b/src/Umbraco.Core/PropertyEditors/Validators/DelimitedValueValidator.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text.RegularExpressions; -namespace Umbraco.Core.PropertyEditors.Validators +namespace Umbraco.Cms.Core.PropertyEditors.Validators { /// /// A validator that validates a delimited set of values against a common regex diff --git a/src/Umbraco.Core/PropertyEditors/Validators/EmailValidator.cs b/src/Umbraco.Core/PropertyEditors/Validators/EmailValidator.cs index 8fb6d0c31b..04bf411f6e 100644 --- a/src/Umbraco.Core/PropertyEditors/Validators/EmailValidator.cs +++ b/src/Umbraco.Core/PropertyEditors/Validators/EmailValidator.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.ComponentModel.DataAnnotations; -namespace Umbraco.Core.PropertyEditors.Validators +namespace Umbraco.Cms.Core.PropertyEditors.Validators { /// /// A validator that validates an email address diff --git a/src/Umbraco.Core/PropertyEditors/Validators/IntegerValidator.cs b/src/Umbraco.Core/PropertyEditors/Validators/IntegerValidator.cs index 5274ff484b..7ed9a7b56d 100644 --- a/src/Umbraco.Core/PropertyEditors/Validators/IntegerValidator.cs +++ b/src/Umbraco.Core/PropertyEditors/Validators/IntegerValidator.cs @@ -1,7 +1,8 @@ using System.Collections.Generic; using System.ComponentModel.DataAnnotations; +using Umbraco.Extensions; -namespace Umbraco.Core.PropertyEditors.Validators +namespace Umbraco.Cms.Core.PropertyEditors.Validators { /// /// A validator that validates that the value is a valid integer diff --git a/src/Umbraco.Core/PropertyEditors/Validators/RegexValidator.cs b/src/Umbraco.Core/PropertyEditors/Validators/RegexValidator.cs index f1e3bc73c2..ea57e66481 100644 --- a/src/Umbraco.Core/PropertyEditors/Validators/RegexValidator.cs +++ b/src/Umbraco.Core/PropertyEditors/Validators/RegexValidator.cs @@ -1,11 +1,14 @@ -using System; +// Copyright (c) Umbraco. +// See LICENSE for more details. + +using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text.RegularExpressions; -using Umbraco.Core.Composing; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; -namespace Umbraco.Core.PropertyEditors.Validators +namespace Umbraco.Cms.Core.PropertyEditors.Validators { /// /// A validator that validates that the value against a regular expression. diff --git a/src/Umbraco.Core/PropertyEditors/Validators/RequiredValidator.cs b/src/Umbraco.Core/PropertyEditors/Validators/RequiredValidator.cs index 8880ff5acf..3a7ec2b934 100644 --- a/src/Umbraco.Core/PropertyEditors/Validators/RequiredValidator.cs +++ b/src/Umbraco.Core/PropertyEditors/Validators/RequiredValidator.cs @@ -1,9 +1,9 @@ using System.Collections.Generic; using System.ComponentModel.DataAnnotations; -using Umbraco.Core.Composing; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; -namespace Umbraco.Core.PropertyEditors.Validators +namespace Umbraco.Cms.Core.PropertyEditors.Validators { /// /// A validator that validates that the value is not null or empty (if it is a string) diff --git a/src/Umbraco.Core/PropertyEditors/ValueConverters/CheckboxListValueConverter.cs b/src/Umbraco.Core/PropertyEditors/ValueConverters/CheckboxListValueConverter.cs index ee1cd2062d..c3fa110adb 100644 --- a/src/Umbraco.Core/PropertyEditors/ValueConverters/CheckboxListValueConverter.cs +++ b/src/Umbraco.Core/PropertyEditors/ValueConverters/CheckboxListValueConverter.cs @@ -1,10 +1,11 @@ using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Serialization; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Extensions; -namespace Umbraco.Core.PropertyEditors.ValueConverters +namespace Umbraco.Cms.Core.PropertyEditors.ValueConverters { [DefaultPropertyValueConverter] public class CheckboxListValueConverter : PropertyValueConverterBase diff --git a/src/Umbraco.Core/PropertyEditors/ValueConverters/ContentPickerValueConverter.cs b/src/Umbraco.Core/PropertyEditors/ValueConverters/ContentPickerValueConverter.cs index cc7aa27a4a..7a7f26ebe9 100644 --- a/src/Umbraco.Core/PropertyEditors/ValueConverters/ContentPickerValueConverter.cs +++ b/src/Umbraco.Core/PropertyEditors/ValueConverters/ContentPickerValueConverter.cs @@ -1,12 +1,11 @@ using System; using System.Collections.Generic; using System.Globalization; -using Umbraco.Core; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.PropertyEditors; -using Umbraco.Web.PublishedCache; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Extensions; -namespace Umbraco.Web.PropertyEditors.ValueConverters +namespace Umbraco.Cms.Core.PropertyEditors.ValueConverters { internal class ContentPickerValueConverter : PropertyValueConverterBase { diff --git a/src/Umbraco.Core/PropertyEditors/ValueConverters/DatePickerValueConverter.cs b/src/Umbraco.Core/PropertyEditors/ValueConverters/DatePickerValueConverter.cs index 0206528bf7..831d574d20 100644 --- a/src/Umbraco.Core/PropertyEditors/ValueConverters/DatePickerValueConverter.cs +++ b/src/Umbraco.Core/PropertyEditors/ValueConverters/DatePickerValueConverter.cs @@ -1,9 +1,9 @@ using System; -using System.Linq; using System.Xml; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Extensions; -namespace Umbraco.Core.PropertyEditors.ValueConverters +namespace Umbraco.Cms.Core.PropertyEditors.ValueConverters { [DefaultPropertyValueConverter] public class DatePickerValueConverter : PropertyValueConverterBase diff --git a/src/Umbraco.Core/PropertyEditors/ValueConverters/DecimalValueConverter.cs b/src/Umbraco.Core/PropertyEditors/ValueConverters/DecimalValueConverter.cs index 7d6e7c0ce9..e9ede82590 100644 --- a/src/Umbraco.Core/PropertyEditors/ValueConverters/DecimalValueConverter.cs +++ b/src/Umbraco.Core/PropertyEditors/ValueConverters/DecimalValueConverter.cs @@ -1,8 +1,8 @@ using System; using System.Globalization; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.PublishedContent; -namespace Umbraco.Core.PropertyEditors.ValueConverters +namespace Umbraco.Cms.Core.PropertyEditors.ValueConverters { [DefaultPropertyValueConverter] public class DecimalValueConverter : PropertyValueConverterBase diff --git a/src/Umbraco.Core/PropertyEditors/ValueConverters/EmailAddressValueConverter.cs b/src/Umbraco.Core/PropertyEditors/ValueConverters/EmailAddressValueConverter.cs index 88061a559e..668afe65bf 100644 --- a/src/Umbraco.Core/PropertyEditors/ValueConverters/EmailAddressValueConverter.cs +++ b/src/Umbraco.Core/PropertyEditors/ValueConverters/EmailAddressValueConverter.cs @@ -1,7 +1,8 @@ using System; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Extensions; -namespace Umbraco.Core.PropertyEditors.ValueConverters +namespace Umbraco.Cms.Core.PropertyEditors.ValueConverters { [DefaultPropertyValueConverter] public class EmailAddressValueConverter : PropertyValueConverterBase diff --git a/src/Umbraco.Core/PropertyEditors/ValueConverters/IntegerValueConverter.cs b/src/Umbraco.Core/PropertyEditors/ValueConverters/IntegerValueConverter.cs index ca8f23bca2..a27ef9cb49 100644 --- a/src/Umbraco.Core/PropertyEditors/ValueConverters/IntegerValueConverter.cs +++ b/src/Umbraco.Core/PropertyEditors/ValueConverters/IntegerValueConverter.cs @@ -1,7 +1,8 @@ using System; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Extensions; -namespace Umbraco.Core.PropertyEditors.ValueConverters +namespace Umbraco.Cms.Core.PropertyEditors.ValueConverters { [DefaultPropertyValueConverter] public class IntegerValueConverter : PropertyValueConverterBase diff --git a/src/Umbraco.Core/PropertyEditors/ValueConverters/LabelValueConverter.cs b/src/Umbraco.Core/PropertyEditors/ValueConverters/LabelValueConverter.cs index e706c198cf..637039faa9 100644 --- a/src/Umbraco.Core/PropertyEditors/ValueConverters/LabelValueConverter.cs +++ b/src/Umbraco.Core/PropertyEditors/ValueConverters/LabelValueConverter.cs @@ -1,8 +1,8 @@ using System; using System.Globalization; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.PublishedContent; -namespace Umbraco.Core.PropertyEditors.ValueConverters +namespace Umbraco.Cms.Core.PropertyEditors.ValueConverters { /// /// We need this property converter so that we always force the value of a label to be a string diff --git a/src/Umbraco.Core/PropertyEditors/ValueConverters/MediaPickerValueConverter.cs b/src/Umbraco.Core/PropertyEditors/ValueConverters/MediaPickerValueConverter.cs index 9a33fd56e5..ff5fed786c 100644 --- a/src/Umbraco.Core/PropertyEditors/ValueConverters/MediaPickerValueConverter.cs +++ b/src/Umbraco.Core/PropertyEditors/ValueConverters/MediaPickerValueConverter.cs @@ -2,12 +2,10 @@ using System.Collections; using System.Collections.Generic; using System.Linq; -using Umbraco.Core; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.PropertyEditors; -using Umbraco.Web.PublishedCache; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; -namespace Umbraco.Web.PropertyEditors.ValueConverters +namespace Umbraco.Cms.Core.PropertyEditors.ValueConverters { /// /// The media picker property value converter. diff --git a/src/Umbraco.Core/PropertyEditors/ValueConverters/MemberGroupPickerValueConverter.cs b/src/Umbraco.Core/PropertyEditors/ValueConverters/MemberGroupPickerValueConverter.cs index cd7f48f510..61b8a27f24 100644 --- a/src/Umbraco.Core/PropertyEditors/ValueConverters/MemberGroupPickerValueConverter.cs +++ b/src/Umbraco.Core/PropertyEditors/ValueConverters/MemberGroupPickerValueConverter.cs @@ -1,7 +1,8 @@ using System; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Extensions; -namespace Umbraco.Core.PropertyEditors.ValueConverters +namespace Umbraco.Cms.Core.PropertyEditors.ValueConverters { [DefaultPropertyValueConverter] public class MemberGroupPickerValueConverter : PropertyValueConverterBase diff --git a/src/Umbraco.Core/PropertyEditors/ValueConverters/MemberPickerValueConverter.cs b/src/Umbraco.Core/PropertyEditors/ValueConverters/MemberPickerValueConverter.cs index 87e5ebec15..cd8f203cb9 100644 --- a/src/Umbraco.Core/PropertyEditors/ValueConverters/MemberPickerValueConverter.cs +++ b/src/Umbraco.Core/PropertyEditors/ValueConverters/MemberPickerValueConverter.cs @@ -1,10 +1,10 @@ using System; -using Umbraco.Core; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.PropertyEditors; -using Umbraco.Web.PublishedCache; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Web; +using Umbraco.Extensions; -namespace Umbraco.Web.PropertyEditors.ValueConverters +namespace Umbraco.Cms.Core.PropertyEditors.ValueConverters { [DefaultPropertyValueConverter] public class MemberPickerValueConverter : PropertyValueConverterBase diff --git a/src/Umbraco.Core/PropertyEditors/ValueConverters/MultiNodeTreePickerValueConverter.cs b/src/Umbraco.Core/PropertyEditors/ValueConverters/MultiNodeTreePickerValueConverter.cs index e35205b704..4a00f20737 100644 --- a/src/Umbraco.Core/PropertyEditors/ValueConverters/MultiNodeTreePickerValueConverter.cs +++ b/src/Umbraco.Core/PropertyEditors/ValueConverters/MultiNodeTreePickerValueConverter.cs @@ -2,14 +2,13 @@ using System.Collections.Generic; using System.Globalization; using System.Linq; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.PropertyEditors.ValueConverters; -using Umbraco.Web.PublishedCache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Web; +using Umbraco.Extensions; -namespace Umbraco.Web.PropertyEditors.ValueConverters +namespace Umbraco.Cms.Core.PropertyEditors.ValueConverters { /// diff --git a/src/Umbraco.Core/PropertyEditors/ValueConverters/MultipleTextStringValueConverter.cs b/src/Umbraco.Core/PropertyEditors/ValueConverters/MultipleTextStringValueConverter.cs index 15e7ce4caf..f7dccbf74d 100644 --- a/src/Umbraco.Core/PropertyEditors/ValueConverters/MultipleTextStringValueConverter.cs +++ b/src/Umbraco.Core/PropertyEditors/ValueConverters/MultipleTextStringValueConverter.cs @@ -2,9 +2,9 @@ using System.Collections.Generic; using System.Linq; using System.Xml; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.PublishedContent; -namespace Umbraco.Core.PropertyEditors.ValueConverters +namespace Umbraco.Cms.Core.PropertyEditors.ValueConverters { [DefaultPropertyValueConverter] public class MultipleTextStringValueConverter : PropertyValueConverterBase diff --git a/src/Umbraco.Core/PropertyEditors/ValueConverters/MustBeStringValueConverter.cs b/src/Umbraco.Core/PropertyEditors/ValueConverters/MustBeStringValueConverter.cs index b9c61bb169..afefa4d156 100644 --- a/src/Umbraco.Core/PropertyEditors/ValueConverters/MustBeStringValueConverter.cs +++ b/src/Umbraco.Core/PropertyEditors/ValueConverters/MustBeStringValueConverter.cs @@ -1,8 +1,8 @@ using System; using System.Linq; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.PublishedContent; -namespace Umbraco.Core.PropertyEditors.ValueConverters +namespace Umbraco.Cms.Core.PropertyEditors.ValueConverters { /// /// Ensures that no matter what is selected in (editor), the value results in a string. diff --git a/src/Umbraco.Core/PropertyEditors/ValueConverters/RadioButtonListValueConverter.cs b/src/Umbraco.Core/PropertyEditors/ValueConverters/RadioButtonListValueConverter.cs index 61adc9a93e..f2b41dd139 100644 --- a/src/Umbraco.Core/PropertyEditors/ValueConverters/RadioButtonListValueConverter.cs +++ b/src/Umbraco.Core/PropertyEditors/ValueConverters/RadioButtonListValueConverter.cs @@ -1,7 +1,8 @@ using System; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Extensions; -namespace Umbraco.Core.PropertyEditors.ValueConverters +namespace Umbraco.Cms.Core.PropertyEditors.ValueConverters { [DefaultPropertyValueConverter] public class RadioButtonListValueConverter : PropertyValueConverterBase diff --git a/src/Umbraco.Core/PropertyEditors/ValueConverters/SimpleTinyMceValueConverter.cs b/src/Umbraco.Core/PropertyEditors/ValueConverters/SimpleTinyMceValueConverter.cs index 64ecba5c7c..db5376f52a 100644 --- a/src/Umbraco.Core/PropertyEditors/ValueConverters/SimpleTinyMceValueConverter.cs +++ b/src/Umbraco.Core/PropertyEditors/ValueConverters/SimpleTinyMceValueConverter.cs @@ -1,8 +1,8 @@ using System; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Strings; -namespace Umbraco.Core.PropertyEditors.ValueConverters +namespace Umbraco.Cms.Core.PropertyEditors.ValueConverters { /// /// Value converter for the RTE so that it always returns IHtmlString so that Html.Raw doesn't have to be used. diff --git a/src/Umbraco.Core/PropertyEditors/ValueConverters/SliderValueConverter.cs b/src/Umbraco.Core/PropertyEditors/ValueConverters/SliderValueConverter.cs index 88c1770a06..a1f3f82f43 100644 --- a/src/Umbraco.Core/PropertyEditors/ValueConverters/SliderValueConverter.cs +++ b/src/Umbraco.Core/PropertyEditors/ValueConverters/SliderValueConverter.cs @@ -1,12 +1,11 @@ using System; using System.Collections.Concurrent; -using System.Collections.Generic; -using System.Linq; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; -namespace Umbraco.Core.PropertyEditors.ValueConverters +namespace Umbraco.Cms.Core.PropertyEditors.ValueConverters { [DefaultPropertyValueConverter] public class SliderValueConverter : PropertyValueConverterBase diff --git a/src/Umbraco.Core/PropertyEditors/ValueConverters/TagsValueConverter.cs b/src/Umbraco.Core/PropertyEditors/ValueConverters/TagsValueConverter.cs index edacd500df..d9c7cbeb75 100644 --- a/src/Umbraco.Core/PropertyEditors/ValueConverters/TagsValueConverter.cs +++ b/src/Umbraco.Core/PropertyEditors/ValueConverters/TagsValueConverter.cs @@ -1,12 +1,13 @@ using System; using System.Collections.Concurrent; using System.Collections.Generic; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; -namespace Umbraco.Core.PropertyEditors.ValueConverters +namespace Umbraco.Cms.Core.PropertyEditors.ValueConverters { [DefaultPropertyValueConverter] public class TagsValueConverter : PropertyValueConverterBase diff --git a/src/Umbraco.Core/PropertyEditors/ValueConverters/UploadPropertyConverter.cs b/src/Umbraco.Core/PropertyEditors/ValueConverters/UploadPropertyConverter.cs index 407ed13ddf..0dc33c25b6 100644 --- a/src/Umbraco.Core/PropertyEditors/ValueConverters/UploadPropertyConverter.cs +++ b/src/Umbraco.Core/PropertyEditors/ValueConverters/UploadPropertyConverter.cs @@ -1,7 +1,7 @@ using System; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.PublishedContent; -namespace Umbraco.Core.PropertyEditors.ValueConverters +namespace Umbraco.Cms.Core.PropertyEditors.ValueConverters { /// /// The upload property value converter. diff --git a/src/Umbraco.Core/PropertyEditors/ValueConverters/YesNoValueConverter.cs b/src/Umbraco.Core/PropertyEditors/ValueConverters/YesNoValueConverter.cs index 153462ccf5..455ea5417d 100644 --- a/src/Umbraco.Core/PropertyEditors/ValueConverters/YesNoValueConverter.cs +++ b/src/Umbraco.Core/PropertyEditors/ValueConverters/YesNoValueConverter.cs @@ -1,7 +1,7 @@ using System; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.PublishedContent; -namespace Umbraco.Core.PropertyEditors.ValueConverters +namespace Umbraco.Cms.Core.PropertyEditors.ValueConverters { [DefaultPropertyValueConverter] public class YesNoValueConverter : PropertyValueConverterBase diff --git a/src/Umbraco.Core/PropertyEditors/ValueListConfiguration.cs b/src/Umbraco.Core/PropertyEditors/ValueListConfiguration.cs index d5195ab54a..d26b46a510 100644 --- a/src/Umbraco.Core/PropertyEditors/ValueListConfiguration.cs +++ b/src/Umbraco.Core/PropertyEditors/ValueListConfiguration.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.Runtime.Serialization; -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// Represents the ValueList editor configuration. diff --git a/src/Umbraco.Core/PropertyEditors/ValueTypes.cs b/src/Umbraco.Core/PropertyEditors/ValueTypes.cs index a8ecea5cf3..28e8fbf58e 100644 --- a/src/Umbraco.Core/PropertyEditors/ValueTypes.cs +++ b/src/Umbraco.Core/PropertyEditors/ValueTypes.cs @@ -1,10 +1,10 @@ using System; -using System.Linq; using System.Collections.Generic; +using System.Linq; using System.Reflection; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// Represents the types of the edited values. diff --git a/src/Umbraco.Core/PropertyEditors/VoidEditor.cs b/src/Umbraco.Core/PropertyEditors/VoidEditor.cs index d2e84b7952..8f0f4293cd 100644 --- a/src/Umbraco.Core/PropertyEditors/VoidEditor.cs +++ b/src/Umbraco.Core/PropertyEditors/VoidEditor.cs @@ -1,10 +1,10 @@ using Microsoft.Extensions.Logging; -using Umbraco.Core.Composing; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; -namespace Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Core.PropertyEditors { /// /// Represents a void editor. diff --git a/src/Umbraco.Core/PublishedCache/DefaultCultureAccessor.cs b/src/Umbraco.Core/PublishedCache/DefaultCultureAccessor.cs index bd78358519..50ec3c4c16 100644 --- a/src/Umbraco.Core/PublishedCache/DefaultCultureAccessor.cs +++ b/src/Umbraco.Core/PublishedCache/DefaultCultureAccessor.cs @@ -1,9 +1,8 @@ using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Services; -namespace Umbraco.Web.PublishedCache +namespace Umbraco.Cms.Core.PublishedCache { /// /// Provides the default implementation of . diff --git a/src/Umbraco.Core/PublishedCache/IDefaultCultureAccessor.cs b/src/Umbraco.Core/PublishedCache/IDefaultCultureAccessor.cs index b1c1edd4ee..58844562a7 100644 --- a/src/Umbraco.Core/PublishedCache/IDefaultCultureAccessor.cs +++ b/src/Umbraco.Core/PublishedCache/IDefaultCultureAccessor.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.PublishedCache +namespace Umbraco.Cms.Core.PublishedCache { /// /// Gives access to the default culture. diff --git a/src/Umbraco.Core/PublishedCache/IDomainCache.cs b/src/Umbraco.Core/PublishedCache/IDomainCache.cs index 3ec84c9d48..0555960dfa 100644 --- a/src/Umbraco.Core/PublishedCache/IDomainCache.cs +++ b/src/Umbraco.Core/PublishedCache/IDomainCache.cs @@ -1,9 +1,7 @@ -using System; -using System.Collections.Generic; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Web.Routing; +using System.Collections.Generic; +using Umbraco.Cms.Core.Routing; -namespace Umbraco.Web.PublishedCache +namespace Umbraco.Cms.Core.PublishedCache { public interface IDomainCache { diff --git a/src/Umbraco.Core/PublishedCache/IPublishedCache.cs b/src/Umbraco.Core/PublishedCache/IPublishedCache.cs index a97c5df3ba..7ec0314377 100644 --- a/src/Umbraco.Core/PublishedCache/IPublishedCache.cs +++ b/src/Umbraco.Core/PublishedCache/IPublishedCache.cs @@ -1,11 +1,10 @@ using System; using System.Collections.Generic; using System.Xml.XPath; -using Umbraco.Core; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Xml; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Xml; -namespace Umbraco.Web.PublishedCache +namespace Umbraco.Cms.Core.PublishedCache { /// /// Provides access to cached contents. diff --git a/src/Umbraco.Core/PublishedCache/IPublishedContentCache.cs b/src/Umbraco.Core/PublishedCache/IPublishedContentCache.cs index b4a6e3d1e0..7358611711 100644 --- a/src/Umbraco.Core/PublishedCache/IPublishedContentCache.cs +++ b/src/Umbraco.Core/PublishedCache/IPublishedContentCache.cs @@ -1,8 +1,6 @@ -using System.Globalization; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.PublishedContent; -namespace Umbraco.Web.PublishedCache +namespace Umbraco.Cms.Core.PublishedCache { public interface IPublishedContentCache : IPublishedCache { diff --git a/src/Umbraco.Core/PublishedCache/IPublishedMediaCache.cs b/src/Umbraco.Core/PublishedCache/IPublishedMediaCache.cs index 0b461882b7..1c10776d11 100644 --- a/src/Umbraco.Core/PublishedCache/IPublishedMediaCache.cs +++ b/src/Umbraco.Core/PublishedCache/IPublishedMediaCache.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.PublishedCache +namespace Umbraco.Cms.Core.PublishedCache { public interface IPublishedMediaCache : IPublishedCache { } diff --git a/src/Umbraco.Core/PublishedCache/IPublishedMemberCache.cs b/src/Umbraco.Core/PublishedCache/IPublishedMemberCache.cs index 0ea812db83..67036202dd 100644 --- a/src/Umbraco.Core/PublishedCache/IPublishedMemberCache.cs +++ b/src/Umbraco.Core/PublishedCache/IPublishedMemberCache.cs @@ -1,8 +1,8 @@ using System.Xml.XPath; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; -namespace Umbraco.Web.PublishedCache +namespace Umbraco.Cms.Core.PublishedCache { public interface IPublishedMemberCache : IXPathNavigable { diff --git a/src/Umbraco.Core/PublishedCache/IPublishedSnapshot.cs b/src/Umbraco.Core/PublishedCache/IPublishedSnapshot.cs index e823e09eae..bff2a3b838 100644 --- a/src/Umbraco.Core/PublishedCache/IPublishedSnapshot.cs +++ b/src/Umbraco.Core/PublishedCache/IPublishedSnapshot.cs @@ -1,7 +1,7 @@ using System; -using Umbraco.Core.Cache; +using Umbraco.Cms.Core.Cache; -namespace Umbraco.Web.PublishedCache +namespace Umbraco.Cms.Core.PublishedCache { /// /// Specifies a published snapshot. diff --git a/src/Umbraco.Core/PublishedCache/IPublishedSnapshotAccessor.cs b/src/Umbraco.Core/PublishedCache/IPublishedSnapshotAccessor.cs index 775de214ec..500507988c 100644 --- a/src/Umbraco.Core/PublishedCache/IPublishedSnapshotAccessor.cs +++ b/src/Umbraco.Core/PublishedCache/IPublishedSnapshotAccessor.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.PublishedCache +namespace Umbraco.Cms.Core.PublishedCache { /// /// Provides access to the "current" . diff --git a/src/Umbraco.Core/PublishedCache/IPublishedSnapshotService.cs b/src/Umbraco.Core/PublishedCache/IPublishedSnapshotService.cs index 7307ba97f9..d1e113d16c 100644 --- a/src/Umbraco.Core/PublishedCache/IPublishedSnapshotService.cs +++ b/src/Umbraco.Core/PublishedCache/IPublishedSnapshotService.cs @@ -1,9 +1,9 @@ using System; using System.Collections.Generic; using System.Threading.Tasks; -using Umbraco.Web.Cache; +using Umbraco.Cms.Core.Cache; -namespace Umbraco.Web.PublishedCache +namespace Umbraco.Cms.Core.PublishedCache { /// diff --git a/src/Umbraco.Core/PublishedCache/IPublishedSnapshotStatus.cs b/src/Umbraco.Core/PublishedCache/IPublishedSnapshotStatus.cs index 0f88bd4085..5695f03377 100644 --- a/src/Umbraco.Core/PublishedCache/IPublishedSnapshotStatus.cs +++ b/src/Umbraco.Core/PublishedCache/IPublishedSnapshotStatus.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.PublishedCache +namespace Umbraco.Cms.Core.PublishedCache { /// /// Returns the currents status for nucache diff --git a/src/Umbraco.Core/PublishedCache/ITagQuery.cs b/src/Umbraco.Core/PublishedCache/ITagQuery.cs index 1b96ea330c..4b9134bdf2 100644 --- a/src/Umbraco.Core/PublishedCache/ITagQuery.cs +++ b/src/Umbraco.Core/PublishedCache/ITagQuery.cs @@ -1,8 +1,8 @@ using System.Collections.Generic; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Web.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; -namespace Umbraco.Web +namespace Umbraco.Cms.Core.PublishedCache { public interface ITagQuery { diff --git a/src/Umbraco.Core/PublishedCache/PublishedCacheBase.cs b/src/Umbraco.Core/PublishedCache/PublishedCacheBase.cs index 3bb0f3db1a..e9e5177c17 100644 --- a/src/Umbraco.Core/PublishedCache/PublishedCacheBase.cs +++ b/src/Umbraco.Core/PublishedCache/PublishedCacheBase.cs @@ -2,11 +2,11 @@ using System.Collections.Generic; using System.Linq; using System.Xml.XPath; -using Umbraco.Core; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Xml; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Xml; +using Umbraco.Extensions; -namespace Umbraco.Web.PublishedCache +namespace Umbraco.Cms.Core.PublishedCache { public abstract class PublishedCacheBase : IPublishedCache { diff --git a/src/Umbraco.Core/PublishedCache/PublishedElement.cs b/src/Umbraco.Core/PublishedCache/PublishedElement.cs index b7c8f77bb7..92e988fcca 100644 --- a/src/Umbraco.Core/PublishedCache/PublishedElement.cs +++ b/src/Umbraco.Core/PublishedCache/PublishedElement.cs @@ -1,10 +1,10 @@ using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.PropertyEditors; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PropertyEditors; -namespace Umbraco.Web.PublishedCache +namespace Umbraco.Cms.Core.PublishedCache { // notes: // a published element does NOT manage any tree-like elements, neither the diff --git a/src/Umbraco.Core/PublishedCache/PublishedElementPropertyBase.cs b/src/Umbraco.Core/PublishedCache/PublishedElementPropertyBase.cs index ef62a3254d..0632e50b88 100644 --- a/src/Umbraco.Core/PublishedCache/PublishedElementPropertyBase.cs +++ b/src/Umbraco.Core/PublishedCache/PublishedElementPropertyBase.cs @@ -1,9 +1,9 @@ using System; -using Umbraco.Core.Cache; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.PropertyEditors; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PropertyEditors; -namespace Umbraco.Web.PublishedCache +namespace Umbraco.Cms.Core.PublishedCache { internal class PublishedElementPropertyBase : PublishedPropertyBase { diff --git a/src/Umbraco.Core/PublishedCache/PublishedMember.cs b/src/Umbraco.Core/PublishedCache/PublishedMember.cs index bd84e4a9d2..f5926cf639 100644 --- a/src/Umbraco.Core/PublishedCache/PublishedMember.cs +++ b/src/Umbraco.Core/PublishedCache/PublishedMember.cs @@ -1,14 +1,13 @@ using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Services; -using Umbraco.Web.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; -namespace Umbraco.Web.PublishedCache +namespace Umbraco.Cms.Core.PublishedCache { /// /// Exposes a member object as IPublishedContent diff --git a/src/Umbraco.Core/PublishedCache/UmbracoContextPublishedSnapshotAccessor.cs b/src/Umbraco.Core/PublishedCache/UmbracoContextPublishedSnapshotAccessor.cs index 874da1f3aa..4a8c9e6346 100644 --- a/src/Umbraco.Core/PublishedCache/UmbracoContextPublishedSnapshotAccessor.cs +++ b/src/Umbraco.Core/PublishedCache/UmbracoContextPublishedSnapshotAccessor.cs @@ -1,5 +1,7 @@ using System; -namespace Umbraco.Web.PublishedCache +using Umbraco.Cms.Core.Web; + +namespace Umbraco.Cms.Core.PublishedCache { // TODO: This is a mess. This is a circular reference: // IPublishedSnapshotAccessor -> PublishedSnapshotService -> UmbracoContext -> PublishedSnapshotService -> IPublishedSnapshotAccessor diff --git a/src/Umbraco.Core/ReadLock.cs b/src/Umbraco.Core/ReadLock.cs index 9d3ef22168..67aeb7062a 100644 --- a/src/Umbraco.Core/ReadLock.cs +++ b/src/Umbraco.Core/ReadLock.cs @@ -1,10 +1,7 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; using System.Threading; -namespace Umbraco.Core +namespace Umbraco.Cms.Core { /// /// Provides a convenience methodology for implementing locked access to resources. diff --git a/src/Umbraco.Core/ReflectionUtilities.cs b/src/Umbraco.Core/ReflectionUtilities.cs index b3fd8c1b59..01f373387f 100644 --- a/src/Umbraco.Core/ReflectionUtilities.cs +++ b/src/Umbraco.Core/ReflectionUtilities.cs @@ -4,7 +4,7 @@ using System.Linq; using System.Reflection; using System.Reflection.Emit; -namespace Umbraco.Core +namespace Umbraco.Cms.Core { /// /// Provides utilities to simplify reflection. diff --git a/src/Umbraco.Core/Routing/AliasUrlProvider.cs b/src/Umbraco.Core/Routing/AliasUrlProvider.cs index 65e094690e..0eb7eea0a2 100644 --- a/src/Umbraco.Core/Routing/AliasUrlProvider.cs +++ b/src/Umbraco.Core/Routing/AliasUrlProvider.cs @@ -2,13 +2,12 @@ using System; using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Configuration.UmbracoSettings; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Web; +using Umbraco.Extensions; -namespace Umbraco.Web.Routing +namespace Umbraco.Cms.Core.Routing { /// /// Provides URLs using the umbracoUrlAlias property. diff --git a/src/Umbraco.Core/Routing/ContentFinderByIdPath.cs b/src/Umbraco.Core/Routing/ContentFinderByIdPath.cs index 500bd65f82..a64d59261a 100644 --- a/src/Umbraco.Core/Routing/ContentFinderByIdPath.cs +++ b/src/Umbraco.Core/Routing/ContentFinderByIdPath.cs @@ -1,11 +1,10 @@ -using System.Globalization; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Web; -namespace Umbraco.Web.Routing +namespace Umbraco.Cms.Core.Routing { /// /// Provides an implementation of that handles page identifiers. diff --git a/src/Umbraco.Core/Routing/ContentFinderByPageIdQuery.cs b/src/Umbraco.Core/Routing/ContentFinderByPageIdQuery.cs index 15698f9134..d0712905c7 100644 --- a/src/Umbraco.Core/Routing/ContentFinderByPageIdQuery.cs +++ b/src/Umbraco.Core/Routing/ContentFinderByPageIdQuery.cs @@ -1,7 +1,8 @@ -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Web; -namespace Umbraco.Web.Routing +namespace Umbraco.Cms.Core.Routing { /// /// This looks up a document by checking for the umbPageId of a request/query string diff --git a/src/Umbraco.Core/Routing/ContentFinderByRedirectUrl.cs b/src/Umbraco.Core/Routing/ContentFinderByRedirectUrl.cs index e3c5b28a2a..93448c02cf 100644 --- a/src/Umbraco.Core/Routing/ContentFinderByRedirectUrl.cs +++ b/src/Umbraco.Core/Routing/ContentFinderByRedirectUrl.cs @@ -1,11 +1,12 @@ using System.Collections.Generic; using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Web; +using Umbraco.Extensions; -namespace Umbraco.Web.Routing +namespace Umbraco.Cms.Core.Routing { /// /// Provides an implementation of that handles page URL rewrites diff --git a/src/Umbraco.Core/Routing/ContentFinderByUrl.cs b/src/Umbraco.Core/Routing/ContentFinderByUrl.cs index c20cf9fd85..4f08e5aa49 100644 --- a/src/Umbraco.Core/Routing/ContentFinderByUrl.cs +++ b/src/Umbraco.Core/Routing/ContentFinderByUrl.cs @@ -1,8 +1,8 @@ using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Web; -namespace Umbraco.Web.Routing +namespace Umbraco.Cms.Core.Routing { /// /// Provides an implementation of that handles page nice URLs. diff --git a/src/Umbraco.Core/Routing/ContentFinderByUrlAlias.cs b/src/Umbraco.Core/Routing/ContentFinderByUrlAlias.cs index 4745ea8cd3..8a48625cfe 100644 --- a/src/Umbraco.Core/Routing/ContentFinderByUrlAlias.cs +++ b/src/Umbraco.Core/Routing/ContentFinderByUrlAlias.cs @@ -1,13 +1,12 @@ using System; -using System.Text; using System.Linq; using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Xml; -using Umbraco.Web.PublishedCache; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Web; +using Umbraco.Extensions; -namespace Umbraco.Web.Routing +namespace Umbraco.Cms.Core.Routing { /// /// Provides an implementation of that handles page aliases. diff --git a/src/Umbraco.Core/Routing/ContentFinderByUrlAndTemplate.cs b/src/Umbraco.Core/Routing/ContentFinderByUrlAndTemplate.cs index 2e69446d68..2e5515fef2 100644 --- a/src/Umbraco.Core/Routing/ContentFinderByUrlAndTemplate.cs +++ b/src/Umbraco.Core/Routing/ContentFinderByUrlAndTemplate.cs @@ -1,12 +1,13 @@ using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Web; +using Umbraco.Extensions; -namespace Umbraco.Web.Routing +namespace Umbraco.Cms.Core.Routing { /// /// Provides an implementation of that handles page nice URLs and a template. diff --git a/src/Umbraco.Core/Routing/ContentFinderCollection.cs b/src/Umbraco.Core/Routing/ContentFinderCollection.cs index 9eca0d5d72..d63c269f50 100644 --- a/src/Umbraco.Core/Routing/ContentFinderCollection.cs +++ b/src/Umbraco.Core/Routing/ContentFinderCollection.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Web.Routing +namespace Umbraco.Cms.Core.Routing { public class ContentFinderCollection : BuilderCollectionBase { diff --git a/src/Umbraco.Core/Routing/ContentFinderCollectionBuilder.cs b/src/Umbraco.Core/Routing/ContentFinderCollectionBuilder.cs index 401a7daf43..d471acf60c 100644 --- a/src/Umbraco.Core/Routing/ContentFinderCollectionBuilder.cs +++ b/src/Umbraco.Core/Routing/ContentFinderCollectionBuilder.cs @@ -1,6 +1,6 @@ -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Web.Routing +namespace Umbraco.Cms.Core.Routing { public class ContentFinderCollectionBuilder : OrderedCollectionBuilderBase { diff --git a/src/Umbraco.Core/Routing/CreatingRequestNotification.cs b/src/Umbraco.Core/Routing/CreatingRequestNotification.cs index 859ccd24b0..7b7122b332 100644 --- a/src/Umbraco.Core/Routing/CreatingRequestNotification.cs +++ b/src/Umbraco.Core/Routing/CreatingRequestNotification.cs @@ -1,7 +1,7 @@ using System; -using Umbraco.Core.Events; +using Umbraco.Cms.Core.Events; -namespace Umbraco.Web.Routing +namespace Umbraco.Cms.Core.Routing { /// /// Used for notifying when an Umbraco request is being created diff --git a/src/Umbraco.Core/Routing/DefaultMediaUrlProvider.cs b/src/Umbraco.Core/Routing/DefaultMediaUrlProvider.cs index e489b764c3..821a5c9013 100644 --- a/src/Umbraco.Core/Routing/DefaultMediaUrlProvider.cs +++ b/src/Umbraco.Core/Routing/DefaultMediaUrlProvider.cs @@ -1,8 +1,8 @@ using System; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.PropertyEditors; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PropertyEditors; -namespace Umbraco.Web.Routing +namespace Umbraco.Cms.Core.Routing { /// /// Default media URL provider. diff --git a/src/Umbraco.Core/Routing/DefaultUrlProvider.cs b/src/Umbraco.Core/Routing/DefaultUrlProvider.cs index d739f851ad..97c7deec9c 100644 --- a/src/Umbraco.Core/Routing/DefaultUrlProvider.cs +++ b/src/Umbraco.Core/Routing/DefaultUrlProvider.cs @@ -1,11 +1,12 @@ using System; using System.Collections.Generic; -using Microsoft.Extensions.Options; using Microsoft.Extensions.Logging; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Models.PublishedContent; +using Microsoft.Extensions.Options; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Web; -namespace Umbraco.Web.Routing +namespace Umbraco.Cms.Core.Routing { /// /// Provides urls. diff --git a/src/Umbraco.Core/Routing/Domain.cs b/src/Umbraco.Core/Routing/Domain.cs index 7d1808ef97..cf09687dae 100644 --- a/src/Umbraco.Core/Routing/Domain.cs +++ b/src/Umbraco.Core/Routing/Domain.cs @@ -1,6 +1,4 @@ -using System.Globalization; - -namespace Umbraco.Web.Routing +namespace Umbraco.Cms.Core.Routing { /// /// Represents a published snapshot domain. diff --git a/src/Umbraco.Core/Routing/DomainAndUri.cs b/src/Umbraco.Core/Routing/DomainAndUri.cs index 46dc085998..751c4ead58 100644 --- a/src/Umbraco.Core/Routing/DomainAndUri.cs +++ b/src/Umbraco.Core/Routing/DomainAndUri.cs @@ -1,7 +1,7 @@ using System; -using Umbraco.Core; +using Umbraco.Extensions; -namespace Umbraco.Web.Routing +namespace Umbraco.Cms.Core.Routing { /// /// Represents a published snapshot domain with its normalized uri. diff --git a/src/Umbraco.Core/Routing/DomainUtilities.cs b/src/Umbraco.Core/Routing/DomainUtilities.cs index 0d14b26396..a6cd90a3c2 100644 --- a/src/Umbraco.Core/Routing/DomainUtilities.cs +++ b/src/Umbraco.Core/Routing/DomainUtilities.cs @@ -1,10 +1,11 @@ using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core; -using Umbraco.Web.PublishedCache; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Web; +using Umbraco.Extensions; -namespace Umbraco.Web.Routing +namespace Umbraco.Cms.Core.Routing { /// /// Provides utilities to handle domains. diff --git a/src/Umbraco.Core/Routing/IContentFinder.cs b/src/Umbraco.Core/Routing/IContentFinder.cs index 57575b3cf0..48a70d86e8 100644 --- a/src/Umbraco.Core/Routing/IContentFinder.cs +++ b/src/Umbraco.Core/Routing/IContentFinder.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.Routing +namespace Umbraco.Cms.Core.Routing { /// /// Provides a method to try to find and assign an Umbraco document to a PublishedRequest. diff --git a/src/Umbraco.Core/Routing/IContentLastChanceFinder.cs b/src/Umbraco.Core/Routing/IContentLastChanceFinder.cs index b1ff47bddb..19e5f80246 100644 --- a/src/Umbraco.Core/Routing/IContentLastChanceFinder.cs +++ b/src/Umbraco.Core/Routing/IContentLastChanceFinder.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.Routing +namespace Umbraco.Cms.Core.Routing { /// /// Provides a method to try to find and assign an Umbraco document to a PublishedRequest diff --git a/src/Umbraco.Core/Routing/IMediaUrlProvider.cs b/src/Umbraco.Core/Routing/IMediaUrlProvider.cs index 6da917fe25..918c7362f3 100644 --- a/src/Umbraco.Core/Routing/IMediaUrlProvider.cs +++ b/src/Umbraco.Core/Routing/IMediaUrlProvider.cs @@ -1,8 +1,7 @@ using System; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.PublishedContent; - -namespace Umbraco.Web.Routing +namespace Umbraco.Cms.Core.Routing { /// /// Provides media URL. diff --git a/src/Umbraco.Core/Routing/IPublishedRequest.cs b/src/Umbraco.Core/Routing/IPublishedRequest.cs index 58523d12e4..17b836779e 100644 --- a/src/Umbraco.Core/Routing/IPublishedRequest.cs +++ b/src/Umbraco.Core/Routing/IPublishedRequest.cs @@ -1,10 +1,9 @@ using System; using System.Collections.Generic; -using System.Globalization; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; -namespace Umbraco.Web.Routing +namespace Umbraco.Cms.Core.Routing { /// /// The result of Umbraco routing built with the diff --git a/src/Umbraco.Core/Routing/IPublishedRequestBuilder.cs b/src/Umbraco.Core/Routing/IPublishedRequestBuilder.cs index bd5b5625a3..3c6f614d60 100644 --- a/src/Umbraco.Core/Routing/IPublishedRequestBuilder.cs +++ b/src/Umbraco.Core/Routing/IPublishedRequestBuilder.cs @@ -2,10 +2,10 @@ using System; using System.Collections.Generic; using System.Globalization; using System.Net; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; -namespace Umbraco.Web.Routing +namespace Umbraco.Cms.Core.Routing { /// /// Used by to route inbound requests to Umbraco content diff --git a/src/Umbraco.Core/Routing/IPublishedRouter.cs b/src/Umbraco.Core/Routing/IPublishedRouter.cs index b4c35c0e4d..39bc94cda1 100644 --- a/src/Umbraco.Core/Routing/IPublishedRouter.cs +++ b/src/Umbraco.Core/Routing/IPublishedRouter.cs @@ -1,7 +1,7 @@ using System; using System.Threading.Tasks; -namespace Umbraco.Web.Routing +namespace Umbraco.Cms.Core.Routing { /// /// Routes requests. diff --git a/src/Umbraco.Core/Routing/IPublishedUrlProvider.cs b/src/Umbraco.Core/Routing/IPublishedUrlProvider.cs index 45faf76772..9b54b71092 100644 --- a/src/Umbraco.Core/Routing/IPublishedUrlProvider.cs +++ b/src/Umbraco.Core/Routing/IPublishedUrlProvider.cs @@ -1,9 +1,8 @@ using System; using System.Collections.Generic; -using Umbraco.Core; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.PublishedContent; -namespace Umbraco.Web.Routing +namespace Umbraco.Cms.Core.Routing { public interface IPublishedUrlProvider { diff --git a/src/Umbraco.Core/Routing/ISiteDomainHelper.cs b/src/Umbraco.Core/Routing/ISiteDomainHelper.cs index a56e414d9b..86a8e584b3 100644 --- a/src/Umbraco.Core/Routing/ISiteDomainHelper.cs +++ b/src/Umbraco.Core/Routing/ISiteDomainHelper.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; -namespace Umbraco.Web.Routing +namespace Umbraco.Cms.Core.Routing { /// /// Provides utilities to handle site domains. diff --git a/src/Umbraco.Core/Routing/IUrlProvider.cs b/src/Umbraco.Core/Routing/IUrlProvider.cs index 8fa96c7a2d..257e471c05 100644 --- a/src/Umbraco.Core/Routing/IUrlProvider.cs +++ b/src/Umbraco.Core/Routing/IUrlProvider.cs @@ -1,8 +1,8 @@ using System; using System.Collections.Generic; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.PublishedContent; -namespace Umbraco.Web.Routing +namespace Umbraco.Cms.Core.Routing { /// /// Provides URLs. diff --git a/src/Umbraco.Core/Routing/MediaUrlProviderCollection.cs b/src/Umbraco.Core/Routing/MediaUrlProviderCollection.cs index eef0cbd3bc..0ac0ae265e 100644 --- a/src/Umbraco.Core/Routing/MediaUrlProviderCollection.cs +++ b/src/Umbraco.Core/Routing/MediaUrlProviderCollection.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Web.Routing +namespace Umbraco.Cms.Core.Routing { public class MediaUrlProviderCollection : BuilderCollectionBase { diff --git a/src/Umbraco.Core/Routing/MediaUrlProviderCollectionBuilder.cs b/src/Umbraco.Core/Routing/MediaUrlProviderCollectionBuilder.cs index 7bfc56ed0d..d778540e31 100644 --- a/src/Umbraco.Core/Routing/MediaUrlProviderCollectionBuilder.cs +++ b/src/Umbraco.Core/Routing/MediaUrlProviderCollectionBuilder.cs @@ -1,6 +1,6 @@ -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Web.Routing +namespace Umbraco.Cms.Core.Routing { public class MediaUrlProviderCollectionBuilder : OrderedCollectionBuilderBase { diff --git a/src/Umbraco.Core/Routing/PublishedRequest.cs b/src/Umbraco.Core/Routing/PublishedRequest.cs index 7a3d44149d..5667cb93e0 100644 --- a/src/Umbraco.Core/Routing/PublishedRequest.cs +++ b/src/Umbraco.Core/Routing/PublishedRequest.cs @@ -1,9 +1,9 @@ using System; using System.Collections.Generic; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; -namespace Umbraco.Web.Routing +namespace Umbraco.Cms.Core.Routing { public class PublishedRequest : IPublishedRequest diff --git a/src/Umbraco.Core/Routing/PublishedRequestBuilder.cs b/src/Umbraco.Core/Routing/PublishedRequestBuilder.cs index 606031564b..374412071c 100644 --- a/src/Umbraco.Core/Routing/PublishedRequestBuilder.cs +++ b/src/Umbraco.Core/Routing/PublishedRequestBuilder.cs @@ -1,14 +1,13 @@ using System; using System.Collections.Generic; -using System.Globalization; using System.Linq; using System.Net; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; -namespace Umbraco.Web.Routing +namespace Umbraco.Cms.Core.Routing { public class PublishedRequestBuilder : IPublishedRequestBuilder { diff --git a/src/Umbraco.Core/Routing/PublishedRequestExtensions.cs b/src/Umbraco.Core/Routing/PublishedRequestExtensions.cs index 2a4e4323f0..399347acb0 100644 --- a/src/Umbraco.Core/Routing/PublishedRequestExtensions.cs +++ b/src/Umbraco.Core/Routing/PublishedRequestExtensions.cs @@ -1,6 +1,6 @@ using System.Net; -namespace Umbraco.Web.Routing +namespace Umbraco.Cms.Core.Routing { public static class PublishedRequestExtensions diff --git a/src/Umbraco.Core/Routing/PublishedRequestOld.cs b/src/Umbraco.Core/Routing/PublishedRequestOld.cs index c851d4ebb6..7ee5cc35f2 100644 --- a/src/Umbraco.Core/Routing/PublishedRequestOld.cs +++ b/src/Umbraco.Core/Routing/PublishedRequestOld.cs @@ -3,11 +3,12 @@ using System.Collections.Generic; using System.Globalization; using System.Threading; using Microsoft.Extensions.Options; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Web; -namespace Umbraco.Web.Routing +namespace Umbraco.Cms.Core.Routing { // TODO: Kill this, but we need to port all of it's functionality public class PublishedRequestOld // : IPublishedRequest diff --git a/src/Umbraco.Core/Routing/PublishedRouter.cs b/src/Umbraco.Core/Routing/PublishedRouter.cs index 4e0cda4041..c138232ef5 100644 --- a/src/Umbraco.Core/Routing/PublishedRouter.cs +++ b/src/Umbraco.Core/Routing/PublishedRouter.cs @@ -2,21 +2,21 @@ using System; using System.Globalization; using System.IO; using System.Linq; -using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Events; -using Umbraco.Core.Logging; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Services; -using Umbraco.Web.PublishedCache; -using Umbraco.Web.Security; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Web; +using Umbraco.Extensions; -namespace Umbraco.Web.Routing +namespace Umbraco.Cms.Core.Routing { /// diff --git a/src/Umbraco.Core/Routing/RouteDirection.cs b/src/Umbraco.Core/Routing/RouteDirection.cs index 1d811b06e3..33dad7b081 100644 --- a/src/Umbraco.Core/Routing/RouteDirection.cs +++ b/src/Umbraco.Core/Routing/RouteDirection.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.Routing +namespace Umbraco.Cms.Core.Routing { /// /// The direction of a route diff --git a/src/Umbraco.Core/Routing/RouteRequestOptions.cs b/src/Umbraco.Core/Routing/RouteRequestOptions.cs index 91a343e2f0..6f987f072f 100644 --- a/src/Umbraco.Core/Routing/RouteRequestOptions.cs +++ b/src/Umbraco.Core/Routing/RouteRequestOptions.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Web.Routing +namespace Umbraco.Cms.Core.Routing { /// /// Options for routing an Umbraco request diff --git a/src/Umbraco.Core/Routing/RoutingRequestNotification.cs b/src/Umbraco.Core/Routing/RoutingRequestNotification.cs index dbf1cbc15b..7104274e39 100644 --- a/src/Umbraco.Core/Routing/RoutingRequestNotification.cs +++ b/src/Umbraco.Core/Routing/RoutingRequestNotification.cs @@ -1,6 +1,6 @@ -using Umbraco.Core.Events; +using Umbraco.Cms.Core.Events; -namespace Umbraco.Web.Routing +namespace Umbraco.Cms.Core.Routing { /// /// Used for notifying when an Umbraco request is being built diff --git a/src/Umbraco.Core/Routing/SiteDomainHelper.cs b/src/Umbraco.Core/Routing/SiteDomainHelper.cs index bf43514f4a..5b475f72e8 100644 --- a/src/Umbraco.Core/Routing/SiteDomainHelper.cs +++ b/src/Umbraco.Core/Routing/SiteDomainHelper.cs @@ -1,11 +1,11 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Threading; using System.Text.RegularExpressions; -using Umbraco.Core; +using System.Threading; +using Umbraco.Extensions; -namespace Umbraco.Web.Routing +namespace Umbraco.Cms.Core.Routing { /// /// Provides utilities to handle site domains. diff --git a/src/Umbraco.Core/Routing/UmbracoRequestPaths.cs b/src/Umbraco.Core/Routing/UmbracoRequestPaths.cs index 8e8541cb2c..084b9b47e3 100644 --- a/src/Umbraco.Core/Routing/UmbracoRequestPaths.cs +++ b/src/Umbraco.Core/Routing/UmbracoRequestPaths.cs @@ -3,11 +3,12 @@ using System.Collections.Generic; using System.IO; using System.Linq; using Microsoft.Extensions.Options; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Extensions; -namespace Umbraco.Core.Routing +namespace Umbraco.Cms.Core.Routing { /// /// Utility for checking paths diff --git a/src/Umbraco.Core/Routing/UmbracoRouteResult.cs b/src/Umbraco.Core/Routing/UmbracoRouteResult.cs index 9f42f372ac..d41c7ad7c3 100644 --- a/src/Umbraco.Core/Routing/UmbracoRouteResult.cs +++ b/src/Umbraco.Core/Routing/UmbracoRouteResult.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.Routing +namespace Umbraco.Cms.Core.Routing { public enum UmbracoRouteResult { diff --git a/src/Umbraco.Core/Routing/UriUtility.cs b/src/Umbraco.Core/Routing/UriUtility.cs index 43a36db101..4d349021c4 100644 --- a/src/Umbraco.Core/Routing/UriUtility.cs +++ b/src/Umbraco.Core/Routing/UriUtility.cs @@ -1,12 +1,10 @@ using System; using System.Text; -using Umbraco.Core; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Configuration.UmbracoSettings; -using Umbraco.Core.Hosting; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Extensions; -namespace Umbraco.Web +namespace Umbraco.Cms.Core.Routing { public sealed class UriUtility { diff --git a/src/Umbraco.Core/Routing/UrlInfo.cs b/src/Umbraco.Core/Routing/UrlInfo.cs index 59145d19ec..9165d795cd 100644 --- a/src/Umbraco.Core/Routing/UrlInfo.cs +++ b/src/Umbraco.Core/Routing/UrlInfo.cs @@ -1,7 +1,7 @@ using System; using System.Runtime.Serialization; -namespace Umbraco.Web.Routing +namespace Umbraco.Cms.Core.Routing { /// /// Represents infos for a URL. @@ -51,7 +51,7 @@ namespace Umbraco.Web.Routing public string Text { get; } /// - /// Checks equality + /// Checks equality /// /// /// diff --git a/src/Umbraco.Core/Routing/UrlProvider.cs b/src/Umbraco.Core/Routing/UrlProvider.cs index 542d1a6ea3..c3f294fbdb 100644 --- a/src/Umbraco.Core/Routing/UrlProvider.cs +++ b/src/Umbraco.Core/Routing/UrlProvider.cs @@ -2,13 +2,13 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Web; +using Umbraco.Extensions; -namespace Umbraco.Web.Routing +namespace Umbraco.Cms.Core.Routing { - /// /// Provides URLs. /// diff --git a/src/Umbraco.Core/Routing/UrlProviderCollection.cs b/src/Umbraco.Core/Routing/UrlProviderCollection.cs index 7e08c37f06..4a383f82bf 100644 --- a/src/Umbraco.Core/Routing/UrlProviderCollection.cs +++ b/src/Umbraco.Core/Routing/UrlProviderCollection.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Web.Routing +namespace Umbraco.Cms.Core.Routing { public class UrlProviderCollection : BuilderCollectionBase { diff --git a/src/Umbraco.Core/Routing/UrlProviderCollectionBuilder.cs b/src/Umbraco.Core/Routing/UrlProviderCollectionBuilder.cs index 06f2728f4c..ca6f703c8b 100644 --- a/src/Umbraco.Core/Routing/UrlProviderCollectionBuilder.cs +++ b/src/Umbraco.Core/Routing/UrlProviderCollectionBuilder.cs @@ -1,6 +1,6 @@ -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Web.Routing +namespace Umbraco.Cms.Core.Routing { public class UrlProviderCollectionBuilder : OrderedCollectionBuilderBase { diff --git a/src/Umbraco.Core/Routing/UrlProviderExtensions.cs b/src/Umbraco.Core/Routing/UrlProviderExtensions.cs index 698b9ab526..80f17e3c12 100644 --- a/src/Umbraco.Core/Routing/UrlProviderExtensions.cs +++ b/src/Umbraco.Core/Routing/UrlProviderExtensions.cs @@ -3,12 +3,14 @@ using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Services; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Web; -namespace Umbraco.Web.Routing +namespace Umbraco.Extensions { public static class UrlProviderExtensions { diff --git a/src/Umbraco.Core/Routing/WebPath.cs b/src/Umbraco.Core/Routing/WebPath.cs index 0c9ab52e44..503cbb27fd 100644 --- a/src/Umbraco.Core/Routing/WebPath.cs +++ b/src/Umbraco.Core/Routing/WebPath.cs @@ -1,7 +1,8 @@ using System; using System.Linq; +using Umbraco.Extensions; -namespace Umbraco.Core.Routing +namespace Umbraco.Cms.Core.Routing { public class WebPath { diff --git a/src/Umbraco.Core/Runtime/AppPluginsManifestWatcherNotificationHandler.cs b/src/Umbraco.Core/Runtime/AppPluginsManifestWatcherNotificationHandler.cs index 2b1fa3d0cc..0b46dc0afd 100644 --- a/src/Umbraco.Core/Runtime/AppPluginsManifestWatcherNotificationHandler.cs +++ b/src/Umbraco.Core/Runtime/AppPluginsManifestWatcherNotificationHandler.cs @@ -2,11 +2,11 @@ using System; using System.IO; using System.Threading; using System.Threading.Tasks; -using Umbraco.Core.Events; -using Umbraco.Core.Hosting; -using Umbraco.Core.Manifest; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Manifest; -namespace Umbraco.Core.Runtime +namespace Umbraco.Cms.Core.Runtime { /// /// Starts monitoring AppPlugins directory during debug runs, to restart site when a plugin manifest changes. diff --git a/src/Umbraco.Core/Runtime/EssentialDirectoryCreator.cs b/src/Umbraco.Core/Runtime/EssentialDirectoryCreator.cs index 535a466e25..c1ef8f98b4 100644 --- a/src/Umbraco.Core/Runtime/EssentialDirectoryCreator.cs +++ b/src/Umbraco.Core/Runtime/EssentialDirectoryCreator.cs @@ -1,10 +1,10 @@ using Microsoft.Extensions.Options; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Events; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.IO; -namespace Umbraco.Core.Runtime +namespace Umbraco.Cms.Core.Runtime { public class EssentialDirectoryCreator : INotificationHandler { diff --git a/src/Umbraco.Core/Runtime/IMainDom.cs b/src/Umbraco.Core/Runtime/IMainDom.cs index fbf099bcf1..f08b9f3436 100644 --- a/src/Umbraco.Core/Runtime/IMainDom.cs +++ b/src/Umbraco.Core/Runtime/IMainDom.cs @@ -1,8 +1,7 @@ using System; -using Umbraco.Core.Hosting; +using Umbraco.Cms.Core.Hosting; - -namespace Umbraco.Core +namespace Umbraco.Cms.Core.Runtime { /// /// Represents the main AppDomain running for a given application. diff --git a/src/Umbraco.Core/Runtime/IMainDomLock.cs b/src/Umbraco.Core/Runtime/IMainDomLock.cs index 6a62f48194..b0b3394a01 100644 --- a/src/Umbraco.Core/Runtime/IMainDomLock.cs +++ b/src/Umbraco.Core/Runtime/IMainDomLock.cs @@ -1,7 +1,7 @@ using System; using System.Threading.Tasks; -namespace Umbraco.Core.Runtime +namespace Umbraco.Cms.Core.Runtime { /// /// An application-wide distributed lock diff --git a/src/Umbraco.Core/Runtime/IUmbracoBootPermissionChecker.cs b/src/Umbraco.Core/Runtime/IUmbracoBootPermissionChecker.cs index 4e48a8b030..48ea6a5a48 100644 --- a/src/Umbraco.Core/Runtime/IUmbracoBootPermissionChecker.cs +++ b/src/Umbraco.Core/Runtime/IUmbracoBootPermissionChecker.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Runtime +namespace Umbraco.Cms.Core.Runtime { public interface IUmbracoBootPermissionChecker { diff --git a/src/Umbraco.Core/Runtime/MainDom.cs b/src/Umbraco.Core/Runtime/MainDom.cs index 07044a9eb7..187a1f377c 100644 --- a/src/Umbraco.Core/Runtime/MainDom.cs +++ b/src/Umbraco.Core/Runtime/MainDom.cs @@ -3,11 +3,12 @@ using System.Collections.Generic; using System.Linq; using System.Security.Cryptography; using System.Threading; -using Microsoft.Extensions.Logging; -using Umbraco.Core.Hosting; using System.Threading.Tasks; +using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Extensions; -namespace Umbraco.Core.Runtime +namespace Umbraco.Cms.Core.Runtime { /// diff --git a/src/Umbraco.Core/Runtime/MainDomSemaphoreLock.cs b/src/Umbraco.Core/Runtime/MainDomSemaphoreLock.cs index 74dea6742c..212e3a88c6 100644 --- a/src/Umbraco.Core/Runtime/MainDomSemaphoreLock.cs +++ b/src/Umbraco.Core/Runtime/MainDomSemaphoreLock.cs @@ -2,9 +2,10 @@ using System; using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.Logging; -using Umbraco.Core.Hosting; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Extensions; -namespace Umbraco.Core.Runtime +namespace Umbraco.Cms.Core.Runtime { /// /// Uses a system-wide Semaphore and EventWaitHandle to synchronize the current AppDomain diff --git a/src/Umbraco.Core/RuntimeLevel.cs b/src/Umbraco.Core/RuntimeLevel.cs index 2645e89226..f08a8b9d95 100644 --- a/src/Umbraco.Core/RuntimeLevel.cs +++ b/src/Umbraco.Core/RuntimeLevel.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core +namespace Umbraco.Cms.Core { /// /// Describes the levels in which the runtime can run. diff --git a/src/Umbraco.Core/RuntimeLevelReason.cs b/src/Umbraco.Core/RuntimeLevelReason.cs index 587334d033..863843a537 100644 --- a/src/Umbraco.Core/RuntimeLevelReason.cs +++ b/src/Umbraco.Core/RuntimeLevelReason.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core +namespace Umbraco.Cms.Core { /// /// Describes the reason for the runtime level. diff --git a/src/Umbraco.Core/SafeCallContext.cs b/src/Umbraco.Core/SafeCallContext.cs index aeaf4af17e..e15ee36e33 100644 --- a/src/Umbraco.Core/SafeCallContext.cs +++ b/src/Umbraco.Core/SafeCallContext.cs @@ -1,8 +1,8 @@ using System; -using System.Linq; using System.Collections.Generic; +using System.Linq; -namespace Umbraco.Core +namespace Umbraco.Cms.Core { /// /// Provides a way to stop the data flow of a logical call context (i.e. CallContext or AsyncLocal) from within diff --git a/src/Umbraco.Core/Scoping/CallContext.cs b/src/Umbraco.Core/Scoping/CallContext.cs index cc8bf7cc7e..d975d0e695 100644 --- a/src/Umbraco.Core/Scoping/CallContext.cs +++ b/src/Umbraco.Core/Scoping/CallContext.cs @@ -1,8 +1,7 @@ -using System; using System.Collections.Concurrent; using System.Threading; -namespace Umbraco.Core.Scoping +namespace Umbraco.Cms.Core.Scoping { /// /// Represents ambient data that is local to a given asynchronous control flow, such as an asynchronous method. @@ -20,7 +19,7 @@ namespace Umbraco.Core.Scoping /// The name with which to associate the new item in the call context. /// The object to store in the call context. public static void SetData(string name, T data) => _state.GetOrAdd(name, _ => new AsyncLocal()).Value = data; - + //Replace the SetData with the following when you need to debug AsyncLocal. The args.ThreadContextChanged can be usefull //public static void SetData(string name, T data) => _state.GetOrAdd(name, _ => new AsyncLocal(OnValueChanged)).Value = data; // public static void OnValueChanged(AsyncLocalValueChangedArgs args) @@ -28,7 +27,7 @@ namespace Umbraco.Core.Scoping // var typeName = typeof(T).ToString(); // Console.WriteLine($"OnValueChanged!, Type: {typeName} Prev: #{args.PreviousValue} Current: #{args.CurrentValue}"); // } - + /// /// Retrieves an object with the specified name from the . /// @@ -40,7 +39,7 @@ namespace Umbraco.Core.Scoping // NOTE: If you have used the old CallContext in the past you might be thinking you need to clean this up but that is not the case. // With CallContext you had to call FreeNamedDataSlot to prevent leaks but with AsyncLocal this is not the case, there is no way to clean this up. // The above dictionary is sort of a trick because sure, there is always going to be a string key that will exist in the collection but the values - // themselves are managed per ExecutionContext so they don't build up. + // themselves are managed per ExecutionContext so they don't build up. // There's an SO article relating to this here https://stackoverflow.com/questions/36511243/safety-of-asynclocal-in-asp-net-core } diff --git a/src/Umbraco.Core/Scoping/IInstanceIdentifiable.cs b/src/Umbraco.Core/Scoping/IInstanceIdentifiable.cs index e855e68df2..a8d9f92f4a 100644 --- a/src/Umbraco.Core/Scoping/IInstanceIdentifiable.cs +++ b/src/Umbraco.Core/Scoping/IInstanceIdentifiable.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Scoping +namespace Umbraco.Cms.Core.Scoping { /// /// Exposes an instance unique identifier. diff --git a/src/Umbraco.Core/Scoping/IScopeContext.cs b/src/Umbraco.Core/Scoping/IScopeContext.cs index 719cc5f0ad..aef8757e9e 100644 --- a/src/Umbraco.Core/Scoping/IScopeContext.cs +++ b/src/Umbraco.Core/Scoping/IScopeContext.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Scoping +namespace Umbraco.Cms.Core.Scoping { /// /// Represents a scope context. diff --git a/src/Umbraco.Core/Scoping/RepositoryCacheMode.cs b/src/Umbraco.Core/Scoping/RepositoryCacheMode.cs index aa4329773a..78c50b628f 100644 --- a/src/Umbraco.Core/Scoping/RepositoryCacheMode.cs +++ b/src/Umbraco.Core/Scoping/RepositoryCacheMode.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Scoping +namespace Umbraco.Cms.Core.Scoping { /// /// Specifies the cache mode of repositories. diff --git a/src/Umbraco.Core/Sections/ContentSection.cs b/src/Umbraco.Core/Sections/ContentSection.cs index a93c3040f8..828adea295 100644 --- a/src/Umbraco.Core/Sections/ContentSection.cs +++ b/src/Umbraco.Core/Sections/ContentSection.cs @@ -1,7 +1,4 @@ -using Umbraco.Core; -using Umbraco.Core.Models.Sections; - -namespace Umbraco.Web.Sections +namespace Umbraco.Cms.Core.Sections { /// /// Defines the back office content section diff --git a/src/Umbraco.Core/Sections/FormsSection.cs b/src/Umbraco.Core/Sections/FormsSection.cs index 98ca2d1eb5..e0fd1085ee 100644 --- a/src/Umbraco.Core/Sections/FormsSection.cs +++ b/src/Umbraco.Core/Sections/FormsSection.cs @@ -1,7 +1,4 @@ -using Umbraco.Core; -using Umbraco.Core.Models.Sections; - -namespace Umbraco.Web.Sections +namespace Umbraco.Cms.Core.Sections { /// /// Defines the back office media section diff --git a/src/Umbraco.Core/Sections/ISection.cs b/src/Umbraco.Core/Sections/ISection.cs index 7967a9d01a..bbd380f57e 100644 --- a/src/Umbraco.Core/Sections/ISection.cs +++ b/src/Umbraco.Core/Sections/ISection.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models.Sections +namespace Umbraco.Cms.Core.Sections { /// /// Defines a back office section. diff --git a/src/Umbraco.Core/Sections/MediaSection.cs b/src/Umbraco.Core/Sections/MediaSection.cs index 3d6b16125a..8732556a28 100644 --- a/src/Umbraco.Core/Sections/MediaSection.cs +++ b/src/Umbraco.Core/Sections/MediaSection.cs @@ -1,7 +1,4 @@ -using Umbraco.Core; -using Umbraco.Core.Models.Sections; - -namespace Umbraco.Web.Sections +namespace Umbraco.Cms.Core.Sections { /// /// Defines the back office media section diff --git a/src/Umbraco.Core/Sections/MembersSection.cs b/src/Umbraco.Core/Sections/MembersSection.cs index 1f82d31131..1edbf12604 100644 --- a/src/Umbraco.Core/Sections/MembersSection.cs +++ b/src/Umbraco.Core/Sections/MembersSection.cs @@ -1,7 +1,4 @@ -using Umbraco.Core; -using Umbraco.Core.Models.Sections; - -namespace Umbraco.Web.Sections +namespace Umbraco.Cms.Core.Sections { /// /// Defines the back office members section diff --git a/src/Umbraco.Core/Sections/PackagesSection.cs b/src/Umbraco.Core/Sections/PackagesSection.cs index 265b440195..4852c11397 100644 --- a/src/Umbraco.Core/Sections/PackagesSection.cs +++ b/src/Umbraco.Core/Sections/PackagesSection.cs @@ -1,7 +1,4 @@ -using Umbraco.Core; -using Umbraco.Core.Models.Sections; - -namespace Umbraco.Web.Sections +namespace Umbraco.Cms.Core.Sections { /// /// Defines the back office packages section diff --git a/src/Umbraco.Core/Sections/SectionCollection.cs b/src/Umbraco.Core/Sections/SectionCollection.cs index 9b3a07eb64..a93b36a161 100644 --- a/src/Umbraco.Core/Sections/SectionCollection.cs +++ b/src/Umbraco.Core/Sections/SectionCollection.cs @@ -1,8 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Composing; -using Umbraco.Core.Models.Sections; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Web.Sections +namespace Umbraco.Cms.Core.Sections { public class SectionCollection : BuilderCollectionBase { diff --git a/src/Umbraco.Core/Sections/SectionCollectionBuilder.cs b/src/Umbraco.Core/Sections/SectionCollectionBuilder.cs index 9bda065881..0c5b2d7ba9 100644 --- a/src/Umbraco.Core/Sections/SectionCollectionBuilder.cs +++ b/src/Umbraco.Core/Sections/SectionCollectionBuilder.cs @@ -2,11 +2,10 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.DependencyInjection; -using Umbraco.Core.Composing; -using Umbraco.Core.Manifest; -using Umbraco.Core.Models.Sections; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Manifest; -namespace Umbraco.Web.Sections +namespace Umbraco.Cms.Core.Sections { public class SectionCollectionBuilder : OrderedCollectionBuilderBase { diff --git a/src/Umbraco.Core/Sections/SettingsSection.cs b/src/Umbraco.Core/Sections/SettingsSection.cs index 4185cd123a..bc0a43cae1 100644 --- a/src/Umbraco.Core/Sections/SettingsSection.cs +++ b/src/Umbraco.Core/Sections/SettingsSection.cs @@ -1,7 +1,4 @@ -using Umbraco.Core; -using Umbraco.Core.Models.Sections; - -namespace Umbraco.Web.Sections +namespace Umbraco.Cms.Core.Sections { /// /// Defines the back office settings section diff --git a/src/Umbraco.Core/Sections/TranslationSection.cs b/src/Umbraco.Core/Sections/TranslationSection.cs index b23dbde93b..d739757e93 100644 --- a/src/Umbraco.Core/Sections/TranslationSection.cs +++ b/src/Umbraco.Core/Sections/TranslationSection.cs @@ -1,7 +1,4 @@ -using Umbraco.Core; -using Umbraco.Core.Models.Sections; - -namespace Umbraco.Web.Sections +namespace Umbraco.Cms.Core.Sections { /// /// Defines the back office translation section diff --git a/src/Umbraco.Core/Sections/UsersSection.cs b/src/Umbraco.Core/Sections/UsersSection.cs index ac4255ac96..6969e9be3d 100644 --- a/src/Umbraco.Core/Sections/UsersSection.cs +++ b/src/Umbraco.Core/Sections/UsersSection.cs @@ -1,7 +1,4 @@ -using Umbraco.Core; -using Umbraco.Core.Models.Sections; - -namespace Umbraco.Web.Sections +namespace Umbraco.Cms.Core.Sections { /// /// Defines the back office users section diff --git a/src/Umbraco.Core/Security/AuthenticationExtensions.cs b/src/Umbraco.Core/Security/AuthenticationExtensions.cs index 13eab4ff80..15eba68de1 100644 --- a/src/Umbraco.Core/Security/AuthenticationExtensions.cs +++ b/src/Umbraco.Core/Security/AuthenticationExtensions.cs @@ -1,8 +1,12 @@ +// Copyright (c) Umbraco. +// See LICENSE for more details. + using System.Globalization; using System.Security.Principal; using System.Threading; +using Umbraco.Cms.Core.Security; -namespace Umbraco.Core.Security +namespace Umbraco.Extensions { public static class AuthenticationExtensions { diff --git a/src/Umbraco.Core/Security/BackOfficeExternalLoginProviderErrors.cs b/src/Umbraco.Core/Security/BackOfficeExternalLoginProviderErrors.cs index d7a2fed46a..f0ce1f3f5d 100644 --- a/src/Umbraco.Core/Security/BackOfficeExternalLoginProviderErrors.cs +++ b/src/Umbraco.Core/Security/BackOfficeExternalLoginProviderErrors.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.Linq; -namespace Umbraco.Core.Security +namespace Umbraco.Cms.Core.Security { public class BackOfficeExternalLoginProviderErrors { diff --git a/src/Umbraco.Core/Security/BackOfficeUserPasswordCheckerResult.cs b/src/Umbraco.Core/Security/BackOfficeUserPasswordCheckerResult.cs index c640c85d0c..a59c1fb435 100644 --- a/src/Umbraco.Core/Security/BackOfficeUserPasswordCheckerResult.cs +++ b/src/Umbraco.Core/Security/BackOfficeUserPasswordCheckerResult.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Security +namespace Umbraco.Cms.Core.Security { /// /// The result returned from the IBackOfficeUserPasswordChecker diff --git a/src/Umbraco.Core/Security/ClaimsPrincipalExtensions.cs b/src/Umbraco.Core/Security/ClaimsPrincipalExtensions.cs index 395465cfb7..c8405e1216 100644 --- a/src/Umbraco.Core/Security/ClaimsPrincipalExtensions.cs +++ b/src/Umbraco.Core/Security/ClaimsPrincipalExtensions.cs @@ -1,10 +1,13 @@ +// Copyright (c) Umbraco. +// See LICENSE for more details. + using System; using System.Globalization; using System.Linq; using System.Security.Claims; using System.Security.Principal; -using Umbraco.Core; -using Umbraco.Core.Security; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Security; namespace Umbraco.Extensions { diff --git a/src/Umbraco.Core/Security/ContentPermissions.cs b/src/Umbraco.Core/Security/ContentPermissions.cs index 25ecc546c0..d137b3628e 100644 --- a/src/Umbraco.Core/Security/ContentPermissions.cs +++ b/src/Umbraco.Core/Security/ContentPermissions.cs @@ -2,12 +2,12 @@ using System.Collections.Generic; using System.Globalization; using System.Linq; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Services; -namespace Umbraco.Core.Security +namespace Umbraco.Cms.Core.Security { /// @@ -155,7 +155,7 @@ namespace Umbraco.Core.Security /// public ContentAccess CheckPermissions( int nodeId, - IUser user, + IUser user, out IContent contentItem, IReadOnlyList permissionsToCheck = null) { diff --git a/src/Umbraco.Core/Security/HybridBackofficeSecurityAccessor.cs b/src/Umbraco.Core/Security/HybridBackofficeSecurityAccessor.cs index eb4be355f4..990715ce39 100644 --- a/src/Umbraco.Core/Security/HybridBackofficeSecurityAccessor.cs +++ b/src/Umbraco.Core/Security/HybridBackofficeSecurityAccessor.cs @@ -1,7 +1,6 @@ -using Umbraco.Core.Cache; -using Umbraco.Web; +using Umbraco.Cms.Core.Cache; -namespace Umbraco.Core.Security +namespace Umbraco.Cms.Core.Security { public class HybridBackofficeSecurityAccessor : HybridAccessorBase, IBackOfficeSecurityAccessor { diff --git a/src/Umbraco.Core/Security/HybridUmbracoWebsiteSecurityAccessor.cs b/src/Umbraco.Core/Security/HybridUmbracoWebsiteSecurityAccessor.cs index 09a7ab5d1b..cb986588d3 100644 --- a/src/Umbraco.Core/Security/HybridUmbracoWebsiteSecurityAccessor.cs +++ b/src/Umbraco.Core/Security/HybridUmbracoWebsiteSecurityAccessor.cs @@ -1,7 +1,6 @@ -using Umbraco.Core.Cache; -using Umbraco.Web; +using Umbraco.Cms.Core.Cache; -namespace Umbraco.Core.Security +namespace Umbraco.Cms.Core.Security { public class HybridUmbracoWebsiteSecurityAccessor : HybridAccessorBase, IUmbracoWebsiteSecurityAccessor diff --git a/src/Umbraco.Core/Security/IBackofficeSecurity.cs b/src/Umbraco.Core/Security/IBackofficeSecurity.cs index 8d0e0df6d8..b4eabd6744 100644 --- a/src/Umbraco.Core/Security/IBackofficeSecurity.cs +++ b/src/Umbraco.Core/Security/IBackofficeSecurity.cs @@ -1,8 +1,6 @@ -using System; -using Umbraco.Core; -using Umbraco.Core.Models.Membership; +using Umbraco.Cms.Core.Models.Membership; -namespace Umbraco.Core.Security +namespace Umbraco.Cms.Core.Security { public interface IBackOfficeSecurity { diff --git a/src/Umbraco.Core/Security/IBackofficeSecurityAccessor.cs b/src/Umbraco.Core/Security/IBackofficeSecurityAccessor.cs index 1695ecf46e..dbc64f40c7 100644 --- a/src/Umbraco.Core/Security/IBackofficeSecurityAccessor.cs +++ b/src/Umbraco.Core/Security/IBackofficeSecurityAccessor.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Security +namespace Umbraco.Cms.Core.Security { public interface IBackOfficeSecurityAccessor { diff --git a/src/Umbraco.Core/Security/IMemberUserKeyProvider.cs b/src/Umbraco.Core/Security/IMemberUserKeyProvider.cs index 439e7a82b8..9808ecc9b6 100644 --- a/src/Umbraco.Core/Security/IMemberUserKeyProvider.cs +++ b/src/Umbraco.Core/Security/IMemberUserKeyProvider.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Security +namespace Umbraco.Cms.Core.Security { public interface IMemberUserKeyProvider { diff --git a/src/Umbraco.Core/Security/IPasswordHasher.cs b/src/Umbraco.Core/Security/IPasswordHasher.cs index 2195570605..c0d436048e 100644 --- a/src/Umbraco.Core/Security/IPasswordHasher.cs +++ b/src/Umbraco.Core/Security/IPasswordHasher.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Security +namespace Umbraco.Cms.Core.Security { public interface IPasswordHasher { diff --git a/src/Umbraco.Core/Security/IPublicAccessChecker.cs b/src/Umbraco.Core/Security/IPublicAccessChecker.cs index a47186394e..4eaa184f5a 100644 --- a/src/Umbraco.Core/Security/IPublicAccessChecker.cs +++ b/src/Umbraco.Core/Security/IPublicAccessChecker.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.Security +namespace Umbraco.Cms.Core.Security { public interface IPublicAccessChecker { diff --git a/src/Umbraco.Core/Security/IUmbracoWebsiteSecurity.cs b/src/Umbraco.Core/Security/IUmbracoWebsiteSecurity.cs index 00124c4dce..86dbb9683e 100644 --- a/src/Umbraco.Core/Security/IUmbracoWebsiteSecurity.cs +++ b/src/Umbraco.Core/Security/IUmbracoWebsiteSecurity.cs @@ -1,8 +1,8 @@ using System.Collections.Generic; using System.Threading.Tasks; -using Umbraco.Core.Models.Security; +using Umbraco.Cms.Core.Models.Security; -namespace Umbraco.Core.Security +namespace Umbraco.Cms.Core.Security { public interface IUmbracoWebsiteSecurity { diff --git a/src/Umbraco.Core/Security/IUmbracoWebsiteSecurityAccessor.cs b/src/Umbraco.Core/Security/IUmbracoWebsiteSecurityAccessor.cs index 618aeb7146..d05d84476c 100644 --- a/src/Umbraco.Core/Security/IUmbracoWebsiteSecurityAccessor.cs +++ b/src/Umbraco.Core/Security/IUmbracoWebsiteSecurityAccessor.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Security +namespace Umbraco.Cms.Core.Security { public interface IUmbracoWebsiteSecurityAccessor { diff --git a/src/Umbraco.Core/Security/IdentityAuditEventArgs.cs b/src/Umbraco.Core/Security/IdentityAuditEventArgs.cs index b9884c8e7d..225d46b268 100644 --- a/src/Umbraco.Core/Security/IdentityAuditEventArgs.cs +++ b/src/Umbraco.Core/Security/IdentityAuditEventArgs.cs @@ -1,7 +1,6 @@ using System; - -namespace Umbraco.Core.Security +namespace Umbraco.Cms.Core.Security { /// diff --git a/src/Umbraco.Core/Security/LegacyPasswordSecurity.cs b/src/Umbraco.Core/Security/LegacyPasswordSecurity.cs index d72ecda56c..bf56c3161d 100644 --- a/src/Umbraco.Core/Security/LegacyPasswordSecurity.cs +++ b/src/Umbraco.Core/Security/LegacyPasswordSecurity.cs @@ -2,9 +2,9 @@ using System.ComponentModel; using System.Security.Cryptography; using System.Text; -using Umbraco.Core.Configuration; +using Umbraco.Extensions; -namespace Umbraco.Core.Security +namespace Umbraco.Cms.Core.Security { /// @@ -86,7 +86,7 @@ namespace Umbraco.Core.Security salt = string.Empty; return storedString; } - + var saltLen = GenerateSalt(); salt = storedString.Substring(0, saltLen.Length); diff --git a/src/Umbraco.Core/Security/MediaPermissions.cs b/src/Umbraco.Core/Security/MediaPermissions.cs index 65da95ec02..e74144133d 100644 --- a/src/Umbraco.Core/Security/MediaPermissions.cs +++ b/src/Umbraco.Core/Security/MediaPermissions.cs @@ -1,10 +1,9 @@ using System; -using System.Collections.Generic; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Services; -namespace Umbraco.Core.Security +namespace Umbraco.Cms.Core.Security { /// /// Checks user access to media @@ -62,7 +61,7 @@ namespace Umbraco.Core.Security } public MediaAccess CheckPermissions(IMedia media, IUser user) - { + { if (user == null) throw new ArgumentNullException(nameof(user)); if (media == null) return MediaAccess.NotFound; diff --git a/src/Umbraco.Core/Security/PasswordGenerator.cs b/src/Umbraco.Core/Security/PasswordGenerator.cs index d8e18a8146..1347d77ab7 100644 --- a/src/Umbraco.Core/Security/PasswordGenerator.cs +++ b/src/Umbraco.Core/Security/PasswordGenerator.cs @@ -1,9 +1,10 @@ using System; using System.Linq; using System.Security.Cryptography; -using Umbraco.Core.Configuration; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Extensions; -namespace Umbraco.Core.Security +namespace Umbraco.Cms.Core.Security { /// /// Generates a password @@ -119,13 +120,13 @@ namespace Umbraco.Core.Security for (var i = 0; ;) { - // Look for the start of one of our patterns + // Look for the start of one of our patterns var n = s.IndexOfAny(StartingChars, i); // If not found, the string is safe if (n < 0) return false; - // If it's the last char, it's safe + // If it's the last char, it's safe if (n == s.Length - 1) return false; matchIndex = n; @@ -137,7 +138,7 @@ namespace Umbraco.Core.Security if (IsAtoZ(s[n + 1]) || s[n + 1] == '!' || s[n + 1] == '/' || s[n + 1] == '?') return true; break; case '&': - // If the & is followed by a #, it's unsafe (e.g. S) + // If the & is followed by a #, it's unsafe (e.g. S) if (s[n + 1] == '#') return true; break; } diff --git a/src/Umbraco.Core/Security/PublicAccessStatus.cs b/src/Umbraco.Core/Security/PublicAccessStatus.cs index 57df423749..b92c0ff57a 100644 --- a/src/Umbraco.Core/Security/PublicAccessStatus.cs +++ b/src/Umbraco.Core/Security/PublicAccessStatus.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.Security +namespace Umbraco.Cms.Core.Security { public enum PublicAccessStatus { diff --git a/src/Umbraco.Core/Security/RegisterMemberStatus.cs b/src/Umbraco.Core/Security/RegisterMemberStatus.cs index 1cbeae38d1..757cfb3ba2 100644 --- a/src/Umbraco.Core/Security/RegisterMemberStatus.cs +++ b/src/Umbraco.Core/Security/RegisterMemberStatus.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Security +namespace Umbraco.Cms.Core.Security { public enum RegisterMemberStatus { diff --git a/src/Umbraco.Core/Security/UmbracoBackOfficeIdentity.cs b/src/Umbraco.Core/Security/UmbracoBackOfficeIdentity.cs index 5fd9f23c92..a09506b610 100644 --- a/src/Umbraco.Core/Security/UmbracoBackOfficeIdentity.cs +++ b/src/Umbraco.Core/Security/UmbracoBackOfficeIdentity.cs @@ -2,8 +2,9 @@ using System; using System.Collections.Generic; using System.Linq; using System.Security.Claims; +using Umbraco.Extensions; -namespace Umbraco.Core.Security +namespace Umbraco.Cms.Core.Security { /// @@ -14,7 +15,7 @@ namespace Umbraco.Core.Security { // TODO: Ideally we remove this class and only deal with ClaimsIdentity as a best practice. All things relevant to our own // identity are part of claims. This class would essentially become extension methods on a ClaimsIdentity for resolving - // values from it. + // values from it. public static bool FromClaimsIdentity(ClaimsIdentity identity, out UmbracoBackOfficeIdentity backOfficeIdentity) { // validate that all claims exist diff --git a/src/Umbraco.Core/Security/UpdateMemberProfileResult.cs b/src/Umbraco.Core/Security/UpdateMemberProfileResult.cs index 1d435378a6..90c14086b5 100644 --- a/src/Umbraco.Core/Security/UpdateMemberProfileResult.cs +++ b/src/Umbraco.Core/Security/UpdateMemberProfileResult.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Security +namespace Umbraco.Cms.Core.Security { public class UpdateMemberProfileResult { diff --git a/src/Umbraco.Core/Security/UpdateMemberProfileStatus.cs b/src/Umbraco.Core/Security/UpdateMemberProfileStatus.cs index 33dfe4d486..df805d3096 100644 --- a/src/Umbraco.Core/Security/UpdateMemberProfileStatus.cs +++ b/src/Umbraco.Core/Security/UpdateMemberProfileStatus.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Security +namespace Umbraco.Cms.Core.Security { public enum UpdateMemberProfileStatus { diff --git a/src/Umbraco.Core/Semver/Semver.cs b/src/Umbraco.Core/Semver/Semver.cs index 94dbb8b927..f1fd48806e 100644 --- a/src/Umbraco.Core/Semver/Semver.cs +++ b/src/Umbraco.Core/Semver/Semver.cs @@ -1,13 +1,13 @@ using System; +using System.Text.RegularExpressions; #if !NETSTANDARD using System.Globalization; using System.Runtime.Serialization; using System.Security.Permissions; #endif -using System.Text.RegularExpressions; /* -Copyright (c) 2013 Max Hauser +Copyright (c) 2013 Max Hauser Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -27,7 +27,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -namespace Semver +namespace Umbraco.Cms.Core.Semver { /// /// A semantic version implementation. @@ -92,7 +92,7 @@ namespace Semver /// /// Initializes a new instance of the class. /// - /// The that is used to initialize + /// The that is used to initialize /// the Major, Minor, Patch and Build properties. public SemVersion(Version version) { @@ -178,8 +178,8 @@ namespace Semver /// Parses the specified string to a semantic version. /// /// The version string. - /// When the method returns, contains a SemVersion instance equivalent - /// to the version string passed in, if the version string was valid, or null if the + /// When the method returns, contains a SemVersion instance equivalent + /// to the version string passed in, if the version string was valid, or null if the /// version string was not valid. /// If set to true minor and patch version are required, else they default to 0. /// False when a invalid version string is passed, otherwise true. @@ -225,7 +225,7 @@ namespace Semver } /// - /// Make a copy of the current instance with optional altered fields. + /// Make a copy of the current instance with optional altered fields. /// /// The major version. /// The minor version. @@ -301,15 +301,15 @@ namespace Semver } /// - /// Compares the current instance with another object of the same type and returns an integer that indicates - /// whether the current instance precedes, follows, or occurs in the same position in the sort order as the + /// Compares the current instance with another object of the same type and returns an integer that indicates + /// whether the current instance precedes, follows, or occurs in the same position in the sort order as the /// other object. /// /// An object to compare with this instance. /// - /// A value that indicates the relative order of the objects being compared. - /// The return value has these meanings: Value Meaning Less than zero - /// This instance precedes in the sort order. + /// A value that indicates the relative order of the objects being compared. + /// The return value has these meanings: Value Meaning Less than zero + /// This instance precedes in the sort order. /// Zero This instance occurs in the same position in the sort order as . i /// Greater than zero This instance follows in the sort order. /// @@ -319,15 +319,15 @@ namespace Semver } /// - /// Compares the current instance with another object of the same type and returns an integer that indicates - /// whether the current instance precedes, follows, or occurs in the same position in the sort order as the + /// Compares the current instance with another object of the same type and returns an integer that indicates + /// whether the current instance precedes, follows, or occurs in the same position in the sort order as the /// other object. /// /// An object to compare with this instance. /// - /// A value that indicates the relative order of the objects being compared. - /// The return value has these meanings: Value Meaning Less than zero - /// This instance precedes in the sort order. + /// A value that indicates the relative order of the objects being compared. + /// The return value has these meanings: Value Meaning Less than zero + /// This instance precedes in the sort order. /// Zero This instance occurs in the same position in the sort order as . i /// Greater than zero This instance follows in the sort order. /// @@ -359,8 +359,8 @@ namespace Semver /// /// The semantic version. /// - /// A value that indicates the relative order of the objects being compared. - /// The return value has these meanings: Value Meaning Less than zero + /// A value that indicates the relative order of the objects being compared. + /// The return value has these meanings: Value Meaning Less than zero /// This instance precedes in the version precedence. /// Zero This instance has the same precedence as . i /// Greater than zero This instance has creater precedence as . @@ -455,7 +455,7 @@ namespace Semver /// Returns a hash code for this instance. /// /// - /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. /// public override int GetHashCode() { @@ -490,7 +490,7 @@ namespace Semver } /// - /// The override of the equals operator. + /// The override of the equals operator. /// /// The left value. /// The right value. @@ -501,7 +501,7 @@ namespace Semver } /// - /// The override of the un-equal operator. + /// The override of the un-equal operator. /// /// The left value. /// The right value. @@ -512,7 +512,7 @@ namespace Semver } /// - /// The override of the greater operator. + /// The override of the greater operator. /// /// The left value. /// The right value. @@ -523,7 +523,7 @@ namespace Semver } /// - /// The override of the greater than or equal operator. + /// The override of the greater than or equal operator. /// /// The left value. /// The right value. @@ -534,7 +534,7 @@ namespace Semver } /// - /// The override of the less operator. + /// The override of the less operator. /// /// The left value. /// The right value. @@ -545,7 +545,7 @@ namespace Semver } /// - /// The override of the less than or equal operator. + /// The override of the less than or equal operator. /// /// The left value. /// The right value. diff --git a/src/Umbraco.Core/Serialization/IConfigurationEditorJsonSerializer.cs b/src/Umbraco.Core/Serialization/IConfigurationEditorJsonSerializer.cs index 7370225bce..dee2e4c5db 100644 --- a/src/Umbraco.Core/Serialization/IConfigurationEditorJsonSerializer.cs +++ b/src/Umbraco.Core/Serialization/IConfigurationEditorJsonSerializer.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Serialization +namespace Umbraco.Cms.Core.Serialization { public interface IConfigurationEditorJsonSerializer : IJsonSerializer { diff --git a/src/Umbraco.Core/Serialization/IJsonSerializer.cs b/src/Umbraco.Core/Serialization/IJsonSerializer.cs index c952394dcb..fe1abcc044 100644 --- a/src/Umbraco.Core/Serialization/IJsonSerializer.cs +++ b/src/Umbraco.Core/Serialization/IJsonSerializer.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Serialization +namespace Umbraco.Cms.Core.Serialization { public interface IJsonSerializer { diff --git a/src/Umbraco.Core/Services/Changes/ContentTypeChange.cs b/src/Umbraco.Core/Services/Changes/ContentTypeChange.cs index 366a609418..9e56de950c 100644 --- a/src/Umbraco.Core/Services/Changes/ContentTypeChange.cs +++ b/src/Umbraco.Core/Services/Changes/ContentTypeChange.cs @@ -1,8 +1,8 @@ using System.Collections.Generic; using System.Linq; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Services.Changes +namespace Umbraco.Cms.Core.Services.Changes { public class ContentTypeChange where TItem : class, IContentTypeComposition diff --git a/src/Umbraco.Core/Services/Changes/ContentTypeChangeExtensions.cs b/src/Umbraco.Core/Services/Changes/ContentTypeChangeExtensions.cs index d9ac97ebcd..a3d555c2b1 100644 --- a/src/Umbraco.Core/Services/Changes/ContentTypeChangeExtensions.cs +++ b/src/Umbraco.Core/Services/Changes/ContentTypeChangeExtensions.cs @@ -1,7 +1,11 @@ -using System.Collections.Generic; -using Umbraco.Core.Models; +// Copyright (c) Umbraco. +// See LICENSE for more details. -namespace Umbraco.Core.Services.Changes +using System.Collections.Generic; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services.Changes; + +namespace Umbraco.Extensions { public static class ContentTypeChangeExtensions { diff --git a/src/Umbraco.Core/Services/Changes/ContentTypeChangeTypes.cs b/src/Umbraco.Core/Services/Changes/ContentTypeChangeTypes.cs index bf7f87fd1a..cd4965dc2b 100644 --- a/src/Umbraco.Core/Services/Changes/ContentTypeChangeTypes.cs +++ b/src/Umbraco.Core/Services/Changes/ContentTypeChangeTypes.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Services.Changes +namespace Umbraco.Cms.Core.Services.Changes { [Flags] public enum ContentTypeChangeTypes : byte @@ -25,6 +25,6 @@ namespace Umbraco.Core.Services.Changes /// /// Content type was removed /// - Remove = 8 + Remove = 8 } } diff --git a/src/Umbraco.Core/Services/Changes/DomainChangeTypes.cs b/src/Umbraco.Core/Services/Changes/DomainChangeTypes.cs index 9dd8a956b7..25bf48e55a 100644 --- a/src/Umbraco.Core/Services/Changes/DomainChangeTypes.cs +++ b/src/Umbraco.Core/Services/Changes/DomainChangeTypes.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Services.Changes +namespace Umbraco.Cms.Core.Services.Changes { public enum DomainChangeTypes : byte { diff --git a/src/Umbraco.Core/Services/Changes/TreeChange.cs b/src/Umbraco.Core/Services/Changes/TreeChange.cs index 605cde87a2..f306a796cc 100644 --- a/src/Umbraco.Core/Services/Changes/TreeChange.cs +++ b/src/Umbraco.Core/Services/Changes/TreeChange.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.Linq; -namespace Umbraco.Core.Services.Changes +namespace Umbraco.Cms.Core.Services.Changes { public class TreeChange { diff --git a/src/Umbraco.Core/Services/Changes/TreeChangeExtensions.cs b/src/Umbraco.Core/Services/Changes/TreeChangeExtensions.cs index 6971ebc91f..5de6ae9847 100644 --- a/src/Umbraco.Core/Services/Changes/TreeChangeExtensions.cs +++ b/src/Umbraco.Core/Services/Changes/TreeChangeExtensions.cs @@ -1,6 +1,10 @@ -using System.Collections.Generic; +// Copyright (c) Umbraco. +// See LICENSE for more details. -namespace Umbraco.Core.Services.Changes +using System.Collections.Generic; +using Umbraco.Cms.Core.Services.Changes; + +namespace Umbraco.Extensions { public static class TreeChangeExtensions { diff --git a/src/Umbraco.Core/Services/Changes/TreeChangeTypes.cs b/src/Umbraco.Core/Services/Changes/TreeChangeTypes.cs index e2457864ed..9ef231ac06 100644 --- a/src/Umbraco.Core/Services/Changes/TreeChangeTypes.cs +++ b/src/Umbraco.Core/Services/Changes/TreeChangeTypes.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Services.Changes +namespace Umbraco.Cms.Core.Services.Changes { [Flags] public enum TreeChangeTypes : byte diff --git a/src/Umbraco.Core/Services/ContentServiceExtensions.cs b/src/Umbraco.Core/Services/ContentServiceExtensions.cs index 3e4fe272f9..f6b236439b 100644 --- a/src/Umbraco.Core/Services/ContentServiceExtensions.cs +++ b/src/Umbraco.Core/Services/ContentServiceExtensions.cs @@ -1,11 +1,16 @@ -using System; +// Copyright (c) Umbraco. +// See LICENSE for more details. + +using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Membership; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Services; -namespace Umbraco.Core.Services +namespace Umbraco.Extensions { /// /// Content service extension methods diff --git a/src/Umbraco.Core/Services/ContentTypeServiceExtensions.cs b/src/Umbraco.Core/Services/ContentTypeServiceExtensions.cs index d03820b53e..bc5393a26e 100644 --- a/src/Umbraco.Core/Services/ContentTypeServiceExtensions.cs +++ b/src/Umbraco.Core/Services/ContentTypeServiceExtensions.cs @@ -1,9 +1,14 @@ -using System; +// Copyright (c) Umbraco. +// See LICENSE for more details. + +using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core.Models; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; -namespace Umbraco.Core.Services +namespace Umbraco.Extensions { public static class ContentTypeServiceExtensions { diff --git a/src/Umbraco.Core/Services/DashboardService.cs b/src/Umbraco.Core/Services/DashboardService.cs index a89cd244dc..3f806bcc43 100644 --- a/src/Umbraco.Core/Services/DashboardService.cs +++ b/src/Umbraco.Core/Services/DashboardService.cs @@ -1,14 +1,12 @@ using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core; -using Umbraco.Core.Dashboards; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Services; -using Umbraco.Web.Dashboards; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Dashboards; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Extensions; -namespace Umbraco.Web.Services +namespace Umbraco.Cms.Core.Services { /// /// A utility class for determine dashboard security diff --git a/src/Umbraco.Core/Services/DateTypeServiceExtensions.cs b/src/Umbraco.Core/Services/DateTypeServiceExtensions.cs index 6c2a1f7799..312b939ec5 100644 --- a/src/Umbraco.Core/Services/DateTypeServiceExtensions.cs +++ b/src/Umbraco.Core/Services/DateTypeServiceExtensions.cs @@ -1,8 +1,8 @@ using System; -using Umbraco.Core.Models; -using Umbraco.Core.PropertyEditors; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Services; -namespace Umbraco.Core.Services +namespace Umbraco.Extensions { public static class DateTypeServiceExtensions { diff --git a/src/Umbraco.Core/Services/IAuditService.cs b/src/Umbraco.Core/Services/IAuditService.cs index de4ec889cd..bae50f55c8 100644 --- a/src/Umbraco.Core/Services/IAuditService.cs +++ b/src/Umbraco.Core/Services/IAuditService.cs @@ -1,9 +1,9 @@ using System; using System.Collections.Generic; -using Umbraco.Core.Models; -using Umbraco.Core.Persistence.Querying; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Querying; -namespace Umbraco.Core.Services +namespace Umbraco.Cms.Core.Services { /// /// Represents a service for handling audit. @@ -11,7 +11,7 @@ namespace Umbraco.Core.Services public interface IAuditService : IService { void Add(AuditType type, int userId, int objectId, string entityType, string comment, string parameters = null); - + IEnumerable GetLogs(int objectId); IEnumerable GetUserLogs(int userId, AuditType type, DateTime? sinceDate = null); IEnumerable GetLogs(AuditType type, DateTime? sinceDate = null); @@ -81,6 +81,6 @@ namespace Umbraco.Core.Services /// /// Free-form details about the audited event. IAuditEntry Write(int performingUserId, string perfomingDetails, string performingIp, DateTime eventDateUtc, int affectedUserId, string affectedDetails, string eventType, string eventDetails); - + } } diff --git a/src/Umbraco.Core/Services/IConsentService.cs b/src/Umbraco.Core/Services/IConsentService.cs index c6478ddd2b..a8e7e6cd8b 100644 --- a/src/Umbraco.Core/Services/IConsentService.cs +++ b/src/Umbraco.Core/Services/IConsentService.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Services +namespace Umbraco.Cms.Core.Services { /// /// A service for handling lawful data processing requirements diff --git a/src/Umbraco.Core/Services/IContentService.cs b/src/Umbraco.Core/Services/IContentService.cs index 61504b0a98..2e6aa32c01 100644 --- a/src/Umbraco.Core/Services/IContentService.cs +++ b/src/Umbraco.Core/Services/IContentService.cs @@ -1,10 +1,10 @@ using System; using System.Collections.Generic; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Persistence.Querying; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Persistence.Querying; -namespace Umbraco.Core.Services +namespace Umbraco.Cms.Core.Services { /// /// Defines the ContentService, which is an easy access to operations involving diff --git a/src/Umbraco.Core/Services/IContentServiceBase.cs b/src/Umbraco.Core/Services/IContentServiceBase.cs index ca87382494..9ab7fc7acc 100644 --- a/src/Umbraco.Core/Services/IContentServiceBase.cs +++ b/src/Umbraco.Core/Services/IContentServiceBase.cs @@ -1,8 +1,8 @@ using System; using System.Collections.Generic; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Services +namespace Umbraco.Cms.Core.Services { public interface IContentServiceBase : IContentServiceBase where TItem: class, IContentBase diff --git a/src/Umbraco.Core/Services/IContentTypeBaseServiceProvider.cs b/src/Umbraco.Core/Services/IContentTypeBaseServiceProvider.cs index d0146ce043..3c45722052 100644 --- a/src/Umbraco.Core/Services/IContentTypeBaseServiceProvider.cs +++ b/src/Umbraco.Core/Services/IContentTypeBaseServiceProvider.cs @@ -1,6 +1,6 @@ -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Services +namespace Umbraco.Cms.Core.Services { /// /// Provides the corresponding to an object. diff --git a/src/Umbraco.Core/Services/IContentTypeService.cs b/src/Umbraco.Core/Services/IContentTypeService.cs index 02e4bc6b18..4b34baa869 100644 --- a/src/Umbraco.Core/Services/IContentTypeService.cs +++ b/src/Umbraco.Core/Services/IContentTypeService.cs @@ -1,8 +1,8 @@ using System; using System.Collections.Generic; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Services +namespace Umbraco.Cms.Core.Services { /// /// Manages objects. diff --git a/src/Umbraco.Core/Services/IContentTypeServiceBase.cs b/src/Umbraco.Core/Services/IContentTypeServiceBase.cs index 3c91091f8c..01519bc1c3 100644 --- a/src/Umbraco.Core/Services/IContentTypeServiceBase.cs +++ b/src/Umbraco.Core/Services/IContentTypeServiceBase.cs @@ -1,8 +1,8 @@ using System; using System.Collections.Generic; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Services +namespace Umbraco.Cms.Core.Services { /// /// Provides a common base interface for . diff --git a/src/Umbraco.Core/Services/IDashboardService.cs b/src/Umbraco.Core/Services/IDashboardService.cs index 11ff2728cf..7aba03e106 100644 --- a/src/Umbraco.Core/Services/IDashboardService.cs +++ b/src/Umbraco.Core/Services/IDashboardService.cs @@ -1,9 +1,9 @@ using System.Collections.Generic; -using Umbraco.Core.Dashboards; -using Umbraco.Core.Models.Membership; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Dashboards; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Models.Membership; -namespace Umbraco.Web.Services +namespace Umbraco.Cms.Core.Services { public interface IDashboardService { diff --git a/src/Umbraco.Core/Services/IDataTypeService.cs b/src/Umbraco.Core/Services/IDataTypeService.cs index b78607462c..f8e91d07d8 100644 --- a/src/Umbraco.Core/Services/IDataTypeService.cs +++ b/src/Umbraco.Core/Services/IDataTypeService.cs @@ -1,8 +1,8 @@ using System; using System.Collections.Generic; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Services +namespace Umbraco.Cms.Core.Services { /// diff --git a/src/Umbraco.Core/Services/IDomainService.cs b/src/Umbraco.Core/Services/IDomainService.cs index 70c986bf07..bd96df4391 100644 --- a/src/Umbraco.Core/Services/IDomainService.cs +++ b/src/Umbraco.Core/Services/IDomainService.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Services +namespace Umbraco.Cms.Core.Services { public interface IDomainService : IService { diff --git a/src/Umbraco.Core/Services/IEntityService.cs b/src/Umbraco.Core/Services/IEntityService.cs index 2b2fad277a..5992196c69 100644 --- a/src/Umbraco.Core/Services/IEntityService.cs +++ b/src/Umbraco.Core/Services/IEntityService.cs @@ -1,10 +1,10 @@ using System; using System.Collections.Generic; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Persistence.Querying; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Persistence.Querying; -namespace Umbraco.Core.Services +namespace Umbraco.Cms.Core.Services { public interface IEntityService { diff --git a/src/Umbraco.Core/Services/IEntityXmlSerializer.cs b/src/Umbraco.Core/Services/IEntityXmlSerializer.cs index 6feb31115c..20de556395 100644 --- a/src/Umbraco.Core/Services/IEntityXmlSerializer.cs +++ b/src/Umbraco.Core/Services/IEntityXmlSerializer.cs @@ -1,8 +1,8 @@ using System.Collections.Generic; using System.Xml.Linq; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Services +namespace Umbraco.Cms.Core.Services { /// /// Serializes entities to XML diff --git a/src/Umbraco.Core/Services/IExternalLoginService.cs b/src/Umbraco.Core/Services/IExternalLoginService.cs index d0c2a74192..e19d30e293 100644 --- a/src/Umbraco.Core/Services/IExternalLoginService.cs +++ b/src/Umbraco.Core/Services/IExternalLoginService.cs @@ -1,8 +1,7 @@ -using System; using System.Collections.Generic; -using Umbraco.Core.Models.Identity; +using Umbraco.Cms.Core.Models.Identity; -namespace Umbraco.Core.Services +namespace Umbraco.Cms.Core.Services { /// /// Used to store the external login info, this can be replaced with your own implementation diff --git a/src/Umbraco.Core/Services/IFileService.cs b/src/Umbraco.Core/Services/IFileService.cs index 00e99e1c38..bcf2a0caee 100644 --- a/src/Umbraco.Core/Services/IFileService.cs +++ b/src/Umbraco.Core/Services/IFileService.cs @@ -1,9 +1,9 @@ using System; using System.Collections.Generic; using System.IO; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Services +namespace Umbraco.Cms.Core.Services { /// /// Defines the File Service, which is an easy access to operations involving objects like Scripts, Stylesheets and Templates diff --git a/src/Umbraco.Core/Services/IIconService.cs b/src/Umbraco.Core/Services/IIconService.cs index 963edb22a5..fafe5995f2 100644 --- a/src/Umbraco.Core/Services/IIconService.cs +++ b/src/Umbraco.Core/Services/IIconService.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Services +namespace Umbraco.Cms.Core.Services { public interface IIconService { diff --git a/src/Umbraco.Core/Services/IIdKeyMap.cs b/src/Umbraco.Core/Services/IIdKeyMap.cs index 05d1b2283d..56be36c5fa 100644 --- a/src/Umbraco.Core/Services/IIdKeyMap.cs +++ b/src/Umbraco.Core/Services/IIdKeyMap.cs @@ -1,7 +1,7 @@ using System; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Services +namespace Umbraco.Cms.Core.Services { public interface IIdKeyMap { diff --git a/src/Umbraco.Core/Services/IInstallationService.cs b/src/Umbraco.Core/Services/IInstallationService.cs index 334088f8ae..5b1d28cccc 100644 --- a/src/Umbraco.Core/Services/IInstallationService.cs +++ b/src/Umbraco.Core/Services/IInstallationService.cs @@ -1,7 +1,6 @@ using System.Threading.Tasks; -using Umbraco.Core.Models; -namespace Umbraco.Core.Services +namespace Umbraco.Cms.Core.Services { public interface IInstallationService { diff --git a/src/Umbraco.Core/Services/IKeyValueService.cs b/src/Umbraco.Core/Services/IKeyValueService.cs index 192c99bee7..4c24ca19de 100644 --- a/src/Umbraco.Core/Services/IKeyValueService.cs +++ b/src/Umbraco.Core/Services/IKeyValueService.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Services +namespace Umbraco.Cms.Core.Services { /// /// Manages the simplified key/value store. diff --git a/src/Umbraco.Core/Services/ILocalizationService.cs b/src/Umbraco.Core/Services/ILocalizationService.cs index b8c4e21f2a..cd28e4f5b3 100644 --- a/src/Umbraco.Core/Services/ILocalizationService.cs +++ b/src/Umbraco.Core/Services/ILocalizationService.cs @@ -1,8 +1,8 @@ using System; using System.Collections.Generic; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Services +namespace Umbraco.Cms.Core.Services { /// /// Defines the Localization Service, which is an easy access to operations involving Languages and Dictionary diff --git a/src/Umbraco.Core/Services/ILocalizedTextService.cs b/src/Umbraco.Core/Services/ILocalizedTextService.cs index f167c64e0f..fd23dd6f78 100644 --- a/src/Umbraco.Core/Services/ILocalizedTextService.cs +++ b/src/Umbraco.Core/Services/ILocalizedTextService.cs @@ -1,8 +1,7 @@ -using System.Collections; -using System.Collections.Generic; +using System.Collections.Generic; using System.Globalization; -namespace Umbraco.Core.Services +namespace Umbraco.Cms.Core.Services { /// /// The entry point to localize any key in the text storage source for a given culture diff --git a/src/Umbraco.Core/Services/IMacroService.cs b/src/Umbraco.Core/Services/IMacroService.cs index 597c986f37..c4bc34997f 100644 --- a/src/Umbraco.Core/Services/IMacroService.cs +++ b/src/Umbraco.Core/Services/IMacroService.cs @@ -1,8 +1,8 @@ using System; using System.Collections.Generic; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Services +namespace Umbraco.Cms.Core.Services { /// /// Defines the MacroService, which is an easy access to operations involving diff --git a/src/Umbraco.Core/Services/IMediaService.cs b/src/Umbraco.Core/Services/IMediaService.cs index aa6363cc36..32862e1f87 100644 --- a/src/Umbraco.Core/Services/IMediaService.cs +++ b/src/Umbraco.Core/Services/IMediaService.cs @@ -1,10 +1,10 @@ using System; using System.Collections.Generic; using System.IO; -using Umbraco.Core.Models; -using Umbraco.Core.Persistence.Querying; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Querying; -namespace Umbraco.Core.Services +namespace Umbraco.Cms.Core.Services { /// /// Defines the Media Service, which is an easy access to operations involving diff --git a/src/Umbraco.Core/Services/IMediaTypeService.cs b/src/Umbraco.Core/Services/IMediaTypeService.cs index 992937675f..e00d86613b 100644 --- a/src/Umbraco.Core/Services/IMediaTypeService.cs +++ b/src/Umbraco.Core/Services/IMediaTypeService.cs @@ -1,6 +1,6 @@ -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Services +namespace Umbraco.Cms.Core.Services { /// /// Manages objects. diff --git a/src/Umbraco.Core/Services/IMemberGroupService.cs b/src/Umbraco.Core/Services/IMemberGroupService.cs index 9261dcfdf6..e584537ab1 100644 --- a/src/Umbraco.Core/Services/IMemberGroupService.cs +++ b/src/Umbraco.Core/Services/IMemberGroupService.cs @@ -1,8 +1,8 @@ using System; using System.Collections.Generic; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Services +namespace Umbraco.Cms.Core.Services { public interface IMemberGroupService : IService { diff --git a/src/Umbraco.Core/Services/IMemberService.cs b/src/Umbraco.Core/Services/IMemberService.cs index 1ea3590964..3220cf9fd9 100644 --- a/src/Umbraco.Core/Services/IMemberService.cs +++ b/src/Umbraco.Core/Services/IMemberService.cs @@ -1,9 +1,9 @@ using System; using System.Collections.Generic; -using Umbraco.Core.Models; -using Umbraco.Core.Persistence.Querying; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Querying; -namespace Umbraco.Core.Services +namespace Umbraco.Cms.Core.Services { /// /// Defines the MemberService, which is an easy access to operations involving (umbraco) members. diff --git a/src/Umbraco.Core/Services/IMemberTypeService.cs b/src/Umbraco.Core/Services/IMemberTypeService.cs index 41004d267d..4a52438d5e 100644 --- a/src/Umbraco.Core/Services/IMemberTypeService.cs +++ b/src/Umbraco.Core/Services/IMemberTypeService.cs @@ -1,6 +1,6 @@ -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Services +namespace Umbraco.Cms.Core.Services { /// /// Manages objects. diff --git a/src/Umbraco.Core/Services/IMembershipMemberService.cs b/src/Umbraco.Core/Services/IMembershipMemberService.cs index 839d8e3af3..c91eba5250 100644 --- a/src/Umbraco.Core/Services/IMembershipMemberService.cs +++ b/src/Umbraco.Core/Services/IMembershipMemberService.cs @@ -1,10 +1,10 @@ using System; using System.Collections.Generic; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Persistence.Querying; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Persistence.Querying; -namespace Umbraco.Core.Services +namespace Umbraco.Cms.Core.Services { /// /// Defines part of the MemberService, which is specific to methods used by the membership provider. @@ -137,7 +137,7 @@ namespace Umbraco.Core.Services /// Optional parameter to raise events. /// Default is True otherwise set to False to not raise events void Save(IEnumerable entities, bool raiseEvents = true); - + /// /// Finds a list of objects by a partial email string /// diff --git a/src/Umbraco.Core/Services/IMembershipRoleService.cs b/src/Umbraco.Core/Services/IMembershipRoleService.cs index 7389bb9799..e84a312a8f 100644 --- a/src/Umbraco.Core/Services/IMembershipRoleService.cs +++ b/src/Umbraco.Core/Services/IMembershipRoleService.cs @@ -1,8 +1,8 @@ using System.Collections.Generic; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Persistence.Querying; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Persistence.Querying; -namespace Umbraco.Core.Services +namespace Umbraco.Cms.Core.Services { public interface IMembershipRoleService where T : class, IMembershipUser diff --git a/src/Umbraco.Core/Services/IMembershipUserService.cs b/src/Umbraco.Core/Services/IMembershipUserService.cs index 2a3fe31b08..a2aca2821e 100644 --- a/src/Umbraco.Core/Services/IMembershipUserService.cs +++ b/src/Umbraco.Core/Services/IMembershipUserService.cs @@ -1,7 +1,6 @@ -using System.Collections.Generic; -using Umbraco.Core.Models.Membership; +using Umbraco.Cms.Core.Models.Membership; -namespace Umbraco.Core.Services +namespace Umbraco.Cms.Core.Services { /// /// Defines part of the UserService, which is specific to methods used by the membership provider. diff --git a/src/Umbraco.Core/Services/INotificationService.cs b/src/Umbraco.Core/Services/INotificationService.cs index 6ef639594d..17ee45dcfa 100644 --- a/src/Umbraco.Core/Services/INotificationService.cs +++ b/src/Umbraco.Core/Services/INotificationService.cs @@ -1,10 +1,10 @@ using System; using System.Collections.Generic; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Models.Membership; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Membership; -namespace Umbraco.Core.Services +namespace Umbraco.Cms.Core.Services { public interface INotificationService : IService { diff --git a/src/Umbraco.Core/Services/IPackagingService.cs b/src/Umbraco.Core/Services/IPackagingService.cs index b38b5a426b..96785417d8 100644 --- a/src/Umbraco.Core/Services/IPackagingService.cs +++ b/src/Umbraco.Core/Services/IPackagingService.cs @@ -2,13 +2,11 @@ using System.Collections.Generic; using System.IO; using System.Threading.Tasks; -using System.Xml.Linq; -using Semver; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Packaging; -using Umbraco.Core.Packaging; +using Umbraco.Cms.Core.Models.Packaging; +using Umbraco.Cms.Core.Packaging; +using Umbraco.Cms.Core.Semver; -namespace Umbraco.Core.Services +namespace Umbraco.Cms.Core.Services { public interface IPackagingService : IService { diff --git a/src/Umbraco.Core/Services/IPropertyValidationService.cs b/src/Umbraco.Core/Services/IPropertyValidationService.cs index 842f45df2b..0fc2a0b02d 100644 --- a/src/Umbraco.Core/Services/IPropertyValidationService.cs +++ b/src/Umbraco.Core/Services/IPropertyValidationService.cs @@ -1,9 +1,9 @@ using System.Collections.Generic; using System.ComponentModel.DataAnnotations; -using Umbraco.Core.Models; -using Umbraco.Core.PropertyEditors; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PropertyEditors; -namespace Umbraco.Core.Services +namespace Umbraco.Cms.Core.Services { public interface IPropertyValidationService { diff --git a/src/Umbraco.Core/Services/IPublicAccessService.cs b/src/Umbraco.Core/Services/IPublicAccessService.cs index a3efb07028..c064493425 100644 --- a/src/Umbraco.Core/Services/IPublicAccessService.cs +++ b/src/Umbraco.Core/Services/IPublicAccessService.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Services +namespace Umbraco.Cms.Core.Services { public interface IPublicAccessService : IService { diff --git a/src/Umbraco.Core/Services/IRedirectUrlService.cs b/src/Umbraco.Core/Services/IRedirectUrlService.cs index d54c9994e1..5042a25662 100644 --- a/src/Umbraco.Core/Services/IRedirectUrlService.cs +++ b/src/Umbraco.Core/Services/IRedirectUrlService.cs @@ -1,8 +1,8 @@ using System; using System.Collections.Generic; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Services +namespace Umbraco.Cms.Core.Services { /// /// diff --git a/src/Umbraco.Core/Services/IRelationService.cs b/src/Umbraco.Core/Services/IRelationService.cs index a3c0317685..ce00f774f8 100644 --- a/src/Umbraco.Core/Services/IRelationService.cs +++ b/src/Umbraco.Core/Services/IRelationService.cs @@ -1,9 +1,9 @@ using System; using System.Collections.Generic; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; -namespace Umbraco.Core.Services +namespace Umbraco.Cms.Core.Services { public interface IRelationService : IService { @@ -351,7 +351,7 @@ namespace Umbraco.Core.Services /// to Delete Relations for void DeleteRelationsOfType(IRelationType relationType); - + } } diff --git a/src/Umbraco.Core/Services/IRuntime.cs b/src/Umbraco.Core/Services/IRuntime.cs index d1254c219f..b10c9fe90f 100644 --- a/src/Umbraco.Core/Services/IRuntime.cs +++ b/src/Umbraco.Core/Services/IRuntime.cs @@ -1,6 +1,6 @@ using Microsoft.Extensions.Hosting; -namespace Umbraco.Core +namespace Umbraco.Cms.Core.Services { /// /// Defines the Umbraco runtime. diff --git a/src/Umbraco.Core/Services/IRuntimeState.cs b/src/Umbraco.Core/Services/IRuntimeState.cs index 2e5f8630d4..e36c10290e 100644 --- a/src/Umbraco.Core/Services/IRuntimeState.cs +++ b/src/Umbraco.Core/Services/IRuntimeState.cs @@ -1,9 +1,8 @@ using System; -using Semver; -using Umbraco.Core.Exceptions; -using Umbraco.Core.Sync; +using Umbraco.Cms.Core.Exceptions; +using Umbraco.Cms.Core.Semver; -namespace Umbraco.Core +namespace Umbraco.Cms.Core.Services { /// /// Represents the state of the Umbraco runtime. diff --git a/src/Umbraco.Core/Services/ISectionService.cs b/src/Umbraco.Core/Services/ISectionService.cs index 94ff6cf511..94aa267dab 100644 --- a/src/Umbraco.Core/Services/ISectionService.cs +++ b/src/Umbraco.Core/Services/ISectionService.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Models.Sections; +using Umbraco.Cms.Core.Sections; -namespace Umbraco.Web.Services +namespace Umbraco.Cms.Core.Services { public interface ISectionService { diff --git a/src/Umbraco.Core/Services/IServerRegistrationService.cs b/src/Umbraco.Core/Services/IServerRegistrationService.cs index f0246dd287..d5cfd9f7a7 100644 --- a/src/Umbraco.Core/Services/IServerRegistrationService.cs +++ b/src/Umbraco.Core/Services/IServerRegistrationService.cs @@ -1,9 +1,9 @@ using System; using System.Collections.Generic; -using Umbraco.Core.Models; -using Umbraco.Core.Sync; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Sync; -namespace Umbraco.Core.Services +namespace Umbraco.Cms.Core.Services { public interface IServerRegistrationService { diff --git a/src/Umbraco.Core/Services/IService.cs b/src/Umbraco.Core/Services/IService.cs index c38949dbb3..6ca00a8dbe 100644 --- a/src/Umbraco.Core/Services/IService.cs +++ b/src/Umbraco.Core/Services/IService.cs @@ -1,6 +1,4 @@ -using Umbraco.Core.Logging; - -namespace Umbraco.Core.Services +namespace Umbraco.Cms.Core.Services { /// /// Marker interface for services, which is used to store difference services in a list or dictionary diff --git a/src/Umbraco.Core/Services/ITagService.cs b/src/Umbraco.Core/Services/ITagService.cs index 6be18624cb..7a75b99c24 100644 --- a/src/Umbraco.Core/Services/ITagService.cs +++ b/src/Umbraco.Core/Services/ITagService.cs @@ -1,8 +1,8 @@ using System; using System.Collections.Generic; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Services +namespace Umbraco.Cms.Core.Services { /// /// Tag service to query for tags in the tags db table. The tags returned are only relevant for published content & saved media or members diff --git a/src/Umbraco.Core/Services/ITreeService.cs b/src/Umbraco.Core/Services/ITreeService.cs index f9ed522e71..362eab4594 100644 --- a/src/Umbraco.Core/Services/ITreeService.cs +++ b/src/Umbraco.Core/Services/ITreeService.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Web.Trees; +using Umbraco.Cms.Core.Trees; -namespace Umbraco.Web.Services +namespace Umbraco.Cms.Core.Services { /// /// Represents a service which manages section trees. diff --git a/src/Umbraco.Core/Services/IUpgradeService.cs b/src/Umbraco.Core/Services/IUpgradeService.cs index 70bbb68085..2e0f2a5f17 100644 --- a/src/Umbraco.Core/Services/IUpgradeService.cs +++ b/src/Umbraco.Core/Services/IUpgradeService.cs @@ -1,8 +1,7 @@ using System.Threading.Tasks; -using Semver; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Semver; -namespace Umbraco.Core.Services +namespace Umbraco.Cms.Core.Services { public interface IUpgradeService { diff --git a/src/Umbraco.Core/Services/IUserService.cs b/src/Umbraco.Core/Services/IUserService.cs index 6d1e8f82ac..a4af73e084 100644 --- a/src/Umbraco.Core/Services/IUserService.cs +++ b/src/Umbraco.Core/Services/IUserService.cs @@ -1,9 +1,9 @@ using System; using System.Collections.Generic; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Persistence.Querying; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Persistence.Querying; -namespace Umbraco.Core.Services +namespace Umbraco.Cms.Core.Services { /// /// Defines the UserService, which is an easy access to operations involving and eventually Users. diff --git a/src/Umbraco.Core/Services/InstallationService.cs b/src/Umbraco.Core/Services/InstallationService.cs index 6e283a61d7..eb1632be8a 100644 --- a/src/Umbraco.Core/Services/InstallationService.cs +++ b/src/Umbraco.Core/Services/InstallationService.cs @@ -1,8 +1,7 @@ using System.Threading.Tasks; -using Umbraco.Core.Models; -using Umbraco.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Persistence.Repositories; -namespace Umbraco.Core.Services +namespace Umbraco.Cms.Core.Services { public class InstallationService : IInstallationService { diff --git a/src/Umbraco.Core/Services/LocalizedTextServiceExtensions.cs b/src/Umbraco.Core/Services/LocalizedTextServiceExtensions.cs index e02cdec7c9..598cebc2c0 100644 --- a/src/Umbraco.Core/Services/LocalizedTextServiceExtensions.cs +++ b/src/Umbraco.Core/Services/LocalizedTextServiceExtensions.cs @@ -1,23 +1,27 @@ -using System.Collections.Generic; +// Copyright (c) Umbraco. +// See LICENSE for more details. + +using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Threading; -using Umbraco.Core.Dictionary; +using Umbraco.Cms.Core.Dictionary; +using Umbraco.Cms.Core.Services; -namespace Umbraco.Core.Services +namespace Umbraco.Extensions { /// /// Extension methods for ILocalizedTextService /// public static class LocalizedTextServiceExtensions { - public static string Localize(this ILocalizedTextService manager, string area, T key) where T: System.Enum { var fullKey = string.Join("/", area, key); return manager.Localize(fullKey, Thread.CurrentThread.CurrentUICulture); } + public static string Localize(this ILocalizedTextService manager, string area, string key) { var fullKey = string.Join("/", area, key); diff --git a/src/Umbraco.Core/Services/MediaServiceExtensions.cs b/src/Umbraco.Core/Services/MediaServiceExtensions.cs index 68924bc58b..ef0dfa5f97 100644 --- a/src/Umbraco.Core/Services/MediaServiceExtensions.cs +++ b/src/Umbraco.Core/Services/MediaServiceExtensions.cs @@ -1,9 +1,14 @@ -using System; +// Copyright (c) Umbraco. +// See LICENSE for more details. + +using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core.Models; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; -namespace Umbraco.Core.Services +namespace Umbraco.Extensions { /// /// Media service extension methods diff --git a/src/Umbraco.Core/Services/MoveOperationStatusType.cs b/src/Umbraco.Core/Services/MoveOperationStatusType.cs index b4b4c2b42e..4de17b2fa5 100644 --- a/src/Umbraco.Core/Services/MoveOperationStatusType.cs +++ b/src/Umbraco.Core/Services/MoveOperationStatusType.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Services +namespace Umbraco.Cms.Core.Services { /// diff --git a/src/Umbraco.Core/Services/OperationResult.cs b/src/Umbraco.Core/Services/OperationResult.cs index 2f0c09e272..f00c6b5d30 100644 --- a/src/Umbraco.Core/Services/OperationResult.cs +++ b/src/Umbraco.Core/Services/OperationResult.cs @@ -1,7 +1,7 @@ using System; -using Umbraco.Core.Events; +using Umbraco.Cms.Core.Events; -namespace Umbraco.Core.Services +namespace Umbraco.Cms.Core.Services { // TODO: no need for Attempt - the operation result SHOULD KNOW if it's a success or a failure! // but then each WhateverResultType must diff --git a/src/Umbraco.Core/Services/OperationResultType.cs b/src/Umbraco.Core/Services/OperationResultType.cs index 918f1c49fa..15b332e43c 100644 --- a/src/Umbraco.Core/Services/OperationResultType.cs +++ b/src/Umbraco.Core/Services/OperationResultType.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Services +namespace Umbraco.Cms.Core.Services { /// /// A value indicating the result of an operation. diff --git a/src/Umbraco.Core/Services/Ordering.cs b/src/Umbraco.Core/Services/Ordering.cs index b2f4cf4808..7a843191d3 100644 --- a/src/Umbraco.Core/Services/Ordering.cs +++ b/src/Umbraco.Core/Services/Ordering.cs @@ -1,4 +1,6 @@ -namespace Umbraco.Core.Services +using Umbraco.Extensions; + +namespace Umbraco.Cms.Core.Services { /// /// Represents ordering information. diff --git a/src/Umbraco.Core/Services/PublicAccessServiceExtensions.cs b/src/Umbraco.Core/Services/PublicAccessServiceExtensions.cs index cb2a5f4956..41bf9ac349 100644 --- a/src/Umbraco.Core/Services/PublicAccessServiceExtensions.cs +++ b/src/Umbraco.Core/Services/PublicAccessServiceExtensions.cs @@ -1,16 +1,20 @@ -using System; +// Copyright (c) Umbraco. +// See LICENSE for more details. + +using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core.Models; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; -namespace Umbraco.Core.Services +namespace Umbraco.Extensions { /// /// Extension methods for the IPublicAccessService /// public static class PublicAccessServiceExtensions { - public static bool RenameMemberGroupRoleRules(this IPublicAccessService publicAccessService, string oldRolename, string newRolename) { var hasChange = false; diff --git a/src/Umbraco.Core/Services/PublishResult.cs b/src/Umbraco.Core/Services/PublishResult.cs index fe11d77cf3..2b01d45d68 100644 --- a/src/Umbraco.Core/Services/PublishResult.cs +++ b/src/Umbraco.Core/Services/PublishResult.cs @@ -1,8 +1,8 @@ using System.Collections.Generic; -using Umbraco.Core.Events; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Services +namespace Umbraco.Cms.Core.Services { /// diff --git a/src/Umbraco.Core/Services/PublishResultType.cs b/src/Umbraco.Core/Services/PublishResultType.cs index 66c1e38267..43fab58218 100644 --- a/src/Umbraco.Core/Services/PublishResultType.cs +++ b/src/Umbraco.Core/Services/PublishResultType.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Services +namespace Umbraco.Cms.Core.Services { /// /// A value indicating the result of publishing or unpublishing a document. @@ -120,15 +120,15 @@ /// /// The document could not be published because it has no publishing flags or values or if its a variant document, no cultures were specified to be published. /// - FailedPublishNothingToPublish = FailedPublish | 9, + FailedPublishNothingToPublish = FailedPublish | 9, /// /// The document could not be published because some mandatory cultures are missing. /// - FailedPublishMandatoryCultureMissing = FailedPublish | 10, // in ContentService.SavePublishing + FailedPublishMandatoryCultureMissing = FailedPublish | 10, // in ContentService.SavePublishing /// - /// The document could not be published because it has been modified by another user. + /// The document could not be published because it has been modified by another user. /// FailedPublishConcurrencyViolation = FailedPublish | 11, diff --git a/src/Umbraco.Core/Services/SectionService.cs b/src/Umbraco.Core/Services/SectionService.cs index f66ab5ef62..93f6d624c3 100644 --- a/src/Umbraco.Core/Services/SectionService.cs +++ b/src/Umbraco.Core/Services/SectionService.cs @@ -1,11 +1,9 @@ using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core.Models.Sections; -using Umbraco.Core.Services; -using Umbraco.Web.Sections; +using Umbraco.Cms.Core.Sections; -namespace Umbraco.Web.Services +namespace Umbraco.Cms.Core.Services { public class SectionService : ISectionService { diff --git a/src/Umbraco.Core/Services/ServiceContext.cs b/src/Umbraco.Core/Services/ServiceContext.cs index c9bdc6d924..2a77a562ae 100644 --- a/src/Umbraco.Core/Services/ServiceContext.cs +++ b/src/Umbraco.Core/Services/ServiceContext.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Services +namespace Umbraco.Cms.Core.Services { /// /// Represents the Umbraco Service context, which provides access to all services. diff --git a/src/Umbraco.Core/Services/TreeService.cs b/src/Umbraco.Core/Services/TreeService.cs index 48cc98b2db..9dbe5edb4f 100644 --- a/src/Umbraco.Core/Services/TreeService.cs +++ b/src/Umbraco.Core/Services/TreeService.cs @@ -1,10 +1,9 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; -using Umbraco.Core; -using Umbraco.Web.Trees; +using Umbraco.Cms.Core.Trees; +using Umbraco.Extensions; -namespace Umbraco.Web.Services +namespace Umbraco.Cms.Core.Services { /// /// Implements . diff --git a/src/Umbraco.Core/Services/UpgradeService.cs b/src/Umbraco.Core/Services/UpgradeService.cs index b36eac7789..e2003f8370 100644 --- a/src/Umbraco.Core/Services/UpgradeService.cs +++ b/src/Umbraco.Core/Services/UpgradeService.cs @@ -1,9 +1,8 @@ using System.Threading.Tasks; -using Semver; -using Umbraco.Core.Models; -using Umbraco.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Semver; -namespace Umbraco.Core.Services +namespace Umbraco.Cms.Core.Services { public class UpgradeService : IUpgradeService { diff --git a/src/Umbraco.Core/Services/UserServiceExtensions.cs b/src/Umbraco.Core/Services/UserServiceExtensions.cs index 4f5eb3c948..7206f74964 100644 --- a/src/Umbraco.Core/Services/UserServiceExtensions.cs +++ b/src/Umbraco.Core/Services/UserServiceExtensions.cs @@ -1,9 +1,10 @@ using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core.Models.Membership; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Services; -namespace Umbraco.Core.Services +namespace Umbraco.Extensions { public static class UserServiceExtensions { diff --git a/src/Umbraco.Core/Settable.cs b/src/Umbraco.Core/Settable.cs index ba46543d4d..0d2802226f 100644 --- a/src/Umbraco.Core/Settable.cs +++ b/src/Umbraco.Core/Settable.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core +namespace Umbraco.Cms.Core { /// /// Represents a value that can be assigned a value. diff --git a/src/Umbraco.Core/SimpleMainDom.cs b/src/Umbraco.Core/SimpleMainDom.cs index 76e6d9a919..204734d918 100644 --- a/src/Umbraco.Core/SimpleMainDom.cs +++ b/src/Umbraco.Core/SimpleMainDom.cs @@ -1,9 +1,10 @@ using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core.Hosting; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Runtime; -namespace Umbraco.Core +namespace Umbraco.Cms.Core { /// /// Provides a simple implementation of . diff --git a/src/Umbraco.Core/StaticApplicationLogging.cs b/src/Umbraco.Core/StaticApplicationLogging.cs index 84cdc3c2d2..e216011014 100644 --- a/src/Umbraco.Core/StaticApplicationLogging.cs +++ b/src/Umbraco.Core/StaticApplicationLogging.cs @@ -1,7 +1,7 @@ using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging.Abstractions; -namespace Umbraco.Core +namespace Umbraco.Cms.Core { public static class StaticApplicationLogging { diff --git a/src/Umbraco.Core/StringUdi.cs b/src/Umbraco.Core/StringUdi.cs index 7e067ad6f9..f2b138a938 100644 --- a/src/Umbraco.Core/StringUdi.cs +++ b/src/Umbraco.Core/StringUdi.cs @@ -2,7 +2,7 @@ using System.ComponentModel; using System.Linq; -namespace Umbraco.Core +namespace Umbraco.Cms.Core { /// /// Represents a string-based entity identifier. diff --git a/src/Umbraco.Core/Strings/CleanStringType.cs b/src/Umbraco.Core/Strings/CleanStringType.cs index 95942fb9bf..771e834d35 100644 --- a/src/Umbraco.Core/Strings/CleanStringType.cs +++ b/src/Umbraco.Core/Strings/CleanStringType.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Strings +namespace Umbraco.Cms.Core.Strings { /// /// Specifies the type of a clean string. diff --git a/src/Umbraco.Core/Strings/Css/StylesheetHelper.cs b/src/Umbraco.Core/Strings/Css/StylesheetHelper.cs index 80315abb95..51dffe5ab9 100644 --- a/src/Umbraco.Core/Strings/Css/StylesheetHelper.cs +++ b/src/Umbraco.Core/Strings/Css/StylesheetHelper.cs @@ -2,8 +2,9 @@ using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; +using Umbraco.Extensions; -namespace Umbraco.Core.Strings.Css +namespace Umbraco.Cms.Core.Strings.Css { public class StylesheetHelper { diff --git a/src/Umbraco.Core/Strings/Css/StylesheetRule.cs b/src/Umbraco.Core/Strings/Css/StylesheetRule.cs index c12cc5b90c..c132c5d592 100644 --- a/src/Umbraco.Core/Strings/Css/StylesheetRule.cs +++ b/src/Umbraco.Core/Strings/Css/StylesheetRule.cs @@ -1,8 +1,8 @@ using System; -using System.Linq; using System.Text; +using Umbraco.Extensions; -namespace Umbraco.Core.Strings.Css +namespace Umbraco.Cms.Core.Strings.Css { public class StylesheetRule { diff --git a/src/Umbraco.Core/Strings/DefaultShortStringHelper.cs b/src/Umbraco.Core/Strings/DefaultShortStringHelper.cs index 492ded29e2..558e1af75c 100644 --- a/src/Umbraco.Core/Strings/DefaultShortStringHelper.cs +++ b/src/Umbraco.Core/Strings/DefaultShortStringHelper.cs @@ -1,13 +1,13 @@ using System; using System.Diagnostics; +using System.Globalization; using System.IO; using System.Linq; -using System.Globalization; -using Umbraco.Core.Configuration.UmbracoSettings; -using Umbraco.Core.Configuration.Models; using Microsoft.Extensions.Options; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Extensions; -namespace Umbraco.Core.Strings +namespace Umbraco.Cms.Core.Strings { /// /// New default implementation of string functions for short strings such as aliases or URL segments. diff --git a/src/Umbraco.Core/Strings/DefaultShortStringHelperConfig.cs b/src/Umbraco.Core/Strings/DefaultShortStringHelperConfig.cs index d6adf5b221..cf5e71a568 100644 --- a/src/Umbraco.Core/Strings/DefaultShortStringHelperConfig.cs +++ b/src/Umbraco.Core/Strings/DefaultShortStringHelperConfig.cs @@ -1,10 +1,10 @@ using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Configuration.UmbracoSettings; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Extensions; -namespace Umbraco.Core.Strings +namespace Umbraco.Cms.Core.Strings { public class DefaultShortStringHelperConfig { diff --git a/src/Umbraco.Core/Strings/DefaultUrlSegmentProvider.cs b/src/Umbraco.Core/Strings/DefaultUrlSegmentProvider.cs index 6ec21b0986..a266b52f6b 100644 --- a/src/Umbraco.Core/Strings/DefaultUrlSegmentProvider.cs +++ b/src/Umbraco.Core/Strings/DefaultUrlSegmentProvider.cs @@ -1,6 +1,7 @@ -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Extensions; -namespace Umbraco.Core.Strings +namespace Umbraco.Cms.Core.Strings { /// /// Default implementation of IUrlSegmentProvider. diff --git a/src/Umbraco.Core/Strings/Diff.cs b/src/Umbraco.Core/Strings/Diff.cs index 6cd4985ead..8486875ad1 100644 --- a/src/Umbraco.Core/Strings/Diff.cs +++ b/src/Umbraco.Core/Strings/Diff.cs @@ -1,11 +1,8 @@ using System; using System.Collections; -using System.Collections.Generic; -using System.Linq; -using System.Text; using System.Text.RegularExpressions; -namespace Umbraco.Core.Strings +namespace Umbraco.Cms.Core.Strings { /// /// This Class implements the Difference Algorithm published in diff --git a/src/Umbraco.Core/Strings/HtmlEncodedString.cs b/src/Umbraco.Core/Strings/HtmlEncodedString.cs index 936b163615..16941cef48 100644 --- a/src/Umbraco.Core/Strings/HtmlEncodedString.cs +++ b/src/Umbraco.Core/Strings/HtmlEncodedString.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Strings +namespace Umbraco.Cms.Core.Strings { /// /// Represents an HTML-encoded string that should not be encoded again. diff --git a/src/Umbraco.Core/Strings/IHtmlEncodedString.cs b/src/Umbraco.Core/Strings/IHtmlEncodedString.cs index 0096a8a1f3..9747350f3a 100644 --- a/src/Umbraco.Core/Strings/IHtmlEncodedString.cs +++ b/src/Umbraco.Core/Strings/IHtmlEncodedString.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Strings +namespace Umbraco.Cms.Core.Strings { /// /// Represents an HTML-encoded string that should not be encoded again. diff --git a/src/Umbraco.Core/Strings/IShortStringHelper.cs b/src/Umbraco.Core/Strings/IShortStringHelper.cs index 37873caded..a424a0bf45 100644 --- a/src/Umbraco.Core/Strings/IShortStringHelper.cs +++ b/src/Umbraco.Core/Strings/IShortStringHelper.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Strings +namespace Umbraco.Cms.Core.Strings { /// /// Provides string functions for short strings such as aliases or URL segments. diff --git a/src/Umbraco.Core/Strings/IUrlSegmentProvider.cs b/src/Umbraco.Core/Strings/IUrlSegmentProvider.cs index fddb87e716..849f04a973 100644 --- a/src/Umbraco.Core/Strings/IUrlSegmentProvider.cs +++ b/src/Umbraco.Core/Strings/IUrlSegmentProvider.cs @@ -1,7 +1,6 @@ -using System.Globalization; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core.Strings +namespace Umbraco.Cms.Core.Strings { /// /// Provides URL segments for content. diff --git a/src/Umbraco.Core/Strings/PathUtility.cs b/src/Umbraco.Core/Strings/PathUtility.cs index 973f1dccf2..bc88fa8bca 100644 --- a/src/Umbraco.Core/Strings/PathUtility.cs +++ b/src/Umbraco.Core/Strings/PathUtility.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Strings +namespace Umbraco.Cms.Core.Strings { public static class PathUtility { diff --git a/src/Umbraco.Core/Strings/UrlSegmentProviderCollection.cs b/src/Umbraco.Core/Strings/UrlSegmentProviderCollection.cs index ba434f6a0d..7307c8964a 100644 --- a/src/Umbraco.Core/Strings/UrlSegmentProviderCollection.cs +++ b/src/Umbraco.Core/Strings/UrlSegmentProviderCollection.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Core.Strings +namespace Umbraco.Cms.Core.Strings { public class UrlSegmentProviderCollection : BuilderCollectionBase { diff --git a/src/Umbraco.Core/Strings/UrlSegmentProviderCollectionBuilder.cs b/src/Umbraco.Core/Strings/UrlSegmentProviderCollectionBuilder.cs index 5183c28e15..60504734f6 100644 --- a/src/Umbraco.Core/Strings/UrlSegmentProviderCollectionBuilder.cs +++ b/src/Umbraco.Core/Strings/UrlSegmentProviderCollectionBuilder.cs @@ -1,6 +1,6 @@ -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Core.Strings +namespace Umbraco.Cms.Core.Strings { public class UrlSegmentProviderCollectionBuilder : OrderedCollectionBuilderBase { diff --git a/src/Umbraco.Core/Strings/Utf8ToAsciiConverter.cs b/src/Umbraco.Core/Strings/Utf8ToAsciiConverter.cs index fea5e2b386..3f492a7b87 100644 --- a/src/Umbraco.Core/Strings/Utf8ToAsciiConverter.cs +++ b/src/Umbraco.Core/Strings/Utf8ToAsciiConverter.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Strings +namespace Umbraco.Cms.Core.Strings { /// /// Provides methods to convert Utf8 text to Ascii. diff --git a/src/Umbraco.Core/Sync/DatabaseServerMessengerCallbacks.cs b/src/Umbraco.Core/Sync/DatabaseServerMessengerCallbacks.cs index f7dafac7a6..2107bbde20 100644 --- a/src/Umbraco.Core/Sync/DatabaseServerMessengerCallbacks.cs +++ b/src/Umbraco.Core/Sync/DatabaseServerMessengerCallbacks.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; -namespace Umbraco.Core.Sync +namespace Umbraco.Cms.Core.Sync { /// /// Holds a list of callbacks associated with implementations of . diff --git a/src/Umbraco.Core/Sync/ElectedServerRoleAccessor.cs b/src/Umbraco.Core/Sync/ElectedServerRoleAccessor.cs index e4accd046b..3c4d8a2b47 100644 --- a/src/Umbraco.Core/Sync/ElectedServerRoleAccessor.cs +++ b/src/Umbraco.Core/Sync/ElectedServerRoleAccessor.cs @@ -1,7 +1,7 @@ using System; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Services; -namespace Umbraco.Core.Sync +namespace Umbraco.Cms.Core.Sync { /// /// Gets the current server's based on active servers registered with diff --git a/src/Umbraco.Core/Sync/IServerAddress.cs b/src/Umbraco.Core/Sync/IServerAddress.cs index be74b8483f..c9333f33b8 100644 --- a/src/Umbraco.Core/Sync/IServerAddress.cs +++ b/src/Umbraco.Core/Sync/IServerAddress.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Sync +namespace Umbraco.Cms.Core.Sync { /// /// Provides the address of a server. diff --git a/src/Umbraco.Core/Sync/IServerMessenger.cs b/src/Umbraco.Core/Sync/IServerMessenger.cs index df2d665057..e58cfe9bc0 100644 --- a/src/Umbraco.Core/Sync/IServerMessenger.cs +++ b/src/Umbraco.Core/Sync/IServerMessenger.cs @@ -1,7 +1,7 @@ using System; -using Umbraco.Core.Cache; +using Umbraco.Cms.Core.Cache; -namespace Umbraco.Core.Sync +namespace Umbraco.Cms.Core.Sync { /// /// Transmits distributed cache notifications for all servers of a load balanced environment. diff --git a/src/Umbraco.Core/Sync/IServerRoleAccessor.cs b/src/Umbraco.Core/Sync/IServerRoleAccessor.cs index b23acbac7c..1ebd59b26d 100644 --- a/src/Umbraco.Core/Sync/IServerRoleAccessor.cs +++ b/src/Umbraco.Core/Sync/IServerRoleAccessor.cs @@ -1,6 +1,4 @@ -using System.Collections.Generic; - -namespace Umbraco.Core.Sync +namespace Umbraco.Cms.Core.Sync { /// /// Gets the current server's diff --git a/src/Umbraco.Core/Sync/MessageType.cs b/src/Umbraco.Core/Sync/MessageType.cs index 36d35e046a..5164428632 100644 --- a/src/Umbraco.Core/Sync/MessageType.cs +++ b/src/Umbraco.Core/Sync/MessageType.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Sync +namespace Umbraco.Cms.Core.Sync { /// /// The message type to be used for syncing across servers. diff --git a/src/Umbraco.Core/Sync/RefreshMethodType.cs b/src/Umbraco.Core/Sync/RefreshMethodType.cs index d5e9046540..bf72423c1f 100644 --- a/src/Umbraco.Core/Sync/RefreshMethodType.cs +++ b/src/Umbraco.Core/Sync/RefreshMethodType.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core.Sync +namespace Umbraco.Cms.Core.Sync { /// /// Describes refresh action type. diff --git a/src/Umbraco.Core/Sync/ServerRole.cs b/src/Umbraco.Core/Sync/ServerRole.cs index 21091e41c5..27358608a4 100644 --- a/src/Umbraco.Core/Sync/ServerRole.cs +++ b/src/Umbraco.Core/Sync/ServerRole.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Sync +namespace Umbraco.Cms.Core.Sync { /// /// The role of a server in an application environment. diff --git a/src/Umbraco.Core/Sync/SingleServerRoleAccessor.cs b/src/Umbraco.Core/Sync/SingleServerRoleAccessor.cs index 65b9559522..43fd421ac5 100644 --- a/src/Umbraco.Core/Sync/SingleServerRoleAccessor.cs +++ b/src/Umbraco.Core/Sync/SingleServerRoleAccessor.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using Umbraco.Web; - -namespace Umbraco.Core.Sync +namespace Umbraco.Cms.Core.Sync { /// /// Can be used when Umbraco is definitely not operating in a Load Balanced scenario to micro-optimize some startup performance diff --git a/src/Umbraco.Core/SystemLock.cs b/src/Umbraco.Core/SystemLock.cs index 704fc65123..a4224560c1 100644 --- a/src/Umbraco.Core/SystemLock.cs +++ b/src/Umbraco.Core/SystemLock.cs @@ -1,10 +1,9 @@ using System; using System.Runtime.ConstrainedExecution; -using System.Runtime.InteropServices; using System.Threading; using System.Threading.Tasks; -namespace Umbraco.Core +namespace Umbraco.Cms.Core { // http://blogs.msdn.com/b/pfxteam/archive/2012/02/12/10266988.aspx // diff --git a/src/Umbraco.Core/TaskHelper.cs b/src/Umbraco.Core/TaskHelper.cs index 6afa94a941..113327ed88 100644 --- a/src/Umbraco.Core/TaskHelper.cs +++ b/src/Umbraco.Core/TaskHelper.cs @@ -5,7 +5,7 @@ using System; using System.Threading.Tasks; using Microsoft.Extensions.Logging; -namespace Umbraco.Core +namespace Umbraco.Cms.Core { /// /// Helper class to not repeat common patterns with Task. diff --git a/src/Umbraco.Core/Templates/HtmlImageSourceParser.cs b/src/Umbraco.Core/Templates/HtmlImageSourceParser.cs index 0394183740..c14a7a7bdf 100644 --- a/src/Umbraco.Core/Templates/HtmlImageSourceParser.cs +++ b/src/Umbraco.Core/Templates/HtmlImageSourceParser.cs @@ -1,10 +1,10 @@ using System; using System.Collections.Generic; using System.Text.RegularExpressions; -using Umbraco.Core; -using Umbraco.Web.Routing; +using Umbraco.Cms.Core.Routing; +using Umbraco.Extensions; -namespace Umbraco.Web.Templates +namespace Umbraco.Cms.Core.Templates { public sealed class HtmlImageSourceParser diff --git a/src/Umbraco.Core/Templates/HtmlLocalLinkParser.cs b/src/Umbraco.Core/Templates/HtmlLocalLinkParser.cs index 93229775b1..12762ee294 100644 --- a/src/Umbraco.Core/Templates/HtmlLocalLinkParser.cs +++ b/src/Umbraco.Core/Templates/HtmlLocalLinkParser.cs @@ -1,10 +1,10 @@ using System; using System.Collections.Generic; using System.Text.RegularExpressions; -using Umbraco.Core; -using Umbraco.Web.Routing; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Web; -namespace Umbraco.Web.Templates +namespace Umbraco.Cms.Core.Templates { /// /// Utility class used to parse internal links diff --git a/src/Umbraco.Core/Templates/HtmlUrlParser.cs b/src/Umbraco.Core/Templates/HtmlUrlParser.cs index 254521d1c6..97bab9276a 100644 --- a/src/Umbraco.Core/Templates/HtmlUrlParser.cs +++ b/src/Umbraco.Core/Templates/HtmlUrlParser.cs @@ -1,11 +1,11 @@ using System.Text.RegularExpressions; -using Microsoft.Extensions.Options; using Microsoft.Extensions.Logging; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.IO; -using Umbraco.Core.Logging; +using Microsoft.Extensions.Options; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Logging; -namespace Umbraco.Web.Templates +namespace Umbraco.Cms.Core.Templates { public sealed class HtmlUrlParser { diff --git a/src/Umbraco.Core/Templates/ITemplateRenderer.cs b/src/Umbraco.Core/Templates/ITemplateRenderer.cs index 7a6248e034..f6e6435a8a 100644 --- a/src/Umbraco.Core/Templates/ITemplateRenderer.cs +++ b/src/Umbraco.Core/Templates/ITemplateRenderer.cs @@ -1,7 +1,7 @@ using System.IO; using System.Threading.Tasks; -namespace Umbraco.Web.Templates +namespace Umbraco.Cms.Core.Templates { /// /// This is used purely for the RenderTemplate functionality in Umbraco diff --git a/src/Umbraco.Core/Templates/IUmbracoComponentRenderer.cs b/src/Umbraco.Core/Templates/IUmbracoComponentRenderer.cs index fcfdd815f6..a150337095 100644 --- a/src/Umbraco.Core/Templates/IUmbracoComponentRenderer.cs +++ b/src/Umbraco.Core/Templates/IUmbracoComponentRenderer.cs @@ -1,9 +1,9 @@ using System.Collections.Generic; using System.Threading.Tasks; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Strings; -namespace Umbraco.Core.Templates +namespace Umbraco.Cms.Core.Templates { /// /// Methods used to render umbraco components as HTML in templates diff --git a/src/Umbraco.Core/Templates/UmbracoComponentRenderer.cs b/src/Umbraco.Core/Templates/UmbracoComponentRenderer.cs index d0b6972bc3..510fa70bcf 100644 --- a/src/Umbraco.Core/Templates/UmbracoComponentRenderer.cs +++ b/src/Umbraco.Core/Templates/UmbracoComponentRenderer.cs @@ -1,16 +1,16 @@ using System; -using System.Linq; -using System.IO; -using Umbraco.Web.Templates; using System.Collections.Generic; +using System.IO; +using System.Linq; using System.Net; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Strings; -using Umbraco.Web; -using Umbraco.Web.Macros; using System.Threading.Tasks; +using Umbraco.Cms.Core.Macros; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Core.Web; +using Umbraco.Extensions; -namespace Umbraco.Core.Templates +namespace Umbraco.Cms.Core.Templates { /// diff --git a/src/Umbraco.Core/Tour/BackOfficeTourFilter.cs b/src/Umbraco.Core/Tour/BackOfficeTourFilter.cs index bcca2e6673..281f2a1663 100644 --- a/src/Umbraco.Core/Tour/BackOfficeTourFilter.cs +++ b/src/Umbraco.Core/Tour/BackOfficeTourFilter.cs @@ -1,6 +1,6 @@ using System.Text.RegularExpressions; -namespace Umbraco.Web.Tour +namespace Umbraco.Cms.Core.Tour { /// /// Represents a back-office tour filter. @@ -14,7 +14,7 @@ namespace Umbraco.Web.Tour /// Value to filter out a tour file, can be null /// Value to filter out a tour alias, can be null /// - /// Depending on what is null will depend on how the filter is applied. + /// Depending on what is null will depend on how the filter is applied. /// If pluginName is not NULL and it's matched then we check if tourFileName is not NULL and it's matched then we check tour alias is not NULL and then match it, /// if any steps is NULL then the filters upstream are applied. /// Example, pluginName = "hello", tourFileName="stuff", tourAlias=NULL = we will filter out the tour file "stuff" from the plugin "hello" but not from other plugins if the same file name exists. diff --git a/src/Umbraco.Core/Tour/TourFilterCollection.cs b/src/Umbraco.Core/Tour/TourFilterCollection.cs index e221c17170..5c55d0e0cd 100644 --- a/src/Umbraco.Core/Tour/TourFilterCollection.cs +++ b/src/Umbraco.Core/Tour/TourFilterCollection.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Web.Tour +namespace Umbraco.Cms.Core.Tour { /// /// Represents a collection of items. diff --git a/src/Umbraco.Core/Tour/TourFilterCollectionBuilder.cs b/src/Umbraco.Core/Tour/TourFilterCollectionBuilder.cs index eac519494a..61f10cc96d 100644 --- a/src/Umbraco.Core/Tour/TourFilterCollectionBuilder.cs +++ b/src/Umbraco.Core/Tour/TourFilterCollectionBuilder.cs @@ -2,10 +2,10 @@ using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; -using Umbraco.Core; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; +using Umbraco.Extensions; -namespace Umbraco.Web.Tour +namespace Umbraco.Cms.Core.Tour { /// /// Builds a collection of items. diff --git a/src/Umbraco.Core/Trees/ActionUrlMethod.cs b/src/Umbraco.Core/Trees/ActionUrlMethod.cs index a6c3b4a577..fcf455c6ad 100644 --- a/src/Umbraco.Core/Trees/ActionUrlMethod.cs +++ b/src/Umbraco.Core/Trees/ActionUrlMethod.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.Trees +namespace Umbraco.Cms.Core.Trees { /// /// Specifies the action to take for a menu item when a URL is specified diff --git a/src/Umbraco.Core/Trees/CoreTreeAttribute.cs b/src/Umbraco.Core/Trees/CoreTreeAttribute.cs index c1d8d3726a..eedad5b600 100644 --- a/src/Umbraco.Core/Trees/CoreTreeAttribute.cs +++ b/src/Umbraco.Core/Trees/CoreTreeAttribute.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Web.Trees +namespace Umbraco.Cms.Core.Trees { /// /// Indicates that a tree is a core tree and should not be treated as a plugin tree. diff --git a/src/Umbraco.Core/Trees/IMenuItemCollectionFactory.cs b/src/Umbraco.Core/Trees/IMenuItemCollectionFactory.cs index dc4c53bac9..fca82ca18b 100644 --- a/src/Umbraco.Core/Trees/IMenuItemCollectionFactory.cs +++ b/src/Umbraco.Core/Trees/IMenuItemCollectionFactory.cs @@ -1,6 +1,4 @@ -using Umbraco.Web.Models.Trees; - -namespace Umbraco.Web.Trees +namespace Umbraco.Cms.Core.Trees { /// diff --git a/src/Umbraco.Core/Trees/ISearchableTree.cs b/src/Umbraco.Core/Trees/ISearchableTree.cs index 8f31c2c6ab..9464dbefd3 100644 --- a/src/Umbraco.Core/Trees/ISearchableTree.cs +++ b/src/Umbraco.Core/Trees/ISearchableTree.cs @@ -1,8 +1,8 @@ using System.Collections.Generic; -using Umbraco.Core.Composing; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Models.ContentEditing; -namespace Umbraco.Core.Trees +namespace Umbraco.Cms.Core.Trees { public interface ISearchableTree : IDiscoverable { diff --git a/src/Umbraco.Core/Trees/ITree.cs b/src/Umbraco.Core/Trees/ITree.cs index 7f7ff816be..b114b83d22 100644 --- a/src/Umbraco.Core/Trees/ITree.cs +++ b/src/Umbraco.Core/Trees/ITree.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.Trees +namespace Umbraco.Cms.Core.Trees { // TODO: we don't really use this, it is nice to have the treecontroller, attribute and ApplicationTree streamlined to implement this but it's not used // leave as internal for now, maybe we'll use in the future, means we could pass around ITree diff --git a/src/Umbraco.Core/Trees/MenuItemCollection.cs b/src/Umbraco.Core/Trees/MenuItemCollection.cs index 84d46c0d11..0a83255368 100644 --- a/src/Umbraco.Core/Trees/MenuItemCollection.cs +++ b/src/Umbraco.Core/Trees/MenuItemCollection.cs @@ -1,8 +1,9 @@ using System.Collections.Generic; using System.Runtime.Serialization; -using Umbraco.Web.Actions; +using Umbraco.Cms.Core.Actions; +using Umbraco.Cms.Core.Models.Trees; -namespace Umbraco.Web.Models.Trees +namespace Umbraco.Cms.Core.Trees { /// /// A menu item collection for a given tree node diff --git a/src/Umbraco.Core/Trees/MenuItemCollectionFactory.cs b/src/Umbraco.Core/Trees/MenuItemCollectionFactory.cs index 0a8ea000e3..112b8b6240 100644 --- a/src/Umbraco.Core/Trees/MenuItemCollectionFactory.cs +++ b/src/Umbraco.Core/Trees/MenuItemCollectionFactory.cs @@ -1,7 +1,6 @@ -using Umbraco.Web.Actions; -using Umbraco.Web.Models.Trees; +using Umbraco.Cms.Core.Actions; -namespace Umbraco.Web.Trees +namespace Umbraco.Cms.Core.Trees { public class MenuItemCollectionFactory: IMenuItemCollectionFactory { diff --git a/src/Umbraco.Core/Trees/MenuItemList.cs b/src/Umbraco.Core/Trees/MenuItemList.cs index 1410575fdb..d2468f724b 100644 --- a/src/Umbraco.Core/Trees/MenuItemList.cs +++ b/src/Umbraco.Core/Trees/MenuItemList.cs @@ -1,9 +1,14 @@ -using System.Collections.Generic; -using System.Threading; -using Umbraco.Core.Services; -using Umbraco.Web.Actions; +// Copyright (c) Umbraco. +// See LICENSE for more details. -namespace Umbraco.Web.Models.Trees +using System.Collections.Generic; +using System.Threading; +using Umbraco.Cms.Core.Actions; +using Umbraco.Cms.Core.Models.Trees; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; + +namespace Umbraco.Cms.Core.Trees { /// /// A custom menu list diff --git a/src/Umbraco.Core/Trees/SearchableApplicationTree.cs b/src/Umbraco.Core/Trees/SearchableApplicationTree.cs index ad6fb7f43f..33104cb8c7 100644 --- a/src/Umbraco.Core/Trees/SearchableApplicationTree.cs +++ b/src/Umbraco.Core/Trees/SearchableApplicationTree.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Trees +namespace Umbraco.Cms.Core.Trees { public class SearchableApplicationTree { diff --git a/src/Umbraco.Core/Trees/SearchableTreeAttribute.cs b/src/Umbraco.Core/Trees/SearchableTreeAttribute.cs index 2a30725fde..ca5cfef02a 100644 --- a/src/Umbraco.Core/Trees/SearchableTreeAttribute.cs +++ b/src/Umbraco.Core/Trees/SearchableTreeAttribute.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Web.Trees +namespace Umbraco.Cms.Core.Trees { [AttributeUsage(AttributeTargets.Class)] public sealed class SearchableTreeAttribute : Attribute diff --git a/src/Umbraco.Core/Trees/SearchableTreeCollection.cs b/src/Umbraco.Core/Trees/SearchableTreeCollection.cs index e562b763d4..8f1b20a7b1 100644 --- a/src/Umbraco.Core/Trees/SearchableTreeCollection.cs +++ b/src/Umbraco.Core/Trees/SearchableTreeCollection.cs @@ -1,12 +1,11 @@ using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core; -using Umbraco.Core.Composing; -using Umbraco.Web.Services; -using Umbraco.Web.Trees; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; -namespace Umbraco.Core.Trees +namespace Umbraco.Cms.Core.Trees { public class SearchableTreeCollection : BuilderCollectionBase { diff --git a/src/Umbraco.Core/Trees/SearchableTreeCollectionBuilder.cs b/src/Umbraco.Core/Trees/SearchableTreeCollectionBuilder.cs index 7922cf36ad..dca2839558 100644 --- a/src/Umbraco.Core/Trees/SearchableTreeCollectionBuilder.cs +++ b/src/Umbraco.Core/Trees/SearchableTreeCollectionBuilder.cs @@ -1,7 +1,7 @@ using Microsoft.Extensions.DependencyInjection; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Core.Trees +namespace Umbraco.Cms.Core.Trees { public class SearchableTreeCollectionBuilder : LazyCollectionBuilderBase { diff --git a/src/Umbraco.Core/Trees/Tree.cs b/src/Umbraco.Core/Trees/Tree.cs index b528443eb1..a0286090ec 100644 --- a/src/Umbraco.Core/Trees/Tree.cs +++ b/src/Umbraco.Core/Trees/Tree.cs @@ -1,8 +1,12 @@ -using System; -using System.Diagnostics; -using Umbraco.Core.Services; +// Copyright (c) Umbraco. +// See LICENSE for more details. -namespace Umbraco.Web.Trees +using System; +using System.Diagnostics; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; + +namespace Umbraco.Cms.Core.Trees { [DebuggerDisplay("Tree - {SectionAlias}/{TreeAlias}")] public class Tree : ITree diff --git a/src/Umbraco.Core/Trees/TreeCollection.cs b/src/Umbraco.Core/Trees/TreeCollection.cs index 76404d4ac5..45a405217f 100644 --- a/src/Umbraco.Core/Trees/TreeCollection.cs +++ b/src/Umbraco.Core/Trees/TreeCollection.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Web.Trees +namespace Umbraco.Cms.Core.Trees { /// /// Represents the collection of section trees. diff --git a/src/Umbraco.Core/Trees/TreeNode.cs b/src/Umbraco.Core/Trees/TreeNode.cs index cc99269cd8..c09f7559ca 100644 --- a/src/Umbraco.Core/Trees/TreeNode.cs +++ b/src/Umbraco.Core/Trees/TreeNode.cs @@ -1,11 +1,10 @@ using System; using System.Collections.Generic; using System.Runtime.Serialization; -using Umbraco.Core; -using Umbraco.Core.Configuration; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Extensions; -namespace Umbraco.Web.Models.Trees +namespace Umbraco.Cms.Core.Trees { /// /// Represents a model in the tree diff --git a/src/Umbraco.Core/Trees/TreeNodeCollection.cs b/src/Umbraco.Core/Trees/TreeNodeCollection.cs index 48e9b46dbe..545b6881aa 100644 --- a/src/Umbraco.Core/Trees/TreeNodeCollection.cs +++ b/src/Umbraco.Core/Trees/TreeNodeCollection.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.Runtime.Serialization; -namespace Umbraco.Web.Models.Trees +namespace Umbraco.Cms.Core.Trees { [CollectionDataContract(Name = "nodes", Namespace = "")] public sealed class TreeNodeCollection : List diff --git a/src/Umbraco.Core/Trees/TreeNodeExtensions.cs b/src/Umbraco.Core/Trees/TreeNodeExtensions.cs index 10aaf342f0..9e887f68ec 100644 --- a/src/Umbraco.Core/Trees/TreeNodeExtensions.cs +++ b/src/Umbraco.Core/Trees/TreeNodeExtensions.cs @@ -1,4 +1,9 @@ -namespace Umbraco.Web.Models.Trees +// Copyright (c) Umbraco. +// See LICENSE for more details. + +using Umbraco.Cms.Core.Trees; + +namespace Umbraco.Extensions { public static class TreeNodeExtensions { diff --git a/src/Umbraco.Core/Trees/TreeUse.cs b/src/Umbraco.Core/Trees/TreeUse.cs index a1baee3332..55be24d54d 100644 --- a/src/Umbraco.Core/Trees/TreeUse.cs +++ b/src/Umbraco.Core/Trees/TreeUse.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Web.Trees +namespace Umbraco.Cms.Core.Trees { /// /// Defines tree uses. @@ -23,4 +23,4 @@ namespace Umbraco.Web.Trees /// Dialog = 2, } -} \ No newline at end of file +} diff --git a/src/Umbraco.Core/Udi.cs b/src/Umbraco.Core/Udi.cs index 8a0ce83811..b861bcc68b 100644 --- a/src/Umbraco.Core/Udi.cs +++ b/src/Umbraco.Core/Udi.cs @@ -2,7 +2,7 @@ using System.ComponentModel; using System.Linq; -namespace Umbraco.Core +namespace Umbraco.Cms.Core { /// diff --git a/src/Umbraco.Core/UdiDefinitionAttribute.cs b/src/Umbraco.Core/UdiDefinitionAttribute.cs index a5ff960db1..9139ef4188 100644 --- a/src/Umbraco.Core/UdiDefinitionAttribute.cs +++ b/src/Umbraco.Core/UdiDefinitionAttribute.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core +namespace Umbraco.Cms.Core { [AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = false)] public sealed class UdiDefinitionAttribute : Attribute diff --git a/src/Umbraco.Core/UdiEntityTypeHelper.cs b/src/Umbraco.Core/UdiEntityTypeHelper.cs index 39ee28488f..781c084785 100644 --- a/src/Umbraco.Core/UdiEntityTypeHelper.cs +++ b/src/Umbraco.Core/UdiEntityTypeHelper.cs @@ -1,12 +1,11 @@ using System; -using System.Collections.Generic; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Core +namespace Umbraco.Cms.Core { public static class UdiEntityTypeHelper { - + public static string FromUmbracoObjectType(UmbracoObjectTypes umbracoObjectType) { diff --git a/src/Umbraco.Core/UdiParser.cs b/src/Umbraco.Core/UdiParser.cs index 18871a755d..92f4e46f89 100644 --- a/src/Umbraco.Core/UdiParser.cs +++ b/src/Umbraco.Core/UdiParser.cs @@ -3,7 +3,7 @@ using System.Collections.Concurrent; using System.Collections.Generic; using System.ComponentModel; -namespace Umbraco.Core +namespace Umbraco.Cms.Core { public sealed class UdiParser { diff --git a/src/Umbraco.Core/UdiParserServiceConnectors.cs b/src/Umbraco.Core/UdiParserServiceConnectors.cs index 6137b0bde9..320cc9a901 100644 --- a/src/Umbraco.Core/UdiParserServiceConnectors.cs +++ b/src/Umbraco.Core/UdiParserServiceConnectors.cs @@ -1,10 +1,10 @@ using System; using System.Collections.Generic; -using System.Linq; -using Umbraco.Core.Deploy; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Deploy; +using Umbraco.Extensions; -namespace Umbraco.Core +namespace Umbraco.Cms.Core { public static class UdiParserServiceConnectors { diff --git a/src/Umbraco.Core/UdiRange.cs b/src/Umbraco.Core/UdiRange.cs index b70cf43d18..50f5b88189 100644 --- a/src/Umbraco.Core/UdiRange.cs +++ b/src/Umbraco.Core/UdiRange.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Core +namespace Umbraco.Cms.Core { /// /// Represents a range. diff --git a/src/Umbraco.Core/UdiType.cs b/src/Umbraco.Core/UdiType.cs index 6d183d7c36..572c36de95 100644 --- a/src/Umbraco.Core/UdiType.cs +++ b/src/Umbraco.Core/UdiType.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core +namespace Umbraco.Cms.Core { /// /// Defines Udi types. diff --git a/src/Umbraco.Core/UdiTypeConverter.cs b/src/Umbraco.Core/UdiTypeConverter.cs index 8da1b7bb5f..3b4015e8f0 100644 --- a/src/Umbraco.Core/UdiTypeConverter.cs +++ b/src/Umbraco.Core/UdiTypeConverter.cs @@ -2,7 +2,7 @@ using System.ComponentModel; using System.Globalization; -namespace Umbraco.Core +namespace Umbraco.Cms.Core { /// /// A custom type converter for UDI diff --git a/src/Umbraco.Core/Umbraco.Core.csproj b/src/Umbraco.Core/Umbraco.Core.csproj index 6a73ae2890..933c00460c 100644 --- a/src/Umbraco.Core/Umbraco.Core.csproj +++ b/src/Umbraco.Core/Umbraco.Core.csproj @@ -2,6 +2,12 @@ netstandard2.0 + 8 + Umbraco.Cms.Core + 0.5.0 + 0.5.0 + 0.5.0 + Umbraco CMS Umbraco.Core diff --git a/src/Umbraco.Core/UmbracoApiControllerTypeCollection.cs b/src/Umbraco.Core/UmbracoApiControllerTypeCollection.cs index dc8d1767dc..9ff5073d17 100644 --- a/src/Umbraco.Core/UmbracoApiControllerTypeCollection.cs +++ b/src/Umbraco.Core/UmbracoApiControllerTypeCollection.cs @@ -1,8 +1,8 @@ using System; using System.Collections.Generic; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Web.WebApi +namespace Umbraco.Cms.Core { public class UmbracoApiControllerTypeCollection : BuilderCollectionBase { diff --git a/src/Umbraco.Core/UmbracoContextReference.cs b/src/Umbraco.Core/UmbracoContextReference.cs index c253c2f007..18ba20b384 100644 --- a/src/Umbraco.Core/UmbracoContextReference.cs +++ b/src/Umbraco.Core/UmbracoContextReference.cs @@ -1,6 +1,7 @@ using System; +using Umbraco.Cms.Core.Web; -namespace Umbraco.Web +namespace Umbraco.Cms.Core { /// /// Represents a reference to an instance. diff --git a/src/Umbraco.Core/UnknownTypeUdi.cs b/src/Umbraco.Core/UnknownTypeUdi.cs index c6ad48bb79..4131eae053 100644 --- a/src/Umbraco.Core/UnknownTypeUdi.cs +++ b/src/Umbraco.Core/UnknownTypeUdi.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core +namespace Umbraco.Cms.Core { public class UnknownTypeUdi : Udi { diff --git a/src/Umbraco.Core/UpgradeResult.cs b/src/Umbraco.Core/UpgradeResult.cs index a27f6bb6a3..25431a5983 100644 --- a/src/Umbraco.Core/UpgradeResult.cs +++ b/src/Umbraco.Core/UpgradeResult.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.Models +namespace Umbraco.Cms.Core { public class UpgradeResult { diff --git a/src/Umbraco.Core/UpgradeableReadLock.cs b/src/Umbraco.Core/UpgradeableReadLock.cs index e3717fdf9a..4b6fc9219a 100644 --- a/src/Umbraco.Core/UpgradeableReadLock.cs +++ b/src/Umbraco.Core/UpgradeableReadLock.cs @@ -1,10 +1,7 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; using System.Threading; -namespace Umbraco.Core +namespace Umbraco.Cms.Core { /// /// Provides a convenience methodology for implementing locked access to resources. diff --git a/src/Umbraco.Core/UriUtilityCore.cs b/src/Umbraco.Core/UriUtilityCore.cs index 9ca9d66229..8716865a9e 100644 --- a/src/Umbraco.Core/UriUtilityCore.cs +++ b/src/Umbraco.Core/UriUtilityCore.cs @@ -1,7 +1,7 @@ using System; -using Umbraco.Core; +using Umbraco.Extensions; -namespace Umbraco.Web +namespace Umbraco.Cms.Core { public static class UriUtilityCore { diff --git a/src/Umbraco.Core/Web/CookieManagerExtensions.cs b/src/Umbraco.Core/Web/CookieManagerExtensions.cs index 41f2fa1aca..d8c4396ab8 100644 --- a/src/Umbraco.Core/Web/CookieManagerExtensions.cs +++ b/src/Umbraco.Core/Web/CookieManagerExtensions.cs @@ -1,6 +1,10 @@ -using Umbraco.Core; +// Copyright (c) Umbraco. +// See LICENSE for more details. -namespace Umbraco.Web +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Web; + +namespace Umbraco.Extensions { public static class CookieManagerExtensions { diff --git a/src/Umbraco.Core/Web/HybridUmbracoContextAccessor.cs b/src/Umbraco.Core/Web/HybridUmbracoContextAccessor.cs index 1ad4777460..a266c07769 100644 --- a/src/Umbraco.Core/Web/HybridUmbracoContextAccessor.cs +++ b/src/Umbraco.Core/Web/HybridUmbracoContextAccessor.cs @@ -1,6 +1,6 @@ -using Umbraco.Core.Cache; +using Umbraco.Cms.Core.Cache; -namespace Umbraco.Web +namespace Umbraco.Cms.Core.Web { /// /// Implements a hybrid . diff --git a/src/Umbraco.Core/Web/ICookieManager.cs b/src/Umbraco.Core/Web/ICookieManager.cs index 39eda89222..50a71bf135 100644 --- a/src/Umbraco.Core/Web/ICookieManager.cs +++ b/src/Umbraco.Core/Web/ICookieManager.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web +namespace Umbraco.Cms.Core.Web { public interface ICookieManager diff --git a/src/Umbraco.Core/Web/IRequestAccessor.cs b/src/Umbraco.Core/Web/IRequestAccessor.cs index 56c8091f94..992b56b75c 100644 --- a/src/Umbraco.Core/Web/IRequestAccessor.cs +++ b/src/Umbraco.Core/Web/IRequestAccessor.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Web +namespace Umbraco.Cms.Core.Web { public interface IRequestAccessor { diff --git a/src/Umbraco.Core/Web/ISessionManager.cs b/src/Umbraco.Core/Web/ISessionManager.cs index e7bee5012d..f2bc0136d0 100644 --- a/src/Umbraco.Core/Web/ISessionManager.cs +++ b/src/Umbraco.Core/Web/ISessionManager.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web +namespace Umbraco.Cms.Core.Web { public interface ISessionManager { diff --git a/src/Umbraco.Core/Web/IUmbracoContext.cs b/src/Umbraco.Core/Web/IUmbracoContext.cs index c80dd9c1f3..d50b2bbc88 100644 --- a/src/Umbraco.Core/Web/IUmbracoContext.cs +++ b/src/Umbraco.Core/Web/IUmbracoContext.cs @@ -1,10 +1,9 @@ using System; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Security; -using Umbraco.Web.PublishedCache; -using Umbraco.Web.Routing; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Routing; -namespace Umbraco.Web +namespace Umbraco.Cms.Core.Web { public interface IUmbracoContext : IDisposable { diff --git a/src/Umbraco.Core/Web/IUmbracoContextAccessor.cs b/src/Umbraco.Core/Web/IUmbracoContextAccessor.cs index 5c7549bff6..0f15034dd1 100644 --- a/src/Umbraco.Core/Web/IUmbracoContextAccessor.cs +++ b/src/Umbraco.Core/Web/IUmbracoContextAccessor.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web +namespace Umbraco.Cms.Core.Web { /// /// Provides access to UmbracoContext. diff --git a/src/Umbraco.Core/Web/IUmbracoContextFactory.cs b/src/Umbraco.Core/Web/IUmbracoContextFactory.cs index c3ed863da8..68ebcf8b2b 100644 --- a/src/Umbraco.Core/Web/IUmbracoContextFactory.cs +++ b/src/Umbraco.Core/Web/IUmbracoContextFactory.cs @@ -1,5 +1,5 @@  -namespace Umbraco.Web +namespace Umbraco.Cms.Core.Web { /// /// Creates and manages instances. diff --git a/src/Umbraco.Core/Web/Mvc/PluginControllerMetadata.cs b/src/Umbraco.Core/Web/Mvc/PluginControllerMetadata.cs index b8750d6998..a8b6401cea 100644 --- a/src/Umbraco.Core/Web/Mvc/PluginControllerMetadata.cs +++ b/src/Umbraco.Core/Web/Mvc/PluginControllerMetadata.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Web.Mvc +namespace Umbraco.Cms.Core.Web.Mvc { /// /// Represents some metadata about the controller diff --git a/src/Umbraco.Core/WebAssets/AssetFile.cs b/src/Umbraco.Core/WebAssets/AssetFile.cs index ceb3816633..78249edae9 100644 --- a/src/Umbraco.Core/WebAssets/AssetFile.cs +++ b/src/Umbraco.Core/WebAssets/AssetFile.cs @@ -1,6 +1,6 @@ using System.Diagnostics; -namespace Umbraco.Core.WebAssets +namespace Umbraco.Cms.Core.WebAssets { /// /// Represents a dependency file diff --git a/src/Umbraco.Core/WebAssets/AssetType.cs b/src/Umbraco.Core/WebAssets/AssetType.cs index c08e2be6c1..f40a592588 100644 --- a/src/Umbraco.Core/WebAssets/AssetType.cs +++ b/src/Umbraco.Core/WebAssets/AssetType.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.WebAssets +namespace Umbraco.Cms.Core.WebAssets { public enum AssetType { diff --git a/src/Umbraco.Core/WebAssets/CssFile.cs b/src/Umbraco.Core/WebAssets/CssFile.cs index 42c677807e..101ff22763 100644 --- a/src/Umbraco.Core/WebAssets/CssFile.cs +++ b/src/Umbraco.Core/WebAssets/CssFile.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.WebAssets +namespace Umbraco.Cms.Core.WebAssets { /// /// Represents a CSS asset file diff --git a/src/Umbraco.Core/WebAssets/IAssetFile.cs b/src/Umbraco.Core/WebAssets/IAssetFile.cs index 721c415ffe..6992af7f30 100644 --- a/src/Umbraco.Core/WebAssets/IAssetFile.cs +++ b/src/Umbraco.Core/WebAssets/IAssetFile.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.WebAssets +namespace Umbraco.Cms.Core.WebAssets { public interface IAssetFile { diff --git a/src/Umbraco.Core/WebAssets/IRuntimeMinifier.cs b/src/Umbraco.Core/WebAssets/IRuntimeMinifier.cs index 2b68a2f4ec..2c6c39f3bd 100644 --- a/src/Umbraco.Core/WebAssets/IRuntimeMinifier.cs +++ b/src/Umbraco.Core/WebAssets/IRuntimeMinifier.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.Threading.Tasks; -namespace Umbraco.Core.WebAssets +namespace Umbraco.Cms.Core.WebAssets { /// /// Used for bundling and minifying web assets at runtime diff --git a/src/Umbraco.Core/WebAssets/JavascriptFile.cs b/src/Umbraco.Core/WebAssets/JavascriptFile.cs index 1f5b1a1f77..2dccbf2a07 100644 --- a/src/Umbraco.Core/WebAssets/JavascriptFile.cs +++ b/src/Umbraco.Core/WebAssets/JavascriptFile.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Core.WebAssets +namespace Umbraco.Cms.Core.WebAssets { /// /// Represents a JS asset file diff --git a/src/Umbraco.Core/WriteLock.cs b/src/Umbraco.Core/WriteLock.cs index dfa170218b..7484c26869 100644 --- a/src/Umbraco.Core/WriteLock.cs +++ b/src/Umbraco.Core/WriteLock.cs @@ -1,10 +1,7 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; using System.Threading; -namespace Umbraco.Core +namespace Umbraco.Cms.Core { /// /// Provides a convenience methodology for implementing locked access to resources. diff --git a/src/Umbraco.Core/Xml/DynamicContext.cs b/src/Umbraco.Core/Xml/DynamicContext.cs index e5b90a1622..338984867e 100644 --- a/src/Umbraco.Core/Xml/DynamicContext.cs +++ b/src/Umbraco.Core/Xml/DynamicContext.cs @@ -1,12 +1,12 @@ using System; using System.Collections.Generic; using System.Xml; -using System.Xml.Xsl; using System.Xml.XPath; +using System.Xml.Xsl; // source: mvpxml.codeplex.com -namespace Umbraco.Core.Xml +namespace Umbraco.Cms.Core.Xml { /// /// Provides the evaluation context for fast execution and custom diff --git a/src/Umbraco.Core/Xml/UmbracoXPathPathSyntaxParser.cs b/src/Umbraco.Core/Xml/UmbracoXPathPathSyntaxParser.cs index 08178b8fcd..e92aa8e147 100644 --- a/src/Umbraco.Core/Xml/UmbracoXPathPathSyntaxParser.cs +++ b/src/Umbraco.Core/Xml/UmbracoXPathPathSyntaxParser.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.Linq; -namespace Umbraco.Core.Xml +namespace Umbraco.Cms.Core.Xml { /// /// This is used to parse our customize Umbraco XPath expressions (i.e. that include special tokens like $site) into diff --git a/src/Umbraco.Core/Xml/XPath/INavigableContent.cs b/src/Umbraco.Core/Xml/XPath/INavigableContent.cs index c0b3192830..0e0848088a 100644 --- a/src/Umbraco.Core/Xml/XPath/INavigableContent.cs +++ b/src/Umbraco.Core/Xml/XPath/INavigableContent.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace Umbraco.Core.Xml.XPath +namespace Umbraco.Cms.Core.Xml.XPath { /// /// Represents a content that can be navigated via XPath. diff --git a/src/Umbraco.Core/Xml/XPath/INavigableContentType.cs b/src/Umbraco.Core/Xml/XPath/INavigableContentType.cs index 1fff0b60bb..420cd6a487 100644 --- a/src/Umbraco.Core/Xml/XPath/INavigableContentType.cs +++ b/src/Umbraco.Core/Xml/XPath/INavigableContentType.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace Umbraco.Core.Xml.XPath +namespace Umbraco.Cms.Core.Xml.XPath { /// /// Represents the type of a content that can be navigated via XPath. diff --git a/src/Umbraco.Core/Xml/XPath/INavigableFieldType.cs b/src/Umbraco.Core/Xml/XPath/INavigableFieldType.cs index d741060865..a9bbef3821 100644 --- a/src/Umbraco.Core/Xml/XPath/INavigableFieldType.cs +++ b/src/Umbraco.Core/Xml/XPath/INavigableFieldType.cs @@ -1,9 +1,6 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -namespace Umbraco.Core.Xml.XPath +namespace Umbraco.Cms.Core.Xml.XPath { /// /// Represents the type of a field of a content that can be navigated via XPath. diff --git a/src/Umbraco.Core/Xml/XPath/INavigableSource.cs b/src/Umbraco.Core/Xml/XPath/INavigableSource.cs index 7a605574d7..60243142d7 100644 --- a/src/Umbraco.Core/Xml/XPath/INavigableSource.cs +++ b/src/Umbraco.Core/Xml/XPath/INavigableSource.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace Umbraco.Core.Xml.XPath +namespace Umbraco.Cms.Core.Xml.XPath { /// /// Represents a source of content that can be navigated via XPath. diff --git a/src/Umbraco.Core/Xml/XPath/MacroNavigator.cs b/src/Umbraco.Core/Xml/XPath/MacroNavigator.cs index dc2246834e..439d2b1ca3 100644 --- a/src/Umbraco.Core/Xml/XPath/MacroNavigator.cs +++ b/src/Umbraco.Core/Xml/XPath/MacroNavigator.cs @@ -5,7 +5,7 @@ using System.Linq; using System.Xml; using System.Xml.XPath; -namespace Umbraco.Core.Xml.XPath +namespace Umbraco.Cms.Core.Xml.XPath { /// /// Provides a cursor model for navigating {macro /} as if it were XML. diff --git a/src/Umbraco.Core/Xml/XPath/NavigableNavigator.cs b/src/Umbraco.Core/Xml/XPath/NavigableNavigator.cs index e178ab918e..68dfb9bb67 100644 --- a/src/Umbraco.Core/Xml/XPath/NavigableNavigator.cs +++ b/src/Umbraco.Core/Xml/XPath/NavigableNavigator.cs @@ -20,7 +20,7 @@ using System.Linq; using System.Xml; using System.Xml.XPath; -namespace Umbraco.Core.Xml.XPath +namespace Umbraco.Cms.Core.Xml.XPath { /// /// Provides a cursor model for navigating Umbraco data as if it were XML. diff --git a/src/Umbraco.Core/Xml/XPath/RenamedRootNavigator.cs b/src/Umbraco.Core/Xml/XPath/RenamedRootNavigator.cs index cd7fca3b2d..364560ebee 100644 --- a/src/Umbraco.Core/Xml/XPath/RenamedRootNavigator.cs +++ b/src/Umbraco.Core/Xml/XPath/RenamedRootNavigator.cs @@ -1,7 +1,7 @@ using System.Xml; using System.Xml.XPath; -namespace Umbraco.Core.Xml.XPath +namespace Umbraco.Cms.Core.Xml.XPath { public class RenamedRootNavigator : XPathNavigator { diff --git a/src/Umbraco.Core/Xml/XPathNavigatorExtensions.cs b/src/Umbraco.Core/Xml/XPathNavigatorExtensions.cs index bb3b41511b..8006d26da6 100644 --- a/src/Umbraco.Core/Xml/XPathNavigatorExtensions.cs +++ b/src/Umbraco.Core/Xml/XPathNavigatorExtensions.cs @@ -1,6 +1,10 @@ -using System.Xml.XPath; +// Copyright (c) Umbraco. +// See LICENSE for more details. -namespace Umbraco.Core.Xml +using System.Xml.XPath; +using Umbraco.Cms.Core.Xml; + +namespace Umbraco.Extensions { /// /// Provides extensions to XPathNavigator. diff --git a/src/Umbraco.Core/Xml/XPathVariable.cs b/src/Umbraco.Core/Xml/XPathVariable.cs index fc5765b822..9bfed8e98d 100644 --- a/src/Umbraco.Core/Xml/XPathVariable.cs +++ b/src/Umbraco.Core/Xml/XPathVariable.cs @@ -1,6 +1,6 @@ // source: mvpxml.codeplex.com -namespace Umbraco.Core.Xml +namespace Umbraco.Cms.Core.Xml { /// /// Represents a variable in an XPath query. diff --git a/src/Umbraco.Core/Xml/XmlHelper.cs b/src/Umbraco.Core/Xml/XmlHelper.cs index 44063bd7b7..ab171659fb 100644 --- a/src/Umbraco.Core/Xml/XmlHelper.cs +++ b/src/Umbraco.Core/Xml/XmlHelper.cs @@ -5,9 +5,9 @@ using System.Linq; using System.Text.RegularExpressions; using System.Xml; using System.Xml.XPath; -using Umbraco.Core.Hosting; +using Umbraco.Cms.Core.Hosting; -namespace Umbraco.Core.Xml +namespace Umbraco.Cms.Core.Xml { /// /// The XmlHelper class contains general helper methods for working with xml in umbraco. diff --git a/src/Umbraco.Core/Xml/XmlNamespaces.cs b/src/Umbraco.Core/Xml/XmlNamespaces.cs index a37c383980..1721de253f 100644 --- a/src/Umbraco.Core/Xml/XmlNamespaces.cs +++ b/src/Umbraco.Core/Xml/XmlNamespaces.cs @@ -1,6 +1,6 @@ // source: mvpxml.codeplex.com -namespace Umbraco.Core.Xml +namespace Umbraco.Cms.Core.Xml { /// /// Provides public constants for wellknown XML namespaces. diff --git a/src/Umbraco.Core/Xml/XmlNodeListFactory.cs b/src/Umbraco.Core/Xml/XmlNodeListFactory.cs index 0a5f2c859d..b0ab0dd3be 100644 --- a/src/Umbraco.Core/Xml/XmlNodeListFactory.cs +++ b/src/Umbraco.Core/Xml/XmlNodeListFactory.cs @@ -5,7 +5,7 @@ using System.Xml.XPath; // source: mvpxml.codeplex.com -namespace Umbraco.Core.Xml +namespace Umbraco.Cms.Core.Xml { public class XmlNodeListFactory { diff --git a/src/Umbraco.Examine.Lucene/BackOfficeExamineSearcher.cs b/src/Umbraco.Examine.Lucene/BackOfficeExamineSearcher.cs index 9551dc8b90..765bd6f761 100644 --- a/src/Umbraco.Examine.Lucene/BackOfficeExamineSearcher.cs +++ b/src/Umbraco.Examine.Lucene/BackOfficeExamineSearcher.cs @@ -1,15 +1,19 @@ -using System; +// Copyright (c) Umbraco. +// See LICENSE for more details. + +using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using Examine; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Web; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Examine { diff --git a/src/Umbraco.Examine.Lucene/ExamineLuceneComponent.cs b/src/Umbraco.Examine.Lucene/ExamineLuceneComponent.cs index 1bdb579e62..a33bc3c182 100644 --- a/src/Umbraco.Examine.Lucene/ExamineLuceneComponent.cs +++ b/src/Umbraco.Examine.Lucene/ExamineLuceneComponent.cs @@ -1,12 +1,15 @@ -using Microsoft.Extensions.Logging; +// Copyright (c) Umbraco. +// See LICENSE for more details. + using Examine; using Examine.LuceneEngine.Directories; -using Umbraco.Core; -using Umbraco.Core.Composing; +using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Runtime; +using Umbraco.Extensions; namespace Umbraco.Examine { - public sealed class ExamineLuceneComponent : IComponent { private readonly IndexRebuilder _indexRebuilder; diff --git a/src/Umbraco.Examine.Lucene/ExamineLuceneComposer.cs b/src/Umbraco.Examine.Lucene/ExamineLuceneComposer.cs index 05315b05fe..ddebb458b1 100644 --- a/src/Umbraco.Examine.Lucene/ExamineLuceneComposer.cs +++ b/src/Umbraco.Examine.Lucene/ExamineLuceneComposer.cs @@ -1,6 +1,10 @@ -using System.Runtime.InteropServices; -using Umbraco.Core.DependencyInjection; -using Umbraco.Core.Composing; +// Copyright (c) Umbraco. +// See LICENSE for more details. + +using System.Runtime.InteropServices; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.DependencyInjection; +using Umbraco.Extensions; namespace Umbraco.Examine { diff --git a/src/Umbraco.Examine.Lucene/ExamineLuceneFinalComponent.cs b/src/Umbraco.Examine.Lucene/ExamineLuceneFinalComponent.cs index 745a5fb583..c5beb26122 100644 --- a/src/Umbraco.Examine.Lucene/ExamineLuceneFinalComponent.cs +++ b/src/Umbraco.Examine.Lucene/ExamineLuceneFinalComponent.cs @@ -1,7 +1,11 @@ -using Microsoft.Extensions.Logging; +// Copyright (c) Umbraco. +// See LICENSE for more details. + using Examine; -using Umbraco.Core; -using Umbraco.Core.Composing; +using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Runtime; +using Umbraco.Extensions; namespace Umbraco.Examine { diff --git a/src/Umbraco.Examine.Lucene/ExamineLuceneFinalComposer.cs b/src/Umbraco.Examine.Lucene/ExamineLuceneFinalComposer.cs index 8f3656f67c..58e2474754 100644 --- a/src/Umbraco.Examine.Lucene/ExamineLuceneFinalComposer.cs +++ b/src/Umbraco.Examine.Lucene/ExamineLuceneFinalComposer.cs @@ -1,4 +1,7 @@ -using Umbraco.Core.Composing; +// Copyright (c) Umbraco. +// See LICENSE for more details. + +using Umbraco.Cms.Core.Composing; namespace Umbraco.Examine { diff --git a/src/Umbraco.Examine.Lucene/ExamineExtensions.cs b/src/Umbraco.Examine.Lucene/Extensions/ExamineExtensions.cs similarity index 97% rename from src/Umbraco.Examine.Lucene/ExamineExtensions.cs rename to src/Umbraco.Examine.Lucene/Extensions/ExamineExtensions.cs index 6f476ec79d..b48638afb8 100644 --- a/src/Umbraco.Examine.Lucene/ExamineExtensions.cs +++ b/src/Umbraco.Examine.Lucene/Extensions/ExamineExtensions.cs @@ -1,19 +1,22 @@ -using System; +// Copyright (c) Umbraco. +// See LICENSE for more details. + +using System; using System.Linq; -using Microsoft.Extensions.Logging; +using System.Threading; using Examine; using Examine.LuceneEngine.Providers; using Lucene.Net.Analysis; using Lucene.Net.Index; using Lucene.Net.QueryParsers; using Lucene.Net.Search; -using Umbraco.Core; +using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.Runtime; +using Umbraco.Examine; using Version = Lucene.Net.Util.Version; -using System.Threading; -namespace Umbraco.Examine +namespace Umbraco.Extensions { - /// /// Extension methods for the LuceneIndex /// @@ -149,6 +152,5 @@ namespace Umbraco.Examine return reader.GetFieldNames(IndexReader.FieldOption.ALL).Count; } } - } } diff --git a/src/Umbraco.Examine.Lucene/ILuceneDirectoryFactory.cs b/src/Umbraco.Examine.Lucene/ILuceneDirectoryFactory.cs index f4946d491e..0127b8f601 100644 --- a/src/Umbraco.Examine.Lucene/ILuceneDirectoryFactory.cs +++ b/src/Umbraco.Examine.Lucene/ILuceneDirectoryFactory.cs @@ -1,4 +1,7 @@ -namespace Umbraco.Examine +// Copyright (c) Umbraco. +// See LICENSE for more details. + +namespace Umbraco.Examine { public interface ILuceneDirectoryFactory { diff --git a/src/Umbraco.Examine.Lucene/LuceneFileSystemDirectoryFactory.cs b/src/Umbraco.Examine.Lucene/LuceneFileSystemDirectoryFactory.cs index 32c441ab28..d68dce320b 100644 --- a/src/Umbraco.Examine.Lucene/LuceneFileSystemDirectoryFactory.cs +++ b/src/Umbraco.Examine.Lucene/LuceneFileSystemDirectoryFactory.cs @@ -1,17 +1,19 @@ -using Umbraco.Core.Configuration; -using Umbraco.Core; -using Umbraco.Core.Composing; -using Umbraco.Core.Hosting; -using Lucene.Net.Store; -using System.IO; +// Copyright (c) Umbraco. +// See LICENSE for more details. + using System; +using System.IO; using Examine.LuceneEngine.Directories; +using Lucene.Net.Store; using Microsoft.Extensions.Options; -using Umbraco.Core.Configuration.Models; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Examine { - public class LuceneFileSystemDirectoryFactory : ILuceneDirectoryFactory { private readonly ITypeFinder _typeFinder; diff --git a/src/Umbraco.Examine.Lucene/LuceneIndexCreator.cs b/src/Umbraco.Examine.Lucene/LuceneIndexCreator.cs index 8ecb1b4421..0353a3417f 100644 --- a/src/Umbraco.Examine.Lucene/LuceneIndexCreator.cs +++ b/src/Umbraco.Examine.Lucene/LuceneIndexCreator.cs @@ -1,14 +1,12 @@ -using System; +// Copyright (c) Umbraco. +// See LICENSE for more details. + using System.Collections.Generic; -using System.IO; using Examine; -using Examine.LuceneEngine.Directories; -using Lucene.Net.Store; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Composing; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; namespace Umbraco.Examine { @@ -29,6 +27,6 @@ namespace Umbraco.Examine _settings = settings.Value; } - public abstract IEnumerable Create(); + public abstract IEnumerable Create(); } } diff --git a/src/Umbraco.Examine.Lucene/LuceneIndexDiagnostics.cs b/src/Umbraco.Examine.Lucene/LuceneIndexDiagnostics.cs index 525f7372bf..ebc74e694a 100644 --- a/src/Umbraco.Examine.Lucene/LuceneIndexDiagnostics.cs +++ b/src/Umbraco.Examine.Lucene/LuceneIndexDiagnostics.cs @@ -1,12 +1,13 @@ -using System.Collections.Generic; -using Microsoft.Extensions.Logging; +// Copyright (c) Umbraco. +// See LICENSE for more details. + +using System.Collections.Generic; using Examine.LuceneEngine.Providers; -using Umbraco.Core; using Lucene.Net.Store; -using Umbraco.Core.IO; -using System.Linq; -using Umbraco.Core.Composing; -using Umbraco.Core.Hosting; +using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Extensions; namespace Umbraco.Examine { diff --git a/src/Umbraco.Examine.Lucene/LuceneIndexDiagnosticsFactory.cs b/src/Umbraco.Examine.Lucene/LuceneIndexDiagnosticsFactory.cs index feeac4bf77..d987e8d6d8 100644 --- a/src/Umbraco.Examine.Lucene/LuceneIndexDiagnosticsFactory.cs +++ b/src/Umbraco.Examine.Lucene/LuceneIndexDiagnosticsFactory.cs @@ -1,8 +1,10 @@ -using Examine; +// Copyright (c) Umbraco. +// See LICENSE for more details. + +using Examine; using Examine.LuceneEngine.Providers; using Microsoft.Extensions.Logging; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; +using Umbraco.Cms.Core.Hosting; namespace Umbraco.Examine { diff --git a/src/Umbraco.Examine.Lucene/LuceneRAMDirectoryFactory.cs b/src/Umbraco.Examine.Lucene/LuceneRAMDirectoryFactory.cs index 327328390b..5bf8fd7b94 100644 --- a/src/Umbraco.Examine.Lucene/LuceneRAMDirectoryFactory.cs +++ b/src/Umbraco.Examine.Lucene/LuceneRAMDirectoryFactory.cs @@ -1,5 +1,8 @@ -using Lucene.Net.Store; +// Copyright (c) Umbraco. +// See LICENSE for more details. + using System; +using Lucene.Net.Store; namespace Umbraco.Examine { diff --git a/src/Umbraco.Examine.Lucene/NoPrefixSimpleFsLockFactory.cs b/src/Umbraco.Examine.Lucene/NoPrefixSimpleFsLockFactory.cs index 7c83223d0b..1709a1a6a6 100644 --- a/src/Umbraco.Examine.Lucene/NoPrefixSimpleFsLockFactory.cs +++ b/src/Umbraco.Examine.Lucene/NoPrefixSimpleFsLockFactory.cs @@ -1,3 +1,6 @@ +// Copyright (c) Umbraco. +// See LICENSE for more details. + using System.IO; using Lucene.Net.Store; @@ -21,6 +24,5 @@ namespace Umbraco.Examine get => base.LockPrefix; set => base.LockPrefix = null; //always set to null } - } -} \ No newline at end of file +} diff --git a/src/Umbraco.Examine.Lucene/UmbracoContentIndex.cs b/src/Umbraco.Examine.Lucene/UmbracoContentIndex.cs index 0dcf269902..f03088afbf 100644 --- a/src/Umbraco.Examine.Lucene/UmbracoContentIndex.cs +++ b/src/Umbraco.Examine.Lucene/UmbracoContentIndex.cs @@ -1,19 +1,17 @@ -using System; +// Copyright (c) Umbraco. +// See LICENSE for more details. + +using System; using System.Collections.Generic; -using System.Collections.Specialized; -using System.ComponentModel; using System.Linq; -using Microsoft.Extensions.Logging; using Examine; -using Umbraco.Core; -using Umbraco.Core.Services; +using Examine.LuceneEngine; using Lucene.Net.Analysis; using Lucene.Net.Store; -using Umbraco.Core.Composing; -using Umbraco.Core.Logging; -using Examine.LuceneEngine; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; +using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Services; namespace Umbraco.Examine { diff --git a/src/Umbraco.Examine.Lucene/UmbracoExamineIndex.cs b/src/Umbraco.Examine.Lucene/UmbracoExamineIndex.cs index ceec013eaa..95655d5688 100644 --- a/src/Umbraco.Examine.Lucene/UmbracoExamineIndex.cs +++ b/src/Umbraco.Examine.Lucene/UmbracoExamineIndex.cs @@ -1,19 +1,22 @@ -using System; +// Copyright (c) Umbraco. +// See LICENSE for more details. + +using System; using System.Collections.Generic; using System.Linq; +using Examine; +using Examine.LuceneEngine; using Examine.LuceneEngine.Providers; using Lucene.Net.Analysis; using Lucene.Net.Documents; using Lucene.Net.Index; -using Umbraco.Core; -using Examine; -using Examine.LuceneEngine; using Lucene.Net.Store; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; -using Umbraco.Core.Logging; -using Directory = Lucene.Net.Store.Directory; using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Services; +using Directory = Lucene.Net.Store.Directory; namespace Umbraco.Examine { diff --git a/src/Umbraco.Examine.Lucene/UmbracoExamineIndexDiagnostics.cs b/src/Umbraco.Examine.Lucene/UmbracoExamineIndexDiagnostics.cs index 5952f410fc..124cd11f67 100644 --- a/src/Umbraco.Examine.Lucene/UmbracoExamineIndexDiagnostics.cs +++ b/src/Umbraco.Examine.Lucene/UmbracoExamineIndexDiagnostics.cs @@ -1,10 +1,10 @@ -using System.Collections.Generic; +// Copyright (c) Umbraco. +// See LICENSE for more details. + +using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; -using Lucene.Net.Store; -using Umbraco.Core; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; +using Umbraco.Cms.Core.Hosting; namespace Umbraco.Examine { diff --git a/src/Umbraco.Examine.Lucene/UmbracoIndexesCreator.cs b/src/Umbraco.Examine.Lucene/UmbracoIndexesCreator.cs index 2184108b4a..000eba7f58 100644 --- a/src/Umbraco.Examine.Lucene/UmbracoIndexesCreator.cs +++ b/src/Umbraco.Examine.Lucene/UmbracoIndexesCreator.cs @@ -1,21 +1,21 @@ -using System.Collections.Generic; -using Umbraco.Core.Logging; -using Umbraco.Core.Services; -using Lucene.Net.Analysis.Standard; -using Examine.LuceneEngine; +// Copyright (c) Umbraco. +// See LICENSE for more details. + +using System.Collections.Generic; using Examine; -using Umbraco.Core.Configuration; -using Umbraco.Core; -using Umbraco.Core.Composing; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; -using Umbraco.Core.Configuration.Models; -using Microsoft.Extensions.Options; +using Examine.LuceneEngine; +using Lucene.Net.Analysis.Standard; using Microsoft.Extensions.Logging; +using Microsoft.Extensions.Options; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Services; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Examine { - /// /// Creates the indexes used by Umbraco /// diff --git a/src/Umbraco.Examine.Lucene/UmbracoMemberIndex.cs b/src/Umbraco.Examine.Lucene/UmbracoMemberIndex.cs index a753df15ee..37a139bbc8 100644 --- a/src/Umbraco.Examine.Lucene/UmbracoMemberIndex.cs +++ b/src/Umbraco.Examine.Lucene/UmbracoMemberIndex.cs @@ -1,15 +1,16 @@ -using Examine; +// Copyright (c) Umbraco. +// See LICENSE for more details. + +using Examine; using Lucene.Net.Analysis; using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; -using Umbraco.Core.Logging; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Services; using Directory = Lucene.Net.Store.Directory; namespace Umbraco.Examine { - /// /// Custom indexer for members /// diff --git a/src/Umbraco.Infrastructure/Cache/DatabaseServerMessengerNotificationHandler.cs b/src/Umbraco.Infrastructure/Cache/DatabaseServerMessengerNotificationHandler.cs index fc3f66c28f..43a093f861 100644 --- a/src/Umbraco.Infrastructure/Cache/DatabaseServerMessengerNotificationHandler.cs +++ b/src/Umbraco.Infrastructure/Cache/DatabaseServerMessengerNotificationHandler.cs @@ -1,4 +1,7 @@ using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Sync; using Umbraco.Core.Events; using Umbraco.Core.Persistence; using Umbraco.Core.Sync; diff --git a/src/Umbraco.Infrastructure/Cache/DefaultRepositoryCachePolicy.cs b/src/Umbraco.Infrastructure/Cache/DefaultRepositoryCachePolicy.cs index e4102e8684..7eaf00e2c3 100644 --- a/src/Umbraco.Infrastructure/Cache/DefaultRepositoryCachePolicy.cs +++ b/src/Umbraco.Infrastructure/Cache/DefaultRepositoryCachePolicy.cs @@ -1,8 +1,10 @@ using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models.Entities; using Umbraco.Core.Scoping; +using Umbraco.Extensions; namespace Umbraco.Core.Cache { diff --git a/src/Umbraco.Infrastructure/Cache/DistributedCacheBinder.cs b/src/Umbraco.Infrastructure/Cache/DistributedCacheBinder.cs index 67987915ac..56fd755d24 100644 --- a/src/Umbraco.Infrastructure/Cache/DistributedCacheBinder.cs +++ b/src/Umbraco.Infrastructure/Cache/DistributedCacheBinder.cs @@ -4,8 +4,10 @@ using System.Collections.Generic; using System.Linq; using System.Reflection; using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Core.Events; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Web; +using Umbraco.Extensions; namespace Umbraco.Web.Cache { diff --git a/src/Umbraco.Infrastructure/Cache/DistributedCacheBinder_Handlers.cs b/src/Umbraco.Infrastructure/Cache/DistributedCacheBinder_Handlers.cs index 46968e81dc..56c7d20f85 100644 --- a/src/Umbraco.Infrastructure/Cache/DistributedCacheBinder_Handlers.cs +++ b/src/Umbraco.Infrastructure/Cache/DistributedCacheBinder_Handlers.cs @@ -2,11 +2,15 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Services.Changes; using Umbraco.Core.Events; using Umbraco.Core.Models; -using Umbraco.Core.Models.Membership; using Umbraco.Core.Services; -using Umbraco.Core.Services.Changes; using Umbraco.Core.Services.Implement; namespace Umbraco.Web.Cache diff --git a/src/Umbraco.Infrastructure/Cache/DistributedCacheExtensions.cs b/src/Umbraco.Infrastructure/Cache/DistributedCacheExtensions.cs index ef968e8fa6..03a00c376d 100644 --- a/src/Umbraco.Infrastructure/Cache/DistributedCacheExtensions.cs +++ b/src/Umbraco.Infrastructure/Cache/DistributedCacheExtensions.cs @@ -1,6 +1,8 @@ using System.Linq; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services.Changes; using Umbraco.Core.Models; -using Umbraco.Core.Services.Changes; namespace Umbraco.Web.Cache { diff --git a/src/Umbraco.Infrastructure/Cache/FullDataSetRepositoryCachePolicy.cs b/src/Umbraco.Infrastructure/Cache/FullDataSetRepositoryCachePolicy.cs index c3b69d9a6d..7ba25b8cb8 100644 --- a/src/Umbraco.Infrastructure/Cache/FullDataSetRepositoryCachePolicy.cs +++ b/src/Umbraco.Infrastructure/Cache/FullDataSetRepositoryCachePolicy.cs @@ -1,9 +1,11 @@ using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core.Collections; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Collections; +using Umbraco.Cms.Core.Models.Entities; using Umbraco.Core.Scoping; +using Umbraco.Extensions; namespace Umbraco.Core.Cache { diff --git a/src/Umbraco.Infrastructure/Cache/RepositoryCachePolicyBase.cs b/src/Umbraco.Infrastructure/Cache/RepositoryCachePolicyBase.cs index 33258cbf06..abf43d2335 100644 --- a/src/Umbraco.Infrastructure/Cache/RepositoryCachePolicyBase.cs +++ b/src/Umbraco.Infrastructure/Cache/RepositoryCachePolicyBase.cs @@ -1,6 +1,8 @@ using System; using System.Collections.Generic; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Scoping; using Umbraco.Core.Scoping; namespace Umbraco.Core.Cache diff --git a/src/Umbraco.Infrastructure/Cache/SingleItemsOnlyRepositoryCachePolicy.cs b/src/Umbraco.Infrastructure/Cache/SingleItemsOnlyRepositoryCachePolicy.cs index 9de7519edb..ba2631f78b 100644 --- a/src/Umbraco.Infrastructure/Cache/SingleItemsOnlyRepositoryCachePolicy.cs +++ b/src/Umbraco.Infrastructure/Cache/SingleItemsOnlyRepositoryCachePolicy.cs @@ -1,4 +1,5 @@ -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models.Entities; using Umbraco.Core.Scoping; namespace Umbraco.Core.Cache diff --git a/src/Umbraco.Infrastructure/Compose/AuditEventsComponent.cs b/src/Umbraco.Infrastructure/Compose/AuditEventsComponent.cs index c085db2496..78e0a50b4a 100644 --- a/src/Umbraco.Infrastructure/Compose/AuditEventsComponent.cs +++ b/src/Umbraco.Infrastructure/Compose/AuditEventsComponent.cs @@ -3,17 +3,21 @@ using System.Linq; using System.Text; using System.Threading; using Microsoft.Extensions.Options; -using Umbraco.Core.Composing; -using Umbraco.Core.Configuration.Models; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Net; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Events; using Umbraco.Core.Models; -using Umbraco.Core.Models.Membership; using Umbraco.Core.Services; using Umbraco.Core.Services.Implement; using Umbraco.Extensions; -using Umbraco.Net; - namespace Umbraco.Core.Compose { public sealed class AuditEventsComponent : IComponent @@ -63,7 +67,7 @@ namespace Umbraco.Core.Compose MemberService.Exported -= OnMemberExported; } - public static IUser UnknownUser(GlobalSettings globalSettings) => new User(globalSettings) { Id = Constants.Security.UnknownUserId, Name = Constants.Security.UnknownUserName, Email = "" }; + public static IUser UnknownUser(GlobalSettings globalSettings) => new User(globalSettings) { Id = Cms.Core.Constants.Security.UnknownUserId, Name = Cms.Core.Constants.Security.UnknownUserName, Email = "" }; private IUser CurrentPerformingUser { diff --git a/src/Umbraco.Infrastructure/Compose/AuditEventsComposer.cs b/src/Umbraco.Infrastructure/Compose/AuditEventsComposer.cs index 339d106087..59f24ef09a 100644 --- a/src/Umbraco.Infrastructure/Compose/AuditEventsComposer.cs +++ b/src/Umbraco.Infrastructure/Compose/AuditEventsComposer.cs @@ -1,4 +1,4 @@ -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; namespace Umbraco.Core.Compose { diff --git a/src/Umbraco.Infrastructure/Compose/BlockEditorComponent.cs b/src/Umbraco.Infrastructure/Compose/BlockEditorComponent.cs index a8b4cfb8ca..a4f2f625a8 100644 --- a/src/Umbraco.Infrastructure/Compose/BlockEditorComponent.cs +++ b/src/Umbraco.Infrastructure/Compose/BlockEditorComponent.cs @@ -3,10 +3,13 @@ using System.Collections.Generic; using System.Linq; using Newtonsoft.Json; using Newtonsoft.Json.Linq; -using Umbraco.Core; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Models.Blocks; using Umbraco.Core.Models.Blocks; using Umbraco.Core.PropertyEditors; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web.Compose { diff --git a/src/Umbraco.Infrastructure/Compose/BlockEditorComposer.cs b/src/Umbraco.Infrastructure/Compose/BlockEditorComposer.cs index c0ab3c42b5..c29fc131e5 100644 --- a/src/Umbraco.Infrastructure/Compose/BlockEditorComposer.cs +++ b/src/Umbraco.Infrastructure/Compose/BlockEditorComposer.cs @@ -1,4 +1,4 @@ -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; namespace Umbraco.Web.Compose { diff --git a/src/Umbraco.Infrastructure/Compose/NestedContentPropertyComponent.cs b/src/Umbraco.Infrastructure/Compose/NestedContentPropertyComponent.cs index 7116b3eb86..c173d2cb89 100644 --- a/src/Umbraco.Infrastructure/Compose/NestedContentPropertyComponent.cs +++ b/src/Umbraco.Infrastructure/Compose/NestedContentPropertyComponent.cs @@ -1,14 +1,15 @@ using System; using System.Linq; using Newtonsoft.Json.Linq; -using Umbraco.Core; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Composing; using Umbraco.Core.PropertyEditors; +using Umbraco.Extensions; using Umbraco.Web.PropertyEditors; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web.Compose { - /// /// A component for NestedContent used to bind to events /// diff --git a/src/Umbraco.Infrastructure/Compose/NestedContentPropertyComposer.cs b/src/Umbraco.Infrastructure/Compose/NestedContentPropertyComposer.cs index e357cf849b..535359f323 100644 --- a/src/Umbraco.Infrastructure/Compose/NestedContentPropertyComposer.cs +++ b/src/Umbraco.Infrastructure/Compose/NestedContentPropertyComposer.cs @@ -1,5 +1,5 @@ -using Umbraco.Core; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; +using Umbraco.Core; namespace Umbraco.Web.Compose { diff --git a/src/Umbraco.Infrastructure/Compose/NotificationsComponent.cs b/src/Umbraco.Infrastructure/Compose/NotificationsComponent.cs index ad3efc88df..9fceb80382 100644 --- a/src/Umbraco.Infrastructure/Compose/NotificationsComponent.cs +++ b/src/Umbraco.Infrastructure/Compose/NotificationsComponent.cs @@ -1,20 +1,25 @@ -using System; +// Copyright (c) Umbraco. +// See LICENSE for more details. + +using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Composing; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Security; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Actions; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Services.Implement; -using Umbraco.Web.Actions; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web.Compose { @@ -72,40 +77,40 @@ namespace Umbraco.Web.Compose UserService.UserGroupPermissionsAssigned -= UserService_UserGroupPermissionsAssigned; } - private void UserService_UserGroupPermissionsAssigned(IUserService sender, Core.Events.SaveEventArgs args) + private void UserService_UserGroupPermissionsAssigned(IUserService sender, SaveEventArgs args) => UserServiceUserGroupPermissionsAssigned(args, _contentService); - private void PublicAccessService_Saved(IPublicAccessService sender, Core.Events.SaveEventArgs args) + private void PublicAccessService_Saved(IPublicAccessService sender, SaveEventArgs args) => PublicAccessServiceSaved(args, _contentService); - private void ContentService_RolledBack(IContentService sender, Core.Events.RollbackEventArgs args) + private void ContentService_RolledBack(IContentService sender, RollbackEventArgs args) => _notifier.Notify(_actions.GetAction(), args.Entity); - private void ContentService_Copied(IContentService sender, Core.Events.CopyEventArgs args) + private void ContentService_Copied(IContentService sender, CopyEventArgs args) => _notifier.Notify(_actions.GetAction(), args.Original); - private void ContentService_Trashed(IContentService sender, Core.Events.MoveEventArgs args) + private void ContentService_Trashed(IContentService sender, MoveEventArgs args) => _notifier.Notify(_actions.GetAction(), args.MoveInfoCollection.Select(m => m.Entity).ToArray()); - private void ContentService_Moved(IContentService sender, Core.Events.MoveEventArgs args) + private void ContentService_Moved(IContentService sender, MoveEventArgs args) => ContentServiceMoved(args); - private void ContentService_Unpublished(IContentService sender, Core.Events.PublishEventArgs args) + private void ContentService_Unpublished(IContentService sender, PublishEventArgs args) => _notifier.Notify(_actions.GetAction(), args.PublishedEntities.ToArray()); - private void ContentService_Saved(IContentService sender, Core.Events.ContentSavedEventArgs args) + private void ContentService_Saved(IContentService sender, ContentSavedEventArgs args) => ContentServiceSaved(args); - private void ContentService_Sorted(IContentService sender, Core.Events.SaveEventArgs args) + private void ContentService_Sorted(IContentService sender, SaveEventArgs args) => ContentServiceSorted(sender, args); - private void ContentService_Published(IContentService sender, Core.Events.ContentPublishedEventArgs args) + private void ContentService_Published(IContentService sender, ContentPublishedEventArgs args) => _notifier.Notify(_actions.GetAction(), args.PublishedEntities.ToArray()); - private void ContentService_SentToPublish(IContentService sender, Core.Events.SendToPublishEventArgs args) + private void ContentService_SentToPublish(IContentService sender, SendToPublishEventArgs args) => _notifier.Notify(_actions.GetAction(), args.Entity); - private void ContentServiceSorted(IContentService sender, Core.Events.SaveEventArgs args) + private void ContentServiceSorted(IContentService sender, SaveEventArgs args) { var parentId = args.SavedEntities.Select(x => x.ParentId).Distinct().ToList(); if (parentId.Count != 1) return; // this shouldn't happen, for sorting all entities will have the same parent id @@ -120,7 +125,7 @@ namespace Umbraco.Web.Compose _notifier.Notify(_actions.GetAction(), new[] { parent }); } - private void ContentServiceSaved(Core.Events.SaveEventArgs args) + private void ContentServiceSaved(SaveEventArgs args) { var newEntities = new List(); var updatedEntities = new List(); @@ -144,7 +149,7 @@ namespace Umbraco.Web.Compose _notifier.Notify(_actions.GetAction(), updatedEntities.ToArray()); } - private void UserServiceUserGroupPermissionsAssigned(Core.Events.SaveEventArgs args, IContentService contentService) + private void UserServiceUserGroupPermissionsAssigned(SaveEventArgs args, IContentService contentService) { var entities = contentService.GetByIds(args.SavedEntities.Select(e => e.EntityId)).ToArray(); if (entities.Any() == false) @@ -154,7 +159,7 @@ namespace Umbraco.Web.Compose _notifier.Notify(_actions.GetAction(), entities); } - private void ContentServiceMoved(Core.Events.MoveEventArgs args) + private void ContentServiceMoved(MoveEventArgs args) { // notify about the move for all moved items _notifier.Notify(_actions.GetAction(), args.MoveInfoCollection.Select(m => m.Entity).ToArray()); @@ -170,7 +175,7 @@ namespace Umbraco.Web.Compose } } - private void PublicAccessServiceSaved(Core.Events.SaveEventArgs args, IContentService contentService) + private void PublicAccessServiceSaved(SaveEventArgs args, IContentService contentService) { var entities = contentService.GetByIds(args.SavedEntities.Select(e => e.ProtectedNodeId)).ToArray(); if (entities.Any() == false) diff --git a/src/Umbraco.Infrastructure/Compose/NotificationsComposer.cs b/src/Umbraco.Infrastructure/Compose/NotificationsComposer.cs index 79066dedd7..6eec6f773a 100644 --- a/src/Umbraco.Infrastructure/Compose/NotificationsComposer.cs +++ b/src/Umbraco.Infrastructure/Compose/NotificationsComposer.cs @@ -1,5 +1,6 @@ -using Umbraco.Core.DependencyInjection; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.DependencyInjection; +using Umbraco.Extensions; namespace Umbraco.Web.Compose { diff --git a/src/Umbraco.Infrastructure/Compose/PublicAccessComponent.cs b/src/Umbraco.Infrastructure/Compose/PublicAccessComponent.cs index a917cfe0ef..fb196c7981 100644 --- a/src/Umbraco.Infrastructure/Compose/PublicAccessComponent.cs +++ b/src/Umbraco.Infrastructure/Compose/PublicAccessComponent.cs @@ -1,8 +1,10 @@ using System; -using Umbraco.Core; -using Umbraco.Core.Composing; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Services.Implement; +using Umbraco.Extensions; namespace Umbraco.Web.Compose { @@ -24,7 +26,7 @@ namespace Umbraco.Web.Compose MemberGroupService.Saved -= MemberGroupService_Saved; } - private void MemberGroupService_Saved(IMemberGroupService sender, Core.Events.SaveEventArgs e) + private void MemberGroupService_Saved(IMemberGroupService sender, SaveEventArgs e) { foreach (var grp in e.SavedEntities) { diff --git a/src/Umbraco.Infrastructure/Compose/PublicAccessComposer.cs b/src/Umbraco.Infrastructure/Compose/PublicAccessComposer.cs index 3a23f7da34..86074d1f13 100644 --- a/src/Umbraco.Infrastructure/Compose/PublicAccessComposer.cs +++ b/src/Umbraco.Infrastructure/Compose/PublicAccessComposer.cs @@ -1,4 +1,4 @@ -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; namespace Umbraco.Web.Compose { diff --git a/src/Umbraco.Infrastructure/Compose/RelateOnCopyComponent.cs b/src/Umbraco.Infrastructure/Compose/RelateOnCopyComponent.cs index 3418dfcfc0..ee1c6b8da5 100644 --- a/src/Umbraco.Infrastructure/Compose/RelateOnCopyComponent.cs +++ b/src/Umbraco.Infrastructure/Compose/RelateOnCopyComponent.cs @@ -1,4 +1,7 @@ -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Models; using Umbraco.Core.Services; using Umbraco.Core.Services.Implement; @@ -27,20 +30,20 @@ namespace Umbraco.Core.Compose ContentService.Copied -= ContentServiceCopied; } - private void ContentServiceCopied(IContentService sender, Events.CopyEventArgs e) + private void ContentServiceCopied(IContentService sender, CopyEventArgs e) { if (e.RelateToOriginal == false) return; - var relationType = _relationService.GetRelationTypeByAlias(Constants.Conventions.RelationTypes.RelateDocumentOnCopyAlias); + var relationType = _relationService.GetRelationTypeByAlias(Cms.Core.Constants.Conventions.RelationTypes.RelateDocumentOnCopyAlias); if (relationType == null) { - relationType = new RelationType(Constants.Conventions.RelationTypes.RelateDocumentOnCopyAlias, - Constants.Conventions.RelationTypes.RelateDocumentOnCopyName, + relationType = new RelationType(Cms.Core.Constants.Conventions.RelationTypes.RelateDocumentOnCopyAlias, + Cms.Core.Constants.Conventions.RelationTypes.RelateDocumentOnCopyName, true, - Constants.ObjectTypes.Document, - Constants.ObjectTypes.Document); + Cms.Core.Constants.ObjectTypes.Document, + Cms.Core.Constants.ObjectTypes.Document); _relationService.Save(relationType); } diff --git a/src/Umbraco.Infrastructure/Compose/RelateOnCopyComposer.cs b/src/Umbraco.Infrastructure/Compose/RelateOnCopyComposer.cs index 4e4bd9ff15..c08cb5272b 100644 --- a/src/Umbraco.Infrastructure/Compose/RelateOnCopyComposer.cs +++ b/src/Umbraco.Infrastructure/Compose/RelateOnCopyComposer.cs @@ -1,4 +1,4 @@ -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; namespace Umbraco.Core.Compose { diff --git a/src/Umbraco.Infrastructure/Compose/RelateOnTrashComponent.cs b/src/Umbraco.Infrastructure/Compose/RelateOnTrashComponent.cs index bac5b27ae7..81c333cbbc 100644 --- a/src/Umbraco.Infrastructure/Compose/RelateOnTrashComponent.cs +++ b/src/Umbraco.Infrastructure/Compose/RelateOnTrashComponent.cs @@ -1,10 +1,11 @@ using System.Linq; -using Umbraco.Core.Composing; -using Umbraco.Core.Events; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Scoping; -using Umbraco.Core.Services; using Umbraco.Core.Services.Implement; +using Umbraco.Extensions; namespace Umbraco.Core.Compose { @@ -48,10 +49,10 @@ namespace Umbraco.Core.Compose private void ContentService_Moved(IContentService sender, MoveEventArgs e) { - foreach (var item in e.MoveInfoCollection.Where(x => x.OriginalPath.Contains(Constants.System.RecycleBinContentString))) + foreach (var item in e.MoveInfoCollection.Where(x => x.OriginalPath.Contains(Cms.Core.Constants.System.RecycleBinContentString))) { - const string relationTypeAlias = Constants.Conventions.RelationTypes.RelateParentDocumentOnDeleteAlias; + const string relationTypeAlias = Cms.Core.Constants.Conventions.RelationTypes.RelateParentDocumentOnDeleteAlias; var relations = _relationService.GetByChildId(item.Entity.Id); foreach (var relation in relations.Where(x => x.RelationType.Alias.InvariantEquals(relationTypeAlias))) @@ -63,9 +64,9 @@ namespace Umbraco.Core.Compose private void MediaService_Moved(IMediaService sender, MoveEventArgs e) { - foreach (var item in e.MoveInfoCollection.Where(x => x.OriginalPath.Contains(Constants.System.RecycleBinMediaString))) + foreach (var item in e.MoveInfoCollection.Where(x => x.OriginalPath.Contains(Cms.Core.Constants.System.RecycleBinMediaString))) { - const string relationTypeAlias = Constants.Conventions.RelationTypes.RelateParentMediaFolderOnDeleteAlias; + const string relationTypeAlias = Cms.Core.Constants.Conventions.RelationTypes.RelateParentMediaFolderOnDeleteAlias; var relations = _relationService.GetByChildId(item.Entity.Id); foreach (var relation in relations.Where(x => x.RelationType.Alias.InvariantEquals(relationTypeAlias))) { @@ -78,15 +79,15 @@ namespace Umbraco.Core.Compose { using (var scope = _scopeProvider.CreateScope()) { - const string relationTypeAlias = Constants.Conventions.RelationTypes.RelateParentDocumentOnDeleteAlias; + const string relationTypeAlias = Cms.Core.Constants.Conventions.RelationTypes.RelateParentDocumentOnDeleteAlias; var relationType = _relationService.GetRelationTypeByAlias(relationTypeAlias); // check that the relation-type exists, if not, then recreate it if (relationType == null) { - var documentObjectType = Constants.ObjectTypes.Document; + var documentObjectType = Cms.Core.Constants.ObjectTypes.Document; const string relationTypeName = - Constants.Conventions.RelationTypes.RelateParentDocumentOnDeleteName; + Cms.Core.Constants.Conventions.RelationTypes.RelateParentDocumentOnDeleteName; relationType = new RelationType(relationTypeName, relationTypeAlias, false, documentObjectType, documentObjectType); @@ -98,7 +99,7 @@ namespace Umbraco.Core.Compose var originalPath = item.OriginalPath.ToDelimitedList(); var originalParentId = originalPath.Count > 2 ? int.Parse(originalPath[originalPath.Count - 2]) - : Constants.System.Root; + : Cms.Core.Constants.System.Root; //before we can create this relation, we need to ensure that the original parent still exists which //may not be the case if the encompassing transaction also deleted it when this item was moved to the bin @@ -129,14 +130,14 @@ namespace Umbraco.Core.Compose using (var scope = _scopeProvider.CreateScope()) { const string relationTypeAlias = - Constants.Conventions.RelationTypes.RelateParentMediaFolderOnDeleteAlias; + Cms.Core.Constants.Conventions.RelationTypes.RelateParentMediaFolderOnDeleteAlias; var relationType = _relationService.GetRelationTypeByAlias(relationTypeAlias); // check that the relation-type exists, if not, then recreate it if (relationType == null) { - var documentObjectType = Constants.ObjectTypes.Document; + var documentObjectType = Cms.Core.Constants.ObjectTypes.Document; const string relationTypeName = - Constants.Conventions.RelationTypes.RelateParentMediaFolderOnDeleteName; + Cms.Core.Constants.Conventions.RelationTypes.RelateParentMediaFolderOnDeleteName; relationType = new RelationType(relationTypeName, relationTypeAlias, false, documentObjectType, documentObjectType); _relationService.Save(relationType); @@ -147,7 +148,7 @@ namespace Umbraco.Core.Compose var originalPath = item.OriginalPath.ToDelimitedList(); var originalParentId = originalPath.Count > 2 ? int.Parse(originalPath[originalPath.Count - 2]) - : Constants.System.Root; + : Cms.Core.Constants.System.Root; //before we can create this relation, we need to ensure that the original parent still exists which //may not be the case if the encompassing transaction also deleted it when this item was moved to the bin if (_entityService.Exists(originalParentId)) diff --git a/src/Umbraco.Infrastructure/Compose/RelateOnTrashComposer.cs b/src/Umbraco.Infrastructure/Compose/RelateOnTrashComposer.cs index 76ee76f5ec..690c58a498 100644 --- a/src/Umbraco.Infrastructure/Compose/RelateOnTrashComposer.cs +++ b/src/Umbraco.Infrastructure/Compose/RelateOnTrashComposer.cs @@ -1,4 +1,4 @@ -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; namespace Umbraco.Core.Compose { diff --git a/src/Umbraco.Infrastructure/Configuration/JsonConfigManipulator.cs b/src/Umbraco.Infrastructure/Configuration/JsonConfigManipulator.cs index 0d6be8717a..9f51652b3a 100644 --- a/src/Umbraco.Infrastructure/Configuration/JsonConfigManipulator.cs +++ b/src/Umbraco.Infrastructure/Configuration/JsonConfigManipulator.cs @@ -5,6 +5,7 @@ using Microsoft.Extensions.Configuration.Json; using Microsoft.Extensions.FileProviders; using Newtonsoft.Json; using Newtonsoft.Json.Linq; +using Umbraco.Cms.Core.Configuration; namespace Umbraco.Core.Configuration { @@ -17,7 +18,7 @@ namespace Umbraco.Core.Configuration _configuration = configuration; } - public string UmbracoConnectionPath { get; } = $"ConnectionStrings:{ Constants.System.UmbracoConnectionName}"; + public string UmbracoConnectionPath { get; } = $"ConnectionStrings:{ Cms.Core.Constants.System.UmbracoConnectionName}"; public void RemoveConnectionString() { var provider = GetJsonConfigurationProvider(UmbracoConnectionPath); @@ -142,7 +143,7 @@ namespace Umbraco.Core.Configuration writer.WriteStartObject(); writer.WritePropertyName("ConnectionStrings"); writer.WriteStartObject(); - writer.WritePropertyName(Constants.System.UmbracoConnectionName); + writer.WritePropertyName(Cms.Core.Constants.System.UmbracoConnectionName); writer.WriteValue(connectionString); writer.WriteEndObject(); writer.WriteEndObject(); diff --git a/src/Umbraco.Infrastructure/Configuration/NCronTabParser.cs b/src/Umbraco.Infrastructure/Configuration/NCronTabParser.cs index ca25563730..5a086bae1e 100644 --- a/src/Umbraco.Infrastructure/Configuration/NCronTabParser.cs +++ b/src/Umbraco.Infrastructure/Configuration/NCronTabParser.cs @@ -1,5 +1,6 @@ using System; using NCrontab; +using Umbraco.Cms.Core.Configuration; namespace Umbraco.Core.Configuration { diff --git a/src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.Collections.cs b/src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.Collections.cs index 4da9c93fb3..23dd9e0603 100644 --- a/src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.Collections.cs +++ b/src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.Collections.cs @@ -1,12 +1,8 @@ +using Umbraco.Cms.Core.DependencyInjection; using Umbraco.Core.Cache; -using Umbraco.Core.DependencyInjection; using Umbraco.Core.Manifest; -using Umbraco.Core.PackageActions; using Umbraco.Core.Persistence.Mappers; using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Strings; -using Umbraco.Core.Trees; -using Umbraco.Web.Media.EmbedProviders; namespace Umbraco.Infrastructure.DependencyInjection { diff --git a/src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.CoreServices.cs b/src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.CoreServices.cs index f8fc338ee1..d508f8b1f6 100644 --- a/src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.CoreServices.cs +++ b/src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.CoreServices.cs @@ -3,30 +3,41 @@ using Examine; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.DependencyInjection; +using Umbraco.Cms.Core.HealthChecks.NotificationMethods; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Install; +using Umbraco.Cms.Core.Mail; +using Umbraco.Cms.Core.Manifest; +using Umbraco.Cms.Core.Media; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PropertyEditors.ValueConverters; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Runtime; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Core.Templates; +using Umbraco.Cms.Core.Trees; +using Umbraco.Cms.Core.Web; using Umbraco.Core; using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.DependencyInjection; -using Umbraco.Core.HealthChecks.NotificationMethods; -using Umbraco.Core.Hosting; -using Umbraco.Core.Install; using Umbraco.Core.Logging.Serilog.Enrichers; -using Umbraco.Core.Mail; using Umbraco.Core.Manifest; -using Umbraco.Core.Media; using Umbraco.Core.Migrations; using Umbraco.Core.Migrations.Install; using Umbraco.Core.Migrations.PostMigrations; -using Umbraco.Core.Models.PublishedContent; using Umbraco.Core.Packaging; using Umbraco.Core.Persistence; -using Umbraco.Core.PropertyEditors.ValueConverters; using Umbraco.Core.Runtime; using Umbraco.Core.Scoping; using Umbraco.Core.Serialization; -using Umbraco.Core.Strings; -using Umbraco.Core.Templates; using Umbraco.Examine; +using Umbraco.Extensions; using Umbraco.Infrastructure.Examine; using Umbraco.Infrastructure.HealthChecks; using Umbraco.Infrastructure.HostedServices; @@ -37,13 +48,10 @@ using Umbraco.Infrastructure.Runtime; using Umbraco.Web; using Umbraco.Web.Media; using Umbraco.Web.Migrations.PostMigrations; -using Umbraco.Web.Models.PublishedContent; using Umbraco.Web.PropertyEditors; using Umbraco.Web.PropertyEditors.ValueConverters; -using Umbraco.Web.PublishedCache; using Umbraco.Web.Routing; using Umbraco.Web.Search; -using Umbraco.Web.Trees; namespace Umbraco.Infrastructure.DependencyInjection { diff --git a/src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.DistributedCache.cs b/src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.DistributedCache.cs index e816972989..c3288e9c07 100644 --- a/src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.DistributedCache.cs +++ b/src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.DistributedCache.cs @@ -1,13 +1,15 @@ using System; using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.DependencyInjection.Extensions; -using Umbraco.Core.DependencyInjection; -using Umbraco.Core.Events; -using Umbraco.Core.Services.Changes; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.DependencyInjection; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Services.Changes; +using Umbraco.Cms.Core.Sync; using Umbraco.Core.Sync; +using Umbraco.Extensions; using Umbraco.Infrastructure.Cache; using Umbraco.Web.Cache; -using Umbraco.Web.PublishedCache; using Umbraco.Web.Search; namespace Umbraco.Infrastructure.DependencyInjection diff --git a/src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.FileSystems.cs b/src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.FileSystems.cs index 5c61fd2c60..262a84d11a 100644 --- a/src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.FileSystems.cs +++ b/src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.FileSystems.cs @@ -1,11 +1,12 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.DependencyInjection; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; -using Umbraco.Core.IO.MediaPathSchemes; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.DependencyInjection; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.IO.MediaPathSchemes; +using Umbraco.Extensions; namespace Umbraco.Infrastructure.DependencyInjection { diff --git a/src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.Installer.cs b/src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.Installer.cs index 21bb4d7ceb..6e2b5020a2 100644 --- a/src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.Installer.cs +++ b/src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.Installer.cs @@ -1,9 +1,10 @@ using Microsoft.Extensions.DependencyInjection; -using Umbraco.Core.DependencyInjection; -using Umbraco.Core.Install.InstallSteps; +using Umbraco.Cms.Core.DependencyInjection; +using Umbraco.Cms.Core.Install.InstallSteps; +using Umbraco.Cms.Core.Install.Models; +using Umbraco.Extensions; using Umbraco.Web.Install; using Umbraco.Web.Install.InstallSteps; -using Umbraco.Web.Install.Models; namespace Umbraco.Infrastructure.DependencyInjection { diff --git a/src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.MappingProfiles.cs b/src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.MappingProfiles.cs index 4974a043b1..0f0ecc21f9 100644 --- a/src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.MappingProfiles.cs +++ b/src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.MappingProfiles.cs @@ -1,7 +1,9 @@ using Microsoft.Extensions.DependencyInjection; -using Umbraco.Core.DependencyInjection; -using Umbraco.Core.Mapping; +using Umbraco.Cms.Core.DependencyInjection; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models.Mapping; using Umbraco.Core.Security; +using Umbraco.Extensions; using Umbraco.Web.Models.Mapping; namespace Umbraco.Infrastructure.DependencyInjection diff --git a/src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.Repositories.cs b/src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.Repositories.cs index 1e32eddb5c..4a01093b1a 100644 --- a/src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.Repositories.cs +++ b/src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.Repositories.cs @@ -1,6 +1,8 @@ -using Umbraco.Core.DependencyInjection; +using Umbraco.Cms.Core.DependencyInjection; +using Umbraco.Cms.Core.Persistence.Repositories; using Umbraco.Core.Persistence.Repositories; using Umbraco.Core.Persistence.Repositories.Implement; +using Umbraco.Extensions; namespace Umbraco.Infrastructure.DependencyInjection { diff --git a/src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.Services.cs b/src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.Services.cs index 918bdcb941..c5cf642140 100644 --- a/src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.Services.cs +++ b/src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.Services.cs @@ -4,17 +4,19 @@ using System.Linq; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.DependencyInjection; -using Umbraco.Core.Events; -using Umbraco.Core.Hosting; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.DependencyInjection; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Packaging; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Packaging; -using Umbraco.Core.Routing; using Umbraco.Core.Services; using Umbraco.Core.Services.Implement; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Infrastructure.DependencyInjection { diff --git a/src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.Uniques.cs b/src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.Uniques.cs index f26b4442f8..de94f7ed68 100644 --- a/src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.Uniques.cs +++ b/src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.Uniques.cs @@ -1,12 +1,12 @@ using System; using Microsoft.Extensions.DependencyInjection; -using Umbraco.Core.DependencyInjection; -using Umbraco.Core.Dictionary; -using Umbraco.Core.IO; +using Umbraco.Cms.Core.DependencyInjection; +using Umbraco.Cms.Core.Dictionary; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Strings; using Umbraco.Core.Logging.Viewer; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Strings; -using Umbraco.Core.Sync; +using Umbraco.Extensions; namespace Umbraco.Infrastructure.DependencyInjection { diff --git a/src/Umbraco.Infrastructure/Deploy/IGridCellValueConnector.cs b/src/Umbraco.Infrastructure/Deploy/IGridCellValueConnector.cs index 15ed404d31..1fdcf60bd9 100644 --- a/src/Umbraco.Infrastructure/Deploy/IGridCellValueConnector.cs +++ b/src/Umbraco.Infrastructure/Deploy/IGridCellValueConnector.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using Umbraco.Cms.Core.Deploy; using Umbraco.Core.Models; namespace Umbraco.Core.Deploy diff --git a/src/Umbraco.Infrastructure/EmailSender.cs b/src/Umbraco.Infrastructure/EmailSender.cs index 4c377f1ff1..fb2ad3c390 100644 --- a/src/Umbraco.Infrastructure/EmailSender.cs +++ b/src/Umbraco.Infrastructure/EmailSender.cs @@ -5,9 +5,11 @@ using MailKit.Security; using Microsoft.Extensions.Options; using MimeKit; using MimeKit.Text; -using Umbraco.Core.Configuration.Models; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Mail; +using Umbraco.Cms.Core.Models; using Umbraco.Core.Events; -using Umbraco.Core.Mail; using Umbraco.Core.Models; using SmtpClient = MailKit.Net.Smtp.SmtpClient; diff --git a/src/Umbraco.Infrastructure/Events/MigrationEventArgs.cs b/src/Umbraco.Infrastructure/Events/MigrationEventArgs.cs index 5349f3c374..5065f35581 100644 --- a/src/Umbraco.Infrastructure/Events/MigrationEventArgs.cs +++ b/src/Umbraco.Infrastructure/Events/MigrationEventArgs.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; -using Semver; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Semver; using Umbraco.Core.Migrations; namespace Umbraco.Core.Events diff --git a/src/Umbraco.Infrastructure/Events/QueuingEventDispatcher.cs b/src/Umbraco.Infrastructure/Events/QueuingEventDispatcher.cs index d9adf93eb5..abb21a3c19 100644 --- a/src/Umbraco.Infrastructure/Events/QueuingEventDispatcher.cs +++ b/src/Umbraco.Infrastructure/Events/QueuingEventDispatcher.cs @@ -1,5 +1,5 @@ -using Umbraco.Core.Composing; -using Umbraco.Core.IO; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.IO; namespace Umbraco.Core.Events { diff --git a/src/Umbraco.Infrastructure/Examine/BaseValueSetBuilder.cs b/src/Umbraco.Infrastructure/Examine/BaseValueSetBuilder.cs index 2350d3cb84..d014ab4728 100644 --- a/src/Umbraco.Infrastructure/Examine/BaseValueSetBuilder.cs +++ b/src/Umbraco.Infrastructure/Examine/BaseValueSetBuilder.cs @@ -1,12 +1,12 @@ using System.Collections.Generic; using Examine; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.PropertyEditors; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Extensions; namespace Umbraco.Examine { - /// public abstract class BaseValueSetBuilder : IValueSetBuilder where TContent : IContentBase diff --git a/src/Umbraco.Infrastructure/Examine/ContentIndexPopulator.cs b/src/Umbraco.Infrastructure/Examine/ContentIndexPopulator.cs index 7d393f1323..08fc7da901 100644 --- a/src/Umbraco.Infrastructure/Examine/ContentIndexPopulator.cs +++ b/src/Umbraco.Infrastructure/Examine/ContentIndexPopulator.cs @@ -2,6 +2,10 @@ using System.Collections.Generic; using System.Linq; using Examine; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Services; using Umbraco.Core; using Umbraco.Core.Models; using Umbraco.Core.Persistence; diff --git a/src/Umbraco.Infrastructure/Examine/ContentValueSetBuilder.cs b/src/Umbraco.Infrastructure/Examine/ContentValueSetBuilder.cs index f03fcca181..220f8197d2 100644 --- a/src/Umbraco.Infrastructure/Examine/ContentValueSetBuilder.cs +++ b/src/Umbraco.Infrastructure/Examine/ContentValueSetBuilder.cs @@ -1,13 +1,14 @@ -using Examine; -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.PropertyEditors; +using Examine; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; using Umbraco.Core.Scoping; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Umbraco.Extensions; namespace Umbraco.Examine { diff --git a/src/Umbraco.Infrastructure/Examine/ContentValueSetValidator.cs b/src/Umbraco.Infrastructure/Examine/ContentValueSetValidator.cs index 24c9ab2c84..af40ddc4a0 100644 --- a/src/Umbraco.Infrastructure/Examine/ContentValueSetValidator.cs +++ b/src/Umbraco.Infrastructure/Examine/ContentValueSetValidator.cs @@ -1,8 +1,9 @@ using System.Collections.Generic; using System.Linq; using Examine; -using Umbraco.Core; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Examine { diff --git a/src/Umbraco.Infrastructure/Examine/ExamineExtensions.cs b/src/Umbraco.Infrastructure/Examine/ExamineExtensions.cs index 5da21de6df..aed9e2fb6f 100644 --- a/src/Umbraco.Infrastructure/Examine/ExamineExtensions.cs +++ b/src/Umbraco.Infrastructure/Examine/ExamineExtensions.cs @@ -1,7 +1,8 @@ using System; using System.Collections.Generic; using Examine; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; using Umbraco.Examine; using Umbraco.Web.PublishedCache; diff --git a/src/Umbraco.Infrastructure/Examine/GenericIndexDiagnostics.cs b/src/Umbraco.Infrastructure/Examine/GenericIndexDiagnostics.cs index c384392710..36c3caa6d5 100644 --- a/src/Umbraco.Infrastructure/Examine/GenericIndexDiagnostics.cs +++ b/src/Umbraco.Infrastructure/Examine/GenericIndexDiagnostics.cs @@ -2,8 +2,9 @@ using System.Collections.Generic; using System.Linq; using Examine; -using Umbraco.Core; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Composing; +using Umbraco.Extensions; namespace Umbraco.Examine { diff --git a/src/Umbraco.Infrastructure/Examine/IBackOfficeExamineSearcher.cs b/src/Umbraco.Infrastructure/Examine/IBackOfficeExamineSearcher.cs index 719d5a33f2..885c6c99b7 100644 --- a/src/Umbraco.Infrastructure/Examine/IBackOfficeExamineSearcher.cs +++ b/src/Umbraco.Infrastructure/Examine/IBackOfficeExamineSearcher.cs @@ -1,6 +1,6 @@ using Examine; using System.Collections.Generic; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Models.ContentEditing; namespace Umbraco.Examine { diff --git a/src/Umbraco.Infrastructure/Examine/IContentValueSetBuilder.cs b/src/Umbraco.Infrastructure/Examine/IContentValueSetBuilder.cs index fed706d592..72870fcf85 100644 --- a/src/Umbraco.Infrastructure/Examine/IContentValueSetBuilder.cs +++ b/src/Umbraco.Infrastructure/Examine/IContentValueSetBuilder.cs @@ -1,4 +1,5 @@ using Examine; +using Umbraco.Cms.Core.Models; using Umbraco.Core.Models; namespace Umbraco.Examine diff --git a/src/Umbraco.Infrastructure/Examine/IIndexDiagnostics.cs b/src/Umbraco.Infrastructure/Examine/IIndexDiagnostics.cs index fa9dde25b8..da03d2546a 100644 --- a/src/Umbraco.Infrastructure/Examine/IIndexDiagnostics.cs +++ b/src/Umbraco.Infrastructure/Examine/IIndexDiagnostics.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using Umbraco.Cms.Core; using Umbraco.Core; namespace Umbraco.Examine diff --git a/src/Umbraco.Infrastructure/Examine/IPublishedContentValueSetBuilder.cs b/src/Umbraco.Infrastructure/Examine/IPublishedContentValueSetBuilder.cs index c337a7a1e6..a4688003b6 100644 --- a/src/Umbraco.Infrastructure/Examine/IPublishedContentValueSetBuilder.cs +++ b/src/Umbraco.Infrastructure/Examine/IPublishedContentValueSetBuilder.cs @@ -1,4 +1,5 @@ using Examine; +using Umbraco.Cms.Core.Models; using Umbraco.Core.Models; namespace Umbraco.Examine @@ -9,4 +10,4 @@ namespace Umbraco.Examine public interface IPublishedContentValueSetBuilder : IValueSetBuilder { } -} \ No newline at end of file +} diff --git a/src/Umbraco.Infrastructure/Examine/IndexPopulator.cs b/src/Umbraco.Infrastructure/Examine/IndexPopulator.cs index bfd757f9be..42182d1af1 100644 --- a/src/Umbraco.Infrastructure/Examine/IndexPopulator.cs +++ b/src/Umbraco.Infrastructure/Examine/IndexPopulator.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.Linq; using Examine; -using Umbraco.Core.Collections; +using Umbraco.Cms.Core.Collections; namespace Umbraco.Examine { diff --git a/src/Umbraco.Infrastructure/Examine/IndexRebuilder.cs b/src/Umbraco.Infrastructure/Examine/IndexRebuilder.cs index bafdfc72f4..2098fedeaa 100644 --- a/src/Umbraco.Infrastructure/Examine/IndexRebuilder.cs +++ b/src/Umbraco.Infrastructure/Examine/IndexRebuilder.cs @@ -4,7 +4,7 @@ using System.Linq; using Microsoft.Extensions.Logging; using System.Threading.Tasks; using Examine; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Logging; using Umbraco.Core.Logging; namespace Umbraco.Examine diff --git a/src/Umbraco.Infrastructure/Examine/MediaIndexPopulator.cs b/src/Umbraco.Infrastructure/Examine/MediaIndexPopulator.cs index 03fbe392b6..77e3821ff1 100644 --- a/src/Umbraco.Infrastructure/Examine/MediaIndexPopulator.cs +++ b/src/Umbraco.Infrastructure/Examine/MediaIndexPopulator.cs @@ -1,6 +1,8 @@ using System.Collections.Generic; using System.Linq; using Examine; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Models; using Umbraco.Core.Services; diff --git a/src/Umbraco.Infrastructure/Examine/MediaValueSetBuilder.cs b/src/Umbraco.Infrastructure/Examine/MediaValueSetBuilder.cs index 73ad31e115..3fb1ab7747 100644 --- a/src/Umbraco.Infrastructure/Examine/MediaValueSetBuilder.cs +++ b/src/Umbraco.Infrastructure/Examine/MediaValueSetBuilder.cs @@ -1,15 +1,17 @@ using System; -using Examine; using System.Collections.Generic; using System.Linq; +using Examine; using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.PropertyEditors; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; using Umbraco.Core.PropertyEditors.ValueConverters; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; -using Umbraco.Core.Serialization; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Examine { diff --git a/src/Umbraco.Infrastructure/Examine/MemberIndexPopulator.cs b/src/Umbraco.Infrastructure/Examine/MemberIndexPopulator.cs index 270d93d80d..b97dddabe0 100644 --- a/src/Umbraco.Infrastructure/Examine/MemberIndexPopulator.cs +++ b/src/Umbraco.Infrastructure/Examine/MemberIndexPopulator.cs @@ -1,6 +1,8 @@ using System.Collections.Generic; using System.Linq; using Examine; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Models; using Umbraco.Core.Services; diff --git a/src/Umbraco.Infrastructure/Examine/MemberValueSetBuilder.cs b/src/Umbraco.Infrastructure/Examine/MemberValueSetBuilder.cs index 12d886eaf1..d4c47011ac 100644 --- a/src/Umbraco.Infrastructure/Examine/MemberValueSetBuilder.cs +++ b/src/Umbraco.Infrastructure/Examine/MemberValueSetBuilder.cs @@ -1,9 +1,10 @@ -using Examine; -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.PropertyEditors; +using Examine; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Extensions; namespace Umbraco.Examine { diff --git a/src/Umbraco.Infrastructure/Examine/NoopBackOfficeExamineSearcher.cs b/src/Umbraco.Infrastructure/Examine/NoopBackOfficeExamineSearcher.cs index 15ed8de389..a2d6521e24 100644 --- a/src/Umbraco.Infrastructure/Examine/NoopBackOfficeExamineSearcher.cs +++ b/src/Umbraco.Infrastructure/Examine/NoopBackOfficeExamineSearcher.cs @@ -1,8 +1,8 @@ using System.Collections.Generic; using System.Linq; using Examine; +using Umbraco.Cms.Core.Models.ContentEditing; using Umbraco.Examine; -using Umbraco.Web.Models.ContentEditing; namespace Umbraco.Infrastructure.Examine { diff --git a/src/Umbraco.Infrastructure/Examine/PublishedContentIndexPopulator.cs b/src/Umbraco.Infrastructure/Examine/PublishedContentIndexPopulator.cs index 59ccfe1bd0..cd5b8fc07b 100644 --- a/src/Umbraco.Infrastructure/Examine/PublishedContentIndexPopulator.cs +++ b/src/Umbraco.Infrastructure/Examine/PublishedContentIndexPopulator.cs @@ -1,5 +1,5 @@ -using Umbraco.Core.Persistence; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Services; +using Umbraco.Core.Persistence; namespace Umbraco.Examine { diff --git a/src/Umbraco.Infrastructure/Examine/UmbracoExamineExtensions.cs b/src/Umbraco.Infrastructure/Examine/UmbracoExamineExtensions.cs index c1932e0514..8efabacc59 100644 --- a/src/Umbraco.Infrastructure/Examine/UmbracoExamineExtensions.cs +++ b/src/Umbraco.Infrastructure/Examine/UmbracoExamineExtensions.cs @@ -1,8 +1,8 @@ -using Examine; -using Examine.Search; -using System.Collections.Generic; +using System.Collections.Generic; using System.Text.RegularExpressions; -using Umbraco.Core; +using Examine; +using Examine.Search; +using Umbraco.Extensions; namespace Umbraco.Examine { @@ -16,7 +16,7 @@ namespace Umbraco.Examine /// internal static readonly Regex CultureIsoCodeFieldNameMatchExpression = new Regex("^([_\\w]+)_([a-z]{2}-[a-z0-9]{2,4})$", RegexOptions.Compiled); - + //TODO: We need a public method here to just match a field name against CultureIsoCodeFieldNameMatchExpression diff --git a/src/Umbraco.Infrastructure/Examine/UmbracoIndexConfig.cs b/src/Umbraco.Infrastructure/Examine/UmbracoIndexConfig.cs index a840c730ea..6f4c4330e9 100644 --- a/src/Umbraco.Infrastructure/Examine/UmbracoIndexConfig.cs +++ b/src/Umbraco.Infrastructure/Examine/UmbracoIndexConfig.cs @@ -1,4 +1,5 @@ using Examine; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Services; namespace Umbraco.Examine diff --git a/src/Umbraco.Infrastructure/Examine/ValueSetValidator.cs b/src/Umbraco.Infrastructure/Examine/ValueSetValidator.cs index f6538dfacd..688ccec345 100644 --- a/src/Umbraco.Infrastructure/Examine/ValueSetValidator.cs +++ b/src/Umbraco.Infrastructure/Examine/ValueSetValidator.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.Linq; using Examine; -using Umbraco.Core; +using Umbraco.Extensions; namespace Umbraco.Examine { diff --git a/src/Umbraco.Infrastructure/HealthChecks/MarkdownToHtmlConverter.cs b/src/Umbraco.Infrastructure/HealthChecks/MarkdownToHtmlConverter.cs index 739035b177..37535e14fd 100644 --- a/src/Umbraco.Infrastructure/HealthChecks/MarkdownToHtmlConverter.cs +++ b/src/Umbraco.Infrastructure/HealthChecks/MarkdownToHtmlConverter.cs @@ -1,6 +1,6 @@ using HeyRed.MarkdownSharp; -using Umbraco.Core.HealthChecks; -using Umbraco.Core.HealthChecks.NotificationMethods; +using Umbraco.Cms.Core.HealthChecks; +using Umbraco.Cms.Core.HealthChecks.NotificationMethods; namespace Umbraco.Infrastructure.HealthChecks { diff --git a/src/Umbraco.Infrastructure/HostedServices/HealthCheckNotifier.cs b/src/Umbraco.Infrastructure/HostedServices/HealthCheckNotifier.cs index dcbec3d8d1..e8f41c560e 100644 --- a/src/Umbraco.Infrastructure/HostedServices/HealthCheckNotifier.cs +++ b/src/Umbraco.Infrastructure/HostedServices/HealthCheckNotifier.cs @@ -7,15 +7,17 @@ using System.Linq; using System.Threading.Tasks; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Extensions; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.HealthChecks; -using Umbraco.Core.HealthChecks.NotificationMethods; -using Umbraco.Core.Logging; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.HealthChecks; +using Umbraco.Cms.Core.HealthChecks.NotificationMethods; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Runtime; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Sync; using Umbraco.Core.Scoping; -using Umbraco.Core.Sync; +using Umbraco.Extensions; namespace Umbraco.Infrastructure.HostedServices { diff --git a/src/Umbraco.Infrastructure/HostedServices/KeepAlive.cs b/src/Umbraco.Infrastructure/HostedServices/KeepAlive.cs index f0acd22230..29514b1885 100644 --- a/src/Umbraco.Infrastructure/HostedServices/KeepAlive.cs +++ b/src/Umbraco.Infrastructure/HostedServices/KeepAlive.cs @@ -6,11 +6,12 @@ using System.Net.Http; using System.Threading.Tasks; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Core.Logging; -using Umbraco.Core.Sync; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Runtime; +using Umbraco.Cms.Core.Sync; +using Umbraco.Extensions; namespace Umbraco.Infrastructure.HostedServices { diff --git a/src/Umbraco.Infrastructure/HostedServices/LogScrubber.cs b/src/Umbraco.Infrastructure/HostedServices/LogScrubber.cs index c933ee2470..bcc93d447f 100644 --- a/src/Umbraco.Infrastructure/HostedServices/LogScrubber.cs +++ b/src/Umbraco.Infrastructure/HostedServices/LogScrubber.cs @@ -5,8 +5,12 @@ using System; using System.Threading.Tasks; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Runtime; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Sync; using Umbraco.Core; -using Umbraco.Core.Configuration.Models; using Umbraco.Core.Logging; using Umbraco.Core.Scoping; using Umbraco.Core.Services; diff --git a/src/Umbraco.Infrastructure/HostedServices/ReportSiteTask.cs b/src/Umbraco.Infrastructure/HostedServices/ReportSiteTask.cs index 7ce1fffa0c..69bc9cffe4 100644 --- a/src/Umbraco.Infrastructure/HostedServices/ReportSiteTask.cs +++ b/src/Umbraco.Infrastructure/HostedServices/ReportSiteTask.cs @@ -1,14 +1,14 @@ -using Newtonsoft.Json; -using System; +using System; using System.Net.Http; using System.Runtime.Serialization; using System.Text; using System.Threading.Tasks; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; +using Newtonsoft.Json; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Extensions; using Umbraco.Infrastructure.HostedServices; namespace Umbraco.Web.Telemetry diff --git a/src/Umbraco.Infrastructure/HostedServices/ScheduledPublishing.cs b/src/Umbraco.Infrastructure/HostedServices/ScheduledPublishing.cs index b42de1add5..50c1757f99 100644 --- a/src/Umbraco.Infrastructure/HostedServices/ScheduledPublishing.cs +++ b/src/Umbraco.Infrastructure/HostedServices/ScheduledPublishing.cs @@ -6,6 +6,12 @@ using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Runtime; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Sync; +using Umbraco.Cms.Core.Web; using Umbraco.Core; using Umbraco.Core.Security; using Umbraco.Core.Services; diff --git a/src/Umbraco.Infrastructure/HostedServices/ServerRegistration/InstructionProcessTask.cs b/src/Umbraco.Infrastructure/HostedServices/ServerRegistration/InstructionProcessTask.cs index 8b194e32ef..5f3a196709 100644 --- a/src/Umbraco.Infrastructure/HostedServices/ServerRegistration/InstructionProcessTask.cs +++ b/src/Umbraco.Infrastructure/HostedServices/ServerRegistration/InstructionProcessTask.cs @@ -5,8 +5,11 @@ using System; using System.Threading.Tasks; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Sync; using Umbraco.Core; -using Umbraco.Core.Configuration.Models; using Umbraco.Core.Sync; namespace Umbraco.Infrastructure.HostedServices.ServerRegistration diff --git a/src/Umbraco.Infrastructure/HostedServices/ServerRegistration/TouchServerTask.cs b/src/Umbraco.Infrastructure/HostedServices/ServerRegistration/TouchServerTask.cs index 6771705c8e..16bd3688b2 100644 --- a/src/Umbraco.Infrastructure/HostedServices/ServerRegistration/TouchServerTask.cs +++ b/src/Umbraco.Infrastructure/HostedServices/ServerRegistration/TouchServerTask.cs @@ -5,10 +5,11 @@ using System; using System.Threading.Tasks; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Core.Services; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; namespace Umbraco.Infrastructure.HostedServices.ServerRegistration { diff --git a/src/Umbraco.Infrastructure/HostedServices/TempFileCleanup.cs b/src/Umbraco.Infrastructure/HostedServices/TempFileCleanup.cs index 7e3f70d510..f87335c8dd 100644 --- a/src/Umbraco.Infrastructure/HostedServices/TempFileCleanup.cs +++ b/src/Umbraco.Infrastructure/HostedServices/TempFileCleanup.cs @@ -5,8 +5,9 @@ using System; using System.IO; using System.Threading.Tasks; using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Runtime; using Umbraco.Core; -using Umbraco.Core.IO; namespace Umbraco.Infrastructure.HostedServices { diff --git a/src/Umbraco.Infrastructure/IPublishedContentQuery.cs b/src/Umbraco.Infrastructure/IPublishedContentQuery.cs index c5f49c3e0b..f013a3a5e0 100644 --- a/src/Umbraco.Infrastructure/IPublishedContentQuery.cs +++ b/src/Umbraco.Infrastructure/IPublishedContentQuery.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Xml.XPath; using Examine.Search; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Xml; using Umbraco.Core; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Xml; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web { @@ -44,7 +46,7 @@ namespace Umbraco.Web /// /// The term to search. /// The culture (defaults to a culture insensitive search). - /// The name of the index to search (defaults to ). + /// The name of the index to search (defaults to ). /// /// The search results. /// diff --git a/src/Umbraco.Infrastructure/Install/FilePermissionHelper.cs b/src/Umbraco.Infrastructure/Install/FilePermissionHelper.cs index ec73035dc2..22dd3d4276 100644 --- a/src/Umbraco.Infrastructure/Install/FilePermissionHelper.cs +++ b/src/Umbraco.Infrastructure/Install/FilePermissionHelper.cs @@ -7,11 +7,12 @@ using System.IO; using System.Linq; using System.Security.AccessControl; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Core.Install; -using Umbraco.Core.IO; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Install; +using Umbraco.Cms.Core.IO; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Infrastructure.Install { diff --git a/src/Umbraco.Infrastructure/Install/InstallHelper.cs b/src/Umbraco.Infrastructure/Install/InstallHelper.cs index b8b5371457..291bd50a05 100644 --- a/src/Umbraco.Infrastructure/Install/InstallHelper.cs +++ b/src/Umbraco.Infrastructure/Install/InstallHelper.cs @@ -4,17 +4,19 @@ using System.Linq; using System.Net.Http; using System.Threading.Tasks; using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Core.Configuration; -using Umbraco.Core.Migrations.Install; -using Umbraco.Core.Models; -using Umbraco.Net; -using Umbraco.Core.Persistence; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Web.Install.Models; using Microsoft.Extensions.Options; -using Umbraco.Core.Configuration.Models; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Install.Models; +using Umbraco.Cms.Core.Net; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Web; +using Umbraco.Core.Migrations.Install; +using Umbraco.Core.Persistence; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web.Install { diff --git a/src/Umbraco.Infrastructure/Install/InstallStepCollection.cs b/src/Umbraco.Infrastructure/Install/InstallStepCollection.cs index c8be2fc5a9..09a77f621d 100644 --- a/src/Umbraco.Infrastructure/Install/InstallStepCollection.cs +++ b/src/Umbraco.Infrastructure/Install/InstallStepCollection.cs @@ -1,8 +1,8 @@ using System.Collections.Generic; using System.Linq; -using Umbraco.Core.Install.InstallSteps; +using Umbraco.Cms.Core.Install.InstallSteps; +using Umbraco.Cms.Core.Install.Models; using Umbraco.Web.Install.InstallSteps; -using Umbraco.Web.Install.Models; namespace Umbraco.Web.Install { diff --git a/src/Umbraco.Infrastructure/Install/InstallSteps/CompleteInstallStep.cs b/src/Umbraco.Infrastructure/Install/InstallSteps/CompleteInstallStep.cs index c95defe51a..848842eadc 100644 --- a/src/Umbraco.Infrastructure/Install/InstallSteps/CompleteInstallStep.cs +++ b/src/Umbraco.Infrastructure/Install/InstallSteps/CompleteInstallStep.cs @@ -1,5 +1,5 @@ using System.Threading.Tasks; -using Umbraco.Web.Install.Models; +using Umbraco.Cms.Core.Install.Models; namespace Umbraco.Web.Install.InstallSteps { diff --git a/src/Umbraco.Infrastructure/Install/InstallSteps/DatabaseConfigureStep.cs b/src/Umbraco.Infrastructure/Install/InstallSteps/DatabaseConfigureStep.cs index 467d712888..9d4bf57f55 100644 --- a/src/Umbraco.Infrastructure/Install/InstallSteps/DatabaseConfigureStep.cs +++ b/src/Umbraco.Infrastructure/Install/InstallSteps/DatabaseConfigureStep.cs @@ -3,10 +3,13 @@ using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Install; +using Umbraco.Cms.Core.Install.Models; using Umbraco.Core; -using Umbraco.Core.Configuration.Models; using Umbraco.Core.Migrations.Install; -using Umbraco.Web.Install.Models; +using Umbraco.Extensions; namespace Umbraco.Web.Install.InstallSteps { @@ -95,7 +98,7 @@ namespace Umbraco.Web.Install.InstallSteps // NOTE: Type.GetType will only return types that are currently loaded into the appdomain. In this case // that is ok because we know if this is availalbe we will have manually loaded it into the appdomain. // Else we'd have to use Assembly.LoadFrom and need to know the DLL location here which we don't need to do. - return !(Type.GetType("Umbraco.Persistence.SqlCe.SqlCeSyntaxProvider, Umbraco.Persistence.SqlCe") is null); + return !(Type.GetType("Umbraco.Cms.Persistence.SqlCe.SqlCeSyntaxProvider, Umbraco.Persistence.SqlCe") is null); } public override string View => ShouldDisplayView() ? base.View : ""; diff --git a/src/Umbraco.Infrastructure/Install/InstallSteps/DatabaseInstallStep.cs b/src/Umbraco.Infrastructure/Install/InstallSteps/DatabaseInstallStep.cs index e5f783caba..9a41a481fd 100644 --- a/src/Umbraco.Infrastructure/Install/InstallSteps/DatabaseInstallStep.cs +++ b/src/Umbraco.Infrastructure/Install/InstallSteps/DatabaseInstallStep.cs @@ -1,12 +1,14 @@ using System; using System.Collections.Generic; using System.Threading.Tasks; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Install; +using Umbraco.Cms.Core.Install.Models; +using Umbraco.Cms.Core.Services; using Umbraco.Core; using Umbraco.Core.Configuration; -using Umbraco.Core.IO; using Umbraco.Core.Logging; using Umbraco.Core.Migrations.Install; -using Umbraco.Web.Install.Models; namespace Umbraco.Web.Install.InstallSteps { diff --git a/src/Umbraco.Infrastructure/Install/InstallSteps/DatabaseUpgradeStep.cs b/src/Umbraco.Infrastructure/Install/InstallSteps/DatabaseUpgradeStep.cs index 7258628b7d..a822331c55 100644 --- a/src/Umbraco.Infrastructure/Install/InstallSteps/DatabaseUpgradeStep.cs +++ b/src/Umbraco.Infrastructure/Install/InstallSteps/DatabaseUpgradeStep.cs @@ -3,13 +3,17 @@ using System.Linq; using System.Threading.Tasks; using Microsoft.Extensions.Options; using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Install; +using Umbraco.Cms.Core.Install.Models; +using Umbraco.Cms.Core.Services; using Umbraco.Core; using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.IO; using Umbraco.Core.Migrations.Install; using Umbraco.Core.Migrations.Upgrade; -using Umbraco.Web.Install.Models; +using Umbraco.Extensions; using Umbraco.Web.Migrations.PostMigrations; namespace Umbraco.Web.Install.InstallSteps diff --git a/src/Umbraco.Infrastructure/Install/InstallSteps/NewInstallStep.cs b/src/Umbraco.Infrastructure/Install/InstallSteps/NewInstallStep.cs index 5d70338079..e4db6cf609 100644 --- a/src/Umbraco.Infrastructure/Install/InstallSteps/NewInstallStep.cs +++ b/src/Umbraco.Infrastructure/Install/InstallSteps/NewInstallStep.cs @@ -5,14 +5,16 @@ using System.Text; using System.Threading.Tasks; using Microsoft.Extensions.Options; using Newtonsoft.Json; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Install.Models; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Web; using Umbraco.Core.Migrations.Install; -using Umbraco.Core.Security; using Umbraco.Core.Persistence; -using Umbraco.Core.Services; +using Umbraco.Core.Security; using Umbraco.Extensions; -using Umbraco.Web.Install.Models; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web.Install.InstallSteps { diff --git a/src/Umbraco.Infrastructure/Install/InstallSteps/StarterKitDownloadStep.cs b/src/Umbraco.Infrastructure/Install/InstallSteps/StarterKitDownloadStep.cs index 8bc5bcfdff..2baa9e9655 100644 --- a/src/Umbraco.Infrastructure/Install/InstallSteps/StarterKitDownloadStep.cs +++ b/src/Umbraco.Infrastructure/Install/InstallSteps/StarterKitDownloadStep.cs @@ -2,13 +2,15 @@ using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Install.Models; +using Umbraco.Cms.Core.Packaging; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Services; using Umbraco.Core.Configuration; -using Umbraco.Core.Models.Packaging; using Umbraco.Core.Security; -using Umbraco.Web.Install.Models; -using Umbraco.Web.Security; -using Umbraco.Core.Hosting; namespace Umbraco.Web.Install.InstallSteps { diff --git a/src/Umbraco.Infrastructure/Logging/LogHttpRequest.cs b/src/Umbraco.Infrastructure/Logging/LogHttpRequest.cs index 7e1ec38491..380bc2ae36 100644 --- a/src/Umbraco.Infrastructure/Logging/LogHttpRequest.cs +++ b/src/Umbraco.Infrastructure/Logging/LogHttpRequest.cs @@ -1,6 +1,6 @@ using System; +using Umbraco.Cms.Core.Cache; using Umbraco.Core.Cache; -using Umbraco.Core.Composing; namespace Umbraco.Core.Logging { diff --git a/src/Umbraco.Infrastructure/Logging/MessageTemplates.cs b/src/Umbraco.Infrastructure/Logging/MessageTemplates.cs index 712ff85e16..3ec8fd19ed 100644 --- a/src/Umbraco.Infrastructure/Logging/MessageTemplates.cs +++ b/src/Umbraco.Infrastructure/Logging/MessageTemplates.cs @@ -5,6 +5,7 @@ using System.Text; using Serilog; using Serilog.Events; using Serilog.Parsing; +using Umbraco.Cms.Core.Logging; namespace Umbraco.Core.Logging { diff --git a/src/Umbraco.Infrastructure/Logging/Serilog/Enrichers/HttpRequestIdEnricher.cs b/src/Umbraco.Infrastructure/Logging/Serilog/Enrichers/HttpRequestIdEnricher.cs index 704e80d302..20b445687b 100644 --- a/src/Umbraco.Infrastructure/Logging/Serilog/Enrichers/HttpRequestIdEnricher.cs +++ b/src/Umbraco.Infrastructure/Logging/Serilog/Enrichers/HttpRequestIdEnricher.cs @@ -1,8 +1,8 @@ using System; using Serilog.Core; using Serilog.Events; +using Umbraco.Cms.Core.Cache; using Umbraco.Core.Cache; -using Umbraco.Core.Composing; namespace Umbraco.Core.Logging.Serilog.Enrichers { diff --git a/src/Umbraco.Infrastructure/Logging/Serilog/Enrichers/HttpRequestNumberEnricher.cs b/src/Umbraco.Infrastructure/Logging/Serilog/Enrichers/HttpRequestNumberEnricher.cs index 20643ff539..06bfd818e7 100644 --- a/src/Umbraco.Infrastructure/Logging/Serilog/Enrichers/HttpRequestNumberEnricher.cs +++ b/src/Umbraco.Infrastructure/Logging/Serilog/Enrichers/HttpRequestNumberEnricher.cs @@ -2,8 +2,8 @@ using System.Threading; using Serilog.Core; using Serilog.Events; +using Umbraco.Cms.Core.Cache; using Umbraco.Core.Cache; -using Umbraco.Core.Composing; namespace Umbraco.Core.Logging.Serilog.Enrichers { diff --git a/src/Umbraco.Infrastructure/Logging/Serilog/Enrichers/HttpSessionIdEnricher.cs b/src/Umbraco.Infrastructure/Logging/Serilog/Enrichers/HttpSessionIdEnricher.cs index 19572b5b42..bffad37db2 100644 --- a/src/Umbraco.Infrastructure/Logging/Serilog/Enrichers/HttpSessionIdEnricher.cs +++ b/src/Umbraco.Infrastructure/Logging/Serilog/Enrichers/HttpSessionIdEnricher.cs @@ -1,7 +1,7 @@ using Serilog.Core; using Serilog.Events; using System; -using Umbraco.Net; +using Umbraco.Cms.Core.Net; namespace Umbraco.Core.Logging.Serilog.Enrichers { diff --git a/src/Umbraco.Infrastructure/Logging/Serilog/Enrichers/ThreadAbortExceptionEnricher.cs b/src/Umbraco.Infrastructure/Logging/Serilog/Enrichers/ThreadAbortExceptionEnricher.cs index a85e52cffe..741df46969 100644 --- a/src/Umbraco.Infrastructure/Logging/Serilog/Enrichers/ThreadAbortExceptionEnricher.cs +++ b/src/Umbraco.Infrastructure/Logging/Serilog/Enrichers/ThreadAbortExceptionEnricher.cs @@ -4,9 +4,9 @@ using System.Threading; using Microsoft.Extensions.Options; using Serilog.Core; using Serilog.Events; -using Umbraco.Core.Diagnostics; -using Umbraco.Core.Hosting; -using CoreDebugSettings = Umbraco.Core.Configuration.Models.CoreDebugSettings; +using Umbraco.Cms.Core.Diagnostics; +using Umbraco.Cms.Core.Hosting; +using CoreDebugSettings = Umbraco.Cms.Core.Configuration.Models.CoreDebugSettings; namespace Umbraco.Infrastructure.Logging.Serilog.Enrichers { diff --git a/src/Umbraco.Infrastructure/Logging/Serilog/LoggerConfigExtensions.cs b/src/Umbraco.Infrastructure/Logging/Serilog/LoggerConfigExtensions.cs index 5481f22cb6..3b1f39b77a 100644 --- a/src/Umbraco.Infrastructure/Logging/Serilog/LoggerConfigExtensions.cs +++ b/src/Umbraco.Infrastructure/Logging/Serilog/LoggerConfigExtensions.cs @@ -7,8 +7,10 @@ using Serilog.Core; using Serilog.Events; using Serilog.Formatting; using Serilog.Formatting.Compact; -using Umbraco.Core.Hosting; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Logging; using Umbraco.Core.Logging.Serilog.Enrichers; +using Umbraco.Extensions; namespace Umbraco.Core.Logging.Serilog { @@ -69,7 +71,7 @@ namespace Umbraco.Core.Logging.Serilog { //Main .txt logfile - in similar format to older Log4Net output //Ends with ..txt as Date is inserted before file extension substring - logConfig.WriteTo.File(Path.Combine(hostingEnvironment.MapPathContentRoot(Constants.SystemDirectories.LogFiles), $"UmbracoTraceLog.{Environment.MachineName}..txt"), + logConfig.WriteTo.File(Path.Combine(hostingEnvironment.MapPathContentRoot(Cms.Core.Constants.SystemDirectories.LogFiles), $"UmbracoTraceLog.{Environment.MachineName}..txt"), shared: true, rollingInterval: RollingInterval.Day, restrictedToMinimumLevel: minimumLevel, @@ -138,7 +140,7 @@ namespace Umbraco.Core.Logging.Serilog // .clef format (Compact log event format, that can be imported into local SEQ & will make searching/filtering logs easier) // Ends with ..txt as Date is inserted before file extension substring logConfig.WriteTo.File(new CompactJsonFormatter(), - Path.Combine(hostingEnvironment.MapPathContentRoot(Constants.SystemDirectories.LogFiles) ,$"UmbracoTraceLog.{Environment.MachineName}..json"), + Path.Combine(hostingEnvironment.MapPathContentRoot(Cms.Core.Constants.SystemDirectories.LogFiles) ,$"UmbracoTraceLog.{Environment.MachineName}..json"), shared: true, rollingInterval: RollingInterval.Day, // Create a new JSON file every day retainedFileCountLimit: retainedFileCount, // Setting to null means we keep all files - default is 31 days diff --git a/src/Umbraco.Infrastructure/Logging/Serilog/SerilogLogger.cs b/src/Umbraco.Infrastructure/Logging/Serilog/SerilogLogger.cs index 9e14a6407a..c71096e688 100644 --- a/src/Umbraco.Infrastructure/Logging/Serilog/SerilogLogger.cs +++ b/src/Umbraco.Infrastructure/Logging/Serilog/SerilogLogger.cs @@ -1,11 +1,12 @@ using System; using System.IO; using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.Logging; using Serilog; using Serilog.Events; -using Serilog.Extensions.Logging; -using Umbraco.Core.Hosting; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Logging; +using Umbraco.Extensions; +using LogLevel = Umbraco.Cms.Core.Logging.LogLevel; namespace Umbraco.Core.Logging.Serilog { diff --git a/src/Umbraco.Infrastructure/Logging/Viewer/ExpressionFilter.cs b/src/Umbraco.Infrastructure/Logging/Viewer/ExpressionFilter.cs index f38897d47e..9c1bff436a 100644 --- a/src/Umbraco.Infrastructure/Logging/Viewer/ExpressionFilter.cs +++ b/src/Umbraco.Infrastructure/Logging/Viewer/ExpressionFilter.cs @@ -2,6 +2,7 @@ using System.Linq; using Serilog.Events; using Serilog.Filters.Expressions; +using Umbraco.Extensions; namespace Umbraco.Core.Logging.Viewer { diff --git a/src/Umbraco.Infrastructure/Logging/Viewer/ILogViewer.cs b/src/Umbraco.Infrastructure/Logging/Viewer/ILogViewer.cs index 6763b0ebbb..021b1f137d 100644 --- a/src/Umbraco.Infrastructure/Logging/Viewer/ILogViewer.cs +++ b/src/Umbraco.Infrastructure/Logging/Viewer/ILogViewer.cs @@ -1,4 +1,6 @@ using System.Collections.Generic; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models; using Umbraco.Core.Models; namespace Umbraco.Core.Logging.Viewer diff --git a/src/Umbraco.Infrastructure/Logging/Viewer/LogViewerComposer.cs b/src/Umbraco.Infrastructure/Logging/Viewer/LogViewerComposer.cs index 4c419a1648..9206f87394 100644 --- a/src/Umbraco.Infrastructure/Logging/Viewer/LogViewerComposer.cs +++ b/src/Umbraco.Infrastructure/Logging/Viewer/LogViewerComposer.cs @@ -1,8 +1,10 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Serilog; -using Umbraco.Core.DependencyInjection; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.DependencyInjection; +using Umbraco.Cms.Core.Logging; +using Umbraco.Extensions; using Umbraco.Infrastructure.DependencyInjection; namespace Umbraco.Core.Logging.Viewer diff --git a/src/Umbraco.Infrastructure/Logging/Viewer/LogViewerConfig.cs b/src/Umbraco.Infrastructure/Logging/Viewer/LogViewerConfig.cs index e13558b59f..da964bbc35 100644 --- a/src/Umbraco.Infrastructure/Logging/Viewer/LogViewerConfig.cs +++ b/src/Umbraco.Infrastructure/Logging/Viewer/LogViewerConfig.cs @@ -2,8 +2,8 @@ using System.IO; using System.Linq; using Newtonsoft.Json; -using Umbraco.Core.Hosting; -using Umbraco.Core.Routing; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Routing; using Formatting = Newtonsoft.Json.Formatting; namespace Umbraco.Core.Logging.Viewer @@ -11,7 +11,7 @@ namespace Umbraco.Core.Logging.Viewer public class LogViewerConfig : ILogViewerConfig { private readonly IHostingEnvironment _hostingEnvironment; - private static readonly string _pathToSearches = WebPath.Combine(Constants.SystemDirectories.Config, "logviewer.searches.config.js"); + private static readonly string _pathToSearches = WebPath.Combine(Cms.Core.Constants.SystemDirectories.Config, "logviewer.searches.config.js"); private readonly FileInfo _searchesConfig; public LogViewerConfig(IHostingEnvironment hostingEnvironment) diff --git a/src/Umbraco.Infrastructure/Logging/Viewer/SerilogJsonLogViewer.cs b/src/Umbraco.Infrastructure/Logging/Viewer/SerilogJsonLogViewer.cs index 8e74dbe194..ae4b90d7bb 100644 --- a/src/Umbraco.Infrastructure/Logging/Viewer/SerilogJsonLogViewer.cs +++ b/src/Umbraco.Infrastructure/Logging/Viewer/SerilogJsonLogViewer.cs @@ -6,6 +6,7 @@ using Microsoft.Extensions.Logging; using Newtonsoft.Json; using Serilog.Events; using Serilog.Formatting.Compact.Reader; +using Umbraco.Cms.Core.Logging; namespace Umbraco.Core.Logging.Viewer { diff --git a/src/Umbraco.Infrastructure/Logging/Viewer/SerilogLogViewerSourceBase.cs b/src/Umbraco.Infrastructure/Logging/Viewer/SerilogLogViewerSourceBase.cs index 278f3d8d00..b556ede79e 100644 --- a/src/Umbraco.Infrastructure/Logging/Viewer/SerilogLogViewerSourceBase.cs +++ b/src/Umbraco.Infrastructure/Logging/Viewer/SerilogLogViewerSourceBase.cs @@ -1,13 +1,13 @@ using System; using System.Collections.Generic; using System.Linq; -using Serilog; using Serilog.Events; -using Umbraco.Core.Models; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models; +using Umbraco.Extensions; namespace Umbraco.Core.Logging.Viewer { - public abstract class SerilogLogViewerSourceBase : ILogViewer { private readonly ILogViewerConfig _logViewerConfig; diff --git a/src/Umbraco.Infrastructure/Macros/MacroTagParser.cs b/src/Umbraco.Infrastructure/Macros/MacroTagParser.cs index 2cbd84e20a..3adc4ae3d1 100644 --- a/src/Umbraco.Infrastructure/Macros/MacroTagParser.cs +++ b/src/Umbraco.Infrastructure/Macros/MacroTagParser.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Text; using System.Text.RegularExpressions; using HtmlAgilityPack; -using Umbraco.Core.Xml; +using Umbraco.Cms.Core.Xml; namespace Umbraco.Web.Macros { diff --git a/src/Umbraco.Infrastructure/Manifest/DashboardAccessRuleConverter.cs b/src/Umbraco.Infrastructure/Manifest/DashboardAccessRuleConverter.cs index 67c5a5824e..b3639dd861 100644 --- a/src/Umbraco.Infrastructure/Manifest/DashboardAccessRuleConverter.cs +++ b/src/Umbraco.Infrastructure/Manifest/DashboardAccessRuleConverter.cs @@ -1,7 +1,7 @@ using System; using Newtonsoft.Json; using Newtonsoft.Json.Linq; -using Umbraco.Core.Dashboards; +using Umbraco.Cms.Core.Dashboards; using Umbraco.Core.Serialization; namespace Umbraco.Core.Manifest diff --git a/src/Umbraco.Infrastructure/Manifest/DataEditorConverter.cs b/src/Umbraco.Infrastructure/Manifest/DataEditorConverter.cs index 1bbd9042b0..ee5be79806 100644 --- a/src/Umbraco.Infrastructure/Manifest/DataEditorConverter.cs +++ b/src/Umbraco.Infrastructure/Manifest/DataEditorConverter.cs @@ -2,11 +2,13 @@ using Microsoft.Extensions.Logging; using Newtonsoft.Json; using Newtonsoft.Json.Linq; -using Umbraco.Core.IO; -using Umbraco.Core.PropertyEditors; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Umbraco.Extensions; namespace Umbraco.Core.Manifest { diff --git a/src/Umbraco.Infrastructure/Manifest/ManifestParser.cs b/src/Umbraco.Infrastructure/Manifest/ManifestParser.cs index d134010104..fac6678c1a 100644 --- a/src/Umbraco.Infrastructure/Manifest/ManifestParser.cs +++ b/src/Umbraco.Infrastructure/Manifest/ManifestParser.cs @@ -5,13 +5,15 @@ using System.Linq; using System.Text; using Microsoft.Extensions.Logging; using Newtonsoft.Json; -using Umbraco.Core.Cache; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Manifest; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Extensions; namespace Umbraco.Core.Manifest { diff --git a/src/Umbraco.Infrastructure/Manifest/ValueValidatorConverter.cs b/src/Umbraco.Infrastructure/Manifest/ValueValidatorConverter.cs index 743ad23192..ebb48056a9 100644 --- a/src/Umbraco.Infrastructure/Manifest/ValueValidatorConverter.cs +++ b/src/Umbraco.Infrastructure/Manifest/ValueValidatorConverter.cs @@ -1,5 +1,6 @@ using System; using Newtonsoft.Json.Linq; +using Umbraco.Cms.Core.PropertyEditors; using Umbraco.Core.PropertyEditors; using Umbraco.Core.Serialization; diff --git a/src/Umbraco.Infrastructure/Media/ImageDimensionExtractor.cs b/src/Umbraco.Infrastructure/Media/ImageDimensionExtractor.cs index ad5155e6d2..2fd381e6c4 100644 --- a/src/Umbraco.Infrastructure/Media/ImageDimensionExtractor.cs +++ b/src/Umbraco.Infrastructure/Media/ImageDimensionExtractor.cs @@ -1,8 +1,9 @@ using System; using System.Drawing; using System.IO; +using Umbraco.Cms.Core.Media; using Umbraco.Core; -using Umbraco.Core.Media; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web.Media { diff --git a/src/Umbraco.Infrastructure/Media/ImageSharpImageUrlGenerator.cs b/src/Umbraco.Infrastructure/Media/ImageSharpImageUrlGenerator.cs index cfe542badc..33a650bdc8 100644 --- a/src/Umbraco.Infrastructure/Media/ImageSharpImageUrlGenerator.cs +++ b/src/Umbraco.Infrastructure/Media/ImageSharpImageUrlGenerator.cs @@ -1,10 +1,9 @@ using System.Collections.Generic; using System.Globalization; using System.Text; -using Umbraco.Core; -using Umbraco.Core.Media; -using Umbraco.Core.Models; -using Umbraco.Web.Models; +using Umbraco.Cms.Core.Media; +using Umbraco.Cms.Core.Models; +using Umbraco.Extensions; namespace Umbraco.Infrastructure.Media { diff --git a/src/Umbraco.Infrastructure/Migrations/Expressions/Create/Index/CreateIndexBuilder.cs b/src/Umbraco.Infrastructure/Migrations/Expressions/Create/Index/CreateIndexBuilder.cs index 1f2cb93f95..f3d64fa168 100644 --- a/src/Umbraco.Infrastructure/Migrations/Expressions/Create/Index/CreateIndexBuilder.cs +++ b/src/Umbraco.Infrastructure/Migrations/Expressions/Create/Index/CreateIndexBuilder.cs @@ -1,4 +1,5 @@ -using Umbraco.Core.Migrations.Expressions.Common.Expressions; +using Umbraco.Cms.Core; +using Umbraco.Core.Migrations.Expressions.Common.Expressions; using Umbraco.Core.Persistence.DatabaseAnnotations; using Umbraco.Core.Persistence.DatabaseModelDefinitions; @@ -56,29 +57,29 @@ namespace Umbraco.Core.Migrations.Expressions.Create.Index /// ICreateIndexOnColumnBuilder ICreateIndexColumnOptionsBuilder.Unique() - { - Expression.Index.IndexType = IndexTypes.UniqueNonClustered; + { + Expression.Index.IndexType = IndexTypes.UniqueNonClustered; return this; } /// public ICreateIndexOnColumnBuilder NonClustered() { - Expression.Index.IndexType = IndexTypes.NonClustered; + Expression.Index.IndexType = IndexTypes.NonClustered; return this; } /// public ICreateIndexOnColumnBuilder Clustered() - { - Expression.Index.IndexType = IndexTypes.Clustered; + { + Expression.Index.IndexType = IndexTypes.Clustered; return this; } /// ICreateIndexOnColumnBuilder ICreateIndexOptionsBuilder.Unique() { - Expression.Index.IndexType = IndexTypes.UniqueNonClustered; + Expression.Index.IndexType = IndexTypes.UniqueNonClustered; return this; } } diff --git a/src/Umbraco.Infrastructure/Migrations/Expressions/Delete/KeysAndIndexes/DeleteKeysAndIndexesBuilder.cs b/src/Umbraco.Infrastructure/Migrations/Expressions/Delete/KeysAndIndexes/DeleteKeysAndIndexesBuilder.cs index df74bf7c87..0de18a38e5 100644 --- a/src/Umbraco.Infrastructure/Migrations/Expressions/Delete/KeysAndIndexes/DeleteKeysAndIndexesBuilder.cs +++ b/src/Umbraco.Infrastructure/Migrations/Expressions/Delete/KeysAndIndexes/DeleteKeysAndIndexesBuilder.cs @@ -1,9 +1,9 @@ -using System.Collections.Generic; -using System.Linq; +using System.Linq; using NPoco; -using Umbraco.Core; +using Umbraco.Cms.Core; using Umbraco.Core.Migrations.Expressions.Common; using Umbraco.Core.Persistence.SqlSyntax; +using Umbraco.Extensions; namespace Umbraco.Core.Migrations.Expressions.Delete.KeysAndIndexes { @@ -42,7 +42,7 @@ namespace Umbraco.Core.Migrations.Expressions.Delete.KeysAndIndexes if (DeleteLocal || DeleteForeign) { // table, constraint - + if (DeleteForeign) { //In some cases not all FK's are prefixed with "FK" :/ mostly with old upgraded databases so we need to check if it's either: @@ -54,7 +54,7 @@ namespace Umbraco.Core.Migrations.Expressions.Delete.KeysAndIndexes { Delete.ForeignKey(key.Item2).OnTable(key.Item1).Do(); } - + } if (DeleteLocal) { @@ -68,7 +68,7 @@ namespace Umbraco.Core.Migrations.Expressions.Delete.KeysAndIndexes // drop indexes if (DeleteLocal) - { + { foreach (var index in indexes.Where(x => x.TableName == TableName)) { //if this is a unique constraint we need to drop the constraint, else drop the index @@ -79,7 +79,7 @@ namespace Umbraco.Core.Migrations.Expressions.Delete.KeysAndIndexes else Delete.Index(index.IndexName).OnTable(index.TableName).Do(); } - + } } diff --git a/src/Umbraco.Infrastructure/Migrations/IMigrationBuilder.cs b/src/Umbraco.Infrastructure/Migrations/IMigrationBuilder.cs index 3d78d825a7..f7b563151d 100644 --- a/src/Umbraco.Infrastructure/Migrations/IMigrationBuilder.cs +++ b/src/Umbraco.Infrastructure/Migrations/IMigrationBuilder.cs @@ -1,4 +1,5 @@ using System; +using Umbraco.Cms.Core.Migrations; namespace Umbraco.Core.Migrations { diff --git a/src/Umbraco.Infrastructure/Migrations/IMigrationContext.cs b/src/Umbraco.Infrastructure/Migrations/IMigrationContext.cs index b276d5b171..bd58fe5339 100644 --- a/src/Umbraco.Infrastructure/Migrations/IMigrationContext.cs +++ b/src/Umbraco.Infrastructure/Migrations/IMigrationContext.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.Migrations; using Umbraco.Core.Persistence; namespace Umbraco.Core.Migrations diff --git a/src/Umbraco.Infrastructure/Migrations/Install/DatabaseBuilder.cs b/src/Umbraco.Infrastructure/Migrations/Install/DatabaseBuilder.cs index 541896548c..8efb6d13b4 100644 --- a/src/Umbraco.Infrastructure/Migrations/Install/DatabaseBuilder.cs +++ b/src/Umbraco.Infrastructure/Migrations/Install/DatabaseBuilder.cs @@ -1,18 +1,15 @@ using System; using System.IO; -using System.Linq; -using System.Xml.Linq; using Microsoft.Extensions.Logging; -using Microsoft.Extensions.Options; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Migrations.Upgrade; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.Scoping; -using Umbraco.Core.Services; +using Umbraco.Extensions; namespace Umbraco.Core.Migrations.Install { diff --git a/src/Umbraco.Infrastructure/Migrations/Install/DatabaseDataCreator.cs b/src/Umbraco.Infrastructure/Migrations/Install/DatabaseDataCreator.cs index 1ade2f5153..d8cdf273a7 100644 --- a/src/Umbraco.Infrastructure/Migrations/Install/DatabaseDataCreator.cs +++ b/src/Umbraco.Infrastructure/Migrations/Install/DatabaseDataCreator.cs @@ -1,11 +1,12 @@ using System; using Microsoft.Extensions.Logging; using NPoco; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Models; using Umbraco.Core.Migrations.Upgrade; -using Umbraco.Core.Models; using Umbraco.Core.Persistence.Dtos; +using Umbraco.Extensions; namespace Umbraco.Core.Migrations.Install { @@ -34,46 +35,46 @@ namespace Umbraco.Core.Migrations.Install { _logger.LogInformation("Creating data in {TableName}", tableName); - if (tableName.Equals(Constants.DatabaseSchema.Tables.Node)) + if (tableName.Equals(Cms.Core.Constants.DatabaseSchema.Tables.Node)) CreateNodeData(); - if (tableName.Equals(Constants.DatabaseSchema.Tables.Lock)) + if (tableName.Equals(Cms.Core.Constants.DatabaseSchema.Tables.Lock)) CreateLockData(); - if (tableName.Equals(Constants.DatabaseSchema.Tables.ContentType)) + if (tableName.Equals(Cms.Core.Constants.DatabaseSchema.Tables.ContentType)) CreateContentTypeData(); - if (tableName.Equals(Constants.DatabaseSchema.Tables.User)) + if (tableName.Equals(Cms.Core.Constants.DatabaseSchema.Tables.User)) CreateUserData(); - if (tableName.Equals(Constants.DatabaseSchema.Tables.UserGroup)) + if (tableName.Equals(Cms.Core.Constants.DatabaseSchema.Tables.UserGroup)) CreateUserGroupData(); - if (tableName.Equals(Constants.DatabaseSchema.Tables.User2UserGroup)) + if (tableName.Equals(Cms.Core.Constants.DatabaseSchema.Tables.User2UserGroup)) CreateUser2UserGroupData(); - if (tableName.Equals(Constants.DatabaseSchema.Tables.UserGroup2App)) + if (tableName.Equals(Cms.Core.Constants.DatabaseSchema.Tables.UserGroup2App)) CreateUserGroup2AppData(); - if (tableName.Equals(Constants.DatabaseSchema.Tables.PropertyTypeGroup)) + if (tableName.Equals(Cms.Core.Constants.DatabaseSchema.Tables.PropertyTypeGroup)) CreatePropertyTypeGroupData(); - if (tableName.Equals(Constants.DatabaseSchema.Tables.PropertyType)) + if (tableName.Equals(Cms.Core.Constants.DatabaseSchema.Tables.PropertyType)) CreatePropertyTypeData(); - if (tableName.Equals(Constants.DatabaseSchema.Tables.Language)) + if (tableName.Equals(Cms.Core.Constants.DatabaseSchema.Tables.Language)) CreateLanguageData(); - if (tableName.Equals(Constants.DatabaseSchema.Tables.ContentChildType)) + if (tableName.Equals(Cms.Core.Constants.DatabaseSchema.Tables.ContentChildType)) CreateContentChildTypeData(); - if (tableName.Equals(Constants.DatabaseSchema.Tables.DataType)) + if (tableName.Equals(Cms.Core.Constants.DatabaseSchema.Tables.DataType)) CreateDataTypeData(); - if (tableName.Equals(Constants.DatabaseSchema.Tables.RelationType)) + if (tableName.Equals(Cms.Core.Constants.DatabaseSchema.Tables.RelationType)) CreateRelationTypeData(); - if (tableName.Equals(Constants.DatabaseSchema.Tables.KeyValue)) + if (tableName.Equals(Cms.Core.Constants.DatabaseSchema.Tables.KeyValue)) CreateKeyValueData(); _logger.LogInformation("Done creating table {TableName} data.", tableName); @@ -94,156 +95,156 @@ namespace Umbraco.Core.Migrations.Install SortOrder = sortOrder, UniqueId = new Guid(uniqueId), Text = text, - NodeObjectType = Constants.ObjectTypes.DataType, + NodeObjectType = Cms.Core.Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }; - _database.Insert(Constants.DatabaseSchema.Tables.Node, "id", false, nodeDto); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.Node, "id", false, nodeDto); } - _database.Insert(Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = -1, Trashed = false, ParentId = -1, UserId = -1, Level = 0, Path = "-1", SortOrder = 0, UniqueId = new Guid("916724a5-173d-4619-b97e-b9de133dd6f5"), Text = "SYSTEM DATA: umbraco master root", NodeObjectType = Constants.ObjectTypes.SystemRoot, CreateDate = DateTime.Now }); - _database.Insert(Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = -20, Trashed = false, ParentId = -1, UserId = -1, Level = 0, Path = "-1,-20", SortOrder = 0, UniqueId = new Guid("0F582A79-1E41-4CF0-BFA0-76340651891A"), Text = "Recycle Bin", NodeObjectType = Constants.ObjectTypes.ContentRecycleBin, CreateDate = DateTime.Now }); - _database.Insert(Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = -21, Trashed = false, ParentId = -1, UserId = -1, Level = 0, Path = "-1,-21", SortOrder = 0, UniqueId = new Guid("BF7C7CBC-952F-4518-97A2-69E9C7B33842"), Text = "Recycle Bin", NodeObjectType = Constants.ObjectTypes.MediaRecycleBin, CreateDate = DateTime.Now }); - InsertDataTypeNodeDto(Constants.DataTypes.LabelString, 35, Constants.DataTypes.Guids.LabelString, "Label (string)"); - InsertDataTypeNodeDto(Constants.DataTypes.LabelInt, 36, Constants.DataTypes.Guids.LabelInt, "Label (integer)"); - InsertDataTypeNodeDto(Constants.DataTypes.LabelBigint, 36, Constants.DataTypes.Guids.LabelBigInt, "Label (bigint)"); - InsertDataTypeNodeDto(Constants.DataTypes.LabelDateTime, 37, Constants.DataTypes.Guids.LabelDateTime, "Label (datetime)"); - InsertDataTypeNodeDto(Constants.DataTypes.LabelTime, 38, Constants.DataTypes.Guids.LabelTime, "Label (time)"); - InsertDataTypeNodeDto(Constants.DataTypes.LabelDecimal, 39, Constants.DataTypes.Guids.LabelDecimal, "Label (decimal)"); - _database.Insert(Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = Constants.DataTypes.Upload, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = $"-1,{Constants.DataTypes.Upload}", SortOrder = 34, UniqueId = Constants.DataTypes.Guids.UploadGuid, Text = "Upload", NodeObjectType = Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }); - _database.Insert(Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = Constants.DataTypes.Textarea, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = $"-1,{Constants.DataTypes.Textarea}", SortOrder = 33, UniqueId = Constants.DataTypes.Guids.TextareaGuid, Text = "Textarea", NodeObjectType = Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }); - _database.Insert(Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = Constants.DataTypes.Textbox, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = $"-1,{Constants.DataTypes.Textbox}", SortOrder = 32, UniqueId = Constants.DataTypes.Guids.TextstringGuid, Text = "Textstring", NodeObjectType = Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }); - _database.Insert(Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = Constants.DataTypes.RichtextEditor, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = $"-1,{Constants.DataTypes.RichtextEditor}", SortOrder = 4, UniqueId = Constants.DataTypes.Guids.RichtextEditorGuid, Text = "Richtext editor", NodeObjectType = Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }); - _database.Insert(Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = -51, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = "-1,-51", SortOrder = 2, UniqueId = Constants.DataTypes.Guids.NumericGuid, Text = "Numeric", NodeObjectType = Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }); - _database.Insert(Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = Constants.DataTypes.Boolean, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = $"-1,{Constants.DataTypes.Boolean}", SortOrder = 2, UniqueId = Constants.DataTypes.Guids.CheckboxGuid, Text = "True/false", NodeObjectType = Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }); - _database.Insert(Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = -43, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = "-1,-43", SortOrder = 2, UniqueId = Constants.DataTypes.Guids.CheckboxListGuid, Text = "Checkbox list", NodeObjectType = Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }); - _database.Insert(Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = Constants.DataTypes.DropDownSingle, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = $"-1,{Constants.DataTypes.DropDownSingle}", SortOrder = 2, UniqueId = Constants.DataTypes.Guids.DropdownGuid, Text = "Dropdown", NodeObjectType = Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }); - _database.Insert(Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = -41, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = "-1,-41", SortOrder = 2, UniqueId = Constants.DataTypes.Guids.DatePickerGuid, Text = "Date Picker", NodeObjectType = Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }); - _database.Insert(Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = -40, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = "-1,-40", SortOrder = 2, UniqueId = Constants.DataTypes.Guids.RadioboxGuid, Text = "Radiobox", NodeObjectType = Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }); - _database.Insert(Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = Constants.DataTypes.DropDownMultiple, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = $"-1,{Constants.DataTypes.DropDownMultiple}", SortOrder = 2, UniqueId = Constants.DataTypes.Guids.DropdownMultipleGuid, Text = "Dropdown multiple", NodeObjectType = Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }); - _database.Insert(Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = -37, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = "-1,-37", SortOrder = 2, UniqueId = Constants.DataTypes.Guids.ApprovedColorGuid, Text = "Approved Color", NodeObjectType = Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }); - _database.Insert(Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = Constants.DataTypes.DateTime, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = $"-1,{Constants.DataTypes.DateTime}", SortOrder = 2, UniqueId = Constants.DataTypes.Guids.DatePickerWithTimeGuid, Text = "Date Picker with time", NodeObjectType = Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }); - _database.Insert(Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = Constants.DataTypes.DefaultContentListView, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = $"-1,{Constants.DataTypes.DefaultContentListView}", SortOrder = 2, UniqueId = Constants.DataTypes.Guids.ListViewContentGuid, Text = Constants.Conventions.DataTypes.ListViewPrefix + "Content", NodeObjectType = Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }); - _database.Insert(Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = Constants.DataTypes.DefaultMediaListView, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = $"-1,{Constants.DataTypes.DefaultMediaListView}", SortOrder = 2, UniqueId = Constants.DataTypes.Guids.ListViewMediaGuid, Text = Constants.Conventions.DataTypes.ListViewPrefix + "Media", NodeObjectType = Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }); - _database.Insert(Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = Constants.DataTypes.DefaultMembersListView, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = $"-1,{Constants.DataTypes.DefaultMembersListView}", SortOrder = 2, UniqueId = Constants.DataTypes.Guids.ListViewMembersGuid, Text = Constants.Conventions.DataTypes.ListViewPrefix + "Members", NodeObjectType = Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }); - _database.Insert(Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = 1031, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = "-1,1031", SortOrder = 2, UniqueId = new Guid("f38bd2d7-65d0-48e6-95dc-87ce06ec2d3d"), Text = Constants.Conventions.MediaTypes.Folder, NodeObjectType = Constants.ObjectTypes.MediaType, CreateDate = DateTime.Now }); - _database.Insert(Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = 1032, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = "-1,1032", SortOrder = 2, UniqueId = new Guid("cc07b313-0843-4aa8-bbda-871c8da728c8"), Text = Constants.Conventions.MediaTypes.Image, NodeObjectType = Constants.ObjectTypes.MediaType, CreateDate = DateTime.Now }); - _database.Insert(Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = 1033, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = "-1,1033", SortOrder = 2, UniqueId = new Guid("4c52d8ab-54e6-40cd-999c-7a5f24903e4d"), Text = Constants.Conventions.MediaTypes.File, NodeObjectType = Constants.ObjectTypes.MediaType, CreateDate = DateTime.Now }); - _database.Insert(Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = Constants.DataTypes.Tags, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = $"-1,{Constants.DataTypes.Tags}", SortOrder = 2, UniqueId = new Guid("b6b73142-b9c1-4bf8-a16d-e1c23320b549"), Text = "Tags", NodeObjectType = Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }); - _database.Insert(Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = Constants.DataTypes.ImageCropper, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = $"-1,{Constants.DataTypes.ImageCropper}", SortOrder = 2, UniqueId = new Guid("1df9f033-e6d4-451f-b8d2-e0cbc50a836f"), Text = "Image Cropper", NodeObjectType = Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }); - _database.Insert(Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = 1044, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = "-1,1044", SortOrder = 0, UniqueId = new Guid("d59be02f-1df9-4228-aa1e-01917d806cda"), Text = Constants.Conventions.MemberTypes.DefaultAlias, NodeObjectType = Constants.ObjectTypes.MemberType, CreateDate = DateTime.Now }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = -1, Trashed = false, ParentId = -1, UserId = -1, Level = 0, Path = "-1", SortOrder = 0, UniqueId = new Guid("916724a5-173d-4619-b97e-b9de133dd6f5"), Text = "SYSTEM DATA: umbraco master root", NodeObjectType = Cms.Core.Constants.ObjectTypes.SystemRoot, CreateDate = DateTime.Now }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = -20, Trashed = false, ParentId = -1, UserId = -1, Level = 0, Path = "-1,-20", SortOrder = 0, UniqueId = new Guid("0F582A79-1E41-4CF0-BFA0-76340651891A"), Text = "Recycle Bin", NodeObjectType = Cms.Core.Constants.ObjectTypes.ContentRecycleBin, CreateDate = DateTime.Now }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = -21, Trashed = false, ParentId = -1, UserId = -1, Level = 0, Path = "-1,-21", SortOrder = 0, UniqueId = new Guid("BF7C7CBC-952F-4518-97A2-69E9C7B33842"), Text = "Recycle Bin", NodeObjectType = Cms.Core.Constants.ObjectTypes.MediaRecycleBin, CreateDate = DateTime.Now }); + InsertDataTypeNodeDto(Cms.Core.Constants.DataTypes.LabelString, 35, Cms.Core.Constants.DataTypes.Guids.LabelString, "Label (string)"); + InsertDataTypeNodeDto(Cms.Core.Constants.DataTypes.LabelInt, 36, Cms.Core.Constants.DataTypes.Guids.LabelInt, "Label (integer)"); + InsertDataTypeNodeDto(Cms.Core.Constants.DataTypes.LabelBigint, 36, Cms.Core.Constants.DataTypes.Guids.LabelBigInt, "Label (bigint)"); + InsertDataTypeNodeDto(Cms.Core.Constants.DataTypes.LabelDateTime, 37, Cms.Core.Constants.DataTypes.Guids.LabelDateTime, "Label (datetime)"); + InsertDataTypeNodeDto(Cms.Core.Constants.DataTypes.LabelTime, 38, Cms.Core.Constants.DataTypes.Guids.LabelTime, "Label (time)"); + InsertDataTypeNodeDto(Cms.Core.Constants.DataTypes.LabelDecimal, 39, Cms.Core.Constants.DataTypes.Guids.LabelDecimal, "Label (decimal)"); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = Cms.Core.Constants.DataTypes.Upload, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = $"-1,{Cms.Core.Constants.DataTypes.Upload}", SortOrder = 34, UniqueId = Cms.Core.Constants.DataTypes.Guids.UploadGuid, Text = "Upload", NodeObjectType = Cms.Core.Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = Cms.Core.Constants.DataTypes.Textarea, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = $"-1,{Cms.Core.Constants.DataTypes.Textarea}", SortOrder = 33, UniqueId = Cms.Core.Constants.DataTypes.Guids.TextareaGuid, Text = "Textarea", NodeObjectType = Cms.Core.Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = Cms.Core.Constants.DataTypes.Textbox, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = $"-1,{Cms.Core.Constants.DataTypes.Textbox}", SortOrder = 32, UniqueId = Cms.Core.Constants.DataTypes.Guids.TextstringGuid, Text = "Textstring", NodeObjectType = Cms.Core.Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = Cms.Core.Constants.DataTypes.RichtextEditor, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = $"-1,{Cms.Core.Constants.DataTypes.RichtextEditor}", SortOrder = 4, UniqueId = Cms.Core.Constants.DataTypes.Guids.RichtextEditorGuid, Text = "Richtext editor", NodeObjectType = Cms.Core.Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = -51, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = "-1,-51", SortOrder = 2, UniqueId = Cms.Core.Constants.DataTypes.Guids.NumericGuid, Text = "Numeric", NodeObjectType = Cms.Core.Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = Cms.Core.Constants.DataTypes.Boolean, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = $"-1,{Cms.Core.Constants.DataTypes.Boolean}", SortOrder = 2, UniqueId = Cms.Core.Constants.DataTypes.Guids.CheckboxGuid, Text = "True/false", NodeObjectType = Cms.Core.Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = -43, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = "-1,-43", SortOrder = 2, UniqueId = Cms.Core.Constants.DataTypes.Guids.CheckboxListGuid, Text = "Checkbox list", NodeObjectType = Cms.Core.Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = Cms.Core.Constants.DataTypes.DropDownSingle, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = $"-1,{Cms.Core.Constants.DataTypes.DropDownSingle}", SortOrder = 2, UniqueId = Cms.Core.Constants.DataTypes.Guids.DropdownGuid, Text = "Dropdown", NodeObjectType = Cms.Core.Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = -41, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = "-1,-41", SortOrder = 2, UniqueId = Cms.Core.Constants.DataTypes.Guids.DatePickerGuid, Text = "Date Picker", NodeObjectType = Cms.Core.Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = -40, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = "-1,-40", SortOrder = 2, UniqueId = Cms.Core.Constants.DataTypes.Guids.RadioboxGuid, Text = "Radiobox", NodeObjectType = Cms.Core.Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = Cms.Core.Constants.DataTypes.DropDownMultiple, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = $"-1,{Cms.Core.Constants.DataTypes.DropDownMultiple}", SortOrder = 2, UniqueId = Cms.Core.Constants.DataTypes.Guids.DropdownMultipleGuid, Text = "Dropdown multiple", NodeObjectType = Cms.Core.Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = -37, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = "-1,-37", SortOrder = 2, UniqueId = Cms.Core.Constants.DataTypes.Guids.ApprovedColorGuid, Text = "Approved Color", NodeObjectType = Cms.Core.Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = Cms.Core.Constants.DataTypes.DateTime, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = $"-1,{Cms.Core.Constants.DataTypes.DateTime}", SortOrder = 2, UniqueId = Cms.Core.Constants.DataTypes.Guids.DatePickerWithTimeGuid, Text = "Date Picker with time", NodeObjectType = Cms.Core.Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = Cms.Core.Constants.DataTypes.DefaultContentListView, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = $"-1,{Cms.Core.Constants.DataTypes.DefaultContentListView}", SortOrder = 2, UniqueId = Cms.Core.Constants.DataTypes.Guids.ListViewContentGuid, Text = Cms.Core.Constants.Conventions.DataTypes.ListViewPrefix + "Content", NodeObjectType = Cms.Core.Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = Cms.Core.Constants.DataTypes.DefaultMediaListView, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = $"-1,{Cms.Core.Constants.DataTypes.DefaultMediaListView}", SortOrder = 2, UniqueId = Cms.Core.Constants.DataTypes.Guids.ListViewMediaGuid, Text = Cms.Core.Constants.Conventions.DataTypes.ListViewPrefix + "Media", NodeObjectType = Cms.Core.Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = Cms.Core.Constants.DataTypes.DefaultMembersListView, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = $"-1,{Cms.Core.Constants.DataTypes.DefaultMembersListView}", SortOrder = 2, UniqueId = Cms.Core.Constants.DataTypes.Guids.ListViewMembersGuid, Text = Cms.Core.Constants.Conventions.DataTypes.ListViewPrefix + "Members", NodeObjectType = Cms.Core.Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = 1031, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = "-1,1031", SortOrder = 2, UniqueId = new Guid("f38bd2d7-65d0-48e6-95dc-87ce06ec2d3d"), Text = Cms.Core.Constants.Conventions.MediaTypes.Folder, NodeObjectType = Cms.Core.Constants.ObjectTypes.MediaType, CreateDate = DateTime.Now }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = 1032, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = "-1,1032", SortOrder = 2, UniqueId = new Guid("cc07b313-0843-4aa8-bbda-871c8da728c8"), Text = Cms.Core.Constants.Conventions.MediaTypes.Image, NodeObjectType = Cms.Core.Constants.ObjectTypes.MediaType, CreateDate = DateTime.Now }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = 1033, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = "-1,1033", SortOrder = 2, UniqueId = new Guid("4c52d8ab-54e6-40cd-999c-7a5f24903e4d"), Text = Cms.Core.Constants.Conventions.MediaTypes.File, NodeObjectType = Cms.Core.Constants.ObjectTypes.MediaType, CreateDate = DateTime.Now }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = Cms.Core.Constants.DataTypes.Tags, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = $"-1,{Cms.Core.Constants.DataTypes.Tags}", SortOrder = 2, UniqueId = new Guid("b6b73142-b9c1-4bf8-a16d-e1c23320b549"), Text = "Tags", NodeObjectType = Cms.Core.Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = Cms.Core.Constants.DataTypes.ImageCropper, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = $"-1,{Cms.Core.Constants.DataTypes.ImageCropper}", SortOrder = 2, UniqueId = new Guid("1df9f033-e6d4-451f-b8d2-e0cbc50a836f"), Text = "Image Cropper", NodeObjectType = Cms.Core.Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = 1044, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = "-1,1044", SortOrder = 0, UniqueId = new Guid("d59be02f-1df9-4228-aa1e-01917d806cda"), Text = Cms.Core.Constants.Conventions.MemberTypes.DefaultAlias, NodeObjectType = Cms.Core.Constants.ObjectTypes.MemberType, CreateDate = DateTime.Now }); //New UDI pickers with newer Ids - _database.Insert(Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = 1046, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = "-1,1046", SortOrder = 2, UniqueId = new Guid("FD1E0DA5-5606-4862-B679-5D0CF3A52A59"), Text = "Content Picker", NodeObjectType = Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }); - _database.Insert(Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = 1047, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = "-1,1047", SortOrder = 2, UniqueId = new Guid("1EA2E01F-EBD8-4CE1-8D71-6B1149E63548"), Text = "Member Picker", NodeObjectType = Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }); - _database.Insert(Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = 1048, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = "-1,1048", SortOrder = 2, UniqueId = new Guid("135D60E0-64D9-49ED-AB08-893C9BA44AE5"), Text = "Media Picker", NodeObjectType = Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }); - _database.Insert(Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = 1049, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = "-1,1049", SortOrder = 2, UniqueId = new Guid("9DBBCBBB-2327-434A-B355-AF1B84E5010A"), Text = "Multiple Media Picker", NodeObjectType = Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }); - _database.Insert(Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = 1050, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = "-1,1050", SortOrder = 2, UniqueId = new Guid("B4E3535A-1753-47E2-8568-602CF8CFEE6F"), Text = "Multi URL Picker", NodeObjectType = Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = 1046, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = "-1,1046", SortOrder = 2, UniqueId = new Guid("FD1E0DA5-5606-4862-B679-5D0CF3A52A59"), Text = "Content Picker", NodeObjectType = Cms.Core.Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = 1047, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = "-1,1047", SortOrder = 2, UniqueId = new Guid("1EA2E01F-EBD8-4CE1-8D71-6B1149E63548"), Text = "Member Picker", NodeObjectType = Cms.Core.Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = 1048, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = "-1,1048", SortOrder = 2, UniqueId = new Guid("135D60E0-64D9-49ED-AB08-893C9BA44AE5"), Text = "Media Picker", NodeObjectType = Cms.Core.Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = 1049, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = "-1,1049", SortOrder = 2, UniqueId = new Guid("9DBBCBBB-2327-434A-B355-AF1B84E5010A"), Text = "Multiple Media Picker", NodeObjectType = Cms.Core.Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.Node, "id", false, new NodeDto { NodeId = 1050, Trashed = false, ParentId = -1, UserId = -1, Level = 1, Path = "-1,1050", SortOrder = 2, UniqueId = new Guid("B4E3535A-1753-47E2-8568-602CF8CFEE6F"), Text = "Multi URL Picker", NodeObjectType = Cms.Core.Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }); } private void CreateLockData() { // all lock objects - _database.Insert(Constants.DatabaseSchema.Tables.Lock, "id", false, new LockDto { Id = Constants.Locks.Servers, Name = "Servers" }); - _database.Insert(Constants.DatabaseSchema.Tables.Lock, "id", false, new LockDto { Id = Constants.Locks.ContentTypes, Name = "ContentTypes" }); - _database.Insert(Constants.DatabaseSchema.Tables.Lock, "id", false, new LockDto { Id = Constants.Locks.ContentTree, Name = "ContentTree" }); - _database.Insert(Constants.DatabaseSchema.Tables.Lock, "id", false, new LockDto { Id = Constants.Locks.MediaTypes, Name = "MediaTypes" }); - _database.Insert(Constants.DatabaseSchema.Tables.Lock, "id", false, new LockDto { Id = Constants.Locks.MediaTree, Name = "MediaTree" }); - _database.Insert(Constants.DatabaseSchema.Tables.Lock, "id", false, new LockDto { Id = Constants.Locks.MemberTypes, Name = "MemberTypes" }); - _database.Insert(Constants.DatabaseSchema.Tables.Lock, "id", false, new LockDto { Id = Constants.Locks.MemberTree, Name = "MemberTree" }); - _database.Insert(Constants.DatabaseSchema.Tables.Lock, "id", false, new LockDto { Id = Constants.Locks.Domains, Name = "Domains" }); - _database.Insert(Constants.DatabaseSchema.Tables.Lock, "id", false, new LockDto { Id = Constants.Locks.KeyValues, Name = "KeyValues" }); - _database.Insert(Constants.DatabaseSchema.Tables.Lock, "id", false, new LockDto { Id = Constants.Locks.Languages, Name = "Languages" }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.Lock, "id", false, new LockDto { Id = Cms.Core.Constants.Locks.Servers, Name = "Servers" }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.Lock, "id", false, new LockDto { Id = Cms.Core.Constants.Locks.ContentTypes, Name = "ContentTypes" }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.Lock, "id", false, new LockDto { Id = Cms.Core.Constants.Locks.ContentTree, Name = "ContentTree" }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.Lock, "id", false, new LockDto { Id = Cms.Core.Constants.Locks.MediaTypes, Name = "MediaTypes" }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.Lock, "id", false, new LockDto { Id = Cms.Core.Constants.Locks.MediaTree, Name = "MediaTree" }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.Lock, "id", false, new LockDto { Id = Cms.Core.Constants.Locks.MemberTypes, Name = "MemberTypes" }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.Lock, "id", false, new LockDto { Id = Cms.Core.Constants.Locks.MemberTree, Name = "MemberTree" }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.Lock, "id", false, new LockDto { Id = Cms.Core.Constants.Locks.Domains, Name = "Domains" }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.Lock, "id", false, new LockDto { Id = Cms.Core.Constants.Locks.KeyValues, Name = "KeyValues" }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.Lock, "id", false, new LockDto { Id = Cms.Core.Constants.Locks.Languages, Name = "Languages" }); - _database.Insert(Constants.DatabaseSchema.Tables.Lock, "id", false, new LockDto { Id = Constants.Locks.MainDom, Name = "MainDom" }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.Lock, "id", false, new LockDto { Id = Cms.Core.Constants.Locks.MainDom, Name = "MainDom" }); } private void CreateContentTypeData() { - _database.Insert(Constants.DatabaseSchema.Tables.ContentType, "pk", false, new ContentTypeDto { PrimaryKey = 532, NodeId = 1031, Alias = Constants.Conventions.MediaTypes.Folder, Icon = Constants.Icons.MediaFolder, Thumbnail = Constants.Icons.MediaFolder, IsContainer = false, AllowAtRoot = true, Variations = (byte) ContentVariation.Nothing }); - _database.Insert(Constants.DatabaseSchema.Tables.ContentType, "pk", false, new ContentTypeDto { PrimaryKey = 533, NodeId = 1032, Alias = Constants.Conventions.MediaTypes.Image, Icon = Constants.Icons.MediaImage, Thumbnail = Constants.Icons.MediaImage, AllowAtRoot = true, Variations = (byte) ContentVariation.Nothing }); - _database.Insert(Constants.DatabaseSchema.Tables.ContentType, "pk", false, new ContentTypeDto { PrimaryKey = 534, NodeId = 1033, Alias = Constants.Conventions.MediaTypes.File, Icon = Constants.Icons.MediaFile, Thumbnail = Constants.Icons.MediaFile, AllowAtRoot = true, Variations = (byte) ContentVariation.Nothing }); - _database.Insert(Constants.DatabaseSchema.Tables.ContentType, "pk", false, new ContentTypeDto { PrimaryKey = 531, NodeId = 1044, Alias = Constants.Conventions.MemberTypes.DefaultAlias, Icon = Constants.Icons.Member, Thumbnail = Constants.Icons.Member, Variations = (byte) ContentVariation.Nothing }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.ContentType, "pk", false, new ContentTypeDto { PrimaryKey = 532, NodeId = 1031, Alias = Cms.Core.Constants.Conventions.MediaTypes.Folder, Icon = Cms.Core.Constants.Icons.MediaFolder, Thumbnail = Cms.Core.Constants.Icons.MediaFolder, IsContainer = false, AllowAtRoot = true, Variations = (byte) ContentVariation.Nothing }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.ContentType, "pk", false, new ContentTypeDto { PrimaryKey = 533, NodeId = 1032, Alias = Cms.Core.Constants.Conventions.MediaTypes.Image, Icon = Cms.Core.Constants.Icons.MediaImage, Thumbnail = Cms.Core.Constants.Icons.MediaImage, AllowAtRoot = true, Variations = (byte) ContentVariation.Nothing }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.ContentType, "pk", false, new ContentTypeDto { PrimaryKey = 534, NodeId = 1033, Alias = Cms.Core.Constants.Conventions.MediaTypes.File, Icon = Cms.Core.Constants.Icons.MediaFile, Thumbnail = Cms.Core.Constants.Icons.MediaFile, AllowAtRoot = true, Variations = (byte) ContentVariation.Nothing }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.ContentType, "pk", false, new ContentTypeDto { PrimaryKey = 531, NodeId = 1044, Alias = Cms.Core.Constants.Conventions.MemberTypes.DefaultAlias, Icon = Cms.Core.Constants.Icons.Member, Thumbnail = Cms.Core.Constants.Icons.Member, Variations = (byte) ContentVariation.Nothing }); } private void CreateUserData() { - _database.Insert(Constants.DatabaseSchema.Tables.User, "id", false, new UserDto { Id = Constants.Security.SuperUserId, Disabled = false, NoConsole = false, UserName = "Administrator", Login = "admin", Password = "default", Email = "", UserLanguage = "en-US", CreateDate = DateTime.Now, UpdateDate = DateTime.Now }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.User, "id", false, new UserDto { Id = Cms.Core.Constants.Security.SuperUserId, Disabled = false, NoConsole = false, UserName = "Administrator", Login = "admin", Password = "default", Email = "", UserLanguage = "en-US", CreateDate = DateTime.Now, UpdateDate = DateTime.Now }); } private void CreateUserGroupData() { - _database.Insert(Constants.DatabaseSchema.Tables.UserGroup, "id", false, new UserGroupDto { Id = 1, StartMediaId = -1, StartContentId = -1, Alias = Constants.Security.AdminGroupAlias, Name = "Administrators", DefaultPermissions = "CADMOSKTPIURZ:5F7ï", CreateDate = DateTime.Now, UpdateDate = DateTime.Now, Icon = "icon-medal" }); - _database.Insert(Constants.DatabaseSchema.Tables.UserGroup, "id", false, new UserGroupDto { Id = 2, StartMediaId = -1, StartContentId = -1, Alias = Constants.Security.WriterGroupAlias, Name = "Writers", DefaultPermissions = "CAH:F", CreateDate = DateTime.Now, UpdateDate = DateTime.Now, Icon = "icon-edit" }); - _database.Insert(Constants.DatabaseSchema.Tables.UserGroup, "id", false, new UserGroupDto { Id = 3, StartMediaId = -1, StartContentId = -1, Alias = Constants.Security.EditorGroupAlias, Name = "Editors", DefaultPermissions = "CADMOSKTPUZ:5Fï", CreateDate = DateTime.Now, UpdateDate = DateTime.Now, Icon = "icon-tools" }); - _database.Insert(Constants.DatabaseSchema.Tables.UserGroup, "id", false, new UserGroupDto { Id = 4, StartMediaId = -1, StartContentId = -1, Alias = Constants.Security.TranslatorGroupAlias, Name = "Translators", DefaultPermissions = "AF", CreateDate = DateTime.Now, UpdateDate = DateTime.Now, Icon = "icon-globe" }); - _database.Insert(Constants.DatabaseSchema.Tables.UserGroup, "id", false, new UserGroupDto { Id = 5, StartMediaId = -1, StartContentId = -1, Alias = Constants.Security.SensitiveDataGroupAlias, Name = "Sensitive data", DefaultPermissions = "", CreateDate = DateTime.Now, UpdateDate = DateTime.Now, Icon = "icon-lock" }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.UserGroup, "id", false, new UserGroupDto { Id = 1, StartMediaId = -1, StartContentId = -1, Alias = Cms.Core.Constants.Security.AdminGroupAlias, Name = "Administrators", DefaultPermissions = "CADMOSKTPIURZ:5F7ï", CreateDate = DateTime.Now, UpdateDate = DateTime.Now, Icon = "icon-medal" }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.UserGroup, "id", false, new UserGroupDto { Id = 2, StartMediaId = -1, StartContentId = -1, Alias = Cms.Core.Constants.Security.WriterGroupAlias, Name = "Writers", DefaultPermissions = "CAH:F", CreateDate = DateTime.Now, UpdateDate = DateTime.Now, Icon = "icon-edit" }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.UserGroup, "id", false, new UserGroupDto { Id = 3, StartMediaId = -1, StartContentId = -1, Alias = Cms.Core.Constants.Security.EditorGroupAlias, Name = "Editors", DefaultPermissions = "CADMOSKTPUZ:5Fï", CreateDate = DateTime.Now, UpdateDate = DateTime.Now, Icon = "icon-tools" }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.UserGroup, "id", false, new UserGroupDto { Id = 4, StartMediaId = -1, StartContentId = -1, Alias = Cms.Core.Constants.Security.TranslatorGroupAlias, Name = "Translators", DefaultPermissions = "AF", CreateDate = DateTime.Now, UpdateDate = DateTime.Now, Icon = "icon-globe" }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.UserGroup, "id", false, new UserGroupDto { Id = 5, StartMediaId = -1, StartContentId = -1, Alias = Cms.Core.Constants.Security.SensitiveDataGroupAlias, Name = "Sensitive data", DefaultPermissions = "", CreateDate = DateTime.Now, UpdateDate = DateTime.Now, Icon = "icon-lock" }); } private void CreateUser2UserGroupData() { - _database.Insert(new User2UserGroupDto { UserGroupId = 1, UserId = Constants.Security.SuperUserId }); // add super to admins - _database.Insert(new User2UserGroupDto { UserGroupId = 5, UserId = Constants.Security.SuperUserId }); // add super to sensitive data + _database.Insert(new User2UserGroupDto { UserGroupId = 1, UserId = Cms.Core.Constants.Security.SuperUserId }); // add super to admins + _database.Insert(new User2UserGroupDto { UserGroupId = 5, UserId = Cms.Core.Constants.Security.SuperUserId }); // add super to sensitive data } private void CreateUserGroup2AppData() { - _database.Insert(new UserGroup2AppDto { UserGroupId = 1, AppAlias = Constants.Applications.Content }); - _database.Insert(new UserGroup2AppDto { UserGroupId = 1, AppAlias = Constants.Applications.Packages }); - _database.Insert(new UserGroup2AppDto { UserGroupId = 1, AppAlias = Constants.Applications.Media }); - _database.Insert(new UserGroup2AppDto { UserGroupId = 1, AppAlias = Constants.Applications.Members }); - _database.Insert(new UserGroup2AppDto { UserGroupId = 1, AppAlias = Constants.Applications.Settings }); - _database.Insert(new UserGroup2AppDto { UserGroupId = 1, AppAlias = Constants.Applications.Users }); - _database.Insert(new UserGroup2AppDto { UserGroupId = 1, AppAlias = Constants.Applications.Forms }); - _database.Insert(new UserGroup2AppDto { UserGroupId = 1, AppAlias = Constants.Applications.Translation }); + _database.Insert(new UserGroup2AppDto { UserGroupId = 1, AppAlias = Cms.Core.Constants.Applications.Content }); + _database.Insert(new UserGroup2AppDto { UserGroupId = 1, AppAlias = Cms.Core.Constants.Applications.Packages }); + _database.Insert(new UserGroup2AppDto { UserGroupId = 1, AppAlias = Cms.Core.Constants.Applications.Media }); + _database.Insert(new UserGroup2AppDto { UserGroupId = 1, AppAlias = Cms.Core.Constants.Applications.Members }); + _database.Insert(new UserGroup2AppDto { UserGroupId = 1, AppAlias = Cms.Core.Constants.Applications.Settings }); + _database.Insert(new UserGroup2AppDto { UserGroupId = 1, AppAlias = Cms.Core.Constants.Applications.Users }); + _database.Insert(new UserGroup2AppDto { UserGroupId = 1, AppAlias = Cms.Core.Constants.Applications.Forms }); + _database.Insert(new UserGroup2AppDto { UserGroupId = 1, AppAlias = Cms.Core.Constants.Applications.Translation }); - _database.Insert(new UserGroup2AppDto { UserGroupId = 2, AppAlias = Constants.Applications.Content }); + _database.Insert(new UserGroup2AppDto { UserGroupId = 2, AppAlias = Cms.Core.Constants.Applications.Content }); - _database.Insert(new UserGroup2AppDto { UserGroupId = 3, AppAlias = Constants.Applications.Content }); - _database.Insert(new UserGroup2AppDto { UserGroupId = 3, AppAlias = Constants.Applications.Media }); - _database.Insert(new UserGroup2AppDto { UserGroupId = 3, AppAlias = Constants.Applications.Forms }); + _database.Insert(new UserGroup2AppDto { UserGroupId = 3, AppAlias = Cms.Core.Constants.Applications.Content }); + _database.Insert(new UserGroup2AppDto { UserGroupId = 3, AppAlias = Cms.Core.Constants.Applications.Media }); + _database.Insert(new UserGroup2AppDto { UserGroupId = 3, AppAlias = Cms.Core.Constants.Applications.Forms }); - _database.Insert(new UserGroup2AppDto { UserGroupId = 4, AppAlias = Constants.Applications.Translation }); + _database.Insert(new UserGroup2AppDto { UserGroupId = 4, AppAlias = Cms.Core.Constants.Applications.Translation }); } private void CreatePropertyTypeGroupData() { - _database.Insert(Constants.DatabaseSchema.Tables.PropertyTypeGroup, "id", false, new PropertyTypeGroupDto { Id = 3, ContentTypeNodeId = 1032, Text = "Image", SortOrder = 1, UniqueId = new Guid(Constants.PropertyTypeGroups.Image) }); - _database.Insert(Constants.DatabaseSchema.Tables.PropertyTypeGroup, "id", false, new PropertyTypeGroupDto { Id = 4, ContentTypeNodeId = 1033, Text = "File", SortOrder = 1, UniqueId = new Guid(Constants.PropertyTypeGroups.File) }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.PropertyTypeGroup, "id", false, new PropertyTypeGroupDto { Id = 3, ContentTypeNodeId = 1032, Text = "Image", SortOrder = 1, UniqueId = new Guid(Cms.Core.Constants.PropertyTypeGroups.Image) }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.PropertyTypeGroup, "id", false, new PropertyTypeGroupDto { Id = 4, ContentTypeNodeId = 1033, Text = "File", SortOrder = 1, UniqueId = new Guid(Cms.Core.Constants.PropertyTypeGroups.File) }); //membership property group - _database.Insert(Constants.DatabaseSchema.Tables.PropertyTypeGroup, "id", false, new PropertyTypeGroupDto { Id = 11, ContentTypeNodeId = 1044, Text = "Membership", SortOrder = 1, UniqueId = new Guid(Constants.PropertyTypeGroups.Membership) }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.PropertyTypeGroup, "id", false, new PropertyTypeGroupDto { Id = 11, ContentTypeNodeId = 1044, Text = "Membership", SortOrder = 1, UniqueId = new Guid(Cms.Core.Constants.PropertyTypeGroups.Membership) }); } private void CreatePropertyTypeData() { - _database.Insert(Constants.DatabaseSchema.Tables.PropertyType, "id", false, new PropertyTypeDto { Id = 6, UniqueId = 6.ToGuid(), DataTypeId = Constants.DataTypes.ImageCropper, ContentTypeId = 1032, PropertyTypeGroupId = 3, Alias = Constants.Conventions.Media.File, Name = "Upload image", SortOrder = 0, Mandatory = true, ValidationRegExp = null, Description = null, Variations = (byte) ContentVariation.Nothing }); - _database.Insert(Constants.DatabaseSchema.Tables.PropertyType, "id", false, new PropertyTypeDto { Id = 7, UniqueId = 7.ToGuid(), DataTypeId = Constants.DataTypes.LabelInt, ContentTypeId = 1032, PropertyTypeGroupId = 3, Alias = Constants.Conventions.Media.Width, Name = "Width", SortOrder = 0, Mandatory = false, ValidationRegExp = null, Description = "in pixels", Variations = (byte) ContentVariation.Nothing }); - _database.Insert(Constants.DatabaseSchema.Tables.PropertyType, "id", false, new PropertyTypeDto { Id = 8, UniqueId = 8.ToGuid(), DataTypeId = Constants.DataTypes.LabelInt, ContentTypeId = 1032, PropertyTypeGroupId = 3, Alias = Constants.Conventions.Media.Height, Name = "Height", SortOrder = 0, Mandatory = false, ValidationRegExp = null, Description = "in pixels", Variations = (byte) ContentVariation.Nothing }); - _database.Insert(Constants.DatabaseSchema.Tables.PropertyType, "id", false, new PropertyTypeDto { Id = 9, UniqueId = 9.ToGuid(), DataTypeId = Constants.DataTypes.LabelBigint, ContentTypeId = 1032, PropertyTypeGroupId = 3, Alias = Constants.Conventions.Media.Bytes, Name = "Size", SortOrder = 0, Mandatory = false, ValidationRegExp = null, Description = "in bytes", Variations = (byte) ContentVariation.Nothing }); - _database.Insert(Constants.DatabaseSchema.Tables.PropertyType, "id", false, new PropertyTypeDto { Id = 10, UniqueId = 10.ToGuid(), DataTypeId = -92, ContentTypeId = 1032, PropertyTypeGroupId = 3, Alias = Constants.Conventions.Media.Extension, Name = "Type", SortOrder = 0, Mandatory = false, ValidationRegExp = null, Description = null, Variations = (byte) ContentVariation.Nothing }); - _database.Insert(Constants.DatabaseSchema.Tables.PropertyType, "id", false, new PropertyTypeDto { Id = 24, UniqueId = 24.ToGuid(), DataTypeId = Constants.DataTypes.Upload, ContentTypeId = 1033, PropertyTypeGroupId = 4, Alias = Constants.Conventions.Media.File, Name = "Upload file", SortOrder = 0, Mandatory = true, ValidationRegExp = null, Description = null, Variations = (byte) ContentVariation.Nothing }); - _database.Insert(Constants.DatabaseSchema.Tables.PropertyType, "id", false, new PropertyTypeDto { Id = 25, UniqueId = 25.ToGuid(), DataTypeId = -92, ContentTypeId = 1033, PropertyTypeGroupId = 4, Alias = Constants.Conventions.Media.Extension, Name = "Type", SortOrder = 0, Mandatory = false, ValidationRegExp = null, Description = null, Variations = (byte) ContentVariation.Nothing }); - _database.Insert(Constants.DatabaseSchema.Tables.PropertyType, "id", false, new PropertyTypeDto { Id = 26, UniqueId = 26.ToGuid(), DataTypeId = Constants.DataTypes.LabelBigint, ContentTypeId = 1033, PropertyTypeGroupId = 4, Alias = Constants.Conventions.Media.Bytes, Name = "Size", SortOrder = 0, Mandatory = false, ValidationRegExp = null, Description = "in bytes", Variations = (byte) ContentVariation.Nothing }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.PropertyType, "id", false, new PropertyTypeDto { Id = 6, UniqueId = 6.ToGuid(), DataTypeId = Cms.Core.Constants.DataTypes.ImageCropper, ContentTypeId = 1032, PropertyTypeGroupId = 3, Alias = Cms.Core.Constants.Conventions.Media.File, Name = "Upload image", SortOrder = 0, Mandatory = true, ValidationRegExp = null, Description = null, Variations = (byte) ContentVariation.Nothing }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.PropertyType, "id", false, new PropertyTypeDto { Id = 7, UniqueId = 7.ToGuid(), DataTypeId = Cms.Core.Constants.DataTypes.LabelInt, ContentTypeId = 1032, PropertyTypeGroupId = 3, Alias = Cms.Core.Constants.Conventions.Media.Width, Name = "Width", SortOrder = 0, Mandatory = false, ValidationRegExp = null, Description = "in pixels", Variations = (byte) ContentVariation.Nothing }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.PropertyType, "id", false, new PropertyTypeDto { Id = 8, UniqueId = 8.ToGuid(), DataTypeId = Cms.Core.Constants.DataTypes.LabelInt, ContentTypeId = 1032, PropertyTypeGroupId = 3, Alias = Cms.Core.Constants.Conventions.Media.Height, Name = "Height", SortOrder = 0, Mandatory = false, ValidationRegExp = null, Description = "in pixels", Variations = (byte) ContentVariation.Nothing }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.PropertyType, "id", false, new PropertyTypeDto { Id = 9, UniqueId = 9.ToGuid(), DataTypeId = Cms.Core.Constants.DataTypes.LabelBigint, ContentTypeId = 1032, PropertyTypeGroupId = 3, Alias = Cms.Core.Constants.Conventions.Media.Bytes, Name = "Size", SortOrder = 0, Mandatory = false, ValidationRegExp = null, Description = "in bytes", Variations = (byte) ContentVariation.Nothing }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.PropertyType, "id", false, new PropertyTypeDto { Id = 10, UniqueId = 10.ToGuid(), DataTypeId = -92, ContentTypeId = 1032, PropertyTypeGroupId = 3, Alias = Cms.Core.Constants.Conventions.Media.Extension, Name = "Type", SortOrder = 0, Mandatory = false, ValidationRegExp = null, Description = null, Variations = (byte) ContentVariation.Nothing }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.PropertyType, "id", false, new PropertyTypeDto { Id = 24, UniqueId = 24.ToGuid(), DataTypeId = Cms.Core.Constants.DataTypes.Upload, ContentTypeId = 1033, PropertyTypeGroupId = 4, Alias = Cms.Core.Constants.Conventions.Media.File, Name = "Upload file", SortOrder = 0, Mandatory = true, ValidationRegExp = null, Description = null, Variations = (byte) ContentVariation.Nothing }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.PropertyType, "id", false, new PropertyTypeDto { Id = 25, UniqueId = 25.ToGuid(), DataTypeId = -92, ContentTypeId = 1033, PropertyTypeGroupId = 4, Alias = Cms.Core.Constants.Conventions.Media.Extension, Name = "Type", SortOrder = 0, Mandatory = false, ValidationRegExp = null, Description = null, Variations = (byte) ContentVariation.Nothing }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.PropertyType, "id", false, new PropertyTypeDto { Id = 26, UniqueId = 26.ToGuid(), DataTypeId = Cms.Core.Constants.DataTypes.LabelBigint, ContentTypeId = 1033, PropertyTypeGroupId = 4, Alias = Cms.Core.Constants.Conventions.Media.Bytes, Name = "Size", SortOrder = 0, Mandatory = false, ValidationRegExp = null, Description = "in bytes", Variations = (byte) ContentVariation.Nothing }); //membership property types - _database.Insert(Constants.DatabaseSchema.Tables.PropertyType, "id", false, new PropertyTypeDto { Id = 28, UniqueId = 28.ToGuid(), DataTypeId = Constants.DataTypes.Textarea, ContentTypeId = 1044, PropertyTypeGroupId = 11, Alias = Constants.Conventions.Member.Comments, Name = Constants.Conventions.Member.CommentsLabel, SortOrder = 0, Mandatory = false, ValidationRegExp = null, Description = null, Variations = (byte) ContentVariation.Nothing }); - _database.Insert(Constants.DatabaseSchema.Tables.PropertyType, "id", false, new PropertyTypeDto { Id = 29, UniqueId = 29.ToGuid(), DataTypeId = Constants.DataTypes.LabelInt, ContentTypeId = 1044, PropertyTypeGroupId = 11, Alias = Constants.Conventions.Member.FailedPasswordAttempts, Name = Constants.Conventions.Member.FailedPasswordAttemptsLabel, SortOrder = 1, Mandatory = false, ValidationRegExp = null, Description = null, Variations = (byte) ContentVariation.Nothing }); - _database.Insert(Constants.DatabaseSchema.Tables.PropertyType, "id", false, new PropertyTypeDto { Id = 30, UniqueId = 30.ToGuid(), DataTypeId = Constants.DataTypes.Boolean, ContentTypeId = 1044, PropertyTypeGroupId = 11, Alias = Constants.Conventions.Member.IsApproved, Name = Constants.Conventions.Member.IsApprovedLabel, SortOrder = 2, Mandatory = false, ValidationRegExp = null, Description = null, Variations = (byte) ContentVariation.Nothing }); - _database.Insert(Constants.DatabaseSchema.Tables.PropertyType, "id", false, new PropertyTypeDto { Id = 31, UniqueId = 31.ToGuid(), DataTypeId = Constants.DataTypes.Boolean, ContentTypeId = 1044, PropertyTypeGroupId = 11, Alias = Constants.Conventions.Member.IsLockedOut, Name = Constants.Conventions.Member.IsLockedOutLabel, SortOrder = 3, Mandatory = false, ValidationRegExp = null, Description = null, Variations = (byte) ContentVariation.Nothing }); - _database.Insert(Constants.DatabaseSchema.Tables.PropertyType, "id", false, new PropertyTypeDto { Id = 32, UniqueId = 32.ToGuid(), DataTypeId = Constants.DataTypes.LabelDateTime, ContentTypeId = 1044, PropertyTypeGroupId = 11, Alias = Constants.Conventions.Member.LastLockoutDate, Name = Constants.Conventions.Member.LastLockoutDateLabel, SortOrder = 4, Mandatory = false, ValidationRegExp = null, Description = null, Variations = (byte) ContentVariation.Nothing }); - _database.Insert(Constants.DatabaseSchema.Tables.PropertyType, "id", false, new PropertyTypeDto { Id = 33, UniqueId = 33.ToGuid(), DataTypeId = Constants.DataTypes.LabelDateTime, ContentTypeId = 1044, PropertyTypeGroupId = 11, Alias = Constants.Conventions.Member.LastLoginDate, Name = Constants.Conventions.Member.LastLoginDateLabel, SortOrder = 5, Mandatory = false, ValidationRegExp = null, Description = null, Variations = (byte) ContentVariation.Nothing }); - _database.Insert(Constants.DatabaseSchema.Tables.PropertyType, "id", false, new PropertyTypeDto { Id = 34, UniqueId = 34.ToGuid(), DataTypeId = Constants.DataTypes.LabelDateTime, ContentTypeId = 1044, PropertyTypeGroupId = 11, Alias = Constants.Conventions.Member.LastPasswordChangeDate, Name = Constants.Conventions.Member.LastPasswordChangeDateLabel, SortOrder = 6, Mandatory = false, ValidationRegExp = null, Description = null, Variations = (byte) ContentVariation.Nothing }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.PropertyType, "id", false, new PropertyTypeDto { Id = 28, UniqueId = 28.ToGuid(), DataTypeId = Cms.Core.Constants.DataTypes.Textarea, ContentTypeId = 1044, PropertyTypeGroupId = 11, Alias = Cms.Core.Constants.Conventions.Member.Comments, Name = Cms.Core.Constants.Conventions.Member.CommentsLabel, SortOrder = 0, Mandatory = false, ValidationRegExp = null, Description = null, Variations = (byte) ContentVariation.Nothing }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.PropertyType, "id", false, new PropertyTypeDto { Id = 29, UniqueId = 29.ToGuid(), DataTypeId = Cms.Core.Constants.DataTypes.LabelInt, ContentTypeId = 1044, PropertyTypeGroupId = 11, Alias = Cms.Core.Constants.Conventions.Member.FailedPasswordAttempts, Name = Cms.Core.Constants.Conventions.Member.FailedPasswordAttemptsLabel, SortOrder = 1, Mandatory = false, ValidationRegExp = null, Description = null, Variations = (byte) ContentVariation.Nothing }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.PropertyType, "id", false, new PropertyTypeDto { Id = 30, UniqueId = 30.ToGuid(), DataTypeId = Cms.Core.Constants.DataTypes.Boolean, ContentTypeId = 1044, PropertyTypeGroupId = 11, Alias = Cms.Core.Constants.Conventions.Member.IsApproved, Name = Cms.Core.Constants.Conventions.Member.IsApprovedLabel, SortOrder = 2, Mandatory = false, ValidationRegExp = null, Description = null, Variations = (byte) ContentVariation.Nothing }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.PropertyType, "id", false, new PropertyTypeDto { Id = 31, UniqueId = 31.ToGuid(), DataTypeId = Cms.Core.Constants.DataTypes.Boolean, ContentTypeId = 1044, PropertyTypeGroupId = 11, Alias = Cms.Core.Constants.Conventions.Member.IsLockedOut, Name = Cms.Core.Constants.Conventions.Member.IsLockedOutLabel, SortOrder = 3, Mandatory = false, ValidationRegExp = null, Description = null, Variations = (byte) ContentVariation.Nothing }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.PropertyType, "id", false, new PropertyTypeDto { Id = 32, UniqueId = 32.ToGuid(), DataTypeId = Cms.Core.Constants.DataTypes.LabelDateTime, ContentTypeId = 1044, PropertyTypeGroupId = 11, Alias = Cms.Core.Constants.Conventions.Member.LastLockoutDate, Name = Cms.Core.Constants.Conventions.Member.LastLockoutDateLabel, SortOrder = 4, Mandatory = false, ValidationRegExp = null, Description = null, Variations = (byte) ContentVariation.Nothing }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.PropertyType, "id", false, new PropertyTypeDto { Id = 33, UniqueId = 33.ToGuid(), DataTypeId = Cms.Core.Constants.DataTypes.LabelDateTime, ContentTypeId = 1044, PropertyTypeGroupId = 11, Alias = Cms.Core.Constants.Conventions.Member.LastLoginDate, Name = Cms.Core.Constants.Conventions.Member.LastLoginDateLabel, SortOrder = 5, Mandatory = false, ValidationRegExp = null, Description = null, Variations = (byte) ContentVariation.Nothing }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.PropertyType, "id", false, new PropertyTypeDto { Id = 34, UniqueId = 34.ToGuid(), DataTypeId = Cms.Core.Constants.DataTypes.LabelDateTime, ContentTypeId = 1044, PropertyTypeGroupId = 11, Alias = Cms.Core.Constants.Conventions.Member.LastPasswordChangeDate, Name = Cms.Core.Constants.Conventions.Member.LastPasswordChangeDateLabel, SortOrder = 6, Mandatory = false, ValidationRegExp = null, Description = null, Variations = (byte) ContentVariation.Nothing }); } private void CreateLanguageData() { - _database.Insert(Constants.DatabaseSchema.Tables.Language, "id", false, new LanguageDto { Id = 1, IsoCode = "en-US", CultureName = "English (United States)", IsDefault = true }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.Language, "id", false, new LanguageDto { Id = 1, IsoCode = "en-US", CultureName = "English (United States)", IsDefault = true }); } private void CreateContentChildTypeData() { - _database.Insert(Constants.DatabaseSchema.Tables.ContentChildType, "Id", false, new ContentTypeAllowedContentTypeDto { Id = 1031, AllowedId = 1031 }); - _database.Insert(Constants.DatabaseSchema.Tables.ContentChildType, "Id", false, new ContentTypeAllowedContentTypeDto { Id = 1031, AllowedId = 1032 }); - _database.Insert(Constants.DatabaseSchema.Tables.ContentChildType, "Id", false, new ContentTypeAllowedContentTypeDto { Id = 1031, AllowedId = 1033 }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.ContentChildType, "Id", false, new ContentTypeAllowedContentTypeDto { Id = 1031, AllowedId = 1031 }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.ContentChildType, "Id", false, new ContentTypeAllowedContentTypeDto { Id = 1031, AllowedId = 1032 }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.ContentChildType, "Id", false, new ContentTypeAllowedContentTypeDto { Id = 1031, AllowedId = 1033 }); } private void CreateDataTypeData() @@ -260,7 +261,7 @@ namespace Umbraco.Core.Migrations.Install if (configuration != null) dataTypeDto.Configuration = configuration; - _database.Insert(Constants.DatabaseSchema.Tables.DataType, "pk", false, dataTypeDto); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.DataType, "pk", false, dataTypeDto); } //layouts for the list view @@ -269,65 +270,65 @@ namespace Umbraco.Core.Migrations.Install const string layouts = "[" + cardLayout + "," + listLayout + "]"; // TODO: Check which of the DataTypeIds below doesn't exist in umbracoNode, which results in a foreign key constraint errors. - _database.Insert(Constants.DatabaseSchema.Tables.DataType, "pk", false, new DataTypeDto { NodeId = Constants.DataTypes.Boolean, EditorAlias = Constants.PropertyEditors.Aliases.Boolean, DbType = "Integer" }); - _database.Insert(Constants.DatabaseSchema.Tables.DataType, "pk", false, new DataTypeDto { NodeId = -51, EditorAlias = Constants.PropertyEditors.Aliases.Integer, DbType = "Integer" }); - _database.Insert(Constants.DatabaseSchema.Tables.DataType, "pk", false, new DataTypeDto { NodeId = -87, EditorAlias = Constants.PropertyEditors.Aliases.TinyMce, DbType = "Ntext", + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.DataType, "pk", false, new DataTypeDto { NodeId = Cms.Core.Constants.DataTypes.Boolean, EditorAlias = Cms.Core.Constants.PropertyEditors.Aliases.Boolean, DbType = "Integer" }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.DataType, "pk", false, new DataTypeDto { NodeId = -51, EditorAlias = Cms.Core.Constants.PropertyEditors.Aliases.Integer, DbType = "Integer" }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.DataType, "pk", false, new DataTypeDto { NodeId = -87, EditorAlias = Cms.Core.Constants.PropertyEditors.Aliases.TinyMce, DbType = "Ntext", Configuration = "{\"value\":\",code,undo,redo,cut,copy,mcepasteword,stylepicker,bold,italic,bullist,numlist,outdent,indent,mcelink,unlink,mceinsertanchor,mceimage,umbracomacro,mceinserttable,umbracoembed,mcecharmap,|1|1,2,3,|0|500,400|1049,|true|\"}" }); - _database.Insert(Constants.DatabaseSchema.Tables.DataType, "pk", false, new DataTypeDto { NodeId = Constants.DataTypes.Textbox, EditorAlias = Constants.PropertyEditors.Aliases.TextBox, DbType = "Nvarchar" }); - _database.Insert(Constants.DatabaseSchema.Tables.DataType, "pk", false, new DataTypeDto { NodeId = Constants.DataTypes.Textarea, EditorAlias = Constants.PropertyEditors.Aliases.TextArea, DbType = "Ntext" }); - _database.Insert(Constants.DatabaseSchema.Tables.DataType, "pk", false, new DataTypeDto { NodeId = Constants.DataTypes.Upload, EditorAlias = Constants.PropertyEditors.Aliases.UploadField, DbType = "Nvarchar" }); - InsertDataTypeDto(Constants.DataTypes.LabelString, Constants.PropertyEditors.Aliases.Label, "Nvarchar", "{\"umbracoDataValueType\":\"STRING\"}"); - InsertDataTypeDto(Constants.DataTypes.LabelInt, Constants.PropertyEditors.Aliases.Label, "Integer", "{\"umbracoDataValueType\":\"INT\"}"); - InsertDataTypeDto(Constants.DataTypes.LabelBigint, Constants.PropertyEditors.Aliases.Label, "Nvarchar", "{\"umbracoDataValueType\":\"BIGINT\"}"); - InsertDataTypeDto(Constants.DataTypes.LabelDateTime, Constants.PropertyEditors.Aliases.Label, "Date", "{\"umbracoDataValueType\":\"DATETIME\"}"); - InsertDataTypeDto(Constants.DataTypes.LabelDecimal, Constants.PropertyEditors.Aliases.Label, "Decimal", "{\"umbracoDataValueType\":\"DECIMAL\"}"); - InsertDataTypeDto(Constants.DataTypes.LabelTime, Constants.PropertyEditors.Aliases.Label, "Date", "{\"umbracoDataValueType\":\"TIME\"}"); - _database.Insert(Constants.DatabaseSchema.Tables.DataType, "pk", false, new DataTypeDto { NodeId = Constants.DataTypes.DateTime, EditorAlias = Constants.PropertyEditors.Aliases.DateTime, DbType = "Date" }); - _database.Insert(Constants.DatabaseSchema.Tables.DataType, "pk", false, new DataTypeDto { NodeId = -37, EditorAlias = Constants.PropertyEditors.Aliases.ColorPicker, DbType = "Nvarchar" }); - InsertDataTypeDto(Constants.DataTypes.DropDownSingle, Constants.PropertyEditors.Aliases.DropDownListFlexible, "Nvarchar", "{\"multiple\":false}"); - _database.Insert(Constants.DatabaseSchema.Tables.DataType, "pk", false, new DataTypeDto { NodeId = -40, EditorAlias = Constants.PropertyEditors.Aliases.RadioButtonList, DbType = "Nvarchar" }); - _database.Insert(Constants.DatabaseSchema.Tables.DataType, "pk", false, new DataTypeDto { NodeId = -41, EditorAlias = "Umbraco.DateTime", DbType = "Date", Configuration = "{\"format\":\"YYYY-MM-DD\"}" }); - InsertDataTypeDto(Constants.DataTypes.DropDownMultiple, Constants.PropertyEditors.Aliases.DropDownListFlexible, "Nvarchar", "{\"multiple\":true}"); - _database.Insert(Constants.DatabaseSchema.Tables.DataType, "pk", false, new DataTypeDto { NodeId = -43, EditorAlias = Constants.PropertyEditors.Aliases.CheckBoxList, DbType = "Nvarchar" }); - _database.Insert(Constants.DatabaseSchema.Tables.DataType, "pk", false, new DataTypeDto { NodeId = Constants.DataTypes.Tags, EditorAlias = Constants.PropertyEditors.Aliases.Tags, DbType = "Ntext", + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.DataType, "pk", false, new DataTypeDto { NodeId = Cms.Core.Constants.DataTypes.Textbox, EditorAlias = Cms.Core.Constants.PropertyEditors.Aliases.TextBox, DbType = "Nvarchar" }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.DataType, "pk", false, new DataTypeDto { NodeId = Cms.Core.Constants.DataTypes.Textarea, EditorAlias = Cms.Core.Constants.PropertyEditors.Aliases.TextArea, DbType = "Ntext" }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.DataType, "pk", false, new DataTypeDto { NodeId = Cms.Core.Constants.DataTypes.Upload, EditorAlias = Cms.Core.Constants.PropertyEditors.Aliases.UploadField, DbType = "Nvarchar" }); + InsertDataTypeDto(Cms.Core.Constants.DataTypes.LabelString, Cms.Core.Constants.PropertyEditors.Aliases.Label, "Nvarchar", "{\"umbracoDataValueType\":\"STRING\"}"); + InsertDataTypeDto(Cms.Core.Constants.DataTypes.LabelInt, Cms.Core.Constants.PropertyEditors.Aliases.Label, "Integer", "{\"umbracoDataValueType\":\"INT\"}"); + InsertDataTypeDto(Cms.Core.Constants.DataTypes.LabelBigint, Cms.Core.Constants.PropertyEditors.Aliases.Label, "Nvarchar", "{\"umbracoDataValueType\":\"BIGINT\"}"); + InsertDataTypeDto(Cms.Core.Constants.DataTypes.LabelDateTime, Cms.Core.Constants.PropertyEditors.Aliases.Label, "Date", "{\"umbracoDataValueType\":\"DATETIME\"}"); + InsertDataTypeDto(Cms.Core.Constants.DataTypes.LabelDecimal, Cms.Core.Constants.PropertyEditors.Aliases.Label, "Decimal", "{\"umbracoDataValueType\":\"DECIMAL\"}"); + InsertDataTypeDto(Cms.Core.Constants.DataTypes.LabelTime, Cms.Core.Constants.PropertyEditors.Aliases.Label, "Date", "{\"umbracoDataValueType\":\"TIME\"}"); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.DataType, "pk", false, new DataTypeDto { NodeId = Cms.Core.Constants.DataTypes.DateTime, EditorAlias = Cms.Core.Constants.PropertyEditors.Aliases.DateTime, DbType = "Date" }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.DataType, "pk", false, new DataTypeDto { NodeId = -37, EditorAlias = Cms.Core.Constants.PropertyEditors.Aliases.ColorPicker, DbType = "Nvarchar" }); + InsertDataTypeDto(Cms.Core.Constants.DataTypes.DropDownSingle, Cms.Core.Constants.PropertyEditors.Aliases.DropDownListFlexible, "Nvarchar", "{\"multiple\":false}"); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.DataType, "pk", false, new DataTypeDto { NodeId = -40, EditorAlias = Cms.Core.Constants.PropertyEditors.Aliases.RadioButtonList, DbType = "Nvarchar" }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.DataType, "pk", false, new DataTypeDto { NodeId = -41, EditorAlias = "Umbraco.DateTime", DbType = "Date", Configuration = "{\"format\":\"YYYY-MM-DD\"}" }); + InsertDataTypeDto(Cms.Core.Constants.DataTypes.DropDownMultiple, Cms.Core.Constants.PropertyEditors.Aliases.DropDownListFlexible, "Nvarchar", "{\"multiple\":true}"); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.DataType, "pk", false, new DataTypeDto { NodeId = -43, EditorAlias = Cms.Core.Constants.PropertyEditors.Aliases.CheckBoxList, DbType = "Nvarchar" }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.DataType, "pk", false, new DataTypeDto { NodeId = Cms.Core.Constants.DataTypes.Tags, EditorAlias = Cms.Core.Constants.PropertyEditors.Aliases.Tags, DbType = "Ntext", Configuration = "{\"group\":\"default\", \"storageType\":\"Json\"}" }); - _database.Insert(Constants.DatabaseSchema.Tables.DataType, "pk", false, new DataTypeDto { NodeId = Constants.DataTypes.ImageCropper, EditorAlias = Constants.PropertyEditors.Aliases.ImageCropper, DbType = "Ntext" }); - _database.Insert(Constants.DatabaseSchema.Tables.DataType, "pk", false, new DataTypeDto { NodeId = Constants.DataTypes.DefaultContentListView, EditorAlias = Constants.PropertyEditors.Aliases.ListView, DbType = "Nvarchar", + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.DataType, "pk", false, new DataTypeDto { NodeId = Cms.Core.Constants.DataTypes.ImageCropper, EditorAlias = Cms.Core.Constants.PropertyEditors.Aliases.ImageCropper, DbType = "Ntext" }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.DataType, "pk", false, new DataTypeDto { NodeId = Cms.Core.Constants.DataTypes.DefaultContentListView, EditorAlias = Cms.Core.Constants.PropertyEditors.Aliases.ListView, DbType = "Nvarchar", Configuration = "{\"pageSize\":100, \"orderBy\":\"updateDate\", \"orderDirection\":\"desc\", \"layouts\":" + layouts + ", \"includeProperties\":[{\"alias\":\"updateDate\",\"header\":\"Last edited\",\"isSystem\":1},{\"alias\":\"owner\",\"header\":\"Updated by\",\"isSystem\":1}]}" }); - _database.Insert(Constants.DatabaseSchema.Tables.DataType, "pk", false, new DataTypeDto { NodeId = Constants.DataTypes.DefaultMediaListView, EditorAlias = Constants.PropertyEditors.Aliases.ListView, DbType = "Nvarchar", + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.DataType, "pk", false, new DataTypeDto { NodeId = Cms.Core.Constants.DataTypes.DefaultMediaListView, EditorAlias = Cms.Core.Constants.PropertyEditors.Aliases.ListView, DbType = "Nvarchar", Configuration = "{\"pageSize\":100, \"orderBy\":\"updateDate\", \"orderDirection\":\"desc\", \"layouts\":" + layouts + ", \"includeProperties\":[{\"alias\":\"updateDate\",\"header\":\"Last edited\",\"isSystem\":1},{\"alias\":\"owner\",\"header\":\"Updated by\",\"isSystem\":1}]}" }); - _database.Insert(Constants.DatabaseSchema.Tables.DataType, "pk", false, new DataTypeDto { NodeId = Constants.DataTypes.DefaultMembersListView, EditorAlias = Constants.PropertyEditors.Aliases.ListView, DbType = "Nvarchar", + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.DataType, "pk", false, new DataTypeDto { NodeId = Cms.Core.Constants.DataTypes.DefaultMembersListView, EditorAlias = Cms.Core.Constants.PropertyEditors.Aliases.ListView, DbType = "Nvarchar", Configuration = "{\"pageSize\":10, \"orderBy\":\"username\", \"orderDirection\":\"asc\", \"includeProperties\":[{\"alias\":\"username\",\"isSystem\":1},{\"alias\":\"email\",\"isSystem\":1},{\"alias\":\"updateDate\",\"header\":\"Last edited\",\"isSystem\":1}]}" }); //New UDI pickers with newer Ids - _database.Insert(Constants.DatabaseSchema.Tables.DataType, "pk", false, new DataTypeDto { NodeId = 1046, EditorAlias = Constants.PropertyEditors.Aliases.ContentPicker, DbType = "Nvarchar" }); - _database.Insert(Constants.DatabaseSchema.Tables.DataType, "pk", false, new DataTypeDto { NodeId = 1047, EditorAlias = Constants.PropertyEditors.Aliases.MemberPicker, DbType = "Nvarchar" }); - _database.Insert(Constants.DatabaseSchema.Tables.DataType, "pk", false, new DataTypeDto { NodeId = 1048, EditorAlias = Constants.PropertyEditors.Aliases.MediaPicker, DbType = "Ntext" }); - _database.Insert(Constants.DatabaseSchema.Tables.DataType, "pk", false, new DataTypeDto { NodeId = 1049, EditorAlias = Constants.PropertyEditors.Aliases.MediaPicker, DbType = "Ntext", + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.DataType, "pk", false, new DataTypeDto { NodeId = 1046, EditorAlias = Cms.Core.Constants.PropertyEditors.Aliases.ContentPicker, DbType = "Nvarchar" }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.DataType, "pk", false, new DataTypeDto { NodeId = 1047, EditorAlias = Cms.Core.Constants.PropertyEditors.Aliases.MemberPicker, DbType = "Nvarchar" }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.DataType, "pk", false, new DataTypeDto { NodeId = 1048, EditorAlias = Cms.Core.Constants.PropertyEditors.Aliases.MediaPicker, DbType = "Ntext" }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.DataType, "pk", false, new DataTypeDto { NodeId = 1049, EditorAlias = Cms.Core.Constants.PropertyEditors.Aliases.MediaPicker, DbType = "Ntext", Configuration = "{\"multiPicker\":1}" }); - _database.Insert(Constants.DatabaseSchema.Tables.DataType, "pk", false, new DataTypeDto { NodeId = 1050, EditorAlias = Constants.PropertyEditors.Aliases.MultiUrlPicker, DbType = "Ntext" }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.DataType, "pk", false, new DataTypeDto { NodeId = 1050, EditorAlias = Cms.Core.Constants.PropertyEditors.Aliases.MultiUrlPicker, DbType = "Ntext" }); } private void CreateRelationTypeData() { - var relationType = new RelationTypeDto { Id = 1, Alias = Constants.Conventions.RelationTypes.RelateDocumentOnCopyAlias, ChildObjectType = Constants.ObjectTypes.Document, ParentObjectType = Constants.ObjectTypes.Document, Dual = true, Name = Constants.Conventions.RelationTypes.RelateDocumentOnCopyName }; + var relationType = new RelationTypeDto { Id = 1, Alias = Cms.Core.Constants.Conventions.RelationTypes.RelateDocumentOnCopyAlias, ChildObjectType = Cms.Core.Constants.ObjectTypes.Document, ParentObjectType = Cms.Core.Constants.ObjectTypes.Document, Dual = true, Name = Cms.Core.Constants.Conventions.RelationTypes.RelateDocumentOnCopyName }; relationType.UniqueId = CreateUniqueRelationTypeId(relationType.Alias, relationType.Name); - _database.Insert(Constants.DatabaseSchema.Tables.RelationType, "id", false, relationType); - relationType = new RelationTypeDto { Id = 2, Alias = Constants.Conventions.RelationTypes.RelateParentDocumentOnDeleteAlias, ChildObjectType = Constants.ObjectTypes.Document, ParentObjectType = Constants.ObjectTypes.Document, Dual = false, Name = Constants.Conventions.RelationTypes.RelateParentDocumentOnDeleteName }; + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.RelationType, "id", false, relationType); + relationType = new RelationTypeDto { Id = 2, Alias = Cms.Core.Constants.Conventions.RelationTypes.RelateParentDocumentOnDeleteAlias, ChildObjectType = Cms.Core.Constants.ObjectTypes.Document, ParentObjectType = Cms.Core.Constants.ObjectTypes.Document, Dual = false, Name = Cms.Core.Constants.Conventions.RelationTypes.RelateParentDocumentOnDeleteName }; relationType.UniqueId = CreateUniqueRelationTypeId(relationType.Alias, relationType.Name); - _database.Insert(Constants.DatabaseSchema.Tables.RelationType, "id", false, relationType); - relationType = new RelationTypeDto { Id = 3, Alias = Constants.Conventions.RelationTypes.RelateParentMediaFolderOnDeleteAlias, ChildObjectType = Constants.ObjectTypes.Media, ParentObjectType = Constants.ObjectTypes.Media, Dual = false, Name = Constants.Conventions.RelationTypes.RelateParentMediaFolderOnDeleteName }; + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.RelationType, "id", false, relationType); + relationType = new RelationTypeDto { Id = 3, Alias = Cms.Core.Constants.Conventions.RelationTypes.RelateParentMediaFolderOnDeleteAlias, ChildObjectType = Cms.Core.Constants.ObjectTypes.Media, ParentObjectType = Cms.Core.Constants.ObjectTypes.Media, Dual = false, Name = Cms.Core.Constants.Conventions.RelationTypes.RelateParentMediaFolderOnDeleteName }; relationType.UniqueId = CreateUniqueRelationTypeId(relationType.Alias, relationType.Name); - _database.Insert(Constants.DatabaseSchema.Tables.RelationType, "id", false, relationType); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.RelationType, "id", false, relationType); - relationType = new RelationTypeDto { Id = 4, Alias = Constants.Conventions.RelationTypes.RelatedMediaAlias, ChildObjectType = null, ParentObjectType = null, Dual = false, Name = Constants.Conventions.RelationTypes.RelatedMediaName }; + relationType = new RelationTypeDto { Id = 4, Alias = Cms.Core.Constants.Conventions.RelationTypes.RelatedMediaAlias, ChildObjectType = null, ParentObjectType = null, Dual = false, Name = Cms.Core.Constants.Conventions.RelationTypes.RelatedMediaName }; relationType.UniqueId = CreateUniqueRelationTypeId(relationType.Alias, relationType.Name); - _database.Insert(Constants.DatabaseSchema.Tables.RelationType, "id", false, relationType); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.RelationType, "id", false, relationType); - relationType = new RelationTypeDto { Id = 5, Alias = Constants.Conventions.RelationTypes.RelatedDocumentAlias, ChildObjectType = null, ParentObjectType = null, Dual = false, Name = Constants.Conventions.RelationTypes.RelatedDocumentName }; + relationType = new RelationTypeDto { Id = 5, Alias = Cms.Core.Constants.Conventions.RelationTypes.RelatedDocumentAlias, ChildObjectType = null, ParentObjectType = null, Dual = false, Name = Cms.Core.Constants.Conventions.RelationTypes.RelatedDocumentName }; relationType.UniqueId = CreateUniqueRelationTypeId(relationType.Alias, relationType.Name); - _database.Insert(Constants.DatabaseSchema.Tables.RelationType, "id", false, relationType); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.RelationType, "id", false, relationType); } internal static Guid CreateUniqueRelationTypeId(string alias, string name) @@ -343,7 +344,7 @@ namespace Umbraco.Core.Migrations.Install var stateValueKey = upgrader.StateValueKey; var finalState = upgrader.Plan.FinalState; - _database.Insert(Constants.DatabaseSchema.Tables.KeyValue, "key", false, new KeyValueDto { Key = stateValueKey, Value = finalState, UpdateDate = DateTime.Now }); + _database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.KeyValue, "key", false, new KeyValueDto { Key = stateValueKey, Value = finalState, UpdateDate = DateTime.Now }); } } } diff --git a/src/Umbraco.Infrastructure/Migrations/Install/DatabaseSchemaCreator.cs b/src/Umbraco.Infrastructure/Migrations/Install/DatabaseSchemaCreator.cs index ed6e684cc6..1ce3113859 100644 --- a/src/Umbraco.Infrastructure/Migrations/Install/DatabaseSchemaCreator.cs +++ b/src/Umbraco.Infrastructure/Migrations/Install/DatabaseSchemaCreator.cs @@ -3,13 +3,14 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; using NPoco; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Events; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Events; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.DatabaseModelDefinitions; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.Persistence.SqlSyntax; +using Umbraco.Extensions; namespace Umbraco.Core.Migrations.Install { diff --git a/src/Umbraco.Infrastructure/Migrations/Install/DatabaseSchemaCreatorFactory.cs b/src/Umbraco.Infrastructure/Migrations/Install/DatabaseSchemaCreatorFactory.cs index 935ede3ab5..5daa423b72 100644 --- a/src/Umbraco.Infrastructure/Migrations/Install/DatabaseSchemaCreatorFactory.cs +++ b/src/Umbraco.Infrastructure/Migrations/Install/DatabaseSchemaCreatorFactory.cs @@ -1,5 +1,5 @@ using Microsoft.Extensions.Logging; -using Umbraco.Core.Configuration; +using Umbraco.Cms.Core.Configuration; using Umbraco.Core.Persistence; namespace Umbraco.Core.Migrations.Install diff --git a/src/Umbraco.Infrastructure/Migrations/MergeBuilder.cs b/src/Umbraco.Infrastructure/Migrations/MergeBuilder.cs index f1eeea9dfa..9d3b152693 100644 --- a/src/Umbraco.Infrastructure/Migrations/MergeBuilder.cs +++ b/src/Umbraco.Infrastructure/Migrations/MergeBuilder.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using Umbraco.Cms.Core.Migrations; namespace Umbraco.Core.Migrations { diff --git a/src/Umbraco.Infrastructure/Migrations/MigrationBase.cs b/src/Umbraco.Infrastructure/Migrations/MigrationBase.cs index b24313bebb..76cf45c807 100644 --- a/src/Umbraco.Infrastructure/Migrations/MigrationBase.cs +++ b/src/Umbraco.Infrastructure/Migrations/MigrationBase.cs @@ -1,6 +1,7 @@ using System; using NPoco; using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.Migrations; using Umbraco.Core.Migrations.Expressions.Alter; using Umbraco.Core.Migrations.Expressions.Create; using Umbraco.Core.Migrations.Expressions.Delete; diff --git a/src/Umbraco.Infrastructure/Migrations/MigrationBase_Extra.cs b/src/Umbraco.Infrastructure/Migrations/MigrationBase_Extra.cs index f4c6150073..5c2d44764a 100644 --- a/src/Umbraco.Infrastructure/Migrations/MigrationBase_Extra.cs +++ b/src/Umbraco.Infrastructure/Migrations/MigrationBase_Extra.cs @@ -3,6 +3,7 @@ using System.Linq; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.DatabaseModelDefinitions; using Umbraco.Core.Persistence.SqlSyntax; +using Umbraco.Extensions; namespace Umbraco.Core.Migrations { @@ -45,7 +46,7 @@ namespace Umbraco.Core.Migrations var column = table.Columns.First(x => x.Name == columnName); var createSql = SqlSyntax.Format(column); - + Execute.Sql(string.Format(SqlSyntax.AddColumn, SqlSyntax.GetQuotedTableName(tableName), createSql)).Do(); } diff --git a/src/Umbraco.Infrastructure/Migrations/MigrationBuilder.cs b/src/Umbraco.Infrastructure/Migrations/MigrationBuilder.cs index 22961dea5a..6234264bed 100644 --- a/src/Umbraco.Infrastructure/Migrations/MigrationBuilder.cs +++ b/src/Umbraco.Infrastructure/Migrations/MigrationBuilder.cs @@ -1,6 +1,6 @@ using System; -using Umbraco.Core.Composing; -using Umbraco.Core.DependencyInjection; +using Umbraco.Cms.Core.Migrations; +using Umbraco.Extensions; namespace Umbraco.Core.Migrations { diff --git a/src/Umbraco.Infrastructure/Migrations/MigrationContext.cs b/src/Umbraco.Infrastructure/Migrations/MigrationContext.cs index 5c53c3cc46..2a17e092ce 100644 --- a/src/Umbraco.Infrastructure/Migrations/MigrationContext.cs +++ b/src/Umbraco.Infrastructure/Migrations/MigrationContext.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.Migrations; using Umbraco.Core.Persistence; namespace Umbraco.Core.Migrations diff --git a/src/Umbraco.Infrastructure/Migrations/MigrationPlan.cs b/src/Umbraco.Infrastructure/Migrations/MigrationPlan.cs index 67e5d0b41a..4ab807d10e 100644 --- a/src/Umbraco.Infrastructure/Migrations/MigrationPlan.cs +++ b/src/Umbraco.Infrastructure/Migrations/MigrationPlan.cs @@ -2,7 +2,10 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Migrations; using Umbraco.Core.Scoping; +using Umbraco.Extensions; using Type = System.Type; namespace Umbraco.Core.Migrations diff --git a/src/Umbraco.Infrastructure/Migrations/PostMigrations/ClearCsrfCookies.cs b/src/Umbraco.Infrastructure/Migrations/PostMigrations/ClearCsrfCookies.cs index 2616e3a926..2f107c7d0e 100644 --- a/src/Umbraco.Infrastructure/Migrations/PostMigrations/ClearCsrfCookies.cs +++ b/src/Umbraco.Infrastructure/Migrations/PostMigrations/ClearCsrfCookies.cs @@ -1,5 +1,8 @@ -using Umbraco.Core; +using Umbraco.Cms.Core.Migrations; +using Umbraco.Cms.Core.Web; +using Umbraco.Core; using Umbraco.Core.Migrations; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web.Migrations.PostMigrations { diff --git a/src/Umbraco.Infrastructure/Migrations/PostMigrations/PublishedSnapshotRebuilder.cs b/src/Umbraco.Infrastructure/Migrations/PostMigrations/PublishedSnapshotRebuilder.cs index 764e46af5d..a4a5a9ad9b 100644 --- a/src/Umbraco.Infrastructure/Migrations/PostMigrations/PublishedSnapshotRebuilder.cs +++ b/src/Umbraco.Infrastructure/Migrations/PostMigrations/PublishedSnapshotRebuilder.cs @@ -1,4 +1,6 @@ -using Umbraco.Core.Migrations.PostMigrations; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Core.Migrations.PostMigrations; using Umbraco.Web.Cache; using Umbraco.Web.PublishedCache; diff --git a/src/Umbraco.Infrastructure/Migrations/PostMigrations/RebuildPublishedSnapshot.cs b/src/Umbraco.Infrastructure/Migrations/PostMigrations/RebuildPublishedSnapshot.cs index 4905699fd4..ccdf742daf 100644 --- a/src/Umbraco.Infrastructure/Migrations/PostMigrations/RebuildPublishedSnapshot.cs +++ b/src/Umbraco.Infrastructure/Migrations/PostMigrations/RebuildPublishedSnapshot.cs @@ -1,4 +1,6 @@ -namespace Umbraco.Core.Migrations.PostMigrations +using Umbraco.Cms.Core.Migrations; + +namespace Umbraco.Core.Migrations.PostMigrations { /// /// Rebuilds the published snapshot. diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/Common/CreateKeysAndIndexes.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/Common/CreateKeysAndIndexes.cs index 4872e0019d..eb00682730 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/Common/CreateKeysAndIndexes.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/Common/CreateKeysAndIndexes.cs @@ -11,8 +11,8 @@ namespace Umbraco.Core.Migrations.Upgrade.Common public override void Migrate() { // remove those that may already have keys - Delete.KeysAndIndexes(Constants.DatabaseSchema.Tables.KeyValue).Do(); - Delete.KeysAndIndexes(Constants.DatabaseSchema.Tables.PropertyData).Do(); + Delete.KeysAndIndexes(Cms.Core.Constants.DatabaseSchema.Tables.KeyValue).Do(); + Delete.KeysAndIndexes(Cms.Core.Constants.DatabaseSchema.Tables.PropertyData).Do(); // re-create *all* keys and indexes foreach (var x in DatabaseSchemaCreator.OrderedTables) diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/UmbracoPlan.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/UmbracoPlan.cs index c0a4f5bd35..5ad93ad581 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/UmbracoPlan.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/UmbracoPlan.cs @@ -1,8 +1,6 @@ using System; -using Semver; -using Umbraco.Core.Composing; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Semver; using Umbraco.Core.Migrations.Upgrade.Common; using Umbraco.Core.Migrations.Upgrade.V_8_0_0; using Umbraco.Core.Migrations.Upgrade.V_8_0_1; @@ -10,6 +8,7 @@ using Umbraco.Core.Migrations.Upgrade.V_8_1_0; using Umbraco.Core.Migrations.Upgrade.V_8_6_0; using Umbraco.Core.Migrations.Upgrade.V_8_9_0; using Umbraco.Core.Migrations.Upgrade.V_8_10_0; +using Umbraco.Extensions; namespace Umbraco.Core.Migrations.Upgrade { @@ -25,7 +24,7 @@ namespace Umbraco.Core.Migrations.Upgrade /// Initializes a new instance of the class. /// public UmbracoPlan(IUmbracoVersion umbracoVersion) - : base(Constants.System.UmbracoUpgradePlanName) + : base(Cms.Core.Constants.System.UmbracoUpgradePlanName) { _umbracoVersion = umbracoVersion; DefinePlan(); diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/Upgrader.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/Upgrader.cs index 9096a14146..0f26be1515 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/Upgrader.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/Upgrader.cs @@ -1,5 +1,6 @@ using System; using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Scoping; using Umbraco.Core.Services; diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/AddContentNuTable.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/AddContentNuTable.cs index 5342755ebf..1264b03c8b 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/AddContentNuTable.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/AddContentNuTable.cs @@ -1,7 +1,5 @@ -using System.Data; -using System.Linq; -using Umbraco.Core.Persistence.DatabaseAnnotations; -using Umbraco.Core.Persistence.Dtos; +using Umbraco.Core.Persistence.Dtos; +using Umbraco.Extensions; namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0 { diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/AddLockObjects.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/AddLockObjects.cs index 7c0b26dd53..0677a3cca8 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/AddLockObjects.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/AddLockObjects.cs @@ -12,14 +12,14 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0 public override void Migrate() { // some may already exist, just ensure everything we need is here - EnsureLockObject(Constants.Locks.Servers, "Servers"); - EnsureLockObject(Constants.Locks.ContentTypes, "ContentTypes"); - EnsureLockObject(Constants.Locks.ContentTree, "ContentTree"); - EnsureLockObject(Constants.Locks.MediaTree, "MediaTree"); - EnsureLockObject(Constants.Locks.MemberTree, "MemberTree"); - EnsureLockObject(Constants.Locks.MediaTypes, "MediaTypes"); - EnsureLockObject(Constants.Locks.MemberTypes, "MemberTypes"); - EnsureLockObject(Constants.Locks.Domains, "Domains"); + EnsureLockObject(Cms.Core.Constants.Locks.Servers, "Servers"); + EnsureLockObject(Cms.Core.Constants.Locks.ContentTypes, "ContentTypes"); + EnsureLockObject(Cms.Core.Constants.Locks.ContentTree, "ContentTree"); + EnsureLockObject(Cms.Core.Constants.Locks.MediaTree, "MediaTree"); + EnsureLockObject(Cms.Core.Constants.Locks.MemberTree, "MemberTree"); + EnsureLockObject(Cms.Core.Constants.Locks.MediaTypes, "MediaTypes"); + EnsureLockObject(Cms.Core.Constants.Locks.MemberTypes, "MemberTypes"); + EnsureLockObject(Cms.Core.Constants.Locks.Domains, "Domains"); } private void EnsureLockObject(int id, string name) diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/AddPackagesSectionAccess.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/AddPackagesSectionAccess.cs index d44e637a2c..e9f5e3b3a3 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/AddPackagesSectionAccess.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/AddPackagesSectionAccess.cs @@ -16,9 +16,9 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0 { // Any user group which had access to the Developer section should have access to Packages Database.Execute($@" - insert into {Constants.DatabaseSchema.Tables.UserGroup2App} - select userGroupId, '{Constants.Applications.Packages}' - from {Constants.DatabaseSchema.Tables.UserGroup2App} + insert into {Cms.Core.Constants.DatabaseSchema.Tables.UserGroup2App} + select userGroupId, '{Cms.Core.Constants.Applications.Packages}' + from {Cms.Core.Constants.DatabaseSchema.Tables.UserGroup2App} where app='developer'"); } } diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/AddTypedLabels.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/AddTypedLabels.cs index 66f9114370..4273214a38 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/AddTypedLabels.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/AddTypedLabels.cs @@ -30,65 +30,65 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0 SortOrder = sortOrder, UniqueId = new Guid(uniqueId), Text = text, - NodeObjectType = Constants.ObjectTypes.DataType, + NodeObjectType = Cms.Core.Constants.ObjectTypes.DataType, CreateDate = DateTime.Now }; - Database.Insert(Constants.DatabaseSchema.Tables.Node, "id", false, nodeDto); + Database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.Node, "id", false, nodeDto); } if (SqlSyntax.SupportsIdentityInsert()) - Database.Execute(new Sql($"SET IDENTITY_INSERT {SqlSyntax.GetQuotedTableName(Constants.DatabaseSchema.Tables.Node)} ON ")); + Database.Execute(new Sql($"SET IDENTITY_INSERT {SqlSyntax.GetQuotedTableName(Cms.Core.Constants.DatabaseSchema.Tables.Node)} ON ")); - InsertNodeDto(Constants.DataTypes.LabelInt, 36, "8e7f995c-bd81-4627-9932-c40e568ec788", "Label (integer)"); - InsertNodeDto(Constants.DataTypes.LabelBigint, 36, "930861bf-e262-4ead-a704-f99453565708", "Label (bigint)"); - InsertNodeDto(Constants.DataTypes.LabelDateTime, 37, "0e9794eb-f9b5-4f20-a788-93acd233a7e4", "Label (datetime)"); - InsertNodeDto(Constants.DataTypes.LabelTime, 38, "a97cec69-9b71-4c30-8b12-ec398860d7e8", "Label (time)"); - InsertNodeDto(Constants.DataTypes.LabelDecimal, 39, "8f1ef1e1-9de4-40d3-a072-6673f631ca64", "Label (decimal)"); + InsertNodeDto(Cms.Core.Constants.DataTypes.LabelInt, 36, "8e7f995c-bd81-4627-9932-c40e568ec788", "Label (integer)"); + InsertNodeDto(Cms.Core.Constants.DataTypes.LabelBigint, 36, "930861bf-e262-4ead-a704-f99453565708", "Label (bigint)"); + InsertNodeDto(Cms.Core.Constants.DataTypes.LabelDateTime, 37, "0e9794eb-f9b5-4f20-a788-93acd233a7e4", "Label (datetime)"); + InsertNodeDto(Cms.Core.Constants.DataTypes.LabelTime, 38, "a97cec69-9b71-4c30-8b12-ec398860d7e8", "Label (time)"); + InsertNodeDto(Cms.Core.Constants.DataTypes.LabelDecimal, 39, "8f1ef1e1-9de4-40d3-a072-6673f631ca64", "Label (decimal)"); if (SqlSyntax.SupportsIdentityInsert()) - Database.Execute(new Sql($"SET IDENTITY_INSERT {SqlSyntax.GetQuotedTableName(Constants.DatabaseSchema.Tables.Node)} OFF ")); + Database.Execute(new Sql($"SET IDENTITY_INSERT {SqlSyntax.GetQuotedTableName(Cms.Core.Constants.DatabaseSchema.Tables.Node)} OFF ")); void InsertDataTypeDto(int id, string dbType, string configuration = null) { var dataTypeDto = new DataTypeDto { NodeId = id, - EditorAlias = Constants.PropertyEditors.Aliases.Label, + EditorAlias = Cms.Core.Constants.PropertyEditors.Aliases.Label, DbType = dbType }; if (configuration != null) dataTypeDto.Configuration = configuration; - Database.Insert(Constants.DatabaseSchema.Tables.DataType, "pk", false, dataTypeDto); + Database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.DataType, "pk", false, dataTypeDto); } - InsertDataTypeDto(Constants.DataTypes.LabelInt, "Integer", "{\"umbracoDataValueType\":\"INT\"}"); - InsertDataTypeDto(Constants.DataTypes.LabelBigint, "Nvarchar", "{\"umbracoDataValueType\":\"BIGINT\"}"); - InsertDataTypeDto(Constants.DataTypes.LabelDateTime, "Date", "{\"umbracoDataValueType\":\"DATETIME\"}"); - InsertDataTypeDto(Constants.DataTypes.LabelDecimal, "Decimal", "{\"umbracoDataValueType\":\"DECIMAL\"}"); - InsertDataTypeDto(Constants.DataTypes.LabelTime, "Date", "{\"umbracoDataValueType\":\"TIME\"}"); + InsertDataTypeDto(Cms.Core.Constants.DataTypes.LabelInt, "Integer", "{\"umbracoDataValueType\":\"INT\"}"); + InsertDataTypeDto(Cms.Core.Constants.DataTypes.LabelBigint, "Nvarchar", "{\"umbracoDataValueType\":\"BIGINT\"}"); + InsertDataTypeDto(Cms.Core.Constants.DataTypes.LabelDateTime, "Date", "{\"umbracoDataValueType\":\"DATETIME\"}"); + InsertDataTypeDto(Cms.Core.Constants.DataTypes.LabelDecimal, "Decimal", "{\"umbracoDataValueType\":\"DECIMAL\"}"); + InsertDataTypeDto(Cms.Core.Constants.DataTypes.LabelTime, "Date", "{\"umbracoDataValueType\":\"TIME\"}"); // flip known property types var labelPropertyTypes = Database.Fetch(Sql() .Select(x => x.Id, x => x.Alias) .From() - .Where(x => x.DataTypeId == Constants.DataTypes.LabelString)); + .Where(x => x.DataTypeId == Cms.Core.Constants.DataTypes.LabelString)); - var intPropertyAliases = new[] { Constants.Conventions.Media.Width, Constants.Conventions.Media.Height, Constants.Conventions.Member.FailedPasswordAttempts }; - var bigintPropertyAliases = new[] { Constants.Conventions.Media.Bytes }; - var dtPropertyAliases = new[] { Constants.Conventions.Member.LastLockoutDate, Constants.Conventions.Member.LastLoginDate, Constants.Conventions.Member.LastPasswordChangeDate }; + var intPropertyAliases = new[] { Cms.Core.Constants.Conventions.Media.Width, Cms.Core.Constants.Conventions.Media.Height, Cms.Core.Constants.Conventions.Member.FailedPasswordAttempts }; + var bigintPropertyAliases = new[] { Cms.Core.Constants.Conventions.Media.Bytes }; + var dtPropertyAliases = new[] { Cms.Core.Constants.Conventions.Member.LastLockoutDate, Cms.Core.Constants.Conventions.Member.LastLoginDate, Cms.Core.Constants.Conventions.Member.LastPasswordChangeDate }; var intPropertyTypes = labelPropertyTypes.Where(pt => intPropertyAliases.Contains(pt.Alias)).Select(pt => pt.Id).ToArray(); var bigintPropertyTypes = labelPropertyTypes.Where(pt => bigintPropertyAliases.Contains(pt.Alias)).Select(pt => pt.Id).ToArray(); var dtPropertyTypes = labelPropertyTypes.Where(pt => dtPropertyAliases.Contains(pt.Alias)).Select(pt => pt.Id).ToArray(); - Database.Execute(Sql().Update(u => u.Set(x => x.DataTypeId, Constants.DataTypes.LabelInt)).WhereIn(x => x.Id, intPropertyTypes)); - Database.Execute(Sql().Update(u => u.Set(x => x.DataTypeId, Constants.DataTypes.LabelInt)).WhereIn(x => x.Id, intPropertyTypes)); - Database.Execute(Sql().Update(u => u.Set(x => x.DataTypeId, Constants.DataTypes.LabelBigint)).WhereIn(x => x.Id, bigintPropertyTypes)); - Database.Execute(Sql().Update(u => u.Set(x => x.DataTypeId, Constants.DataTypes.LabelDateTime)).WhereIn(x => x.Id, dtPropertyTypes)); + Database.Execute(Sql().Update(u => u.Set(x => x.DataTypeId, Cms.Core.Constants.DataTypes.LabelInt)).WhereIn(x => x.Id, intPropertyTypes)); + Database.Execute(Sql().Update(u => u.Set(x => x.DataTypeId, Cms.Core.Constants.DataTypes.LabelInt)).WhereIn(x => x.Id, intPropertyTypes)); + Database.Execute(Sql().Update(u => u.Set(x => x.DataTypeId, Cms.Core.Constants.DataTypes.LabelBigint)).WhereIn(x => x.Id, bigintPropertyTypes)); + Database.Execute(Sql().Update(u => u.Set(x => x.DataTypeId, Cms.Core.Constants.DataTypes.LabelDateTime)).WhereIn(x => x.Id, dtPropertyTypes)); // update values for known property types // depending on the size of the site, that *may* take time diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/AddVariationTables1A.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/AddVariationTables1A.cs index a60e8c149c..53e0d4cf03 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/AddVariationTables1A.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/AddVariationTables1A.cs @@ -23,10 +23,10 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0 // but we need to take care of ppl caught into the state // was not used - Delete.Column("available").FromTable(Constants.DatabaseSchema.Tables.ContentVersionCultureVariation).Do(); + Delete.Column("available").FromTable(Cms.Core.Constants.DatabaseSchema.Tables.ContentVersionCultureVariation).Do(); // was not used - Delete.Column("availableDate").FromTable(Constants.DatabaseSchema.Tables.ContentVersionCultureVariation).Do(); + Delete.Column("availableDate").FromTable(Cms.Core.Constants.DatabaseSchema.Tables.ContentVersionCultureVariation).Do(); //special trick to add the column without constraints and return the sql to add them later AddColumn("date", out var sqls); @@ -36,8 +36,8 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0 foreach (var sql in sqls) Execute.Sql(sql).Do(); // name, languageId are now non-nullable - AlterColumn(Constants.DatabaseSchema.Tables.ContentVersionCultureVariation, "name"); - AlterColumn(Constants.DatabaseSchema.Tables.ContentVersionCultureVariation, "languageId"); + AlterColumn(Cms.Core.Constants.DatabaseSchema.Tables.ContentVersionCultureVariation, "name"); + AlterColumn(Cms.Core.Constants.DatabaseSchema.Tables.ContentVersionCultureVariation, "languageId"); Create.Table().Do(); } diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/ConvertRelatedLinksToMultiUrlPicker.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/ConvertRelatedLinksToMultiUrlPicker.cs index b82d1eab8b..39ab0abe90 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/ConvertRelatedLinksToMultiUrlPicker.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/ConvertRelatedLinksToMultiUrlPicker.cs @@ -2,6 +2,7 @@ using System.Linq; using System.Runtime.Serialization; using Newtonsoft.Json; +using Umbraco.Cms.Core; using Umbraco.Core.Migrations.Upgrade.V_8_0_0.Models; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.Dtos; @@ -18,8 +19,8 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0 var sqlDataTypes = Sql() .Select() .From() - .Where(x => x.EditorAlias == Constants.PropertyEditors.Legacy.Aliases.RelatedLinks - || x.EditorAlias == Constants.PropertyEditors.Legacy.Aliases.RelatedLinks2); + .Where(x => x.EditorAlias == Cms.Core.Constants.PropertyEditors.Legacy.Aliases.RelatedLinks + || x.EditorAlias == Cms.Core.Constants.PropertyEditors.Legacy.Aliases.RelatedLinks2); var dataTypes = Database.Fetch(sqlDataTypes); var dataTypeIds = dataTypes.Select(x => x.NodeId).ToList(); @@ -28,7 +29,7 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0 foreach (var dataType in dataTypes) { - dataType.EditorAlias = Constants.PropertyEditors.Aliases.MultiUrlPicker; + dataType.EditorAlias = Cms.Core.Constants.PropertyEditors.Aliases.MultiUrlPicker; Database.Update(dataType); } diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypeMigration.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypeMigration.cs index d813550750..bfdbbac396 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypeMigration.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypeMigration.cs @@ -2,6 +2,8 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; using Umbraco.Core.Migrations.Upgrade.V_8_0_0.DataTypes; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.Dtos; @@ -20,14 +22,14 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0 private static readonly ISet LegacyAliases = new HashSet() { - Constants.PropertyEditors.Legacy.Aliases.Date, - Constants.PropertyEditors.Legacy.Aliases.Textbox, - Constants.PropertyEditors.Legacy.Aliases.ContentPicker2, - Constants.PropertyEditors.Legacy.Aliases.MediaPicker2, - Constants.PropertyEditors.Legacy.Aliases.MemberPicker2, - Constants.PropertyEditors.Legacy.Aliases.RelatedLinks2, - Constants.PropertyEditors.Legacy.Aliases.TextboxMultiple, - Constants.PropertyEditors.Legacy.Aliases.MultiNodeTreePicker2, + Cms.Core.Constants.PropertyEditors.Legacy.Aliases.Date, + Cms.Core.Constants.PropertyEditors.Legacy.Aliases.Textbox, + Cms.Core.Constants.PropertyEditors.Legacy.Aliases.ContentPicker2, + Cms.Core.Constants.PropertyEditors.Legacy.Aliases.MediaPicker2, + Cms.Core.Constants.PropertyEditors.Legacy.Aliases.MemberPicker2, + Cms.Core.Constants.PropertyEditors.Legacy.Aliases.RelatedLinks2, + Cms.Core.Constants.PropertyEditors.Legacy.Aliases.TextboxMultiple, + Cms.Core.Constants.PropertyEditors.Legacy.Aliases.MultiNodeTreePicker2, }; public DataTypeMigration(IMigrationContext context, @@ -49,10 +51,10 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0 Delete.Column("pk").FromTable("cmsDataType").Do(); // rename the table - Rename.Table("cmsDataType").To(Constants.DatabaseSchema.Tables.DataType).Do(); + Rename.Table("cmsDataType").To(Cms.Core.Constants.DatabaseSchema.Tables.DataType).Do(); // create column - AddColumn(Constants.DatabaseSchema.Tables.DataType, "config"); + AddColumn(Cms.Core.Constants.DatabaseSchema.Tables.DataType, "config"); Execute.Sql(Sql().Update(u => u.Set(x => x.Configuration, string.Empty))).Do(); // renames diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/ContentPickerPreValueMigrator.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/ContentPickerPreValueMigrator.cs index f445742aa9..21b707b28b 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/ContentPickerPreValueMigrator.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/ContentPickerPreValueMigrator.cs @@ -3,7 +3,7 @@ class ContentPickerPreValueMigrator : DefaultPreValueMigrator { public override bool CanMigrate(string editorAlias) - => editorAlias == Constants.PropertyEditors.Legacy.Aliases.ContentPicker2; + => editorAlias == Cms.Core.Constants.PropertyEditors.Legacy.Aliases.ContentPicker2; public override string GetNewAlias(string editorAlias) => null; diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/DecimalPreValueMigrator.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/DecimalPreValueMigrator.cs index 8dc0f1dcd5..cfc011f79f 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/DecimalPreValueMigrator.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/DecimalPreValueMigrator.cs @@ -1,4 +1,5 @@ using Newtonsoft.Json; +using Umbraco.Extensions; namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0.DataTypes { diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/DefaultPreValueMigrator.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/DefaultPreValueMigrator.cs index 0c8161c9ef..ed166b49d1 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/DefaultPreValueMigrator.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/DefaultPreValueMigrator.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.Linq; using Newtonsoft.Json; +using Umbraco.Extensions; namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0.DataTypes { diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/DropDownFlexiblePreValueMigrator.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/DropDownFlexiblePreValueMigrator.cs index 35ca574bab..3e8f5de022 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/DropDownFlexiblePreValueMigrator.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/DropDownFlexiblePreValueMigrator.cs @@ -1,5 +1,6 @@ using System.Collections.Generic; using System.Linq; +using Umbraco.Cms.Core.PropertyEditors; using Umbraco.Core.PropertyEditors; namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0.DataTypes diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/ListViewPreValueMigrator.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/ListViewPreValueMigrator.cs index d8daf9b5e6..b76d4ae0b4 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/ListViewPreValueMigrator.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/ListViewPreValueMigrator.cs @@ -1,6 +1,7 @@ using System.Collections.Generic; using System.Linq; using Newtonsoft.Json; +using Umbraco.Extensions; namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0.DataTypes { diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/MarkdownEditorPreValueMigrator.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/MarkdownEditorPreValueMigrator.cs index a8ebc768fc..a04d9b6611 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/MarkdownEditorPreValueMigrator.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/MarkdownEditorPreValueMigrator.cs @@ -6,7 +6,7 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0.DataTypes class MarkdownEditorPreValueMigrator : DefaultPreValueMigrator //PreValueMigratorBase { public override bool CanMigrate(string editorAlias) - => editorAlias == Constants.PropertyEditors.Aliases.MarkdownEditor; + => editorAlias == Cms.Core.Constants.PropertyEditors.Aliases.MarkdownEditor; protected override object GetPreValueValue(PreValueDto preValue) { diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/MediaPickerPreValueMigrator.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/MediaPickerPreValueMigrator.cs index 922d886595..01f75f8830 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/MediaPickerPreValueMigrator.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/MediaPickerPreValueMigrator.cs @@ -6,15 +6,15 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0.DataTypes { private readonly string[] _editors = { - Constants.PropertyEditors.Legacy.Aliases.MediaPicker2, - Constants.PropertyEditors.Aliases.MediaPicker + Cms.Core.Constants.PropertyEditors.Legacy.Aliases.MediaPicker2, + Cms.Core.Constants.PropertyEditors.Aliases.MediaPicker }; public override bool CanMigrate(string editorAlias) => _editors.Contains(editorAlias); public override string GetNewAlias(string editorAlias) - => Constants.PropertyEditors.Aliases.MediaPicker; + => Cms.Core.Constants.PropertyEditors.Aliases.MediaPicker; // you wish - but MediaPickerConfiguration lives in Umbraco.Web /* diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/NestedContentPreValueMigrator.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/NestedContentPreValueMigrator.cs index 22c87f8503..fa922a765e 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/NestedContentPreValueMigrator.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/NestedContentPreValueMigrator.cs @@ -1,5 +1,5 @@ -using System.Collections.Generic; -using Newtonsoft.Json; +using Newtonsoft.Json; +using Umbraco.Extensions; namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0.DataTypes { diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/PreValueMigratorCollection.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/PreValueMigratorCollection.cs index fbe8e38688..cf5eaac5db 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/PreValueMigratorCollection.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/PreValueMigratorCollection.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0.DataTypes { diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/PreValueMigratorCollectionBuilder.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/PreValueMigratorCollectionBuilder.cs index 3859e63767..b170045a5e 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/PreValueMigratorCollectionBuilder.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/PreValueMigratorCollectionBuilder.cs @@ -1,4 +1,4 @@ -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0.DataTypes { diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/PreValueMigratorComposer.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/PreValueMigratorComposer.cs index 2cca4a839f..9a6c805952 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/PreValueMigratorComposer.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/PreValueMigratorComposer.cs @@ -1,5 +1,5 @@ -using Umbraco.Core.DependencyInjection; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.DependencyInjection; namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0.DataTypes { diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/RenamingPreValueMigrator.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/RenamingPreValueMigrator.cs index 89a71fdaf4..6d9eea1647 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/RenamingPreValueMigrator.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/RenamingPreValueMigrator.cs @@ -1,6 +1,6 @@ using System; using System.Linq; -using Umbraco.Core.Exceptions; +using Umbraco.Cms.Core.Exceptions; namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0.DataTypes { @@ -19,7 +19,7 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0.DataTypes switch (editorAlias) { case "Umbraco.NoEdit": - return Constants.PropertyEditors.Aliases.Label; + return Cms.Core.Constants.PropertyEditors.Aliases.Label; default: throw new PanicException($"The alias {editorAlias} is not supported"); } diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/RichTextPreValueMigrator.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/RichTextPreValueMigrator.cs index a5c037c859..7b7b34f54b 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/RichTextPreValueMigrator.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/RichTextPreValueMigrator.cs @@ -1,4 +1,5 @@ using Newtonsoft.Json; +using Umbraco.Extensions; namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0.DataTypes { @@ -8,7 +9,7 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0.DataTypes => editorAlias == "Umbraco.TinyMCEv3"; public override string GetNewAlias(string editorAlias) - => Constants.PropertyEditors.Aliases.TinyMce; + => Cms.Core.Constants.PropertyEditors.Aliases.TinyMce; protected override object GetPreValueValue(PreValueDto preValue) { diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/UmbracoSliderPreValueMigrator.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/UmbracoSliderPreValueMigrator.cs index dc6de5e493..e9dc1cfc1e 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/UmbracoSliderPreValueMigrator.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/UmbracoSliderPreValueMigrator.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using Umbraco.Cms.Core.PropertyEditors; using Umbraco.Core.PropertyEditors; namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0.DataTypes diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/ValueListPreValueMigrator.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/ValueListPreValueMigrator.cs index 07fefc8e85..3c6368bfcf 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/ValueListPreValueMigrator.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/ValueListPreValueMigrator.cs @@ -1,5 +1,6 @@ using System.Collections.Generic; using System.Linq; +using Umbraco.Cms.Core.PropertyEditors; using Umbraco.Core.PropertyEditors; namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0.DataTypes diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DropDownPropertyEditorsMigration.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DropDownPropertyEditorsMigration.cs index 031abc17f9..b4d6962787 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DropDownPropertyEditorsMigration.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DropDownPropertyEditorsMigration.cs @@ -2,13 +2,14 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; -using Umbraco.Core.IO; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Core.Migrations.PostMigrations; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.Dtos; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Migrations.PostMigrations; -using Umbraco.Core.Models; -using Umbraco.Core.Serialization; +using Umbraco.Extensions; namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0 { @@ -108,7 +109,7 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0 private void UpdateDataType(DataTypeDto dataType, ValueListConfiguration config, bool isMultiple) { dataType.DbType = ValueStorageType.Nvarchar.ToString(); - dataType.EditorAlias = Constants.PropertyEditors.Aliases.DropDownListFlexible; + dataType.EditorAlias = Cms.Core.Constants.PropertyEditors.Aliases.DropDownListFlexible; var flexConfig = new DropDownFlexibleConfiguration { diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/FallbackLanguage.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/FallbackLanguage.cs index f0d7c02b82..7166dd3238 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/FallbackLanguage.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/FallbackLanguage.cs @@ -1,5 +1,6 @@ using System.Linq; using Umbraco.Core.Persistence.Dtos; +using Umbraco.Extensions; namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0 { @@ -17,7 +18,7 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0 { var columns = SqlSyntax.GetColumnsInSchema(Context.Database).ToArray(); - if (columns.Any(x => x.TableName.InvariantEquals(Constants.DatabaseSchema.Tables.Language) && x.ColumnName.InvariantEquals("fallbackLanguageId")) == false) + if (columns.Any(x => x.TableName.InvariantEquals(Cms.Core.Constants.DatabaseSchema.Tables.Language) && x.ColumnName.InvariantEquals("fallbackLanguageId")) == false) AddColumn("fallbackLanguageId"); } } diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/LanguageColumns.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/LanguageColumns.cs index e8a1197d37..0072f13451 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/LanguageColumns.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/LanguageColumns.cs @@ -10,8 +10,8 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0 public override void Migrate() { - AddColumn(Constants.DatabaseSchema.Tables.Language, "isDefaultVariantLang"); - AddColumn(Constants.DatabaseSchema.Tables.Language, "mandatory"); + AddColumn(Cms.Core.Constants.DatabaseSchema.Tables.Language, "isDefaultVariantLang"); + AddColumn(Cms.Core.Constants.DatabaseSchema.Tables.Language, "mandatory"); } } } diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/MergeDateAndDateTimePropertyEditor.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/MergeDateAndDateTimePropertyEditor.cs index 8e71c8ff4f..bee3e3f7d9 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/MergeDateAndDateTimePropertyEditor.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/MergeDateAndDateTimePropertyEditor.cs @@ -1,7 +1,9 @@ using System; using System.Collections.Generic; using Microsoft.Extensions.Logging; -using Umbraco.Core.IO; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.PropertyEditors; @@ -23,7 +25,7 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0 public override void Migrate() { - var dataTypes = GetDataTypes(Constants.PropertyEditors.Legacy.Aliases.Date); + var dataTypes = GetDataTypes(Cms.Core.Constants.PropertyEditors.Legacy.Aliases.Date); foreach (var dataType in dataTypes) { @@ -53,7 +55,7 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0 config.OffsetTime = false; - dataType.EditorAlias = Constants.PropertyEditors.Aliases.DateTime; + dataType.EditorAlias = Cms.Core.Constants.PropertyEditors.Aliases.DateTime; dataType.Configuration = ConfigurationEditor.ToDatabase(config, _configurationEditorJsonSerializer); Database.Update(dataType); diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/Models/ContentTypeDto80.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/Models/ContentTypeDto80.cs index bc41e5e32a..88cd746010 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/Models/ContentTypeDto80.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/Models/ContentTypeDto80.cs @@ -16,7 +16,7 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0.Models [ExplicitColumns] internal class ContentTypeDto80 { - public const string TableName = Constants.DatabaseSchema.Tables.ContentType; + public const string TableName = Cms.Core.Constants.DatabaseSchema.Tables.ContentType; [Column("pk")] [PrimaryKeyColumn(IdentitySeed = 535)] diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/Models/PropertyDataDto80.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/Models/PropertyDataDto80.cs index f0a36b223d..908f32433b 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/Models/PropertyDataDto80.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/Models/PropertyDataDto80.cs @@ -1,7 +1,8 @@ -using NPoco; -using System; +using System; +using NPoco; using Umbraco.Core.Persistence.DatabaseAnnotations; using Umbraco.Core.Persistence.Dtos; +using Umbraco.Extensions; namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0.Models { @@ -16,7 +17,7 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0.Models [ExplicitColumns] internal class PropertyDataDto80 { - public const string TableName = Constants.DatabaseSchema.Tables.PropertyData; + public const string TableName = Cms.Core.Constants.DatabaseSchema.Tables.PropertyData; public const int VarcharLength = 512; public const int SegmentLength = 256; diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/Models/PropertyTypeDto80.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/Models/PropertyTypeDto80.cs index 6e2bd7371a..1b16cf5135 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/Models/PropertyTypeDto80.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/Models/PropertyTypeDto80.cs @@ -16,7 +16,7 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0.Models /// /// This is required during migrations before 8.6 since the schema has changed and running SQL against the new table would result in errors /// - [TableName(Constants.DatabaseSchema.Tables.PropertyType)] + [TableName(Cms.Core.Constants.DatabaseSchema.Tables.PropertyType)] [PrimaryKey("id")] [ExplicitColumns] internal class PropertyTypeDto80 diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/PropertyEditorsMigration.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/PropertyEditorsMigration.cs index 89a8f010ec..7ab5b757f7 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/PropertyEditorsMigration.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/PropertyEditorsMigration.cs @@ -12,12 +12,12 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0 public override void Migrate() { - RenameDataType(Constants.PropertyEditors.Legacy.Aliases.ContentPicker2, Constants.PropertyEditors.Aliases.ContentPicker); - RenameDataType(Constants.PropertyEditors.Legacy.Aliases.MediaPicker2, Constants.PropertyEditors.Aliases.MediaPicker); - RenameDataType(Constants.PropertyEditors.Legacy.Aliases.MemberPicker2, Constants.PropertyEditors.Aliases.MemberPicker); - RenameDataType(Constants.PropertyEditors.Legacy.Aliases.MultiNodeTreePicker2, Constants.PropertyEditors.Aliases.MultiNodeTreePicker); - RenameDataType(Constants.PropertyEditors.Legacy.Aliases.TextboxMultiple, Constants.PropertyEditors.Aliases.TextArea, false); - RenameDataType(Constants.PropertyEditors.Legacy.Aliases.Textbox, Constants.PropertyEditors.Aliases.TextBox, false); + RenameDataType(Cms.Core.Constants.PropertyEditors.Legacy.Aliases.ContentPicker2, Cms.Core.Constants.PropertyEditors.Aliases.ContentPicker); + RenameDataType(Cms.Core.Constants.PropertyEditors.Legacy.Aliases.MediaPicker2, Cms.Core.Constants.PropertyEditors.Aliases.MediaPicker); + RenameDataType(Cms.Core.Constants.PropertyEditors.Legacy.Aliases.MemberPicker2, Cms.Core.Constants.PropertyEditors.Aliases.MemberPicker); + RenameDataType(Cms.Core.Constants.PropertyEditors.Legacy.Aliases.MultiNodeTreePicker2, Cms.Core.Constants.PropertyEditors.Aliases.MultiNodeTreePicker); + RenameDataType(Cms.Core.Constants.PropertyEditors.Legacy.Aliases.TextboxMultiple, Cms.Core.Constants.PropertyEditors.Aliases.TextArea, false); + RenameDataType(Cms.Core.Constants.PropertyEditors.Legacy.Aliases.Textbox, Cms.Core.Constants.PropertyEditors.Aliases.TextBox, false); } private void RenameDataType(string fromAlias, string toAlias, bool checkCollision = true) diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/PropertyEditorsMigrationBase.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/PropertyEditorsMigrationBase.cs index 79bbcece0d..dfafcd5daa 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/PropertyEditorsMigrationBase.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/PropertyEditorsMigrationBase.cs @@ -3,10 +3,12 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; using Newtonsoft.Json; -using Umbraco.Core.IO; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.PropertyEditors; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.PropertyEditors; +using Umbraco.Extensions; namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0 { diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/RadioAndCheckboxPropertyEditorsMigration.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/RadioAndCheckboxPropertyEditorsMigration.cs index e1173ed3a4..53a41e8ff5 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/RadioAndCheckboxPropertyEditorsMigration.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/RadioAndCheckboxPropertyEditorsMigration.cs @@ -2,13 +2,14 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; -using Umbraco.Core.IO; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; using Umbraco.Core.Migrations.PostMigrations; -using Umbraco.Core.Models; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.Dtos; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Serialization; +using Umbraco.Extensions; namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0 { @@ -31,8 +32,8 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0 { var refreshCache = false; - refreshCache |= Migrate(GetDataTypes(Constants.PropertyEditors.Aliases.RadioButtonList), false); - refreshCache |= Migrate(GetDataTypes(Constants.PropertyEditors.Aliases.CheckBoxList), true); + refreshCache |= Migrate(GetDataTypes(Cms.Core.Constants.PropertyEditors.Aliases.RadioButtonList), false); + refreshCache |= Migrate(GetDataTypes(Cms.Core.Constants.PropertyEditors.Aliases.CheckBoxList), true); // if some data types have been updated directly in the database (editing DataTypeDto and/or PropertyDataDto), // bypassing the services, then we need to rebuild the cache entirely, including the umbracoContentNu table diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/RefactorMacroColumns.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/RefactorMacroColumns.cs index bc3df6f584..58bd5644f3 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/RefactorMacroColumns.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/RefactorMacroColumns.cs @@ -11,7 +11,7 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0 public override void Migrate() { - if (ColumnExists(Constants.DatabaseSchema.Tables.Macro, "macroXSLT")) + if (ColumnExists(Cms.Core.Constants.DatabaseSchema.Tables.Macro, "macroXSLT")) { //special trick to add the column without constraints and return the sql to add them later AddColumn("macroType", out var sqls1); @@ -19,21 +19,21 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0 //populate the new columns with legacy data //when the macro type is PartialView, it corresponds to 7, else it is 4 for Unknown - Execute.Sql($"UPDATE {Constants.DatabaseSchema.Tables.Macro} SET macroSource = '', macroType = 4").Do(); - Execute.Sql($"UPDATE {Constants.DatabaseSchema.Tables.Macro} SET macroSource = macroXSLT, macroType = 4 WHERE macroXSLT != '' AND macroXSLT IS NOT NULL").Do(); - Execute.Sql($"UPDATE {Constants.DatabaseSchema.Tables.Macro} SET macroSource = macroScriptAssembly, macroType = 4 WHERE macroScriptAssembly != '' AND macroScriptAssembly IS NOT NULL").Do(); - Execute.Sql($"UPDATE {Constants.DatabaseSchema.Tables.Macro} SET macroSource = macroScriptType, macroType = 4 WHERE macroScriptType != '' AND macroScriptType IS NOT NULL").Do(); - Execute.Sql($"UPDATE {Constants.DatabaseSchema.Tables.Macro} SET macroSource = macroPython, macroType = 7 WHERE macroPython != '' AND macroPython IS NOT NULL").Do(); + Execute.Sql($"UPDATE {Cms.Core.Constants.DatabaseSchema.Tables.Macro} SET macroSource = '', macroType = 4").Do(); + Execute.Sql($"UPDATE {Cms.Core.Constants.DatabaseSchema.Tables.Macro} SET macroSource = macroXSLT, macroType = 4 WHERE macroXSLT != '' AND macroXSLT IS NOT NULL").Do(); + Execute.Sql($"UPDATE {Cms.Core.Constants.DatabaseSchema.Tables.Macro} SET macroSource = macroScriptAssembly, macroType = 4 WHERE macroScriptAssembly != '' AND macroScriptAssembly IS NOT NULL").Do(); + Execute.Sql($"UPDATE {Cms.Core.Constants.DatabaseSchema.Tables.Macro} SET macroSource = macroScriptType, macroType = 4 WHERE macroScriptType != '' AND macroScriptType IS NOT NULL").Do(); + Execute.Sql($"UPDATE {Cms.Core.Constants.DatabaseSchema.Tables.Macro} SET macroSource = macroPython, macroType = 7 WHERE macroPython != '' AND macroPython IS NOT NULL").Do(); //now apply constraints (NOT NULL) to new table foreach (var sql in sqls1) Execute.Sql(sql).Do(); foreach (var sql in sqls2) Execute.Sql(sql).Do(); //now remove these old columns - Delete.Column("macroXSLT").FromTable(Constants.DatabaseSchema.Tables.Macro).Do(); - Delete.Column("macroScriptAssembly").FromTable(Constants.DatabaseSchema.Tables.Macro).Do(); - Delete.Column("macroScriptType").FromTable(Constants.DatabaseSchema.Tables.Macro).Do(); - Delete.Column("macroPython").FromTable(Constants.DatabaseSchema.Tables.Macro).Do(); + Delete.Column("macroXSLT").FromTable(Cms.Core.Constants.DatabaseSchema.Tables.Macro).Do(); + Delete.Column("macroScriptAssembly").FromTable(Cms.Core.Constants.DatabaseSchema.Tables.Macro).Do(); + Delete.Column("macroScriptType").FromTable(Cms.Core.Constants.DatabaseSchema.Tables.Macro).Do(); + Delete.Column("macroPython").FromTable(Cms.Core.Constants.DatabaseSchema.Tables.Macro).Do(); } } } diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/RefactorVariantsModel.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/RefactorVariantsModel.cs index 6ddd49841d..f9efa5ec60 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/RefactorVariantsModel.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/RefactorVariantsModel.cs @@ -11,8 +11,8 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0 public override void Migrate() { - if (ColumnExists(Constants.DatabaseSchema.Tables.ContentVersionCultureVariation, "edited")) - Delete.Column("edited").FromTable(Constants.DatabaseSchema.Tables.ContentVersionCultureVariation).Do(); + if (ColumnExists(Cms.Core.Constants.DatabaseSchema.Tables.ContentVersionCultureVariation, "edited")) + Delete.Column("edited").FromTable(Cms.Core.Constants.DatabaseSchema.Tables.ContentVersionCultureVariation).Do(); // add available column diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/RenameLabelAndRichTextPropertyEditorAliases.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/RenameLabelAndRichTextPropertyEditorAliases.cs index 1252a26e68..7ed3be2859 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/RenameLabelAndRichTextPropertyEditorAliases.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/RenameLabelAndRichTextPropertyEditorAliases.cs @@ -13,8 +13,8 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0 public override void Migrate() { - MigratePropertyEditorAlias("Umbraco.TinyMCEv3", Constants.PropertyEditors.Aliases.TinyMce); - MigratePropertyEditorAlias("Umbraco.NoEdit", Constants.PropertyEditors.Aliases.Label); + MigratePropertyEditorAlias("Umbraco.TinyMCEv3", Cms.Core.Constants.PropertyEditors.Aliases.TinyMce); + MigratePropertyEditorAlias("Umbraco.NoEdit", Cms.Core.Constants.PropertyEditors.Aliases.Label); } private void MigratePropertyEditorAlias(string oldAlias, string newAlias) diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/RenameMediaVersionTable.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/RenameMediaVersionTable.cs index 2b27bdafe8..6eb2810770 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/RenameMediaVersionTable.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/RenameMediaVersionTable.cs @@ -11,7 +11,7 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0 public override void Migrate() { - Rename.Table("cmsMedia").To(Constants.DatabaseSchema.Tables.MediaVersion).Do(); + Rename.Table("cmsMedia").To(Cms.Core.Constants.DatabaseSchema.Tables.MediaVersion).Do(); // that is not supported on SqlCE //Rename.Column("versionId").OnTable(Constants.DatabaseSchema.Tables.MediaVersion).To("id").Do(); @@ -24,34 +24,34 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0 var versions = Database.Fetch($@"SELECT v.versionId, v.id FROM cmsContentVersion v JOIN umbracoNode n on v.contentId=n.id -WHERE n.nodeObjectType='{Constants.ObjectTypes.Media}'"); +WHERE n.nodeObjectType='{Cms.Core.Constants.ObjectTypes.Media}'"); foreach (var t in versions) - Execute.Sql($"UPDATE {Constants.DatabaseSchema.Tables.MediaVersion} SET id={t.id} WHERE versionId='{t.versionId}'").Do(); + Execute.Sql($"UPDATE {Cms.Core.Constants.DatabaseSchema.Tables.MediaVersion} SET id={t.id} WHERE versionId='{t.versionId}'").Do(); } else { - Database.Execute($@"UPDATE {Constants.DatabaseSchema.Tables.MediaVersion} SET id=v.id -FROM {Constants.DatabaseSchema.Tables.MediaVersion} m + Database.Execute($@"UPDATE {Cms.Core.Constants.DatabaseSchema.Tables.MediaVersion} SET id=v.id +FROM {Cms.Core.Constants.DatabaseSchema.Tables.MediaVersion} m JOIN cmsContentVersion v on m.versionId = v.versionId JOIN umbracoNode n on v.contentId=n.id -WHERE n.nodeObjectType='{Constants.ObjectTypes.Media}'"); +WHERE n.nodeObjectType='{Cms.Core.Constants.ObjectTypes.Media}'"); } foreach (var sql in sqls) Execute.Sql(sql).Do(); AddColumn("path", out sqls); - Execute.Sql($"UPDATE {Constants.DatabaseSchema.Tables.MediaVersion} SET path=mediaPath").Do(); + Execute.Sql($"UPDATE {Cms.Core.Constants.DatabaseSchema.Tables.MediaVersion} SET path=mediaPath").Do(); foreach (var sql in sqls) Execute.Sql(sql).Do(); // we had to run sqls to get the NULL constraints, but we need to get rid of most - Delete.KeysAndIndexes(Constants.DatabaseSchema.Tables.MediaVersion).Do(); + Delete.KeysAndIndexes(Cms.Core.Constants.DatabaseSchema.Tables.MediaVersion).Do(); - Delete.Column("mediaPath").FromTable(Constants.DatabaseSchema.Tables.MediaVersion).Do(); - Delete.Column("versionId").FromTable(Constants.DatabaseSchema.Tables.MediaVersion).Do(); - Delete.Column("nodeId").FromTable(Constants.DatabaseSchema.Tables.MediaVersion).Do(); + Delete.Column("mediaPath").FromTable(Cms.Core.Constants.DatabaseSchema.Tables.MediaVersion).Do(); + Delete.Column("versionId").FromTable(Cms.Core.Constants.DatabaseSchema.Tables.MediaVersion).Do(); + Delete.Column("nodeId").FromTable(Cms.Core.Constants.DatabaseSchema.Tables.MediaVersion).Do(); } } } diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/RenameUmbracoDomainsTable.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/RenameUmbracoDomainsTable.cs index 0543b57fcc..2a2a30402b 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/RenameUmbracoDomainsTable.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/RenameUmbracoDomainsTable.cs @@ -8,7 +8,7 @@ public override void Migrate() { - Rename.Table("umbracoDomains").To(Constants.DatabaseSchema.Tables.Domain).Do(); + Rename.Table("umbracoDomains").To(Cms.Core.Constants.DatabaseSchema.Tables.Domain).Do(); } } } diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/SuperZero.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/SuperZero.cs index 8791cdc208..4a21e87297 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/SuperZero.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/SuperZero.cs @@ -33,7 +33,7 @@ Database.Execute("update umbracoUser2NodeNotify set userId=-1 where userId=0;"); Database.Execute("update umbracoNode set nodeUser=-1 where nodeUser=0;"); Database.Execute("update umbracoUserLogin set userId=-1 where userId=0;"); - Database.Execute($"update {Constants.DatabaseSchema.Tables.ContentVersion} set userId=-1 where userId=0;"); + Database.Execute($"update {Cms.Core.Constants.DatabaseSchema.Tables.ContentVersion} set userId=-1 where userId=0;"); Database.Execute("delete from umbracoUser where id=0;"); } } diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/TablesForScheduledPublishing.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/TablesForScheduledPublishing.cs index 2f7ffe8679..c5e96b4191 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/TablesForScheduledPublishing.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/TablesForScheduledPublishing.cs @@ -1,5 +1,6 @@ using NPoco; using System; +using Umbraco.Cms.Core.Models; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Dtos; @@ -52,7 +53,7 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0 Insert.IntoTable(ContentScheduleDto.TableName) .Row(new { id = Guid.NewGuid(), nodeId = s.Key, date = date, action = action }) .Do(); - } + } } } } diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/TagsMigration.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/TagsMigration.cs index d6a5380e31..2f7549b96d 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/TagsMigration.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/TagsMigration.cs @@ -12,11 +12,11 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0 public override void Migrate() { // alter columns => non-null - AlterColumn(Constants.DatabaseSchema.Tables.Tag, "group"); - AlterColumn(Constants.DatabaseSchema.Tables.Tag, "tag"); + AlterColumn(Cms.Core.Constants.DatabaseSchema.Tables.Tag, "group"); + AlterColumn(Cms.Core.Constants.DatabaseSchema.Tables.Tag, "tag"); // kill unused parentId column - Delete.Column("ParentId").FromTable(Constants.DatabaseSchema.Tables.Tag).Do(); + Delete.Column("ParentId").FromTable(Cms.Core.Constants.DatabaseSchema.Tables.Tag).Do(); } } } diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/TagsMigrationFix.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/TagsMigrationFix.cs index 057715269d..7cc9fd6554 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/TagsMigrationFix.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/TagsMigrationFix.cs @@ -9,8 +9,8 @@ public override void Migrate() { // kill unused parentId column, if it still exists - if (ColumnExists(Constants.DatabaseSchema.Tables.Tag, "ParentId")) - Delete.Column("ParentId").FromTable(Constants.DatabaseSchema.Tables.Tag).Do(); + if (ColumnExists(Cms.Core.Constants.DatabaseSchema.Tables.Tag, "ParentId")) + Delete.Column("ParentId").FromTable(Cms.Core.Constants.DatabaseSchema.Tables.Tag).Do(); } } } diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/UpdateDefaultMandatoryLanguage.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/UpdateDefaultMandatoryLanguage.cs index b965bc71d2..d728cc9175 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/UpdateDefaultMandatoryLanguage.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/UpdateDefaultMandatoryLanguage.cs @@ -12,7 +12,7 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0 public override void Migrate() { // add the new languages lock object - AddLockObjects.EnsureLockObject(Database, Constants.Locks.Languages, "Languages"); + AddLockObjects.EnsureLockObject(Database, Cms.Core.Constants.Locks.Languages, "Languages"); // get all existing languages var selectDtos = Sql() diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/UpdatePickerIntegerValuesToUdi.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/UpdatePickerIntegerValuesToUdi.cs index 7f7cf8474c..c91b6b279f 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/UpdatePickerIntegerValuesToUdi.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/UpdatePickerIntegerValuesToUdi.cs @@ -2,9 +2,10 @@ using System.Linq; using Newtonsoft.Json; using Newtonsoft.Json.Linq; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.Dtos; +using Umbraco.Extensions; namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0 { @@ -18,9 +19,9 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0 var sqlDataTypes = Sql() .Select() .From() - .Where(x => x.EditorAlias == Constants.PropertyEditors.Aliases.ContentPicker - || x.EditorAlias == Constants.PropertyEditors.Aliases.MediaPicker - || x.EditorAlias == Constants.PropertyEditors.Aliases.MultiNodeTreePicker); + .Where(x => x.EditorAlias == Cms.Core.Constants.PropertyEditors.Aliases.ContentPicker + || x.EditorAlias == Cms.Core.Constants.PropertyEditors.Aliases.MediaPicker + || x.EditorAlias == Cms.Core.Constants.PropertyEditors.Aliases.MultiNodeTreePicker); var dataTypes = Database.Fetch(sqlDataTypes).ToList(); @@ -28,8 +29,8 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0 { switch (datatype.EditorAlias) { - case Constants.PropertyEditors.Aliases.ContentPicker: - case Constants.PropertyEditors.Aliases.MediaPicker: + case Cms.Core.Constants.PropertyEditors.Aliases.ContentPicker: + case Cms.Core.Constants.PropertyEditors.Aliases.MediaPicker: { var config = JsonConvert.DeserializeObject(datatype.Configuration); var startNodeId = config.Value("startNodeId"); @@ -41,9 +42,9 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0 Sql().Select(x => x.UniqueId).From().Where(x => x.NodeId == intStartNode)); if (guid.HasValue) { - var udi = new GuidUdi(datatype.EditorAlias == Constants.PropertyEditors.Aliases.MediaPicker - ? Constants.UdiEntityType.Media - : Constants.UdiEntityType.Document, guid.Value); + var udi = new GuidUdi(datatype.EditorAlias == Cms.Core.Constants.PropertyEditors.Aliases.MediaPicker + ? Cms.Core.Constants.UdiEntityType.Media + : Cms.Core.Constants.UdiEntityType.Document, guid.Value); config["startNodeId"] = new JValue(udi.ToString()); } else @@ -55,7 +56,7 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0 break; } - case Constants.PropertyEditors.Aliases.MultiNodeTreePicker: + case Cms.Core.Constants.PropertyEditors.Aliases.MultiNodeTreePicker: { var config = JsonConvert.DeserializeObject(datatype.Configuration); var startNodeConfig = config.Value("startNode"); @@ -76,13 +77,13 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0 switch (objectType.ToLowerInvariant()) { case "content": - entityType = Constants.UdiEntityType.Document; + entityType = Cms.Core.Constants.UdiEntityType.Document; break; case "media": - entityType = Constants.UdiEntityType.Media; + entityType = Cms.Core.Constants.UdiEntityType.Media; break; case "member": - entityType = Constants.UdiEntityType.Member; + entityType = Cms.Core.Constants.UdiEntityType.Member; break; } diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/UserForeignKeys.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/UserForeignKeys.cs index f16c9cd761..6d89e1a412 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/UserForeignKeys.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/UserForeignKeys.cs @@ -16,13 +16,13 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0 // first allow NULL-able Alter.Table(ContentVersionCultureVariationDto.TableName).AlterColumn("availableUserId").AsInt32().Nullable().Do(); Alter.Table(ContentVersionDto.TableName).AlterColumn("userId").AsInt32().Nullable().Do(); - Alter.Table(Constants.DatabaseSchema.Tables.Log).AlterColumn("userId").AsInt32().Nullable().Do(); + Alter.Table(Cms.Core.Constants.DatabaseSchema.Tables.Log).AlterColumn("userId").AsInt32().Nullable().Do(); Alter.Table(NodeDto.TableName).AlterColumn("nodeUser").AsInt32().Nullable().Do(); // then we can update any non existing users to NULL Execute.Sql($"UPDATE {ContentVersionCultureVariationDto.TableName} SET availableUserId = NULL WHERE availableUserId NOT IN (SELECT id FROM {UserDto.TableName})").Do(); Execute.Sql($"UPDATE {ContentVersionDto.TableName} SET userId = NULL WHERE userId NOT IN (SELECT id FROM {UserDto.TableName})").Do(); - Execute.Sql($"UPDATE {Constants.DatabaseSchema.Tables.Log} SET userId = NULL WHERE userId NOT IN (SELECT id FROM {UserDto.TableName})").Do(); + Execute.Sql($"UPDATE {Cms.Core.Constants.DatabaseSchema.Tables.Log} SET userId = NULL WHERE userId NOT IN (SELECT id FROM {UserDto.TableName})").Do(); Execute.Sql($"UPDATE {NodeDto.TableName} SET nodeUser = NULL WHERE nodeUser NOT IN (SELECT id FROM {UserDto.TableName})").Do(); // FKs will be created after migrations diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/VariantsMigration.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/VariantsMigration.cs index adc451ef6a..c799b566ef 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/VariantsMigration.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/VariantsMigration.cs @@ -25,20 +25,20 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0 MigrateContent(); MigrateVersions(); - if (Database.Fetch($@"SELECT {Constants.DatabaseSchema.Tables.ContentVersion}.nodeId, COUNT({Constants.DatabaseSchema.Tables.ContentVersion}.id) -FROM {Constants.DatabaseSchema.Tables.ContentVersion} -JOIN {Constants.DatabaseSchema.Tables.DocumentVersion} ON {Constants.DatabaseSchema.Tables.ContentVersion}.id={Constants.DatabaseSchema.Tables.DocumentVersion}.id -WHERE {Constants.DatabaseSchema.Tables.DocumentVersion}.published=1 -GROUP BY {Constants.DatabaseSchema.Tables.ContentVersion}.nodeId -HAVING COUNT({Constants.DatabaseSchema.Tables.ContentVersion}.id) > 1").Any()) + if (Database.Fetch($@"SELECT {Cms.Core.Constants.DatabaseSchema.Tables.ContentVersion}.nodeId, COUNT({Cms.Core.Constants.DatabaseSchema.Tables.ContentVersion}.id) +FROM {Cms.Core.Constants.DatabaseSchema.Tables.ContentVersion} +JOIN {Cms.Core.Constants.DatabaseSchema.Tables.DocumentVersion} ON {Cms.Core.Constants.DatabaseSchema.Tables.ContentVersion}.id={Cms.Core.Constants.DatabaseSchema.Tables.DocumentVersion}.id +WHERE {Cms.Core.Constants.DatabaseSchema.Tables.DocumentVersion}.published=1 +GROUP BY {Cms.Core.Constants.DatabaseSchema.Tables.ContentVersion}.nodeId +HAVING COUNT({Cms.Core.Constants.DatabaseSchema.Tables.ContentVersion}.id) > 1").Any()) { Debugger.Break(); throw new Exception("Migration failed: duplicate 'published' document versions."); } if (Database.Fetch($@"SELECT v1.nodeId, v1.id, COUNT(v2.id) -FROM {Constants.DatabaseSchema.Tables.ContentVersion} v1 -LEFT JOIN {Constants.DatabaseSchema.Tables.ContentVersion} v2 ON v1.nodeId=v2.nodeId AND v2.[current]=1 +FROM {Cms.Core.Constants.DatabaseSchema.Tables.ContentVersion} v1 +LEFT JOIN {Cms.Core.Constants.DatabaseSchema.Tables.ContentVersion} v2 ON v1.nodeId=v2.nodeId AND v2.[current]=1 GROUP BY v1.nodeId, v1.id HAVING COUNT(v2.id) <> 1").Any()) { @@ -50,7 +50,7 @@ HAVING COUNT(v2.id) <> 1").Any()) private void MigratePropertyData() { // if the table has already been renamed, we're done - if (TableExists(Constants.DatabaseSchema.Tables.PropertyData)) + if (TableExists(Cms.Core.Constants.DatabaseSchema.Tables.PropertyData)) return; // add columns @@ -99,7 +99,7 @@ INNER JOIN {PreTables.PropertyData} ON {PreTables.ContentVersion}.versionId = {P Delete.Column("contentNodeId").FromTable(PreTables.PropertyData).Do(); // rename table - Rename.Table(PreTables.PropertyData).To(Constants.DatabaseSchema.Tables.PropertyData).Do(); + Rename.Table(PreTables.PropertyData).To(Cms.Core.Constants.DatabaseSchema.Tables.PropertyData).Do(); } private void CreatePropertyDataIndexes() @@ -115,7 +115,7 @@ INNER JOIN {PreTables.PropertyData} ON {PreTables.ContentVersion}.versionId = {P .OnColumn("propertyTypeId").Ascending() .OnColumn("languageId").Ascending() .OnColumn("segment").Ascending() - .Do(); + .Do(); } private void MigrateContentAndPropertyTypes() @@ -129,7 +129,7 @@ INNER JOIN {PreTables.PropertyData} ON {PreTables.ContentVersion}.versionId = {P private void MigrateContent() { // if the table has already been renamed, we're done - if (TableExists(Constants.DatabaseSchema.Tables.Content)) + if (TableExists(Cms.Core.Constants.DatabaseSchema.Tables.Content)) return; // rename columns @@ -141,21 +141,21 @@ INNER JOIN {PreTables.PropertyData} ON {PreTables.ContentVersion}.versionId = {P Delete.Column("pk").FromTable(PreTables.Content).Do(); // rename table - Rename.Table(PreTables.Content).To(Constants.DatabaseSchema.Tables.Content).Do(); + Rename.Table(PreTables.Content).To(Cms.Core.Constants.DatabaseSchema.Tables.Content).Do(); } private void MigrateVersions() { // if the table has already been renamed, we're done - if (TableExists(Constants.DatabaseSchema.Tables.ContentVersion)) + if (TableExists(Cms.Core.Constants.DatabaseSchema.Tables.ContentVersion)) return; // if the table already exists, we're done - if (TableExists(Constants.DatabaseSchema.Tables.DocumentVersion)) + if (TableExists(Cms.Core.Constants.DatabaseSchema.Tables.DocumentVersion)) return; // if the table has already been renamed, we're done - if (TableExists(Constants.DatabaseSchema.Tables.Document)) + if (TableExists(Cms.Core.Constants.DatabaseSchema.Tables.Document)) return; // do it all at once @@ -201,7 +201,7 @@ FROM {PreTables.ContentVersion} v INNER JOIN {PreTables.Document} d ON d.version // SQLCE does not support UPDATE...FROM var otherContent = Database.Fetch($@"SELECT cver.versionId, n.text FROM {PreTables.ContentVersion} cver -JOIN {SqlSyntax.GetQuotedTableName(Constants.DatabaseSchema.Tables.Node)} n ON cver.nodeId=n.id +JOIN {SqlSyntax.GetQuotedTableName(Cms.Core.Constants.DatabaseSchema.Tables.Node)} n ON cver.nodeId=n.id WHERE cver.versionId NOT IN (SELECT versionId FROM {SqlSyntax.GetQuotedTableName(PreTables.Document)})"); foreach (var t in otherContent) @@ -212,7 +212,7 @@ WHERE cver.versionId NOT IN (SELECT versionId FROM {SqlSyntax.GetQuotedTableName { Database.Execute($@"UPDATE {PreTables.ContentVersion} SET text=n.text, {SqlSyntax.GetQuotedColumnName("current")}=1, userId=0 FROM {PreTables.ContentVersion} cver -JOIN {SqlSyntax.GetQuotedTableName(Constants.DatabaseSchema.Tables.Node)} n ON cver.nodeId=n.id +JOIN {SqlSyntax.GetQuotedTableName(Cms.Core.Constants.DatabaseSchema.Tables.Node)} n ON cver.nodeId=n.id WHERE cver.versionId NOT IN (SELECT versionId FROM {SqlSyntax.GetQuotedTableName(PreTables.Document)})"); } @@ -220,7 +220,7 @@ WHERE cver.versionId NOT IN (SELECT versionId FROM {SqlSyntax.GetQuotedTableName Create.Table(withoutKeysAndIndexes: true).Do(); // every document row becomes a document version - Database.Execute($@"INSERT INTO {SqlSyntax.GetQuotedTableName(Constants.DatabaseSchema.Tables.DocumentVersion)} (id, templateId, published) + Database.Execute($@"INSERT INTO {SqlSyntax.GetQuotedTableName(Cms.Core.Constants.DatabaseSchema.Tables.DocumentVersion)} (id, templateId, published) SELECT cver.id, doc.templateId, doc.published FROM {SqlSyntax.GetQuotedTableName(PreTables.ContentVersion)} cver JOIN {SqlSyntax.GetQuotedTableName(PreTables.Document)} doc ON doc.nodeId=cver.nodeId AND doc.versionId=cver.versionId"); @@ -237,7 +237,7 @@ JOIN {SqlSyntax.GetQuotedTableName(PreTables.ContentVersion)} cver ON doc.nodeId WHERE doc.newest=1 AND doc.published=1"); Database.Execute($@" -INSERT INTO {SqlSyntax.GetQuotedTableName(Constants.DatabaseSchema.Tables.DocumentVersion)} (id, templateId, published) +INSERT INTO {SqlSyntax.GetQuotedTableName(Cms.Core.Constants.DatabaseSchema.Tables.DocumentVersion)} (id, templateId, published) SELECT cverNew.id, doc.templateId, 0 FROM {SqlSyntax.GetQuotedTableName(PreTables.Document)} doc JOIN {SqlSyntax.GetQuotedTableName(PreTables.ContentVersion)} cverNew ON doc.nodeId = cverNew.nodeId @@ -259,7 +259,7 @@ WHERE versionId NOT IN (SELECT (versionId) FROM {PreTables.ContentVersion} WHERE // ensure that documents with a published version are marked as published Database.Execute($@"UPDATE {PreTables.Document} SET published=1 WHERE nodeId IN ( -SELECT nodeId FROM {PreTables.ContentVersion} cv INNER JOIN {Constants.DatabaseSchema.Tables.DocumentVersion} dv ON dv.id = cv.id WHERE dv.published=1)"); +SELECT nodeId FROM {PreTables.ContentVersion} cv INNER JOIN {Cms.Core.Constants.DatabaseSchema.Tables.DocumentVersion} dv ON dv.id = cv.id WHERE dv.published=1)"); // drop some document columns Delete.Column("text").FromTable(PreTables.Document).Do(); @@ -286,12 +286,12 @@ SELECT nodeId FROM {PreTables.ContentVersion} cv INNER JOIN {Constants.DatabaseS var temp = Database.Fetch($@"SELECT n.id, v1.intValue intValue1, v1.decimalValue decimalValue1, v1.dateValue dateValue1, v1.varcharValue varcharValue1, v1.textValue textValue1, v2.intValue intValue2, v2.decimalValue decimalValue2, v2.dateValue dateValue2, v2.varcharValue varcharValue2, v2.textValue textValue2 -FROM {Constants.DatabaseSchema.Tables.Node} n +FROM {Cms.Core.Constants.DatabaseSchema.Tables.Node} n JOIN {PreTables.ContentVersion} cv1 ON n.id=cv1.nodeId AND cv1.{SqlSyntax.GetQuotedColumnName("current")}=1 -JOIN {Constants.DatabaseSchema.Tables.PropertyData} v1 ON cv1.id=v1.versionId +JOIN {Cms.Core.Constants.DatabaseSchema.Tables.PropertyData} v1 ON cv1.id=v1.versionId JOIN {PreTables.ContentVersion} cv2 ON n.id=cv2.nodeId -JOIN {Constants.DatabaseSchema.Tables.DocumentVersion} dv ON cv2.id=dv.id AND dv.published=1 -JOIN {Constants.DatabaseSchema.Tables.PropertyData} v2 ON cv2.id=v2.versionId +JOIN {Cms.Core.Constants.DatabaseSchema.Tables.DocumentVersion} dv ON cv2.id=dv.id AND dv.published=1 +JOIN {Cms.Core.Constants.DatabaseSchema.Tables.PropertyData} v2 ON cv2.id=v2.versionId WHERE v1.propertyTypeId=v2.propertyTypeId AND (v1.languageId=v2.languageId OR (v1.languageId IS NULL AND v2.languageId IS NULL)) AND (v1.segment=v2.segment OR (v1.segment IS NULL AND v2.segment IS NULL))"); @@ -306,8 +306,8 @@ AND (v1.segment=v2.segment OR (v1.segment IS NULL AND v2.segment IS NULL))"); Delete.Column("versionId").FromTable(PreTables.ContentVersion).Do(); // rename tables - Rename.Table(PreTables.ContentVersion).To(Constants.DatabaseSchema.Tables.ContentVersion).Do(); - Rename.Table(PreTables.Document).To(Constants.DatabaseSchema.Tables.Document).Do(); + Rename.Table(PreTables.ContentVersion).To(Cms.Core.Constants.DatabaseSchema.Tables.ContentVersion).Do(); + Rename.Table(PreTables.Document).To(Cms.Core.Constants.DatabaseSchema.Tables.Document).Do(); } private static class PreTables diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_1_0/ConvertTinyMceAndGridMediaUrlsToLocalLink.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_1_0/ConvertTinyMceAndGridMediaUrlsToLocalLink.cs index 052b72ca26..cb2ce137db 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_1_0/ConvertTinyMceAndGridMediaUrlsToLocalLink.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_1_0/ConvertTinyMceAndGridMediaUrlsToLocalLink.cs @@ -4,11 +4,12 @@ using System.Linq; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Linq; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Migrations.PostMigrations; using Umbraco.Core.Migrations.Upgrade.V_8_0_0.Models; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.Dtos; -using Umbraco.Core.Services; +using Umbraco.Extensions; namespace Umbraco.Core.Migrations.Upgrade.V_8_1_0 { @@ -33,8 +34,8 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_1_0 .InnerJoin().On((left, right) => left.PropertyTypeId == right.Id) .InnerJoin().On((left, right) => left.DataTypeId == right.NodeId) .Where(x => - x.EditorAlias == Constants.PropertyEditors.Aliases.TinyMce || - x.EditorAlias == Constants.PropertyEditors.Aliases.Grid); + x.EditorAlias == Cms.Core.Constants.PropertyEditors.Aliases.TinyMce || + x.EditorAlias == Cms.Core.Constants.PropertyEditors.Aliases.Grid); var properties = Database.Fetch(sqlPropertyData); @@ -46,7 +47,7 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_1_0 bool propertyChanged = false; - if (property.PropertyTypeDto.DataTypeDto.EditorAlias == Constants.PropertyEditors.Aliases.Grid) + if (property.PropertyTypeDto.DataTypeDto.EditorAlias == Cms.Core.Constants.PropertyEditors.Aliases.Grid) { try { diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_6_0/AddMainDomLock.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_6_0/AddMainDomLock.cs index 6ca493ac7e..4b26a991fc 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_6_0/AddMainDomLock.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_6_0/AddMainDomLock.cs @@ -10,7 +10,7 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_6_0 public override void Migrate() { - Database.Insert(Constants.DatabaseSchema.Tables.Lock, "id", false, new LockDto { Id = Constants.Locks.MainDom, Name = "MainDom" }); + Database.Insert(Cms.Core.Constants.DatabaseSchema.Tables.Lock, "id", false, new LockDto { Id = Cms.Core.Constants.Locks.MainDom, Name = "MainDom" }); } } } diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_6_0/AddNewRelationTypes.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_6_0/AddNewRelationTypes.cs index 2e2e00a9bc..3b784716f9 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_6_0/AddNewRelationTypes.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_6_0/AddNewRelationTypes.cs @@ -14,18 +14,18 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_6_0 public override void Migrate() { CreateRelation( - Constants.Conventions.RelationTypes.RelatedMediaAlias, - Constants.Conventions.RelationTypes.RelatedMediaName); + Cms.Core.Constants.Conventions.RelationTypes.RelatedMediaAlias, + Cms.Core.Constants.Conventions.RelationTypes.RelatedMediaName); CreateRelation( - Constants.Conventions.RelationTypes.RelatedDocumentAlias, - Constants.Conventions.RelationTypes.RelatedDocumentName); + Cms.Core.Constants.Conventions.RelationTypes.RelatedDocumentAlias, + Cms.Core.Constants.Conventions.RelationTypes.RelatedDocumentName); } private void CreateRelation(string alias, string name) { var uniqueId = DatabaseDataCreator.CreateUniqueRelationTypeId(alias ,name); //this is the same as how it installs so everything is consistent - Insert.IntoTable(Constants.DatabaseSchema.Tables.RelationType) + Insert.IntoTable(Cms.Core.Constants.DatabaseSchema.Tables.RelationType) .Row(new { typeUniqueId = uniqueId, dual = 0, name, alias }) .Do(); } diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_6_0/UpdateRelationTypeTable.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_6_0/UpdateRelationTypeTable.cs index c79f43d20f..e681197132 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_6_0/UpdateRelationTypeTable.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_6_0/UpdateRelationTypeTable.cs @@ -12,8 +12,8 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_6_0 public override void Migrate() { - Alter.Table(Constants.DatabaseSchema.Tables.RelationType).AlterColumn("parentObjectType").AsGuid().Nullable().Do(); - Alter.Table(Constants.DatabaseSchema.Tables.RelationType).AlterColumn("childObjectType").AsGuid().Nullable().Do(); + Alter.Table(Cms.Core.Constants.DatabaseSchema.Tables.RelationType).AlterColumn("parentObjectType").AsGuid().Nullable().Do(); + Alter.Table(Cms.Core.Constants.DatabaseSchema.Tables.RelationType).AlterColumn("childObjectType").AsGuid().Nullable().Do(); //TODO: We have to update this field to ensure it's not null, we can just copy across the name since that is not nullable @@ -21,14 +21,14 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_6_0 if (IndexExists("IX_umbracoRelationType_alias")) Delete .Index("IX_umbracoRelationType_alias") - .OnTable(Constants.DatabaseSchema.Tables.RelationType) + .OnTable(Cms.Core.Constants.DatabaseSchema.Tables.RelationType) .Do(); //change the column to non nullable - Alter.Table(Constants.DatabaseSchema.Tables.RelationType).AlterColumn("alias").AsString(100).NotNullable().Do(); + Alter.Table(Cms.Core.Constants.DatabaseSchema.Tables.RelationType).AlterColumn("alias").AsString(100).NotNullable().Do(); //re-create the index Create .Index("IX_umbracoRelationType_alias") - .OnTable(Constants.DatabaseSchema.Tables.RelationType) + .OnTable(Cms.Core.Constants.DatabaseSchema.Tables.RelationType) .OnColumn("alias") .Ascending() .WithOptions().Unique().WithOptions().NonClustered() diff --git a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_9_0/ExternalLoginTableUserData.cs b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_9_0/ExternalLoginTableUserData.cs index 45bc1c620b..9e7ed68114 100644 --- a/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_9_0/ExternalLoginTableUserData.cs +++ b/src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_9_0/ExternalLoginTableUserData.cs @@ -14,7 +14,7 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_9_0 /// public override void Migrate() { - AddColumn(Constants.DatabaseSchema.Tables.ExternalLogin, "userData"); + AddColumn(Cms.Core.Constants.DatabaseSchema.Tables.ExternalLogin, "userData"); } } } diff --git a/src/Umbraco.Infrastructure/Models/Blocks/BlockEditorData.cs b/src/Umbraco.Infrastructure/Models/Blocks/BlockEditorData.cs index d8186f0dfa..14f5830417 100644 --- a/src/Umbraco.Infrastructure/Models/Blocks/BlockEditorData.cs +++ b/src/Umbraco.Infrastructure/Models/Blocks/BlockEditorData.cs @@ -1,6 +1,7 @@ using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; +using Umbraco.Cms.Core.Models.Blocks; namespace Umbraco.Core.Models.Blocks { diff --git a/src/Umbraco.Infrastructure/Models/Blocks/BlockEditorDataConverter.cs b/src/Umbraco.Infrastructure/Models/Blocks/BlockEditorDataConverter.cs index 802e8c2ee3..a05b1b7803 100644 --- a/src/Umbraco.Infrastructure/Models/Blocks/BlockEditorDataConverter.cs +++ b/src/Umbraco.Infrastructure/Models/Blocks/BlockEditorDataConverter.cs @@ -2,6 +2,7 @@ using Newtonsoft.Json.Linq; using System.Linq; using System.Collections.Generic; +using Umbraco.Cms.Core.Models.Blocks; namespace Umbraco.Core.Models.Blocks { diff --git a/src/Umbraco.Infrastructure/Models/Blocks/BlockItemData.cs b/src/Umbraco.Infrastructure/Models/Blocks/BlockItemData.cs index 4459341adc..693ce1ea8e 100644 --- a/src/Umbraco.Infrastructure/Models/Blocks/BlockItemData.cs +++ b/src/Umbraco.Infrastructure/Models/Blocks/BlockItemData.cs @@ -1,6 +1,8 @@ using Newtonsoft.Json; using System; using System.Collections.Generic; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models; using Umbraco.Core.Serialization; namespace Umbraco.Core.Models.Blocks diff --git a/src/Umbraco.Infrastructure/Models/Blocks/BlockListEditorDataConverter.cs b/src/Umbraco.Infrastructure/Models/Blocks/BlockListEditorDataConverter.cs index 23f69922d9..72e2c0b027 100644 --- a/src/Umbraco.Infrastructure/Models/Blocks/BlockListEditorDataConverter.cs +++ b/src/Umbraco.Infrastructure/Models/Blocks/BlockListEditorDataConverter.cs @@ -1,6 +1,7 @@ using Newtonsoft.Json.Linq; using System.Linq; using System.Collections.Generic; +using Umbraco.Cms.Core.Models.Blocks; namespace Umbraco.Core.Models.Blocks { @@ -9,7 +10,7 @@ namespace Umbraco.Core.Models.Blocks /// public class BlockListEditorDataConverter : BlockEditorDataConverter { - public BlockListEditorDataConverter() : base(Constants.PropertyEditors.Aliases.BlockList) + public BlockListEditorDataConverter() : base(Cms.Core.Constants.PropertyEditors.Aliases.BlockList) { } diff --git a/src/Umbraco.Infrastructure/Models/Blocks/BlockListLayoutItem.cs b/src/Umbraco.Infrastructure/Models/Blocks/BlockListLayoutItem.cs index 5de44e16c1..18c880bd16 100644 --- a/src/Umbraco.Infrastructure/Models/Blocks/BlockListLayoutItem.cs +++ b/src/Umbraco.Infrastructure/Models/Blocks/BlockListLayoutItem.cs @@ -1,4 +1,5 @@ using Newtonsoft.Json; +using Umbraco.Cms.Core; using Umbraco.Core.Serialization; namespace Umbraco.Core.Models.Blocks diff --git a/src/Umbraco.Infrastructure/Models/Mapping/EntityMapDefinition.cs b/src/Umbraco.Infrastructure/Models/Mapping/EntityMapDefinition.cs index 3663095739..363ee3958c 100644 --- a/src/Umbraco.Infrastructure/Models/Mapping/EntityMapDefinition.cs +++ b/src/Umbraco.Infrastructure/Models/Mapping/EntityMapDefinition.cs @@ -1,13 +1,16 @@ using System; using System.Collections.Generic; using Examine; -using Umbraco.Core; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Models.Membership; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Mapping; +using Umbraco.Cms.Core.Models.Membership; using Umbraco.Examine; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web.Models.Mapping { diff --git a/src/Umbraco.Infrastructure/Models/PathValidationExtensions.cs b/src/Umbraco.Infrastructure/Models/PathValidationExtensions.cs index f6ed96fb99..966efda4b7 100644 --- a/src/Umbraco.Infrastructure/Models/PathValidationExtensions.cs +++ b/src/Umbraco.Infrastructure/Models/PathValidationExtensions.cs @@ -1,8 +1,10 @@ using System; using System.IO; using Microsoft.Extensions.Logging; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models.Entities; using Umbraco.Core.Persistence.Dtos; +using Umbraco.Extensions; namespace Umbraco.Core.Models { diff --git a/src/Umbraco.Infrastructure/ObjectJsonExtensions.cs b/src/Umbraco.Infrastructure/ObjectJsonExtensions.cs index 029f7ed502..0ab1f8c6fd 100644 --- a/src/Umbraco.Infrastructure/ObjectJsonExtensions.cs +++ b/src/Umbraco.Infrastructure/ObjectJsonExtensions.cs @@ -9,7 +9,7 @@ using System.Reflection; using System.Runtime.CompilerServices; using System.Xml; using Newtonsoft.Json; -using Umbraco.Core.Collections; +using Umbraco.Cms.Core; namespace Umbraco.Core { diff --git a/src/Umbraco.Infrastructure/Packaging/PackageDataInstallation.cs b/src/Umbraco.Infrastructure/Packaging/PackageDataInstallation.cs index f4c3326769..3ecf39f4e7 100644 --- a/src/Umbraco.Infrastructure/Packaging/PackageDataInstallation.cs +++ b/src/Umbraco.Infrastructure/Packaging/PackageDataInstallation.cs @@ -7,16 +7,19 @@ using System.Xml.Linq; using System.Xml.XPath; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; -using Umbraco.Core.Collections; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Models.Packaging; -using Umbraco.Core.PropertyEditors; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Collections; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Packaging; +using Umbraco.Cms.Core.Packaging; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; using Umbraco.Core.Scoping; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Umbraco.Extensions; namespace Umbraco.Core.Packaging { @@ -481,11 +484,11 @@ namespace Umbraco.Core.Packaging case IMediaType m: if (parent is null) { - return new Umbraco.Core.Models.Media(name, parentId, m) { Key = key, Level = level, SortOrder = sortOrder, } as T; + return new Media(name, parentId, m) { Key = key, Level = level, SortOrder = sortOrder, } as T; } else { - return new Umbraco.Core.Models.Media(name, (IMedia)parent, m) { Key = key, Level = level, SortOrder = sortOrder, } as T; + return new Media(name, (IMedia)parent, m) { Key = key, Level = level, SortOrder = sortOrder, } as T; } default: @@ -923,7 +926,7 @@ namespace Umbraco.Core.Packaging property.Element("Name").Value, dataTypeDefinitionId, property.Element("Type").Value.Trim()); //convert to a label! - dataTypeDefinition = _dataTypeService.GetByEditorAlias(Constants.PropertyEditors.Aliases.Label).FirstOrDefault(); + dataTypeDefinition = _dataTypeService.GetByEditorAlias(Cms.Core.Constants.PropertyEditors.Aliases.Label).FirstOrDefault(); //if for some odd reason this isn't there then ignore if (dataTypeDefinition == null) continue; } @@ -1482,7 +1485,7 @@ namespace Umbraco.Core.Packaging private string ViewPath(string alias) { - return Constants.SystemDirectories.MvcViews + "/" + alias.Replace(" ", "") + ".cshtml"; + return Cms.Core.Constants.SystemDirectories.MvcViews + "/" + alias.Replace(" ", "") + ".cshtml"; } #endregion diff --git a/src/Umbraco.Infrastructure/Packaging/PackageInstallation.cs b/src/Umbraco.Infrastructure/Packaging/PackageInstallation.cs index df8a58fc8d..3b3ccf2f0d 100644 --- a/src/Umbraco.Infrastructure/Packaging/PackageInstallation.cs +++ b/src/Umbraco.Infrastructure/Packaging/PackageInstallation.cs @@ -3,8 +3,10 @@ using System.Collections.Generic; using System.IO; using System.Linq; using System.Xml.Linq; -using Umbraco.Core.Hosting; -using Umbraco.Core.Models.Packaging; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Models.Packaging; +using Umbraco.Cms.Core.Packaging; +using Umbraco.Extensions; namespace Umbraco.Core.Packaging { diff --git a/src/Umbraco.Infrastructure/Persistence/BasicBulkSqlInsertProvider.cs b/src/Umbraco.Infrastructure/Persistence/BasicBulkSqlInsertProvider.cs index b41546668f..81d70c6fb6 100644 --- a/src/Umbraco.Infrastructure/Persistence/BasicBulkSqlInsertProvider.cs +++ b/src/Umbraco.Infrastructure/Persistence/BasicBulkSqlInsertProvider.cs @@ -8,7 +8,7 @@ namespace Umbraco.Core.Persistence /// public class BasicBulkSqlInsertProvider : IBulkSqlInsertProvider { - public string ProviderName => Constants.DatabaseProviders.SqlServer; + public string ProviderName => Cms.Core.Constants.DatabaseProviders.SqlServer; public int BulkInsertRecords(IUmbracoDatabase database, IEnumerable records) { diff --git a/src/Umbraco.Infrastructure/Persistence/DatabaseModelDefinitions/DefinitionFactory.cs b/src/Umbraco.Infrastructure/Persistence/DatabaseModelDefinitions/DefinitionFactory.cs index 5925e58afc..06cdcfed9e 100644 --- a/src/Umbraco.Infrastructure/Persistence/DatabaseModelDefinitions/DefinitionFactory.cs +++ b/src/Umbraco.Infrastructure/Persistence/DatabaseModelDefinitions/DefinitionFactory.cs @@ -1,10 +1,11 @@ using System; -using System.Data; using System.Linq; using System.Reflection; using NPoco; +using Umbraco.Cms.Core; using Umbraco.Core.Persistence.DatabaseAnnotations; using Umbraco.Core.Persistence.SqlSyntax; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence.DatabaseModelDefinitions { @@ -155,7 +156,7 @@ namespace Umbraco.Core.Persistence.DatabaseModelDefinitions Name = indexName, IndexType = attribute.IndexType, ColumnName = columnName, - TableName = tableName, + TableName = tableName, }; if (string.IsNullOrEmpty(attribute.ForColumns) == false) diff --git a/src/Umbraco.Infrastructure/Persistence/DatabaseModelDefinitions/IndexColumnDefinition.cs b/src/Umbraco.Infrastructure/Persistence/DatabaseModelDefinitions/IndexColumnDefinition.cs index 3638ca9520..ce5b77cd1f 100644 --- a/src/Umbraco.Infrastructure/Persistence/DatabaseModelDefinitions/IndexColumnDefinition.cs +++ b/src/Umbraco.Infrastructure/Persistence/DatabaseModelDefinitions/IndexColumnDefinition.cs @@ -1,4 +1,6 @@ -namespace Umbraco.Core.Persistence.DatabaseModelDefinitions +using Umbraco.Cms.Core; + +namespace Umbraco.Core.Persistence.DatabaseModelDefinitions { public class IndexColumnDefinition { diff --git a/src/Umbraco.Infrastructure/Persistence/DbConnectionExtensions.cs b/src/Umbraco.Infrastructure/Persistence/DbConnectionExtensions.cs index 82832a3627..dec77c6607 100644 --- a/src/Umbraco.Infrastructure/Persistence/DbConnectionExtensions.cs +++ b/src/Umbraco.Infrastructure/Persistence/DbConnectionExtensions.cs @@ -1,11 +1,12 @@ using System; using System.Data; using System.Data.Common; -using System.Data.SqlClient; using System.Linq; using Microsoft.Extensions.Logging; using StackExchange.Profiling.Data; +using Umbraco.Cms.Core; using Umbraco.Core.Persistence.FaultHandling; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence { @@ -20,10 +21,10 @@ namespace Umbraco.Core.Persistence //this dictionary is case insensitive && builder["Data source"].ToString().InvariantContains(".sdf")) { - return Constants.DbProviderNames.SqlCe; + return Cms.Core.Constants.DbProviderNames.SqlCe; } - return Constants.DbProviderNames.SqlServer; + return Cms.Core.Constants.DbProviderNames.SqlServer; } public static bool IsConnectionAvailable(string connectionString, DbProviderFactory factory) diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/AccessDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/AccessDto.cs index 98ca37fbf8..e612f58bec 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/AccessDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/AccessDto.cs @@ -6,7 +6,7 @@ using Umbraco.Core.Persistence.DatabaseModelDefinitions; namespace Umbraco.Core.Persistence.Dtos { - [TableName(Constants.DatabaseSchema.Tables.Access)] + [TableName(Cms.Core.Constants.DatabaseSchema.Tables.Access)] [PrimaryKey("id", AutoIncrement = false)] [ExplicitColumns] internal class AccessDto diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/AccessRuleDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/AccessRuleDto.cs index 6ec6104581..8abdf46fd3 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/AccessRuleDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/AccessRuleDto.cs @@ -5,7 +5,7 @@ using Umbraco.Core.Persistence.DatabaseModelDefinitions; namespace Umbraco.Core.Persistence.Dtos { - [TableName(Constants.DatabaseSchema.Tables.AccessRule)] + [TableName(Cms.Core.Constants.DatabaseSchema.Tables.AccessRule)] [PrimaryKey("id", AutoIncrement = false)] [ExplicitColumns] internal class AccessRuleDto diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/AuditEntryDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/AuditEntryDto.cs index 27eeef8e56..67e28dacea 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/AuditEntryDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/AuditEntryDto.cs @@ -5,7 +5,7 @@ using Umbraco.Core.Persistence.DatabaseModelDefinitions; namespace Umbraco.Core.Persistence.Dtos { - [TableName(Constants.DatabaseSchema.Tables.AuditEntry)] + [TableName(Cms.Core.Constants.DatabaseSchema.Tables.AuditEntry)] [PrimaryKey("id")] [ExplicitColumns] internal class AuditEntryDto diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/CacheInstructionDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/CacheInstructionDto.cs index 7c1af7b522..a368cdd7ad 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/CacheInstructionDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/CacheInstructionDto.cs @@ -4,7 +4,7 @@ using Umbraco.Core.Persistence.DatabaseAnnotations; namespace Umbraco.Core.Persistence.Dtos { - [TableName(Constants.DatabaseSchema.Tables.CacheInstruction)] + [TableName(Cms.Core.Constants.DatabaseSchema.Tables.CacheInstruction)] [PrimaryKey("id")] [ExplicitColumns] public class CacheInstructionDto diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/ConsentDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/ConsentDto.cs index b66cd2d020..dace1e28a0 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/ConsentDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/ConsentDto.cs @@ -5,7 +5,7 @@ using Umbraco.Core.Persistence.DatabaseModelDefinitions; namespace Umbraco.Core.Persistence.Dtos { - [TableName(Constants.DatabaseSchema.Tables.Consent)] + [TableName(Cms.Core.Constants.DatabaseSchema.Tables.Consent)] [PrimaryKey("id")] [ExplicitColumns] public class ConsentDto diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/ContentDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/ContentDto.cs index 56d87ad296..40efa6d7f8 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/ContentDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/ContentDto.cs @@ -8,7 +8,7 @@ namespace Umbraco.Core.Persistence.Dtos [ExplicitColumns] public class ContentDto { - public const string TableName = Constants.DatabaseSchema.Tables.Content; + public const string TableName = Cms.Core.Constants.DatabaseSchema.Tables.Content; [Column("nodeId")] [PrimaryKeyColumn(AutoIncrement = false)] diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/ContentNuDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/ContentNuDto.cs index 2aa450b7b9..412ccfb6a4 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/ContentNuDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/ContentNuDto.cs @@ -4,7 +4,7 @@ using Umbraco.Core.Persistence.DatabaseAnnotations; namespace Umbraco.Core.Persistence.Dtos { - [TableName(Constants.DatabaseSchema.Tables.NodeData)] + [TableName(Cms.Core.Constants.DatabaseSchema.Tables.NodeData)] [PrimaryKey("nodeId", AutoIncrement = false)] [ExplicitColumns] public class ContentNuDto diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/ContentScheduleDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/ContentScheduleDto.cs index 492a3d7cbd..297ace7fc4 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/ContentScheduleDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/ContentScheduleDto.cs @@ -9,7 +9,7 @@ namespace Umbraco.Core.Persistence.Dtos [ExplicitColumns] internal class ContentScheduleDto { - public const string TableName = Constants.DatabaseSchema.Tables.ContentSchedule; + public const string TableName = Cms.Core.Constants.DatabaseSchema.Tables.ContentSchedule; [Column("id")] [PrimaryKeyColumn(AutoIncrement = false)] diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/ContentType2ContentTypeDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/ContentType2ContentTypeDto.cs index 1ce9040f68..f8f7c4f512 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/ContentType2ContentTypeDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/ContentType2ContentTypeDto.cs @@ -3,7 +3,7 @@ using Umbraco.Core.Persistence.DatabaseAnnotations; namespace Umbraco.Core.Persistence.Dtos { - [TableName(Constants.DatabaseSchema.Tables.ElementTypeTree)] + [TableName(Cms.Core.Constants.DatabaseSchema.Tables.ElementTypeTree)] [ExplicitColumns] internal class ContentType2ContentTypeDto { diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/ContentTypeAllowedContentTypeDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/ContentTypeAllowedContentTypeDto.cs index b17b98bf6c..1651197b98 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/ContentTypeAllowedContentTypeDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/ContentTypeAllowedContentTypeDto.cs @@ -3,7 +3,7 @@ using Umbraco.Core.Persistence.DatabaseAnnotations; namespace Umbraco.Core.Persistence.Dtos { - [TableName(Constants.DatabaseSchema.Tables.ContentChildType)] + [TableName(Cms.Core.Constants.DatabaseSchema.Tables.ContentChildType)] [PrimaryKey("Id", AutoIncrement = false)] [ExplicitColumns] internal class ContentTypeAllowedContentTypeDto diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/ContentTypeDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/ContentTypeDto.cs index e7a14a26e2..4da4408c8b 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/ContentTypeDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/ContentTypeDto.cs @@ -8,7 +8,7 @@ namespace Umbraco.Core.Persistence.Dtos [ExplicitColumns] internal class ContentTypeDto { - public const string TableName = Constants.DatabaseSchema.Tables.ContentType; + public const string TableName = Cms.Core.Constants.DatabaseSchema.Tables.ContentType; [Column("pk")] [PrimaryKeyColumn(IdentitySeed = 535)] diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/ContentTypeTemplateDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/ContentTypeTemplateDto.cs index 8b2a267a99..90b156458a 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/ContentTypeTemplateDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/ContentTypeTemplateDto.cs @@ -3,7 +3,7 @@ using Umbraco.Core.Persistence.DatabaseAnnotations; namespace Umbraco.Core.Persistence.Dtos { - [TableName(Constants.DatabaseSchema.Tables.DocumentType)] + [TableName(Cms.Core.Constants.DatabaseSchema.Tables.DocumentType)] [PrimaryKey("contentTypeNodeId", AutoIncrement = false)] [ExplicitColumns] internal class ContentTypeTemplateDto diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/ContentVersionCultureVariationDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/ContentVersionCultureVariationDto.cs index 65d677d240..fa433c7292 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/ContentVersionCultureVariationDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/ContentVersionCultureVariationDto.cs @@ -9,7 +9,7 @@ namespace Umbraco.Core.Persistence.Dtos [ExplicitColumns] internal class ContentVersionCultureVariationDto { - public const string TableName = Constants.DatabaseSchema.Tables.ContentVersionCultureVariation; + public const string TableName = Cms.Core.Constants.DatabaseSchema.Tables.ContentVersionCultureVariation; private int? _updateUserId; [Column("id")] diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/ContentVersionDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/ContentVersionDto.cs index f5292357e8..f4f87acba1 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/ContentVersionDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/ContentVersionDto.cs @@ -10,7 +10,7 @@ namespace Umbraco.Core.Persistence.Dtos [ExplicitColumns] public class ContentVersionDto { - public const string TableName = Constants.DatabaseSchema.Tables.ContentVersion; + public const string TableName = Cms.Core.Constants.DatabaseSchema.Tables.ContentVersion; private int? _userId; [Column("id")] diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/DataTypeDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/DataTypeDto.cs index 24f0e07295..b032300945 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/DataTypeDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/DataTypeDto.cs @@ -3,7 +3,7 @@ using Umbraco.Core.Persistence.DatabaseAnnotations; namespace Umbraco.Core.Persistence.Dtos { - [TableName(Constants.DatabaseSchema.Tables.DataType)] + [TableName(Cms.Core.Constants.DatabaseSchema.Tables.DataType)] [PrimaryKey("nodeId", AutoIncrement = false)] [ExplicitColumns] internal class DataTypeDto diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/DictionaryDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/DictionaryDto.cs index d357e9adbc..b9fb81077c 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/DictionaryDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/DictionaryDto.cs @@ -10,7 +10,7 @@ namespace Umbraco.Core.Persistence.Dtos [ExplicitColumns] internal class DictionaryDto { - public const string TableName = Constants.DatabaseSchema.Tables.DictionaryEntry; + public const string TableName = Cms.Core.Constants.DatabaseSchema.Tables.DictionaryEntry; [Column("pk")] [PrimaryKeyColumn] public int PrimaryKey { get; set; } @@ -22,7 +22,7 @@ namespace Umbraco.Core.Persistence.Dtos [Column("parent")] [NullSetting(NullSetting = NullSettings.Null)] [ForeignKey(typeof(DictionaryDto), Column = "id")] - [Index(IndexTypes.NonClustered, Name = "IX_" + TableName + "_Parent")] + [Index(IndexTypes.NonClustered, Name = "IX_" + TableName + "_Parent")] public Guid? Parent { get; set; } [Column("key")] diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/DocumentCultureVariationDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/DocumentCultureVariationDto.cs index ed61ea5622..71e6b4f022 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/DocumentCultureVariationDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/DocumentCultureVariationDto.cs @@ -8,7 +8,7 @@ namespace Umbraco.Core.Persistence.Dtos [ExplicitColumns] internal class DocumentCultureVariationDto { - public const string TableName = Constants.DatabaseSchema.Tables.DocumentCultureVariation; + public const string TableName = Cms.Core.Constants.DatabaseSchema.Tables.DocumentCultureVariation; [Column("id")] [PrimaryKeyColumn] diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/DocumentDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/DocumentDto.cs index 7893d2583a..2d904aa802 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/DocumentDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/DocumentDto.cs @@ -9,7 +9,7 @@ namespace Umbraco.Core.Persistence.Dtos [ExplicitColumns] public class DocumentDto { - private const string TableName = Constants.DatabaseSchema.Tables.Document; + private const string TableName = Cms.Core.Constants.DatabaseSchema.Tables.Document; [Column("nodeId")] [PrimaryKeyColumn(AutoIncrement = false)] diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/DocumentPublishedReadOnlyDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/DocumentPublishedReadOnlyDto.cs index 27bb0989cc..60dd53f137 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/DocumentPublishedReadOnlyDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/DocumentPublishedReadOnlyDto.cs @@ -3,7 +3,7 @@ using NPoco; namespace Umbraco.Core.Persistence.Dtos { - [TableName(Constants.DatabaseSchema.Tables.Document)] + [TableName(Cms.Core.Constants.DatabaseSchema.Tables.Document)] [PrimaryKey("versionId", AutoIncrement = false)] [ExplicitColumns] internal class DocumentPublishedReadOnlyDto diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/DocumentVersionDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/DocumentVersionDto.cs index 23e784e5fb..a1cb8a86d3 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/DocumentVersionDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/DocumentVersionDto.cs @@ -8,7 +8,7 @@ namespace Umbraco.Core.Persistence.Dtos [ExplicitColumns] public class DocumentVersionDto { - private const string TableName = Constants.DatabaseSchema.Tables.DocumentVersion; + private const string TableName = Cms.Core.Constants.DatabaseSchema.Tables.DocumentVersion; [Column("id")] [PrimaryKeyColumn(AutoIncrement = false)] diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/DomainDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/DomainDto.cs index 7ed20defb6..aab411ec92 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/DomainDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/DomainDto.cs @@ -3,7 +3,7 @@ using Umbraco.Core.Persistence.DatabaseAnnotations; namespace Umbraco.Core.Persistence.Dtos { - [TableName(Constants.DatabaseSchema.Tables.Domain)] + [TableName(Cms.Core.Constants.DatabaseSchema.Tables.Domain)] [PrimaryKey("id")] [ExplicitColumns] internal class DomainDto diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/ExternalLoginDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/ExternalLoginDto.cs index 0a56552000..6dd784bac9 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/ExternalLoginDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/ExternalLoginDto.cs @@ -5,7 +5,7 @@ using Umbraco.Core.Persistence.DatabaseModelDefinitions; namespace Umbraco.Core.Persistence.Dtos { - [TableName(Constants.DatabaseSchema.Tables.ExternalLogin)] + [TableName(Cms.Core.Constants.DatabaseSchema.Tables.ExternalLogin)] [ExplicitColumns] [PrimaryKey("Id")] internal class ExternalLoginDto diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/KeyValueDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/KeyValueDto.cs index 5ead6d0d26..1a80d32a5f 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/KeyValueDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/KeyValueDto.cs @@ -5,7 +5,7 @@ using Umbraco.Core.Persistence.DatabaseModelDefinitions; namespace Umbraco.Core.Persistence.Dtos { - [TableName(Constants.DatabaseSchema.Tables.KeyValue)] + [TableName(Cms.Core.Constants.DatabaseSchema.Tables.KeyValue)] [PrimaryKey("key", AutoIncrement = false)] [ExplicitColumns] internal class KeyValueDto diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/LanguageDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/LanguageDto.cs index 488390f985..e704640312 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/LanguageDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/LanguageDto.cs @@ -8,7 +8,7 @@ namespace Umbraco.Core.Persistence.Dtos [ExplicitColumns] internal class LanguageDto { - public const string TableName = Constants.DatabaseSchema.Tables.Language; + public const string TableName = Cms.Core.Constants.DatabaseSchema.Tables.Language; /// /// Gets or sets the identifier of the language. diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/LanguageTextDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/LanguageTextDto.cs index ff5592a929..b80a0cd34b 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/LanguageTextDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/LanguageTextDto.cs @@ -4,7 +4,7 @@ using Umbraco.Core.Persistence.DatabaseAnnotations; namespace Umbraco.Core.Persistence.Dtos { - [TableName(Constants.DatabaseSchema.Tables.DictionaryValue)] + [TableName(Cms.Core.Constants.DatabaseSchema.Tables.DictionaryValue)] [PrimaryKey("pk")] [ExplicitColumns] internal class LanguageTextDto diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/LockDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/LockDto.cs index b5878141f3..9787666ce1 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/LockDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/LockDto.cs @@ -3,7 +3,7 @@ using Umbraco.Core.Persistence.DatabaseAnnotations; namespace Umbraco.Core.Persistence.Dtos { - [TableName(Constants.DatabaseSchema.Tables.Lock)] + [TableName(Cms.Core.Constants.DatabaseSchema.Tables.Lock)] [PrimaryKey("id", AutoIncrement = false)] [ExplicitColumns] internal class LockDto diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/LogDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/LogDto.cs index bfd96426e2..dbc74688c1 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/LogDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/LogDto.cs @@ -10,7 +10,7 @@ namespace Umbraco.Core.Persistence.Dtos [ExplicitColumns] internal class LogDto { - public const string TableName = Constants.DatabaseSchema.Tables.Log; + public const string TableName = Cms.Core.Constants.DatabaseSchema.Tables.Log; private int? _userId; diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/MacroDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/MacroDto.cs index 8558ce4a35..10100c40ed 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/MacroDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/MacroDto.cs @@ -5,7 +5,7 @@ using Umbraco.Core.Persistence.DatabaseAnnotations; namespace Umbraco.Core.Persistence.Dtos { - [TableName(Constants.DatabaseSchema.Tables.Macro)] + [TableName(Cms.Core.Constants.DatabaseSchema.Tables.Macro)] [PrimaryKey("id")] [ExplicitColumns] internal class MacroDto diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/MacroPropertyDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/MacroPropertyDto.cs index ae8528aec4..cfc31cd52d 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/MacroPropertyDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/MacroPropertyDto.cs @@ -4,7 +4,7 @@ using Umbraco.Core.Persistence.DatabaseAnnotations; namespace Umbraco.Core.Persistence.Dtos { - [TableName(Constants.DatabaseSchema.Tables.MacroProperty)] + [TableName(Cms.Core.Constants.DatabaseSchema.Tables.MacroProperty)] [PrimaryKey("id")] [ExplicitColumns] internal class MacroPropertyDto diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/MediaVersionDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/MediaVersionDto.cs index f71b3149cf..c25e8baf2d 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/MediaVersionDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/MediaVersionDto.cs @@ -8,7 +8,7 @@ namespace Umbraco.Core.Persistence.Dtos [ExplicitColumns] internal class MediaVersionDto { - public const string TableName = Constants.DatabaseSchema.Tables.MediaVersion; + public const string TableName = Cms.Core.Constants.DatabaseSchema.Tables.MediaVersion; [Column("id")] [PrimaryKeyColumn(AutoIncrement = false)] diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/Member2MemberGroupDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/Member2MemberGroupDto.cs index 6524555966..64bcb84583 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/Member2MemberGroupDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/Member2MemberGroupDto.cs @@ -3,7 +3,7 @@ using Umbraco.Core.Persistence.DatabaseAnnotations; namespace Umbraco.Core.Persistence.Dtos { - [TableName(Constants.DatabaseSchema.Tables.Member2MemberGroup)] + [TableName(Cms.Core.Constants.DatabaseSchema.Tables.Member2MemberGroup)] [PrimaryKey("Member", AutoIncrement = false)] [ExplicitColumns] internal class Member2MemberGroupDto diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/MemberDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/MemberDto.cs index df4c9e2542..566ea158f3 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/MemberDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/MemberDto.cs @@ -8,7 +8,7 @@ namespace Umbraco.Core.Persistence.Dtos [ExplicitColumns] internal class MemberDto { - private const string TableName = Constants.DatabaseSchema.Tables.Member; + private const string TableName = Cms.Core.Constants.DatabaseSchema.Tables.Member; [Column("nodeId")] [PrimaryKeyColumn(AutoIncrement = false)] diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/MemberPropertyTypeDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/MemberPropertyTypeDto.cs index 7186455489..9f1c696f57 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/MemberPropertyTypeDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/MemberPropertyTypeDto.cs @@ -3,7 +3,7 @@ using Umbraco.Core.Persistence.DatabaseAnnotations; namespace Umbraco.Core.Persistence.Dtos { - [TableName(Constants.DatabaseSchema.Tables.MemberPropertyType)] + [TableName(Cms.Core.Constants.DatabaseSchema.Tables.MemberPropertyType)] [PrimaryKey("pk")] [ExplicitColumns] internal class MemberPropertyTypeDto diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/NodeDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/NodeDto.cs index 8207d8811d..ba5881f6a8 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/NodeDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/NodeDto.cs @@ -10,7 +10,7 @@ namespace Umbraco.Core.Persistence.Dtos [ExplicitColumns] public class NodeDto { - public const string TableName = Constants.DatabaseSchema.Tables.Node; + public const string TableName = Cms.Core.Constants.DatabaseSchema.Tables.Node; public const int NodeIdSeed = 1060; private int? _userId; diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/PropertyDataDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/PropertyDataDto.cs index a3b28b5b54..a904bfc81c 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/PropertyDataDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/PropertyDataDto.cs @@ -1,6 +1,7 @@ using System; using NPoco; using Umbraco.Core.Persistence.DatabaseAnnotations; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence.Dtos { @@ -9,7 +10,7 @@ namespace Umbraco.Core.Persistence.Dtos [ExplicitColumns] internal class PropertyDataDto { - public const string TableName = Constants.DatabaseSchema.Tables.PropertyData; + public const string TableName = Cms.Core.Constants.DatabaseSchema.Tables.PropertyData; public const int VarcharLength = 512; public const int SegmentLength = 256; diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/PropertyTypeDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/PropertyTypeDto.cs index 572201c94a..c70a365f17 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/PropertyTypeDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/PropertyTypeDto.cs @@ -5,7 +5,7 @@ using Umbraco.Core.Persistence.DatabaseModelDefinitions; namespace Umbraco.Core.Persistence.Dtos { - [TableName(Constants.DatabaseSchema.Tables.PropertyType)] + [TableName(Cms.Core.Constants.DatabaseSchema.Tables.PropertyType)] [PrimaryKey("id")] [ExplicitColumns] internal class PropertyTypeDto diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/PropertyTypeGroupDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/PropertyTypeGroupDto.cs index c48a6697ef..98451f58fd 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/PropertyTypeGroupDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/PropertyTypeGroupDto.cs @@ -6,7 +6,7 @@ using Umbraco.Core.Persistence.DatabaseModelDefinitions; namespace Umbraco.Core.Persistence.Dtos { - [TableName(Constants.DatabaseSchema.Tables.PropertyTypeGroup)] + [TableName(Cms.Core.Constants.DatabaseSchema.Tables.PropertyTypeGroup)] [PrimaryKey("id", AutoIncrement = true)] [ExplicitColumns] internal class PropertyTypeGroupDto diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/PropertyTypeGroupReadOnlyDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/PropertyTypeGroupReadOnlyDto.cs index f812bd48aa..db95cda469 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/PropertyTypeGroupReadOnlyDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/PropertyTypeGroupReadOnlyDto.cs @@ -3,7 +3,7 @@ using NPoco; namespace Umbraco.Core.Persistence.Dtos { - [TableName(Constants.DatabaseSchema.Tables.PropertyTypeGroup)] + [TableName(Cms.Core.Constants.DatabaseSchema.Tables.PropertyTypeGroup)] [PrimaryKey("id", AutoIncrement = true)] [ExplicitColumns] internal class PropertyTypeGroupReadOnlyDto diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/PropertyTypeReadOnlyDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/PropertyTypeReadOnlyDto.cs index d2001c00d5..4c4c608c7b 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/PropertyTypeReadOnlyDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/PropertyTypeReadOnlyDto.cs @@ -3,7 +3,7 @@ using NPoco; namespace Umbraco.Core.Persistence.Dtos { - [TableName(Constants.DatabaseSchema.Tables.PropertyType)] + [TableName(Cms.Core.Constants.DatabaseSchema.Tables.PropertyType)] [PrimaryKey("id")] [ExplicitColumns] internal class PropertyTypeReadOnlyDto diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/RedirectUrlDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/RedirectUrlDto.cs index 57e7138827..381c55f6bb 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/RedirectUrlDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/RedirectUrlDto.cs @@ -4,7 +4,7 @@ using Umbraco.Core.Persistence.DatabaseAnnotations; namespace Umbraco.Core.Persistence.Dtos { - [TableName(Constants.DatabaseSchema.Tables.RedirectUrl)] + [TableName(Cms.Core.Constants.DatabaseSchema.Tables.RedirectUrl)] [PrimaryKey("id", AutoIncrement = false)] [ExplicitColumns] class RedirectUrlDto diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/RelationDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/RelationDto.cs index b21866eb8b..bbc2530ccc 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/RelationDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/RelationDto.cs @@ -5,7 +5,7 @@ using Umbraco.Core.Persistence.DatabaseModelDefinitions; namespace Umbraco.Core.Persistence.Dtos { - [TableName(Constants.DatabaseSchema.Tables.Relation)] + [TableName(Cms.Core.Constants.DatabaseSchema.Tables.Relation)] [PrimaryKey("id")] [ExplicitColumns] internal class RelationDto diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/RelationTypeDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/RelationTypeDto.cs index d3e107d23f..f8d9995331 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/RelationTypeDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/RelationTypeDto.cs @@ -4,7 +4,7 @@ using Umbraco.Core.Persistence.DatabaseAnnotations; namespace Umbraco.Core.Persistence.Dtos { - [TableName(Constants.DatabaseSchema.Tables.RelationType)] + [TableName(Cms.Core.Constants.DatabaseSchema.Tables.RelationType)] [PrimaryKey("id")] [ExplicitColumns] internal class RelationTypeDto diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/ServerRegistrationDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/ServerRegistrationDto.cs index ccf9d26414..029c5d3dd6 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/ServerRegistrationDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/ServerRegistrationDto.cs @@ -5,7 +5,7 @@ using Umbraco.Core.Persistence.DatabaseModelDefinitions; namespace Umbraco.Core.Persistence.Dtos { - [TableName(Constants.DatabaseSchema.Tables.Server)] + [TableName(Cms.Core.Constants.DatabaseSchema.Tables.Server)] [PrimaryKey("id")] [ExplicitColumns] internal class ServerRegistrationDto diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/TagDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/TagDto.cs index f6296e4bd0..b1b22ef68c 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/TagDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/TagDto.cs @@ -8,7 +8,7 @@ namespace Umbraco.Core.Persistence.Dtos [ExplicitColumns] internal class TagDto { - public const string TableName = Constants.DatabaseSchema.Tables.Tag; + public const string TableName = Cms.Core.Constants.DatabaseSchema.Tables.Tag; [Column("id")] [PrimaryKeyColumn] diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/TagRelationshipDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/TagRelationshipDto.cs index cbe4cf0cd4..3e055ce05c 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/TagRelationshipDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/TagRelationshipDto.cs @@ -8,7 +8,7 @@ namespace Umbraco.Core.Persistence.Dtos [ExplicitColumns] internal class TagRelationshipDto { - public const string TableName = Constants.DatabaseSchema.Tables.TagRelationship; + public const string TableName = Cms.Core.Constants.DatabaseSchema.Tables.TagRelationship; [Column("nodeId")] [PrimaryKeyColumn(AutoIncrement = false, Name = "PK_cmsTagRelationship", OnColumns = "nodeId, propertyTypeId, tagId")] diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/TemplateDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/TemplateDto.cs index a73425db8d..29e2db0ac4 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/TemplateDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/TemplateDto.cs @@ -3,7 +3,7 @@ using Umbraco.Core.Persistence.DatabaseAnnotations; namespace Umbraco.Core.Persistence.Dtos { - [TableName(Constants.DatabaseSchema.Tables.Template)] + [TableName(Cms.Core.Constants.DatabaseSchema.Tables.Template)] [PrimaryKey("pk")] [ExplicitColumns] internal class TemplateDto diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/User2NodeNotifyDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/User2NodeNotifyDto.cs index d7c54351b0..7e072989ac 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/User2NodeNotifyDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/User2NodeNotifyDto.cs @@ -3,7 +3,7 @@ using Umbraco.Core.Persistence.DatabaseAnnotations; namespace Umbraco.Core.Persistence.Dtos { - [TableName(Constants.DatabaseSchema.Tables.User2NodeNotify)] + [TableName(Cms.Core.Constants.DatabaseSchema.Tables.User2NodeNotify)] [PrimaryKey("userId", AutoIncrement = false)] [ExplicitColumns] internal class User2NodeNotifyDto diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/User2UserGroupDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/User2UserGroupDto.cs index dabac9dabf..3f726ac6ed 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/User2UserGroupDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/User2UserGroupDto.cs @@ -3,7 +3,7 @@ using Umbraco.Core.Persistence.DatabaseAnnotations; namespace Umbraco.Core.Persistence.Dtos { - [TableName(Constants.DatabaseSchema.Tables.User2UserGroup)] + [TableName(Cms.Core.Constants.DatabaseSchema.Tables.User2UserGroup)] [ExplicitColumns] internal class User2UserGroupDto { diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/UserDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/UserDto.cs index 46bec34a49..5f72e2a5d1 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/UserDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/UserDto.cs @@ -11,7 +11,7 @@ namespace Umbraco.Core.Persistence.Dtos [ExplicitColumns] internal class UserDto { - public const string TableName = Constants.DatabaseSchema.Tables.User; + public const string TableName = Cms.Core.Constants.DatabaseSchema.Tables.User; public UserDto() { diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/UserGroup2AppDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/UserGroup2AppDto.cs index 03ba93fe59..9bfb815058 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/UserGroup2AppDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/UserGroup2AppDto.cs @@ -3,7 +3,7 @@ using Umbraco.Core.Persistence.DatabaseAnnotations; namespace Umbraco.Core.Persistence.Dtos { - [TableName(Constants.DatabaseSchema.Tables.UserGroup2App)] + [TableName(Cms.Core.Constants.DatabaseSchema.Tables.UserGroup2App)] [ExplicitColumns] public class UserGroup2AppDto { diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/UserGroup2NodePermissionDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/UserGroup2NodePermissionDto.cs index bcb2034054..9d26d7552a 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/UserGroup2NodePermissionDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/UserGroup2NodePermissionDto.cs @@ -3,7 +3,7 @@ using Umbraco.Core.Persistence.DatabaseAnnotations; namespace Umbraco.Core.Persistence.Dtos { - [TableName(Constants.DatabaseSchema.Tables.UserGroup2NodePermission)] + [TableName(Cms.Core.Constants.DatabaseSchema.Tables.UserGroup2NodePermission)] [ExplicitColumns] internal class UserGroup2NodePermissionDto { diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/UserGroupDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/UserGroupDto.cs index 0735912c8f..c90bed8fe8 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/UserGroupDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/UserGroupDto.cs @@ -6,7 +6,7 @@ using Umbraco.Core.Persistence.DatabaseModelDefinitions; namespace Umbraco.Core.Persistence.Dtos { - [TableName(Constants.DatabaseSchema.Tables.UserGroup)] + [TableName(Cms.Core.Constants.DatabaseSchema.Tables.UserGroup)] [PrimaryKey("id")] [ExplicitColumns] public class UserGroupDto diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/UserLoginDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/UserLoginDto.cs index 8bf254ea31..60fb940fe7 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/UserLoginDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/UserLoginDto.cs @@ -9,7 +9,7 @@ namespace Umbraco.Core.Persistence.Dtos [ExplicitColumns] internal class UserLoginDto { - public const string TableName = Constants.DatabaseSchema.Tables.UserLogin; + public const string TableName = Cms.Core.Constants.DatabaseSchema.Tables.UserLogin; [Column("sessionId")] [PrimaryKeyColumn(AutoIncrement = false)] diff --git a/src/Umbraco.Infrastructure/Persistence/Dtos/UserStartNodeDto.cs b/src/Umbraco.Infrastructure/Persistence/Dtos/UserStartNodeDto.cs index d8b2206658..b13af6effd 100644 --- a/src/Umbraco.Infrastructure/Persistence/Dtos/UserStartNodeDto.cs +++ b/src/Umbraco.Infrastructure/Persistence/Dtos/UserStartNodeDto.cs @@ -4,7 +4,7 @@ using Umbraco.Core.Persistence.DatabaseAnnotations; namespace Umbraco.Core.Persistence.Dtos { - [TableName(Constants.DatabaseSchema.Tables.UserStartNode)] + [TableName(Cms.Core.Constants.DatabaseSchema.Tables.UserStartNode)] [PrimaryKey("id", AutoIncrement = true)] [ExplicitColumns] internal class UserStartNodeDto : IEquatable diff --git a/src/Umbraco.Infrastructure/Persistence/Factories/AuditEntryFactory.cs b/src/Umbraco.Infrastructure/Persistence/Factories/AuditEntryFactory.cs index bbf6058055..f40c8c4e21 100644 --- a/src/Umbraco.Infrastructure/Persistence/Factories/AuditEntryFactory.cs +++ b/src/Umbraco.Infrastructure/Persistence/Factories/AuditEntryFactory.cs @@ -1,5 +1,6 @@ using System.Collections.Generic; using System.Linq; +using Umbraco.Cms.Core.Models; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Dtos; diff --git a/src/Umbraco.Infrastructure/Persistence/Factories/ConsentFactory.cs b/src/Umbraco.Infrastructure/Persistence/Factories/ConsentFactory.cs index 5c3b90fee8..1d0ab0f21d 100644 --- a/src/Umbraco.Infrastructure/Persistence/Factories/ConsentFactory.cs +++ b/src/Umbraco.Infrastructure/Persistence/Factories/ConsentFactory.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using Umbraco.Cms.Core.Models; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Dtos; diff --git a/src/Umbraco.Infrastructure/Persistence/Factories/ContentBaseFactory.cs b/src/Umbraco.Infrastructure/Persistence/Factories/ContentBaseFactory.cs index 13f9d3ee5c..0d376b04a0 100644 --- a/src/Umbraco.Infrastructure/Persistence/Factories/ContentBaseFactory.cs +++ b/src/Umbraco.Infrastructure/Persistence/Factories/ContentBaseFactory.cs @@ -1,6 +1,9 @@ using System; using System.Collections.Generic; using System.Linq; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.PropertyEditors; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.Persistence.Repositories; @@ -39,8 +42,8 @@ namespace Umbraco.Core.Persistence.Factories content.SortOrder = nodeDto.SortOrder; content.Trashed = nodeDto.Trashed; - content.CreatorId = nodeDto.UserId ?? Constants.Security.UnknownUserId; - content.WriterId = contentVersionDto.UserId ?? Constants.Security.UnknownUserId; + content.CreatorId = nodeDto.UserId ?? Cms.Core.Constants.Security.UnknownUserId; + content.WriterId = contentVersionDto.UserId ?? Cms.Core.Constants.Security.UnknownUserId; content.CreateDate = nodeDto.CreateDate; content.UpdateDate = contentVersionDto.VersionDate; @@ -72,12 +75,12 @@ namespace Umbraco.Core.Persistence.Factories /// /// Builds an IMedia item from a dto and content type. /// - public static Models.Media BuildEntity(ContentDto dto, IMediaType contentType) + public static Media BuildEntity(ContentDto dto, IMediaType contentType) { var nodeDto = dto.NodeDto; var contentVersionDto = dto.ContentVersionDto; - var content = new Models.Media(nodeDto.Text, nodeDto.ParentId, contentType); + var content = new Media(nodeDto.Text, nodeDto.ParentId, contentType); try { @@ -95,8 +98,8 @@ namespace Umbraco.Core.Persistence.Factories content.SortOrder = nodeDto.SortOrder; content.Trashed = nodeDto.Trashed; - content.CreatorId = nodeDto.UserId ?? Constants.Security.UnknownUserId; - content.WriterId = contentVersionDto.UserId ?? Constants.Security.UnknownUserId; + content.CreatorId = nodeDto.UserId ?? Cms.Core.Constants.Security.UnknownUserId; + content.WriterId = contentVersionDto.UserId ?? Cms.Core.Constants.Security.UnknownUserId; content.CreateDate = nodeDto.CreateDate; content.UpdateDate = contentVersionDto.VersionDate; @@ -136,8 +139,8 @@ namespace Umbraco.Core.Persistence.Factories content.SortOrder = nodeDto.SortOrder; content.Trashed = nodeDto.Trashed; - content.CreatorId = nodeDto.UserId ?? Constants.Security.UnknownUserId; - content.WriterId = contentVersionDto.UserId ?? Constants.Security.UnknownUserId; + content.CreatorId = nodeDto.UserId ?? Cms.Core.Constants.Security.UnknownUserId; + content.WriterId = contentVersionDto.UserId ?? Cms.Core.Constants.Security.UnknownUserId; content.CreateDate = nodeDto.CreateDate; content.UpdateDate = contentVersionDto.VersionDate; @@ -187,7 +190,7 @@ namespace Umbraco.Core.Persistence.Factories /// public static MediaDto BuildDto(MediaUrlGeneratorCollection mediaUrlGenerators, IMedia entity) { - var contentDto = BuildContentDto(entity, Constants.ObjectTypes.Media); + var contentDto = BuildContentDto(entity, Cms.Core.Constants.ObjectTypes.Media); var dto = new MediaDto { @@ -204,7 +207,7 @@ namespace Umbraco.Core.Persistence.Factories /// public static MemberDto BuildDto(IMember entity) { - var contentDto = BuildContentDto(entity, Constants.ObjectTypes.Member); + var contentDto = BuildContentDto(entity, Cms.Core.Constants.ObjectTypes.Member); var dto = new MemberDto { @@ -294,7 +297,7 @@ namespace Umbraco.Core.Persistence.Factories string path = null; - if (entity.Properties.TryGetValue(Constants.Conventions.Media.File, out var property) + if (entity.Properties.TryGetValue(Cms.Core.Constants.Conventions.Media.File, out var property) && mediaUrlGenerators.TryGetMediaPath(property.PropertyType.PropertyEditorAlias, property.GetValue(), out var mediaPath)) { path = mediaPath; diff --git a/src/Umbraco.Infrastructure/Persistence/Factories/ContentTypeFactory.cs b/src/Umbraco.Infrastructure/Persistence/Factories/ContentTypeFactory.cs index 60602affbb..276ff40c0c 100644 --- a/src/Umbraco.Infrastructure/Persistence/Factories/ContentTypeFactory.cs +++ b/src/Umbraco.Infrastructure/Persistence/Factories/ContentTypeFactory.cs @@ -2,10 +2,11 @@ using System.Collections.Generic; using System.Globalization; using System.Linq; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Strings; using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; using Umbraco.Core.Persistence.Dtos; -using Umbraco.Core.Strings; namespace Umbraco.Core.Persistence.Factories { @@ -118,7 +119,7 @@ namespace Umbraco.Core.Persistence.Factories entity.UpdateDate = dto.NodeDto.CreateDate; entity.Path = dto.NodeDto.Path; entity.Level = dto.NodeDto.Level; - entity.CreatorId = dto.NodeDto.UserId ?? Constants.Security.UnknownUserId; + entity.CreatorId = dto.NodeDto.UserId ?? Cms.Core.Constants.Security.UnknownUserId; entity.AllowedAsRoot = dto.AllowAtRoot; entity.IsContainer = dto.IsContainer; entity.IsElement = dto.IsElement; @@ -132,11 +133,11 @@ namespace Umbraco.Core.Persistence.Factories { Guid nodeObjectType; if (entity is IContentType) - nodeObjectType = Constants.ObjectTypes.DocumentType; + nodeObjectType = Cms.Core.Constants.ObjectTypes.DocumentType; else if (entity is IMediaType) - nodeObjectType = Constants.ObjectTypes.MediaType; + nodeObjectType = Cms.Core.Constants.ObjectTypes.MediaType; else if (entity is IMemberType) - nodeObjectType = Constants.ObjectTypes.MemberType; + nodeObjectType = Cms.Core.Constants.ObjectTypes.MemberType; else throw new Exception("Invalid entity."); diff --git a/src/Umbraco.Infrastructure/Persistence/Factories/DataTypeFactory.cs b/src/Umbraco.Infrastructure/Persistence/Factories/DataTypeFactory.cs index 5f915c18aa..d870806760 100644 --- a/src/Umbraco.Infrastructure/Persistence/Factories/DataTypeFactory.cs +++ b/src/Umbraco.Infrastructure/Persistence/Factories/DataTypeFactory.cs @@ -1,9 +1,10 @@ using System; using Microsoft.Extensions.Logging; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; using Umbraco.Core.Persistence.Dtos; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Serialization; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence.Factories { @@ -39,7 +40,7 @@ namespace Umbraco.Core.Persistence.Factories dataType.Path = dto.NodeDto.Path; dataType.SortOrder = dto.NodeDto.SortOrder; dataType.Trashed = dto.NodeDto.Trashed; - dataType.CreatorId = dto.NodeDto.UserId ?? Constants.Security.UnknownUserId; + dataType.CreatorId = dto.NodeDto.UserId ?? Cms.Core.Constants.Security.UnknownUserId; dataType.SetLazyConfiguration(dto.Configuration); @@ -74,7 +75,7 @@ namespace Umbraco.Core.Persistence.Factories CreateDate = entity.CreateDate, NodeId = entity.Id, Level = Convert.ToInt16(entity.Level), - NodeObjectType = Constants.ObjectTypes.DataType, + NodeObjectType = Cms.Core.Constants.ObjectTypes.DataType, ParentId = entity.ParentId, Path = entity.Path, SortOrder = entity.SortOrder, diff --git a/src/Umbraco.Infrastructure/Persistence/Factories/DictionaryItemFactory.cs b/src/Umbraco.Infrastructure/Persistence/Factories/DictionaryItemFactory.cs index 4236195402..e694aea466 100644 --- a/src/Umbraco.Infrastructure/Persistence/Factories/DictionaryItemFactory.cs +++ b/src/Umbraco.Infrastructure/Persistence/Factories/DictionaryItemFactory.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using Umbraco.Cms.Core.Models; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Dtos; diff --git a/src/Umbraco.Infrastructure/Persistence/Factories/DictionaryTranslationFactory.cs b/src/Umbraco.Infrastructure/Persistence/Factories/DictionaryTranslationFactory.cs index 5325813dbf..328588d905 100644 --- a/src/Umbraco.Infrastructure/Persistence/Factories/DictionaryTranslationFactory.cs +++ b/src/Umbraco.Infrastructure/Persistence/Factories/DictionaryTranslationFactory.cs @@ -1,4 +1,5 @@ using System; +using Umbraco.Cms.Core.Models; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Dtos; diff --git a/src/Umbraco.Infrastructure/Persistence/Factories/ExternalLoginFactory.cs b/src/Umbraco.Infrastructure/Persistence/Factories/ExternalLoginFactory.cs index aa4b20aa40..8ca1acc747 100644 --- a/src/Umbraco.Infrastructure/Persistence/Factories/ExternalLoginFactory.cs +++ b/src/Umbraco.Infrastructure/Persistence/Factories/ExternalLoginFactory.cs @@ -1,4 +1,5 @@ using System; +using Umbraco.Cms.Core.Models.Identity; using Umbraco.Core.Models.Identity; using Umbraco.Core.Persistence.Dtos; diff --git a/src/Umbraco.Infrastructure/Persistence/Factories/LanguageFactory.cs b/src/Umbraco.Infrastructure/Persistence/Factories/LanguageFactory.cs index 0b5937a328..c96f661c71 100644 --- a/src/Umbraco.Infrastructure/Persistence/Factories/LanguageFactory.cs +++ b/src/Umbraco.Infrastructure/Persistence/Factories/LanguageFactory.cs @@ -1,6 +1,7 @@ using System.Globalization; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models; using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Dtos; diff --git a/src/Umbraco.Infrastructure/Persistence/Factories/MacroFactory.cs b/src/Umbraco.Infrastructure/Persistence/Factories/MacroFactory.cs index 5d0cbc9c34..5926ca3a5b 100644 --- a/src/Umbraco.Infrastructure/Persistence/Factories/MacroFactory.cs +++ b/src/Umbraco.Infrastructure/Persistence/Factories/MacroFactory.cs @@ -1,8 +1,9 @@ using System.Collections.Generic; using System.Globalization; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Strings; using Umbraco.Core.Persistence.Dtos; -using Umbraco.Core.Strings; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence.Factories { diff --git a/src/Umbraco.Infrastructure/Persistence/Factories/MemberGroupFactory.cs b/src/Umbraco.Infrastructure/Persistence/Factories/MemberGroupFactory.cs index cb73f3b3aa..2e8df7a4ba 100644 --- a/src/Umbraco.Infrastructure/Persistence/Factories/MemberGroupFactory.cs +++ b/src/Umbraco.Infrastructure/Persistence/Factories/MemberGroupFactory.cs @@ -1,4 +1,5 @@ using System; +using Umbraco.Cms.Core.Models; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Dtos; @@ -11,7 +12,7 @@ namespace Umbraco.Core.Persistence.Factories static MemberGroupFactory() { - _nodeObjectTypeId = Constants.ObjectTypes.MemberGroup; + _nodeObjectTypeId = Cms.Core.Constants.ObjectTypes.MemberGroup; } #region Implementation of IEntityFactory diff --git a/src/Umbraco.Infrastructure/Persistence/Factories/PropertyFactory.cs b/src/Umbraco.Infrastructure/Persistence/Factories/PropertyFactory.cs index b360342332..bbfc4903fd 100644 --- a/src/Umbraco.Infrastructure/Persistence/Factories/PropertyFactory.cs +++ b/src/Umbraco.Infrastructure/Persistence/Factories/PropertyFactory.cs @@ -1,9 +1,10 @@ using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Repositories; using Umbraco.Core.Persistence.Dtos; -using Umbraco.Core.Persistence.Repositories; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence.Factories { @@ -48,7 +49,7 @@ namespace Umbraco.Core.Persistence.Factories if (property.ValueStorageType == ValueStorageType.Integer) { - if (value is bool || property.PropertyType.PropertyEditorAlias == Constants.PropertyEditors.Aliases.Boolean) + if (value is bool || property.PropertyType.PropertyEditorAlias == Cms.Core.Constants.PropertyEditors.Aliases.Boolean) { dto.IntegerValue = value != null && string.IsNullOrEmpty(value.ToString()) ? 0 : Convert.ToInt32(value); } diff --git a/src/Umbraco.Infrastructure/Persistence/Factories/PropertyGroupFactory.cs b/src/Umbraco.Infrastructure/Persistence/Factories/PropertyGroupFactory.cs index 29243d3a23..3f0879a019 100644 --- a/src/Umbraco.Infrastructure/Persistence/Factories/PropertyGroupFactory.cs +++ b/src/Umbraco.Infrastructure/Persistence/Factories/PropertyGroupFactory.cs @@ -1,8 +1,9 @@ using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; using Umbraco.Core.Persistence.Dtos; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence.Factories { diff --git a/src/Umbraco.Infrastructure/Persistence/Factories/PublicAccessEntryFactory.cs b/src/Umbraco.Infrastructure/Persistence/Factories/PublicAccessEntryFactory.cs index 2a469e4624..7fb54b7d86 100644 --- a/src/Umbraco.Infrastructure/Persistence/Factories/PublicAccessEntryFactory.cs +++ b/src/Umbraco.Infrastructure/Persistence/Factories/PublicAccessEntryFactory.cs @@ -1,4 +1,5 @@ using System.Linq; +using Umbraco.Cms.Core.Models; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Dtos; diff --git a/src/Umbraco.Infrastructure/Persistence/Factories/RelationFactory.cs b/src/Umbraco.Infrastructure/Persistence/Factories/RelationFactory.cs index f4117cc358..c0f09a2b44 100644 --- a/src/Umbraco.Infrastructure/Persistence/Factories/RelationFactory.cs +++ b/src/Umbraco.Infrastructure/Persistence/Factories/RelationFactory.cs @@ -1,4 +1,5 @@ -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Core.Models; using Umbraco.Core.Persistence.Dtos; namespace Umbraco.Core.Persistence.Factories diff --git a/src/Umbraco.Infrastructure/Persistence/Factories/RelationTypeFactory.cs b/src/Umbraco.Infrastructure/Persistence/Factories/RelationTypeFactory.cs index 177a0494a2..b36946d358 100644 --- a/src/Umbraco.Infrastructure/Persistence/Factories/RelationTypeFactory.cs +++ b/src/Umbraco.Infrastructure/Persistence/Factories/RelationTypeFactory.cs @@ -1,4 +1,5 @@ -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Core.Models; using Umbraco.Core.Persistence.Dtos; namespace Umbraco.Core.Persistence.Factories diff --git a/src/Umbraco.Infrastructure/Persistence/Factories/ServerRegistrationFactory.cs b/src/Umbraco.Infrastructure/Persistence/Factories/ServerRegistrationFactory.cs index c49c3968ed..1588b5fa9a 100644 --- a/src/Umbraco.Infrastructure/Persistence/Factories/ServerRegistrationFactory.cs +++ b/src/Umbraco.Infrastructure/Persistence/Factories/ServerRegistrationFactory.cs @@ -1,4 +1,5 @@ -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Core.Models; using Umbraco.Core.Persistence.Dtos; namespace Umbraco.Core.Persistence.Factories diff --git a/src/Umbraco.Infrastructure/Persistence/Factories/TagFactory.cs b/src/Umbraco.Infrastructure/Persistence/Factories/TagFactory.cs index 10441707ec..c12a8b89dc 100644 --- a/src/Umbraco.Infrastructure/Persistence/Factories/TagFactory.cs +++ b/src/Umbraco.Infrastructure/Persistence/Factories/TagFactory.cs @@ -1,4 +1,5 @@ -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Core.Models; using Umbraco.Core.Persistence.Dtos; namespace Umbraco.Core.Persistence.Factories diff --git a/src/Umbraco.Infrastructure/Persistence/Factories/TemplateFactory.cs b/src/Umbraco.Infrastructure/Persistence/Factories/TemplateFactory.cs index 4c9bfdb45e..99dbe833ba 100644 --- a/src/Umbraco.Infrastructure/Persistence/Factories/TemplateFactory.cs +++ b/src/Umbraco.Infrastructure/Persistence/Factories/TemplateFactory.cs @@ -1,10 +1,11 @@ using System; using System.Collections.Generic; using System.Linq; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Strings; using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; using Umbraco.Core.Persistence.Dtos; -using Umbraco.Core.Strings; namespace Umbraco.Core.Persistence.Factories { diff --git a/src/Umbraco.Infrastructure/Persistence/Factories/UserFactory.cs b/src/Umbraco.Infrastructure/Persistence/Factories/UserFactory.cs index 839f7b5ad7..5cd59f620b 100644 --- a/src/Umbraco.Infrastructure/Persistence/Factories/UserFactory.cs +++ b/src/Umbraco.Infrastructure/Persistence/Factories/UserFactory.cs @@ -1,9 +1,10 @@ using System; using System.Linq; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Models.Membership; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models.Membership; using Umbraco.Core.Persistence.Dtos; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence.Factories { @@ -65,7 +66,7 @@ namespace Umbraco.Core.Persistence.Factories Login = entity.Username, NoConsole = entity.IsLockedOut, Password = entity.RawPasswordValue, - PasswordConfig = entity.PasswordConfiguration, + PasswordConfig = entity.PasswordConfiguration, UserLanguage = entity.Language, UserName = entity.Name, SecurityStampToken = entity.SecurityStamp, diff --git a/src/Umbraco.Infrastructure/Persistence/Factories/UserGroupFactory.cs b/src/Umbraco.Infrastructure/Persistence/Factories/UserGroupFactory.cs index 596fba144a..fb599f1c18 100644 --- a/src/Umbraco.Infrastructure/Persistence/Factories/UserGroupFactory.cs +++ b/src/Umbraco.Infrastructure/Persistence/Factories/UserGroupFactory.cs @@ -1,9 +1,10 @@ using System.Collections.Generic; using System.Globalization; using System.Linq; -using Umbraco.Core.Models.Membership; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Strings; using Umbraco.Core.Persistence.Dtos; -using Umbraco.Core.Strings; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence.Factories { diff --git a/src/Umbraco.Infrastructure/Persistence/ISqlContext.cs b/src/Umbraco.Infrastructure/Persistence/ISqlContext.cs index f8a6bfd0fb..fc18cd104e 100644 --- a/src/Umbraco.Infrastructure/Persistence/ISqlContext.cs +++ b/src/Umbraco.Infrastructure/Persistence/ISqlContext.cs @@ -1,4 +1,5 @@ using NPoco; +using Umbraco.Cms.Core.Persistence.Querying; using Umbraco.Core.Persistence.Mappers; using Umbraco.Core.Persistence.Querying; using Umbraco.Core.Persistence.SqlSyntax; diff --git a/src/Umbraco.Infrastructure/Persistence/Mappers/AccessMapper.cs b/src/Umbraco.Infrastructure/Persistence/Mappers/AccessMapper.cs index 55cef3748b..7fd8eb4f3f 100644 --- a/src/Umbraco.Infrastructure/Persistence/Mappers/AccessMapper.cs +++ b/src/Umbraco.Infrastructure/Persistence/Mappers/AccessMapper.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Concurrent; +using Umbraco.Cms.Core.Models; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Dtos; using Umbraco.Infrastructure.Persistence.Mappers; diff --git a/src/Umbraco.Infrastructure/Persistence/Mappers/AuditEntryMapper.cs b/src/Umbraco.Infrastructure/Persistence/Mappers/AuditEntryMapper.cs index f70f3d1bc1..3cef27a5f9 100644 --- a/src/Umbraco.Infrastructure/Persistence/Mappers/AuditEntryMapper.cs +++ b/src/Umbraco.Infrastructure/Persistence/Mappers/AuditEntryMapper.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Concurrent; +using Umbraco.Cms.Core.Models; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Dtos; using Umbraco.Infrastructure.Persistence.Mappers; diff --git a/src/Umbraco.Infrastructure/Persistence/Mappers/AuditItemMapper.cs b/src/Umbraco.Infrastructure/Persistence/Mappers/AuditItemMapper.cs index c31c9a421d..6a7a57a8a0 100644 --- a/src/Umbraco.Infrastructure/Persistence/Mappers/AuditItemMapper.cs +++ b/src/Umbraco.Infrastructure/Persistence/Mappers/AuditItemMapper.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Concurrent; +using Umbraco.Cms.Core.Models; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Dtos; using Umbraco.Infrastructure.Persistence.Mappers; diff --git a/src/Umbraco.Infrastructure/Persistence/Mappers/BaseMapper.cs b/src/Umbraco.Infrastructure/Persistence/Mappers/BaseMapper.cs index 3085ebe624..af03f3d155 100644 --- a/src/Umbraco.Infrastructure/Persistence/Mappers/BaseMapper.cs +++ b/src/Umbraco.Infrastructure/Persistence/Mappers/BaseMapper.cs @@ -2,7 +2,7 @@ using System.Collections.Concurrent; using NPoco; using Umbraco.Core.Persistence.SqlSyntax; -using Umbraco.Core.Composing; +using Umbraco.Extensions; using Umbraco.Infrastructure.Persistence.Mappers; namespace Umbraco.Core.Persistence.Mappers diff --git a/src/Umbraco.Infrastructure/Persistence/Mappers/ConsentMapper.cs b/src/Umbraco.Infrastructure/Persistence/Mappers/ConsentMapper.cs index b02a9356af..4103e9eae8 100644 --- a/src/Umbraco.Infrastructure/Persistence/Mappers/ConsentMapper.cs +++ b/src/Umbraco.Infrastructure/Persistence/Mappers/ConsentMapper.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Concurrent; +using Umbraco.Cms.Core.Models; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Dtos; using Umbraco.Infrastructure.Persistence.Mappers; diff --git a/src/Umbraco.Infrastructure/Persistence/Mappers/ContentMapper.cs b/src/Umbraco.Infrastructure/Persistence/Mappers/ContentMapper.cs index d629a1845b..e19bc61a53 100644 --- a/src/Umbraco.Infrastructure/Persistence/Mappers/ContentMapper.cs +++ b/src/Umbraco.Infrastructure/Persistence/Mappers/ContentMapper.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Concurrent; +using Umbraco.Cms.Core.Models; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Dtos; using Umbraco.Infrastructure.Persistence.Mappers; diff --git a/src/Umbraco.Infrastructure/Persistence/Mappers/ContentTypeMapper.cs b/src/Umbraco.Infrastructure/Persistence/Mappers/ContentTypeMapper.cs index b74aaed560..1228bc86a4 100644 --- a/src/Umbraco.Infrastructure/Persistence/Mappers/ContentTypeMapper.cs +++ b/src/Umbraco.Infrastructure/Persistence/Mappers/ContentTypeMapper.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Concurrent; +using Umbraco.Cms.Core.Models; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Dtos; using Umbraco.Infrastructure.Persistence.Mappers; diff --git a/src/Umbraco.Infrastructure/Persistence/Mappers/DataTypeMapper.cs b/src/Umbraco.Infrastructure/Persistence/Mappers/DataTypeMapper.cs index aaa390de5a..34f2e25284 100644 --- a/src/Umbraco.Infrastructure/Persistence/Mappers/DataTypeMapper.cs +++ b/src/Umbraco.Infrastructure/Persistence/Mappers/DataTypeMapper.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Concurrent; +using Umbraco.Cms.Core.Models; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Dtos; using Umbraco.Infrastructure.Persistence.Mappers; diff --git a/src/Umbraco.Infrastructure/Persistence/Mappers/DictionaryMapper.cs b/src/Umbraco.Infrastructure/Persistence/Mappers/DictionaryMapper.cs index fb69640d90..a5e33fa3ce 100644 --- a/src/Umbraco.Infrastructure/Persistence/Mappers/DictionaryMapper.cs +++ b/src/Umbraco.Infrastructure/Persistence/Mappers/DictionaryMapper.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Concurrent; +using Umbraco.Cms.Core.Models; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Dtos; using Umbraco.Infrastructure.Persistence.Mappers; diff --git a/src/Umbraco.Infrastructure/Persistence/Mappers/DictionaryTranslationMapper.cs b/src/Umbraco.Infrastructure/Persistence/Mappers/DictionaryTranslationMapper.cs index d735014266..8a36e32630 100644 --- a/src/Umbraco.Infrastructure/Persistence/Mappers/DictionaryTranslationMapper.cs +++ b/src/Umbraco.Infrastructure/Persistence/Mappers/DictionaryTranslationMapper.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Concurrent; +using Umbraco.Cms.Core.Models; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Dtos; using Umbraco.Infrastructure.Persistence.Mappers; diff --git a/src/Umbraco.Infrastructure/Persistence/Mappers/DomainMapper.cs b/src/Umbraco.Infrastructure/Persistence/Mappers/DomainMapper.cs index 7261b83a26..9b20b99bb5 100644 --- a/src/Umbraco.Infrastructure/Persistence/Mappers/DomainMapper.cs +++ b/src/Umbraco.Infrastructure/Persistence/Mappers/DomainMapper.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Concurrent; +using Umbraco.Cms.Core.Models; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Dtos; using Umbraco.Infrastructure.Persistence.Mappers; diff --git a/src/Umbraco.Infrastructure/Persistence/Mappers/ExternalLoginMapper.cs b/src/Umbraco.Infrastructure/Persistence/Mappers/ExternalLoginMapper.cs index 208de76339..df5055fa15 100644 --- a/src/Umbraco.Infrastructure/Persistence/Mappers/ExternalLoginMapper.cs +++ b/src/Umbraco.Infrastructure/Persistence/Mappers/ExternalLoginMapper.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Concurrent; +using Umbraco.Cms.Core.Models.Identity; using Umbraco.Core.Models.Identity; using Umbraco.Core.Persistence.Dtos; using Umbraco.Infrastructure.Persistence.Mappers; diff --git a/src/Umbraco.Infrastructure/Persistence/Mappers/IMapperCollection.cs b/src/Umbraco.Infrastructure/Persistence/Mappers/IMapperCollection.cs index 62d35c3eb8..98625dd838 100644 --- a/src/Umbraco.Infrastructure/Persistence/Mappers/IMapperCollection.cs +++ b/src/Umbraco.Infrastructure/Persistence/Mappers/IMapperCollection.cs @@ -1,5 +1,5 @@ using System; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; namespace Umbraco.Core.Persistence.Mappers { diff --git a/src/Umbraco.Infrastructure/Persistence/Mappers/LanguageMapper.cs b/src/Umbraco.Infrastructure/Persistence/Mappers/LanguageMapper.cs index 38126b0328..95f49741b5 100644 --- a/src/Umbraco.Infrastructure/Persistence/Mappers/LanguageMapper.cs +++ b/src/Umbraco.Infrastructure/Persistence/Mappers/LanguageMapper.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Concurrent; +using Umbraco.Cms.Core.Models; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Dtos; using Umbraco.Infrastructure.Persistence.Mappers; diff --git a/src/Umbraco.Infrastructure/Persistence/Mappers/MacroMapper.cs b/src/Umbraco.Infrastructure/Persistence/Mappers/MacroMapper.cs index 63980e8622..3d88124bd2 100644 --- a/src/Umbraco.Infrastructure/Persistence/Mappers/MacroMapper.cs +++ b/src/Umbraco.Infrastructure/Persistence/Mappers/MacroMapper.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Concurrent; +using Umbraco.Cms.Core.Models; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Dtos; using Umbraco.Infrastructure.Persistence.Mappers; diff --git a/src/Umbraco.Infrastructure/Persistence/Mappers/MapperCollection.cs b/src/Umbraco.Infrastructure/Persistence/Mappers/MapperCollection.cs index 20929dd188..561a99db5a 100644 --- a/src/Umbraco.Infrastructure/Persistence/Mappers/MapperCollection.cs +++ b/src/Umbraco.Infrastructure/Persistence/Mappers/MapperCollection.cs @@ -1,8 +1,8 @@ using System; using System.Collections.Concurrent; using System.Collections.Generic; -using System.Linq; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence.Mappers { diff --git a/src/Umbraco.Infrastructure/Persistence/Mappers/MapperCollectionBuilder.cs b/src/Umbraco.Infrastructure/Persistence/Mappers/MapperCollectionBuilder.cs index b5b295299d..6b7bb1ab00 100644 --- a/src/Umbraco.Infrastructure/Persistence/Mappers/MapperCollectionBuilder.cs +++ b/src/Umbraco.Infrastructure/Persistence/Mappers/MapperCollectionBuilder.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Concurrent; using Microsoft.Extensions.DependencyInjection; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; using Umbraco.Infrastructure.Persistence.Mappers; namespace Umbraco.Core.Persistence.Mappers diff --git a/src/Umbraco.Infrastructure/Persistence/Mappers/MediaMapper.cs b/src/Umbraco.Infrastructure/Persistence/Mappers/MediaMapper.cs index 42568f2871..1363db311f 100644 --- a/src/Umbraco.Infrastructure/Persistence/Mappers/MediaMapper.cs +++ b/src/Umbraco.Infrastructure/Persistence/Mappers/MediaMapper.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Concurrent; +using Umbraco.Cms.Core.Models; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Dtos; using Umbraco.Infrastructure.Persistence.Mappers; @@ -7,11 +8,11 @@ using Umbraco.Infrastructure.Persistence.Mappers; namespace Umbraco.Core.Persistence.Mappers { /// - /// Represents a to DTO mapper used to translate the properties of the public api + /// Represents a to DTO mapper used to translate the properties of the public api /// implementation to that of the database's DTO as sql: [tableName].[columnName]. /// [MapperFor(typeof(IMedia))] - [MapperFor(typeof(Umbraco.Core.Models.Media))] + [MapperFor(typeof(Media))] public sealed class MediaMapper : BaseMapper { public MediaMapper(Lazy sqlContext, MapperConfigurationStore maps) @@ -20,21 +21,21 @@ namespace Umbraco.Core.Persistence.Mappers protected override void DefineMaps() { - DefineMap(nameof(Models.Media.Id), nameof(NodeDto.NodeId)); - DefineMap(nameof(Models.Media.Key), nameof(NodeDto.UniqueId)); + DefineMap(nameof(Media.Id), nameof(NodeDto.NodeId)); + DefineMap(nameof(Media.Key), nameof(NodeDto.UniqueId)); DefineMap(nameof(Content.VersionId), nameof(ContentVersionDto.Id)); - DefineMap(nameof(Models.Media.CreateDate), nameof(NodeDto.CreateDate)); - DefineMap(nameof(Models.Media.Level), nameof(NodeDto.Level)); - DefineMap(nameof(Models.Media.ParentId), nameof(NodeDto.ParentId)); - DefineMap(nameof(Models.Media.Path), nameof(NodeDto.Path)); - DefineMap(nameof(Models.Media.SortOrder), nameof(NodeDto.SortOrder)); - DefineMap(nameof(Models.Media.Name), nameof(NodeDto.Text)); - DefineMap(nameof(Models.Media.Trashed), nameof(NodeDto.Trashed)); - DefineMap(nameof(Models.Media.CreatorId), nameof(NodeDto.UserId)); - DefineMap(nameof(Models.Media.ContentTypeId), nameof(ContentDto.ContentTypeId)); - DefineMap(nameof(Models.Media.UpdateDate), nameof(ContentVersionDto.VersionDate)); + DefineMap(nameof(Media.CreateDate), nameof(NodeDto.CreateDate)); + DefineMap(nameof(Media.Level), nameof(NodeDto.Level)); + DefineMap(nameof(Media.ParentId), nameof(NodeDto.ParentId)); + DefineMap(nameof(Media.Path), nameof(NodeDto.Path)); + DefineMap(nameof(Media.SortOrder), nameof(NodeDto.SortOrder)); + DefineMap(nameof(Media.Name), nameof(NodeDto.Text)); + DefineMap(nameof(Media.Trashed), nameof(NodeDto.Trashed)); + DefineMap(nameof(Media.CreatorId), nameof(NodeDto.UserId)); + DefineMap(nameof(Media.ContentTypeId), nameof(ContentDto.ContentTypeId)); + DefineMap(nameof(Media.UpdateDate), nameof(ContentVersionDto.VersionDate)); } } } diff --git a/src/Umbraco.Infrastructure/Persistence/Mappers/MediaTypeMapper.cs b/src/Umbraco.Infrastructure/Persistence/Mappers/MediaTypeMapper.cs index e54ca9f35e..4a46c54bd6 100644 --- a/src/Umbraco.Infrastructure/Persistence/Mappers/MediaTypeMapper.cs +++ b/src/Umbraco.Infrastructure/Persistence/Mappers/MediaTypeMapper.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Concurrent; +using Umbraco.Cms.Core.Models; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Dtos; using Umbraco.Infrastructure.Persistence.Mappers; diff --git a/src/Umbraco.Infrastructure/Persistence/Mappers/MemberGroupMapper.cs b/src/Umbraco.Infrastructure/Persistence/Mappers/MemberGroupMapper.cs index 5d2a7b22a3..2ff5c6ccca 100644 --- a/src/Umbraco.Infrastructure/Persistence/Mappers/MemberGroupMapper.cs +++ b/src/Umbraco.Infrastructure/Persistence/Mappers/MemberGroupMapper.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Concurrent; +using Umbraco.Cms.Core.Models; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Dtos; using Umbraco.Infrastructure.Persistence.Mappers; diff --git a/src/Umbraco.Infrastructure/Persistence/Mappers/MemberMapper.cs b/src/Umbraco.Infrastructure/Persistence/Mappers/MemberMapper.cs index 30e7502984..c465ebc9d0 100644 --- a/src/Umbraco.Infrastructure/Persistence/Mappers/MemberMapper.cs +++ b/src/Umbraco.Infrastructure/Persistence/Mappers/MemberMapper.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Concurrent; +using Umbraco.Cms.Core.Models; using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; using Umbraco.Core.Persistence.Dtos; using Umbraco.Infrastructure.Persistence.Mappers; diff --git a/src/Umbraco.Infrastructure/Persistence/Mappers/MemberTypeMapper.cs b/src/Umbraco.Infrastructure/Persistence/Mappers/MemberTypeMapper.cs index 3e675dc665..364efe0770 100644 --- a/src/Umbraco.Infrastructure/Persistence/Mappers/MemberTypeMapper.cs +++ b/src/Umbraco.Infrastructure/Persistence/Mappers/MemberTypeMapper.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Concurrent; +using Umbraco.Cms.Core.Models; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Dtos; using Umbraco.Infrastructure.Persistence.Mappers; diff --git a/src/Umbraco.Infrastructure/Persistence/Mappers/PropertyGroupMapper.cs b/src/Umbraco.Infrastructure/Persistence/Mappers/PropertyGroupMapper.cs index 4b85b8167e..e1ea8edd6e 100644 --- a/src/Umbraco.Infrastructure/Persistence/Mappers/PropertyGroupMapper.cs +++ b/src/Umbraco.Infrastructure/Persistence/Mappers/PropertyGroupMapper.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Concurrent; +using Umbraco.Cms.Core.Models; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Dtos; using Umbraco.Infrastructure.Persistence.Mappers; diff --git a/src/Umbraco.Infrastructure/Persistence/Mappers/PropertyMapper.cs b/src/Umbraco.Infrastructure/Persistence/Mappers/PropertyMapper.cs index 436a5bf3c4..b7a4b1969d 100644 --- a/src/Umbraco.Infrastructure/Persistence/Mappers/PropertyMapper.cs +++ b/src/Umbraco.Infrastructure/Persistence/Mappers/PropertyMapper.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Concurrent; +using Umbraco.Cms.Core.Models; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Dtos; using Umbraco.Infrastructure.Persistence.Mappers; diff --git a/src/Umbraco.Infrastructure/Persistence/Mappers/PropertyTypeMapper.cs b/src/Umbraco.Infrastructure/Persistence/Mappers/PropertyTypeMapper.cs index 6892a26d91..a692f3e38d 100644 --- a/src/Umbraco.Infrastructure/Persistence/Mappers/PropertyTypeMapper.cs +++ b/src/Umbraco.Infrastructure/Persistence/Mappers/PropertyTypeMapper.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Concurrent; +using Umbraco.Cms.Core.Models; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Dtos; using Umbraco.Infrastructure.Persistence.Mappers; diff --git a/src/Umbraco.Infrastructure/Persistence/Mappers/RelationMapper.cs b/src/Umbraco.Infrastructure/Persistence/Mappers/RelationMapper.cs index 22ac0a5583..08227849f7 100644 --- a/src/Umbraco.Infrastructure/Persistence/Mappers/RelationMapper.cs +++ b/src/Umbraco.Infrastructure/Persistence/Mappers/RelationMapper.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Concurrent; +using Umbraco.Cms.Core.Models; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Dtos; using Umbraco.Infrastructure.Persistence.Mappers; diff --git a/src/Umbraco.Infrastructure/Persistence/Mappers/RelationTypeMapper.cs b/src/Umbraco.Infrastructure/Persistence/Mappers/RelationTypeMapper.cs index 15b23f27e5..28b70b0657 100644 --- a/src/Umbraco.Infrastructure/Persistence/Mappers/RelationTypeMapper.cs +++ b/src/Umbraco.Infrastructure/Persistence/Mappers/RelationTypeMapper.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Concurrent; +using Umbraco.Cms.Core.Models; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Dtos; using Umbraco.Infrastructure.Persistence.Mappers; diff --git a/src/Umbraco.Infrastructure/Persistence/Mappers/ServerRegistrationMapper.cs b/src/Umbraco.Infrastructure/Persistence/Mappers/ServerRegistrationMapper.cs index 81f495740d..3b1bd2184b 100644 --- a/src/Umbraco.Infrastructure/Persistence/Mappers/ServerRegistrationMapper.cs +++ b/src/Umbraco.Infrastructure/Persistence/Mappers/ServerRegistrationMapper.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Concurrent; +using Umbraco.Cms.Core.Models; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Dtos; using Umbraco.Infrastructure.Persistence.Mappers; diff --git a/src/Umbraco.Infrastructure/Persistence/Mappers/SimpleContentTypeMapper.cs b/src/Umbraco.Infrastructure/Persistence/Mappers/SimpleContentTypeMapper.cs index 75dd18c228..af1c3af19d 100644 --- a/src/Umbraco.Infrastructure/Persistence/Mappers/SimpleContentTypeMapper.cs +++ b/src/Umbraco.Infrastructure/Persistence/Mappers/SimpleContentTypeMapper.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Concurrent; +using Umbraco.Cms.Core.Models; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Dtos; using Umbraco.Infrastructure.Persistence.Mappers; diff --git a/src/Umbraco.Infrastructure/Persistence/Mappers/TagMapper.cs b/src/Umbraco.Infrastructure/Persistence/Mappers/TagMapper.cs index 306f69e6f1..a631117118 100644 --- a/src/Umbraco.Infrastructure/Persistence/Mappers/TagMapper.cs +++ b/src/Umbraco.Infrastructure/Persistence/Mappers/TagMapper.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Concurrent; +using Umbraco.Cms.Core.Models; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Dtos; using Umbraco.Infrastructure.Persistence.Mappers; diff --git a/src/Umbraco.Infrastructure/Persistence/Mappers/TemplateMapper.cs b/src/Umbraco.Infrastructure/Persistence/Mappers/TemplateMapper.cs index c2e30e485f..90f4e2d028 100644 --- a/src/Umbraco.Infrastructure/Persistence/Mappers/TemplateMapper.cs +++ b/src/Umbraco.Infrastructure/Persistence/Mappers/TemplateMapper.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Concurrent; +using Umbraco.Cms.Core.Models; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Dtos; using Umbraco.Infrastructure.Persistence.Mappers; diff --git a/src/Umbraco.Infrastructure/Persistence/Mappers/UmbracoEntityMapper.cs b/src/Umbraco.Infrastructure/Persistence/Mappers/UmbracoEntityMapper.cs index 776443cbd9..c9f2883b2e 100644 --- a/src/Umbraco.Infrastructure/Persistence/Mappers/UmbracoEntityMapper.cs +++ b/src/Umbraco.Infrastructure/Persistence/Mappers/UmbracoEntityMapper.cs @@ -1,6 +1,6 @@ using System; using System.Collections.Concurrent; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; using Umbraco.Core.Persistence.Dtos; using Umbraco.Infrastructure.Persistence.Mappers; diff --git a/src/Umbraco.Infrastructure/Persistence/Mappers/UserGroupMapper.cs b/src/Umbraco.Infrastructure/Persistence/Mappers/UserGroupMapper.cs index addafc5f11..b9d8c41837 100644 --- a/src/Umbraco.Infrastructure/Persistence/Mappers/UserGroupMapper.cs +++ b/src/Umbraco.Infrastructure/Persistence/Mappers/UserGroupMapper.cs @@ -1,6 +1,6 @@ using System; using System.Collections.Concurrent; -using Umbraco.Core.Models.Membership; +using Umbraco.Cms.Core.Models.Membership; using Umbraco.Core.Persistence.Dtos; using Umbraco.Infrastructure.Persistence.Mappers; diff --git a/src/Umbraco.Infrastructure/Persistence/Mappers/UserMapper.cs b/src/Umbraco.Infrastructure/Persistence/Mappers/UserMapper.cs index 8af6479362..498a07df3d 100644 --- a/src/Umbraco.Infrastructure/Persistence/Mappers/UserMapper.cs +++ b/src/Umbraco.Infrastructure/Persistence/Mappers/UserMapper.cs @@ -1,6 +1,6 @@ using System; using System.Collections.Concurrent; -using Umbraco.Core.Models.Membership; +using Umbraco.Cms.Core.Models.Membership; using Umbraco.Core.Persistence.Dtos; using Umbraco.Infrastructure.Persistence.Mappers; diff --git a/src/Umbraco.Infrastructure/Persistence/NPocoDatabaseExtensions.cs b/src/Umbraco.Infrastructure/Persistence/NPocoDatabaseExtensions.cs index 6c9fff8798..7d835c6b9f 100644 --- a/src/Umbraco.Infrastructure/Persistence/NPocoDatabaseExtensions.cs +++ b/src/Umbraco.Infrastructure/Persistence/NPocoDatabaseExtensions.cs @@ -5,8 +5,10 @@ using System.Data.SqlClient; using System.Text.RegularExpressions; using NPoco; using StackExchange.Profiling.Data; +using Umbraco.Cms.Core; using Umbraco.Core.Persistence.FaultHandling; using Umbraco.Core.Persistence.SqlSyntax; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence { diff --git a/src/Umbraco.Infrastructure/Persistence/NPocoSqlExtensions.cs b/src/Umbraco.Infrastructure/Persistence/NPocoSqlExtensions.cs index c8c1aba75c..a4ca3c18ec 100644 --- a/src/Umbraco.Infrastructure/Persistence/NPocoSqlExtensions.cs +++ b/src/Umbraco.Infrastructure/Persistence/NPocoSqlExtensions.cs @@ -7,7 +7,9 @@ using System.Reflection; using System.Text; using System.Text.RegularExpressions; using NPoco; +using Umbraco.Cms.Core; using Umbraco.Core.Persistence.Querying; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence { diff --git a/src/Umbraco.Infrastructure/Persistence/NoopEmbeddedDatabaseCreator.cs b/src/Umbraco.Infrastructure/Persistence/NoopEmbeddedDatabaseCreator.cs index 8c89f1468f..eca7522e7f 100644 --- a/src/Umbraco.Infrastructure/Persistence/NoopEmbeddedDatabaseCreator.cs +++ b/src/Umbraco.Infrastructure/Persistence/NoopEmbeddedDatabaseCreator.cs @@ -2,7 +2,7 @@ { public class NoopEmbeddedDatabaseCreator : IEmbeddedDatabaseCreator { - public string ProviderName => Constants.DatabaseProviders.SqlServer; + public string ProviderName => Cms.Core.Constants.DatabaseProviders.SqlServer; public string ConnectionString { get; set; } diff --git a/src/Umbraco.Infrastructure/Persistence/Querying/ExpressionVisitorBase.cs b/src/Umbraco.Infrastructure/Persistence/Querying/ExpressionVisitorBase.cs index 91844430a9..4075e20140 100644 --- a/src/Umbraco.Infrastructure/Persistence/Querying/ExpressionVisitorBase.cs +++ b/src/Umbraco.Infrastructure/Persistence/Querying/ExpressionVisitorBase.cs @@ -5,8 +5,10 @@ using System.Collections.ObjectModel; using System.Linq; using System.Linq.Expressions; using System.Text; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Persistence; using Umbraco.Core.Persistence.SqlSyntax; -using Umbraco.Core.Composing; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence.Querying { diff --git a/src/Umbraco.Infrastructure/Persistence/Querying/ModelToSqlExpressionVisitor.cs b/src/Umbraco.Infrastructure/Persistence/Querying/ModelToSqlExpressionVisitor.cs index 7ff536caba..3164d3f165 100644 --- a/src/Umbraco.Infrastructure/Persistence/Querying/ModelToSqlExpressionVisitor.cs +++ b/src/Umbraco.Infrastructure/Persistence/Querying/ModelToSqlExpressionVisitor.cs @@ -2,8 +2,7 @@ using System.Linq.Expressions; using Umbraco.Core.Persistence.Mappers; using Umbraco.Core.Persistence.SqlSyntax; -using Umbraco.Core.Composing; -using Umbraco.Core.Models.Entities; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence.Querying { diff --git a/src/Umbraco.Infrastructure/Persistence/Querying/Query.cs b/src/Umbraco.Infrastructure/Persistence/Querying/Query.cs index c7ade3b416..95987d0ffb 100644 --- a/src/Umbraco.Infrastructure/Persistence/Querying/Query.cs +++ b/src/Umbraco.Infrastructure/Persistence/Querying/Query.cs @@ -4,6 +4,7 @@ using System.Collections.Generic; using System.Linq.Expressions; using System.Text; using NPoco; +using Umbraco.Cms.Core.Persistence.Querying; namespace Umbraco.Core.Persistence.Querying { diff --git a/src/Umbraco.Infrastructure/Persistence/Querying/QueryExtensions.cs b/src/Umbraco.Infrastructure/Persistence/Querying/QueryExtensions.cs index c6a0131f9c..c3325dea9f 100644 --- a/src/Umbraco.Infrastructure/Persistence/Querying/QueryExtensions.cs +++ b/src/Umbraco.Infrastructure/Persistence/Querying/QueryExtensions.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using Umbraco.Cms.Core.Persistence.Querying; namespace Umbraco.Core.Persistence.Querying { diff --git a/src/Umbraco.Infrastructure/Persistence/Querying/SqlExpressionExtensions.cs b/src/Umbraco.Infrastructure/Persistence/Querying/SqlExpressionExtensions.cs index 710997472c..a245ac9be5 100644 --- a/src/Umbraco.Infrastructure/Persistence/Querying/SqlExpressionExtensions.cs +++ b/src/Umbraco.Infrastructure/Persistence/Querying/SqlExpressionExtensions.cs @@ -1,6 +1,7 @@ using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence.Querying { diff --git a/src/Umbraco.Infrastructure/Persistence/Querying/SqlTranslator.cs b/src/Umbraco.Infrastructure/Persistence/Querying/SqlTranslator.cs index 880a95b31f..9fba77906c 100644 --- a/src/Umbraco.Infrastructure/Persistence/Querying/SqlTranslator.cs +++ b/src/Umbraco.Infrastructure/Persistence/Querying/SqlTranslator.cs @@ -1,5 +1,6 @@ using System; using NPoco; +using Umbraco.Cms.Core.Persistence.Querying; namespace Umbraco.Core.Persistence.Querying { diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/IContentRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/IContentRepository.cs index ad9e2d27c1..783f4b7dc6 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/IContentRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/IContentRepository.cs @@ -1,7 +1,11 @@ using System; using System.Collections.Generic; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Persistence; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; using Umbraco.Core.Persistence.DatabaseModelDefinitions; using Umbraco.Core.Persistence.Querying; using Umbraco.Core.Services; diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/IContentTypeRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/IContentTypeRepository.cs index 203db8df93..5e004f0720 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/IContentTypeRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/IContentTypeRepository.cs @@ -1,5 +1,7 @@ using System; using System.Collections.Generic; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Querying; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Querying; diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/IContentTypeRepositoryBase.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/IContentTypeRepositoryBase.cs index 4020244733..b117d1e554 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/IContentTypeRepositoryBase.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/IContentTypeRepositoryBase.cs @@ -1,5 +1,8 @@ using System; using System.Collections.Generic; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence; using Umbraco.Core.Events; using Umbraco.Core.Models; diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/IDataTypeRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/IDataTypeRepository.cs index 3a44cb10b4..c19a8e3df8 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/IDataTypeRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/IDataTypeRepository.cs @@ -1,4 +1,8 @@ using System.Collections.Generic; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence; using Umbraco.Core.Events; using Umbraco.Core.Models; diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/IDocumentRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/IDocumentRepository.cs index 0971b2047a..231929de8e 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/IDocumentRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/IDocumentRepository.cs @@ -1,7 +1,9 @@ using System; using System.Collections.Generic; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Persistence; using Umbraco.Core.Models; -using Umbraco.Core.Models.Membership; namespace Umbraco.Core.Persistence.Repositories { @@ -67,7 +69,7 @@ namespace Umbraco.Core.Persistence.Repositories /// /// EntityPermissionCollection GetPermissionsForEntity(int entityId); - + /// /// Used to add/update a permission for a content item /// diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/IEntityRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/IEntityRepository.cs index a0ddcac8e6..775165f605 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/IEntityRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/IEntityRepository.cs @@ -1,8 +1,12 @@ using NPoco; using System; using System.Collections.Generic; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Persistence; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; using Umbraco.Core.Persistence.DatabaseModelDefinitions; using Umbraco.Core.Persistence.Querying; using Umbraco.Core.Services; @@ -16,7 +20,7 @@ namespace Umbraco.Core.Persistence.Repositories IEntitySlim Get(int id, Guid objectTypeId); IEntitySlim Get(Guid key, Guid objectTypeId); - IEnumerable GetAll(Guid objectType, params int[] ids); + IEnumerable GetAll(Guid objectType, params int[] ids); IEnumerable GetAll(Guid objectType, params Guid[] keys); /// @@ -78,6 +82,6 @@ namespace Umbraco.Core.Persistence.Repositories IEnumerable GetPagedResultsByQuery(IQuery query, Guid objectType, long pageIndex, int pageSize, out long totalRecords, IQuery filter, Ordering ordering); - + } } diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/IMediaRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/IMediaRepository.cs index d4ec08a0df..478ed5ffda 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/IMediaRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/IMediaRepository.cs @@ -1,4 +1,6 @@ using System; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence; using Umbraco.Core.Models; namespace Umbraco.Core.Persistence.Repositories diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/IMediaTypeRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/IMediaTypeRepository.cs index fbaff4f510..6a8836a82c 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/IMediaTypeRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/IMediaTypeRepository.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using Umbraco.Cms.Core.Models; using Umbraco.Core.Models; namespace Umbraco.Core.Persistence.Repositories diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/IMemberRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/IMemberRepository.cs index c737c2bf66..5e1932a146 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/IMemberRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/IMemberRepository.cs @@ -1,5 +1,7 @@ using System; using System.Collections.Generic; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Querying; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Querying; diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/IMemberTypeRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/IMemberTypeRepository.cs index 3b78d9de57..40f3f72128 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/IMemberTypeRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/IMemberTypeRepository.cs @@ -1,4 +1,5 @@ -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Core.Models; namespace Umbraco.Core.Persistence.Repositories { diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/IPublicAccessRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/IPublicAccessRepository.cs index 8ed8b17114..765c9a567a 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/IPublicAccessRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/IPublicAccessRepository.cs @@ -1,4 +1,6 @@ using System; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence; using Umbraco.Core.Models; namespace Umbraco.Core.Persistence.Repositories diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/AuditEntryRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/AuditEntryRepository.cs index 59387fcb9f..2f0030055e 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/AuditEntryRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/AuditEntryRepository.cs @@ -3,13 +3,17 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; using NPoco; -using Umbraco.Core.Cache; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Persistence.Repositories; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.Persistence.Factories; using Umbraco.Core.Persistence.Querying; using Umbraco.Core.Scoping; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence.Repositories.Implement { @@ -88,7 +92,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement /// protected override string GetBaseWhereClause() { - return $"{Constants.DatabaseSchema.Tables.AuditEntry}.id = @id"; + return $"{Cms.Core.Constants.DatabaseSchema.Tables.AuditEntry}.id = @id"; } /// @@ -131,7 +135,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement public bool IsAvailable() { var tables = SqlSyntax.GetTablesInSchema(Database).ToArray(); - return tables.InvariantContains(Constants.DatabaseSchema.Tables.AuditEntry); + return tables.InvariantContains(Cms.Core.Constants.DatabaseSchema.Tables.AuditEntry); } } } diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/AuditRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/AuditRepository.cs index 8ad370672e..dfaffa3a0b 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/AuditRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/AuditRepository.cs @@ -3,6 +3,11 @@ using System.Collections.Generic; using System.Linq; using NPoco; using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Persistence.Repositories; using Umbraco.Core.Cache; using Umbraco.Core.Models; using Umbraco.Core.Persistence.DatabaseModelDefinitions; @@ -55,7 +60,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement var dto = Database.First(sql); return dto == null ? null - : new AuditItem(dto.NodeId, Enum.Parse(dto.Header), dto.UserId ?? Constants.Security.UnknownUserId, dto.EntityType, dto.Comment, dto.Parameters); + : new AuditItem(dto.NodeId, Enum.Parse(dto.Header), dto.UserId ?? Cms.Core.Constants.Security.UnknownUserId, dto.EntityType, dto.Comment, dto.Parameters); } protected override IEnumerable PerformGetAll(params int[] ids) @@ -71,7 +76,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement var dtos = Database.Fetch(sql); - return dtos.Select(x => new AuditItem(x.NodeId, Enum.Parse(x.Header), x.UserId ?? Constants.Security.UnknownUserId, x.EntityType, x.Comment, x.Parameters)).ToList(); + return dtos.Select(x => new AuditItem(x.NodeId, Enum.Parse(x.Header), x.UserId ?? Cms.Core.Constants.Security.UnknownUserId, x.EntityType, x.Comment, x.Parameters)).ToList(); } public IEnumerable Get(AuditType type, IQuery query) @@ -84,7 +89,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement var dtos = Database.Fetch(sql); - return dtos.Select(x => new AuditItem(x.NodeId, Enum.Parse(x.Header), x.UserId ?? Constants.Security.UnknownUserId, x.EntityType, x.Comment, x.Parameters)).ToList(); + return dtos.Select(x => new AuditItem(x.NodeId, Enum.Parse(x.Header), x.UserId ?? Cms.Core.Constants.Security.UnknownUserId, x.EntityType, x.Comment, x.Parameters)).ToList(); } protected override Sql GetBaseQuery(bool isCount) @@ -175,7 +180,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement totalRecords = page.TotalItems; var items = page.Items.Select( - dto => new AuditItem(dto.NodeId, Enum.ParseOrNull(dto.Header) ?? AuditType.Custom, dto.UserId ?? Constants.Security.UnknownUserId, dto.EntityType, dto.Comment, dto.Parameters)).ToList(); + dto => new AuditItem(dto.NodeId, Enum.ParseOrNull(dto.Header) ?? AuditType.Custom, dto.UserId ?? Cms.Core.Constants.Security.UnknownUserId, dto.EntityType, dto.Comment, dto.Parameters)).ToList(); // map the DateStamp for (var i = 0; i < items.Count; i++) diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ConsentRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ConsentRepository.cs index cff06a2126..6b6e209fc7 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ConsentRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ConsentRepository.cs @@ -2,13 +2,15 @@ using System; using System.Collections.Generic; using Microsoft.Extensions.Logging; using NPoco; -using Umbraco.Core.Cache; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Persistence.Querying; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Persistence.Repositories; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.Persistence.Factories; +using Umbraco.Core.Persistence.Querying; using Umbraco.Core.Scoping; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence.Repositories.Implement { diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ContentRepositoryBase.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ContentRepositoryBase.cs index bd947260ce..630d88bf53 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ContentRepositoryBase.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ContentRepositoryBase.cs @@ -3,22 +3,24 @@ using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using Microsoft.Extensions.Logging; -using Newtonsoft.Json; using NPoco; -using Umbraco.Core.Cache; -using Umbraco.Core.Composing; -using Umbraco.Core.Events; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Editors; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Editors; +using Umbraco.Cms.Core.Persistence; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.Persistence.Factories; using Umbraco.Core.Persistence.Querying; -using Umbraco.Core.PropertyEditors; using Umbraco.Core.Scoping; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using static Umbraco.Core.Persistence.SqlExtensionsStatics; +using Umbraco.Extensions; +using static Umbraco.Cms.Core.Persistence.SqlExtensionsStatics; namespace Umbraco.Core.Persistence.Repositories.Implement { @@ -92,7 +94,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement // gets all version ids, current first public virtual IEnumerable GetVersionIds(int nodeId, int maxRows) { - var template = SqlContext.Templates.Get(Constants.SqlTemplates.VersionableRepository.GetVersionIds, tsql => + var template = SqlContext.Templates.Get(Cms.Core.Constants.SqlTemplates.VersionableRepository.GetVersionIds, tsql => tsql.Select(x => x.Id) .From() .Where(x => x.NodeId == SqlTemplate.Arg("nodeId")) @@ -108,7 +110,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement // TODO: test object node type? // get the version we want to delete - var template = SqlContext.Templates.Get(Constants.SqlTemplates.VersionableRepository.GetVersion, tsql => + var template = SqlContext.Templates.Get(Cms.Core.Constants.SqlTemplates.VersionableRepository.GetVersion, tsql => tsql.Select().From().Where(x => x.Id == SqlTemplate.Arg("versionId")) ); var versionDto = Database.Fetch(template.Sql(new { versionId })).FirstOrDefault(); @@ -130,7 +132,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement // TODO: test object node type? // get the versions we want to delete, excluding the current one - var template = SqlContext.Templates.Get(Constants.SqlTemplates.VersionableRepository.GetVersions, tsql => + var template = SqlContext.Templates.Get(Cms.Core.Constants.SqlTemplates.VersionableRepository.GetVersions, tsql => tsql.Select().From().Where(x => x.NodeId == SqlTemplate.Arg("nodeId") && !x.Current && x.VersionDate < SqlTemplate.Arg("versionDate")) ); var versionDtos = Database.Fetch(template.Sql(new { nodeId, versionDate })); @@ -461,7 +463,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement // create the outer join complete sql fragment var outerJoinTempTable = $@"LEFT OUTER JOIN ({innerSqlString}) AS customPropData - ON customPropData.customPropNodeId = {Constants.DatabaseSchema.Tables.Node}.id "; // trailing space is important! + ON customPropData.customPropNodeId = {Cms.Core.Constants.DatabaseSchema.Tables.Node}.id "; // trailing space is important! // insert this just above the first WHERE var newSql = InsertBefore(sql.SQL, "WHERE", outerJoinTempTable); @@ -498,7 +500,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement var nodesToRebuild = new Dictionary>(); var validNodes = new Dictionary(); - var rootIds = new[] {Constants.System.Root, Constants.System.RecycleBinContent, Constants.System.RecycleBinMedia}; + var rootIds = new[] {Cms.Core.Constants.System.Root, Cms.Core.Constants.System.RecycleBinContent, Cms.Core.Constants.System.RecycleBinMedia}; var currentParentIds = new HashSet(rootIds); var prevParentIds = currentParentIds; var lastLevel = -1; @@ -944,7 +946,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement protected virtual string EnsureUniqueNodeName(int parentId, string nodeName, int id = 0) { - var template = SqlContext.Templates.Get(Constants.SqlTemplates.VersionableRepository.EnsureUniqueNodeName, tsql => tsql + var template = SqlContext.Templates.Get(Cms.Core.Constants.SqlTemplates.VersionableRepository.EnsureUniqueNodeName, tsql => tsql .Select(x => Alias(x.NodeId, "id"), x => Alias(x.Text, "name")) .From() .Where(x => x.NodeObjectType == SqlTemplate.Arg("nodeObjectType") && x.ParentId == SqlTemplate.Arg("parentId")) @@ -958,7 +960,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement protected virtual int GetNewChildSortOrder(int parentId, int first) { - var template = SqlContext.Templates.Get(Constants.SqlTemplates.VersionableRepository.GetSortOrder, tsql => tsql + var template = SqlContext.Templates.Get(Cms.Core.Constants.SqlTemplates.VersionableRepository.GetSortOrder, tsql => tsql .Select("MAX(sortOrder)") .From() .Where(x => x.NodeObjectType == SqlTemplate.Arg("nodeObjectType") && x.ParentId == SqlTemplate.Arg("parentId")) @@ -972,7 +974,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement protected virtual NodeDto GetParentNodeDto(int parentId) { - var template = SqlContext.Templates.Get(Constants.SqlTemplates.VersionableRepository.GetParentNode, tsql => tsql + var template = SqlContext.Templates.Get(Cms.Core.Constants.SqlTemplates.VersionableRepository.GetParentNode, tsql => tsql .Select() .From() .Where(x => x.NodeId == SqlTemplate.Arg("parentId")) @@ -986,10 +988,10 @@ namespace Umbraco.Core.Persistence.Repositories.Implement protected virtual int GetReservedId(Guid uniqueId) { - var template = SqlContext.Templates.Get(Constants.SqlTemplates.VersionableRepository.GetReservedId, tsql => tsql + var template = SqlContext.Templates.Get(Cms.Core.Constants.SqlTemplates.VersionableRepository.GetReservedId, tsql => tsql .Select(x => x.NodeId) .From() - .Where(x => x.UniqueId == SqlTemplate.Arg("uniqueId") && x.NodeObjectType == Constants.ObjectTypes.IdReservation) + .Where(x => x.UniqueId == SqlTemplate.Arg("uniqueId") && x.NodeObjectType == Cms.Core.Constants.ObjectTypes.IdReservation) ); var sql = template.Sql(new { uniqueId }); @@ -1019,7 +1021,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement trackedRelations.AddRange(_dataValueReferenceFactories.GetAllReferences(entity.Properties, PropertyEditors)); //First delete all auto-relations for this entity - RelationRepository.DeleteByParent(entity.Id, Constants.Conventions.RelationTypes.AutomaticRelationTypes); + RelationRepository.DeleteByParent(entity.Id, Cms.Core.Constants.Conventions.RelationTypes.AutomaticRelationTypes); if (trackedRelations.Count == 0) return; diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ContentTypeCommonRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ContentTypeCommonRepository.cs index 657159acc5..278d0a9a7d 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ContentTypeCommonRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ContentTypeCommonRepository.cs @@ -2,13 +2,16 @@ using System.Collections.Generic; using System.Linq; using NPoco; -using Umbraco.Core.Cache; -using Umbraco.Core.Exceptions; -using Umbraco.Core.Models; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Exceptions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Strings; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.Persistence.Factories; using Umbraco.Core.Scoping; -using Umbraco.Core.Strings; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence.Repositories.Implement { @@ -87,11 +90,11 @@ namespace Umbraco.Core.Persistence.Repositories.Implement { // create content type IContentTypeComposition contentType; - if (contentTypeDto.NodeDto.NodeObjectType == Constants.ObjectTypes.MediaType) + if (contentTypeDto.NodeDto.NodeObjectType == Cms.Core.Constants.ObjectTypes.MediaType) contentType = ContentTypeFactory.BuildMediaTypeEntity(_shortStringHelper, contentTypeDto); - else if (contentTypeDto.NodeDto.NodeObjectType == Constants.ObjectTypes.DocumentType) + else if (contentTypeDto.NodeDto.NodeObjectType == Cms.Core.Constants.ObjectTypes.DocumentType) contentType = ContentTypeFactory.BuildContentTypeEntity(_shortStringHelper, contentTypeDto); - else if (contentTypeDto.NodeDto.NodeObjectType == Constants.ObjectTypes.MemberType) + else if (contentTypeDto.NodeDto.NodeObjectType == Cms.Core.Constants.ObjectTypes.MemberType) contentType = ContentTypeFactory.BuildMemberTypeEntity(_shortStringHelper, contentTypeDto); else throw new PanicException($"The node object type {contentTypeDto.NodeDto.NodeObjectType} is not supported"); contentTypes.Add(contentType.Id, contentType); @@ -250,12 +253,12 @@ namespace Umbraco.Core.Persistence.Repositories.Implement if (contentType is IMemberType memberType) { // ensure that the group exists (ok if it already exists) - memberType.AddPropertyGroup(Constants.Conventions.Member.StandardPropertiesGroupName); + memberType.AddPropertyGroup(Cms.Core.Constants.Conventions.Member.StandardPropertiesGroupName); // ensure that property types exist (ok if they already exist) foreach (var (alias, propertyType) in builtinProperties) { - var added = memberType.AddPropertyType(propertyType, Constants.Conventions.Member.StandardPropertiesGroupName); + var added = memberType.AddPropertyType(propertyType, Cms.Core.Constants.Conventions.Member.StandardPropertiesGroupName); if (added) { diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ContentTypeRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ContentTypeRepository.cs index d5243f5019..5c644a899f 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ContentTypeRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ContentTypeRepository.cs @@ -3,15 +3,18 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; using NPoco; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Strings; using Umbraco.Core.Cache; -using Umbraco.Core.Exceptions; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.Persistence.Querying; using Umbraco.Core.Persistence.SqlSyntax; using Umbraco.Core.Scoping; -using Umbraco.Core.Strings; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence.Repositories.Implement { @@ -183,7 +186,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement return l; } - protected override Guid NodeObjectTypeId => Constants.ObjectTypes.DocumentType; + protected override Guid NodeObjectTypeId => Cms.Core.Constants.ObjectTypes.DocumentType; /// /// Deletes a content type @@ -207,7 +210,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement // like when we switch a document type, there is property data left over that is linked // to the previous document type. So we need to ensure it's removed. var sql = Sql() - .Select("DISTINCT " + Constants.DatabaseSchema.Tables.PropertyData + ".propertytypeid") + .Select("DISTINCT " + Cms.Core.Constants.DatabaseSchema.Tables.PropertyData + ".propertytypeid") .From() .InnerJoin() .On(dto => dto.PropertyTypeId, dto => dto.Id) @@ -216,7 +219,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement .Where(dto => dto.NodeId == entity.Id); //Delete all PropertyData where propertytypeid EXISTS in the subquery above - Database.Execute(SqlSyntax.GetDeleteSubquery(Constants.DatabaseSchema.Tables.PropertyData, "propertytypeid", sql)); + Database.Execute(SqlSyntax.GetDeleteSubquery(Cms.Core.Constants.DatabaseSchema.Tables.PropertyData, "propertytypeid", sql)); base.PersistDeletedItem(entity); } diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ContentTypeRepositoryBase.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ContentTypeRepositoryBase.cs index c5c38d29bc..df31300648 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ContentTypeRepositoryBase.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ContentTypeRepositoryBase.cs @@ -4,18 +4,21 @@ using System.Data; using System.Globalization; using System.Linq; using Microsoft.Extensions.Logging; -using System.Threading.Tasks; using NPoco; -using Umbraco.Core.Cache; -using Umbraco.Core.Events; -using Umbraco.Core.Exceptions; -using Umbraco.Core.Models; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Exceptions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.Persistence.Factories; using Umbraco.Core.Persistence.Querying; using Umbraco.Core.Scoping; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence.Repositories.Implement { @@ -43,7 +46,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement public IEnumerable> Move(TEntity moving, EntityContainer container) { - var parentId = Constants.System.Root; + var parentId = Cms.Core.Constants.System.Root; if (container != null) { // check path @@ -68,7 +71,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement // move to parent (or -1), update path, save moving.ParentId = parentId; var movingPath = moving.Path + ","; // save before changing - moving.Path = (container == null ? Constants.System.RootString : container.Path) + "," + moving.Id; + moving.Path = (container == null ? Cms.Core.Constants.System.RootString : container.Path) + "," + moving.Id; moving.Level = container == null ? 1 : container.Level + 1; Save(moving); @@ -286,7 +289,7 @@ AND umbracoNode.id <> @id", .SelectAll() .From() .InnerJoin().On(left => left.NodeId, right => right.NodeId) - .Where(x => x.NodeObjectType == Constants.ObjectTypes.Document) + .Where(x => x.NodeObjectType == Cms.Core.Constants.ObjectTypes.Document) .Where(x => x.ContentTypeId == entity.Id); var contentDtos = Database.Fetch(sql); @@ -1345,8 +1348,8 @@ WHERE cmsContentType." + aliasColumn + @" LIKE @pattern", public bool HasContainerInPath(params int[] ids) { var sql = new Sql($@"SELECT COUNT(*) FROM cmsContentType -INNER JOIN {Constants.DatabaseSchema.Tables.Content} ON cmsContentType.nodeId={Constants.DatabaseSchema.Tables.Content}.contentTypeId -WHERE {Constants.DatabaseSchema.Tables.Content}.nodeId IN (@ids) AND cmsContentType.isContainer=@isContainer", new { ids, isContainer = true }); +INNER JOIN {Cms.Core.Constants.DatabaseSchema.Tables.Content} ON cmsContentType.nodeId={Cms.Core.Constants.DatabaseSchema.Tables.Content}.contentTypeId +WHERE {Cms.Core.Constants.DatabaseSchema.Tables.Content}.nodeId IN (@ids) AND cmsContentType.isContainer=@isContainer", new { ids, isContainer = true }); return Database.ExecuteScalar(sql) > 0; } @@ -1356,7 +1359,7 @@ WHERE {Constants.DatabaseSchema.Tables.Content}.nodeId IN (@ids) AND cmsContentT public bool HasContentNodes(int id) { var sql = new Sql( - $"SELECT CASE WHEN EXISTS (SELECT * FROM {Constants.DatabaseSchema.Tables.Content} WHERE contentTypeId = @id) THEN 1 ELSE 0 END", + $"SELECT CASE WHEN EXISTS (SELECT * FROM {Cms.Core.Constants.DatabaseSchema.Tables.Content} WHERE contentTypeId = @id) THEN 1 ELSE 0 END", new { id }); return Database.ExecuteScalar(sql) == 1; } @@ -1376,7 +1379,7 @@ WHERE {Constants.DatabaseSchema.Tables.Content}.nodeId IN (@ids) AND cmsContentT "DELETE FROM cmsContentTypeAllowedContentType WHERE AllowedId = @id", "DELETE FROM cmsContentType2ContentType WHERE parentContentTypeId = @id", "DELETE FROM cmsContentType2ContentType WHERE childContentTypeId = @id", - "DELETE FROM " + Constants.DatabaseSchema.Tables.PropertyData + " WHERE propertyTypeId IN (SELECT id FROM cmsPropertyType WHERE contentTypeId = @id)", + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.PropertyData + " WHERE propertyTypeId IN (SELECT id FROM cmsPropertyType WHERE contentTypeId = @id)", "DELETE FROM cmsPropertyType WHERE contentTypeId = @id", "DELETE FROM cmsPropertyTypeGroup WHERE contenttypeNodeId = @id", }; diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DataTypeContainerRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DataTypeContainerRepository.cs index 7ac72b0cb3..a374ace783 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DataTypeContainerRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DataTypeContainerRepository.cs @@ -1,4 +1,6 @@ using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Persistence.Repositories; using Umbraco.Core.Cache; using Umbraco.Core.Scoping; @@ -7,7 +9,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement internal class DataTypeContainerRepository : EntityContainerRepository, IDataTypeContainerRepository { public DataTypeContainerRepository(IScopeAccessor scopeAccessor, AppCaches cache, ILogger logger) - : base(scopeAccessor, cache, logger, Constants.ObjectTypes.DataTypeContainer) + : base(scopeAccessor, cache, logger, Cms.Core.Constants.ObjectTypes.DataTypeContainer) { } } } diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DataTypeRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DataTypeRepository.cs index b50f46e9a6..1c7dafaf4d 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DataTypeRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DataTypeRepository.cs @@ -5,19 +5,22 @@ using System.Globalization; using System.Linq; using Microsoft.Extensions.Logging; using NPoco; -using Umbraco.Core.Cache; -using Umbraco.Core.Events; -using Umbraco.Core.Exceptions; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Exceptions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.Persistence.Factories; using Umbraco.Core.Persistence.Querying; -using Umbraco.Core.PropertyEditors; using Umbraco.Core.Scoping; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using static Umbraco.Core.Persistence.SqlExtensionsStatics; +using Umbraco.Extensions; +using static Umbraco.Cms.Core.Persistence.SqlExtensionsStatics; namespace Umbraco.Core.Persistence.Repositories.Implement { @@ -109,7 +112,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement return Array.Empty(); } - protected override Guid NodeObjectTypeId => Constants.ObjectTypes.DataType; + protected override Guid NodeObjectTypeId => Cms.Core.Constants.ObjectTypes.DataType; #endregion @@ -313,7 +316,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement private string EnsureUniqueNodeName(string nodeName, int id = 0) { - var template = SqlContext.Templates.Get(Constants.SqlTemplates.DataTypeRepository.EnsureUniqueNodeName, tsql => tsql + var template = SqlContext.Templates.Get(Cms.Core.Constants.SqlTemplates.DataTypeRepository.EnsureUniqueNodeName, tsql => tsql .Select(x => Alias(x.NodeId, "id"), x => Alias(x.Text, "name")) .From() .Where(x => x.NodeObjectType == SqlTemplate.Arg("nodeObjectType"))); @@ -325,7 +328,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement } - [TableName(Constants.DatabaseSchema.Tables.ContentType)] + [TableName(Cms.Core.Constants.DatabaseSchema.Tables.ContentType)] private class ContentTypeReferenceDto : ContentTypeDto { [ResultColumn] @@ -333,7 +336,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement public List PropertyTypes { get; set; } } - [TableName(Constants.DatabaseSchema.Tables.PropertyType)] + [TableName(Cms.Core.Constants.DatabaseSchema.Tables.PropertyType)] private class PropertyTypeReferenceDto { [Column("ptAlias")] diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DictionaryRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DictionaryRepository.cs index abab07a7bb..b14d650cb8 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DictionaryRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DictionaryRepository.cs @@ -3,13 +3,18 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; using NPoco; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Persistence.Repositories; using Umbraco.Core.Cache; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.Persistence.Factories; using Umbraco.Core.Persistence.Querying; using Umbraco.Core.Scoping; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence.Repositories.Implement { diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DocumentBlueprintRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DocumentBlueprintRepository.cs index a647ba49d3..96260083c1 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DocumentBlueprintRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DocumentBlueprintRepository.cs @@ -1,7 +1,11 @@ using System; using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Cache; -using Umbraco.Core.Configuration.UmbracoSettings; using Umbraco.Core.PropertyEditors; using Umbraco.Core.Scoping; using Umbraco.Core.Serialization; @@ -43,6 +47,6 @@ namespace Umbraco.Core.Persistence.Repositories.Implement protected override bool EnsureUniqueNaming => false; // duplicates are allowed - protected override Guid NodeObjectTypeId => Constants.ObjectTypes.DocumentBlueprint; + protected override Guid NodeObjectTypeId => Cms.Core.Constants.ObjectTypes.DocumentBlueprint; } } diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DocumentRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DocumentRepository.cs index f3b9ca58d6..1644d283e2 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DocumentRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DocumentRepository.cs @@ -3,18 +3,24 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; using NPoco; -using Umbraco.Core.Cache; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Persistence; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Models.Membership; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.Persistence.Factories; using Umbraco.Core.Persistence.Querying; using Umbraco.Core.Persistence.SqlSyntax; -using Umbraco.Core.PropertyEditors; using Umbraco.Core.Scoping; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence.Repositories.Implement { @@ -87,7 +93,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement #region Repository Base - protected override Guid NodeObjectTypeId => Constants.ObjectTypes.Document; + protected override Guid NodeObjectTypeId => Cms.Core.Constants.ObjectTypes.Document; protected override IContent PerformGet(int id) { @@ -215,35 +221,35 @@ namespace Umbraco.Core.Persistence.Repositories.Implement // ah maybe not, that what's used for eg Exists in base repo protected override string GetBaseWhereClause() { - return $"{Constants.DatabaseSchema.Tables.Node}.id = @id"; + return $"{Cms.Core.Constants.DatabaseSchema.Tables.Node}.id = @id"; } protected override IEnumerable GetDeleteClauses() { var list = new List { - "DELETE FROM " + Constants.DatabaseSchema.Tables.ContentSchedule + " WHERE nodeId = @id", - "DELETE FROM " + Constants.DatabaseSchema.Tables.RedirectUrl + " WHERE contentKey IN (SELECT uniqueId FROM " + Constants.DatabaseSchema.Tables.Node + " WHERE id = @id)", - "DELETE FROM " + Constants.DatabaseSchema.Tables.User2NodeNotify + " WHERE nodeId = @id", - "DELETE FROM " + Constants.DatabaseSchema.Tables.UserGroup2NodePermission + " WHERE nodeId = @id", - "DELETE FROM " + Constants.DatabaseSchema.Tables.UserStartNode + " WHERE startNode = @id", - "UPDATE " + Constants.DatabaseSchema.Tables.UserGroup + " SET startContentId = NULL WHERE startContentId = @id", - "DELETE FROM " + Constants.DatabaseSchema.Tables.Relation + " WHERE parentId = @id", - "DELETE FROM " + Constants.DatabaseSchema.Tables.Relation + " WHERE childId = @id", - "DELETE FROM " + Constants.DatabaseSchema.Tables.TagRelationship + " WHERE nodeId = @id", - "DELETE FROM " + Constants.DatabaseSchema.Tables.Domain + " WHERE domainRootStructureID = @id", - "DELETE FROM " + Constants.DatabaseSchema.Tables.Document + " WHERE nodeId = @id", - "DELETE FROM " + Constants.DatabaseSchema.Tables.DocumentCultureVariation + " WHERE nodeId = @id", - "DELETE FROM " + Constants.DatabaseSchema.Tables.DocumentVersion + " WHERE id IN (SELECT id FROM " + Constants.DatabaseSchema.Tables.ContentVersion + " WHERE nodeId = @id)", - "DELETE FROM " + Constants.DatabaseSchema.Tables.PropertyData + " WHERE versionId IN (SELECT id FROM " + Constants.DatabaseSchema.Tables.ContentVersion + " WHERE nodeId = @id)", - "DELETE FROM " + Constants.DatabaseSchema.Tables.ContentVersionCultureVariation + " WHERE versionId IN (SELECT id FROM " + Constants.DatabaseSchema.Tables.ContentVersion + " WHERE nodeId = @id)", - "DELETE FROM " + Constants.DatabaseSchema.Tables.ContentVersion + " WHERE nodeId = @id", - "DELETE FROM " + Constants.DatabaseSchema.Tables.Content + " WHERE nodeId = @id", - "DELETE FROM " + Constants.DatabaseSchema.Tables.AccessRule + " WHERE accessId IN (SELECT id FROM " + Constants.DatabaseSchema.Tables.Access + " WHERE nodeId = @id OR loginNodeId = @id OR noAccessNodeId = @id)", - "DELETE FROM " + Constants.DatabaseSchema.Tables.Access + " WHERE nodeId = @id", - "DELETE FROM " + Constants.DatabaseSchema.Tables.Access + " WHERE loginNodeId = @id", - "DELETE FROM " + Constants.DatabaseSchema.Tables.Access + " WHERE noAccessNodeId = @id", - "DELETE FROM " + Constants.DatabaseSchema.Tables.Node + " WHERE id = @id" + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.ContentSchedule + " WHERE nodeId = @id", + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.RedirectUrl + " WHERE contentKey IN (SELECT uniqueId FROM " + Cms.Core.Constants.DatabaseSchema.Tables.Node + " WHERE id = @id)", + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.User2NodeNotify + " WHERE nodeId = @id", + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.UserGroup2NodePermission + " WHERE nodeId = @id", + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.UserStartNode + " WHERE startNode = @id", + "UPDATE " + Cms.Core.Constants.DatabaseSchema.Tables.UserGroup + " SET startContentId = NULL WHERE startContentId = @id", + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.Relation + " WHERE parentId = @id", + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.Relation + " WHERE childId = @id", + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.TagRelationship + " WHERE nodeId = @id", + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.Domain + " WHERE domainRootStructureID = @id", + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.Document + " WHERE nodeId = @id", + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.DocumentCultureVariation + " WHERE nodeId = @id", + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.DocumentVersion + " WHERE id IN (SELECT id FROM " + Cms.Core.Constants.DatabaseSchema.Tables.ContentVersion + " WHERE nodeId = @id)", + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.PropertyData + " WHERE versionId IN (SELECT id FROM " + Cms.Core.Constants.DatabaseSchema.Tables.ContentVersion + " WHERE nodeId = @id)", + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.ContentVersionCultureVariation + " WHERE versionId IN (SELECT id FROM " + Cms.Core.Constants.DatabaseSchema.Tables.ContentVersion + " WHERE nodeId = @id)", + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.ContentVersion + " WHERE nodeId = @id", + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.Content + " WHERE nodeId = @id", + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.AccessRule + " WHERE accessId IN (SELECT id FROM " + Cms.Core.Constants.DatabaseSchema.Tables.Access + " WHERE nodeId = @id OR loginNodeId = @id OR noAccessNodeId = @id)", + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.Access + " WHERE nodeId = @id", + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.Access + " WHERE loginNodeId = @id", + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.Access + " WHERE noAccessNodeId = @id", + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.Node + " WHERE id = @id" }; return list; } @@ -929,7 +935,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement #region Recycle Bin - public override int RecycleBinId => Constants.System.RecycleBinContent; + public override int RecycleBinId => Cms.Core.Constants.System.RecycleBinContent; #endregion diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DocumentTypeContainerRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DocumentTypeContainerRepository.cs index a79247d17d..9343451a99 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DocumentTypeContainerRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DocumentTypeContainerRepository.cs @@ -1,4 +1,6 @@ using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Persistence.Repositories; using Umbraco.Core.Cache; using Umbraco.Core.Scoping; @@ -7,7 +9,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement internal class DocumentTypeContainerRepository : EntityContainerRepository, IDocumentTypeContainerRepository { public DocumentTypeContainerRepository(IScopeAccessor scopeAccessor, AppCaches cache, ILogger logger) - : base(scopeAccessor, cache, logger, Constants.ObjectTypes.DocumentTypeContainer) + : base(scopeAccessor, cache, logger, Cms.Core.Constants.ObjectTypes.DocumentTypeContainer) { } } } diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DomainRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DomainRepository.cs index e9e62d76c9..c2af14cd79 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DomainRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DomainRepository.cs @@ -4,12 +4,15 @@ using System.Data; using System.Linq; using Microsoft.Extensions.Logging; using NPoco; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Persistence.Repositories; using Umbraco.Core.Cache; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; using Umbraco.Core.Persistence.Dtos; -using Umbraco.Core.Persistence.Querying; using Umbraco.Core.Scoping; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence.Repositories.Implement { @@ -92,7 +95,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement if (entity.RootContentId.HasValue) { - var contentExists = Database.ExecuteScalar($"SELECT COUNT(*) FROM {Constants.DatabaseSchema.Tables.Content} WHERE nodeId = @id", new { id = entity.RootContentId.Value }); + var contentExists = Database.ExecuteScalar($"SELECT COUNT(*) FROM {Cms.Core.Constants.DatabaseSchema.Tables.Content} WHERE nodeId = @id", new { id = entity.RootContentId.Value }); if (contentExists == 0) throw new NullReferenceException("No content exists with id " + entity.RootContentId.Value); } @@ -130,7 +133,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement if (entity.RootContentId.HasValue) { - var contentExists = Database.ExecuteScalar($"SELECT COUNT(*) FROM {Constants.DatabaseSchema.Tables.Content} WHERE nodeId = @id", new { id = entity.RootContentId.Value }); + var contentExists = Database.ExecuteScalar($"SELECT COUNT(*) FROM {Cms.Core.Constants.DatabaseSchema.Tables.Content} WHERE nodeId = @id", new { id = entity.RootContentId.Value }); if (contentExists == 0) throw new NullReferenceException("No content exists with id " + entity.RootContentId.Value); } diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/EntityContainerRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/EntityContainerRepository.cs index 26159c4fdf..e34a962ccf 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/EntityContainerRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/EntityContainerRepository.cs @@ -3,6 +3,10 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; using NPoco; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Persistence.Repositories; using Umbraco.Core.Cache; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Dtos; @@ -21,7 +25,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement public EntityContainerRepository(IScopeAccessor scopeAccessor, AppCaches cache, ILogger logger, Guid containerObjectType) : base(scopeAccessor, cache, logger) { - var allowedContainers = new[] { Constants.ObjectTypes.DocumentTypeContainer, Constants.ObjectTypes.MediaTypeContainer, Constants.ObjectTypes.DataTypeContainer }; + var allowedContainers = new[] { Cms.Core.Constants.ObjectTypes.DocumentTypeContainer, Cms.Core.Constants.ObjectTypes.MediaTypeContainer, Cms.Core.Constants.ObjectTypes.DataTypeContainer }; _containerObjectType = containerObjectType; if (allowedContainers.Contains(_containerObjectType) == false) throw new InvalidOperationException("No container type exists with ID: " + _containerObjectType); @@ -92,7 +96,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement var entity = new EntityContainer(nodeDto.NodeId, nodeDto.UniqueId, nodeDto.ParentId, nodeDto.Path, nodeDto.Level, nodeDto.SortOrder, containedObjectType, - nodeDto.Text, nodeDto.UserId ?? Constants.Security.UnknownUserId); + nodeDto.Text, nodeDto.UserId ?? Cms.Core.Constants.Security.UnknownUserId); // reset dirty initial properties (U4-1946) entity.ResetDirtyProperties(false); diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/EntityRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/EntityRepository.cs index 41f6a065d4..32174ebb17 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/EntityRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/EntityRepository.cs @@ -2,15 +2,18 @@ using System; using System.Collections.Generic; using System.Linq; using NPoco; -using Umbraco.Core.Cache; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.Persistence.Querying; using Umbraco.Core.Persistence.SqlSyntax; using Umbraco.Core.Scoping; -using Umbraco.Core.Services; -using static Umbraco.Core.Persistence.SqlExtensionsStatics; +using Umbraco.Extensions; +using static Umbraco.Cms.Core.Persistence.SqlExtensionsStatics; namespace Umbraco.Core.Persistence.Repositories.Implement { @@ -40,9 +43,9 @@ namespace Umbraco.Core.Persistence.Repositories.Implement public IEnumerable GetPagedResultsByQuery(IQuery query, Guid[] objectTypes, long pageIndex, int pageSize, out long totalRecords, IQuery filter, Ordering ordering, Action> sqlCustomization = null) { - var isContent = objectTypes.Any(objectType => objectType == Constants.ObjectTypes.Document || objectType == Constants.ObjectTypes.DocumentBlueprint); - var isMedia = objectTypes.Any(objectType => objectType == Constants.ObjectTypes.Media); - var isMember = objectTypes.Any(objectType => objectType == Constants.ObjectTypes.Member); + var isContent = objectTypes.Any(objectType => objectType == Cms.Core.Constants.ObjectTypes.Document || objectType == Cms.Core.Constants.ObjectTypes.DocumentBlueprint); + var isMedia = objectTypes.Any(objectType => objectType == Cms.Core.Constants.ObjectTypes.Media); + var isMember = objectTypes.Any(objectType => objectType == Cms.Core.Constants.ObjectTypes.Member); Sql sql = GetBaseWhere(isContent, isMedia, isMember, false, s => { @@ -118,9 +121,9 @@ namespace Umbraco.Core.Persistence.Repositories.Implement public IEntitySlim Get(Guid key, Guid objectTypeId) { - var isContent = objectTypeId == Constants.ObjectTypes.Document || objectTypeId == Constants.ObjectTypes.DocumentBlueprint; - var isMedia = objectTypeId == Constants.ObjectTypes.Media; - var isMember = objectTypeId == Constants.ObjectTypes.Member; + var isContent = objectTypeId == Cms.Core.Constants.ObjectTypes.Document || objectTypeId == Cms.Core.Constants.ObjectTypes.DocumentBlueprint; + var isMedia = objectTypeId == Cms.Core.Constants.ObjectTypes.Media; + var isMember = objectTypeId == Cms.Core.Constants.ObjectTypes.Member; var sql = GetFullSqlForEntityType(isContent, isMedia, isMember, objectTypeId, key); return GetEntity(sql, isContent, isMedia, isMember); @@ -135,9 +138,9 @@ namespace Umbraco.Core.Persistence.Repositories.Implement public IEntitySlim Get(int id, Guid objectTypeId) { - var isContent = objectTypeId == Constants.ObjectTypes.Document || objectTypeId == Constants.ObjectTypes.DocumentBlueprint; - var isMedia = objectTypeId == Constants.ObjectTypes.Media; - var isMember = objectTypeId == Constants.ObjectTypes.Member; + var isContent = objectTypeId == Cms.Core.Constants.ObjectTypes.Document || objectTypeId == Cms.Core.Constants.ObjectTypes.DocumentBlueprint; + var isMedia = objectTypeId == Cms.Core.Constants.ObjectTypes.Media; + var isMember = objectTypeId == Cms.Core.Constants.ObjectTypes.Member; var sql = GetFullSqlForEntityType(isContent, isMedia, isMember, objectTypeId, id); return GetEntity(sql, isContent, isMedia, isMember); @@ -180,9 +183,9 @@ namespace Umbraco.Core.Persistence.Repositories.Implement private IEnumerable PerformGetAll(Guid objectType, Action> filter = null) { - var isContent = objectType == Constants.ObjectTypes.Document || objectType == Constants.ObjectTypes.DocumentBlueprint; - var isMedia = objectType == Constants.ObjectTypes.Media; - var isMember = objectType == Constants.ObjectTypes.Member; + var isContent = objectType == Cms.Core.Constants.ObjectTypes.Document || objectType == Cms.Core.Constants.ObjectTypes.DocumentBlueprint; + var isMedia = objectType == Cms.Core.Constants.ObjectTypes.Media; + var isMember = objectType == Cms.Core.Constants.ObjectTypes.Member; var sql = GetFullSqlForEntityType(isContent, isMedia, isMember, objectType, filter); return GetEntities(sql, isContent, isMedia, isMember); @@ -222,9 +225,9 @@ namespace Umbraco.Core.Persistence.Repositories.Implement public IEnumerable GetByQuery(IQuery query, Guid objectType) { - var isContent = objectType == Constants.ObjectTypes.Document || objectType == Constants.ObjectTypes.DocumentBlueprint; - var isMedia = objectType == Constants.ObjectTypes.Media; - var isMember = objectType == Constants.ObjectTypes.Member; + var isContent = objectType == Cms.Core.Constants.ObjectTypes.Document || objectType == Cms.Core.Constants.ObjectTypes.DocumentBlueprint; + var isMedia = objectType == Cms.Core.Constants.ObjectTypes.Media; + var isMember = objectType == Cms.Core.Constants.ObjectTypes.Member; var sql = GetBaseWhere(isContent, isMedia, isMember, false, null, new[] { objectType }); @@ -510,7 +513,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement default: orderBy = ordering.OrderBy; break; - } + } if (ordering.Direction == Direction.Ascending) sql.OrderBy(orderBy); @@ -605,11 +608,11 @@ namespace Umbraco.Core.Persistence.Repositories.Implement private EntitySlim BuildEntity(BaseDto dto) { - if (dto.NodeObjectType == Constants.ObjectTypes.Document) + if (dto.NodeObjectType == Cms.Core.Constants.ObjectTypes.Document) return BuildDocumentEntity(dto); - if (dto.NodeObjectType == Constants.ObjectTypes.Media) + if (dto.NodeObjectType == Cms.Core.Constants.ObjectTypes.Media) return BuildMediaEntity(dto); - if (dto.NodeObjectType == Constants.ObjectTypes.Member) + if (dto.NodeObjectType == Cms.Core.Constants.ObjectTypes.Member) return BuildMemberEntity(dto); // EntitySlim does not track changes @@ -623,7 +626,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement entity.Trashed = dto.Trashed; entity.CreateDate = dto.CreateDate; entity.UpdateDate = dto.VersionDate; - entity.CreatorId = dto.UserId ?? Constants.Security.UnknownUserId; + entity.CreatorId = dto.UserId ?? Cms.Core.Constants.Security.UnknownUserId; entity.Id = dto.NodeId; entity.Key = dto.UniqueId; entity.Level = dto.Level; diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/EntityRepositoryBase.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/EntityRepositoryBase.cs index 8f9c5102ab..9502445979 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/EntityRepositoryBase.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/EntityRepositoryBase.cs @@ -3,14 +3,18 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; using NPoco; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Persistence; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Scoping; using Umbraco.Core.Cache; -using Umbraco.Core.Models.Entities; using Umbraco.Core.Persistence.Querying; using Umbraco.Core.Scoping; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence.Repositories.Implement { - /// /// Provides a base class to all based repositories. /// diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ExternalLoginRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ExternalLoginRepository.cs index 29cbdf04e5..79977d3282 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ExternalLoginRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ExternalLoginRepository.cs @@ -3,13 +3,16 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; using NPoco; -using Umbraco.Core.Cache; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Models.Identity; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Identity; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Persistence.Repositories; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.Persistence.Factories; using Umbraco.Core.Persistence.Querying; using Umbraco.Core.Scoping; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence.Repositories.Implement { diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/FileRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/FileRepository.cs index fb7ccff420..73c33af58e 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/FileRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/FileRepository.cs @@ -1,10 +1,11 @@ using System.Collections.Generic; using System.IO; using System.Text; -using Umbraco.Core.IO; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Scoping; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Persistence; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence.Repositories.Implement { diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/KeyValueRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/KeyValueRepository.cs index ba3754486c..861a7c4bc2 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/KeyValueRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/KeyValueRepository.cs @@ -3,12 +3,13 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; using NPoco; -using Umbraco.Core.Cache; -using Umbraco.Core.Models; -using Umbraco.Core.Persistence; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Persistence.Repositories; using Umbraco.Core.Persistence.Dtos; -using Umbraco.Core.Persistence.Querying; using Umbraco.Core.Scoping; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence.Repositories.Implement { @@ -50,7 +51,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement protected override string GetBaseWhereClause() { - return Constants.DatabaseSchema.Tables.KeyValue + ".key = @id"; + return Cms.Core.Constants.DatabaseSchema.Tables.KeyValue + ".key = @id"; } protected override IEnumerable GetDeleteClauses() diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/LanguageRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/LanguageRepository.cs index bd72a3faf5..3ead7a9d80 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/LanguageRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/LanguageRepository.cs @@ -4,15 +4,18 @@ using System.Linq; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using NPoco; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Persistence.Repositories; using Umbraco.Core.Cache; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.Persistence.Factories; using Umbraco.Core.Persistence.Querying; using Umbraco.Core.Scoping; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence.Repositories.Implement { @@ -112,13 +115,13 @@ namespace Umbraco.Core.Persistence.Repositories.Implement { //NOTE: There is no constraint between the Language and cmsDictionary/cmsLanguageText tables (?) // but we still need to remove them - "DELETE FROM " + Constants.DatabaseSchema.Tables.DictionaryValue + " WHERE languageId = @id", - "DELETE FROM " + Constants.DatabaseSchema.Tables.PropertyData + " WHERE languageId = @id", - "DELETE FROM " + Constants.DatabaseSchema.Tables.ContentVersionCultureVariation + " WHERE languageId = @id", - "DELETE FROM " + Constants.DatabaseSchema.Tables.DocumentCultureVariation + " WHERE languageId = @id", - "DELETE FROM " + Constants.DatabaseSchema.Tables.TagRelationship + " WHERE tagId IN (SELECT id FROM " + Constants.DatabaseSchema.Tables.Tag + " WHERE languageId = @id)", - "DELETE FROM " + Constants.DatabaseSchema.Tables.Tag + " WHERE languageId = @id", - "DELETE FROM " + Constants.DatabaseSchema.Tables.Language + " WHERE id = @id" + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.DictionaryValue + " WHERE languageId = @id", + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.PropertyData + " WHERE languageId = @id", + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.ContentVersionCultureVariation + " WHERE languageId = @id", + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.DocumentCultureVariation + " WHERE languageId = @id", + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.TagRelationship + " WHERE tagId IN (SELECT id FROM " + Cms.Core.Constants.DatabaseSchema.Tables.Tag + " WHERE languageId = @id)", + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.Tag + " WHERE languageId = @id", + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.Language + " WHERE id = @id" }; return list; } diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/LanguageRepositoryExtensions.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/LanguageRepositoryExtensions.cs index b48b5588de..273e2c1e7c 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/LanguageRepositoryExtensions.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/LanguageRepositoryExtensions.cs @@ -1,4 +1,7 @@ -namespace Umbraco.Core.Persistence.Repositories.Implement +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Extensions; + +namespace Umbraco.Core.Persistence.Repositories.Implement { internal static class LanguageRepositoryExtensions { diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MacroRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MacroRepository.cs index 678f826fb4..3962d32c76 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MacroRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MacroRepository.cs @@ -3,14 +3,17 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; using NPoco; -using Umbraco.Core.Cache; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Strings; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.Persistence.Factories; using Umbraco.Core.Persistence.Querying; using Umbraco.Core.Scoping; -using Umbraco.Core.Strings; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence.Repositories.Implement { diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MediaRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MediaRepository.cs index 7e3425707a..da2c6c6ed5 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MediaRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MediaRepository.cs @@ -4,18 +4,22 @@ using System.Linq; using System.Text.RegularExpressions; using Microsoft.Extensions.Logging; using NPoco; -using Umbraco.Core.Cache; -using Umbraco.Core.Exceptions; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Persistence; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.Persistence.Factories; using Umbraco.Core.Persistence.Querying; -using Umbraco.Core.PropertyEditors; using Umbraco.Core.Scoping; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using static Umbraco.Core.Persistence.SqlExtensionsStatics; +using Umbraco.Extensions; +using static Umbraco.Cms.Core.Persistence.SqlExtensionsStatics; namespace Umbraco.Core.Persistence.Repositories.Implement { @@ -59,7 +63,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement #region Repository Base - protected override Guid NodeObjectTypeId => Constants.ObjectTypes.Media; + protected override Guid NodeObjectTypeId => Cms.Core.Constants.ObjectTypes.Media; protected override IMedia PerformGet(int id) { @@ -150,26 +154,26 @@ namespace Umbraco.Core.Persistence.Repositories.Implement // ah maybe not, that what's used for eg Exists in base repo protected override string GetBaseWhereClause() { - return $"{Constants.DatabaseSchema.Tables.Node}.id = @id"; + return $"{Cms.Core.Constants.DatabaseSchema.Tables.Node}.id = @id"; } protected override IEnumerable GetDeleteClauses() { var list = new List { - "DELETE FROM " + Constants.DatabaseSchema.Tables.User2NodeNotify + " WHERE nodeId = @id", - "DELETE FROM " + Constants.DatabaseSchema.Tables.UserGroup2NodePermission + " WHERE nodeId = @id", - "DELETE FROM " + Constants.DatabaseSchema.Tables.UserStartNode + " WHERE startNode = @id", - "UPDATE " + Constants.DatabaseSchema.Tables.UserGroup + " SET startContentId = NULL WHERE startContentId = @id", - "DELETE FROM " + Constants.DatabaseSchema.Tables.Relation + " WHERE parentId = @id", - "DELETE FROM " + Constants.DatabaseSchema.Tables.Relation + " WHERE childId = @id", - "DELETE FROM " + Constants.DatabaseSchema.Tables.TagRelationship + " WHERE nodeId = @id", - "DELETE FROM " + Constants.DatabaseSchema.Tables.Document + " WHERE nodeId = @id", - "DELETE FROM " + Constants.DatabaseSchema.Tables.MediaVersion + " WHERE id IN (SELECT id FROM " + Constants.DatabaseSchema.Tables.ContentVersion + " WHERE nodeId = @id)", - "DELETE FROM " + Constants.DatabaseSchema.Tables.PropertyData + " WHERE versionId IN (SELECT id FROM " + Constants.DatabaseSchema.Tables.ContentVersion + " WHERE nodeId = @id)", - "DELETE FROM " + Constants.DatabaseSchema.Tables.ContentVersion + " WHERE nodeId = @id", - "DELETE FROM " + Constants.DatabaseSchema.Tables.Content + " WHERE nodeId = @id", - "DELETE FROM " + Constants.DatabaseSchema.Tables.Node + " WHERE id = @id" + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.User2NodeNotify + " WHERE nodeId = @id", + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.UserGroup2NodePermission + " WHERE nodeId = @id", + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.UserStartNode + " WHERE startNode = @id", + "UPDATE " + Cms.Core.Constants.DatabaseSchema.Tables.UserGroup + " SET startContentId = NULL WHERE startContentId = @id", + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.Relation + " WHERE parentId = @id", + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.Relation + " WHERE childId = @id", + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.TagRelationship + " WHERE nodeId = @id", + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.Document + " WHERE nodeId = @id", + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.MediaVersion + " WHERE id IN (SELECT id FROM " + Cms.Core.Constants.DatabaseSchema.Tables.ContentVersion + " WHERE nodeId = @id)", + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.PropertyData + " WHERE versionId IN (SELECT id FROM " + Cms.Core.Constants.DatabaseSchema.Tables.ContentVersion + " WHERE nodeId = @id)", + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.ContentVersion + " WHERE nodeId = @id", + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.Content + " WHERE nodeId = @id", + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.Node + " WHERE id = @id" }; return list; } @@ -384,7 +388,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement #region Recycle Bin - public override int RecycleBinId => Constants.System.RecycleBinMedia; + public override int RecycleBinId => Cms.Core.Constants.System.RecycleBinMedia; #endregion @@ -503,9 +507,9 @@ namespace Umbraco.Core.Persistence.Repositories.Implement private IEnumerable MapDtosToContent(List dtos, bool withCache = false) { - var temps = new List>(); + var temps = new List>(); var contentTypes = new Dictionary(); - var content = new Models.Media[dtos.Count]; + var content = new Media[dtos.Count]; for (var i = 0; i < dtos.Count; i++) { @@ -517,7 +521,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement var cached = IsolatedCache.GetCacheItem(RepositoryCacheKeys.GetKey(dto.NodeId)); if (cached != null && cached.VersionId == dto.ContentVersionDto.Id) { - content[i] = (Models.Media) cached; + content[i] = (Media) cached; continue; } } @@ -534,7 +538,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement // need properties var versionId = dto.ContentVersionDto.Id; - temps.Add(new TempContent(dto.NodeId, versionId, 0, contentType, c)); + temps.Add(new TempContent(dto.NodeId, versionId, 0, contentType, c)); } // load all properties for all documents from database in 1 query - indexed by version id @@ -559,8 +563,8 @@ namespace Umbraco.Core.Persistence.Repositories.Implement // get properties - indexed by version id var versionId = dto.ContentVersionDto.Id; - var temp = new TempContent(dto.NodeId, versionId, 0, contentType); - var properties = GetPropertyCollections(new List> { temp }); + var temp = new TempContent(dto.NodeId, versionId, 0, contentType); + var properties = GetPropertyCollections(new List> { temp }); media.Properties = properties[versionId]; // reset dirty initial properties (U4-1946) diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MediaTypeContainerRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MediaTypeContainerRepository.cs index d660ebb0b0..37e68dd697 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MediaTypeContainerRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MediaTypeContainerRepository.cs @@ -1,4 +1,6 @@ using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Persistence.Repositories; using Umbraco.Core.Cache; using Umbraco.Core.Scoping; @@ -7,7 +9,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement class MediaTypeContainerRepository : EntityContainerRepository, IMediaTypeContainerRepository { public MediaTypeContainerRepository(IScopeAccessor scopeAccessor, AppCaches cache, ILogger logger) - : base(scopeAccessor, cache, logger, Constants.ObjectTypes.MediaTypeContainer) + : base(scopeAccessor, cache, logger, Cms.Core.Constants.ObjectTypes.MediaTypeContainer) { } } } diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MediaTypeRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MediaTypeRepository.cs index fdb4817aeb..ff154621ff 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MediaTypeRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MediaTypeRepository.cs @@ -3,14 +3,17 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; using NPoco; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Strings; using Umbraco.Core.Cache; -using Umbraco.Core.Exceptions; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.Persistence.Querying; using Umbraco.Core.Scoping; -using Umbraco.Core.Strings; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence.Repositories.Implement { @@ -98,7 +101,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement return l; } - protected override Guid NodeObjectTypeId => Constants.ObjectTypes.MediaType; + protected override Guid NodeObjectTypeId => Cms.Core.Constants.ObjectTypes.MediaType; protected override void PersistNewItem(IMediaType entity) { diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MemberGroupRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MemberGroupRepository.cs index 6916203e93..6663cc5b29 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MemberGroupRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MemberGroupRepository.cs @@ -3,14 +3,18 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; using NPoco; -using Umbraco.Core.Cache; -using Umbraco.Core.Events; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Persistence.Repositories; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.Persistence.Factories; using Umbraco.Core.Persistence.Querying; using Umbraco.Core.Scoping; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence.Repositories.Implement { @@ -69,7 +73,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement protected override string GetBaseWhereClause() { - return $"{Constants.DatabaseSchema.Tables.Node}.id = @id"; + return $"{Cms.Core.Constants.DatabaseSchema.Tables.Node}.id = @id"; } protected override IEnumerable GetDeleteClauses() @@ -87,7 +91,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement return list; } - protected override Guid NodeObjectTypeId => Constants.ObjectTypes.MemberGroup; + protected override Guid NodeObjectTypeId => Cms.Core.Constants.ObjectTypes.MemberGroup; protected override void PersistNewItem(IMemberGroup entity) { @@ -195,7 +199,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement public int[] GetMemberIds(string[] usernames) { - var memberObjectType = Constants.ObjectTypes.Member; + var memberObjectType = Cms.Core.Constants.ObjectTypes.Member; var memberSql = Sql() .Select("umbracoNode.id") diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MemberRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MemberRepository.cs index 03f7e98b5d..978e04bc6d 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MemberRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MemberRepository.cs @@ -3,18 +3,24 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; using NPoco; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Cache; using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.Persistence.Factories; using Umbraco.Core.Persistence.Querying; -using Umbraco.Core.PropertyEditors; using Umbraco.Core.Scoping; -using Umbraco.Core.Security; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using static Umbraco.Core.Persistence.SqlExtensionsStatics; +using Umbraco.Extensions; +using static Umbraco.Cms.Core.Persistence.SqlExtensionsStatics; namespace Umbraco.Core.Persistence.Repositories.Implement { @@ -54,7 +60,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement #region Repository Base - protected override Guid NodeObjectTypeId => Constants.ObjectTypes.Member; + protected override Guid NodeObjectTypeId => Cms.Core.Constants.ObjectTypes.Member; protected override IMember PerformGet(int id) { @@ -200,11 +206,11 @@ namespace Umbraco.Core.Persistence.Repositories.Implement "DELETE FROM umbracoRelation WHERE parentId = @id", "DELETE FROM umbracoRelation WHERE childId = @id", "DELETE FROM cmsTagRelationship WHERE nodeId = @id", - "DELETE FROM " + Constants.DatabaseSchema.Tables.PropertyData + " WHERE versionId IN (SELECT id FROM " + Constants.DatabaseSchema.Tables.ContentVersion + " WHERE nodeId = @id)", + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.PropertyData + " WHERE versionId IN (SELECT id FROM " + Cms.Core.Constants.DatabaseSchema.Tables.ContentVersion + " WHERE nodeId = @id)", "DELETE FROM cmsMember2MemberGroup WHERE Member = @id", "DELETE FROM cmsMember WHERE nodeId = @id", - "DELETE FROM " + Constants.DatabaseSchema.Tables.ContentVersion + " WHERE nodeId = @id", - "DELETE FROM " + Constants.DatabaseSchema.Tables.Content + " WHERE nodeId = @id", + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.ContentVersion + " WHERE nodeId = @id", + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.Content + " WHERE nodeId = @id", "DELETE FROM umbracoNode WHERE id = @id" }; return list; @@ -317,7 +323,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement if (entity.RawPasswordValue.IsNullOrWhiteSpace()) { - dto.Password = Constants.Security.EmptyPasswordPrefix + _passwordHasher.HashPassword(Guid.NewGuid().ToString("N")); + dto.Password = Cms.Core.Constants.Security.EmptyPasswordPrefix + _passwordHasher.HashPassword(Guid.NewGuid().ToString("N")); entity.RawPasswordValue = dto.Password; } @@ -336,7 +342,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement } protected override void PersistUpdatedItem(IMember entity) - { + { // update entity.UpdatingEntity(); @@ -526,7 +532,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement .Where(x => x.Alias == SqlTemplate.Arg("propertyTypeAlias")) .Where(x => x.LoginName == SqlTemplate.Arg("username")) .ForUpdate()); - var sqlSelectProperty = sqlSelectTemplateProperty.Sql(Constants.ObjectTypes.Member, Constants.Conventions.Member.LastLoginDate, username); + var sqlSelectProperty = sqlSelectTemplateProperty.Sql(Cms.Core.Constants.ObjectTypes.Member, Cms.Core.Constants.Conventions.Member.LastLoginDate, username); var update = Sql() .Update(u => u @@ -539,12 +545,12 @@ namespace Umbraco.Core.Persistence.Repositories.Implement var sqlSelectTemplateVersion = SqlContext.Templates.Get("Umbraco.Core.MemberRepository.SetLastLogin2", s => s .Select(x => x.Id) - .From() + .From() .InnerJoin().On((l, r) => l.NodeId == r.NodeId) .InnerJoin().On((l, r) => l.NodeId == r.NodeId) .Where(x => x.NodeObjectType == SqlTemplate.Arg("nodeObjectType")) .Where(x => x.LoginName == SqlTemplate.Arg("username"))); - var sqlSelectVersion = sqlSelectTemplateVersion.Sql(Constants.ObjectTypes.Member, username); + var sqlSelectVersion = sqlSelectTemplateVersion.Sql(Cms.Core.Constants.ObjectTypes.Member, username); Database.Execute(Sql() .Update(u => u diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MemberTypeRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MemberTypeRepository.cs index 28b364129d..45d8b16a65 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MemberTypeRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MemberTypeRepository.cs @@ -3,15 +3,19 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; using NPoco; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Strings; using Umbraco.Core.Cache; -using Umbraco.Core.Exceptions; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.Persistence.Factories; using Umbraco.Core.Persistence.Querying; using Umbraco.Core.Scoping; -using Umbraco.Core.Strings; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence.Repositories.Implement { @@ -129,7 +133,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement return l; } - protected override Guid NodeObjectTypeId => Constants.ObjectTypes.MemberType; + protected override Guid NodeObjectTypeId => Cms.Core.Constants.ObjectTypes.MemberType; protected override void PersistNewItem(IMemberType entity) { @@ -140,15 +144,15 @@ namespace Umbraco.Core.Persistence.Repositories.Implement //set a default icon if one is not specified if (entity.Icon.IsNullOrWhiteSpace()) { - entity.Icon = Constants.Icons.Member; + entity.Icon = Cms.Core.Constants.Icons.Member; } //By Convention we add 9 standard PropertyTypes to an Umbraco MemberType - entity.AddPropertyGroup(Constants.Conventions.Member.StandardPropertiesGroupName); + entity.AddPropertyGroup(Cms.Core.Constants.Conventions.Member.StandardPropertiesGroupName); var standardPropertyTypes = ConventionsHelper.GetStandardPropertyTypeStubs(_shortStringHelper); foreach (var standardPropertyType in standardPropertyTypes) { - entity.AddPropertyType(standardPropertyType.Value, Constants.Conventions.Member.StandardPropertiesGroupName); + entity.AddPropertyType(standardPropertyType.Value, Cms.Core.Constants.Conventions.Member.StandardPropertiesGroupName); } EnsureExplicitDataTypeForBuiltInProperties(entity); diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/NotificationsRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/NotificationsRepository.cs index e24d964d2d..9407d169dc 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/NotificationsRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/NotificationsRepository.cs @@ -1,9 +1,11 @@ using System; using System.Collections.Generic; using System.Linq; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Persistence.Repositories; using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Models.Membership; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.Scoping; diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/PartialViewMacroRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/PartialViewMacroRepository.cs index 03de23004e..d20470ee53 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/PartialViewMacroRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/PartialViewMacroRepository.cs @@ -1,4 +1,6 @@ -using Umbraco.Core.IO; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Repositories; using Umbraco.Core.Models; namespace Umbraco.Core.Persistence.Repositories.Implement diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/PartialViewRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/PartialViewRepository.cs index d327cdd78c..dc1918287d 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/PartialViewRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/PartialViewRepository.cs @@ -2,9 +2,10 @@ using System.IO; using System.Linq; using System.Text; -using Umbraco.Core.Composing; -using Umbraco.Core.IO; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence.Repositories.Implement { @@ -109,7 +110,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement } // validate path & extension - var validDir = Constants.SystemDirectories.MvcViews; + var validDir = Cms.Core.Constants.SystemDirectories.MvcViews; var isValidPath = _ioHelper.VerifyEditPath(fullPath, validDir); var isValidExtension = _ioHelper.VerifyFileExtension(fullPath, ValidExtensions); return isValidPath && isValidExtension; diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/PermissionRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/PermissionRepository.cs index 161de8c58e..8c41eca486 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/PermissionRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/PermissionRepository.cs @@ -3,14 +3,14 @@ using System.Collections.Generic; using System.Globalization; using System.Linq; using NPoco; -using Umbraco.Core.Cache; -using Umbraco.Core.Exceptions; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Models.Membership; using Umbraco.Core.Persistence.Dtos; -using Umbraco.Core.Persistence.Querying; using Umbraco.Core.Scoping; using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence.Repositories.Implement { diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/PublicAccessRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/PublicAccessRepository.cs index 5730272dd9..b70c963e86 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/PublicAccessRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/PublicAccessRepository.cs @@ -3,13 +3,15 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; using NPoco; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Querying; using Umbraco.Core.Cache; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.Persistence.Factories; using Umbraco.Core.Persistence.Querying; using Umbraco.Core.Scoping; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence.Repositories.Implement { diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/RedirectUrlRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/RedirectUrlRepository.cs index 84e5cb864f..9df21ee598 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/RedirectUrlRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/RedirectUrlRepository.cs @@ -4,11 +4,14 @@ using System.Linq; using System.Security.Cryptography; using Microsoft.Extensions.Logging; using NPoco; -using Umbraco.Core.Cache; -using Umbraco.Core.Models; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Persistence.Repositories; using Umbraco.Core.Persistence.Dtos; -using Umbraco.Core.Persistence.Querying; using Umbraco.Core.Scoping; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence.Repositories.Implement { diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/RelationRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/RelationRepository.cs index 80ca2edd11..16db81fb50 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/RelationRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/RelationRepository.cs @@ -3,16 +3,20 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; using NPoco; -using Umbraco.Core.Cache; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.Persistence.Factories; using Umbraco.Core.Persistence.Querying; using Umbraco.Core.Persistence.SqlSyntax; using Umbraco.Core.Scoping; -using Umbraco.Core.Services; -using static Umbraco.Core.Persistence.SqlExtensionsStatics; +using Umbraco.Extensions; +using static Umbraco.Cms.Core.Persistence.SqlExtensionsStatics; namespace Umbraco.Core.Persistence.Repositories.Implement { @@ -285,7 +289,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement var sql = GetBaseQuery(false); if (ordering == null || ordering.IsEmpty) - ordering = Ordering.By(SqlSyntax.GetQuotedColumn(Constants.DatabaseSchema.Tables.Relation, "id")); + ordering = Ordering.By(SqlSyntax.GetQuotedColumn(Cms.Core.Constants.DatabaseSchema.Tables.Relation, "id")); var translator = new SqlTranslator(sql, query); sql = translator.Translate(); @@ -334,7 +338,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement if (relationTypeAliases.Length > 0) { var template = SqlContext.Templates.Get( - Constants.SqlTemplates.RelationRepository.DeleteByParentIn, + Cms.Core.Constants.SqlTemplates.RelationRepository.DeleteByParentIn, tsql => Sql().Delete() .From() .InnerJoin().On(x => x.RelationType, x => x.Id) @@ -348,7 +352,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement else { var template = SqlContext.Templates.Get( - Constants.SqlTemplates.RelationRepository.DeleteByParentAll, + Cms.Core.Constants.SqlTemplates.RelationRepository.DeleteByParentAll, tsql => Sql().Delete() .From() .InnerJoin().On(x => x.RelationType, x => x.Id) diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/RelationTypeRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/RelationTypeRepository.cs index 953999eaf2..934df5348e 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/RelationTypeRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/RelationTypeRepository.cs @@ -3,13 +3,17 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; using NPoco; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Persistence.Repositories; using Umbraco.Core.Cache; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.Persistence.Factories; using Umbraco.Core.Persistence.Querying; using Umbraco.Core.Scoping; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence.Repositories.Implement { diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/RepositoryBase.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/RepositoryBase.cs index 8b9d8fe77c..ed04a76c6c 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/RepositoryBase.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/RepositoryBase.cs @@ -1,5 +1,8 @@ using System; using NPoco; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Persistence; +using Umbraco.Cms.Core.Persistence.Querying; using Umbraco.Core.Cache; using Umbraco.Core.Persistence.Querying; using Umbraco.Core.Persistence.SqlSyntax; diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ScriptRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ScriptRepository.cs index aae888e0c5..871d098921 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ScriptRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ScriptRepository.cs @@ -3,10 +3,11 @@ using System.Collections.Generic; using System.IO; using System.Linq; using Microsoft.Extensions.Options; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.IO; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence.Repositories.Implement { diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ServerRegistrationRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ServerRegistrationRepository.cs index 556f837245..36ebd136e5 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ServerRegistrationRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ServerRegistrationRepository.cs @@ -3,13 +3,15 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; using NPoco; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Persistence.Repositories; using Umbraco.Core.Cache; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.Persistence.Factories; -using Umbraco.Core.Persistence.Querying; using Umbraco.Core.Scoping; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence.Repositories.Implement { diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/SimilarNodeName.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/SimilarNodeName.cs index b613ea84aa..07e9748ef1 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/SimilarNodeName.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/SimilarNodeName.cs @@ -2,6 +2,7 @@ using System.Linq; using System.Text.RegularExpressions; using static Umbraco.Core.Persistence.Repositories.Implement.SimilarNodeName; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence.Repositories.Implement { @@ -196,7 +197,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement { Text = name; } - } + } internal bool IsEmptyName() { diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/SimpleGetRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/SimpleGetRepository.cs index 9ddb5c5b60..a575e997c7 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/SimpleGetRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/SimpleGetRepository.cs @@ -3,9 +3,10 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; using NPoco; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Persistence.Querying; using Umbraco.Core.Cache; -using Umbraco.Core.Exceptions; -using Umbraco.Core.Models.Entities; using Umbraco.Core.Persistence.Querying; using Umbraco.Core.Scoping; diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/StylesheetRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/StylesheetRepository.cs index ecb9eef1a2..eef1434bb8 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/StylesheetRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/StylesheetRepository.cs @@ -4,10 +4,11 @@ using System.IO; using System.Linq; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.IO; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence.Repositories.Implement { diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/TagRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/TagRepository.cs index 94c2f4289a..5b8e23c50b 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/TagRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/TagRepository.cs @@ -4,14 +4,17 @@ using System.Linq; using System.Text; using Microsoft.Extensions.Logging; using NPoco; -using Umbraco.Core.Cache; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Persistence.Repositories; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.Persistence.Factories; using Umbraco.Core.Persistence.Querying; using Umbraco.Core.Scoping; -using static Umbraco.Core.Persistence.SqlExtensionsStatics; +using Umbraco.Extensions; +using static Umbraco.Cms.Core.Persistence.SqlExtensionsStatics; namespace Umbraco.Core.Persistence.Repositories.Implement { @@ -517,11 +520,11 @@ WHERE r.tagId IS NULL"; switch (type) { case TaggableObjectTypes.Content: - return Constants.ObjectTypes.Document; + return Cms.Core.Constants.ObjectTypes.Document; case TaggableObjectTypes.Media: - return Constants.ObjectTypes.Media; + return Cms.Core.Constants.ObjectTypes.Media; case TaggableObjectTypes.Member: - return Constants.ObjectTypes.Member; + return Cms.Core.Constants.ObjectTypes.Member; default: throw new ArgumentOutOfRangeException(nameof(type)); } diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/TemplateRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/TemplateRepository.cs index d391bb9e4d..a24265e50a 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/TemplateRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/TemplateRepository.cs @@ -5,15 +5,19 @@ using System.Linq; using System.Text; using Microsoft.Extensions.Logging; using NPoco; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Strings; using Umbraco.Core.Cache; -using Umbraco.Core.IO; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.Persistence.Factories; using Umbraco.Core.Persistence.Querying; using Umbraco.Core.Scoping; -using Umbraco.Core.Strings; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence.Repositories.Implement { @@ -120,24 +124,24 @@ namespace Umbraco.Core.Persistence.Repositories.Implement protected override string GetBaseWhereClause() { - return Constants.DatabaseSchema.Tables.Node + ".id = @id"; + return Cms.Core.Constants.DatabaseSchema.Tables.Node + ".id = @id"; } protected override IEnumerable GetDeleteClauses() { var list = new List { - "DELETE FROM " + Constants.DatabaseSchema.Tables.User2NodeNotify + " WHERE nodeId = @id", - "DELETE FROM " + Constants.DatabaseSchema.Tables.UserGroup2NodePermission + " WHERE nodeId = @id", - "UPDATE " + Constants.DatabaseSchema.Tables.DocumentVersion + " SET templateId = NULL WHERE templateId = @id", - "DELETE FROM " + Constants.DatabaseSchema.Tables.DocumentType + " WHERE templateNodeId = @id", - "DELETE FROM " + Constants.DatabaseSchema.Tables.Template + " WHERE nodeId = @id", - "DELETE FROM " + Constants.DatabaseSchema.Tables.Node + " WHERE id = @id" + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.User2NodeNotify + " WHERE nodeId = @id", + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.UserGroup2NodePermission + " WHERE nodeId = @id", + "UPDATE " + Cms.Core.Constants.DatabaseSchema.Tables.DocumentVersion + " SET templateId = NULL WHERE templateId = @id", + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.DocumentType + " WHERE templateNodeId = @id", + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.Template + " WHERE nodeId = @id", + "DELETE FROM " + Cms.Core.Constants.DatabaseSchema.Tables.Node + " WHERE id = @id" }; return list; } - protected override Guid NodeObjectTypeId => Constants.ObjectTypes.Template; + protected override Guid NodeObjectTypeId => Cms.Core.Constants.ObjectTypes.Template; protected override void PersistNewItem(ITemplate entity) { @@ -587,7 +591,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement var path = template.VirtualPath; // get valid paths - var validDirs = new[] { Constants.SystemDirectories.MvcViews }; + var validDirs = new[] { Cms.Core.Constants.SystemDirectories.MvcViews }; // get valid extensions var validExts = new List(); diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/UserGroupRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/UserGroupRepository.cs index 4786548e57..4e8b0c9fef 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/UserGroupRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/UserGroupRepository.cs @@ -3,15 +3,18 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; using NPoco; -using Umbraco.Core.Cache; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Models.Membership; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Strings; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.Persistence.Factories; using Umbraco.Core.Persistence.Querying; using Umbraco.Core.Scoping; -using Umbraco.Core.Strings; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence.Repositories.Implement { diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/UserRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/UserRepository.cs index 1557dcc1d1..5e09acec04 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/UserRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/UserRepository.cs @@ -6,17 +6,20 @@ using System.Text; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using NPoco; -using Umbraco.Core.Cache; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Models.Membership; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Serialization; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.Persistence.Factories; using Umbraco.Core.Persistence.Mappers; using Umbraco.Core.Persistence.Querying; using Umbraco.Core.Scoping; -using Umbraco.Core.Serialization; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence.Repositories.Implement { @@ -168,7 +171,7 @@ ORDER BY colName"; } public Guid CreateLoginSession(int userId, string requestingIpAddress, bool cleanStaleSessions = true) - { + { var now = DateTime.UtcNow; var dto = new UserLoginDto { diff --git a/src/Umbraco.Infrastructure/Persistence/SqlContext.cs b/src/Umbraco.Infrastructure/Persistence/SqlContext.cs index 6f9f91114c..9cb917bfc2 100644 --- a/src/Umbraco.Infrastructure/Persistence/SqlContext.cs +++ b/src/Umbraco.Infrastructure/Persistence/SqlContext.cs @@ -1,6 +1,7 @@ using System; using System.Linq; using NPoco; +using Umbraco.Cms.Core.Persistence.Querying; using Umbraco.Core.Persistence.Mappers; using Umbraco.Core.Persistence.Querying; using Umbraco.Core.Persistence.SqlSyntax; diff --git a/src/Umbraco.Infrastructure/Persistence/SqlServerBulkSqlInsertProvider.cs b/src/Umbraco.Infrastructure/Persistence/SqlServerBulkSqlInsertProvider.cs index e8126dd7f5..5db4a4d8a3 100644 --- a/src/Umbraco.Infrastructure/Persistence/SqlServerBulkSqlInsertProvider.cs +++ b/src/Umbraco.Infrastructure/Persistence/SqlServerBulkSqlInsertProvider.cs @@ -13,7 +13,7 @@ namespace Umbraco.Core.Persistence /// public class SqlServerBulkSqlInsertProvider : IBulkSqlInsertProvider { - public string ProviderName => Constants.DatabaseProviders.SqlServer; + public string ProviderName => Cms.Core.Constants.DatabaseProviders.SqlServer; public int BulkInsertRecords(IUmbracoDatabase database, IEnumerable records) { diff --git a/src/Umbraco.Infrastructure/Persistence/SqlServerDbProviderFactoryCreator.cs b/src/Umbraco.Infrastructure/Persistence/SqlServerDbProviderFactoryCreator.cs index 68d0ec3d90..ccc12b6304 100644 --- a/src/Umbraco.Infrastructure/Persistence/SqlServerDbProviderFactoryCreator.cs +++ b/src/Umbraco.Infrastructure/Persistence/SqlServerDbProviderFactoryCreator.cs @@ -24,8 +24,8 @@ namespace Umbraco.Core.Persistence { return providerName switch { - Constants.DbProviderNames.SqlCe => throw new NotSupportedException("SqlCe is not supported"), - Constants.DbProviderNames.SqlServer => new SqlServerSyntaxProvider(), + Cms.Core.Constants.DbProviderNames.SqlCe => throw new NotSupportedException("SqlCe is not supported"), + Cms.Core.Constants.DbProviderNames.SqlServer => new SqlServerSyntaxProvider(), _ => throw new InvalidOperationException($"Unknown provider name \"{providerName}\""), }; } @@ -34,9 +34,9 @@ namespace Umbraco.Core.Persistence { switch (providerName) { - case Constants.DbProviderNames.SqlCe: + case Cms.Core.Constants.DbProviderNames.SqlCe: throw new NotSupportedException("SqlCe is not supported"); - case Constants.DbProviderNames.SqlServer: + case Cms.Core.Constants.DbProviderNames.SqlServer: return new SqlServerBulkSqlInsertProvider(); default: return new BasicBulkSqlInsertProvider(); diff --git a/src/Umbraco.Infrastructure/Persistence/SqlSyntax/SqlServerSyntaxProvider.cs b/src/Umbraco.Infrastructure/Persistence/SqlSyntax/SqlServerSyntaxProvider.cs index 2c0a4c7c63..986dd2b4f9 100644 --- a/src/Umbraco.Infrastructure/Persistence/SqlSyntax/SqlServerSyntaxProvider.cs +++ b/src/Umbraco.Infrastructure/Persistence/SqlSyntax/SqlServerSyntaxProvider.cs @@ -6,6 +6,7 @@ using System.Linq; using Microsoft.Extensions.Logging; using NPoco; using Umbraco.Core.Persistence.DatabaseModelDefinitions; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence.SqlSyntax { @@ -14,7 +15,7 @@ namespace Umbraco.Core.Persistence.SqlSyntax /// public class SqlServerSyntaxProvider : MicrosoftSqlSyntaxProviderBase { - public override string ProviderName => Constants.DatabaseProviders.SqlServer; + public override string ProviderName => Cms.Core.Constants.DatabaseProviders.SqlServer; public ServerVersionInfo ServerVersion { get; private set; } diff --git a/src/Umbraco.Infrastructure/Persistence/SqlSyntax/SqlSyntaxProviderBase.cs b/src/Umbraco.Infrastructure/Persistence/SqlSyntax/SqlSyntaxProviderBase.cs index a9377d696b..0923e531c2 100644 --- a/src/Umbraco.Infrastructure/Persistence/SqlSyntax/SqlSyntaxProviderBase.cs +++ b/src/Umbraco.Infrastructure/Persistence/SqlSyntax/SqlSyntaxProviderBase.cs @@ -9,6 +9,7 @@ using NPoco; using Umbraco.Core.Persistence.DatabaseAnnotations; using Umbraco.Core.Persistence.DatabaseModelDefinitions; using Umbraco.Core.Persistence.Querying; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence.SqlSyntax { diff --git a/src/Umbraco.Infrastructure/Persistence/SqlSyntaxExtensions.cs b/src/Umbraco.Infrastructure/Persistence/SqlSyntaxExtensions.cs index 2fba8e7d49..ff98d40b4a 100644 --- a/src/Umbraco.Infrastructure/Persistence/SqlSyntaxExtensions.cs +++ b/src/Umbraco.Infrastructure/Persistence/SqlSyntaxExtensions.cs @@ -2,7 +2,9 @@ using System.Linq.Expressions; using System.Reflection; using NPoco; +using Umbraco.Cms.Core; using Umbraco.Core.Persistence.SqlSyntax; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence { diff --git a/src/Umbraco.Infrastructure/Persistence/UmbracoDatabaseExtensions.cs b/src/Umbraco.Infrastructure/Persistence/UmbracoDatabaseExtensions.cs index 204f904f68..8e68688f2c 100644 --- a/src/Umbraco.Infrastructure/Persistence/UmbracoDatabaseExtensions.cs +++ b/src/Umbraco.Infrastructure/Persistence/UmbracoDatabaseExtensions.cs @@ -1,6 +1,7 @@ using System; using System.Linq; using Umbraco.Core.Persistence.Dtos; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence { diff --git a/src/Umbraco.Infrastructure/Persistence/UmbracoDatabaseFactory.cs b/src/Umbraco.Infrastructure/Persistence/UmbracoDatabaseFactory.cs index 69c8975ed5..f9f35d3754 100644 --- a/src/Umbraco.Infrastructure/Persistence/UmbracoDatabaseFactory.cs +++ b/src/Umbraco.Infrastructure/Persistence/UmbracoDatabaseFactory.cs @@ -5,11 +5,13 @@ using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using NPoco; using NPoco.FluentMappings; -using Umbraco.Core.Configuration.Models; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration.Models; using Umbraco.Core.Migrations.Install; using Umbraco.Core.Persistence.FaultHandling; using Umbraco.Core.Persistence.Mappers; using Umbraco.Core.Persistence.SqlSyntax; +using Umbraco.Extensions; namespace Umbraco.Core.Persistence { diff --git a/src/Umbraco.Infrastructure/PropertyEditors/BlockEditorPropertyEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/BlockEditorPropertyEditor.cs index 81281a3302..ba8d26cae2 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/BlockEditorPropertyEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/BlockEditorPropertyEditor.cs @@ -4,15 +4,15 @@ using System.ComponentModel.DataAnnotations; using System.Linq; using Microsoft.Extensions.Logging; using Newtonsoft.Json; -using Umbraco.Core; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Editors; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; using Umbraco.Core.Models.Blocks; -using Umbraco.Core.Models.Editors; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; using static Umbraco.Core.Models.Blocks.BlockItemData; +using Umbraco.Extensions; namespace Umbraco.Web.PropertyEditors { diff --git a/src/Umbraco.Infrastructure/PropertyEditors/BlockListConfigurationEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/BlockListConfigurationEditor.cs index 050bcfbfd2..1751200c94 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/BlockListConfigurationEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/BlockListConfigurationEditor.cs @@ -1,4 +1,5 @@ -using Umbraco.Core.IO; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.PropertyEditors; using Umbraco.Core.PropertyEditors; namespace Umbraco.Web.PropertyEditors diff --git a/src/Umbraco.Infrastructure/PropertyEditors/BlockListPropertyEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/BlockListPropertyEditor.cs index 1657b4098d..4779ad4c45 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/BlockListPropertyEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/BlockListPropertyEditor.cs @@ -1,11 +1,15 @@ using System; using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; using Umbraco.Core; -using Umbraco.Core.IO; using Umbraco.Core.PropertyEditors; using Umbraco.Core.Serialization; using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web.PropertyEditors { diff --git a/src/Umbraco.Infrastructure/PropertyEditors/CheckBoxListPropertyEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/CheckBoxListPropertyEditor.cs index 27d729e319..89115c77fc 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/CheckBoxListPropertyEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/CheckBoxListPropertyEditor.cs @@ -1,10 +1,15 @@ using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; using Umbraco.Core; -using Umbraco.Core.IO; using Umbraco.Core.PropertyEditors; using Umbraco.Core.Serialization; using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web.PropertyEditors { diff --git a/src/Umbraco.Infrastructure/PropertyEditors/ColorPickerConfigurationEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/ColorPickerConfigurationEditor.cs index f5776b7c28..43ebe262af 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/ColorPickerConfigurationEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/ColorPickerConfigurationEditor.cs @@ -4,10 +4,11 @@ using System.Linq; using System.Runtime.Serialization; using System.Text.RegularExpressions; using Newtonsoft.Json.Linq; -using Umbraco.Core; -using Umbraco.Core.IO; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Serialization; +using Umbraco.Extensions; namespace Umbraco.Web.PropertyEditors { diff --git a/src/Umbraco.Infrastructure/PropertyEditors/ColorPickerPropertyEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/ColorPickerPropertyEditor.cs index aec8e4b137..702c30a826 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/ColorPickerPropertyEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/ColorPickerPropertyEditor.cs @@ -1,10 +1,14 @@ using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; using Umbraco.Core; -using Umbraco.Core.IO; using Umbraco.Core.PropertyEditors; using Umbraco.Core.Serialization; using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web.PropertyEditors { diff --git a/src/Umbraco.Infrastructure/PropertyEditors/ComplexEditorValidator.cs b/src/Umbraco.Infrastructure/PropertyEditors/ComplexEditorValidator.cs index 06fc6f55fd..76b7793d20 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/ComplexEditorValidator.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/ComplexEditorValidator.cs @@ -2,11 +2,12 @@ using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.PropertyEditors; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.PropertyEditors.Validation; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Services; -using Umbraco.Web.PropertyEditors.Validation; +using Umbraco.Extensions; namespace Umbraco.Web.PropertyEditors { diff --git a/src/Umbraco.Infrastructure/PropertyEditors/ComplexPropertyEditorContentEventHandler.cs b/src/Umbraco.Infrastructure/PropertyEditors/ComplexPropertyEditorContentEventHandler.cs index d7fd184329..3a6b93dfee 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/ComplexPropertyEditorContentEventHandler.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/ComplexPropertyEditorContentEventHandler.cs @@ -1,9 +1,10 @@ using System; using System.Collections.Generic; -using Umbraco.Core.Events; -using Umbraco.Core.Models; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Services.Implement; +using Umbraco.Extensions; namespace Umbraco.Core.PropertyEditors { diff --git a/src/Umbraco.Infrastructure/PropertyEditors/ConfigurationEditorOfTConfiguration.cs b/src/Umbraco.Infrastructure/PropertyEditors/ConfigurationEditorOfTConfiguration.cs index 7ccf39abcf..cce3dc4fac 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/ConfigurationEditorOfTConfiguration.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/ConfigurationEditorOfTConfiguration.cs @@ -3,9 +3,11 @@ using System.Collections.Generic; using System.Reflection; using Newtonsoft.Json; using Newtonsoft.Json.Linq; -using Umbraco.Core.Composing; -using Umbraco.Core.IO; -using Umbraco.Core.Serialization; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Extensions; namespace Umbraco.Core.PropertyEditors { diff --git a/src/Umbraco.Infrastructure/PropertyEditors/ContentPickerConfigurationEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/ContentPickerConfigurationEditor.cs index 9e434bb279..a63ac026e0 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/ContentPickerConfigurationEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/ContentPickerConfigurationEditor.cs @@ -1,5 +1,6 @@ using System.Collections.Generic; -using Umbraco.Core.IO; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.PropertyEditors; using Umbraco.Core.PropertyEditors; namespace Umbraco.Web.PropertyEditors diff --git a/src/Umbraco.Infrastructure/PropertyEditors/ContentPickerPropertyEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/ContentPickerPropertyEditor.cs index c95f14e8e0..022ea1914e 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/ContentPickerPropertyEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/ContentPickerPropertyEditor.cs @@ -1,12 +1,18 @@ using System.Collections.Generic; using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Editors; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; using Umbraco.Core; -using Umbraco.Core.IO; -using Umbraco.Core.Models.Editors; using Umbraco.Core.PropertyEditors; using Umbraco.Core.Serialization; using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web.PropertyEditors { diff --git a/src/Umbraco.Infrastructure/PropertyEditors/DateTimeConfigurationEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/DateTimeConfigurationEditor.cs index 2758064973..bc774b1304 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/DateTimeConfigurationEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/DateTimeConfigurationEditor.cs @@ -1,7 +1,8 @@ using System.Collections.Generic; -using Umbraco.Core; -using Umbraco.Core.IO; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.PropertyEditors; using Umbraco.Core.PropertyEditors; +using Umbraco.Extensions; namespace Umbraco.Web.PropertyEditors { diff --git a/src/Umbraco.Infrastructure/PropertyEditors/DateTimePropertyEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/DateTimePropertyEditor.cs index 40ece10a1e..3d049ec1c2 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/DateTimePropertyEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/DateTimePropertyEditor.cs @@ -1,10 +1,16 @@ using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.PropertyEditors.Validators; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; using Umbraco.Core; -using Umbraco.Core.IO; using Umbraco.Core.PropertyEditors; using Umbraco.Core.Serialization; using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web.PropertyEditors { diff --git a/src/Umbraco.Infrastructure/PropertyEditors/DropDownFlexibleConfigurationEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/DropDownFlexibleConfigurationEditor.cs index f3ad0e6335..544f1f2ee0 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/DropDownFlexibleConfigurationEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/DropDownFlexibleConfigurationEditor.cs @@ -1,10 +1,11 @@ using System.Collections.Generic; using System.Linq; using Newtonsoft.Json.Linq; -using Umbraco.Core; -using Umbraco.Core.IO; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Services; using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Services; +using Umbraco.Extensions; namespace Umbraco.Web.PropertyEditors { diff --git a/src/Umbraco.Infrastructure/PropertyEditors/DropDownFlexiblePropertyEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/DropDownFlexiblePropertyEditor.cs index 186730775e..a671b51c5a 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/DropDownFlexiblePropertyEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/DropDownFlexiblePropertyEditor.cs @@ -1,10 +1,15 @@ using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; using Umbraco.Core; -using Umbraco.Core.IO; using Umbraco.Core.PropertyEditors; using Umbraco.Core.Serialization; using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web.PropertyEditors { diff --git a/src/Umbraco.Infrastructure/PropertyEditors/EmailAddressConfigurationEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/EmailAddressConfigurationEditor.cs index 27287881ff..657b91eb26 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/EmailAddressConfigurationEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/EmailAddressConfigurationEditor.cs @@ -1,4 +1,5 @@ -using Umbraco.Core.IO; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.PropertyEditors; using Umbraco.Core.PropertyEditors; namespace Umbraco.Web.PropertyEditors diff --git a/src/Umbraco.Infrastructure/PropertyEditors/EmailAddressPropertyEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/EmailAddressPropertyEditor.cs index 120a522cd7..958c5cb54f 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/EmailAddressPropertyEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/EmailAddressPropertyEditor.cs @@ -1,11 +1,16 @@ using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.PropertyEditors.Validators; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; using Umbraco.Core; -using Umbraco.Core.IO; using Umbraco.Core.PropertyEditors; -using Umbraco.Core.PropertyEditors.Validators; using Umbraco.Core.Serialization; using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web.PropertyEditors { diff --git a/src/Umbraco.Infrastructure/PropertyEditors/FileUploadPropertyEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/FileUploadPropertyEditor.cs index b425432b01..889b2bb236 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/FileUploadPropertyEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/FileUploadPropertyEditor.cs @@ -3,16 +3,18 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.IO; -using Umbraco.Core.Models; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; -using Umbraco.Web.Media; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Media; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web.PropertyEditors { @@ -122,7 +124,7 @@ namespace Umbraco.Web.PropertyEditors /// /// The event sender. /// The event arguments. - internal void ContentServiceCopied(IContentService sender, Core.Events.CopyEventArgs args) + internal void ContentServiceCopied(IContentService sender, CopyEventArgs args) { // get the upload field properties with a value var properties = args.Original.Properties.Where(IsUploadField); @@ -153,7 +155,7 @@ namespace Umbraco.Web.PropertyEditors /// /// The event sender. /// The event arguments. - internal void MediaServiceCreated(IMediaService sender, Core.Events.NewEventArgs args) + internal void MediaServiceCreated(IMediaService sender, NewEventArgs args) { AutoFillProperties(args.Entity); } @@ -163,7 +165,7 @@ namespace Umbraco.Web.PropertyEditors /// /// The event sender. /// The event arguments. - public void MediaServiceSaving(IMediaService sender, Core.Events.SaveEventArgs args) + public void MediaServiceSaving(IMediaService sender, SaveEventArgs args) { foreach (var entity in args.SavedEntities) AutoFillProperties(entity); @@ -174,7 +176,7 @@ namespace Umbraco.Web.PropertyEditors /// /// The event sender. /// The event arguments. - public void ContentServiceSaving(IContentService sender, Core.Events.SaveEventArgs args) + public void ContentServiceSaving(IContentService sender, SaveEventArgs args) { foreach (var entity in args.SavedEntities) AutoFillProperties(entity); diff --git a/src/Umbraco.Infrastructure/PropertyEditors/FileUploadPropertyValueEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/FileUploadPropertyValueEditor.cs index 8ccb59988d..2359e9f7bf 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/FileUploadPropertyValueEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/FileUploadPropertyValueEditor.cs @@ -1,14 +1,14 @@ using System; using System.IO; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.IO; -using Umbraco.Core.Models.Editors; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models.Editors; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Extensions; namespace Umbraco.Web.PropertyEditors { diff --git a/src/Umbraco.Infrastructure/PropertyEditors/GridConfiguration.cs b/src/Umbraco.Infrastructure/PropertyEditors/GridConfiguration.cs index d00f1b5e18..3ff8971139 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/GridConfiguration.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/GridConfiguration.cs @@ -1,6 +1,9 @@ using Newtonsoft.Json.Linq; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.PropertyEditors; using Umbraco.Core; using Umbraco.Core.PropertyEditors; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web.PropertyEditors { @@ -17,7 +20,7 @@ namespace Umbraco.Web.PropertyEditors [ConfigurationField("rte", "Rich text editor", "views/propertyeditors/rte/rte.prevalues.html", Description = "Rich text editor configuration", HideLabel = true)] public JObject Rte { get; set; } - [ConfigurationField(Core.Constants.DataTypes.ReservedPreValueKeys.IgnoreUserStartNodes, + [ConfigurationField(Constants.DataTypes.ReservedPreValueKeys.IgnoreUserStartNodes, "Ignore User Start Nodes", "boolean", Description = "Selecting this option allows a user to choose nodes that they normally don't have access to.")] public bool IgnoreUserStartNodes { get; set; } diff --git a/src/Umbraco.Infrastructure/PropertyEditors/GridConfigurationEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/GridConfigurationEditor.cs index f9ff1ad0c4..8d70519ba1 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/GridConfigurationEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/GridConfigurationEditor.cs @@ -2,7 +2,8 @@ using System.ComponentModel.DataAnnotations; using System.Linq; using Newtonsoft.Json; -using Umbraco.Core.IO; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.PropertyEditors; using Umbraco.Core.PropertyEditors; namespace Umbraco.Web.PropertyEditors diff --git a/src/Umbraco.Infrastructure/PropertyEditors/GridPropertyEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/GridPropertyEditor.cs index 2bac76e6f9..4f86c03d38 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/GridPropertyEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/GridPropertyEditor.cs @@ -3,17 +3,19 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; using Newtonsoft.Json; -using Umbraco.Core; -using Umbraco.Core.IO; -using Umbraco.Core.Media; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Media; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Editors; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Core.Templates; using Umbraco.Core.Models; -using Umbraco.Core.Models.Editors; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Security; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; -using Umbraco.Web.Templates; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web.PropertyEditors { diff --git a/src/Umbraco.Infrastructure/PropertyEditors/GridPropertyIndexValueFactory.cs b/src/Umbraco.Infrastructure/PropertyEditors/GridPropertyIndexValueFactory.cs index 195764fbbf..422f61a653 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/GridPropertyIndexValueFactory.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/GridPropertyIndexValueFactory.cs @@ -4,11 +4,12 @@ using System.Linq; using System.Text; using Newtonsoft.Json; using Newtonsoft.Json.Linq; -using Umbraco.Core; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Xml; using Umbraco.Core.Models; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Xml; using Umbraco.Examine; +using Umbraco.Extensions; namespace Umbraco.Web.PropertyEditors { diff --git a/src/Umbraco.Infrastructure/PropertyEditors/ImageCropperConfiguration.cs b/src/Umbraco.Infrastructure/PropertyEditors/ImageCropperConfiguration.cs index f291326dc5..4c1d3fc128 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/ImageCropperConfiguration.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/ImageCropperConfiguration.cs @@ -1,4 +1,5 @@ using System.Runtime.Serialization; +using Umbraco.Cms.Core.PropertyEditors; namespace Umbraco.Core.PropertyEditors { diff --git a/src/Umbraco.Infrastructure/PropertyEditors/ImageCropperConfigurationEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/ImageCropperConfigurationEditor.cs index 42abfa0307..00b725d04d 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/ImageCropperConfigurationEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/ImageCropperConfigurationEditor.cs @@ -1,5 +1,5 @@ using System.Collections.Generic; -using Umbraco.Core.IO; +using Umbraco.Cms.Core.IO; using Umbraco.Core.PropertyEditors; namespace Umbraco.Web.PropertyEditors diff --git a/src/Umbraco.Infrastructure/PropertyEditors/ImageCropperPropertyEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/ImageCropperPropertyEditor.cs index 1f35b9d88a..ac7df6ab12 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/ImageCropperPropertyEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/ImageCropperPropertyEditor.cs @@ -5,16 +5,19 @@ using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using Newtonsoft.Json; using Newtonsoft.Json.Linq; -using Umbraco.Core; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.IO; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Media; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; -using Umbraco.Web.Media; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web.PropertyEditors { @@ -175,7 +178,7 @@ namespace Umbraco.Web.PropertyEditors /// /// The event sender. /// The event arguments. - public void ContentServiceCopied(IContentService sender, Core.Events.CopyEventArgs args) + public void ContentServiceCopied(IContentService sender, CopyEventArgs args) { // get the image cropper field properties var properties = args.Original.Properties.Where(IsCropperField); @@ -207,7 +210,7 @@ namespace Umbraco.Web.PropertyEditors /// /// The event sender. /// The event arguments. - public void MediaServiceCreated(IMediaService sender, Core.Events.NewEventArgs args) + public void MediaServiceCreated(IMediaService sender, NewEventArgs args) { AutoFillProperties(args.Entity); } @@ -217,7 +220,7 @@ namespace Umbraco.Web.PropertyEditors /// /// The event sender. /// The event arguments. - public void MediaServiceSaving(IMediaService sender, Core.Events.SaveEventArgs args) + public void MediaServiceSaving(IMediaService sender, SaveEventArgs args) { foreach (var entity in args.SavedEntities) AutoFillProperties(entity); @@ -228,7 +231,7 @@ namespace Umbraco.Web.PropertyEditors /// /// The event sender. /// The event arguments. - public void ContentServiceSaving(IContentService sender, Core.Events.SaveEventArgs args) + public void ContentServiceSaving(IContentService sender, SaveEventArgs args) { foreach (var entity in args.SavedEntities) AutoFillProperties(entity); diff --git a/src/Umbraco.Infrastructure/PropertyEditors/ImageCropperPropertyValueEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/ImageCropperPropertyValueEditor.cs index c058856ebd..96d0de17eb 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/ImageCropperPropertyValueEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/ImageCropperPropertyValueEditor.cs @@ -2,16 +2,17 @@ using Microsoft.Extensions.Logging; using Newtonsoft.Json; using Newtonsoft.Json.Linq; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.IO; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Editors; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Editors; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; using Umbraco.Core.PropertyEditors; using Umbraco.Core.PropertyEditors.ValueConverters; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Umbraco.Extensions; using File = System.IO.File; namespace Umbraco.Web.PropertyEditors diff --git a/src/Umbraco.Infrastructure/PropertyEditors/LabelConfigurationEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/LabelConfigurationEditor.cs index 8ec2e32965..1d361b2a4a 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/LabelConfigurationEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/LabelConfigurationEditor.cs @@ -1,5 +1,6 @@ using System.Collections.Generic; -using Umbraco.Core.IO; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.PropertyEditors; namespace Umbraco.Core.PropertyEditors { @@ -20,7 +21,7 @@ namespace Umbraco.Core.PropertyEditors // get the value type // not simply deserializing Json because we want to validate the valueType - if (editorValues.TryGetValue(Constants.PropertyEditors.ConfigurationKeys.DataValueType, out var valueTypeObj) + if (editorValues.TryGetValue(Cms.Core.Constants.PropertyEditors.ConfigurationKeys.DataValueType, out var valueTypeObj) && valueTypeObj is string stringValue) { if (!string.IsNullOrWhiteSpace(stringValue) && ValueTypes.IsValue(stringValue)) // validate diff --git a/src/Umbraco.Infrastructure/PropertyEditors/LabelPropertyEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/LabelPropertyEditor.cs index 78c5087c66..81f93c0c5f 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/LabelPropertyEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/LabelPropertyEditor.cs @@ -1,8 +1,12 @@ using Microsoft.Extensions.Logging; -using Umbraco.Core.IO; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; using Umbraco.Core.Serialization; using Umbraco.Core.Services; -using Umbraco.Core.Strings; namespace Umbraco.Core.PropertyEditors { @@ -10,7 +14,7 @@ namespace Umbraco.Core.PropertyEditors /// Represents a property editor for label properties. /// [DataEditor( - Constants.PropertyEditors.Aliases.Label, + Cms.Core.Constants.PropertyEditors.Aliases.Label, "Label", "readonlyvalue", Icon = "icon-readonly")] diff --git a/src/Umbraco.Infrastructure/PropertyEditors/ListViewConfigurationEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/ListViewConfigurationEditor.cs index d6b1b6f533..b87f669cee 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/ListViewConfigurationEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/ListViewConfigurationEditor.cs @@ -1,4 +1,5 @@ -using Umbraco.Core.IO; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.PropertyEditors; using Umbraco.Core.PropertyEditors; namespace Umbraco.Web.PropertyEditors diff --git a/src/Umbraco.Infrastructure/PropertyEditors/ListViewPropertyEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/ListViewPropertyEditor.cs index d7fd2d9340..f46a1c0cc3 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/ListViewPropertyEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/ListViewPropertyEditor.cs @@ -1,10 +1,14 @@ using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; using Umbraco.Core; -using Umbraco.Core.IO; using Umbraco.Core.PropertyEditors; using Umbraco.Core.Serialization; using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web.PropertyEditors { diff --git a/src/Umbraco.Infrastructure/PropertyEditors/MarkdownConfigurationEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/MarkdownConfigurationEditor.cs index adff49c040..29bcef9ce7 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/MarkdownConfigurationEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/MarkdownConfigurationEditor.cs @@ -1,4 +1,5 @@ -using Umbraco.Core.IO; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.PropertyEditors; using Umbraco.Core.PropertyEditors; namespace Umbraco.Web.PropertyEditors diff --git a/src/Umbraco.Infrastructure/PropertyEditors/MarkdownPropertyEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/MarkdownPropertyEditor.cs index 97386de326..0f9e8e6595 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/MarkdownPropertyEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/MarkdownPropertyEditor.cs @@ -1,10 +1,14 @@ using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; using Umbraco.Core; -using Umbraco.Core.IO; using Umbraco.Core.PropertyEditors; using Umbraco.Core.Serialization; using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web.PropertyEditors { diff --git a/src/Umbraco.Infrastructure/PropertyEditors/MediaPickerConfigurationEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/MediaPickerConfigurationEditor.cs index 98cc3c51b8..f90d6b62b3 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/MediaPickerConfigurationEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/MediaPickerConfigurationEditor.cs @@ -1,5 +1,6 @@ using System.Collections.Generic; -using Umbraco.Core.IO; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.PropertyEditors; using Umbraco.Core.PropertyEditors; namespace Umbraco.Web.PropertyEditors diff --git a/src/Umbraco.Infrastructure/PropertyEditors/MediaPickerPropertyEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/MediaPickerPropertyEditor.cs index e69ff5be9d..f4bca7363b 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/MediaPickerPropertyEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/MediaPickerPropertyEditor.cs @@ -1,12 +1,18 @@ using System.Collections.Generic; using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Editors; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; using Umbraco.Core; -using Umbraco.Core.IO; -using Umbraco.Core.Models.Editors; using Umbraco.Core.PropertyEditors; using Umbraco.Core.Serialization; using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web.PropertyEditors { diff --git a/src/Umbraco.Infrastructure/PropertyEditors/MultiNodePickerConfigurationEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/MultiNodePickerConfigurationEditor.cs index ba0375c691..78e5002211 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/MultiNodePickerConfigurationEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/MultiNodePickerConfigurationEditor.cs @@ -1,5 +1,6 @@ using System.Collections.Generic; -using Umbraco.Core.IO; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.PropertyEditors; using Umbraco.Core.PropertyEditors; namespace Umbraco.Web.PropertyEditors diff --git a/src/Umbraco.Infrastructure/PropertyEditors/MultiNodeTreePickerPropertyEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/MultiNodeTreePickerPropertyEditor.cs index b7ec4813b2..d88a8f5dcd 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/MultiNodeTreePickerPropertyEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/MultiNodeTreePickerPropertyEditor.cs @@ -1,12 +1,18 @@ using System.Collections.Generic; using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Editors; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; using Umbraco.Core; -using Umbraco.Core.IO; -using Umbraco.Core.Models.Editors; using Umbraco.Core.PropertyEditors; using Umbraco.Core.Serialization; using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web.PropertyEditors { diff --git a/src/Umbraco.Infrastructure/PropertyEditors/MultiUrlPickerConfigurationEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/MultiUrlPickerConfigurationEditor.cs index 6cedae94fe..614eff1d74 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/MultiUrlPickerConfigurationEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/MultiUrlPickerConfigurationEditor.cs @@ -1,4 +1,5 @@ -using Umbraco.Core.IO; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.PropertyEditors; using Umbraco.Core.PropertyEditors; namespace Umbraco.Web.PropertyEditors diff --git a/src/Umbraco.Infrastructure/PropertyEditors/MultiUrlPickerPropertyEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/MultiUrlPickerPropertyEditor.cs index fdb908e2be..cf911d55e6 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/MultiUrlPickerPropertyEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/MultiUrlPickerPropertyEditor.cs @@ -1,13 +1,21 @@ using System; using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Core.Web; using Umbraco.Core; -using Umbraco.Core.IO; using Umbraco.Core.PropertyEditors; using Umbraco.Core.Serialization; using Umbraco.Core.Services; -using Umbraco.Core.Strings; using Umbraco.Web.PublishedCache; using Umbraco.Web.Routing; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web.PropertyEditors { diff --git a/src/Umbraco.Infrastructure/PropertyEditors/MultiUrlPickerValueEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/MultiUrlPickerValueEditor.cs index a4427cd26d..da032ed39c 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/MultiUrlPickerValueEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/MultiUrlPickerValueEditor.cs @@ -4,17 +4,20 @@ using System.Linq; using System.Runtime.Serialization; using Microsoft.Extensions.Logging; using Newtonsoft.Json; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Editors; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; -using Umbraco.Web.Models.ContentEditing; -using Umbraco.Web.PublishedCache; -using Umbraco.Web.Routing; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Models.Editors; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Core.Web; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web.PropertyEditors { diff --git a/src/Umbraco.Infrastructure/PropertyEditors/MultipleTextStringConfigurationEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/MultipleTextStringConfigurationEditor.cs index 243f668cb3..c5f562b134 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/MultipleTextStringConfigurationEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/MultipleTextStringConfigurationEditor.cs @@ -1,8 +1,9 @@ using System.Collections.Generic; -using Umbraco.Core; -using Umbraco.Core.IO; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.PropertyEditors.Validators; using Umbraco.Core.PropertyEditors; -using Umbraco.Core.PropertyEditors.Validators; +using Umbraco.Extensions; namespace Umbraco.Web.PropertyEditors { diff --git a/src/Umbraco.Infrastructure/PropertyEditors/MultipleTextStringPropertyEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/MultipleTextStringPropertyEditor.cs index c9aeb0e59a..73511fe975 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/MultipleTextStringPropertyEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/MultipleTextStringPropertyEditor.cs @@ -4,16 +4,21 @@ using System.ComponentModel.DataAnnotations; using System.Linq; using Microsoft.Extensions.Logging; using Newtonsoft.Json.Linq; +using Umbraco.Cms.Core.Exceptions; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Editors; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.PropertyEditors.Validators; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; using Umbraco.Core; -using Umbraco.Core.Exceptions; -using Umbraco.Core.IO; using Umbraco.Core.Models; -using Umbraco.Core.Models.Editors; using Umbraco.Core.PropertyEditors; -using Umbraco.Core.PropertyEditors.Validators; using Umbraco.Core.Serialization; using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web.PropertyEditors { diff --git a/src/Umbraco.Infrastructure/PropertyEditors/MultipleValueEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/MultipleValueEditor.cs index 5f82ed940f..9455086a1a 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/MultipleValueEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/MultipleValueEditor.cs @@ -3,11 +3,16 @@ using System.Linq; using Microsoft.Extensions.Logging; using Newtonsoft.Json; using Newtonsoft.Json.Linq; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Editors; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; using Umbraco.Core.Models; using Umbraco.Core.PropertyEditors; using Umbraco.Core.Serialization; using Umbraco.Core.Services; -using Umbraco.Core.Strings; namespace Umbraco.Web.PropertyEditors { @@ -56,7 +61,7 @@ namespace Umbraco.Web.PropertyEditors /// /// /// - public override object FromEditor(Core.Models.Editors.ContentPropertyData editorValue, object currentValue) + public override object FromEditor(ContentPropertyData editorValue, object currentValue) { var json = editorValue.Value as JArray; if (json == null) diff --git a/src/Umbraco.Infrastructure/PropertyEditors/NestedContentConfigurationEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/NestedContentConfigurationEditor.cs index 7eeee68b07..59901ecafc 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/NestedContentConfigurationEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/NestedContentConfigurationEditor.cs @@ -1,4 +1,5 @@ -using Umbraco.Core.IO; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.PropertyEditors; using Umbraco.Core.PropertyEditors; namespace Umbraco.Web.PropertyEditors diff --git a/src/Umbraco.Infrastructure/PropertyEditors/NestedContentPropertyEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/NestedContentPropertyEditor.cs index 8afc08c423..567093f6c2 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/NestedContentPropertyEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/NestedContentPropertyEditor.cs @@ -4,14 +4,15 @@ using System.Linq; using Microsoft.Extensions.Logging; using Newtonsoft.Json; using Newtonsoft.Json.Linq; -using Umbraco.Core; -using Umbraco.Core.IO; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Editors; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Editors; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web.PropertyEditors { diff --git a/src/Umbraco.Infrastructure/PropertyEditors/PropertyEditorsComponent.cs b/src/Umbraco.Infrastructure/PropertyEditors/PropertyEditorsComponent.cs index cd7b7a1f39..b688108d24 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/PropertyEditorsComponent.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/PropertyEditorsComponent.cs @@ -1,7 +1,11 @@ using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Events; using Umbraco.Core.Models; using Umbraco.Core.PropertyEditors; diff --git a/src/Umbraco.Infrastructure/PropertyEditors/PropertyEditorsComposer.cs b/src/Umbraco.Infrastructure/PropertyEditors/PropertyEditorsComposer.cs index 77d4f6dcc0..3f8f8ba03a 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/PropertyEditorsComposer.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/PropertyEditorsComposer.cs @@ -1,4 +1,4 @@ -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; namespace Umbraco.Web.PropertyEditors { diff --git a/src/Umbraco.Infrastructure/PropertyEditors/RadioButtonsPropertyEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/RadioButtonsPropertyEditor.cs index 444e99bd23..f6d0c51988 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/RadioButtonsPropertyEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/RadioButtonsPropertyEditor.cs @@ -1,10 +1,14 @@ using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; using Umbraco.Core; -using Umbraco.Core.IO; using Umbraco.Core.PropertyEditors; using Umbraco.Core.Serialization; using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web.PropertyEditors { diff --git a/src/Umbraco.Infrastructure/PropertyEditors/RichTextConfigurationEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/RichTextConfigurationEditor.cs index 752ae97334..790da7d09a 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/RichTextConfigurationEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/RichTextConfigurationEditor.cs @@ -1,4 +1,5 @@ -using Umbraco.Core.IO; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.PropertyEditors; using Umbraco.Core.PropertyEditors; namespace Umbraco.Web.PropertyEditors diff --git a/src/Umbraco.Infrastructure/PropertyEditors/RichTextEditorPastedImages.cs b/src/Umbraco.Infrastructure/PropertyEditors/RichTextEditorPastedImages.cs index d881d55f7d..1964041287 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/RichTextEditorPastedImages.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/RichTextEditorPastedImages.cs @@ -1,19 +1,21 @@ using System; using System.Collections.Generic; using System.IO; -using Microsoft.Extensions.Logging; using HtmlAgilityPack; -using Umbraco.Core; -using Umbraco.Core.Exceptions; -using Umbraco.Core.IO; -using Umbraco.Core.Media; -using Umbraco.Core.Models; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; -using Umbraco.Web.Models; -using Umbraco.Web.Routing; -using Umbraco.Core.Hosting; +using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Exceptions; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Media; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Core.Web; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web.PropertyEditors { diff --git a/src/Umbraco.Infrastructure/PropertyEditors/RichTextPropertyEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/RichTextPropertyEditor.cs index e97b8c0520..bc63a6d0d2 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/RichTextPropertyEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/RichTextPropertyEditor.cs @@ -1,19 +1,20 @@ using System; using System.Collections.Generic; using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Core.IO; -using Umbraco.Core.Media; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Editors; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Security; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Media; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Editors; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Core.Templates; using Umbraco.Examine; +using Umbraco.Extensions; using Umbraco.Web.Macros; -using Umbraco.Web.Templates; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web.PropertyEditors { @@ -145,7 +146,7 @@ namespace Umbraco.Web.PropertyEditors /// /// /// - public override object FromEditor(Core.Models.Editors.ContentPropertyData editorValue, object currentValue) + public override object FromEditor(ContentPropertyData editorValue, object currentValue) { if (editorValue.Value == null) return null; diff --git a/src/Umbraco.Infrastructure/PropertyEditors/SliderConfigurationEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/SliderConfigurationEditor.cs index fe34c16449..c0ddd32b78 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/SliderConfigurationEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/SliderConfigurationEditor.cs @@ -1,4 +1,5 @@ -using Umbraco.Core.IO; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.PropertyEditors; using Umbraco.Core.PropertyEditors; namespace Umbraco.Web.PropertyEditors diff --git a/src/Umbraco.Infrastructure/PropertyEditors/SliderPropertyEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/SliderPropertyEditor.cs index 48197691a2..de5824f2ec 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/SliderPropertyEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/SliderPropertyEditor.cs @@ -1,10 +1,14 @@ using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; using Umbraco.Core; -using Umbraco.Core.IO; using Umbraco.Core.PropertyEditors; using Umbraco.Core.Serialization; using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web.PropertyEditors { diff --git a/src/Umbraco.Infrastructure/PropertyEditors/TagConfigurationEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/TagConfigurationEditor.cs index 3877611a68..5c95a49b63 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/TagConfigurationEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/TagConfigurationEditor.cs @@ -1,9 +1,12 @@ using System; using System.Collections.Generic; -using Umbraco.Core.IO; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.PropertyEditors.Validators; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Models; using Umbraco.Core.PropertyEditors; -using Umbraco.Core.PropertyEditors.Validators; using Umbraco.Core.Services; namespace Umbraco.Web.PropertyEditors diff --git a/src/Umbraco.Infrastructure/PropertyEditors/TagsPropertyEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/TagsPropertyEditor.cs index a2fb340d14..6735a4d027 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/TagsPropertyEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/TagsPropertyEditor.cs @@ -4,13 +4,15 @@ using System.ComponentModel.DataAnnotations; using System.Linq; using Microsoft.Extensions.Logging; using Newtonsoft.Json.Linq; -using Umbraco.Core; -using Umbraco.Core.IO; -using Umbraco.Core.Models.Editors; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Editors; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web.PropertyEditors { diff --git a/src/Umbraco.Infrastructure/PropertyEditors/TextAreaConfigurationEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/TextAreaConfigurationEditor.cs index 3a90354339..5a2aaa5ca2 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/TextAreaConfigurationEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/TextAreaConfigurationEditor.cs @@ -1,4 +1,5 @@ -using Umbraco.Core.IO; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.PropertyEditors; using Umbraco.Core.PropertyEditors; namespace Umbraco.Web.PropertyEditors diff --git a/src/Umbraco.Infrastructure/PropertyEditors/TextAreaPropertyEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/TextAreaPropertyEditor.cs index d65f6f3a1d..e7261e287e 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/TextAreaPropertyEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/TextAreaPropertyEditor.cs @@ -1,10 +1,15 @@ using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; using Umbraco.Core; -using Umbraco.Core.IO; using Umbraco.Core.PropertyEditors; using Umbraco.Core.Serialization; using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web.PropertyEditors { diff --git a/src/Umbraco.Infrastructure/PropertyEditors/TextboxConfigurationEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/TextboxConfigurationEditor.cs index 0696d7238c..e90b25523b 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/TextboxConfigurationEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/TextboxConfigurationEditor.cs @@ -1,4 +1,5 @@ -using Umbraco.Core.IO; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.PropertyEditors; using Umbraco.Core.PropertyEditors; namespace Umbraco.Web.PropertyEditors diff --git a/src/Umbraco.Infrastructure/PropertyEditors/TextboxPropertyEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/TextboxPropertyEditor.cs index 350dd4a1ff..af5312b6c2 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/TextboxPropertyEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/TextboxPropertyEditor.cs @@ -1,10 +1,15 @@ using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; using Umbraco.Core; -using Umbraco.Core.IO; using Umbraco.Core.PropertyEditors; using Umbraco.Core.Serialization; using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web.PropertyEditors { diff --git a/src/Umbraco.Infrastructure/PropertyEditors/TrueFalseConfigurationEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/TrueFalseConfigurationEditor.cs index 594a3f4d6e..c93400069d 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/TrueFalseConfigurationEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/TrueFalseConfigurationEditor.cs @@ -1,4 +1,5 @@ -using Umbraco.Core.IO; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.PropertyEditors; using Umbraco.Core.PropertyEditors; namespace Umbraco.Web.PropertyEditors diff --git a/src/Umbraco.Infrastructure/PropertyEditors/TrueFalsePropertyEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/TrueFalsePropertyEditor.cs index 3c9599c643..2e3edfe2b0 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/TrueFalsePropertyEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/TrueFalsePropertyEditor.cs @@ -1,10 +1,14 @@ using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; using Umbraco.Core; -using Umbraco.Core.IO; using Umbraco.Core.PropertyEditors; using Umbraco.Core.Serialization; using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web.PropertyEditors { diff --git a/src/Umbraco.Infrastructure/PropertyEditors/UploadFileTypeValidator.cs b/src/Umbraco.Infrastructure/PropertyEditors/UploadFileTypeValidator.cs index d3e1e7aabe..4996d9ce6b 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/UploadFileTypeValidator.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/UploadFileTypeValidator.cs @@ -4,11 +4,10 @@ using System.ComponentModel.DataAnnotations; using System.Linq; using Microsoft.Extensions.Options; using Newtonsoft.Json.Linq; -using Umbraco.Core; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; namespace Umbraco.Web.PropertyEditors { diff --git a/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/BlockEditorConverter.cs b/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/BlockEditorConverter.cs index 717f1a43ef..9f025528e6 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/BlockEditorConverter.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/BlockEditorConverter.cs @@ -1,9 +1,12 @@ using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.PublishedCache; using Umbraco.Core; using Umbraco.Core.Models.Blocks; -using Umbraco.Core.Models.PublishedContent; using Umbraco.Core.PropertyEditors; using Umbraco.Web.PublishedCache; diff --git a/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/BlockListPropertyValueConverter.cs b/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/BlockListPropertyValueConverter.cs index f35f9b9469..cf8bbb4fd6 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/BlockListPropertyValueConverter.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/BlockListPropertyValueConverter.cs @@ -1,14 +1,15 @@ -using Newtonsoft.Json; -using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core; -using Umbraco.Core.Logging; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Models.Blocks; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PropertyEditors; using Umbraco.Core.Models.Blocks; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.PropertyEditors; using Umbraco.Core.PropertyEditors.ValueConverters; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web.PropertyEditors.ValueConverters { @@ -93,7 +94,7 @@ namespace Umbraco.Web.PropertyEditors.ValueConverters foreach (var layoutItem in blockListLayout) { // get the content reference - var contentGuidUdi = (GuidUdi)layoutItem.ContentUdi; + var contentGuidUdi = (GuidUdi)layoutItem.ContentUdi; if (!contentPublishedElements.TryGetValue(contentGuidUdi.Guid, out var contentData)) continue; diff --git a/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/ColorPickerValueConverter.cs b/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/ColorPickerValueConverter.cs index 46dae3e4f0..d929d0885d 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/ColorPickerValueConverter.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/ColorPickerValueConverter.cs @@ -1,7 +1,9 @@ using System; using Newtonsoft.Json; using Newtonsoft.Json.Linq; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Extensions; namespace Umbraco.Core.PropertyEditors.ValueConverters { @@ -9,7 +11,7 @@ namespace Umbraco.Core.PropertyEditors.ValueConverters public class ColorPickerValueConverter : PropertyValueConverterBase { public override bool IsConverter(IPublishedPropertyType propertyType) - => propertyType.EditorAlias.InvariantEquals(Constants.PropertyEditors.Aliases.ColorPicker); + => propertyType.EditorAlias.InvariantEquals(Cms.Core.Constants.PropertyEditors.Aliases.ColorPicker); public override Type GetPropertyValueType(IPublishedPropertyType propertyType) => UseLabel(propertyType) ? typeof(PickedColor) : typeof(string); diff --git a/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/FlexibleDropdownPropertyValueConverter.cs b/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/FlexibleDropdownPropertyValueConverter.cs index 164ce185ae..cbfc6f1f42 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/FlexibleDropdownPropertyValueConverter.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/FlexibleDropdownPropertyValueConverter.cs @@ -1,9 +1,11 @@ using System; using System.Collections.Generic; using Newtonsoft.Json; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PropertyEditors; using Umbraco.Core; -using Umbraco.Core.Models.PublishedContent; using Umbraco.Core.PropertyEditors; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web.PropertyEditors.ValueConverters { diff --git a/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/GridValueConverter.cs b/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/GridValueConverter.cs index f601dac6d9..17f50705ed 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/GridValueConverter.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/GridValueConverter.cs @@ -3,9 +3,11 @@ using System.Linq; using Microsoft.Extensions.Logging; using Newtonsoft.Json; using Newtonsoft.Json.Linq; -using Umbraco.Core.Composing; -using Umbraco.Core.Configuration.Grid; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration.Grid; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Extensions; namespace Umbraco.Core.PropertyEditors.ValueConverters { @@ -24,7 +26,7 @@ namespace Umbraco.Core.PropertyEditors.ValueConverters } public override bool IsConverter(IPublishedPropertyType propertyType) - => propertyType.EditorAlias.InvariantEquals(Constants.PropertyEditors.Aliases.Grid); + => propertyType.EditorAlias.InvariantEquals(Cms.Core.Constants.PropertyEditors.Aliases.Grid); public override Type GetPropertyValueType(IPublishedPropertyType propertyType) => typeof (JToken); diff --git a/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/ImageCropperValue.cs b/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/ImageCropperValue.cs index 94cb074ade..e4ba356874 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/ImageCropperValue.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/ImageCropperValue.cs @@ -4,10 +4,11 @@ using System.ComponentModel; using System.Linq; using System.Runtime.Serialization; using Newtonsoft.Json; -using Umbraco.Core.Media; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Media; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Strings; using Umbraco.Core.Serialization; -using Umbraco.Core.Strings; +using Umbraco.Extensions; namespace Umbraco.Core.PropertyEditors.ValueConverters { diff --git a/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/ImageCropperValueConverter.cs b/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/ImageCropperValueConverter.cs index a0e73be09b..6e6cd82d66 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/ImageCropperValueConverter.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/ImageCropperValueConverter.cs @@ -2,7 +2,9 @@ using System.Globalization; using Microsoft.Extensions.Logging; using Newtonsoft.Json; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Extensions; namespace Umbraco.Core.PropertyEditors.ValueConverters { @@ -21,7 +23,7 @@ namespace Umbraco.Core.PropertyEditors.ValueConverters /// public override bool IsConverter(IPublishedPropertyType propertyType) - => propertyType.EditorAlias.InvariantEquals(Constants.PropertyEditors.Aliases.ImageCropper); + => propertyType.EditorAlias.InvariantEquals(Cms.Core.Constants.PropertyEditors.Aliases.ImageCropper); /// public override Type GetPropertyValueType(IPublishedPropertyType propertyType) diff --git a/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/ImageCropperValueTypeConverter.cs b/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/ImageCropperValueTypeConverter.cs index 7631d32efc..9c05035b72 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/ImageCropperValueTypeConverter.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/ImageCropperValueTypeConverter.cs @@ -3,7 +3,7 @@ using System.ComponentModel; using System.Globalization; using System.Linq; using Newtonsoft.Json.Linq; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; namespace Umbraco.Core.PropertyEditors.ValueConverters { diff --git a/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/JsonValueConverter.cs b/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/JsonValueConverter.cs index f5228bd47e..439700df09 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/JsonValueConverter.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/JsonValueConverter.cs @@ -2,7 +2,9 @@ using Microsoft.Extensions.Logging; using Newtonsoft.Json; using Newtonsoft.Json.Linq; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Extensions; namespace Umbraco.Core.PropertyEditors.ValueConverters { diff --git a/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/MarkdownEditorValueConverter.cs b/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/MarkdownEditorValueConverter.cs index 1b4b0a3acb..e7d7584082 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/MarkdownEditorValueConverter.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/MarkdownEditorValueConverter.cs @@ -1,8 +1,9 @@ using System; using HeyRed.MarkdownSharp; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Strings; -using Umbraco.Web.Templates; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Core.Templates; namespace Umbraco.Core.PropertyEditors.ValueConverters { @@ -19,7 +20,7 @@ namespace Umbraco.Core.PropertyEditors.ValueConverters } public override bool IsConverter(IPublishedPropertyType propertyType) - => Constants.PropertyEditors.Aliases.MarkdownEditor.Equals(propertyType.EditorAlias); + => Cms.Core.Constants.PropertyEditors.Aliases.MarkdownEditor.Equals(propertyType.EditorAlias); public override Type GetPropertyValueType(IPublishedPropertyType propertyType) => typeof (IHtmlEncodedString); diff --git a/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/MultiUrlPickerValueConverter.cs b/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/MultiUrlPickerValueConverter.cs index 72beb0106a..9f3f78b16f 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/MultiUrlPickerValueConverter.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/MultiUrlPickerValueConverter.cs @@ -1,14 +1,16 @@ using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core; -using Umbraco.Core.Logging; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Serialization; -using Umbraco.Web.Models; -using Umbraco.Web.PublishedCache; -using Umbraco.Web.Routing; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Web; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web.PropertyEditors.ValueConverters { @@ -63,7 +65,7 @@ namespace Umbraco.Web.PropertyEditors.ValueConverters if (dto.Udi != null) { - type = dto.Udi.EntityType == Core.Constants.UdiEntityType.Media + type = dto.Udi.EntityType == Constants.UdiEntityType.Media ? LinkType.Media : LinkType.Content; diff --git a/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/NestedContentManyValueConverter.cs b/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/NestedContentManyValueConverter.cs index 11b924552e..71573fa651 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/NestedContentManyValueConverter.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/NestedContentManyValueConverter.cs @@ -3,8 +3,11 @@ using System.Collections.Generic; using System.Linq; using Newtonsoft.Json; using Newtonsoft.Json.Linq; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.PublishedCache; using Umbraco.Core.Logging; -using Umbraco.Core.Models.PublishedContent; using Umbraco.Core.PropertyEditors; using Umbraco.Core.PropertyEditors.ValueConverters; using Umbraco.Web.PublishedCache; diff --git a/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/NestedContentSingleValueConverter.cs b/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/NestedContentSingleValueConverter.cs index c9859c9770..16f9f4f9a9 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/NestedContentSingleValueConverter.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/NestedContentSingleValueConverter.cs @@ -2,8 +2,11 @@ using System.Collections.Generic; using Newtonsoft.Json; using Newtonsoft.Json.Linq; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.PublishedCache; using Umbraco.Core.Logging; -using Umbraco.Core.Models.PublishedContent; using Umbraco.Core.PropertyEditors; using Umbraco.Core.PropertyEditors.ValueConverters; using Umbraco.Web.PublishedCache; diff --git a/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/NestedContentValueConverterBase.cs b/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/NestedContentValueConverterBase.cs index 7c18d8ebca..577e636dbc 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/NestedContentValueConverterBase.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/NestedContentValueConverterBase.cs @@ -1,10 +1,11 @@ using System; using System.Collections.Generic; using Newtonsoft.Json.Linq; -using Umbraco.Core; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.PropertyEditors; -using Umbraco.Web.PublishedCache; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web.PropertyEditors.ValueConverters { diff --git a/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/RteMacroRenderingValueConverter.cs b/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/RteMacroRenderingValueConverter.cs index d0713b46ff..f1ee481123 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/RteMacroRenderingValueConverter.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/RteMacroRenderingValueConverter.cs @@ -1,13 +1,15 @@ using System.Linq; using System.Text; using HtmlAgilityPack; -using Umbraco.Core; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.PropertyEditors.ValueConverters; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Macros; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.PropertyEditors.ValueConverters; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Core.Templates; +using Umbraco.Cms.Core.Web; +using Umbraco.Extensions; using Umbraco.Web.Macros; -using Umbraco.Web.Templates; namespace Umbraco.Web.PropertyEditors.ValueConverters { diff --git a/src/Umbraco.Infrastructure/PropertyEditors/ValueListConfigurationEditor.cs b/src/Umbraco.Infrastructure/PropertyEditors/ValueListConfigurationEditor.cs index 7802767ad6..5c4c13bd85 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/ValueListConfigurationEditor.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/ValueListConfigurationEditor.cs @@ -1,9 +1,14 @@ -using System.Collections.Generic; +// Copyright (c) Umbraco. +// See LICENSE for more details. + +using System.Collections.Generic; using System.Linq; using Newtonsoft.Json.Linq; -using Umbraco.Core.IO; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Services; using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Services; +using Umbraco.Extensions; namespace Umbraco.Web.PropertyEditors { diff --git a/src/Umbraco.Infrastructure/PropertyEditors/ValueListUniqueValueValidator.cs b/src/Umbraco.Infrastructure/PropertyEditors/ValueListUniqueValueValidator.cs index c4f105fd02..9c77497e4c 100644 --- a/src/Umbraco.Infrastructure/PropertyEditors/ValueListUniqueValueValidator.cs +++ b/src/Umbraco.Infrastructure/PropertyEditors/ValueListUniqueValueValidator.cs @@ -2,8 +2,8 @@ using System.ComponentModel.DataAnnotations; using System.Linq; using Newtonsoft.Json.Linq; -using Umbraco.Core; -using Umbraco.Core.PropertyEditors; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Extensions; namespace Umbraco.Web.PropertyEditors { diff --git a/src/Umbraco.Infrastructure/PublishedCache/PublishedContentTypeCache.cs b/src/Umbraco.Infrastructure/PublishedCache/PublishedContentTypeCache.cs index ae99243a2c..3b1ee81e9a 100644 --- a/src/Umbraco.Infrastructure/PublishedCache/PublishedContentTypeCache.cs +++ b/src/Umbraco.Infrastructure/PublishedCache/PublishedContentTypeCache.cs @@ -2,10 +2,10 @@ using System; using System.Collections.Generic; using System.Linq; using System.Threading; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Services; using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Services; namespace Umbraco.Web.PublishedCache { diff --git a/src/Umbraco.Infrastructure/PublishedContentQuery.cs b/src/Umbraco.Infrastructure/PublishedContentQuery.cs index e995850a1f..9cb5864b31 100644 --- a/src/Umbraco.Infrastructure/PublishedContentQuery.cs +++ b/src/Umbraco.Infrastructure/PublishedContentQuery.cs @@ -5,11 +5,13 @@ using System.Linq; using System.Xml.XPath; using Examine; using Examine.Search; -using Umbraco.Core; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Xml; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Xml; using Umbraco.Examine; -using Umbraco.Web.PublishedCache; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web { diff --git a/src/Umbraco.Infrastructure/Routing/ContentFinderByConfigured404.cs b/src/Umbraco.Infrastructure/Routing/ContentFinderByConfigured404.cs index bc9f9f3857..8ad0f8be5a 100644 --- a/src/Umbraco.Infrastructure/Routing/ContentFinderByConfigured404.cs +++ b/src/Umbraco.Infrastructure/Routing/ContentFinderByConfigured404.cs @@ -3,9 +3,12 @@ using System.Linq; using Examine; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Web; using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Models.PublishedContent; using Umbraco.Core.Services; namespace Umbraco.Web.Routing diff --git a/src/Umbraco.Infrastructure/Routing/NotFoundHandlerHelper.cs b/src/Umbraco.Infrastructure/Routing/NotFoundHandlerHelper.cs index d73b780974..4727bc7a2d 100644 --- a/src/Umbraco.Infrastructure/Routing/NotFoundHandlerHelper.cs +++ b/src/Umbraco.Infrastructure/Routing/NotFoundHandlerHelper.cs @@ -1,14 +1,14 @@ using System; -using System.Globalization; using System.Linq; using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Configuration.UmbracoSettings; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Services; -using Umbraco.Core.Xml; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Xml; +using Umbraco.Extensions; namespace Umbraco.Web.Routing { @@ -77,7 +77,7 @@ namespace Umbraco.Web.Routing nodeContextId: null, getPath: nodeid => { - Core.Models.Entities.IEntitySlim ent = entityService.Get(nodeid); + IEntitySlim ent = entityService.Get(nodeid); return ent.Path.Split(',').Reverse(); }, publishedContentExists: i => publishedContentQuery.Content(i) != null); diff --git a/src/Umbraco.Infrastructure/Routing/RedirectTrackingComponent.cs b/src/Umbraco.Infrastructure/Routing/RedirectTrackingComponent.cs index 36b79e627d..d67a6d0ace 100644 --- a/src/Umbraco.Infrastructure/Routing/RedirectTrackingComponent.cs +++ b/src/Umbraco.Infrastructure/Routing/RedirectTrackingComponent.cs @@ -2,15 +2,15 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Composing; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Events; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Services.Implement; -using Umbraco.Web.PublishedCache; +using Umbraco.Extensions; namespace Umbraco.Web.Routing { diff --git a/src/Umbraco.Infrastructure/Routing/RedirectTrackingComposer.cs b/src/Umbraco.Infrastructure/Routing/RedirectTrackingComposer.cs index 0680a4c97f..a5b14df36a 100644 --- a/src/Umbraco.Infrastructure/Routing/RedirectTrackingComposer.cs +++ b/src/Umbraco.Infrastructure/Routing/RedirectTrackingComposer.cs @@ -1,4 +1,4 @@ -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; namespace Umbraco.Web.Routing { diff --git a/src/Umbraco.Infrastructure/Runtime/CoreRuntime.cs b/src/Umbraco.Infrastructure/Runtime/CoreRuntime.cs index de0be4ca25..9fb2e1fd09 100644 --- a/src/Umbraco.Infrastructure/Runtime/CoreRuntime.cs +++ b/src/Umbraco.Infrastructure/Runtime/CoreRuntime.cs @@ -2,12 +2,18 @@ using System; using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Runtime; +using Umbraco.Cms.Core.Services; using Umbraco.Core; -using Umbraco.Core.Composing; using Umbraco.Core.Events; -using Umbraco.Core.Hosting; using Umbraco.Core.Logging; using Umbraco.Core.Persistence; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Infrastructure.Runtime { @@ -76,7 +82,7 @@ namespace Umbraco.Infrastructure.Runtime _logger.LogError(exception, msg); }; - AppDomain.CurrentDomain.SetData("DataDirectory", _hostingEnvironment?.MapPathContentRoot(Core.Constants.SystemDirectories.Data)); + AppDomain.CurrentDomain.SetData("DataDirectory", _hostingEnvironment?.MapPathContentRoot(Constants.SystemDirectories.Data)); DoUnattendedInstall(); DetermineRuntimeLevel(); diff --git a/src/Umbraco.Infrastructure/Runtime/SqlMainDomLock.cs b/src/Umbraco.Infrastructure/Runtime/SqlMainDomLock.cs index a150afa095..47d9c1ba6c 100644 --- a/src/Umbraco.Infrastructure/Runtime/SqlMainDomLock.cs +++ b/src/Umbraco.Infrastructure/Runtime/SqlMainDomLock.cs @@ -8,13 +8,16 @@ using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.Logging; using NPoco; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Runtime; using Umbraco.Core.Migrations.Install; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.Persistence.Mappers; using Umbraco.Core.Persistence.SqlSyntax; +using Umbraco.Extensions; using MapperCollection = Umbraco.Core.Persistence.Mappers.MapperCollection; namespace Umbraco.Core.Runtime @@ -77,7 +80,7 @@ _hostingEnvironment = hostingEnvironment; { db = _dbFactory.CreateDatabase(); - _hasTable = db.HasTable(Constants.DatabaseSchema.Tables.KeyValue); + _hasTable = db.HasTable(Cms.Core.Constants.DatabaseSchema.Tables.KeyValue); if (!_hasTable) { // the Db does not contain the required table, we must be in an install state we have no choice but to assume we can acquire @@ -89,7 +92,7 @@ _hostingEnvironment = hostingEnvironment; try { // wait to get a write lock - _sqlServerSyntax.WriteLock(db, TimeSpan.FromMilliseconds(millisecondsTimeout), Constants.Locks.MainDom); + _sqlServerSyntax.WriteLock(db, TimeSpan.FromMilliseconds(millisecondsTimeout), Cms.Core.Constants.Locks.MainDom); } catch(SqlException ex) { @@ -198,7 +201,7 @@ _hostingEnvironment = hostingEnvironment; { // re-check if its still false, we don't want to re-query once we know its there since this // loop needs to use minimal resources - _hasTable = db.HasTable(Constants.DatabaseSchema.Tables.KeyValue); + _hasTable = db.HasTable(Cms.Core.Constants.DatabaseSchema.Tables.KeyValue); if (!_hasTable) { // the Db does not contain the required table, we just keep looping since we can't query the db @@ -208,7 +211,7 @@ _hostingEnvironment = hostingEnvironment; db.BeginTransaction(IsolationLevel.ReadCommitted); // get a read lock - _sqlServerSyntax.ReadLock(db, Constants.Locks.MainDom); + _sqlServerSyntax.ReadLock(db, Cms.Core.Constants.Locks.MainDom); if (!IsMainDomValue(_lockId, db)) { @@ -294,7 +297,7 @@ _hostingEnvironment = hostingEnvironment; { transaction = db.GetTransaction(IsolationLevel.ReadCommitted); // get a read lock - _sqlServerSyntax.ReadLock(db, Constants.Locks.MainDom); + _sqlServerSyntax.ReadLock(db, Cms.Core.Constants.Locks.MainDom); // the row var mainDomRows = db.Fetch("SELECT * FROM umbracoKeyValue WHERE [key] = @key", new { key = MainDomKey }); @@ -306,7 +309,7 @@ _hostingEnvironment = hostingEnvironment; // which indicates that we // can acquire it and it has shutdown. - _sqlServerSyntax.WriteLock(db, Constants.Locks.MainDom); + _sqlServerSyntax.WriteLock(db, Cms.Core.Constants.Locks.MainDom); // so now we update the row with our appdomain id InsertLockRecord(_lockId, db); @@ -365,7 +368,7 @@ _hostingEnvironment = hostingEnvironment; { transaction = db.GetTransaction(IsolationLevel.ReadCommitted); - _sqlServerSyntax.WriteLock(db, Constants.Locks.MainDom); + _sqlServerSyntax.WriteLock(db, Cms.Core.Constants.Locks.MainDom); // so now we update the row with our appdomain id InsertLockRecord(_lockId, db); @@ -448,7 +451,7 @@ _hostingEnvironment = hostingEnvironment; db.BeginTransaction(IsolationLevel.ReadCommitted); // get a write lock - _sqlServerSyntax.WriteLock(db, Constants.Locks.MainDom); + _sqlServerSyntax.WriteLock(db, Cms.Core.Constants.Locks.MainDom); // When we are disposed, it means we have released the MainDom lock // and called all MainDom release callbacks, in this case diff --git a/src/Umbraco.Infrastructure/RuntimeState.cs b/src/Umbraco.Infrastructure/RuntimeState.cs index 8b5e0abdc0..baebbd23d6 100644 --- a/src/Umbraco.Infrastructure/RuntimeState.cs +++ b/src/Umbraco.Infrastructure/RuntimeState.cs @@ -1,11 +1,14 @@ using System; using System.Threading; -using Semver; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Exceptions; +using Umbraco.Cms.Core.Semver; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Exceptions; using Umbraco.Core.Migrations.Install; using Umbraco.Core.Migrations.Upgrade; using Umbraco.Core.Persistence; diff --git a/src/Umbraco.Infrastructure/Scoping/IScope.cs b/src/Umbraco.Infrastructure/Scoping/IScope.cs index de4eef0a08..6f38df9e76 100644 --- a/src/Umbraco.Infrastructure/Scoping/IScope.cs +++ b/src/Umbraco.Infrastructure/Scoping/IScope.cs @@ -1,4 +1,7 @@ using System; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Scoping; using Umbraco.Core.Cache; using Umbraco.Core.Events; using Umbraco.Core.Persistence; diff --git a/src/Umbraco.Infrastructure/Scoping/IScopeProvider.cs b/src/Umbraco.Infrastructure/Scoping/IScopeProvider.cs index 712b90affa..1ad499d069 100644 --- a/src/Umbraco.Infrastructure/Scoping/IScopeProvider.cs +++ b/src/Umbraco.Infrastructure/Scoping/IScopeProvider.cs @@ -1,5 +1,7 @@ using System; using System.Data; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Scoping; using Umbraco.Core.Events; using Umbraco.Core.Persistence; diff --git a/src/Umbraco.Infrastructure/Scoping/Scope.cs b/src/Umbraco.Infrastructure/Scoping/Scope.cs index 84945c78d4..09d48112a2 100644 --- a/src/Umbraco.Infrastructure/Scoping/Scope.cs +++ b/src/Umbraco.Infrastructure/Scoping/Scope.cs @@ -1,12 +1,15 @@ using System; using System.Data; using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Scoping; using Umbraco.Core.Cache; -using Umbraco.Core.Composing; using Umbraco.Core.Events; -using Umbraco.Core.IO; using Umbraco.Core.Persistence; -using CoreDebugSettings = Umbraco.Core.Configuration.Models.CoreDebugSettings; +using CoreDebugSettings = Umbraco.Cms.Core.Configuration.Models.CoreDebugSettings; namespace Umbraco.Core.Scoping { diff --git a/src/Umbraco.Infrastructure/Scoping/ScopeContext.cs b/src/Umbraco.Infrastructure/Scoping/ScopeContext.cs index 7b62c5c7a2..909d31f662 100644 --- a/src/Umbraco.Infrastructure/Scoping/ScopeContext.cs +++ b/src/Umbraco.Infrastructure/Scoping/ScopeContext.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Linq; +using Umbraco.Cms.Core.Scoping; namespace Umbraco.Core.Scoping { diff --git a/src/Umbraco.Infrastructure/Scoping/ScopeProvider.cs b/src/Umbraco.Infrastructure/Scoping/ScopeProvider.cs index 151c4cfb3c..736b9b012b 100644 --- a/src/Umbraco.Infrastructure/Scoping/ScopeProvider.cs +++ b/src/Umbraco.Infrastructure/Scoping/ScopeProvider.cs @@ -2,12 +2,13 @@ using System; using System.Data; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; -using Umbraco.Core.Cache; -using Umbraco.Core.Composing; -using Umbraco.Core.Events; -using Umbraco.Core.IO; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Scoping; using Umbraco.Core.Persistence; -using CoreDebugSettings = Umbraco.Core.Configuration.Models.CoreDebugSettings; +using CoreDebugSettings = Umbraco.Cms.Core.Configuration.Models.CoreDebugSettings; #if DEBUG_SCOPES using System.Linq; diff --git a/src/Umbraco.Infrastructure/Scoping/ScopeReference.cs b/src/Umbraco.Infrastructure/Scoping/ScopeReference.cs index e1bfc21adc..210aef5b60 100644 --- a/src/Umbraco.Infrastructure/Scoping/ScopeReference.cs +++ b/src/Umbraco.Infrastructure/Scoping/ScopeReference.cs @@ -1,4 +1,6 @@ -namespace Umbraco.Core.Scoping +using Umbraco.Cms.Core; + +namespace Umbraco.Core.Scoping { /// /// References a scope. diff --git a/src/Umbraco.Infrastructure/Search/BackgroundIndexRebuilder.cs b/src/Umbraco.Infrastructure/Search/BackgroundIndexRebuilder.cs index 6f69dd0ad8..eb25c0d0f2 100644 --- a/src/Umbraco.Infrastructure/Search/BackgroundIndexRebuilder.cs +++ b/src/Umbraco.Infrastructure/Search/BackgroundIndexRebuilder.cs @@ -5,6 +5,7 @@ using System; using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.Runtime; using Umbraco.Core; using Umbraco.Examine; using Umbraco.Infrastructure.HostedServices; diff --git a/src/Umbraco.Infrastructure/Search/ExamineComponent.cs b/src/Umbraco.Infrastructure/Search/ExamineComponent.cs index 6aed199202..8be81b44d4 100644 --- a/src/Umbraco.Infrastructure/Search/ExamineComponent.cs +++ b/src/Umbraco.Infrastructure/Search/ExamineComponent.cs @@ -4,22 +4,24 @@ using System.Globalization; using System.Linq; using Examine; using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Logging; -using Umbraco.Core.Models; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Runtime; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Services.Changes; +using Umbraco.Cms.Core.Sync; using Umbraco.Core.Scoping; -using Umbraco.Core.Services; -using Umbraco.Core.Services.Changes; -using Umbraco.Core.Sync; using Umbraco.Examine; -using Umbraco.Web.Cache; +using Umbraco.Extensions; namespace Umbraco.Web.Search { - public sealed class ExamineComponent : Umbraco.Core.Composing.IComponent + public sealed class ExamineComponent : IComponent { private readonly IExamineManager _examineManager; private readonly IContentValueSetBuilder _contentValueSetBuilder; diff --git a/src/Umbraco.Infrastructure/Search/ExamineComposer.cs b/src/Umbraco.Infrastructure/Search/ExamineComposer.cs index 7fde24d069..83c9bf8556 100644 --- a/src/Umbraco.Infrastructure/Search/ExamineComposer.cs +++ b/src/Umbraco.Infrastructure/Search/ExamineComposer.cs @@ -1,12 +1,13 @@ using Microsoft.Extensions.DependencyInjection; -using Umbraco.Core.Composing; -using Umbraco.Core.DependencyInjection; -using Umbraco.Core.Models; -using Umbraco.Core.PropertyEditors; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.DependencyInjection; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; using Umbraco.Core.Scoping; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; using Umbraco.Examine; +using Umbraco.Extensions; namespace Umbraco.Web.Search { diff --git a/src/Umbraco.Infrastructure/Search/ExamineFinalComponent.cs b/src/Umbraco.Infrastructure/Search/ExamineFinalComponent.cs index 199c6482f4..67b966693d 100644 --- a/src/Umbraco.Infrastructure/Search/ExamineFinalComponent.cs +++ b/src/Umbraco.Infrastructure/Search/ExamineFinalComponent.cs @@ -1,6 +1,7 @@ using System; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Runtime; using Umbraco.Core; -using Umbraco.Core.Composing; namespace Umbraco.Web.Search { diff --git a/src/Umbraco.Infrastructure/Search/ExamineFinalComposer.cs b/src/Umbraco.Infrastructure/Search/ExamineFinalComposer.cs index 6b33459159..a796678f59 100644 --- a/src/Umbraco.Infrastructure/Search/ExamineFinalComposer.cs +++ b/src/Umbraco.Infrastructure/Search/ExamineFinalComposer.cs @@ -1,4 +1,4 @@ -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; namespace Umbraco.Web.Search { diff --git a/src/Umbraco.Infrastructure/Search/ExamineUserComponent.cs b/src/Umbraco.Infrastructure/Search/ExamineUserComponent.cs index 35bc3f59ea..c931297b25 100644 --- a/src/Umbraco.Infrastructure/Search/ExamineUserComponent.cs +++ b/src/Umbraco.Infrastructure/Search/ExamineUserComponent.cs @@ -1,5 +1,6 @@ -using Umbraco.Core; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Runtime; +using Umbraco.Core; namespace Umbraco.Web.Search { diff --git a/src/Umbraco.Infrastructure/Search/UmbracoTreeSearcher.cs b/src/Umbraco.Infrastructure/Search/UmbracoTreeSearcher.cs index a2955dfef5..fa2c3e2023 100644 --- a/src/Umbraco.Infrastructure/Search/UmbracoTreeSearcher.cs +++ b/src/Umbraco.Infrastructure/Search/UmbracoTreeSearcher.cs @@ -2,17 +2,18 @@ using System.Collections.Generic; using System.Linq; using Examine; -using Umbraco.Core; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Mapping; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Trees; using Umbraco.Core.Persistence; -using Umbraco.Core.Services; -using Umbraco.Core.Trees; using Umbraco.Examine; -using Umbraco.Web.Models.ContentEditing; -using Umbraco.Web.Models.Mapping; -using Umbraco.Web.Routing; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web.Search { diff --git a/src/Umbraco.Infrastructure/Security/BackOfficeClaimsPrincipalFactory.cs b/src/Umbraco.Infrastructure/Security/BackOfficeClaimsPrincipalFactory.cs index 77f707d812..9e441aa024 100644 --- a/src/Umbraco.Infrastructure/Security/BackOfficeClaimsPrincipalFactory.cs +++ b/src/Umbraco.Infrastructure/Security/BackOfficeClaimsPrincipalFactory.cs @@ -4,6 +4,7 @@ using System.Security.Claims; using System.Threading.Tasks; using Microsoft.AspNetCore.Identity; using Microsoft.Extensions.Options; +using Umbraco.Cms.Core.Security; using Umbraco.Core.Security; namespace Umbraco.Core.Security diff --git a/src/Umbraco.Infrastructure/Security/BackOfficeIdentityUser.cs b/src/Umbraco.Infrastructure/Security/BackOfficeIdentityUser.cs index e2e8031768..33012c21c4 100644 --- a/src/Umbraco.Infrastructure/Security/BackOfficeIdentityUser.cs +++ b/src/Umbraco.Infrastructure/Security/BackOfficeIdentityUser.cs @@ -2,10 +2,11 @@ using System; using System.Collections.Generic; using System.Linq; using Microsoft.AspNetCore.Identity; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models.Membership; using Umbraco.Core.Models.Identity; -using Umbraco.Core.Models.Membership; +using Umbraco.Extensions; namespace Umbraco.Core.Security { diff --git a/src/Umbraco.Infrastructure/Security/BackOfficeUserStore.cs b/src/Umbraco.Infrastructure/Security/BackOfficeUserStore.cs index 1756e84d76..ad95a5df64 100644 --- a/src/Umbraco.Infrastructure/Security/BackOfficeUserStore.cs +++ b/src/Umbraco.Infrastructure/Security/BackOfficeUserStore.cs @@ -8,13 +8,15 @@ using System.Threading; using System.Threading.Tasks; using Microsoft.AspNetCore.Identity; using Microsoft.Extensions.Options; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Identity; -using Umbraco.Core.Models.Membership; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Identity; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Scoping; -using Umbraco.Core.Services; +using Umbraco.Extensions; namespace Umbraco.Core.Security { @@ -83,7 +85,7 @@ namespace Umbraco.Core.Security // prefix will help us determine if the password hasn't actually been specified yet. // this will hash the guid with a salt so should be nicely random var aspHasher = new PasswordHasher(); - var emptyPasswordValue = Constants.Security.EmptyPasswordPrefix + + var emptyPasswordValue = Cms.Core.Constants.Security.EmptyPasswordPrefix + aspHasher.HashPassword(user, Guid.NewGuid().ToString("N")); var userEntity = new User(_globalSettings, user.Name, user.Email, user.UserName, emptyPasswordValue) diff --git a/src/Umbraco.Infrastructure/Security/IBackOfficeUserPasswordChecker.cs b/src/Umbraco.Infrastructure/Security/IBackOfficeUserPasswordChecker.cs index fdf1f1fcf2..d89228fcb2 100644 --- a/src/Umbraco.Infrastructure/Security/IBackOfficeUserPasswordChecker.cs +++ b/src/Umbraco.Infrastructure/Security/IBackOfficeUserPasswordChecker.cs @@ -1,4 +1,5 @@ using System.Threading.Tasks; +using Umbraco.Cms.Core.Security; namespace Umbraco.Core.Security { diff --git a/src/Umbraco.Infrastructure/Security/IUmbracoUserManager.cs b/src/Umbraco.Infrastructure/Security/IUmbracoUserManager.cs index 4bec4c9c7a..5669717aec 100644 --- a/src/Umbraco.Infrastructure/Security/IUmbracoUserManager.cs +++ b/src/Umbraco.Infrastructure/Security/IUmbracoUserManager.cs @@ -4,9 +4,9 @@ using System.Security.Claims; using System.Security.Principal; using System.Threading.Tasks; using Microsoft.AspNetCore.Identity; -using Umbraco.Core.Models.Membership; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Models.Membership; using Umbraco.Core.Security; -using Umbraco.Web.Models.ContentEditing; namespace Umbraco.Core.Security { diff --git a/src/Umbraco.Infrastructure/Security/IdentityMapDefinition.cs b/src/Umbraco.Infrastructure/Security/IdentityMapDefinition.cs index aebb2de5bf..8d57fc92be 100644 --- a/src/Umbraco.Infrastructure/Security/IdentityMapDefinition.cs +++ b/src/Umbraco.Infrastructure/Security/IdentityMapDefinition.cs @@ -1,11 +1,14 @@ +// Copyright (c) Umbraco. +// See LICENSE for more details. + using System; using Microsoft.Extensions.Options; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; namespace Umbraco.Core.Security { @@ -78,7 +81,7 @@ namespace Umbraco.Core.Security private static string GetPasswordHash(string storedPass) { - return storedPass.StartsWith(Constants.Security.EmptyPasswordPrefix) ? null : storedPass; + return storedPass.StartsWith(Cms.Core.Constants.Security.EmptyPasswordPrefix) ? null : storedPass; } } } diff --git a/src/Umbraco.Infrastructure/Security/SignOutAuditEventArgs.cs b/src/Umbraco.Infrastructure/Security/SignOutAuditEventArgs.cs index 626932640c..b3eb56ce01 100644 --- a/src/Umbraco.Infrastructure/Security/SignOutAuditEventArgs.cs +++ b/src/Umbraco.Infrastructure/Security/SignOutAuditEventArgs.cs @@ -1,3 +1,4 @@ +using Umbraco.Cms.Core.Security; using Umbraco.Core.Security; namespace Umbraco.Core.Security @@ -8,7 +9,7 @@ namespace Umbraco.Core.Security /// public class SignOutAuditEventArgs : IdentityAuditEventArgs { - public SignOutAuditEventArgs(AuditEvent action, string ipAddress, string comment = null, string performingUser = Constants.Security.SuperUserIdAsString, string affectedUser = Constants.Security.SuperUserIdAsString) + public SignOutAuditEventArgs(AuditEvent action, string ipAddress, string comment = null, string performingUser = Cms.Core.Constants.Security.SuperUserIdAsString, string affectedUser = Cms.Core.Constants.Security.SuperUserIdAsString) : base(action, ipAddress, performingUser, comment, affectedUser, null) { } diff --git a/src/Umbraco.Infrastructure/Security/UmbracoIdentityUser.cs b/src/Umbraco.Infrastructure/Security/UmbracoIdentityUser.cs index 1b888123be..8bad017383 100644 --- a/src/Umbraco.Infrastructure/Security/UmbracoIdentityUser.cs +++ b/src/Umbraco.Infrastructure/Security/UmbracoIdentityUser.cs @@ -4,7 +4,8 @@ using System.Collections.ObjectModel; using System.Collections.Specialized; using System.ComponentModel; using Microsoft.AspNetCore.Identity; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Identity; namespace Umbraco.Core.Models.Identity { @@ -251,7 +252,7 @@ namespace Umbraco.Core.Models.Identity public void EnableChangeTracking() => BeingDirty.EnableChangeTracking(); /// - /// Adds a role + /// Adds a role /// /// The role to add /// diff --git a/src/Umbraco.Infrastructure/Security/UmbracoUserManager.cs b/src/Umbraco.Infrastructure/Security/UmbracoUserManager.cs index 6318218669..8c295f5a0f 100644 --- a/src/Umbraco.Infrastructure/Security/UmbracoUserManager.cs +++ b/src/Umbraco.Infrastructure/Security/UmbracoUserManager.cs @@ -5,9 +5,11 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Identity; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Net; +using Umbraco.Cms.Core.Security; using Umbraco.Core.Configuration; using Umbraco.Core.Models.Identity; -using Umbraco.Net; namespace Umbraco.Core.Security { diff --git a/src/Umbraco.Infrastructure/Security/UserInviteEventArgs.cs b/src/Umbraco.Infrastructure/Security/UserInviteEventArgs.cs index 80b05497a8..83eec6ad1e 100644 --- a/src/Umbraco.Infrastructure/Security/UserInviteEventArgs.cs +++ b/src/Umbraco.Infrastructure/Security/UserInviteEventArgs.cs @@ -1,6 +1,7 @@ -using Umbraco.Core.Models.Membership; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Security; using Umbraco.Core.Security; -using Umbraco.Web.Models.ContentEditing; namespace Umbraco.Core.Security { diff --git a/src/Umbraco.Infrastructure/Serialization/ConfigurationEditorJsonSerializer.cs b/src/Umbraco.Infrastructure/Serialization/ConfigurationEditorJsonSerializer.cs index ec40848fb5..5d1e0ae3ae 100644 --- a/src/Umbraco.Infrastructure/Serialization/ConfigurationEditorJsonSerializer.cs +++ b/src/Umbraco.Infrastructure/Serialization/ConfigurationEditorJsonSerializer.cs @@ -1,6 +1,8 @@ using System.Reflection; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; using Umbraco.Core.PropertyEditors; namespace Umbraco.Core.Serialization diff --git a/src/Umbraco.Infrastructure/Serialization/JsonNetSerializer.cs b/src/Umbraco.Infrastructure/Serialization/JsonNetSerializer.cs index 1974619a70..924bc3a883 100644 --- a/src/Umbraco.Infrastructure/Serialization/JsonNetSerializer.cs +++ b/src/Umbraco.Infrastructure/Serialization/JsonNetSerializer.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using Umbraco.Cms.Core.Serialization; namespace Umbraco.Core.Serialization { diff --git a/src/Umbraco.Infrastructure/Serialization/JsonReadConverter.cs b/src/Umbraco.Infrastructure/Serialization/JsonReadConverter.cs index 9404d7fe36..bdff128998 100644 --- a/src/Umbraco.Infrastructure/Serialization/JsonReadConverter.cs +++ b/src/Umbraco.Infrastructure/Serialization/JsonReadConverter.cs @@ -1,7 +1,6 @@ using System; using Newtonsoft.Json; using Newtonsoft.Json.Linq; -using Umbraco.Core.Exceptions; namespace Umbraco.Core.Serialization { diff --git a/src/Umbraco.Infrastructure/Serialization/KnownTypeUdiJsonConverter.cs b/src/Umbraco.Infrastructure/Serialization/KnownTypeUdiJsonConverter.cs index 79ff90c734..4567982feb 100644 --- a/src/Umbraco.Infrastructure/Serialization/KnownTypeUdiJsonConverter.cs +++ b/src/Umbraco.Infrastructure/Serialization/KnownTypeUdiJsonConverter.cs @@ -1,6 +1,7 @@ using System; using Newtonsoft.Json; using Newtonsoft.Json.Linq; +using Umbraco.Cms.Core; namespace Umbraco.Core.Serialization { diff --git a/src/Umbraco.Infrastructure/Serialization/UdiJsonConverter.cs b/src/Umbraco.Infrastructure/Serialization/UdiJsonConverter.cs index eac5dd8c26..9ac1d4ed22 100644 --- a/src/Umbraco.Infrastructure/Serialization/UdiJsonConverter.cs +++ b/src/Umbraco.Infrastructure/Serialization/UdiJsonConverter.cs @@ -1,6 +1,7 @@ using System; using Newtonsoft.Json; using Newtonsoft.Json.Linq; +using Umbraco.Cms.Core; namespace Umbraco.Core.Serialization { diff --git a/src/Umbraco.Infrastructure/Serialization/UdiRangeJsonConverter.cs b/src/Umbraco.Infrastructure/Serialization/UdiRangeJsonConverter.cs index bc5b315c55..d00120597f 100644 --- a/src/Umbraco.Infrastructure/Serialization/UdiRangeJsonConverter.cs +++ b/src/Umbraco.Infrastructure/Serialization/UdiRangeJsonConverter.cs @@ -1,6 +1,7 @@ using System; using Newtonsoft.Json; using Newtonsoft.Json.Linq; +using Umbraco.Cms.Core; namespace Umbraco.Core.Serialization { diff --git a/src/Umbraco.Infrastructure/Services/IdKeyMap.cs b/src/Umbraco.Infrastructure/Services/IdKeyMap.cs index 62c135e717..c076d78973 100644 --- a/src/Umbraco.Infrastructure/Services/IdKeyMap.cs +++ b/src/Umbraco.Infrastructure/Services/IdKeyMap.cs @@ -2,6 +2,9 @@ using System.Collections.Concurrent; using System.Collections.Generic; using System.Threading; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Models; using Umbraco.Core.Scoping; @@ -174,7 +177,7 @@ namespace Umbraco.Core.Services else { val = scope.Database.ExecuteScalar("SELECT id FROM umbracoNode WHERE uniqueId=@id AND (nodeObjectType=@type OR nodeObjectType=@reservation)", - new { id = key, type = GetNodeObjectTypeGuid(umbracoObjectType), reservation = Constants.ObjectTypes.IdReservation }); + new { id = key, type = GetNodeObjectTypeGuid(umbracoObjectType), reservation = Cms.Core.Constants.ObjectTypes.IdReservation }); } scope.Complete(); } @@ -262,7 +265,7 @@ namespace Umbraco.Core.Services else { val = scope.Database.ExecuteScalar("SELECT uniqueId FROM umbracoNode WHERE id=@id AND (nodeObjectType=@type OR nodeObjectType=@reservation)", - new { id, type = GetNodeObjectTypeGuid(umbracoObjectType), reservation = Constants.ObjectTypes.IdReservation }); + new { id, type = GetNodeObjectTypeGuid(umbracoObjectType), reservation = Cms.Core.Constants.ObjectTypes.IdReservation }); } scope.Complete(); } diff --git a/src/Umbraco.Infrastructure/Services/Implement/AuditService.cs b/src/Umbraco.Infrastructure/Services/Implement/AuditService.cs index 77c7b6610f..aade3d9f83 100644 --- a/src/Umbraco.Infrastructure/Services/Implement/AuditService.cs +++ b/src/Umbraco.Infrastructure/Services/Implement/AuditService.cs @@ -2,6 +2,12 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Events; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Dtos; @@ -104,7 +110,7 @@ namespace Umbraco.Core.Services.Implement if (pageIndex < 0) throw new ArgumentOutOfRangeException(nameof(pageIndex)); if (pageSize <= 0) throw new ArgumentOutOfRangeException(nameof(pageSize)); - if (entityId == Constants.System.Root || entityId <= 0) + if (entityId == Cms.Core.Constants.System.Root || entityId <= 0) { totalRecords = 0; return Enumerable.Empty(); @@ -141,7 +147,7 @@ namespace Umbraco.Core.Services.Implement if (pageIndex < 0) throw new ArgumentOutOfRangeException(nameof(pageIndex)); if (pageSize <= 0) throw new ArgumentOutOfRangeException(nameof(pageSize)); - if (userId < Constants.Security.SuperUserId) + if (userId < Cms.Core.Constants.Security.SuperUserId) { totalRecords = 0; return Enumerable.Empty(); @@ -158,7 +164,7 @@ namespace Umbraco.Core.Services.Implement /// public IAuditEntry Write(int performingUserId, string perfomingDetails, string performingIp, DateTime eventDateUtc, int affectedUserId, string affectedDetails, string eventType, string eventDetails) { - if (performingUserId < 0 && performingUserId != Constants.Security.SuperUserId) throw new ArgumentOutOfRangeException(nameof(performingUserId)); + if (performingUserId < 0 && performingUserId != Cms.Core.Constants.Security.SuperUserId) throw new ArgumentOutOfRangeException(nameof(performingUserId)); if (string.IsNullOrWhiteSpace(perfomingDetails)) throw new ArgumentException("Value cannot be null or whitespace.", nameof(perfomingDetails)); if (string.IsNullOrWhiteSpace(eventType)) throw new ArgumentException("Value cannot be null or whitespace.", nameof(eventType)); if (string.IsNullOrWhiteSpace(eventDetails)) throw new ArgumentException("Value cannot be null or whitespace.", nameof(eventDetails)); diff --git a/src/Umbraco.Infrastructure/Services/Implement/ConsentService.cs b/src/Umbraco.Infrastructure/Services/Implement/ConsentService.cs index 1f33d1fe58..c2bb9982c6 100644 --- a/src/Umbraco.Infrastructure/Services/Implement/ConsentService.cs +++ b/src/Umbraco.Infrastructure/Services/Implement/ConsentService.cs @@ -1,6 +1,10 @@ using System; using System.Collections.Generic; using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Events; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Repositories; diff --git a/src/Umbraco.Infrastructure/Services/Implement/ContentService.cs b/src/Umbraco.Infrastructure/Services/Implement/ContentService.cs index 69dadb2b21..3e057a1924 100644 --- a/src/Umbraco.Infrastructure/Services/Implement/ContentService.cs +++ b/src/Umbraco.Infrastructure/Services/Implement/ContentService.cs @@ -3,15 +3,20 @@ using System.Collections.Generic; using System.Globalization; using System.Linq; using Microsoft.Extensions.Logging; -using Umbraco.Core.Events; -using Umbraco.Core.Exceptions; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Membership; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Exceptions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Services.Changes; +using Umbraco.Cms.Core.Strings; using Umbraco.Core.Persistence.Querying; using Umbraco.Core.Persistence.Repositories; using Umbraco.Core.Scoping; -using Umbraco.Core.Services.Changes; -using Umbraco.Core.Strings; +using Umbraco.Extensions; namespace Umbraco.Core.Services.Implement { @@ -67,7 +72,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.ContentTree); + scope.ReadLock(Cms.Core.Constants.Locks.ContentTree); return _documentRepository.CountPublished(contentTypeAlias); } } @@ -76,7 +81,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.ContentTree); + scope.ReadLock(Cms.Core.Constants.Locks.ContentTree); return _documentRepository.Count(contentTypeAlias); } } @@ -85,7 +90,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.ContentTree); + scope.ReadLock(Cms.Core.Constants.Locks.ContentTree); return _documentRepository.CountChildren(parentId, contentTypeAlias); } } @@ -94,7 +99,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.ContentTree); + scope.ReadLock(Cms.Core.Constants.Locks.ContentTree); return _documentRepository.CountDescendants(parentId, contentTypeAlias); } } @@ -112,7 +117,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope()) { - scope.WriteLock(Constants.Locks.ContentTree); + scope.WriteLock(Cms.Core.Constants.Locks.ContentTree); _documentRepository.ReplaceContentPermissions(permissionSet); scope.Complete(); } @@ -128,7 +133,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope()) { - scope.WriteLock(Constants.Locks.ContentTree); + scope.WriteLock(Cms.Core.Constants.Locks.ContentTree); _documentRepository.AssignEntityPermission(entity, permission, groupIds); scope.Complete(); } @@ -143,7 +148,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.ContentTree); + scope.ReadLock(Cms.Core.Constants.Locks.ContentTree); return _documentRepository.GetPermissionsForEntity(content.Id); } } @@ -166,7 +171,7 @@ namespace Umbraco.Core.Services.Implement /// Alias of the /// Optional id of the user creating the content /// - public IContent Create(string name, Guid parentId, string contentTypeAlias, int userId = Constants.Security.SuperUserId) + public IContent Create(string name, Guid parentId, string contentTypeAlias, int userId = Cms.Core.Constants.Security.SuperUserId) { // TODO: what about culture? @@ -186,7 +191,7 @@ namespace Umbraco.Core.Services.Implement /// The alias of the content type. /// The optional id of the user creating the content. /// The content object. - public IContent Create(string name, int parentId, string contentTypeAlias, int userId = Constants.Security.SuperUserId) + public IContent Create(string name, int parentId, string contentTypeAlias, int userId = Cms.Core.Constants.Security.SuperUserId) { // TODO: what about culture? @@ -219,7 +224,7 @@ namespace Umbraco.Core.Services.Implement /// The alias of the content type. /// The optional id of the user creating the content. /// The content object. - public IContent Create(string name, IContent parent, string contentTypeAlias, int userId = Constants.Security.SuperUserId) + public IContent Create(string name, IContent parent, string contentTypeAlias, int userId = Cms.Core.Constants.Security.SuperUserId) { // TODO: what about culture? @@ -250,14 +255,14 @@ namespace Umbraco.Core.Services.Implement /// The alias of the content type. /// The optional id of the user creating the content. /// The content object. - public IContent CreateAndSave(string name, int parentId, string contentTypeAlias, int userId = Constants.Security.SuperUserId) + public IContent CreateAndSave(string name, int parentId, string contentTypeAlias, int userId = Cms.Core.Constants.Security.SuperUserId) { // TODO: what about culture? using (var scope = ScopeProvider.CreateScope()) { // locking the content tree secures content types too - scope.WriteLock(Constants.Locks.ContentTree); + scope.WriteLock(Cms.Core.Constants.Locks.ContentTree); var contentType = GetContentType(contentTypeAlias); // + locks if (contentType == null) @@ -284,7 +289,7 @@ namespace Umbraco.Core.Services.Implement /// The alias of the content type. /// The optional id of the user creating the content. /// The content object. - public IContent CreateAndSave(string name, IContent parent, string contentTypeAlias, int userId = Constants.Security.SuperUserId) + public IContent CreateAndSave(string name, IContent parent, string contentTypeAlias, int userId = Cms.Core.Constants.Security.SuperUserId) { // TODO: what about culture? @@ -293,7 +298,7 @@ namespace Umbraco.Core.Services.Implement using (var scope = ScopeProvider.CreateScope()) { // locking the content tree secures content types too - scope.WriteLock(Constants.Locks.ContentTree); + scope.WriteLock(Cms.Core.Constants.Locks.ContentTree); var contentType = GetContentType(contentTypeAlias); // + locks if (contentType == null) @@ -346,7 +351,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.ContentTree); + scope.ReadLock(Cms.Core.Constants.Locks.ContentTree); return _documentRepository.Get(id); } } @@ -363,7 +368,7 @@ namespace Umbraco.Core.Services.Implement using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.ContentTree); + scope.ReadLock(Cms.Core.Constants.Locks.ContentTree); var items = _documentRepository.GetMany(idsA); var index = items.ToDictionary(x => x.Id, x => x); @@ -381,7 +386,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.ContentTree); + scope.ReadLock(Cms.Core.Constants.Locks.ContentTree); return _documentRepository.Get(key); } } @@ -408,7 +413,7 @@ namespace Umbraco.Core.Services.Implement using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.ContentTree); + scope.ReadLock(Cms.Core.Constants.Locks.ContentTree); var items = _documentRepository.GetMany(idsA); var index = items.ToDictionary(x => x.Key, x => x); @@ -429,7 +434,7 @@ namespace Umbraco.Core.Services.Implement using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.ContentTree); + scope.ReadLock(Cms.Core.Constants.Locks.ContentTree); return _documentRepository.GetPage( Query().Where(x => x.ContentTypeId == contentTypeId), pageIndex, pageSize, out totalRecords, filter, ordering); @@ -447,7 +452,7 @@ namespace Umbraco.Core.Services.Implement using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.ContentTree); + scope.ReadLock(Cms.Core.Constants.Locks.ContentTree); return _documentRepository.GetPage( Query().Where(x => contentTypeIds.Contains(x.ContentTypeId)), pageIndex, pageSize, out totalRecords, filter, ordering); @@ -464,7 +469,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.ContentTree); + scope.ReadLock(Cms.Core.Constants.Locks.ContentTree); var query = Query().Where(x => x.Level == level && x.Trashed == false); return _documentRepository.Get(query); } @@ -479,7 +484,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.ContentTree); + scope.ReadLock(Cms.Core.Constants.Locks.ContentTree); return _documentRepository.GetVersion(versionId); } } @@ -493,7 +498,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.ContentTree); + scope.ReadLock(Cms.Core.Constants.Locks.ContentTree); return _documentRepository.GetAllVersions(id); } } @@ -506,7 +511,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.ContentTree); + scope.ReadLock(Cms.Core.Constants.Locks.ContentTree); return _documentRepository.GetAllVersionsSlim(id, skip, take); } } @@ -547,7 +552,7 @@ namespace Umbraco.Core.Services.Implement //null check otherwise we get exceptions if (content.Path.IsNullOrWhiteSpace()) return Enumerable.Empty(); - var rootId = Constants.System.RootString; + var rootId = Cms.Core.Constants.System.RootString; var ids = content.Path.Split(',') .Where(x => x != rootId && x != content.Id.ToString(CultureInfo.InvariantCulture)).Select(int.Parse).ToArray(); if (ids.Any() == false) @@ -555,7 +560,7 @@ namespace Umbraco.Core.Services.Implement using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.ContentTree); + scope.ReadLock(Cms.Core.Constants.Locks.ContentTree); return _documentRepository.GetMany(ids); } } @@ -569,7 +574,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.ContentTree); + scope.ReadLock(Cms.Core.Constants.Locks.ContentTree); var query = Query().Where(x => x.ParentId == id && x.Published); return _documentRepository.Get(query).OrderBy(x => x.SortOrder); } @@ -587,7 +592,7 @@ namespace Umbraco.Core.Services.Implement using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.ContentTree); + scope.ReadLock(Cms.Core.Constants.Locks.ContentTree); var query = Query().Where(x => x.ParentId == id); return _documentRepository.GetPage(query, pageIndex, pageSize, out totalChildren, filter, ordering); @@ -603,12 +608,12 @@ namespace Umbraco.Core.Services.Implement using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.ContentTree); + scope.ReadLock(Cms.Core.Constants.Locks.ContentTree); //if the id is System Root, then just get all - if (id != Constants.System.Root) + if (id != Cms.Core.Constants.System.Root) { - var contentPath = _entityRepository.GetAllPaths(Constants.ObjectTypes.Document, id).ToArray(); + var contentPath = _entityRepository.GetAllPaths(Cms.Core.Constants.ObjectTypes.Document, id).ToArray(); if (contentPath.Length == 0) { totalChildren = 0; @@ -657,7 +662,7 @@ namespace Umbraco.Core.Services.Implement /// Parent object public IContent GetParent(IContent content) { - if (content.ParentId == Constants.System.Root || content.ParentId == Constants.System.RecycleBinContent) + if (content.ParentId == Cms.Core.Constants.System.Root || content.ParentId == Cms.Core.Constants.System.RecycleBinContent) return null; return GetById(content.ParentId); @@ -671,8 +676,8 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.ContentTree); - var query = Query().Where(x => x.ParentId == Constants.System.Root); + scope.ReadLock(Cms.Core.Constants.Locks.ContentTree); + var query = Query().Where(x => x.ParentId == Cms.Core.Constants.System.Root); return _documentRepository.Get(query); } } @@ -685,7 +690,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.ContentTree); + scope.ReadLock(Cms.Core.Constants.Locks.ContentTree); return _documentRepository.Get(QueryNotTrashed); } } @@ -695,7 +700,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.ContentTree); + scope.ReadLock(Cms.Core.Constants.Locks.ContentTree); return _documentRepository.GetContentForExpiration(date); } } @@ -705,7 +710,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.ContentTree); + scope.ReadLock(Cms.Core.Constants.Locks.ContentTree); return _documentRepository.GetContentForRelease(date); } } @@ -722,8 +727,8 @@ namespace Umbraco.Core.Services.Implement if (ordering == null) ordering = Ordering.By("Path"); - scope.ReadLock(Constants.Locks.ContentTree); - var query = Query().Where(x => x.Path.StartsWith(Constants.System.RecycleBinContentPathPrefix)); + scope.ReadLock(Cms.Core.Constants.Locks.ContentTree); + var query = Query().Where(x => x.Path.StartsWith(Cms.Core.Constants.System.RecycleBinContentPathPrefix)); return _documentRepository.GetPage(query, pageIndex, pageSize, out totalRecords, filter, ordering); } } @@ -746,7 +751,7 @@ namespace Umbraco.Core.Services.Implement public bool IsPathPublishable(IContent content) { // fast - if (content.ParentId == Constants.System.Root) return true; // root content is always publishable + if (content.ParentId == Cms.Core.Constants.System.Root) return true; // root content is always publishable if (content.Trashed) return false; // trashed content is never publishable // not trashed and has a parent: publishable if the parent is path-published @@ -758,7 +763,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.ContentTree); + scope.ReadLock(Cms.Core.Constants.Locks.ContentTree); return _documentRepository.IsPathPublished(content); } } @@ -768,7 +773,7 @@ namespace Umbraco.Core.Services.Implement #region Save, Publish, Unpublish /// - public OperationResult Save(IContent content, int userId = Constants.Security.SuperUserId, bool raiseEvents = true) + public OperationResult Save(IContent content, int userId = Cms.Core.Constants.Security.SuperUserId, bool raiseEvents = true) { var publishedState = content.PublishedState; if (publishedState != PublishedState.Published && publishedState != PublishedState.Unpublished) @@ -790,7 +795,7 @@ namespace Umbraco.Core.Services.Implement return OperationResult.Cancel(evtMsgs); } - scope.WriteLock(Constants.Locks.ContentTree); + scope.WriteLock(Cms.Core.Constants.Locks.ContentTree); if (content.HasIdentity == false) content.CreatorId = userId; @@ -831,7 +836,7 @@ namespace Umbraco.Core.Services.Implement } /// - public OperationResult Save(IEnumerable contents, int userId = Constants.Security.SuperUserId, bool raiseEvents = true) + public OperationResult Save(IEnumerable contents, int userId = Cms.Core.Constants.Security.SuperUserId, bool raiseEvents = true) { var evtMsgs = EventMessagesFactory.Get(); var contentsA = contents.ToArray(); @@ -847,7 +852,7 @@ namespace Umbraco.Core.Services.Implement var treeChanges = contentsA.Select(x => new TreeChange(x, TreeChangeTypes.RefreshNode)); - scope.WriteLock(Constants.Locks.ContentTree); + scope.WriteLock(Cms.Core.Constants.Locks.ContentTree); foreach (var content in contentsA) { if (content.HasIdentity == false) @@ -862,7 +867,7 @@ namespace Umbraco.Core.Services.Implement scope.Events.Dispatch(Saved, this, saveEventArgs.ToContentSavedEventArgs(), nameof(Saved)); } scope.Events.Dispatch(TreeChanged, this, treeChanges.ToEventArgs()); - Audit(AuditType.Save, userId == -1 ? 0 : userId, Constants.System.Root, "Saved multiple content"); + Audit(AuditType.Save, userId == -1 ? 0 : userId, Cms.Core.Constants.System.Root, "Saved multiple content"); scope.Complete(); } @@ -871,7 +876,7 @@ namespace Umbraco.Core.Services.Implement } /// - public PublishResult SaveAndPublish(IContent content, string culture = "*", int userId = Constants.Security.SuperUserId, bool raiseEvents = true) + public PublishResult SaveAndPublish(IContent content, string culture = "*", int userId = Cms.Core.Constants.Security.SuperUserId, bool raiseEvents = true) { var evtMsgs = EventMessagesFactory.Get(); @@ -899,7 +904,7 @@ namespace Umbraco.Core.Services.Implement using (var scope = ScopeProvider.CreateScope()) { - scope.WriteLock(Constants.Locks.ContentTree); + scope.WriteLock(Cms.Core.Constants.Locks.ContentTree); var allLangs = _languageRepository.GetMany().ToList(); @@ -936,7 +941,7 @@ namespace Umbraco.Core.Services.Implement using (var scope = ScopeProvider.CreateScope()) { - scope.WriteLock(Constants.Locks.ContentTree); + scope.WriteLock(Cms.Core.Constants.Locks.ContentTree); var allLangs = _languageRepository.GetMany().ToList(); @@ -970,7 +975,7 @@ namespace Umbraco.Core.Services.Implement } /// - public PublishResult Unpublish(IContent content, string culture = "*", int userId = Constants.Security.SuperUserId) + public PublishResult Unpublish(IContent content, string culture = "*", int userId = Cms.Core.Constants.Security.SuperUserId) { if (content == null) throw new ArgumentNullException(nameof(content)); @@ -1001,7 +1006,7 @@ namespace Umbraco.Core.Services.Implement using (var scope = ScopeProvider.CreateScope()) { - scope.WriteLock(Constants.Locks.ContentTree); + scope.WriteLock(Cms.Core.Constants.Locks.ContentTree); var allLangs = _languageRepository.GetMany().ToList(); @@ -1067,13 +1072,13 @@ namespace Umbraco.Core.Services.Implement /// The document is *always* saved, even when publishing fails. /// internal PublishResult CommitDocumentChanges(IContent content, - int userId = Constants.Security.SuperUserId, bool raiseEvents = true) + int userId = Cms.Core.Constants.Security.SuperUserId, bool raiseEvents = true) { using (var scope = ScopeProvider.CreateScope()) { var evtMsgs = EventMessagesFactory.Get(); - scope.WriteLock(Constants.Locks.ContentTree); + scope.WriteLock(Cms.Core.Constants.Locks.ContentTree); var saveEventArgs = new ContentSavingEventArgs(content, evtMsgs); if (raiseEvents && scope.Events.DispatchCancelable(Saving, this, saveEventArgs, nameof(Saving))) @@ -1106,7 +1111,7 @@ namespace Umbraco.Core.Services.Implement /// private PublishResult CommitDocumentChangesInternal(IScope scope, IContent content, ContentSavingEventArgs saveEventArgs, IReadOnlyCollection allLangs, - int userId = Constants.Security.SuperUserId, + int userId = Cms.Core.Constants.Security.SuperUserId, bool raiseEvents = true, bool branchOne = false, bool branchRoot = false) { if (scope == null) throw new ArgumentNullException(nameof(scope)); @@ -1396,7 +1401,7 @@ namespace Umbraco.Core.Services.Implement if (_documentRepository.HasContentForExpiration(date)) { // now take a write lock since we'll be updating - scope.WriteLock(Constants.Locks.ContentTree); + scope.WriteLock(Cms.Core.Constants.Locks.ContentTree); foreach (var d in _documentRepository.GetContentForExpiration(date)) { @@ -1457,7 +1462,7 @@ namespace Umbraco.Core.Services.Implement if (_documentRepository.HasContentForRelease(date)) { // now take a write lock since we'll be updating - scope.WriteLock(Constants.Locks.ContentTree); + scope.WriteLock(Cms.Core.Constants.Locks.ContentTree); foreach (var d in _documentRepository.GetContentForRelease(date)) { @@ -1576,7 +1581,7 @@ namespace Umbraco.Core.Services.Implement } /// - public IEnumerable SaveAndPublishBranch(IContent content, bool force, string culture = "*", int userId = Constants.Security.SuperUserId) + public IEnumerable SaveAndPublishBranch(IContent content, bool force, string culture = "*", int userId = Cms.Core.Constants.Security.SuperUserId) { // note: EditedValue and PublishedValue are objects here, so it is important to .Equals() // and not to == them, else we would be comparing references, and that is a bad thing @@ -1618,7 +1623,7 @@ namespace Umbraco.Core.Services.Implement } /// - public IEnumerable SaveAndPublishBranch(IContent content, bool force, string[] cultures, int userId = Constants.Security.SuperUserId) + public IEnumerable SaveAndPublishBranch(IContent content, bool force, string[] cultures, int userId = Cms.Core.Constants.Security.SuperUserId) { // note: EditedValue and PublishedValue are objects here, so it is important to .Equals() // and not to == them, else we would be comparing references, and that is a bad thing @@ -1657,7 +1662,7 @@ namespace Umbraco.Core.Services.Implement internal IEnumerable SaveAndPublishBranch(IContent document, bool force, Func> shouldPublish, Func, IReadOnlyCollection, bool> publishCultures, - int userId = Constants.Security.SuperUserId) + int userId = Cms.Core.Constants.Security.SuperUserId) { if (shouldPublish == null) throw new ArgumentNullException(nameof(shouldPublish)); if (publishCultures == null) throw new ArgumentNullException(nameof(publishCultures)); @@ -1668,7 +1673,7 @@ namespace Umbraco.Core.Services.Implement using (var scope = ScopeProvider.CreateScope()) { - scope.WriteLock(Constants.Locks.ContentTree); + scope.WriteLock(Cms.Core.Constants.Locks.ContentTree); var allLangs = _languageRepository.GetMany().ToList(); @@ -1776,7 +1781,7 @@ namespace Umbraco.Core.Services.Implement #region Delete /// - public OperationResult Delete(IContent content, int userId = Constants.Security.SuperUserId) + public OperationResult Delete(IContent content, int userId = Cms.Core.Constants.Security.SuperUserId) { var evtMsgs = EventMessagesFactory.Get(); @@ -1789,7 +1794,7 @@ namespace Umbraco.Core.Services.Implement return OperationResult.Cancel(evtMsgs); } - scope.WriteLock(Constants.Locks.ContentTree); + scope.WriteLock(Cms.Core.Constants.Locks.ContentTree); // if it's not trashed yet, and published, we should unpublish // but... Unpublishing event makes no sense (not going to cancel?) and no need to save @@ -1843,7 +1848,7 @@ namespace Umbraco.Core.Services.Implement /// Id of the object to delete versions from /// Latest version date /// Optional Id of the User deleting versions of a Content object - public void DeleteVersions(int id, DateTime versionDate, int userId = Constants.Security.SuperUserId) + public void DeleteVersions(int id, DateTime versionDate, int userId = Cms.Core.Constants.Security.SuperUserId) { using (var scope = ScopeProvider.CreateScope()) { @@ -1854,12 +1859,12 @@ namespace Umbraco.Core.Services.Implement return; } - scope.WriteLock(Constants.Locks.ContentTree); + scope.WriteLock(Cms.Core.Constants.Locks.ContentTree); _documentRepository.DeleteVersions(id, versionDate); deleteRevisionsEventArgs.CanCancel = false; scope.Events.Dispatch(DeletedVersions, this, deleteRevisionsEventArgs); - Audit(AuditType.Delete, userId, Constants.System.Root, "Delete (by version date)"); + Audit(AuditType.Delete, userId, Cms.Core.Constants.System.Root, "Delete (by version date)"); scope.Complete(); } @@ -1873,7 +1878,7 @@ namespace Umbraco.Core.Services.Implement /// Id of the version to delete /// Boolean indicating whether to delete versions prior to the versionId /// Optional Id of the User deleting versions of a Content object - public void DeleteVersion(int id, int versionId, bool deletePriorVersions, int userId = Constants.Security.SuperUserId) + public void DeleteVersion(int id, int versionId, bool deletePriorVersions, int userId = Cms.Core.Constants.Security.SuperUserId) { using (var scope = ScopeProvider.CreateScope()) { @@ -1889,13 +1894,13 @@ namespace Umbraco.Core.Services.Implement DeleteVersions(id, content.UpdateDate, userId); } - scope.WriteLock(Constants.Locks.ContentTree); + scope.WriteLock(Cms.Core.Constants.Locks.ContentTree); var c = _documentRepository.Get(id); if (c.VersionId != versionId && c.PublishedVersionId != versionId) // don't delete the current or published version _documentRepository.DeleteVersion(versionId); scope.Events.Dispatch(DeletedVersions, this, new DeleteRevisionsEventArgs(id, false,/* specificVersion:*/ versionId)); - Audit(AuditType.Delete, userId, Constants.System.Root, "Delete (by version)"); + Audit(AuditType.Delete, userId, Cms.Core.Constants.System.Root, "Delete (by version)"); scope.Complete(); } @@ -1906,17 +1911,17 @@ namespace Umbraco.Core.Services.Implement #region Move, RecycleBin /// - public OperationResult MoveToRecycleBin(IContent content, int userId = Constants.Security.SuperUserId) + public OperationResult MoveToRecycleBin(IContent content, int userId = Cms.Core.Constants.Security.SuperUserId) { var evtMsgs = EventMessagesFactory.Get(); var moves = new List<(IContent, string)>(); using (var scope = ScopeProvider.CreateScope()) { - scope.WriteLock(Constants.Locks.ContentTree); + scope.WriteLock(Cms.Core.Constants.Locks.ContentTree); var originalPath = content.Path; - var moveEventInfo = new MoveEventInfo(content, originalPath, Constants.System.RecycleBinContent); + var moveEventInfo = new MoveEventInfo(content, originalPath, Cms.Core.Constants.System.RecycleBinContent); var moveEventArgs = new MoveEventArgs(evtMsgs, moveEventInfo); if (scope.Events.DispatchCancelable(Trashing, this, moveEventArgs, nameof(Trashing))) { @@ -1930,7 +1935,7 @@ namespace Umbraco.Core.Services.Implement //if (content.HasPublishedVersion) //{ } - PerformMoveLocked(content, Constants.System.RecycleBinContent, null, userId, moves, true); + PerformMoveLocked(content, Cms.Core.Constants.System.RecycleBinContent, null, userId, moves, true); scope.Events.Dispatch(TreeChanged, this, new TreeChange(content, TreeChangeTypes.RefreshBranch).ToEventArgs()); var moveInfo = moves @@ -1959,10 +1964,10 @@ namespace Umbraco.Core.Services.Implement /// The to move /// Id of the Content's new Parent /// Optional Id of the User moving the Content - public void Move(IContent content, int parentId, int userId = Constants.Security.SuperUserId) + public void Move(IContent content, int parentId, int userId = Cms.Core.Constants.Security.SuperUserId) { // if moving to the recycle bin then use the proper method - if (parentId == Constants.System.RecycleBinContent) + if (parentId == Cms.Core.Constants.System.RecycleBinContent) { MoveToRecycleBin(content, userId); return; @@ -1972,10 +1977,10 @@ namespace Umbraco.Core.Services.Implement using (var scope = ScopeProvider.CreateScope()) { - scope.WriteLock(Constants.Locks.ContentTree); + scope.WriteLock(Cms.Core.Constants.Locks.ContentTree); - var parent = parentId == Constants.System.Root ? null : GetById(parentId); - if (parentId != Constants.System.Root && (parent == null || parent.Trashed)) + var parent = parentId == Cms.Core.Constants.System.Root ? null : GetById(parentId); + if (parentId != Cms.Core.Constants.System.Root && (parent == null || parent.Trashed)) throw new InvalidOperationException("Parent does not exist or is trashed."); // causes rollback var moveEventInfo = new MoveEventInfo(content, content.Path, parentId); @@ -2047,7 +2052,7 @@ namespace Umbraco.Core.Services.Implement // if uow is not immediate, content.Path will be updated only when the UOW commits, // and because we want it now, we have to calculate it by ourselves //paths[content.Id] = content.Path; - paths[content.Id] = (parent == null ? (parentId == Constants.System.RecycleBinContent ? "-1,-20" : Constants.System.RootString) : parent.Path) + "," + content.Id; + paths[content.Id] = (parent == null ? (parentId == Cms.Core.Constants.System.RecycleBinContent ? "-1,-20" : Cms.Core.Constants.System.RootString) : parent.Path) + "," + content.Id; const int pageSize = 500; var query = GetPagedDescendantQuery(originalPath); @@ -2081,15 +2086,15 @@ namespace Umbraco.Core.Services.Implement /// /// Empties the Recycle Bin by deleting all that resides in the bin /// - public OperationResult EmptyRecycleBin(int userId = Constants.Security.SuperUserId) + public OperationResult EmptyRecycleBin(int userId = Cms.Core.Constants.Security.SuperUserId) { - var nodeObjectType = Constants.ObjectTypes.Document; + var nodeObjectType = Cms.Core.Constants.ObjectTypes.Document; var deleted = new List(); var evtMsgs = EventMessagesFactory.Get(); using (var scope = ScopeProvider.CreateScope()) { - scope.WriteLock(Constants.Locks.ContentTree); + scope.WriteLock(Cms.Core.Constants.Locks.ContentTree); // v7 EmptyingRecycleBin and EmptiedRecycleBin events are greatly simplified since // each deleted items will have its own deleting/deleted events. so, files and such @@ -2104,7 +2109,7 @@ namespace Umbraco.Core.Services.Implement } // emptying the recycle bin means deleting whatever is in there - do it properly! - var query = Query().Where(x => x.ParentId == Constants.System.RecycleBinContent); + var query = Query().Where(x => x.ParentId == Cms.Core.Constants.System.RecycleBinContent); var contents = _documentRepository.Get(query).ToArray(); foreach (var content in contents) { @@ -2116,7 +2121,7 @@ namespace Umbraco.Core.Services.Implement recycleBinEventArgs.RecycleBinEmptiedSuccessfully = true; // oh my?! scope.Events.Dispatch(EmptiedRecycleBin, this, recycleBinEventArgs); scope.Events.Dispatch(TreeChanged, this, deleted.Select(x => new TreeChange(x, TreeChangeTypes.Remove)).ToEventArgs()); - Audit(AuditType.Delete, userId, Constants.System.RecycleBinContent, "Recycle bin emptied"); + Audit(AuditType.Delete, userId, Cms.Core.Constants.System.RecycleBinContent, "Recycle bin emptied"); scope.Complete(); } @@ -2137,7 +2142,7 @@ namespace Umbraco.Core.Services.Implement /// Boolean indicating whether the copy should be related to the original /// Optional Id of the User copying the Content /// The newly created object - public IContent Copy(IContent content, int parentId, bool relateToOriginal, int userId = Constants.Security.SuperUserId) + public IContent Copy(IContent content, int parentId, bool relateToOriginal, int userId = Cms.Core.Constants.Security.SuperUserId) { return Copy(content, parentId, relateToOriginal, true, userId); } @@ -2152,7 +2157,7 @@ namespace Umbraco.Core.Services.Implement /// A value indicating whether to recursively copy children. /// Optional Id of the User copying the Content /// The newly created object - public IContent Copy(IContent content, int parentId, bool relateToOriginal, bool recursive, int userId = Constants.Security.SuperUserId) + public IContent Copy(IContent content, int parentId, bool relateToOriginal, bool recursive, int userId = Cms.Core.Constants.Security.SuperUserId) { var copy = content.DeepCloneWithResetIdentities(); copy.ParentId = parentId; @@ -2172,7 +2177,7 @@ namespace Umbraco.Core.Services.Implement var copies = new List>(); - scope.WriteLock(Constants.Locks.ContentTree); + scope.WriteLock(Cms.Core.Constants.Locks.ContentTree); // a copy is not published (but not really unpublishing either) // update the create author and last edit author @@ -2255,7 +2260,7 @@ namespace Umbraco.Core.Services.Implement /// The to send to publication /// Optional Id of the User issuing the send to publication /// True if sending publication was successful otherwise false - public bool SendToPublication(IContent content, int userId = Constants.Security.SuperUserId) + public bool SendToPublication(IContent content, int userId = Cms.Core.Constants.Security.SuperUserId) { using (var scope = ScopeProvider.CreateScope()) { @@ -2309,7 +2314,7 @@ namespace Umbraco.Core.Services.Implement /// /// /// Result indicating what action was taken when handling the command. - public OperationResult Sort(IEnumerable items, int userId = Constants.Security.SuperUserId, bool raiseEvents = true) + public OperationResult Sort(IEnumerable items, int userId = Cms.Core.Constants.Security.SuperUserId, bool raiseEvents = true) { var evtMsgs = EventMessagesFactory.Get(); @@ -2318,7 +2323,7 @@ namespace Umbraco.Core.Services.Implement using (var scope = ScopeProvider.CreateScope()) { - scope.WriteLock(Constants.Locks.ContentTree); + scope.WriteLock(Cms.Core.Constants.Locks.ContentTree); var ret = Sort(scope, itemsA, userId, evtMsgs, raiseEvents); scope.Complete(); @@ -2338,7 +2343,7 @@ namespace Umbraco.Core.Services.Implement /// /// /// Result indicating what action was taken when handling the command. - public OperationResult Sort(IEnumerable ids, int userId = Constants.Security.SuperUserId, bool raiseEvents = true) + public OperationResult Sort(IEnumerable ids, int userId = Cms.Core.Constants.Security.SuperUserId, bool raiseEvents = true) { var evtMsgs = EventMessagesFactory.Get(); @@ -2347,7 +2352,7 @@ namespace Umbraco.Core.Services.Implement using (var scope = ScopeProvider.CreateScope()) { - scope.WriteLock(Constants.Locks.ContentTree); + scope.WriteLock(Cms.Core.Constants.Locks.ContentTree); var itemsA = GetByIds(idsA).ToArray(); var ret = Sort(scope, itemsA, userId, evtMsgs, raiseEvents); @@ -2419,7 +2424,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.WriteLock(Constants.Locks.ContentTree); + scope.WriteLock(Cms.Core.Constants.Locks.ContentTree); var report = _documentRepository.CheckDataIntegrity(options); @@ -2447,7 +2452,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.ContentTree); + scope.ReadLock(Cms.Core.Constants.Locks.ContentTree); return GetPublishedDescendantsLocked(content).ToArray(); // ToArray important in uow! } } @@ -2734,7 +2739,7 @@ namespace Umbraco.Core.Services.Implement // check if the content can be path-published // root content can be published // else check ancestors - we know we are not trashed - var pathIsOk = content.ParentId == Constants.System.Root || IsPathPublished(GetParent(content)); + var pathIsOk = content.ParentId == Cms.Core.Constants.System.Root || IsPathPublished(GetParent(content)); if (!pathIsOk) { _logger.LogInformation("Document {ContentName} (id={ContentId}) cannot be published: {Reason}", content.Name, content.Id, "parent is not published"); @@ -2861,7 +2866,7 @@ namespace Umbraco.Core.Services.Implement /// /// Id of the /// Optional Id of the user issuing the delete operation - public void DeleteOfTypes(IEnumerable contentTypeIds, int userId = Constants.Security.SuperUserId) + public void DeleteOfTypes(IEnumerable contentTypeIds, int userId = Cms.Core.Constants.Security.SuperUserId) { // TODO: This currently this is called from the ContentTypeService but that needs to change, // if we are deleting a content type, we should just delete the data and do this operation slightly differently. @@ -2880,7 +2885,7 @@ namespace Umbraco.Core.Services.Implement // using (var scope = ScopeProvider.CreateScope()) { - scope.WriteLock(Constants.Locks.ContentTree); + scope.WriteLock(Cms.Core.Constants.Locks.ContentTree); var query = Query().WhereIn(x => x.ContentTypeId, contentTypeIdsA); var contents = _documentRepository.Get(query).ToArray(); @@ -2908,7 +2913,7 @@ namespace Umbraco.Core.Services.Implement foreach (var child in children) { // see MoveToRecycleBin - PerformMoveLocked(child, Constants.System.RecycleBinContent, null, userId, moves, true); + PerformMoveLocked(child, Cms.Core.Constants.System.RecycleBinContent, null, userId, moves, true); changes.Add(new TreeChange(content, TreeChangeTypes.RefreshBranch)); } @@ -2925,7 +2930,7 @@ namespace Umbraco.Core.Services.Implement scope.Events.Dispatch(Trashed, this, new MoveEventArgs(false, moveInfos), nameof(Trashed)); scope.Events.Dispatch(TreeChanged, this, changes.ToEventArgs()); - Audit(AuditType.Delete, userId, Constants.System.Root, $"Delete content of type {string.Join(",", contentTypeIdsA)}"); + Audit(AuditType.Delete, userId, Cms.Core.Constants.System.Root, $"Delete content of type {string.Join(",", contentTypeIdsA)}"); scope.Complete(); } @@ -2937,7 +2942,7 @@ namespace Umbraco.Core.Services.Implement /// This needs extra care and attention as its potentially a dangerous and extensive operation /// Id of the /// Optional id of the user deleting the media - public void DeleteOfType(int contentTypeId, int userId = Constants.Security.SuperUserId) + public void DeleteOfType(int contentTypeId, int userId = Cms.Core.Constants.Security.SuperUserId) { DeleteOfTypes(new[] { contentTypeId }, userId); } @@ -2947,7 +2952,7 @@ namespace Umbraco.Core.Services.Implement if (contentTypeAlias == null) throw new ArgumentNullException(nameof(contentTypeAlias)); if (string.IsNullOrWhiteSpace(contentTypeAlias)) throw new ArgumentException("Value can't be empty or consist only of white-space characters.", nameof(contentTypeAlias)); - scope.ReadLock(Constants.Locks.ContentTypes); + scope.ReadLock(Cms.Core.Constants.Locks.ContentTypes); var query = Query().Where(x => x.Alias == contentTypeAlias); var contentType = _contentTypeRepository.Get(query).FirstOrDefault(); @@ -2977,7 +2982,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.ContentTree); + scope.ReadLock(Cms.Core.Constants.Locks.ContentTree); var blueprint = _documentBlueprintRepository.Get(id); if (blueprint != null) blueprint.Blueprint = true; @@ -2989,7 +2994,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.ContentTree); + scope.ReadLock(Cms.Core.Constants.Locks.ContentTree); var blueprint = _documentBlueprintRepository.Get(id); if (blueprint != null) blueprint.Blueprint = true; @@ -2997,7 +3002,7 @@ namespace Umbraco.Core.Services.Implement } } - public void SaveBlueprint(IContent content, int userId = Constants.Security.SuperUserId) + public void SaveBlueprint(IContent content, int userId = Cms.Core.Constants.Security.SuperUserId) { //always ensure the blueprint is at the root if (content.ParentId != -1) @@ -3007,7 +3012,7 @@ namespace Umbraco.Core.Services.Implement using (var scope = ScopeProvider.CreateScope()) { - scope.WriteLock(Constants.Locks.ContentTree); + scope.WriteLock(Cms.Core.Constants.Locks.ContentTree); if (content.HasIdentity == false) { @@ -3017,7 +3022,7 @@ namespace Umbraco.Core.Services.Implement _documentBlueprintRepository.Save(content); - Audit(AuditType.Save, Constants.Security.SuperUserId, content.Id, $"Saved content template: {content.Name}"); + Audit(AuditType.Save, Cms.Core.Constants.Security.SuperUserId, content.Id, $"Saved content template: {content.Name}"); scope.Events.Dispatch(SavedBlueprint, this, new SaveEventArgs(content), "SavedBlueprint"); @@ -3025,11 +3030,11 @@ namespace Umbraco.Core.Services.Implement } } - public void DeleteBlueprint(IContent content, int userId = Constants.Security.SuperUserId) + public void DeleteBlueprint(IContent content, int userId = Cms.Core.Constants.Security.SuperUserId) { using (var scope = ScopeProvider.CreateScope()) { - scope.WriteLock(Constants.Locks.ContentTree); + scope.WriteLock(Cms.Core.Constants.Locks.ContentTree); _documentBlueprintRepository.Delete(content); scope.Events.Dispatch(DeletedBlueprint, this, new DeleteEventArgs(content), nameof(DeletedBlueprint)); scope.Complete(); @@ -3038,7 +3043,7 @@ namespace Umbraco.Core.Services.Implement private static readonly string[] ArrayOfOneNullString = { null }; - public IContent CreateContentFromBlueprint(IContent blueprint, string name, int userId = Constants.Security.SuperUserId) + public IContent CreateContentFromBlueprint(IContent blueprint, string name, int userId = Cms.Core.Constants.Security.SuperUserId) { if (blueprint == null) throw new ArgumentNullException(nameof(blueprint)); @@ -3099,11 +3104,11 @@ namespace Umbraco.Core.Services.Implement } } - public void DeleteBlueprintsOfTypes(IEnumerable contentTypeIds, int userId = Constants.Security.SuperUserId) + public void DeleteBlueprintsOfTypes(IEnumerable contentTypeIds, int userId = Cms.Core.Constants.Security.SuperUserId) { using (var scope = ScopeProvider.CreateScope()) { - scope.WriteLock(Constants.Locks.ContentTree); + scope.WriteLock(Cms.Core.Constants.Locks.ContentTree); var contentTypeIdsA = contentTypeIds.ToArray(); var query = Query(); @@ -3126,7 +3131,7 @@ namespace Umbraco.Core.Services.Implement } } - public void DeleteBlueprintsOfType(int contentTypeId, int userId = Constants.Security.SuperUserId) + public void DeleteBlueprintsOfType(int contentTypeId, int userId = Cms.Core.Constants.Security.SuperUserId) { DeleteBlueprintsOfTypes(new[] { contentTypeId }, userId); } @@ -3135,7 +3140,7 @@ namespace Umbraco.Core.Services.Implement #region Rollback - public OperationResult Rollback(int id, int versionId, string culture = "*", int userId = Constants.Security.SuperUserId) + public OperationResult Rollback(int id, int versionId, string culture = "*", int userId = Cms.Core.Constants.Security.SuperUserId) { var evtMsgs = EventMessagesFactory.Get(); diff --git a/src/Umbraco.Infrastructure/Services/Implement/ContentTypeBaseServiceProvider.cs b/src/Umbraco.Infrastructure/Services/Implement/ContentTypeBaseServiceProvider.cs index 5a56dfe3bc..42bb72687d 100644 --- a/src/Umbraco.Infrastructure/Services/Implement/ContentTypeBaseServiceProvider.cs +++ b/src/Umbraco.Infrastructure/Services/Implement/ContentTypeBaseServiceProvider.cs @@ -1,4 +1,6 @@ using System; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Models; namespace Umbraco.Core.Services.Implement diff --git a/src/Umbraco.Infrastructure/Services/Implement/ContentTypeService.cs b/src/Umbraco.Infrastructure/Services/Implement/ContentTypeService.cs index ab7e70e852..609b3c4097 100644 --- a/src/Umbraco.Infrastructure/Services/Implement/ContentTypeService.cs +++ b/src/Umbraco.Infrastructure/Services/Implement/ContentTypeService.cs @@ -2,6 +2,10 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Events; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Repositories; @@ -24,12 +28,12 @@ namespace Umbraco.Core.Services.Implement protected override IContentTypeService This => this; // beware! order is important to avoid deadlocks - protected override int[] ReadLockIds { get; } = { Constants.Locks.ContentTypes }; - protected override int[] WriteLockIds { get; } = { Constants.Locks.ContentTree, Constants.Locks.ContentTypes }; + protected override int[] ReadLockIds { get; } = { Cms.Core.Constants.Locks.ContentTypes }; + protected override int[] WriteLockIds { get; } = { Cms.Core.Constants.Locks.ContentTree, Cms.Core.Constants.Locks.ContentTypes }; private IContentService ContentService { get; } - protected override Guid ContainedObjectType => Constants.ObjectTypes.DocumentType; + protected override Guid ContainedObjectType => Cms.Core.Constants.ObjectTypes.DocumentType; protected override void DeleteItemsOfTypes(IEnumerable typeIds) { @@ -52,7 +56,7 @@ namespace Umbraco.Core.Services.Implement using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { // that one is special because it works across content, media and member types - scope.ReadLock(Constants.Locks.ContentTypes, Constants.Locks.MediaTypes, Constants.Locks.MemberTypes); + scope.ReadLock(Cms.Core.Constants.Locks.ContentTypes, Cms.Core.Constants.Locks.MediaTypes, Cms.Core.Constants.Locks.MemberTypes); return Repository.GetAllPropertyTypeAliases(); } } @@ -68,7 +72,7 @@ namespace Umbraco.Core.Services.Implement using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { // that one is special because it works across content, media and member types - scope.ReadLock(Constants.Locks.ContentTypes, Constants.Locks.MediaTypes, Constants.Locks.MemberTypes); + scope.ReadLock(Cms.Core.Constants.Locks.ContentTypes, Cms.Core.Constants.Locks.MediaTypes, Cms.Core.Constants.Locks.MemberTypes); return Repository.GetAllContentTypeAliases(guids); } } @@ -84,7 +88,7 @@ namespace Umbraco.Core.Services.Implement using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { // that one is special because it works across content, media and member types - scope.ReadLock(Constants.Locks.ContentTypes, Constants.Locks.MediaTypes, Constants.Locks.MemberTypes); + scope.ReadLock(Cms.Core.Constants.Locks.ContentTypes, Cms.Core.Constants.Locks.MediaTypes, Cms.Core.Constants.Locks.MemberTypes); return Repository.GetAllContentTypeIds(aliases); } } diff --git a/src/Umbraco.Infrastructure/Services/Implement/ContentTypeServiceBase.cs b/src/Umbraco.Infrastructure/Services/Implement/ContentTypeServiceBase.cs index 7067e27f59..928d021923 100644 --- a/src/Umbraco.Infrastructure/Services/Implement/ContentTypeServiceBase.cs +++ b/src/Umbraco.Infrastructure/Services/Implement/ContentTypeServiceBase.cs @@ -1,4 +1,5 @@ using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.Events; using Umbraco.Core.Events; using Umbraco.Core.Scoping; diff --git a/src/Umbraco.Infrastructure/Services/Implement/ContentTypeServiceBaseOfTItemTService.cs b/src/Umbraco.Infrastructure/Services/Implement/ContentTypeServiceBaseOfTItemTService.cs index be541486ff..2e6a96c91e 100644 --- a/src/Umbraco.Infrastructure/Services/Implement/ContentTypeServiceBaseOfTItemTService.cs +++ b/src/Umbraco.Infrastructure/Services/Implement/ContentTypeServiceBaseOfTItemTService.cs @@ -1,8 +1,11 @@ using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Services.Changes; using Umbraco.Core.Events; using Umbraco.Core.Models; using Umbraco.Core.Scoping; -using Umbraco.Core.Services.Changes; namespace Umbraco.Core.Services.Implement { diff --git a/src/Umbraco.Infrastructure/Services/Implement/ContentTypeServiceBaseOfTRepositoryTItemTService.cs b/src/Umbraco.Infrastructure/Services/Implement/ContentTypeServiceBaseOfTRepositoryTItemTService.cs index a3e3687b10..24db01bd45 100644 --- a/src/Umbraco.Infrastructure/Services/Implement/ContentTypeServiceBaseOfTRepositoryTItemTService.cs +++ b/src/Umbraco.Infrastructure/Services/Implement/ContentTypeServiceBaseOfTRepositoryTItemTService.cs @@ -2,14 +2,18 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; -using Umbraco.Core.Events; -using Umbraco.Core.Exceptions; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Exceptions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Services.Changes; using Umbraco.Core.Persistence.Repositories; using Umbraco.Core.Persistence.Repositories.Implement; using Umbraco.Core.Scoping; -using Umbraco.Core.Services.Changes; +using Umbraco.Extensions; namespace Umbraco.Core.Services.Implement { @@ -391,7 +395,7 @@ namespace Umbraco.Core.Services.Implement #region Save - public void Save(TItem item, int userId = Constants.Security.SuperUserId) + public void Save(TItem item, int userId = Cms.Core.Constants.Security.SuperUserId) { using (var scope = ScopeProvider.CreateScope()) { @@ -434,7 +438,7 @@ namespace Umbraco.Core.Services.Implement } } - public void Save(IEnumerable items, int userId = Constants.Security.SuperUserId) + public void Save(IEnumerable items, int userId = Cms.Core.Constants.Security.SuperUserId) { var itemsA = items.ToArray(); @@ -480,7 +484,7 @@ namespace Umbraco.Core.Services.Implement #region Delete - public void Delete(TItem item, int userId = Constants.Security.SuperUserId) + public void Delete(TItem item, int userId = Cms.Core.Constants.Security.SuperUserId) { using (var scope = ScopeProvider.CreateScope()) { @@ -544,7 +548,7 @@ namespace Umbraco.Core.Services.Implement } } - public void Delete(IEnumerable items, int userId = Constants.Security.SuperUserId) + public void Delete(IEnumerable items, int userId = Cms.Core.Constants.Security.SuperUserId) { var itemsA = items.ToArray(); @@ -764,7 +768,7 @@ namespace Umbraco.Core.Services.Implement protected Guid ContainerObjectType => EntityContainer.GetContainerObjectType(ContainedObjectType); - public Attempt> CreateContainer(int parentId, string name, int userId = Constants.Security.SuperUserId) + public Attempt> CreateContainer(int parentId, string name, int userId = Cms.Core.Constants.Security.SuperUserId) { var evtMsgs = EventMessagesFactory.Get(); using (var scope = ScopeProvider.CreateScope()) @@ -804,7 +808,7 @@ namespace Umbraco.Core.Services.Implement } } - public Attempt SaveContainer(EntityContainer container, int userId = Constants.Security.SuperUserId) + public Attempt SaveContainer(EntityContainer container, int userId = Cms.Core.Constants.Security.SuperUserId) { var evtMsgs = EventMessagesFactory.Get(); @@ -898,7 +902,7 @@ namespace Umbraco.Core.Services.Implement } } - public Attempt DeleteContainer(int containerId, int userId = Constants.Security.SuperUserId) + public Attempt DeleteContainer(int containerId, int userId = Cms.Core.Constants.Security.SuperUserId) { var evtMsgs = EventMessagesFactory.Get(); using (var scope = ScopeProvider.CreateScope()) @@ -935,7 +939,7 @@ namespace Umbraco.Core.Services.Implement } } - public Attempt> RenameContainer(int id, string name, int userId = Constants.Security.SuperUserId) + public Attempt> RenameContainer(int id, string name, int userId = Cms.Core.Constants.Security.SuperUserId) { var evtMsgs = EventMessagesFactory.Get(); using (var scope = ScopeProvider.CreateScope()) diff --git a/src/Umbraco.Infrastructure/Services/Implement/DataTypeService.cs b/src/Umbraco.Infrastructure/Services/Implement/DataTypeService.cs index 042128558b..9854dcc196 100644 --- a/src/Umbraco.Infrastructure/Services/Implement/DataTypeService.cs +++ b/src/Umbraco.Infrastructure/Services/Implement/DataTypeService.cs @@ -2,16 +2,21 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; -using Umbraco.Core.Events; -using Umbraco.Core.Exceptions; -using Umbraco.Core.IO; -using Umbraco.Core.Models; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Exceptions; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; using Umbraco.Core.Persistence.Repositories; using Umbraco.Core.Persistence.Repositories.Implement; using Umbraco.Core.PropertyEditors; using Umbraco.Core.Scoping; -using Umbraco.Core.Serialization; -using Umbraco.Core.Strings; +using Umbraco.Extensions; namespace Umbraco.Core.Services.Implement { @@ -53,14 +58,14 @@ namespace Umbraco.Core.Services.Implement #region Containers - public Attempt> CreateContainer(int parentId, string name, int userId = Constants.Security.SuperUserId) + public Attempt> CreateContainer(int parentId, string name, int userId = Cms.Core.Constants.Security.SuperUserId) { var evtMsgs = EventMessagesFactory.Get(); using (var scope = ScopeProvider.CreateScope()) { try { - var container = new EntityContainer(Constants.ObjectTypes.DataType) + var container = new EntityContainer(Cms.Core.Constants.ObjectTypes.DataType) { Name = name, ParentId = parentId, @@ -134,13 +139,13 @@ namespace Umbraco.Core.Services.Implement } } - public Attempt SaveContainer(EntityContainer container, int userId = Constants.Security.SuperUserId) + public Attempt SaveContainer(EntityContainer container, int userId = Cms.Core.Constants.Security.SuperUserId) { var evtMsgs = EventMessagesFactory.Get(); - if (container.ContainedObjectType != Constants.ObjectTypes.DataType) + if (container.ContainedObjectType != Cms.Core.Constants.ObjectTypes.DataType) { - var ex = new InvalidOperationException("Not a " + Constants.ObjectTypes.DataType + " container."); + var ex = new InvalidOperationException("Not a " + Cms.Core.Constants.ObjectTypes.DataType + " container."); return OperationResult.Attempt.Fail(evtMsgs, ex); } @@ -168,7 +173,7 @@ namespace Umbraco.Core.Services.Implement return OperationResult.Attempt.Succeed(evtMsgs); } - public Attempt DeleteContainer(int containerId, int userId = Constants.Security.SuperUserId) + public Attempt DeleteContainer(int containerId, int userId = Cms.Core.Constants.Security.SuperUserId) { var evtMsgs = EventMessagesFactory.Get(); using (var scope = ScopeProvider.CreateScope()) @@ -201,7 +206,7 @@ namespace Umbraco.Core.Services.Implement return OperationResult.Attempt.Succeed(evtMsgs); } - public Attempt> RenameContainer(int id, string name, int userId = Constants.Security.SuperUserId) + public Attempt> RenameContainer(int id, string name, int userId = Cms.Core.Constants.Security.SuperUserId) { var evtMsgs = EventMessagesFactory.Get(); using (var scope = ScopeProvider.CreateScope()) @@ -378,7 +383,7 @@ namespace Umbraco.Core.Services.Implement /// /// to save /// Id of the user issuing the save - public void Save(IDataType dataType, int userId = Constants.Security.SuperUserId) + public void Save(IDataType dataType, int userId = Cms.Core.Constants.Security.SuperUserId) { dataType.CreatorId = userId; @@ -415,7 +420,7 @@ namespace Umbraco.Core.Services.Implement /// /// to save /// Id of the user issuing the save - public void Save(IEnumerable dataTypeDefinitions, int userId = Constants.Security.SuperUserId) + public void Save(IEnumerable dataTypeDefinitions, int userId = Cms.Core.Constants.Security.SuperUserId) { Save(dataTypeDefinitions, userId, true); } @@ -465,7 +470,7 @@ namespace Umbraco.Core.Services.Implement /// /// to delete /// Optional Id of the user issuing the deletion - public void Delete(IDataType dataType, int userId = Constants.Security.SuperUserId) + public void Delete(IDataType dataType, int userId = Cms.Core.Constants.Security.SuperUserId) { using (var scope = ScopeProvider.CreateScope()) { diff --git a/src/Umbraco.Infrastructure/Services/Implement/DomainService.cs b/src/Umbraco.Infrastructure/Services/Implement/DomainService.cs index 7bdce6f6cb..212eda83d9 100644 --- a/src/Umbraco.Infrastructure/Services/Implement/DomainService.cs +++ b/src/Umbraco.Infrastructure/Services/Implement/DomainService.cs @@ -1,5 +1,10 @@ using System.Collections.Generic; using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Events; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Repositories; diff --git a/src/Umbraco.Infrastructure/Services/Implement/EntityService.cs b/src/Umbraco.Infrastructure/Services/Implement/EntityService.cs index ccfbe4aacd..9426b92266 100644 --- a/src/Umbraco.Infrastructure/Services/Implement/EntityService.cs +++ b/src/Umbraco.Infrastructure/Services/Implement/EntityService.cs @@ -3,9 +3,14 @@ using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Events; using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.Persistence.Querying; @@ -318,7 +323,7 @@ namespace Umbraco.Core.Services.Implement var objectTypeGuid = objectType.GetGuid(); var query = Query(); - if (id != Constants.System.Root) + if (id != Cms.Core.Constants.System.Root) { // lookup the path so we can use it in the prefix query below var paths = _entityRepository.GetAllPaths(objectTypeGuid, id).ToArray(); @@ -350,7 +355,7 @@ namespace Umbraco.Core.Services.Implement var objectTypeGuid = objectType.GetGuid(); var query = Query(); - if (idsA.All(x => x != Constants.System.Root)) + if (idsA.All(x => x != Cms.Core.Constants.System.Root)) { var paths = _entityRepository.GetAllPaths(objectTypeGuid, idsA).ToArray(); if (paths.Length == 0) @@ -362,7 +367,7 @@ namespace Umbraco.Core.Services.Implement foreach (var id in idsA) { // if the id is root then don't add any clauses - if (id == Constants.System.Root) continue; + if (id == Cms.Core.Constants.System.Root) continue; var entityPath = paths.FirstOrDefault(x => x.Id == id); if (entityPath == null) continue; @@ -488,7 +493,7 @@ namespace Umbraco.Core.Services.Implement var sql = scope.SqlContext.Sql() .Select() .From() - .Where(x => x.UniqueId == key && x.NodeObjectType == Constants.ObjectTypes.IdReservation); + .Where(x => x.UniqueId == key && x.NodeObjectType == Cms.Core.Constants.ObjectTypes.IdReservation); node = scope.Database.SingleOrDefault(sql); if (node != null) @@ -498,7 +503,7 @@ namespace Umbraco.Core.Services.Implement { UniqueId = key, Text = "RESERVED.ID", - NodeObjectType = Constants.ObjectTypes.IdReservation, + NodeObjectType = Cms.Core.Constants.ObjectTypes.IdReservation, CreateDate = DateTime.Now, UserId = null, diff --git a/src/Umbraco.Infrastructure/Services/Implement/EntityXmlSerializer.cs b/src/Umbraco.Infrastructure/Services/Implement/EntityXmlSerializer.cs index c33265c987..d5da64d5a2 100644 --- a/src/Umbraco.Infrastructure/Services/Implement/EntityXmlSerializer.cs +++ b/src/Umbraco.Infrastructure/Services/Implement/EntityXmlSerializer.cs @@ -4,10 +4,13 @@ using System.Globalization; using System.Linq; using System.Net; using System.Xml.Linq; -using Umbraco.Core.Models; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Serialization; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Extensions; namespace Umbraco.Core.Services.Implement { diff --git a/src/Umbraco.Infrastructure/Services/Implement/ExternalLoginService.cs b/src/Umbraco.Infrastructure/Services/Implement/ExternalLoginService.cs index 5edbe77cdb..542031f38d 100644 --- a/src/Umbraco.Infrastructure/Services/Implement/ExternalLoginService.cs +++ b/src/Umbraco.Infrastructure/Services/Implement/ExternalLoginService.cs @@ -2,6 +2,10 @@ using System; using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models.Identity; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Events; using Umbraco.Core.Models.Identity; using Umbraco.Core.Persistence.Repositories; diff --git a/src/Umbraco.Infrastructure/Services/Implement/FileService.cs b/src/Umbraco.Infrastructure/Services/Implement/FileService.cs index c893af6892..acab6caae4 100644 --- a/src/Umbraco.Infrastructure/Services/Implement/FileService.cs +++ b/src/Umbraco.Infrastructure/Services/Implement/FileService.cs @@ -3,19 +3,18 @@ using System.Collections.Generic; using System.IO; using System.Linq; using System.Text.RegularExpressions; -using Microsoft.Extensions.Options; using Microsoft.Extensions.Logging; -using Umbraco.Core.Composing; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Events; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; -using Umbraco.Core.Models; -using Umbraco.Core.Persistence.Repositories; -using Umbraco.Core.Persistence.Repositories.Implement; +using Microsoft.Extensions.Options; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; using Umbraco.Core.Scoping; -using Umbraco.Core.Strings; +using Umbraco.Extensions; namespace Umbraco.Core.Services.Implement { @@ -75,7 +74,7 @@ namespace Umbraco.Core.Services.Implement } /// - public void SaveStylesheet(IStylesheet stylesheet, int userId = Constants.Security.SuperUserId) + public void SaveStylesheet(IStylesheet stylesheet, int userId = Cms.Core.Constants.Security.SuperUserId) { using (var scope = ScopeProvider.CreateScope()) { @@ -97,7 +96,7 @@ namespace Umbraco.Core.Services.Implement } /// - public void DeleteStylesheet(string path, int userId = Constants.Security.SuperUserId) + public void DeleteStylesheet(string path, int userId = Cms.Core.Constants.Security.SuperUserId) { using (var scope = ScopeProvider.CreateScope()) { @@ -199,7 +198,7 @@ namespace Umbraco.Core.Services.Implement } /// - public void SaveScript(IScript script, int userId = Constants.Security.SuperUserId) + public void SaveScript(IScript script, int userId = Cms.Core.Constants.Security.SuperUserId) { using (var scope = ScopeProvider.CreateScope()) { @@ -220,7 +219,7 @@ namespace Umbraco.Core.Services.Implement } /// - public void DeleteScript(string path, int userId = Constants.Security.SuperUserId) + public void DeleteScript(string path, int userId = Cms.Core.Constants.Security.SuperUserId) { using (var scope = ScopeProvider.CreateScope()) { @@ -312,7 +311,7 @@ namespace Umbraco.Core.Services.Implement /// /// The template created /// - public Attempt> CreateTemplateForContentType(string contentTypeAlias, string contentTypeName, int userId = Constants.Security.SuperUserId) + public Attempt> CreateTemplateForContentType(string contentTypeAlias, string contentTypeName, int userId = Cms.Core.Constants.Security.SuperUserId) { var template = new Template(_shortStringHelper, contentTypeName, //NOTE: We are NOT passing in the content type alias here, we want to use it's name since we don't @@ -377,7 +376,7 @@ namespace Umbraco.Core.Services.Implement /// /// /// - public ITemplate CreateTemplateWithIdentity(string name, string alias, string content, ITemplate masterTemplate = null, int userId = Constants.Security.SuperUserId) + public ITemplate CreateTemplateWithIdentity(string name, string alias, string content, ITemplate masterTemplate = null, int userId = Cms.Core.Constants.Security.SuperUserId) { if (name == null) { @@ -526,7 +525,7 @@ namespace Umbraco.Core.Services.Implement /// /// to save /// - public void SaveTemplate(ITemplate template, int userId = Constants.Security.SuperUserId) + public void SaveTemplate(ITemplate template, int userId = Cms.Core.Constants.Security.SuperUserId) { if (template == null) { @@ -561,7 +560,7 @@ namespace Umbraco.Core.Services.Implement /// /// List of to save /// Optional id of the user - public void SaveTemplate(IEnumerable templates, int userId = Constants.Security.SuperUserId) + public void SaveTemplate(IEnumerable templates, int userId = Cms.Core.Constants.Security.SuperUserId) { var templatesA = templates.ToArray(); using (var scope = ScopeProvider.CreateScope()) @@ -587,7 +586,7 @@ namespace Umbraco.Core.Services.Implement /// /// Alias of the to delete /// - public void DeleteTemplate(string alias, int userId = Constants.Security.SuperUserId) + public void DeleteTemplate(string alias, int userId = Cms.Core.Constants.Security.SuperUserId) { using (var scope = ScopeProvider.CreateScope()) { @@ -731,17 +730,17 @@ namespace Umbraco.Core.Services.Implement } } - public Attempt CreatePartialView(IPartialView partialView, string snippetName = null, int userId = Constants.Security.SuperUserId) + public Attempt CreatePartialView(IPartialView partialView, string snippetName = null, int userId = Cms.Core.Constants.Security.SuperUserId) { return CreatePartialViewMacro(partialView, PartialViewType.PartialView, snippetName, userId); } - public Attempt CreatePartialViewMacro(IPartialView partialView, string snippetName = null, int userId = Constants.Security.SuperUserId) + public Attempt CreatePartialViewMacro(IPartialView partialView, string snippetName = null, int userId = Cms.Core.Constants.Security.SuperUserId) { return CreatePartialViewMacro(partialView, PartialViewType.PartialViewMacro, snippetName, userId); } - private Attempt CreatePartialViewMacro(IPartialView partialView, PartialViewType partialViewType, string snippetName = null, int userId = Constants.Security.SuperUserId) + private Attempt CreatePartialViewMacro(IPartialView partialView, PartialViewType partialViewType, string snippetName = null, int userId = Cms.Core.Constants.Security.SuperUserId) { string partialViewHeader; switch (partialViewType) @@ -807,17 +806,17 @@ namespace Umbraco.Core.Services.Implement return Attempt.Succeed(partialView); } - public bool DeletePartialView(string path, int userId = Constants.Security.SuperUserId) + public bool DeletePartialView(string path, int userId = Cms.Core.Constants.Security.SuperUserId) { return DeletePartialViewMacro(path, PartialViewType.PartialView, userId); } - public bool DeletePartialViewMacro(string path, int userId = Constants.Security.SuperUserId) + public bool DeletePartialViewMacro(string path, int userId = Cms.Core.Constants.Security.SuperUserId) { return DeletePartialViewMacro(path, PartialViewType.PartialViewMacro, userId); } - private bool DeletePartialViewMacro(string path, PartialViewType partialViewType, int userId = Constants.Security.SuperUserId) + private bool DeletePartialViewMacro(string path, PartialViewType partialViewType, int userId = Cms.Core.Constants.Security.SuperUserId) { using (var scope = ScopeProvider.CreateScope()) { @@ -847,17 +846,17 @@ namespace Umbraco.Core.Services.Implement return true; } - public Attempt SavePartialView(IPartialView partialView, int userId = Constants.Security.SuperUserId) + public Attempt SavePartialView(IPartialView partialView, int userId = Cms.Core.Constants.Security.SuperUserId) { return SavePartialView(partialView, PartialViewType.PartialView, userId); } - public Attempt SavePartialViewMacro(IPartialView partialView, int userId = Constants.Security.SuperUserId) + public Attempt SavePartialViewMacro(IPartialView partialView, int userId = Cms.Core.Constants.Security.SuperUserId) { return SavePartialView(partialView, PartialViewType.PartialViewMacro, userId); } - private Attempt SavePartialView(IPartialView partialView, PartialViewType partialViewType, int userId = Constants.Security.SuperUserId) + private Attempt SavePartialView(IPartialView partialView, PartialViewType partialViewType, int userId = Cms.Core.Constants.Security.SuperUserId) { using (var scope = ScopeProvider.CreateScope()) { diff --git a/src/Umbraco.Infrastructure/Services/Implement/KeyValueService.cs b/src/Umbraco.Infrastructure/Services/Implement/KeyValueService.cs index 3030e9b818..9bb147d8e5 100644 --- a/src/Umbraco.Infrastructure/Services/Implement/KeyValueService.cs +++ b/src/Umbraco.Infrastructure/Services/Implement/KeyValueService.cs @@ -1,4 +1,7 @@ using System; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Repositories; using Umbraco.Core.Scoping; @@ -30,7 +33,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = _scopeProvider.CreateScope()) { - scope.WriteLock(Constants.Locks.KeyValues); + scope.WriteLock(Cms.Core.Constants.Locks.KeyValues); var keyValue = _repository.Get(key); if (keyValue == null) @@ -66,7 +69,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = _scopeProvider.CreateScope()) { - scope.WriteLock(Constants.Locks.KeyValues); + scope.WriteLock(Cms.Core.Constants.Locks.KeyValues); var keyValue = _repository.Get(key); if (keyValue == null || keyValue.Value != originalValue) diff --git a/src/Umbraco.Infrastructure/Services/Implement/LocalizationService.cs b/src/Umbraco.Infrastructure/Services/Implement/LocalizationService.cs index 07fa0e1e77..c5d4dd259b 100644 --- a/src/Umbraco.Infrastructure/Services/Implement/LocalizationService.cs +++ b/src/Umbraco.Infrastructure/Services/Implement/LocalizationService.cs @@ -2,10 +2,12 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; -using Umbraco.Core.Events; -using Umbraco.Core.Models; -using Umbraco.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Scoping; +using Umbraco.Extensions; namespace Umbraco.Core.Services.Implement { @@ -227,7 +229,7 @@ namespace Umbraco.Core.Services.Implement /// /// to save /// Optional id of the user saving the dictionary item - public void Save(IDictionaryItem dictionaryItem, int userId = Constants.Security.SuperUserId) + public void Save(IDictionaryItem dictionaryItem, int userId = Cms.Core.Constants.Security.SuperUserId) { using (var scope = ScopeProvider.CreateScope()) { @@ -256,7 +258,7 @@ namespace Umbraco.Core.Services.Implement /// /// to delete /// Optional id of the user deleting the dictionary item - public void Delete(IDictionaryItem dictionaryItem, int userId = Constants.Security.SuperUserId) + public void Delete(IDictionaryItem dictionaryItem, int userId = Cms.Core.Constants.Security.SuperUserId) { using (var scope = ScopeProvider.CreateScope()) { @@ -356,12 +358,12 @@ namespace Umbraco.Core.Services.Implement /// /// to save /// Optional id of the user saving the language - public void Save(ILanguage language, int userId = Constants.Security.SuperUserId) + public void Save(ILanguage language, int userId = Cms.Core.Constants.Security.SuperUserId) { using (var scope = ScopeProvider.CreateScope()) { // write-lock languages to guard against race conds when dealing with default language - scope.WriteLock(Constants.Locks.Languages); + scope.WriteLock(Cms.Core.Constants.Locks.Languages); // look for cycles - within write-lock if (language.FallbackLanguageId.HasValue) @@ -409,12 +411,12 @@ namespace Umbraco.Core.Services.Implement /// /// to delete /// Optional id of the user deleting the language - public void Delete(ILanguage language, int userId = Constants.Security.SuperUserId) + public void Delete(ILanguage language, int userId = Cms.Core.Constants.Security.SuperUserId) { using (var scope = ScopeProvider.CreateScope()) { // write-lock languages to guard against race conds when dealing with default language - scope.WriteLock(Constants.Locks.Languages); + scope.WriteLock(Cms.Core.Constants.Locks.Languages); var deleteEventArgs = new DeleteEventArgs(language); if (scope.Events.DispatchCancelable(DeletingLanguage, this, deleteEventArgs)) diff --git a/src/Umbraco.Infrastructure/Services/Implement/LocalizedTextService.cs b/src/Umbraco.Infrastructure/Services/Implement/LocalizedTextService.cs index 8547830ac7..79ccb5e85a 100644 --- a/src/Umbraco.Infrastructure/Services/Implement/LocalizedTextService.cs +++ b/src/Umbraco.Infrastructure/Services/Implement/LocalizedTextService.cs @@ -5,6 +5,8 @@ using System.Linq; using System.Xml.Linq; using System.Xml.XPath; using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; namespace Umbraco.Core.Services.Implement { diff --git a/src/Umbraco.Infrastructure/Services/Implement/LocalizedTextServiceFileSources.cs b/src/Umbraco.Infrastructure/Services/Implement/LocalizedTextServiceFileSources.cs index 78bb71bcf1..83edddf014 100644 --- a/src/Umbraco.Infrastructure/Services/Implement/LocalizedTextServiceFileSources.cs +++ b/src/Umbraco.Infrastructure/Services/Implement/LocalizedTextServiceFileSources.cs @@ -5,9 +5,10 @@ using System.IO; using System.Linq; using System.Xml; using System.Xml.Linq; -using Umbraco.Core.Cache; -using Umbraco.Core.Composing; using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Extensions; namespace Umbraco.Core.Services.Implement { diff --git a/src/Umbraco.Infrastructure/Services/Implement/MacroService.cs b/src/Umbraco.Infrastructure/Services/Implement/MacroService.cs index 98bc633fa9..54478875b2 100644 --- a/src/Umbraco.Infrastructure/Services/Implement/MacroService.cs +++ b/src/Umbraco.Infrastructure/Services/Implement/MacroService.cs @@ -2,6 +2,10 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Events; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Repositories; @@ -81,7 +85,7 @@ namespace Umbraco.Core.Services.Implement /// /// to delete /// Optional id of the user deleting the macro - public void Delete(IMacro macro, int userId = Constants.Security.SuperUserId) + public void Delete(IMacro macro, int userId = Cms.Core.Constants.Security.SuperUserId) { using (var scope = ScopeProvider.CreateScope()) { @@ -106,7 +110,7 @@ namespace Umbraco.Core.Services.Implement /// /// to save /// Optional Id of the user deleting the macro - public void Save(IMacro macro, int userId = Constants.Security.SuperUserId) + public void Save(IMacro macro, int userId = Cms.Core.Constants.Security.SuperUserId) { using (var scope = ScopeProvider.CreateScope()) { diff --git a/src/Umbraco.Infrastructure/Services/Implement/MediaService.cs b/src/Umbraco.Infrastructure/Services/Implement/MediaService.cs index 5d5d4b7bd1..4a9375ddec 100644 --- a/src/Umbraco.Infrastructure/Services/Implement/MediaService.cs +++ b/src/Umbraco.Infrastructure/Services/Implement/MediaService.cs @@ -4,14 +4,19 @@ using System.Globalization; using System.IO; using System.Linq; using Microsoft.Extensions.Logging; -using Umbraco.Core.Events; -using Umbraco.Core.IO; -using Umbraco.Core.Models; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Services.Changes; +using Umbraco.Cms.Core.Strings; using Umbraco.Core.Persistence.Querying; using Umbraco.Core.Persistence.Repositories; using Umbraco.Core.Scoping; -using Umbraco.Core.Services.Changes; -using Umbraco.Core.Strings; +using Umbraco.Extensions; namespace Umbraco.Core.Services.Implement { @@ -51,7 +56,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.MediaTree); + scope.ReadLock(Cms.Core.Constants.Locks.MediaTree); return _mediaRepository.Count(mediaTypeAlias); } } @@ -60,7 +65,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.MediaTree); + scope.ReadLock(Cms.Core.Constants.Locks.MediaTree); var mediaTypeId = 0; if (string.IsNullOrWhiteSpace(mediaTypeAlias) == false) @@ -81,7 +86,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.MediaTree); + scope.ReadLock(Cms.Core.Constants.Locks.MediaTree); return _mediaRepository.CountChildren(parentId, mediaTypeAlias); } } @@ -90,7 +95,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.MediaTree); + scope.ReadLock(Cms.Core.Constants.Locks.MediaTree); return _mediaRepository.CountDescendants(parentId, mediaTypeAlias); } } @@ -113,7 +118,7 @@ namespace Umbraco.Core.Services.Implement /// Alias of the /// Optional id of the user creating the media item /// - public IMedia CreateMedia(string name, Guid parentId, string mediaTypeAlias, int userId = Constants.Security.SuperUserId) + public IMedia CreateMedia(string name, Guid parentId, string mediaTypeAlias, int userId = Cms.Core.Constants.Security.SuperUserId) { var parent = GetById(parentId); return CreateMedia(name, parent, mediaTypeAlias, userId); @@ -131,7 +136,7 @@ namespace Umbraco.Core.Services.Implement /// The alias of the media type. /// The optional id of the user creating the media. /// The media object. - public IMedia CreateMedia(string name, int parentId, string mediaTypeAlias, int userId = Constants.Security.SuperUserId) + public IMedia CreateMedia(string name, int parentId, string mediaTypeAlias, int userId = Cms.Core.Constants.Security.SuperUserId) { var mediaType = GetMediaType(mediaTypeAlias); if (mediaType == null) @@ -144,7 +149,7 @@ namespace Umbraco.Core.Services.Implement throw new InvalidOperationException("Name cannot be more than 255 characters in length."); throw new InvalidOperationException("Name cannot be more than 255 characters in length."); } - var media = new Models.Media(name, parentId, mediaType); + var media = new Media(name, parentId, mediaType); using (var scope = ScopeProvider.CreateScope()) { CreateMedia(scope, media, parent, userId, false); @@ -165,7 +170,7 @@ namespace Umbraco.Core.Services.Implement /// The alias of the media type. /// The optional id of the user creating the media. /// The media object. - public IMedia CreateMedia(string name, string mediaTypeAlias, int userId = Constants.Security.SuperUserId) + public IMedia CreateMedia(string name, string mediaTypeAlias, int userId = Cms.Core.Constants.Security.SuperUserId) { // not locking since not saving anything @@ -177,7 +182,7 @@ namespace Umbraco.Core.Services.Implement throw new InvalidOperationException("Name cannot be more than 255 characters in length."); throw new InvalidOperationException("Name cannot be more than 255 characters in length."); } - var media = new Models.Media(name, -1, mediaType); + var media = new Media(name, -1, mediaType); using (var scope = ScopeProvider.CreateScope()) { CreateMedia(scope, media, null, userId, false); @@ -199,7 +204,7 @@ namespace Umbraco.Core.Services.Implement /// The alias of the media type. /// The optional id of the user creating the media. /// The media object. - public IMedia CreateMedia(string name, IMedia parent, string mediaTypeAlias, int userId = Constants.Security.SuperUserId) + public IMedia CreateMedia(string name, IMedia parent, string mediaTypeAlias, int userId = Cms.Core.Constants.Security.SuperUserId) { if (parent == null) throw new ArgumentNullException(nameof(parent)); @@ -215,7 +220,7 @@ namespace Umbraco.Core.Services.Implement throw new InvalidOperationException("Name cannot be more than 255 characters in length."); throw new InvalidOperationException("Name cannot be more than 255 characters in length."); } - var media = new Models.Media(name, parent, mediaType); + var media = new Media(name, parent, mediaType); CreateMedia(scope, media, parent, userId, false); scope.Complete(); @@ -232,12 +237,12 @@ namespace Umbraco.Core.Services.Implement /// The alias of the media type. /// The optional id of the user creating the media. /// The media object. - public IMedia CreateMediaWithIdentity(string name, int parentId, string mediaTypeAlias, int userId = Constants.Security.SuperUserId) + public IMedia CreateMediaWithIdentity(string name, int parentId, string mediaTypeAlias, int userId = Cms.Core.Constants.Security.SuperUserId) { using (var scope = ScopeProvider.CreateScope()) { // locking the media tree secures media types too - scope.WriteLock(Constants.Locks.MediaTree); + scope.WriteLock(Cms.Core.Constants.Locks.MediaTree); var mediaType = GetMediaType(mediaTypeAlias); // + locks if (mediaType == null) @@ -247,7 +252,7 @@ namespace Umbraco.Core.Services.Implement if (parentId > 0 && parent == null) throw new ArgumentException("No media with that id.", nameof(parentId)); // causes rollback - var media = parentId > 0 ? new Models.Media(name, parent, mediaType) : new Models.Media(name, parentId, mediaType); + var media = parentId > 0 ? new Media(name, parent, mediaType) : new Media(name, parentId, mediaType); CreateMedia(scope, media, parent, userId, true); scope.Complete(); @@ -264,20 +269,20 @@ namespace Umbraco.Core.Services.Implement /// The alias of the media type. /// The optional id of the user creating the media. /// The media object. - public IMedia CreateMediaWithIdentity(string name, IMedia parent, string mediaTypeAlias, int userId = Constants.Security.SuperUserId) + public IMedia CreateMediaWithIdentity(string name, IMedia parent, string mediaTypeAlias, int userId = Cms.Core.Constants.Security.SuperUserId) { if (parent == null) throw new ArgumentNullException(nameof(parent)); using (var scope = ScopeProvider.CreateScope()) { // locking the media tree secures media types too - scope.WriteLock(Constants.Locks.MediaTree); + scope.WriteLock(Cms.Core.Constants.Locks.MediaTree); var mediaType = GetMediaType(mediaTypeAlias); // + locks if (mediaType == null) throw new ArgumentException("No media type with that alias.", nameof(mediaTypeAlias)); // causes rollback - var media = new Models.Media(name, parent, mediaType); + var media = new Media(name, parent, mediaType); CreateMedia(scope, media, parent, userId, true); scope.Complete(); @@ -285,7 +290,7 @@ namespace Umbraco.Core.Services.Implement } } - private void CreateMedia(IScope scope, Models.Media media, IMedia parent, int userId, bool withIdentity) + private void CreateMedia(IScope scope, Media media, IMedia parent, int userId, bool withIdentity) { media.CreatorId = userId; @@ -322,7 +327,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.MediaTree); + scope.ReadLock(Cms.Core.Constants.Locks.MediaTree); return _mediaRepository.Get(id); } } @@ -339,7 +344,7 @@ namespace Umbraco.Core.Services.Implement using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.MediaTree); + scope.ReadLock(Cms.Core.Constants.Locks.MediaTree); return _mediaRepository.GetMany(idsA); } } @@ -353,7 +358,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.MediaTree); + scope.ReadLock(Cms.Core.Constants.Locks.MediaTree); return _mediaRepository.Get(key); } } @@ -372,7 +377,7 @@ namespace Umbraco.Core.Services.Implement using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.MediaTree); + scope.ReadLock(Cms.Core.Constants.Locks.MediaTree); return _mediaRepository.GetMany(idsA); } } @@ -388,7 +393,7 @@ namespace Umbraco.Core.Services.Implement using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.ContentTree); + scope.ReadLock(Cms.Core.Constants.Locks.ContentTree); return _mediaRepository.GetPage( Query().Where(x => x.ContentTypeId == contentTypeId), pageIndex, pageSize, out totalRecords, filter, ordering); @@ -406,7 +411,7 @@ namespace Umbraco.Core.Services.Implement using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.ContentTree); + scope.ReadLock(Cms.Core.Constants.Locks.ContentTree); return _mediaRepository.GetPage( Query().Where(x => contentTypeIds.Contains(x.ContentTypeId)), pageIndex, pageSize, out totalRecords, filter, ordering); @@ -423,7 +428,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.MediaTree); + scope.ReadLock(Cms.Core.Constants.Locks.MediaTree); var query = Query().Where(x => x.Level == level && x.Trashed == false); return _mediaRepository.Get(query); } @@ -438,7 +443,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.MediaTree); + scope.ReadLock(Cms.Core.Constants.Locks.MediaTree); return _mediaRepository.GetVersion(versionId); } } @@ -452,7 +457,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.MediaTree); + scope.ReadLock(Cms.Core.Constants.Locks.MediaTree); return _mediaRepository.GetAllVersions(id); } } @@ -479,7 +484,7 @@ namespace Umbraco.Core.Services.Implement //null check otherwise we get exceptions if (media.Path.IsNullOrWhiteSpace()) return Enumerable.Empty(); - var rootId = Constants.System.RootString; + var rootId = Cms.Core.Constants.System.RootString; var ids = media.Path.Split(',') .Where(x => x != rootId && x != media.Id.ToString(CultureInfo.InvariantCulture)) .Select(int.Parse) @@ -489,7 +494,7 @@ namespace Umbraco.Core.Services.Implement using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.MediaTree); + scope.ReadLock(Cms.Core.Constants.Locks.MediaTree); return _mediaRepository.GetMany(ids); } } @@ -506,7 +511,7 @@ namespace Umbraco.Core.Services.Implement using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.MediaTree); + scope.ReadLock(Cms.Core.Constants.Locks.MediaTree); var query = Query().Where(x => x.ParentId == id); return _mediaRepository.GetPage(query, pageIndex, pageSize, out totalChildren, filter, ordering); @@ -522,12 +527,12 @@ namespace Umbraco.Core.Services.Implement using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.MediaTree); + scope.ReadLock(Cms.Core.Constants.Locks.MediaTree); //if the id is System Root, then just get all - if (id != Constants.System.Root) + if (id != Cms.Core.Constants.System.Root) { - var mediaPath = _entityRepository.GetAllPaths(Constants.ObjectTypes.Media, id).ToArray(); + var mediaPath = _entityRepository.GetAllPaths(Cms.Core.Constants.ObjectTypes.Media, id).ToArray(); if (mediaPath.Length == 0) { totalChildren = 0; @@ -576,7 +581,7 @@ namespace Umbraco.Core.Services.Implement /// Parent object public IMedia GetParent(IMedia media) { - if (media.ParentId == Constants.System.Root || media.ParentId == Constants.System.RecycleBinMedia) + if (media.ParentId == Cms.Core.Constants.System.Root || media.ParentId == Cms.Core.Constants.System.RecycleBinMedia) return null; return GetById(media.ParentId); @@ -590,8 +595,8 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.MediaTree); - var query = Query().Where(x => x.ParentId == Constants.System.Root); + scope.ReadLock(Cms.Core.Constants.Locks.MediaTree); + var query = Query().Where(x => x.ParentId == Cms.Core.Constants.System.Root); return _mediaRepository.Get(query); } } @@ -605,8 +610,8 @@ namespace Umbraco.Core.Services.Implement if (ordering == null) ordering = Ordering.By("Path"); - scope.ReadLock(Constants.Locks.MediaTree); - var query = Query().Where(x => x.Path.StartsWith(Constants.System.RecycleBinMediaPathPrefix)); + scope.ReadLock(Cms.Core.Constants.Locks.MediaTree); + var query = Query().Where(x => x.Path.StartsWith(Cms.Core.Constants.System.RecycleBinMediaPathPrefix)); return _mediaRepository.GetPage(query, pageIndex, pageSize, out totalRecords, filter, ordering); } } @@ -651,7 +656,7 @@ namespace Umbraco.Core.Services.Implement /// The to save /// Id of the User saving the Media /// Optional boolean indicating whether or not to raise events. - public Attempt Save(IMedia media, int userId = Constants.Security.SuperUserId, bool raiseEvents = true) + public Attempt Save(IMedia media, int userId = Cms.Core.Constants.Security.SuperUserId, bool raiseEvents = true) { var evtMsgs = EventMessagesFactory.Get(); @@ -673,7 +678,7 @@ namespace Umbraco.Core.Services.Implement throw new InvalidOperationException("Name cannot be more than 255 characters in length."); throw new InvalidOperationException("Name cannot be more than 255 characters in length."); } - scope.WriteLock(Constants.Locks.MediaTree); + scope.WriteLock(Cms.Core.Constants.Locks.MediaTree); if (media.HasIdentity == false) media.CreatorId = userId; @@ -699,7 +704,7 @@ namespace Umbraco.Core.Services.Implement /// Collection of to save /// Id of the User saving the Media /// Optional boolean indicating whether or not to raise events. - public Attempt Save(IEnumerable medias, int userId = Constants.Security.SuperUserId, bool raiseEvents = true) + public Attempt Save(IEnumerable medias, int userId = Cms.Core.Constants.Security.SuperUserId, bool raiseEvents = true) { var evtMsgs = EventMessagesFactory.Get(); var mediasA = medias.ToArray(); @@ -715,7 +720,7 @@ namespace Umbraco.Core.Services.Implement var treeChanges = mediasA.Select(x => new TreeChange(x, TreeChangeTypes.RefreshNode)); - scope.WriteLock(Constants.Locks.MediaTree); + scope.WriteLock(Cms.Core.Constants.Locks.MediaTree); foreach (var media in mediasA) { if (media.HasIdentity == false) @@ -729,7 +734,7 @@ namespace Umbraco.Core.Services.Implement scope.Events.Dispatch(Saved, this, saveEventArgs); } scope.Events.Dispatch(TreeChanged, this, treeChanges.ToEventArgs()); - Audit(AuditType.Save, userId == -1 ? 0 : userId, Constants.System.Root, "Bulk save media"); + Audit(AuditType.Save, userId == -1 ? 0 : userId, Cms.Core.Constants.System.Root, "Bulk save media"); scope.Complete(); } @@ -746,7 +751,7 @@ namespace Umbraco.Core.Services.Implement /// /// The to delete /// Id of the User deleting the Media - public Attempt Delete(IMedia media, int userId = Constants.Security.SuperUserId) + public Attempt Delete(IMedia media, int userId = Cms.Core.Constants.Security.SuperUserId) { var evtMsgs = EventMessagesFactory.Get(); @@ -758,7 +763,7 @@ namespace Umbraco.Core.Services.Implement return OperationResult.Attempt.Cancel(evtMsgs); } - scope.WriteLock(Constants.Locks.MediaTree); + scope.WriteLock(Cms.Core.Constants.Locks.MediaTree); DeleteLocked(scope, media); @@ -807,7 +812,7 @@ namespace Umbraco.Core.Services.Implement /// Id of the object to delete versions from /// Latest version date /// Optional Id of the User deleting versions of a Media object - public void DeleteVersions(int id, DateTime versionDate, int userId = Constants.Security.SuperUserId) + public void DeleteVersions(int id, DateTime versionDate, int userId = Cms.Core.Constants.Security.SuperUserId) { using (var scope = ScopeProvider.CreateScope()) { @@ -831,19 +836,19 @@ namespace Umbraco.Core.Services.Implement } } - private void DeleteVersions(IScope scope, bool wlock, int id, DateTime versionDate, int userId = Constants.Security.SuperUserId) + private void DeleteVersions(IScope scope, bool wlock, int id, DateTime versionDate, int userId = Cms.Core.Constants.Security.SuperUserId) { var args = new DeleteRevisionsEventArgs(id, dateToRetain: versionDate); if (scope.Events.DispatchCancelable(DeletingVersions, this, args)) return; if (wlock) - scope.WriteLock(Constants.Locks.MediaTree); + scope.WriteLock(Cms.Core.Constants.Locks.MediaTree); _mediaRepository.DeleteVersions(id, versionDate); args.CanCancel = false; scope.Events.Dispatch(DeletedVersions, this, args); - Audit(AuditType.Delete, userId, Constants.System.Root, "Delete Media by version date"); + Audit(AuditType.Delete, userId, Cms.Core.Constants.System.Root, "Delete Media by version date"); } /// @@ -854,7 +859,7 @@ namespace Umbraco.Core.Services.Implement /// Id of the version to delete /// Boolean indicating whether to delete versions prior to the versionId /// Optional Id of the User deleting versions of a Media object - public void DeleteVersion(int id, int versionId, bool deletePriorVersions, int userId = Constants.Security.SuperUserId) + public void DeleteVersion(int id, int versionId, bool deletePriorVersions, int userId = Cms.Core.Constants.Security.SuperUserId) { using (var scope = ScopeProvider.CreateScope()) { @@ -872,14 +877,14 @@ namespace Umbraco.Core.Services.Implement } else { - scope.WriteLock(Constants.Locks.MediaTree); + scope.WriteLock(Cms.Core.Constants.Locks.MediaTree); } _mediaRepository.DeleteVersion(versionId); args.CanCancel = false; scope.Events.Dispatch(DeletedVersions, this, args); - Audit(AuditType.Delete, userId, Constants.System.Root, "Delete Media by version"); + Audit(AuditType.Delete, userId, Cms.Core.Constants.System.Root, "Delete Media by version"); scope.Complete(); } @@ -894,21 +899,21 @@ namespace Umbraco.Core.Services.Implement /// /// The to delete /// Id of the User deleting the Media - public Attempt MoveToRecycleBin(IMedia media, int userId = Constants.Security.SuperUserId) + public Attempt MoveToRecycleBin(IMedia media, int userId = Cms.Core.Constants.Security.SuperUserId) { var evtMsgs = EventMessagesFactory.Get(); var moves = new List<(IMedia, string)>(); using (var scope = ScopeProvider.CreateScope()) { - scope.WriteLock(Constants.Locks.MediaTree); + scope.WriteLock(Cms.Core.Constants.Locks.MediaTree); // TODO: missing 7.6 "ensure valid path" thing here? // but then should be in PerformMoveLocked on every moved item? var originalPath = media.Path; - var moveEventInfo = new MoveEventInfo(media, originalPath, Constants.System.RecycleBinMedia); + var moveEventInfo = new MoveEventInfo(media, originalPath, Cms.Core.Constants.System.RecycleBinMedia); var moveEventArgs = new MoveEventArgs(true, evtMsgs, moveEventInfo); if (scope.Events.DispatchCancelable(Trashing, this, moveEventArgs, nameof(Trashing))) { @@ -916,7 +921,7 @@ namespace Umbraco.Core.Services.Implement return OperationResult.Attempt.Cancel(evtMsgs); } - PerformMoveLocked(media, Constants.System.RecycleBinMedia, null, userId, moves, true); + PerformMoveLocked(media, Cms.Core.Constants.System.RecycleBinMedia, null, userId, moves, true); scope.Events.Dispatch(TreeChanged, this, new TreeChange(media, TreeChangeTypes.RefreshBranch).ToEventArgs()); var moveInfo = moves.Select(x => new MoveEventInfo(x.Item1, x.Item2, x.Item1.ParentId)) @@ -938,12 +943,12 @@ namespace Umbraco.Core.Services.Implement /// The to move /// Id of the Media's new Parent /// Id of the User moving the Media - public Attempt Move(IMedia media, int parentId, int userId = Constants.Security.SuperUserId) + public Attempt Move(IMedia media, int parentId, int userId = Cms.Core.Constants.Security.SuperUserId) { var evtMsgs = EventMessagesFactory.Get(); // if moving to the recycle bin then use the proper method - if (parentId == Constants.System.RecycleBinMedia) + if (parentId == Cms.Core.Constants.System.RecycleBinMedia) { MoveToRecycleBin(media, userId); return OperationResult.Attempt.Succeed(evtMsgs); @@ -953,10 +958,10 @@ namespace Umbraco.Core.Services.Implement using (var scope = ScopeProvider.CreateScope()) { - scope.WriteLock(Constants.Locks.MediaTree); + scope.WriteLock(Cms.Core.Constants.Locks.MediaTree); - var parent = parentId == Constants.System.Root ? null : GetById(parentId); - if (parentId != Constants.System.Root && (parent == null || parent.Trashed)) + var parent = parentId == Cms.Core.Constants.System.Root ? null : GetById(parentId); + if (parentId != Cms.Core.Constants.System.Root && (parent == null || parent.Trashed)) throw new InvalidOperationException("Parent does not exist or is trashed."); // causes rollback var moveEventInfo = new MoveEventInfo(media, media.Path, parentId); @@ -1012,7 +1017,7 @@ namespace Umbraco.Core.Services.Implement // if uow is not immediate, content.Path will be updated only when the UOW commits, // and because we want it now, we have to calculate it by ourselves //paths[media.Id] = media.Path; - paths[media.Id] = (parent == null ? (parentId == Constants.System.RecycleBinMedia ? "-1,-21" : Constants.System.RootString) : parent.Path) + "," + media.Id; + paths[media.Id] = (parent == null ? (parentId == Cms.Core.Constants.System.RecycleBinMedia ? "-1,-21" : Cms.Core.Constants.System.RootString) : parent.Path) + "," + media.Id; const int pageSize = 500; var query = GetPagedDescendantQuery(originalPath); @@ -1046,15 +1051,15 @@ namespace Umbraco.Core.Services.Implement /// Empties the Recycle Bin by deleting all that resides in the bin /// /// Optional Id of the User emptying the Recycle Bin - public OperationResult EmptyRecycleBin(int userId = Constants.Security.SuperUserId) + public OperationResult EmptyRecycleBin(int userId = Cms.Core.Constants.Security.SuperUserId) { - var nodeObjectType = Constants.ObjectTypes.Media; + var nodeObjectType = Cms.Core.Constants.ObjectTypes.Media; var deleted = new List(); var evtMsgs = EventMessagesFactory.Get(); // TODO: and then? using (var scope = ScopeProvider.CreateScope()) { - scope.WriteLock(Constants.Locks.MediaTree); + scope.WriteLock(Cms.Core.Constants.Locks.MediaTree); // no idea what those events are for, keep a simplified version @@ -1069,7 +1074,7 @@ namespace Umbraco.Core.Services.Implement return OperationResult.Cancel(evtMsgs); } // emptying the recycle bin means deleting whatever is in there - do it properly! - var query = Query().Where(x => x.ParentId == Constants.System.RecycleBinMedia); + var query = Query().Where(x => x.ParentId == Cms.Core.Constants.System.RecycleBinMedia); var medias = _mediaRepository.Get(query).ToArray(); foreach (var media in medias) { @@ -1079,7 +1084,7 @@ namespace Umbraco.Core.Services.Implement args.CanCancel = false; scope.Events.Dispatch(EmptiedRecycleBin, this, args); scope.Events.Dispatch(TreeChanged, this, deleted.Select(x => new TreeChange(x, TreeChangeTypes.Remove)).ToEventArgs()); - Audit(AuditType.Delete, userId, Constants.System.RecycleBinMedia, "Empty Media recycle bin"); + Audit(AuditType.Delete, userId, Cms.Core.Constants.System.RecycleBinMedia, "Empty Media recycle bin"); scope.Complete(); } @@ -1098,7 +1103,7 @@ namespace Umbraco.Core.Services.Implement /// /// /// True if sorting succeeded, otherwise False - public bool Sort(IEnumerable items, int userId = Constants.Security.SuperUserId, bool raiseEvents = true) + public bool Sort(IEnumerable items, int userId = Cms.Core.Constants.Security.SuperUserId, bool raiseEvents = true) { var itemsA = items.ToArray(); if (itemsA.Length == 0) return true; @@ -1114,7 +1119,7 @@ namespace Umbraco.Core.Services.Implement var saved = new List(); - scope.WriteLock(Constants.Locks.MediaTree); + scope.WriteLock(Cms.Core.Constants.Locks.MediaTree); var sortOrder = 0; foreach (var media in itemsA) @@ -1152,14 +1157,14 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.WriteLock(Constants.Locks.MediaTree); + scope.WriteLock(Cms.Core.Constants.Locks.MediaTree); var report = _mediaRepository.CheckDataIntegrity(options); if (report.FixedIssues.Count > 0) { //The event args needs a content item so we'll make a fake one with enough properties to not cause a null ref - var root = new Models.Media("root", -1, new MediaType(_shortStringHelper, -1)) { Id = -1, Key = Guid.Empty }; + var root = new Media("root", -1, new MediaType(_shortStringHelper, -1)) { Id = -1, Key = Guid.Empty }; scope.Events.Dispatch(TreeChanged, this, new TreeChange.EventArgs(new TreeChange(root, TreeChangeTypes.RefreshAll))); } @@ -1293,7 +1298,7 @@ namespace Umbraco.Core.Services.Implement /// /// Id of the /// Optional id of the user deleting the media - public void DeleteMediaOfTypes(IEnumerable mediaTypeIds, int userId = Constants.Security.SuperUserId) + public void DeleteMediaOfTypes(IEnumerable mediaTypeIds, int userId = Cms.Core.Constants.Security.SuperUserId) { // TODO: This currently this is called from the ContentTypeService but that needs to change, // if we are deleting a content type, we should just delete the data and do this operation slightly differently. @@ -1308,7 +1313,7 @@ namespace Umbraco.Core.Services.Implement using (var scope = ScopeProvider.CreateScope()) { - scope.WriteLock(Constants.Locks.MediaTree); + scope.WriteLock(Cms.Core.Constants.Locks.MediaTree); var query = Query().WhereIn(x => x.ContentTypeId, mediaTypeIdsA); var medias = _mediaRepository.Get(query).ToArray(); @@ -1330,7 +1335,7 @@ namespace Umbraco.Core.Services.Implement foreach (var child in children.Where(x => mediaTypeIdsA.Contains(x.ContentTypeId) == false)) { // see MoveToRecycleBin - PerformMoveLocked(child, Constants.System.RecycleBinMedia, null, userId, moves, true); + PerformMoveLocked(child, Cms.Core.Constants.System.RecycleBinMedia, null, userId, moves, true); changes.Add(new TreeChange(media, TreeChangeTypes.RefreshBranch)); } @@ -1346,7 +1351,7 @@ namespace Umbraco.Core.Services.Implement scope.Events.Dispatch(Trashed, this, new MoveEventArgs(false, moveInfos), nameof(Trashed)); scope.Events.Dispatch(TreeChanged, this, changes.ToEventArgs()); - Audit(AuditType.Delete, userId, Constants.System.Root, $"Delete Media of types {string.Join(",", mediaTypeIdsA)}"); + Audit(AuditType.Delete, userId, Cms.Core.Constants.System.Root, $"Delete Media of types {string.Join(",", mediaTypeIdsA)}"); scope.Complete(); } @@ -1358,7 +1363,7 @@ namespace Umbraco.Core.Services.Implement /// This needs extra care and attention as its potentially a dangerous and extensive operation /// Id of the /// Optional id of the user deleting the media - public void DeleteMediaOfType(int mediaTypeId, int userId = Constants.Security.SuperUserId) + public void DeleteMediaOfType(int mediaTypeId, int userId = Cms.Core.Constants.Security.SuperUserId) { DeleteMediaOfTypes(new[] { mediaTypeId }, userId); } @@ -1370,7 +1375,7 @@ namespace Umbraco.Core.Services.Implement using (var scope = ScopeProvider.CreateScope()) { - scope.ReadLock(Constants.Locks.MediaTypes); + scope.ReadLock(Cms.Core.Constants.Locks.MediaTypes); var query = Query().Where(x => x.Alias == mediaTypeAlias); var mediaType = _mediaTypeRepository.Get(query).FirstOrDefault(); diff --git a/src/Umbraco.Infrastructure/Services/Implement/MediaTypeService.cs b/src/Umbraco.Infrastructure/Services/Implement/MediaTypeService.cs index 73ce6822a1..bb7df3e4e0 100644 --- a/src/Umbraco.Infrastructure/Services/Implement/MediaTypeService.cs +++ b/src/Umbraco.Infrastructure/Services/Implement/MediaTypeService.cs @@ -1,6 +1,10 @@ using System; using System.Collections.Generic; using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Events; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Repositories; @@ -21,12 +25,12 @@ namespace Umbraco.Core.Services.Implement protected override IMediaTypeService This => this; // beware! order is important to avoid deadlocks - protected override int[] ReadLockIds { get; } = { Constants.Locks.MediaTypes }; - protected override int[] WriteLockIds { get; } = { Constants.Locks.MediaTree, Constants.Locks.MediaTypes }; + protected override int[] ReadLockIds { get; } = { Cms.Core.Constants.Locks.MediaTypes }; + protected override int[] WriteLockIds { get; } = { Cms.Core.Constants.Locks.MediaTree, Cms.Core.Constants.Locks.MediaTypes }; private IMediaService MediaService { get; } - protected override Guid ContainedObjectType => Constants.ObjectTypes.MediaType; + protected override Guid ContainedObjectType => Cms.Core.Constants.ObjectTypes.MediaType; protected override void DeleteItemsOfTypes(IEnumerable typeIds) { diff --git a/src/Umbraco.Infrastructure/Services/Implement/MemberGroupService.cs b/src/Umbraco.Infrastructure/Services/Implement/MemberGroupService.cs index 9947e50661..9b75fb8fbd 100644 --- a/src/Umbraco.Infrastructure/Services/Implement/MemberGroupService.cs +++ b/src/Umbraco.Infrastructure/Services/Implement/MemberGroupService.cs @@ -2,6 +2,10 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Events; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Repositories; diff --git a/src/Umbraco.Infrastructure/Services/Implement/MemberService.cs b/src/Umbraco.Infrastructure/Services/Implement/MemberService.cs index 4ae0458910..7288fa190a 100644 --- a/src/Umbraco.Infrastructure/Services/Implement/MemberService.cs +++ b/src/Umbraco.Infrastructure/Services/Implement/MemberService.cs @@ -2,14 +2,17 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; -using Umbraco.Core.Composing; -using Umbraco.Core.Events; -using Umbraco.Core.Exceptions; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Membership; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Persistence.Querying; using Umbraco.Core.Persistence.Repositories; using Umbraco.Core.Scoping; +using Umbraco.Extensions; namespace Umbraco.Core.Services.Implement { @@ -57,7 +60,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.MemberTree); + scope.ReadLock(Cms.Core.Constants.Locks.MemberTree); IQuery query; @@ -67,10 +70,10 @@ namespace Umbraco.Core.Services.Implement query = Query(); break; case MemberCountType.LockedOut: - query = Query().Where(x => x.PropertyTypeAlias == Constants.Conventions.Member.IsLockedOut && ((Member) x).BoolPropertyValue); + query = Query().Where(x => x.PropertyTypeAlias == Cms.Core.Constants.Conventions.Member.IsLockedOut && ((Member) x).BoolPropertyValue); break; case MemberCountType.Approved: - query = Query().Where(x => x.PropertyTypeAlias == Constants.Conventions.Member.IsApproved && ((Member) x).BoolPropertyValue); + query = Query().Where(x => x.PropertyTypeAlias == Cms.Core.Constants.Conventions.Member.IsApproved && ((Member) x).BoolPropertyValue); break; default: throw new ArgumentOutOfRangeException(nameof(countType)); @@ -90,7 +93,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.MemberTree); + scope.ReadLock(Cms.Core.Constants.Locks.MemberTree); return _memberRepository.Count(memberTypeAlias); } } @@ -217,7 +220,7 @@ namespace Umbraco.Core.Services.Implement using (var scope = ScopeProvider.CreateScope()) { // locking the member tree secures member types too - scope.WriteLock(Constants.Locks.MemberTree); + scope.WriteLock(Cms.Core.Constants.Locks.MemberTree); var memberType = GetMemberType(scope, memberTypeAlias); // + locks // + locks if (memberType == null) @@ -287,7 +290,7 @@ namespace Umbraco.Core.Services.Implement using (var scope = ScopeProvider.CreateScope()) { - scope.WriteLock(Constants.Locks.MemberTree); + scope.WriteLock(Cms.Core.Constants.Locks.MemberTree); // ensure it all still make sense // ensure it all still make sense @@ -339,7 +342,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.MemberTree); + scope.ReadLock(Cms.Core.Constants.Locks.MemberTree); return _memberRepository.Get(id); } } @@ -355,7 +358,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.MemberTree); + scope.ReadLock(Cms.Core.Constants.Locks.MemberTree); var query = Query().Where(x => x.Key == id); return _memberRepository.Get(query).FirstOrDefault(); } @@ -372,7 +375,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.MemberTree); + scope.ReadLock(Cms.Core.Constants.Locks.MemberTree); return _memberRepository.GetPage(null, pageIndex, pageSize, out totalRecords, null, Ordering.By("LoginName")); } } @@ -388,7 +391,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.MemberTree); + scope.ReadLock(Cms.Core.Constants.Locks.MemberTree); var query1 = memberTypeAlias == null ? null : Query().Where(x => x.ContentTypeAlias == memberTypeAlias); var query2 = filter == null ? null : Query().Where(x => x.Name.Contains(filter) || x.Username.Contains(filter) || x.Email.Contains(filter)); return _memberRepository.GetPage(query1, pageIndex, pageSize, out totalRecords, query2, Ordering.By(orderBy, orderDirection, isCustomField: !orderBySystemField)); @@ -422,7 +425,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.MemberTree); + scope.ReadLock(Cms.Core.Constants.Locks.MemberTree); var query = Query().Where(x => x.Email.Equals(email)); return _memberRepository.Get(query).FirstOrDefault(); } @@ -437,7 +440,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.MemberTree); + scope.ReadLock(Cms.Core.Constants.Locks.MemberTree); return _memberRepository.GetByUsername(username); } } @@ -451,7 +454,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.MemberTree); + scope.ReadLock(Cms.Core.Constants.Locks.MemberTree); var query = Query().Where(x => x.ContentTypeAlias == memberTypeAlias); return _memberRepository.Get(query); } @@ -466,7 +469,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.MemberTree); + scope.ReadLock(Cms.Core.Constants.Locks.MemberTree); var query = Query().Where(x => x.ContentTypeId == memberTypeId); return _memberRepository.Get(query); } @@ -481,7 +484,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.MemberTree); + scope.ReadLock(Cms.Core.Constants.Locks.MemberTree); return _memberRepository.GetByMemberGroup(memberGroupName); } } @@ -496,7 +499,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.MemberTree); + scope.ReadLock(Cms.Core.Constants.Locks.MemberTree); return _memberRepository.GetMany(ids); } } @@ -514,7 +517,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.MemberTree); + scope.ReadLock(Cms.Core.Constants.Locks.MemberTree); var query = Query(); switch (matchType) @@ -555,7 +558,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.MemberTree); + scope.ReadLock(Cms.Core.Constants.Locks.MemberTree); var query = Query(); switch (matchType) @@ -596,7 +599,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.MemberTree); + scope.ReadLock(Cms.Core.Constants.Locks.MemberTree); var query = Query(); switch (matchType) @@ -635,7 +638,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.MemberTree); + scope.ReadLock(Cms.Core.Constants.Locks.MemberTree); IQuery query; switch (matchType) @@ -671,7 +674,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.MemberTree); + scope.ReadLock(Cms.Core.Constants.Locks.MemberTree); IQuery query; switch (matchType) @@ -709,7 +712,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.MemberTree); + scope.ReadLock(Cms.Core.Constants.Locks.MemberTree); var query = Query().Where(x => ((Member) x).PropertyTypeAlias == propertyTypeAlias && ((Member) x).BoolPropertyValue == value); return _memberRepository.Get(query); @@ -727,7 +730,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.MemberTree); + scope.ReadLock(Cms.Core.Constants.Locks.MemberTree); IQuery query; switch (matchType) @@ -765,7 +768,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.MemberTree); + scope.ReadLock(Cms.Core.Constants.Locks.MemberTree); return _memberRepository.Exists(id); } } @@ -779,7 +782,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.MemberTree); + scope.ReadLock(Cms.Core.Constants.Locks.MemberTree); return _memberRepository.Exists(username); } } @@ -792,7 +795,7 @@ namespace Umbraco.Core.Services.Implement public void SetLastLogin(string username, DateTime date) { using (var scope = ScopeProvider.CreateScope()) - { + { _memberRepository.SetLastLogin(username, date); scope.Complete(); } @@ -819,7 +822,7 @@ namespace Umbraco.Core.Services.Implement throw new ArgumentException("Cannot save member with empty name."); } - scope.WriteLock(Constants.Locks.MemberTree); + scope.WriteLock(Cms.Core.Constants.Locks.MemberTree); _memberRepository.Save(member); @@ -848,7 +851,7 @@ namespace Umbraco.Core.Services.Implement return; } - scope.WriteLock(Constants.Locks.MemberTree); + scope.WriteLock(Cms.Core.Constants.Locks.MemberTree); foreach (var member in membersA) { @@ -889,7 +892,7 @@ namespace Umbraco.Core.Services.Implement return; } - scope.WriteLock(Constants.Locks.MemberTree); + scope.WriteLock(Cms.Core.Constants.Locks.MemberTree); DeleteLocked(scope, member, deleteEventArgs); Audit(AuditType.Delete, 0, member.Id); @@ -918,7 +921,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope()) { - scope.WriteLock(Constants.Locks.MemberTree); + scope.WriteLock(Cms.Core.Constants.Locks.MemberTree); _memberGroupRepository.CreateIfNotExists(roleName); scope.Complete(); } @@ -928,7 +931,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.MemberTree); + scope.ReadLock(Cms.Core.Constants.Locks.MemberTree); return _memberGroupRepository.GetMany().Select(x => x.Name).Distinct(); } } @@ -937,7 +940,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.MemberTree); + scope.ReadLock(Cms.Core.Constants.Locks.MemberTree); var result = _memberGroupRepository.GetMemberGroupsForMember(memberId); return result.Select(x => x.Name).Distinct(); } @@ -947,7 +950,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.MemberTree); + scope.ReadLock(Cms.Core.Constants.Locks.MemberTree); var result = _memberGroupRepository.GetMemberGroupsForMember(username); return result.Select(x => x.Name).Distinct(); } @@ -957,7 +960,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.MemberTree); + scope.ReadLock(Cms.Core.Constants.Locks.MemberTree); return _memberGroupRepository.GetMany().Select(x => x.Id).Distinct(); } } @@ -966,7 +969,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.MemberTree); + scope.ReadLock(Cms.Core.Constants.Locks.MemberTree); var result = _memberGroupRepository.GetMemberGroupsForMember(memberId); return result.Select(x => x.Id).Distinct(); } @@ -976,7 +979,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.MemberTree); + scope.ReadLock(Cms.Core.Constants.Locks.MemberTree); var result = _memberGroupRepository.GetMemberGroupsForMember(username); return result.Select(x => x.Id).Distinct(); } @@ -986,7 +989,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.MemberTree); + scope.ReadLock(Cms.Core.Constants.Locks.MemberTree); return _memberRepository.GetByMemberGroup(roleName); } } @@ -995,7 +998,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.MemberTree); + scope.ReadLock(Cms.Core.Constants.Locks.MemberTree); return _memberRepository.FindMembersInRole(roleName, usernameToMatch, matchType); } } @@ -1004,7 +1007,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope()) { - scope.WriteLock(Constants.Locks.MemberTree); + scope.WriteLock(Cms.Core.Constants.Locks.MemberTree); if (throwIfBeingUsed) { @@ -1034,7 +1037,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope()) { - scope.WriteLock(Constants.Locks.MemberTree); + scope.WriteLock(Cms.Core.Constants.Locks.MemberTree); var ids = _memberGroupRepository.GetMemberIds(usernames); _memberGroupRepository.AssignRoles(ids, roleNames); scope.Events.Dispatch(AssignedRoles, this, new RolesEventArgs(ids, roleNames), nameof(AssignedRoles)); @@ -1051,7 +1054,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope()) { - scope.WriteLock(Constants.Locks.MemberTree); + scope.WriteLock(Cms.Core.Constants.Locks.MemberTree); var ids = _memberGroupRepository.GetMemberIds(usernames); _memberGroupRepository.DissociateRoles(ids, roleNames); scope.Events.Dispatch(RemovedRoles, this, new RolesEventArgs(ids, roleNames), nameof(RemovedRoles)); @@ -1068,7 +1071,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope()) { - scope.WriteLock(Constants.Locks.MemberTree); + scope.WriteLock(Cms.Core.Constants.Locks.MemberTree); _memberGroupRepository.AssignRoles(memberIds, roleNames); scope.Events.Dispatch(AssignedRoles, this, new RolesEventArgs(memberIds, roleNames), nameof(AssignedRoles)); scope.Complete(); @@ -1084,7 +1087,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope()) { - scope.WriteLock(Constants.Locks.MemberTree); + scope.WriteLock(Cms.Core.Constants.Locks.MemberTree); _memberGroupRepository.DissociateRoles(memberIds, roleNames); scope.Events.Dispatch(RemovedRoles, this, new RolesEventArgs(memberIds, roleNames), nameof(RemovedRoles)); scope.Complete(); @@ -1217,7 +1220,7 @@ namespace Umbraco.Core.Services.Implement using (var scope = ScopeProvider.CreateScope()) { - scope.WriteLock(Constants.Locks.MemberTree); + scope.WriteLock(Cms.Core.Constants.Locks.MemberTree); // TODO: What about content that has the contenttype as part of its composition? var query = Query().Where(x => x.ContentTypeId == memberTypeId); @@ -1246,7 +1249,7 @@ namespace Umbraco.Core.Services.Implement if (memberTypeAlias == null) throw new ArgumentNullException(nameof(memberTypeAlias)); if (string.IsNullOrWhiteSpace(memberTypeAlias)) throw new ArgumentException("Value can't be empty or consist only of white-space characters.", nameof(memberTypeAlias)); - scope.ReadLock(Constants.Locks.MemberTypes); + scope.ReadLock(Cms.Core.Constants.Locks.MemberTypes); var memberType = _memberTypeRepository.Get(memberTypeAlias); diff --git a/src/Umbraco.Infrastructure/Services/Implement/MemberTypeService.cs b/src/Umbraco.Infrastructure/Services/Implement/MemberTypeService.cs index b3c443b9a4..dfe7410c1b 100644 --- a/src/Umbraco.Infrastructure/Services/Implement/MemberTypeService.cs +++ b/src/Umbraco.Infrastructure/Services/Implement/MemberTypeService.cs @@ -1,10 +1,13 @@ using System; using System.Collections.Generic; using Microsoft.Extensions.Logging; -using Umbraco.Core.Events; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Persistence.Repositories; using Umbraco.Core.Scoping; +using Umbraco.Extensions; namespace Umbraco.Core.Services.Implement { @@ -23,12 +26,12 @@ namespace Umbraco.Core.Services.Implement protected override IMemberTypeService This => this; // beware! order is important to avoid deadlocks - protected override int[] ReadLockIds { get; } = { Constants.Locks.MemberTypes }; - protected override int[] WriteLockIds { get; } = { Constants.Locks.MemberTree, Constants.Locks.MemberTypes }; + protected override int[] ReadLockIds { get; } = { Cms.Core.Constants.Locks.MemberTypes }; + protected override int[] WriteLockIds { get; } = { Cms.Core.Constants.Locks.MemberTree, Cms.Core.Constants.Locks.MemberTypes }; private IMemberService MemberService { get; } - protected override Guid ContainedObjectType => Constants.ObjectTypes.MemberType; + protected override Guid ContainedObjectType => Cms.Core.Constants.ObjectTypes.MemberType; protected override void DeleteItemsOfTypes(IEnumerable typeIds) { diff --git a/src/Umbraco.Infrastructure/Services/Implement/NotificationService.cs b/src/Umbraco.Infrastructure/Services/Implement/NotificationService.cs index 653a878ab9..071523853f 100644 --- a/src/Umbraco.Infrastructure/Services/Implement/NotificationService.cs +++ b/src/Umbraco.Infrastructure/Services/Implement/NotificationService.cs @@ -5,16 +5,19 @@ using System.Globalization; using System.Linq; using System.Text; using System.Threading; -using Microsoft.Extensions.Options; using Microsoft.Extensions.Logging; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.IO; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Persistence.Repositories; +using Microsoft.Extensions.Options; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Mail; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Scoping; -using Umbraco.Core.Mail; +using Umbraco.Extensions; namespace Umbraco.Core.Services.Implement { @@ -87,13 +90,13 @@ namespace Umbraco.Core.Services.Implement var prevVersionDictionary = new Dictionary(); // see notes above - var id = Constants.Security.SuperUserId; + var id = Cms.Core.Constants.Security.SuperUserId; const int pagesz = 400; // load batches of 400 users do { // users are returned ordered by id, notifications are returned ordered by user id var users = _userService.GetNextUsers(id, pagesz).Where(x => x.IsApproved).ToList(); - var notifications = GetUsersNotifications(users.Select(x => x.Id), action, Enumerable.Empty(), Constants.ObjectTypes.Document).ToList(); + var notifications = GetUsersNotifications(users.Select(x => x.Id), action, Enumerable.Empty(), Cms.Core.Constants.ObjectTypes.Document).ToList(); if (notifications.Count == 0) break; var i = 0; diff --git a/src/Umbraco.Infrastructure/Services/Implement/PackagingService.cs b/src/Umbraco.Infrastructure/Services/Implement/PackagingService.cs index a286a1cf50..80aa25127b 100644 --- a/src/Umbraco.Infrastructure/Services/Implement/PackagingService.cs +++ b/src/Umbraco.Infrastructure/Services/Implement/PackagingService.cs @@ -4,12 +4,14 @@ using System.IO; using System.Linq; using System.Net.Http; using System.Threading.Tasks; -using Semver; -using Umbraco.Core.Events; -using Umbraco.Core.Hosting; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Packaging; -using Umbraco.Core.Packaging; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Packaging; +using Umbraco.Cms.Core.Packaging; +using Umbraco.Cms.Core.Semver; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; namespace Umbraco.Core.Services.Implement { @@ -46,7 +48,7 @@ namespace Umbraco.Core.Services.Implement public async Task FetchPackageFileAsync(Guid packageId, Version umbracoVersion, int userId) { //includeHidden = true because we don't care if it's hidden we want to get the file regardless - var url = $"{Constants.PackageRepository.RestApiBaseUrl}/{packageId}?version={umbracoVersion.ToString(3)}&includeHidden=true&asFile=true"; + var url = $"{Cms.Core.Constants.PackageRepository.RestApiBaseUrl}/{packageId}?version={umbracoVersion.ToString(3)}&includeHidden=true&asFile=true"; byte[] bytes; try { @@ -64,7 +66,7 @@ namespace Umbraco.Core.Services.Implement //successful if (bytes.Length > 0) { - var packagePath = _hostingEnvironment.MapPathContentRoot(Constants.SystemDirectories.Packages); + var packagePath = _hostingEnvironment.MapPathContentRoot(Cms.Core.Constants.SystemDirectories.Packages); // Check for package directory if (Directory.Exists(packagePath) == false) @@ -79,7 +81,7 @@ namespace Umbraco.Core.Services.Implement } } - _auditService.Add(AuditType.PackagerInstall, userId, -1, "Package", $"Package {packageId} fetched from {Constants.PackageRepository.DefaultRepositoryId}"); + _auditService.Add(AuditType.PackagerInstall, userId, -1, "Package", $"Package {packageId} fetched from {Cms.Core.Constants.PackageRepository.DefaultRepositoryId}"); return null; } @@ -89,7 +91,7 @@ namespace Umbraco.Core.Services.Implement public CompiledPackage GetCompiledPackageInfo(FileInfo packageFile) => _packageInstallation.ReadPackage(packageFile); - public IEnumerable InstallCompiledPackageFiles(PackageDefinition packageDefinition, FileInfo packageFile, int userId = Constants.Security.SuperUserId) + public IEnumerable InstallCompiledPackageFiles(PackageDefinition packageDefinition, FileInfo packageFile, int userId = Cms.Core.Constants.Security.SuperUserId) { if (packageDefinition == null) throw new ArgumentNullException(nameof(packageDefinition)); if (packageDefinition.Id == default) throw new ArgumentException("The package definition has not been persisted"); @@ -107,7 +109,7 @@ namespace Umbraco.Core.Services.Implement return files; } - public InstallationSummary InstallCompiledPackageData(PackageDefinition packageDefinition, FileInfo packageFile, int userId = Constants.Security.SuperUserId) + public InstallationSummary InstallCompiledPackageData(PackageDefinition packageDefinition, FileInfo packageFile, int userId = Cms.Core.Constants.Security.SuperUserId) { if (packageDefinition == null) throw new ArgumentNullException(nameof(packageDefinition)); if (packageDefinition.Id == default) throw new ArgumentException("The package definition has not been persisted"); @@ -130,7 +132,7 @@ namespace Umbraco.Core.Services.Implement return summary; } - public UninstallationSummary UninstallPackage(string packageName, int userId = Constants.Security.SuperUserId) + public UninstallationSummary UninstallPackage(string packageName, int userId = Cms.Core.Constants.Security.SuperUserId) { //this is ordered by descending version var allPackageVersions = GetInstalledPackageByName(packageName)?.ToList(); @@ -176,7 +178,7 @@ namespace Umbraco.Core.Services.Implement #region Created/Installed Package Repositories - public void DeleteCreatedPackage(int id, int userId = Constants.Security.SuperUserId) + public void DeleteCreatedPackage(int id, int userId = Cms.Core.Constants.Security.SuperUserId) { var package = GetCreatedPackageById(id); if (package == null) return; @@ -225,7 +227,7 @@ namespace Umbraco.Core.Services.Implement public bool SaveInstalledPackage(PackageDefinition definition) => _installedPackages.SavePackage(definition); - public void DeleteInstalledPackage(int packageId, int userId = Constants.Security.SuperUserId) + public void DeleteInstalledPackage(int packageId, int userId = Cms.Core.Constants.Security.SuperUserId) { var package = GetInstalledPackageById(packageId); if (package == null) return; diff --git a/src/Umbraco.Infrastructure/Services/Implement/PropertyValidationService.cs b/src/Umbraco.Infrastructure/Services/Implement/PropertyValidationService.cs index c08c1322d3..777c0ecd30 100644 --- a/src/Umbraco.Infrastructure/Services/Implement/PropertyValidationService.cs +++ b/src/Umbraco.Infrastructure/Services/Implement/PropertyValidationService.cs @@ -1,10 +1,12 @@ -using System.Linq; -using System; +using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; -using Umbraco.Core.Composing; -using Umbraco.Core.Models; -using Umbraco.Core.PropertyEditors; +using System.Linq; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; namespace Umbraco.Core.Services { diff --git a/src/Umbraco.Infrastructure/Services/Implement/PublicAccessService.cs b/src/Umbraco.Infrastructure/Services/Implement/PublicAccessService.cs index 2143d638fe..8fd87666bb 100644 --- a/src/Umbraco.Infrastructure/Services/Implement/PublicAccessService.cs +++ b/src/Umbraco.Infrastructure/Services/Implement/PublicAccessService.cs @@ -2,10 +2,13 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; -using Umbraco.Core.Events; -using Umbraco.Core.Models; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Persistence.Repositories; using Umbraco.Core.Scoping; +using Umbraco.Extensions; namespace Umbraco.Core.Services.Implement { diff --git a/src/Umbraco.Infrastructure/Services/Implement/RedirectUrlService.cs b/src/Umbraco.Infrastructure/Services/Implement/RedirectUrlService.cs index 640852b69e..b3649ada23 100644 --- a/src/Umbraco.Infrastructure/Services/Implement/RedirectUrlService.cs +++ b/src/Umbraco.Infrastructure/Services/Implement/RedirectUrlService.cs @@ -1,6 +1,10 @@ using System; using System.Collections.Generic; using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Events; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Repositories; diff --git a/src/Umbraco.Infrastructure/Services/Implement/RelationService.cs b/src/Umbraco.Infrastructure/Services/Implement/RelationService.cs index f00478b668..2327a1ccfb 100644 --- a/src/Umbraco.Infrastructure/Services/Implement/RelationService.cs +++ b/src/Umbraco.Infrastructure/Services/Implement/RelationService.cs @@ -2,11 +2,13 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; -using Umbraco.Core.Events; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Scoping; +using Umbraco.Extensions; namespace Umbraco.Core.Services.Implement { @@ -490,7 +492,7 @@ namespace Umbraco.Core.Services.Implement } _relationTypeRepository.Save(relationType); - Audit(AuditType.Save, Constants.Security.SuperUserId, relationType.Id, $"Saved relation type: {relationType.Name}"); + Audit(AuditType.Save, Cms.Core.Constants.Security.SuperUserId, relationType.Id, $"Saved relation type: {relationType.Name}"); scope.Complete(); saveEventArgs.CanCancel = false; scope.Events.Dispatch(SavedRelationType, this, saveEventArgs); diff --git a/src/Umbraco.Infrastructure/Services/Implement/RepositoryService.cs b/src/Umbraco.Infrastructure/Services/Implement/RepositoryService.cs index 3be66fea27..3ebb576f71 100644 --- a/src/Umbraco.Infrastructure/Services/Implement/RepositoryService.cs +++ b/src/Umbraco.Infrastructure/Services/Implement/RepositoryService.cs @@ -1,5 +1,8 @@ using System; using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Events; using Umbraco.Core.Persistence.Querying; using Umbraco.Core.Scoping; diff --git a/src/Umbraco.Infrastructure/Services/Implement/ScopeRepositoryService.cs b/src/Umbraco.Infrastructure/Services/Implement/ScopeRepositoryService.cs index 9e1cf94b19..95722d5e3b 100644 --- a/src/Umbraco.Infrastructure/Services/Implement/ScopeRepositoryService.cs +++ b/src/Umbraco.Infrastructure/Services/Implement/ScopeRepositoryService.cs @@ -1,4 +1,5 @@ using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.Events; using Umbraco.Core.Events; using Umbraco.Core.Scoping; diff --git a/src/Umbraco.Infrastructure/Services/Implement/ServerRegistrationService.cs b/src/Umbraco.Infrastructure/Services/Implement/ServerRegistrationService.cs index 14197762c6..ec55be9973 100644 --- a/src/Umbraco.Infrastructure/Services/Implement/ServerRegistrationService.cs +++ b/src/Umbraco.Infrastructure/Services/Implement/ServerRegistrationService.cs @@ -2,13 +2,16 @@ using System; using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; -using Umbraco.Core.Events; -using Umbraco.Core.Hosting; -using Umbraco.Core.Models; -using Umbraco.Core.Persistence.Repositories; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Sync; using Umbraco.Core.Persistence.Repositories.Implement; using Umbraco.Core.Scoping; -using Umbraco.Core.Sync; +using Umbraco.Extensions; namespace Umbraco.Core.Services.Implement { @@ -47,7 +50,7 @@ namespace Umbraco.Core.Services.Implement var serverIdentity = GetCurrentServerIdentity(); using (var scope = ScopeProvider.CreateScope()) { - scope.WriteLock(Constants.Locks.Servers); + scope.WriteLock(Cms.Core.Constants.Locks.Servers); ((ServerRegistrationRepository) _serverRegistrationRepository).ClearCache(); // ensure we have up-to-date cache @@ -98,7 +101,7 @@ namespace Umbraco.Core.Services.Implement using (var scope = ScopeProvider.CreateScope()) { - scope.WriteLock(Constants.Locks.Servers); + scope.WriteLock(Cms.Core.Constants.Locks.Servers); ((ServerRegistrationRepository) _serverRegistrationRepository).ClearCache(); // ensure we have up-to-date cache // ensure we have up-to-date cache @@ -119,7 +122,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope()) { - scope.WriteLock(Constants.Locks.Servers); + scope.WriteLock(Cms.Core.Constants.Locks.Servers); _serverRegistrationRepository.DeactiveStaleServers(staleTimeout); scope.Complete(); } @@ -138,7 +141,7 @@ namespace Umbraco.Core.Services.Implement { using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { - scope.ReadLock(Constants.Locks.Servers); + scope.ReadLock(Cms.Core.Constants.Locks.Servers); if (refresh) ((ServerRegistrationRepository) _serverRegistrationRepository).ClearCache(); return _serverRegistrationRepository.GetMany().Where(x => x.IsActive).ToArray(); // fast, cached // fast, cached } diff --git a/src/Umbraco.Infrastructure/Services/Implement/TagService.cs b/src/Umbraco.Infrastructure/Services/Implement/TagService.cs index a5161b22d6..725744c104 100644 --- a/src/Umbraco.Infrastructure/Services/Implement/TagService.cs +++ b/src/Umbraco.Infrastructure/Services/Implement/TagService.cs @@ -1,6 +1,10 @@ using System; using System.Collections.Generic; using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Events; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Repositories; diff --git a/src/Umbraco.Infrastructure/Services/Implement/UserService.cs b/src/Umbraco.Infrastructure/Services/Implement/UserService.cs index cae3c95b92..3893d90619 100644 --- a/src/Umbraco.Infrastructure/Services/Implement/UserService.cs +++ b/src/Umbraco.Infrastructure/Services/Implement/UserService.cs @@ -6,14 +6,17 @@ using System.Linq; using System.Linq.Expressions; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Events; -using Umbraco.Core.Models.Membership; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Persistence.Querying; -using Umbraco.Core.Persistence.Repositories; using Umbraco.Core.Persistence.Repositories.Implement; using Umbraco.Core.Scoping; +using Umbraco.Extensions; namespace Umbraco.Core.Services.Implement { @@ -358,7 +361,7 @@ namespace Umbraco.Core.Services.Implement /// public string GetDefaultMemberType() { - return Constants.Security.WriterGroupAlias; + return Cms.Core.Constants.Security.WriterGroupAlias; } /// diff --git a/src/Umbraco.Infrastructure/Suspendable.cs b/src/Umbraco.Infrastructure/Suspendable.cs index 33677062f1..e0bbedf1f9 100644 --- a/src/Umbraco.Infrastructure/Suspendable.cs +++ b/src/Umbraco.Infrastructure/Suspendable.cs @@ -1,4 +1,6 @@ using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; using Umbraco.Core; using Umbraco.Core.Cache; using Umbraco.Examine; diff --git a/src/Umbraco.Infrastructure/Sync/BatchedDatabaseServerMessenger.cs b/src/Umbraco.Infrastructure/Sync/BatchedDatabaseServerMessenger.cs index d1a9481f47..f18a1f3e09 100644 --- a/src/Umbraco.Infrastructure/Sync/BatchedDatabaseServerMessenger.cs +++ b/src/Umbraco.Infrastructure/Sync/BatchedDatabaseServerMessenger.cs @@ -4,13 +4,16 @@ using System.Linq; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using Newtonsoft.Json; -using Umbraco.Core.Cache; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Core.Logging; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Runtime; +using Umbraco.Cms.Core.Sync; +using Umbraco.Cms.Core.Web; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.Scoping; -using Umbraco.Web; +using Umbraco.Extensions; namespace Umbraco.Core.Sync { diff --git a/src/Umbraco.Infrastructure/Sync/DatabaseServerMessenger.cs b/src/Umbraco.Infrastructure/Sync/DatabaseServerMessenger.cs index 0b1a8340a2..b7b2c7e8ac 100644 --- a/src/Umbraco.Infrastructure/Sync/DatabaseServerMessenger.cs +++ b/src/Umbraco.Infrastructure/Sync/DatabaseServerMessenger.cs @@ -10,13 +10,17 @@ using Microsoft.Extensions.Options; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using NPoco; -using Umbraco.Core.Cache; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Core.Logging; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Runtime; +using Umbraco.Cms.Core.Sync; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.Scoping; +using Umbraco.Extensions; namespace Umbraco.Core.Sync { diff --git a/src/Umbraco.Infrastructure/Sync/RefreshInstruction.cs b/src/Umbraco.Infrastructure/Sync/RefreshInstruction.cs index 3038f95e65..a0c0b870ca 100644 --- a/src/Umbraco.Infrastructure/Sync/RefreshInstruction.cs +++ b/src/Umbraco.Infrastructure/Sync/RefreshInstruction.cs @@ -2,6 +2,8 @@ using System.Collections.Generic; using System.Linq; using Newtonsoft.Json; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Sync; using Umbraco.Core.Cache; namespace Umbraco.Core.Sync @@ -64,7 +66,7 @@ namespace Umbraco.Core.Sync /// /// /// When the refresh method is we know how many Ids are being refreshed so we know the instruction - /// count which will be taken into account when we store this count in the database. + /// count which will be taken into account when we store this count in the database. /// private RefreshInstruction(ICacheRefresher refresher, RefreshMethodType refreshType, string json, int idCount = 1) : this(refresher, refreshType) diff --git a/src/Umbraco.Infrastructure/Sync/RefreshInstructionEnvelope.cs b/src/Umbraco.Infrastructure/Sync/RefreshInstructionEnvelope.cs index 9cd442da2d..37ad0f8973 100644 --- a/src/Umbraco.Infrastructure/Sync/RefreshInstructionEnvelope.cs +++ b/src/Umbraco.Infrastructure/Sync/RefreshInstructionEnvelope.cs @@ -1,4 +1,6 @@ using System.Collections.Generic; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Sync; using Umbraco.Core.Cache; namespace Umbraco.Core.Sync diff --git a/src/Umbraco.Infrastructure/Sync/ServerMessengerBase.cs b/src/Umbraco.Infrastructure/Sync/ServerMessengerBase.cs index dfba90291b..dbbacb658e 100644 --- a/src/Umbraco.Infrastructure/Sync/ServerMessengerBase.cs +++ b/src/Umbraco.Infrastructure/Sync/ServerMessengerBase.cs @@ -4,6 +4,9 @@ using System.Linq; using Newtonsoft.Json; using Umbraco.Core.Cache; using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Sync; namespace Umbraco.Core.Sync { diff --git a/src/Umbraco.Infrastructure/TagQuery.cs b/src/Umbraco.Infrastructure/TagQuery.cs index 4a7ee8e7eb..23d5e3ec93 100644 --- a/src/Umbraco.Infrastructure/TagQuery.cs +++ b/src/Umbraco.Infrastructure/TagQuery.cs @@ -1,9 +1,12 @@ using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core.Mapping; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; using Umbraco.Core.Services; using Umbraco.Web.Models; diff --git a/src/Umbraco.Infrastructure/Trees/TreeRootNode.cs b/src/Umbraco.Infrastructure/Trees/TreeRootNode.cs index 386ff9e99b..9380934a20 100644 --- a/src/Umbraco.Infrastructure/Trees/TreeRootNode.cs +++ b/src/Umbraco.Infrastructure/Trees/TreeRootNode.cs @@ -1,6 +1,8 @@ using System.Globalization; using System.Linq; using System.Runtime.Serialization; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Trees; namespace Umbraco.Web.Models.Trees { @@ -26,7 +28,7 @@ namespace Umbraco.Web.Models.Trees [DataContract(Name = "node", Namespace = "")] public sealed class TreeRootNode : TreeNode { - private static readonly string RootId = Core.Constants.System.RootString; + private static readonly string RootId = Constants.System.RootString; private bool _isGroup; private bool _isSingleNodeTree; diff --git a/src/Umbraco.Infrastructure/WebAssets/BackOfficeJavaScriptInitializer.cs b/src/Umbraco.Infrastructure/WebAssets/BackOfficeJavaScriptInitializer.cs index 77db7bcbfd..43ab371564 100644 --- a/src/Umbraco.Infrastructure/WebAssets/BackOfficeJavaScriptInitializer.cs +++ b/src/Umbraco.Infrastructure/WebAssets/BackOfficeJavaScriptInitializer.cs @@ -1,10 +1,9 @@ using System.Collections.Generic; using System.Text; using System.Text.RegularExpressions; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; namespace Umbraco.Web.WebAssets { diff --git a/src/Umbraco.Infrastructure/WebAssets/BackOfficeWebAssets.cs b/src/Umbraco.Infrastructure/WebAssets/BackOfficeWebAssets.cs index 93250ef981..040810998b 100644 --- a/src/Umbraco.Infrastructure/WebAssets/BackOfficeWebAssets.cs +++ b/src/Umbraco.Infrastructure/WebAssets/BackOfficeWebAssets.cs @@ -4,14 +4,14 @@ using System.Linq; using Microsoft.Extensions.Options; using Newtonsoft.Json; using Newtonsoft.Json.Linq; -using Umbraco.Core; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; -using Umbraco.Core.Manifest; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.WebAssets; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Manifest; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.WebAssets; +using Umbraco.Extensions; namespace Umbraco.Web.WebAssets { diff --git a/src/Umbraco.Infrastructure/WebAssets/PropertyEditorAssetAttribute.cs b/src/Umbraco.Infrastructure/WebAssets/PropertyEditorAssetAttribute.cs index 74bb792653..14d93f1d87 100644 --- a/src/Umbraco.Infrastructure/WebAssets/PropertyEditorAssetAttribute.cs +++ b/src/Umbraco.Infrastructure/WebAssets/PropertyEditorAssetAttribute.cs @@ -1,5 +1,5 @@ using System; -using Umbraco.Core.WebAssets; +using Umbraco.Cms.Core.WebAssets; namespace Umbraco.Web.WebAssets { diff --git a/src/Umbraco.Infrastructure/WebAssets/RuntimeMinifierExtensions.cs b/src/Umbraco.Infrastructure/WebAssets/RuntimeMinifierExtensions.cs index cc3be4d785..37a323b4e6 100644 --- a/src/Umbraco.Infrastructure/WebAssets/RuntimeMinifierExtensions.cs +++ b/src/Umbraco.Infrastructure/WebAssets/RuntimeMinifierExtensions.cs @@ -1,9 +1,9 @@ using System; using System.Text; using System.Threading.Tasks; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Core.WebAssets; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.WebAssets; namespace Umbraco.Web.WebAssets { diff --git a/src/Umbraco.Infrastructure/WebAssets/ServerVariablesParser.cs b/src/Umbraco.Infrastructure/WebAssets/ServerVariablesParser.cs index ba43667fbe..699e8171a2 100644 --- a/src/Umbraco.Infrastructure/WebAssets/ServerVariablesParser.cs +++ b/src/Umbraco.Infrastructure/WebAssets/ServerVariablesParser.cs @@ -1,6 +1,7 @@ using System.Collections.Generic; using System.Threading.Tasks; using Newtonsoft.Json.Linq; +using Umbraco.Cms.Core.Events; using Umbraco.Core.Events; namespace Umbraco.Web.WebAssets diff --git a/src/Umbraco.Infrastructure/WebAssets/ServerVariablesParsing.cs b/src/Umbraco.Infrastructure/WebAssets/ServerVariablesParsing.cs index 2fae2b13e0..8b921dc473 100644 --- a/src/Umbraco.Infrastructure/WebAssets/ServerVariablesParsing.cs +++ b/src/Umbraco.Infrastructure/WebAssets/ServerVariablesParsing.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using Umbraco.Cms.Core.Events; using Umbraco.Core.Events; namespace Umbraco.Web.WebAssets diff --git a/src/Umbraco.Infrastructure/WebAssets/WebAssetsComponent.cs b/src/Umbraco.Infrastructure/WebAssets/WebAssetsComponent.cs index 54ba82a1fc..15aefbfbcd 100644 --- a/src/Umbraco.Infrastructure/WebAssets/WebAssetsComponent.cs +++ b/src/Umbraco.Infrastructure/WebAssets/WebAssetsComponent.cs @@ -1,4 +1,4 @@ -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; namespace Umbraco.Web.WebAssets { diff --git a/src/Umbraco.Infrastructure/WebAssets/WebAssetsComposer.cs b/src/Umbraco.Infrastructure/WebAssets/WebAssetsComposer.cs index 5db66fdf78..15d3388017 100644 --- a/src/Umbraco.Infrastructure/WebAssets/WebAssetsComposer.cs +++ b/src/Umbraco.Infrastructure/WebAssets/WebAssetsComposer.cs @@ -1,5 +1,6 @@ -using Umbraco.Core.DependencyInjection; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.DependencyInjection; +using Umbraco.Extensions; namespace Umbraco.Web.WebAssets { diff --git a/src/Umbraco.ModelsBuilder.Embedded/ApiVersion.cs b/src/Umbraco.ModelsBuilder.Embedded/ApiVersion.cs index 22347edd60..14f4478d24 100644 --- a/src/Umbraco.ModelsBuilder.Embedded/ApiVersion.cs +++ b/src/Umbraco.ModelsBuilder.Embedded/ApiVersion.cs @@ -1,8 +1,8 @@ using System; using System.Reflection; -using Semver; +using Umbraco.Cms.Core.Semver; -namespace Umbraco.ModelsBuilder.Embedded +namespace Umbraco.Cms.ModelsBuilder.Embedded { /// /// Manages API version handshake between client and server. diff --git a/src/Umbraco.ModelsBuilder.Embedded/BackOffice/ContentTypeModelValidator.cs b/src/Umbraco.ModelsBuilder.Embedded/BackOffice/ContentTypeModelValidator.cs index 023911d518..9b0e87247e 100644 --- a/src/Umbraco.ModelsBuilder.Embedded/BackOffice/ContentTypeModelValidator.cs +++ b/src/Umbraco.ModelsBuilder.Embedded/BackOffice/ContentTypeModelValidator.cs @@ -1,8 +1,8 @@ using Microsoft.Extensions.Options; -using Umbraco.Core.Configuration.Models; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models.ContentEditing; -namespace Umbraco.ModelsBuilder.Embedded.BackOffice +namespace Umbraco.Cms.ModelsBuilder.Embedded.BackOffice { /// /// Used to validate the aliases for the content type when MB is enabled to ensure that diff --git a/src/Umbraco.ModelsBuilder.Embedded/BackOffice/ContentTypeModelValidatorBase.cs b/src/Umbraco.ModelsBuilder.Embedded/BackOffice/ContentTypeModelValidatorBase.cs index c34f4516e4..3978b54648 100644 --- a/src/Umbraco.ModelsBuilder.Embedded/BackOffice/ContentTypeModelValidatorBase.cs +++ b/src/Umbraco.ModelsBuilder.Embedded/BackOffice/ContentTypeModelValidatorBase.cs @@ -3,14 +3,14 @@ using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Web.Editors; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Editors; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Extensions; -namespace Umbraco.ModelsBuilder.Embedded.BackOffice +namespace Umbraco.Cms.ModelsBuilder.Embedded.BackOffice { public abstract class ContentTypeModelValidatorBase : EditorValidator where TModel : ContentTypeSave diff --git a/src/Umbraco.ModelsBuilder.Embedded/BackOffice/DashboardReport.cs b/src/Umbraco.ModelsBuilder.Embedded/BackOffice/DashboardReport.cs index 6425673916..940ec1461f 100644 --- a/src/Umbraco.ModelsBuilder.Embedded/BackOffice/DashboardReport.cs +++ b/src/Umbraco.ModelsBuilder.Embedded/BackOffice/DashboardReport.cs @@ -1,11 +1,11 @@ using System.Text; using Microsoft.Extensions.Options; -using Umbraco.Configuration; -using Umbraco.Core; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.ModelsBuilder.Embedded.BackOffice +namespace Umbraco.Cms.ModelsBuilder.Embedded.BackOffice { internal class DashboardReport { diff --git a/src/Umbraco.ModelsBuilder.Embedded/BackOffice/MediaTypeModelValidator.cs b/src/Umbraco.ModelsBuilder.Embedded/BackOffice/MediaTypeModelValidator.cs index 4ccdc1b362..552c3f143c 100644 --- a/src/Umbraco.ModelsBuilder.Embedded/BackOffice/MediaTypeModelValidator.cs +++ b/src/Umbraco.ModelsBuilder.Embedded/BackOffice/MediaTypeModelValidator.cs @@ -1,8 +1,8 @@ using Microsoft.Extensions.Options; -using Umbraco.Core.Configuration.Models; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models.ContentEditing; -namespace Umbraco.ModelsBuilder.Embedded.BackOffice +namespace Umbraco.Cms.ModelsBuilder.Embedded.BackOffice { /// /// Used to validate the aliases for the content type when MB is enabled to ensure that diff --git a/src/Umbraco.ModelsBuilder.Embedded/BackOffice/MemberTypeModelValidator.cs b/src/Umbraco.ModelsBuilder.Embedded/BackOffice/MemberTypeModelValidator.cs index 9a735631ff..283b8a8d9d 100644 --- a/src/Umbraco.ModelsBuilder.Embedded/BackOffice/MemberTypeModelValidator.cs +++ b/src/Umbraco.ModelsBuilder.Embedded/BackOffice/MemberTypeModelValidator.cs @@ -1,8 +1,8 @@ using Microsoft.Extensions.Options; -using Umbraco.Core.Configuration.Models; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models.ContentEditing; -namespace Umbraco.ModelsBuilder.Embedded.BackOffice +namespace Umbraco.Cms.ModelsBuilder.Embedded.BackOffice { /// /// Used to validate the aliases for the content type when MB is enabled to ensure that diff --git a/src/Umbraco.ModelsBuilder.Embedded/BackOffice/ModelsBuilderDashboardController.cs b/src/Umbraco.ModelsBuilder.Embedded/BackOffice/ModelsBuilderDashboardController.cs index f242854b3f..8e7a4b989c 100644 --- a/src/Umbraco.ModelsBuilder.Embedded/BackOffice/ModelsBuilderDashboardController.cs +++ b/src/Umbraco.ModelsBuilder.Embedded/BackOffice/ModelsBuilderDashboardController.cs @@ -3,14 +3,14 @@ using System.Runtime.Serialization; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Options; -using Umbraco.Configuration; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.ModelsBuilder.Embedded.Building; -using Umbraco.Web.BackOffice.Controllers; -using Umbraco.Web.Common.Authorization; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.ModelsBuilder.Embedded.Building; +using Umbraco.Cms.Web.BackOffice.Controllers; +using Umbraco.Cms.Web.Common.Authorization; +using Umbraco.Extensions; -namespace Umbraco.ModelsBuilder.Embedded.BackOffice +namespace Umbraco.Cms.ModelsBuilder.Embedded.BackOffice { /// /// API controller for use in the Umbraco back office with Angular resources diff --git a/src/Umbraco.ModelsBuilder.Embedded/Building/Builder.cs b/src/Umbraco.ModelsBuilder.Embedded/Building/Builder.cs index aa7ab40ba5..2a59aa01a1 100644 --- a/src/Umbraco.ModelsBuilder.Embedded/Building/Builder.cs +++ b/src/Umbraco.ModelsBuilder.Embedded/Building/Builder.cs @@ -1,11 +1,11 @@ using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Configuration.Models; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.ModelsBuilder.Embedded.Building +namespace Umbraco.Cms.ModelsBuilder.Embedded.Building { // NOTE // The idea was to have different types of builder, because I wanted to experiment with @@ -28,10 +28,13 @@ namespace Umbraco.ModelsBuilder.Embedded.Building { "System", "System.Linq.Expressions", - "Umbraco.Core.Models.PublishedContent", - "Umbraco.Web.PublishedCache", - "Umbraco.ModelsBuilder.Embedded", - "Umbraco.Core" + "Umbraco.Cms.Core.Models.PublishedContent", + "Umbraco.Web.PublishedCache", // Todo: Remove/Edit this once namespaces has been aligned. + "Umbraco.Cms.Core.PublishedCache", + "Umbraco.Cms.ModelsBuilder.Embedded", + "Umbraco.Cms.Core", + "Umbraco.Core", // TODO: Remove once namespace is gone, after which BuilderTests needs to be adjusted. + "Umbraco.Extensions" }; /// diff --git a/src/Umbraco.ModelsBuilder.Embedded/Building/ModelsGenerator.cs b/src/Umbraco.ModelsBuilder.Embedded/Building/ModelsGenerator.cs index 9431b0141a..5777dc1f7d 100644 --- a/src/Umbraco.ModelsBuilder.Embedded/Building/ModelsGenerator.cs +++ b/src/Umbraco.ModelsBuilder.Embedded/Building/ModelsGenerator.cs @@ -1,12 +1,11 @@ using System.IO; using System.Text; using Microsoft.Extensions.Options; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Extensions; -namespace Umbraco.ModelsBuilder.Embedded.Building +namespace Umbraco.Cms.ModelsBuilder.Embedded.Building { public class ModelsGenerator { diff --git a/src/Umbraco.ModelsBuilder.Embedded/Building/PropertyModel.cs b/src/Umbraco.ModelsBuilder.Embedded/Building/PropertyModel.cs index af5445b175..c07affd61d 100644 --- a/src/Umbraco.ModelsBuilder.Embedded/Building/PropertyModel.cs +++ b/src/Umbraco.ModelsBuilder.Embedded/Building/PropertyModel.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; -namespace Umbraco.ModelsBuilder.Embedded.Building +namespace Umbraco.Cms.ModelsBuilder.Embedded.Building { /// /// Represents a model property. diff --git a/src/Umbraco.ModelsBuilder.Embedded/Building/TextBuilder.cs b/src/Umbraco.ModelsBuilder.Embedded/Building/TextBuilder.cs index 8328afb822..077a84bcfa 100644 --- a/src/Umbraco.ModelsBuilder.Embedded/Building/TextBuilder.cs +++ b/src/Umbraco.ModelsBuilder.Embedded/Building/TextBuilder.cs @@ -3,9 +3,9 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; -using Umbraco.Core.Configuration.Models; +using Umbraco.Cms.Core.Configuration.Models; -namespace Umbraco.ModelsBuilder.Embedded.Building +namespace Umbraco.Cms.ModelsBuilder.Embedded.Building { /// /// Implements a builder that works by writing text. @@ -194,7 +194,7 @@ namespace Umbraco.ModelsBuilder.Embedded.Building sb.Append("\t\tprivate IPublishedValueFallback _publishedValueFallback;"); // write the ctor - sb.AppendFormat("\n\n\t\t// ctor\n\t\tpublic {0}(IPublished{1} content, IPublishedValueFallback publishedValueFallback)\n\t\t\t: base(content)\n\t\t{{\n\t\t\t_publishedValueFallback = publishedValueFallback; \n\t\t}}\n\n", + sb.AppendFormat("\n\n\t\t// ctor\n\t\tpublic {0}(IPublished{1} content, IPublishedValueFallback publishedValueFallback)\n\t\t\t: base(content)\n\t\t{{\n\t\t\t_publishedValueFallback = publishedValueFallback;\n\t\t}}\n\n", type.ClrName, type.IsElement ? "Element" : "Content"); // write the properties diff --git a/src/Umbraco.ModelsBuilder.Embedded/Building/TextHeaderWriter.cs b/src/Umbraco.ModelsBuilder.Embedded/Building/TextHeaderWriter.cs index 0ffad1c5bc..6579e2a541 100644 --- a/src/Umbraco.ModelsBuilder.Embedded/Building/TextHeaderWriter.cs +++ b/src/Umbraco.ModelsBuilder.Embedded/Building/TextHeaderWriter.cs @@ -1,6 +1,6 @@ using System.Text; -namespace Umbraco.ModelsBuilder.Embedded.Building +namespace Umbraco.Cms.ModelsBuilder.Embedded.Building { internal static class TextHeaderWriter { diff --git a/src/Umbraco.ModelsBuilder.Embedded/Building/TypeModel.cs b/src/Umbraco.ModelsBuilder.Embedded/Building/TypeModel.cs index 95356cf3ff..82216fa49e 100644 --- a/src/Umbraco.ModelsBuilder.Embedded/Building/TypeModel.cs +++ b/src/Umbraco.ModelsBuilder.Embedded/Building/TypeModel.cs @@ -1,9 +1,9 @@ using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.PublishedContent; -namespace Umbraco.ModelsBuilder.Embedded.Building +namespace Umbraco.Cms.ModelsBuilder.Embedded.Building { /// /// Represents a model. diff --git a/src/Umbraco.ModelsBuilder.Embedded/Building/TypeModelHasher.cs b/src/Umbraco.ModelsBuilder.Embedded/Building/TypeModelHasher.cs index c5b053ca07..d4cd4bf8ec 100644 --- a/src/Umbraco.ModelsBuilder.Embedded/Building/TypeModelHasher.cs +++ b/src/Umbraco.ModelsBuilder.Embedded/Building/TypeModelHasher.cs @@ -1,11 +1,9 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; -using System.Security.Cryptography; using System.Text; -using Umbraco.Core; +using Umbraco.Extensions; -namespace Umbraco.ModelsBuilder.Embedded.Building +namespace Umbraco.Cms.ModelsBuilder.Embedded.Building { internal class TypeModelHasher { diff --git a/src/Umbraco.ModelsBuilder.Embedded/DependencyInjection/UmbracoBuilderExtensions.cs b/src/Umbraco.ModelsBuilder.Embedded/DependencyInjection/UmbracoBuilderExtensions.cs index 852cde55fc..5209683e8e 100644 --- a/src/Umbraco.ModelsBuilder.Embedded/DependencyInjection/UmbracoBuilderExtensions.cs +++ b/src/Umbraco.ModelsBuilder.Embedded/DependencyInjection/UmbracoBuilderExtensions.cs @@ -1,18 +1,15 @@ -using System; -using System.Collections.Generic; -using System.Linq; using Microsoft.AspNetCore.Mvc.Razor; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; using Microsoft.Extensions.Options; -using Umbraco.Core.Composing; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.DependencyInjection; -using Umbraco.Core.Events; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.ModelsBuilder.Embedded.Building; -using Umbraco.Web.Common.ModelBinders; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.DependencyInjection; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.ModelsBuilder.Embedded; +using Umbraco.Cms.ModelsBuilder.Embedded.Building; +using Umbraco.Cms.Web.Common.ModelBinders; using Umbraco.Web.WebAssets; /* @@ -73,7 +70,7 @@ using Umbraco.Web.WebAssets; * graph includes all of the above mentioned services, all the way up to the RazorProjectEngine and it's LazyMetadataReferenceFeature. */ -namespace Umbraco.ModelsBuilder.Embedded.DependencyInjection +namespace Umbraco.Extensions { /// /// Extension methods for for the common Umbraco functionality diff --git a/src/Umbraco.ModelsBuilder.Embedded/DisableModelsBuilderNotificationHandler.cs b/src/Umbraco.ModelsBuilder.Embedded/DisableModelsBuilderNotificationHandler.cs index b455bbbf61..060e0f4bfa 100644 --- a/src/Umbraco.ModelsBuilder.Embedded/DisableModelsBuilderNotificationHandler.cs +++ b/src/Umbraco.ModelsBuilder.Embedded/DisableModelsBuilderNotificationHandler.cs @@ -1,9 +1,9 @@ -using Umbraco.Core.Events; -using Umbraco.ModelsBuilder.Embedded.BackOffice; -using Umbraco.ModelsBuilder.Embedded.DependencyInjection; -using Umbraco.Web.Features; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Features; +using Umbraco.Cms.ModelsBuilder.Embedded.BackOffice; +using Umbraco.Extensions; -namespace Umbraco.ModelsBuilder.Embedded +namespace Umbraco.Cms.ModelsBuilder.Embedded { /// /// Used in conjunction with diff --git a/src/Umbraco.ModelsBuilder.Embedded/ImplementPropertyTypeAttribute.cs b/src/Umbraco.ModelsBuilder.Embedded/ImplementPropertyTypeAttribute.cs index 6f52a7faa9..0d132c2c0a 100644 --- a/src/Umbraco.ModelsBuilder.Embedded/ImplementPropertyTypeAttribute.cs +++ b/src/Umbraco.ModelsBuilder.Embedded/ImplementPropertyTypeAttribute.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.ModelsBuilder.Embedded +namespace Umbraco.Cms.ModelsBuilder.Embedded { /// /// Indicates that a property implements a given property alias. diff --git a/src/Umbraco.ModelsBuilder.Embedded/LiveModelsProvider.cs b/src/Umbraco.ModelsBuilder.Embedded/LiveModelsProvider.cs index eafc006c26..eb8249c0ba 100644 --- a/src/Umbraco.ModelsBuilder.Embedded/LiveModelsProvider.cs +++ b/src/Umbraco.ModelsBuilder.Embedded/LiveModelsProvider.cs @@ -2,15 +2,14 @@ using System; using System.Threading; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; -using Umbraco.Configuration; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Events; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Runtime; +using Umbraco.Cms.ModelsBuilder.Embedded.Building; using Umbraco.Extensions; -using Umbraco.ModelsBuilder.Embedded.Building; -using Umbraco.Web.Cache; -namespace Umbraco.ModelsBuilder.Embedded +namespace Umbraco.Cms.ModelsBuilder.Embedded { // supports LiveAppData - but not PureLive public sealed class LiveModelsProvider : INotificationHandler, INotificationHandler diff --git a/src/Umbraco.ModelsBuilder.Embedded/ModelsBuilderAssemblyAttribute.cs b/src/Umbraco.ModelsBuilder.Embedded/ModelsBuilderAssemblyAttribute.cs index 7570c0b5b2..1bf85ff38f 100644 --- a/src/Umbraco.ModelsBuilder.Embedded/ModelsBuilderAssemblyAttribute.cs +++ b/src/Umbraco.ModelsBuilder.Embedded/ModelsBuilderAssemblyAttribute.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.ModelsBuilder.Embedded +namespace Umbraco.Cms.ModelsBuilder.Embedded { /// /// Indicates that an Assembly is a Models Builder assembly. diff --git a/src/Umbraco.ModelsBuilder.Embedded/ModelsBuilderDashboard.cs b/src/Umbraco.ModelsBuilder.Embedded/ModelsBuilderDashboard.cs index 867b22d14b..56ee0b983d 100644 --- a/src/Umbraco.ModelsBuilder.Embedded/ModelsBuilderDashboard.cs +++ b/src/Umbraco.ModelsBuilder.Embedded/ModelsBuilderDashboard.cs @@ -1,8 +1,8 @@ using System; -using Umbraco.Core.Composing; -using Umbraco.Core.Dashboards; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Dashboards; -namespace Umbraco.ModelsBuilder.Embedded +namespace Umbraco.Cms.ModelsBuilder.Embedded { [Weight(40)] public class ModelsBuilderDashboard : IDashboard diff --git a/src/Umbraco.ModelsBuilder.Embedded/ModelsBuilderNotificationHandler.cs b/src/Umbraco.ModelsBuilder.Embedded/ModelsBuilderNotificationHandler.cs index 0d6d1cc668..a8b9ac3b14 100644 --- a/src/Umbraco.ModelsBuilder.Embedded/ModelsBuilderNotificationHandler.cs +++ b/src/Umbraco.ModelsBuilder.Embedded/ModelsBuilderNotificationHandler.cs @@ -3,22 +3,21 @@ using System.Collections.Generic; using System.Reflection; using Microsoft.AspNetCore.Routing; using Microsoft.Extensions.Options; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Events; -using Umbraco.Core.IO; -using Umbraco.Core.Models; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.ModelsBuilder.Embedded.BackOffice; +using Umbraco.Cms.Web.Common.ModelBinders; using Umbraco.Core.Services.Implement; -using Umbraco.Core.Strings; using Umbraco.Extensions; -using Umbraco.ModelsBuilder.Embedded.BackOffice; -using Umbraco.Web.Common.ModelBinders; using Umbraco.Web.WebAssets; -namespace Umbraco.ModelsBuilder.Embedded +namespace Umbraco.Cms.ModelsBuilder.Embedded { - /// /// Handles and notifications to initialize MB /// diff --git a/src/Umbraco.ModelsBuilder.Embedded/ModelsGenerationError.cs b/src/Umbraco.ModelsBuilder.Embedded/ModelsGenerationError.cs index 25f48a19cc..47e4579a59 100644 --- a/src/Umbraco.ModelsBuilder.Embedded/ModelsGenerationError.cs +++ b/src/Umbraco.ModelsBuilder.Embedded/ModelsGenerationError.cs @@ -2,11 +2,11 @@ using System; using System.IO; using System.Text; using Microsoft.Extensions.Options; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Extensions; -namespace Umbraco.ModelsBuilder.Embedded +namespace Umbraco.Cms.ModelsBuilder.Embedded { public sealed class ModelsGenerationError { diff --git a/src/Umbraco.ModelsBuilder.Embedded/OutOfDateModelsStatus.cs b/src/Umbraco.ModelsBuilder.Embedded/OutOfDateModelsStatus.cs index 83f105a486..dcddd9ff80 100644 --- a/src/Umbraco.ModelsBuilder.Embedded/OutOfDateModelsStatus.cs +++ b/src/Umbraco.ModelsBuilder.Embedded/OutOfDateModelsStatus.cs @@ -1,12 +1,12 @@ using System.IO; using Microsoft.Extensions.Options; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Events; -using Umbraco.Core.Hosting; -using Umbraco.Web.Cache; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Extensions; -namespace Umbraco.ModelsBuilder.Embedded +namespace Umbraco.Cms.ModelsBuilder.Embedded { /// /// Used to track if ModelsBuilder models are out of date/stale diff --git a/src/Umbraco.ModelsBuilder.Embedded/PublishedElementExtensions.cs b/src/Umbraco.ModelsBuilder.Embedded/PublishedElementExtensions.cs index 0611d466dc..29ca0c86e2 100644 --- a/src/Umbraco.ModelsBuilder.Embedded/PublishedElementExtensions.cs +++ b/src/Umbraco.ModelsBuilder.Embedded/PublishedElementExtensions.cs @@ -1,8 +1,9 @@ using System; using System.Linq.Expressions; using System.Reflection; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.ModelsBuilder.Embedded; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.ModelsBuilder.Embedded; +using Umbraco.Extensions; // same namespace as original Umbraco.Web PublishedElementExtensions // ReSharper disable once CheckNamespace diff --git a/src/Umbraco.ModelsBuilder.Embedded/PublishedModelUtility.cs b/src/Umbraco.ModelsBuilder.Embedded/PublishedModelUtility.cs index fd1d5128a0..e990ea5030 100644 --- a/src/Umbraco.ModelsBuilder.Embedded/PublishedModelUtility.cs +++ b/src/Umbraco.ModelsBuilder.Embedded/PublishedModelUtility.cs @@ -1,10 +1,10 @@ using System; using System.Linq; using System.Linq.Expressions; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Web.PublishedCache; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; -namespace Umbraco.ModelsBuilder.Embedded +namespace Umbraco.Cms.ModelsBuilder.Embedded { /// /// This is called from within the generated model classes @@ -29,7 +29,7 @@ namespace Umbraco.ModelsBuilder.Embedded // var contentType = PublishedContentType.Get(itemType, alias); // // etc... //} - + public static IPublishedContentType GetModelContentType(IPublishedSnapshotAccessor publishedSnapshotAccessor, PublishedItemType itemType, string alias) { var facade = publishedSnapshotAccessor.PublishedSnapshot; diff --git a/src/Umbraco.ModelsBuilder.Embedded/PureLiveModelFactory.cs b/src/Umbraco.ModelsBuilder.Embedded/PureLiveModelFactory.cs index 41a0ac86f9..ef01d41b2e 100644 --- a/src/Umbraco.ModelsBuilder.Embedded/PureLiveModelFactory.cs +++ b/src/Umbraco.ModelsBuilder.Embedded/PureLiveModelFactory.cs @@ -10,19 +10,19 @@ using System.Text; using System.Text.RegularExpressions; using System.Threading; using Microsoft.AspNetCore.Mvc.ApplicationParts; -using Microsoft.CodeAnalysis; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Core.Logging; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.ModelsBuilder.Embedded.Building; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.ModelsBuilder.Embedded.Building; +using Umbraco.Extensions; using File = System.IO.File; -namespace Umbraco.ModelsBuilder.Embedded +namespace Umbraco.Cms.ModelsBuilder.Embedded { internal class PureLiveModelFactory : ILivePublishedModelFactory, IRegisteredObject { diff --git a/src/Umbraco.ModelsBuilder.Embedded/RefreshingRazorViewEngine.cs b/src/Umbraco.ModelsBuilder.Embedded/RefreshingRazorViewEngine.cs index ad82d1d7b3..0d6d37a119 100644 --- a/src/Umbraco.ModelsBuilder.Embedded/RefreshingRazorViewEngine.cs +++ b/src/Umbraco.ModelsBuilder.Embedded/RefreshingRazorViewEngine.cs @@ -60,7 +60,7 @@ using Microsoft.AspNetCore.Mvc.ViewEngines; * graph includes all of the above mentioned services, all the way up to the RazorProjectEngine and it's LazyMetadataReferenceFeature. */ -namespace Umbraco.ModelsBuilder.Embedded +namespace Umbraco.Cms.ModelsBuilder.Embedded { /// /// Custom that wraps aspnetcore's default implementation diff --git a/src/Umbraco.ModelsBuilder.Embedded/RoslynCompiler.cs b/src/Umbraco.ModelsBuilder.Embedded/RoslynCompiler.cs index 37aeb75b35..2009e74638 100644 --- a/src/Umbraco.ModelsBuilder.Embedded/RoslynCompiler.cs +++ b/src/Umbraco.ModelsBuilder.Embedded/RoslynCompiler.cs @@ -7,7 +7,7 @@ using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.Text; -namespace Umbraco.ModelsBuilder.Embedded +namespace Umbraco.Cms.ModelsBuilder.Embedded { public class RoslynCompiler { diff --git a/src/Umbraco.ModelsBuilder.Embedded/TypeExtensions.cs b/src/Umbraco.ModelsBuilder.Embedded/TypeExtensions.cs index 1f270a80a6..29e929134e 100644 --- a/src/Umbraco.ModelsBuilder.Embedded/TypeExtensions.cs +++ b/src/Umbraco.ModelsBuilder.Embedded/TypeExtensions.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.ModelsBuilder.Embedded +namespace Umbraco.Cms.ModelsBuilder.Embedded { internal static class TypeExtensions { diff --git a/src/Umbraco.ModelsBuilder.Embedded/Umbraco.ModelsBuilder.Embedded.csproj b/src/Umbraco.ModelsBuilder.Embedded/Umbraco.ModelsBuilder.Embedded.csproj index 3d24bd879a..4b59b981f9 100644 --- a/src/Umbraco.ModelsBuilder.Embedded/Umbraco.ModelsBuilder.Embedded.csproj +++ b/src/Umbraco.ModelsBuilder.Embedded/Umbraco.ModelsBuilder.Embedded.csproj @@ -3,6 +3,8 @@ net5.0 Library + latest + Umbraco.Cms.ModelsBuilder.Embedded diff --git a/src/Umbraco.ModelsBuilder.Embedded/UmbracoAssemblyLoadContext.cs b/src/Umbraco.ModelsBuilder.Embedded/UmbracoAssemblyLoadContext.cs index d89714adbe..eb4af946f7 100644 --- a/src/Umbraco.ModelsBuilder.Embedded/UmbracoAssemblyLoadContext.cs +++ b/src/Umbraco.ModelsBuilder.Embedded/UmbracoAssemblyLoadContext.cs @@ -1,7 +1,7 @@ using System.Reflection; using System.Runtime.Loader; -namespace Umbraco.ModelsBuilder.Embedded +namespace Umbraco.Cms.ModelsBuilder.Embedded { internal class UmbracoAssemblyLoadContext : AssemblyLoadContext { diff --git a/src/Umbraco.ModelsBuilder.Embedded/UmbracoServices.cs b/src/Umbraco.ModelsBuilder.Embedded/UmbracoServices.cs index 86954a8a85..c4a68c66c3 100644 --- a/src/Umbraco.ModelsBuilder.Embedded/UmbracoServices.cs +++ b/src/Umbraco.ModelsBuilder.Embedded/UmbracoServices.cs @@ -1,15 +1,15 @@ using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core; -using Umbraco.Core.Exceptions; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; -using Umbraco.ModelsBuilder.Embedded.Building; +using Umbraco.Cms.Core.Exceptions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.ModelsBuilder.Embedded.Building; +using Umbraco.Extensions; -namespace Umbraco.ModelsBuilder.Embedded +namespace Umbraco.Cms.ModelsBuilder.Embedded { public sealed class UmbracoServices diff --git a/src/Umbraco.Persistence.SqlCe/SqlCeBulkSqlInsertProvider.cs b/src/Umbraco.Persistence.SqlCe/SqlCeBulkSqlInsertProvider.cs index f22c86f13b..fe80a089fb 100644 --- a/src/Umbraco.Persistence.SqlCe/SqlCeBulkSqlInsertProvider.cs +++ b/src/Umbraco.Persistence.SqlCe/SqlCeBulkSqlInsertProvider.cs @@ -4,10 +4,10 @@ using System.Data; using System.Data.SqlServerCe; using System.Linq; using NPoco; -using Umbraco.Core; using Umbraco.Core.Persistence; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Persistence.SqlCe +namespace Umbraco.Cms.Persistence.SqlCe { public class SqlCeBulkSqlInsertProvider : IBulkSqlInsertProvider { diff --git a/src/Umbraco.Persistence.SqlCe/SqlCeEmbeddedDatabaseCreator.cs b/src/Umbraco.Persistence.SqlCe/SqlCeEmbeddedDatabaseCreator.cs index 44cfd81d11..6af956a9d8 100644 --- a/src/Umbraco.Persistence.SqlCe/SqlCeEmbeddedDatabaseCreator.cs +++ b/src/Umbraco.Persistence.SqlCe/SqlCeEmbeddedDatabaseCreator.cs @@ -1,8 +1,8 @@ -using Umbraco.Core; -using Umbraco.Core.Migrations.Install; +using Umbraco.Core.Migrations.Install; using Umbraco.Core.Persistence; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Persistence.SqlCe +namespace Umbraco.Cms.Persistence.SqlCe { public class SqlCeEmbeddedDatabaseCreator : IEmbeddedDatabaseCreator { diff --git a/src/Umbraco.Persistence.SqlCe/SqlCeSyntaxProvider.cs b/src/Umbraco.Persistence.SqlCe/SqlCeSyntaxProvider.cs index fbeeb4dd96..e28015e64b 100644 --- a/src/Umbraco.Persistence.SqlCe/SqlCeSyntaxProvider.cs +++ b/src/Umbraco.Persistence.SqlCe/SqlCeSyntaxProvider.cs @@ -3,14 +3,14 @@ using System.Collections.Generic; using System.Data; using System.Linq; using NPoco; -using Umbraco.Core; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.DatabaseAnnotations; using Umbraco.Core.Persistence.DatabaseModelDefinitions; using Umbraco.Core.Persistence.SqlSyntax; using ColumnInfo = Umbraco.Core.Persistence.SqlSyntax.ColumnInfo; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Persistence.SqlCe +namespace Umbraco.Cms.Persistence.SqlCe { /// /// Represents an SqlSyntaxProvider for Sql Ce diff --git a/src/Umbraco.Persistence.SqlCe/Umbraco.Persistence.SqlCe.csproj b/src/Umbraco.Persistence.SqlCe/Umbraco.Persistence.SqlCe.csproj index f77782d976..93622540e4 100644 --- a/src/Umbraco.Persistence.SqlCe/Umbraco.Persistence.SqlCe.csproj +++ b/src/Umbraco.Persistence.SqlCe/Umbraco.Persistence.SqlCe.csproj @@ -2,6 +2,7 @@ net472 + Umbraco.Cms.Persistence.SqlCe diff --git a/src/Umbraco.PublishedCache.NuCache/CacheKeys.cs b/src/Umbraco.PublishedCache.NuCache/CacheKeys.cs index 0b67c3a1e2..df129d7214 100644 --- a/src/Umbraco.PublishedCache.NuCache/CacheKeys.cs +++ b/src/Umbraco.PublishedCache.NuCache/CacheKeys.cs @@ -1,8 +1,7 @@ using System; -using System.Globalization; using System.Runtime.CompilerServices; -namespace Umbraco.Web.PublishedCache.NuCache +namespace Umbraco.Cms.Infrastructure.PublishedCache { internal static class CacheKeys { diff --git a/src/Umbraco.PublishedCache.NuCache/ContentCache.cs b/src/Umbraco.PublishedCache.NuCache/ContentCache.cs index f1c4f1d85b..e4c43b1067 100644 --- a/src/Umbraco.PublishedCache.NuCache/ContentCache.cs +++ b/src/Umbraco.PublishedCache.NuCache/ContentCache.cs @@ -4,16 +4,18 @@ using System.Globalization; using System.Linq; using System.Xml.XPath; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Xml; -using Umbraco.Core.Xml.XPath; -using Umbraco.Web.PublishedCache.NuCache.Navigable; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Xml; +using Umbraco.Cms.Core.Xml.XPath; +using Umbraco.Cms.Infrastructure.PublishedCache.Navigable; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.PublishedCache.NuCache +namespace Umbraco.Cms.Infrastructure.PublishedCache { internal class ContentCache : PublishedCacheBase, IPublishedContentCache, INavigableData, IDisposable { diff --git a/src/Umbraco.PublishedCache.NuCache/ContentNode.cs b/src/Umbraco.PublishedCache.NuCache/ContentNode.cs index 38ba78caae..9386b7faf1 100644 --- a/src/Umbraco.PublishedCache.NuCache/ContentNode.cs +++ b/src/Umbraco.PublishedCache.NuCache/ContentNode.cs @@ -1,9 +1,11 @@ using System; using System.Diagnostics; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Web.PublishedCache.NuCache.DataSource; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Infrastructure.PublishedCache.DataSource; +using Umbraco.Extensions; -namespace Umbraco.Web.PublishedCache.NuCache +namespace Umbraco.Cms.Infrastructure.PublishedCache { // represents a content "node" ie a pair of draft + published versions // internal, never exposed, to be accessed from ContentStore (only!) diff --git a/src/Umbraco.PublishedCache.NuCache/ContentNodeKit.cs b/src/Umbraco.PublishedCache.NuCache/ContentNodeKit.cs index 8e24afd620..c97d312c8f 100644 --- a/src/Umbraco.PublishedCache.NuCache/ContentNodeKit.cs +++ b/src/Umbraco.PublishedCache.NuCache/ContentNodeKit.cs @@ -1,7 +1,8 @@ -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Web.PublishedCache.NuCache.DataSource; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Infrastructure.PublishedCache.DataSource; -namespace Umbraco.Web.PublishedCache.NuCache +namespace Umbraco.Cms.Infrastructure.PublishedCache { // what's needed to actually build a content node public struct ContentNodeKit diff --git a/src/Umbraco.PublishedCache.NuCache/ContentStore.cs b/src/Umbraco.PublishedCache.NuCache/ContentStore.cs index bb03693adf..ce7a9456e6 100644 --- a/src/Umbraco.PublishedCache.NuCache/ContentStore.cs +++ b/src/Umbraco.PublishedCache.NuCache/ContentStore.cs @@ -6,13 +6,13 @@ using System.Threading; using System.Threading.Tasks; using CSharpTest.Net.Collections; using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Core.Exceptions; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Exceptions; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Infrastructure.PublishedCache.Snap; using Umbraco.Core.Scoping; -using Umbraco.Web.PublishedCache.NuCache.Snap; -namespace Umbraco.Web.PublishedCache.NuCache +namespace Umbraco.Cms.Infrastructure.PublishedCache { /// /// Stores content in memory and persists it back to disk diff --git a/src/Umbraco.PublishedCache.NuCache/DataSource/BTree.ContentDataSerializer.cs b/src/Umbraco.PublishedCache.NuCache/DataSource/BTree.ContentDataSerializer.cs index 056eacd717..f0b58d0712 100644 --- a/src/Umbraco.PublishedCache.NuCache/DataSource/BTree.ContentDataSerializer.cs +++ b/src/Umbraco.PublishedCache.NuCache/DataSource/BTree.ContentDataSerializer.cs @@ -1,7 +1,7 @@ using System.IO; using CSharpTest.Net.Serialization; -namespace Umbraco.Web.PublishedCache.NuCache.DataSource +namespace Umbraco.Cms.Infrastructure.PublishedCache.DataSource { class ContentDataSerializer : ISerializer { diff --git a/src/Umbraco.PublishedCache.NuCache/DataSource/BTree.ContentNodeKitSerializer.cs b/src/Umbraco.PublishedCache.NuCache/DataSource/BTree.ContentNodeKitSerializer.cs index f799869850..bb473fd34d 100644 --- a/src/Umbraco.PublishedCache.NuCache/DataSource/BTree.ContentNodeKitSerializer.cs +++ b/src/Umbraco.PublishedCache.NuCache/DataSource/BTree.ContentNodeKitSerializer.cs @@ -1,7 +1,7 @@ using System.IO; using CSharpTest.Net.Serialization; -namespace Umbraco.Web.PublishedCache.NuCache.DataSource +namespace Umbraco.Cms.Infrastructure.PublishedCache.DataSource { internal class ContentNodeKitSerializer : ISerializer { diff --git a/src/Umbraco.PublishedCache.NuCache/DataSource/BTree.DictionaryOfCultureVariationSerializer.cs b/src/Umbraco.PublishedCache.NuCache/DataSource/BTree.DictionaryOfCultureVariationSerializer.cs index 4521311302..835fa47e34 100644 --- a/src/Umbraco.PublishedCache.NuCache/DataSource/BTree.DictionaryOfCultureVariationSerializer.cs +++ b/src/Umbraco.PublishedCache.NuCache/DataSource/BTree.DictionaryOfCultureVariationSerializer.cs @@ -2,9 +2,9 @@ using System.Collections.Generic; using System.IO; using CSharpTest.Net.Serialization; -using Umbraco.Core; +using Umbraco.Extensions; -namespace Umbraco.Web.PublishedCache.NuCache.DataSource +namespace Umbraco.Cms.Infrastructure.PublishedCache.DataSource { internal class DictionaryOfCultureVariationSerializer : SerializerBase, ISerializer> { diff --git a/src/Umbraco.PublishedCache.NuCache/DataSource/BTree.DictionaryOfPropertyDataSerializer.cs b/src/Umbraco.PublishedCache.NuCache/DataSource/BTree.DictionaryOfPropertyDataSerializer.cs index aa5dc9eb30..b7c23eca04 100644 --- a/src/Umbraco.PublishedCache.NuCache/DataSource/BTree.DictionaryOfPropertyDataSerializer.cs +++ b/src/Umbraco.PublishedCache.NuCache/DataSource/BTree.DictionaryOfPropertyDataSerializer.cs @@ -2,9 +2,9 @@ using System.Collections.Generic; using System.IO; using CSharpTest.Net.Serialization; -using Umbraco.Core; +using Umbraco.Extensions; -namespace Umbraco.Web.PublishedCache.NuCache.DataSource +namespace Umbraco.Cms.Infrastructure.PublishedCache.DataSource { internal class DictionaryOfPropertyDataSerializer : SerializerBase, ISerializer> { diff --git a/src/Umbraco.PublishedCache.NuCache/DataSource/BTree.cs b/src/Umbraco.PublishedCache.NuCache/DataSource/BTree.cs index 99d0e9da38..ace3e571d3 100644 --- a/src/Umbraco.PublishedCache.NuCache/DataSource/BTree.cs +++ b/src/Umbraco.PublishedCache.NuCache/DataSource/BTree.cs @@ -1,10 +1,9 @@ using System.Configuration; using CSharpTest.Net.Collections; using CSharpTest.Net.Serialization; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; +using Umbraco.Cms.Core.Configuration.Models; -namespace Umbraco.Web.PublishedCache.NuCache.DataSource +namespace Umbraco.Cms.Infrastructure.PublishedCache.DataSource { internal class BTree { diff --git a/src/Umbraco.PublishedCache.NuCache/DataSource/ContentData.cs b/src/Umbraco.PublishedCache.NuCache/DataSource/ContentData.cs index 42e7e340cd..f135ee8bb4 100644 --- a/src/Umbraco.PublishedCache.NuCache/DataSource/ContentData.cs +++ b/src/Umbraco.PublishedCache.NuCache/DataSource/ContentData.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; -namespace Umbraco.Web.PublishedCache.NuCache.DataSource +namespace Umbraco.Cms.Infrastructure.PublishedCache.DataSource { // represents everything that is specific to edited or published version public class ContentData diff --git a/src/Umbraco.PublishedCache.NuCache/DataSource/ContentNestedData.cs b/src/Umbraco.PublishedCache.NuCache/DataSource/ContentNestedData.cs index 98d423680b..0a33ad4aee 100644 --- a/src/Umbraco.PublishedCache.NuCache/DataSource/ContentNestedData.cs +++ b/src/Umbraco.PublishedCache.NuCache/DataSource/ContentNestedData.cs @@ -1,8 +1,8 @@ -using Newtonsoft.Json; using System.Collections.Generic; +using Newtonsoft.Json; using Umbraco.Core.Serialization; -namespace Umbraco.Web.PublishedCache.NuCache.DataSource +namespace Umbraco.Cms.Infrastructure.PublishedCache.DataSource { /// /// The content item 1:M data that is serialized to JSON diff --git a/src/Umbraco.PublishedCache.NuCache/DataSource/ContentSourceDto.cs b/src/Umbraco.PublishedCache.NuCache/DataSource/ContentSourceDto.cs index 37fb9df8bb..2c3f8160f5 100644 --- a/src/Umbraco.PublishedCache.NuCache/DataSource/ContentSourceDto.cs +++ b/src/Umbraco.PublishedCache.NuCache/DataSource/ContentSourceDto.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Web.PublishedCache.NuCache.DataSource +namespace Umbraco.Cms.Infrastructure.PublishedCache.DataSource { // read-only dto internal class ContentSourceDto diff --git a/src/Umbraco.PublishedCache.NuCache/DataSource/CultureVariation.cs b/src/Umbraco.PublishedCache.NuCache/DataSource/CultureVariation.cs index b59e8c403c..fc6da41fe3 100644 --- a/src/Umbraco.PublishedCache.NuCache/DataSource/CultureVariation.cs +++ b/src/Umbraco.PublishedCache.NuCache/DataSource/CultureVariation.cs @@ -1,7 +1,7 @@ using System; using Newtonsoft.Json; -namespace Umbraco.Web.PublishedCache.NuCache.DataSource +namespace Umbraco.Cms.Infrastructure.PublishedCache.DataSource { /// /// Represents the culture variation information on a content item diff --git a/src/Umbraco.PublishedCache.NuCache/DataSource/PropertyData.cs b/src/Umbraco.PublishedCache.NuCache/DataSource/PropertyData.cs index 42e038c744..4320ce89bd 100644 --- a/src/Umbraco.PublishedCache.NuCache/DataSource/PropertyData.cs +++ b/src/Umbraco.PublishedCache.NuCache/DataSource/PropertyData.cs @@ -2,7 +2,7 @@ using System; using System.ComponentModel; using Newtonsoft.Json; -namespace Umbraco.Web.PublishedCache.NuCache.DataSource +namespace Umbraco.Cms.Infrastructure.PublishedCache.DataSource { public class PropertyData { diff --git a/src/Umbraco.PublishedCache.NuCache/DataSource/SerializerBase.cs b/src/Umbraco.PublishedCache.NuCache/DataSource/SerializerBase.cs index ed17420645..48fadce476 100644 --- a/src/Umbraco.PublishedCache.NuCache/DataSource/SerializerBase.cs +++ b/src/Umbraco.PublishedCache.NuCache/DataSource/SerializerBase.cs @@ -2,7 +2,7 @@ using System.IO; using CSharpTest.Net.Serialization; -namespace Umbraco.Web.PublishedCache.NuCache.DataSource +namespace Umbraco.Cms.Infrastructure.PublishedCache.DataSource { internal abstract class SerializerBase { diff --git a/src/Umbraco.PublishedCache.NuCache/DependencyInjection/UmbracoBuilderExtensions.cs b/src/Umbraco.PublishedCache.NuCache/DependencyInjection/UmbracoBuilderExtensions.cs index 6f6e0d0c0e..4a4cba6ab8 100644 --- a/src/Umbraco.PublishedCache.NuCache/DependencyInjection/UmbracoBuilderExtensions.cs +++ b/src/Umbraco.PublishedCache.NuCache/DependencyInjection/UmbracoBuilderExtensions.cs @@ -1,14 +1,15 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; -using Umbraco.Core.DependencyInjection; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.DependencyInjection; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Infrastructure.PublishedCache; +using Umbraco.Cms.Infrastructure.PublishedCache.Persistence; using Umbraco.Core.Scoping; using Umbraco.Core.Services; -using Umbraco.Infrastructure.PublishedCache.Persistence; -using Umbraco.Web.PublishedCache; -using Umbraco.Web.PublishedCache.NuCache; -namespace Umbraco.Infrastructure.PublishedCache.DependencyInjection +namespace Umbraco.Extensions { /// /// Extension methods for for the Umbraco's NuCache diff --git a/src/Umbraco.PublishedCache.NuCache/DomainCache.cs b/src/Umbraco.PublishedCache.NuCache/DomainCache.cs index 6bc0de7268..e957efdbcc 100644 --- a/src/Umbraco.PublishedCache.NuCache/DomainCache.cs +++ b/src/Umbraco.PublishedCache.NuCache/DomainCache.cs @@ -1,8 +1,9 @@ using System.Collections.Generic; using System.Linq; -using Umbraco.Web.Routing; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Routing; -namespace Umbraco.Web.PublishedCache.NuCache +namespace Umbraco.Cms.Infrastructure.PublishedCache { /// /// Implements for NuCache. diff --git a/src/Umbraco.PublishedCache.NuCache/MediaCache.cs b/src/Umbraco.PublishedCache.NuCache/MediaCache.cs index 8e76eb2fbb..1d422bec9a 100644 --- a/src/Umbraco.PublishedCache.NuCache/MediaCache.cs +++ b/src/Umbraco.PublishedCache.NuCache/MediaCache.cs @@ -2,14 +2,16 @@ using System.Collections.Generic; using System.Linq; using System.Xml.XPath; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Xml; -using Umbraco.Core.Xml.XPath; -using Umbraco.Web.PublishedCache.NuCache.Navigable; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Xml; +using Umbraco.Cms.Core.Xml.XPath; +using Umbraco.Cms.Infrastructure.PublishedCache.Navigable; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.PublishedCache.NuCache +namespace Umbraco.Cms.Infrastructure.PublishedCache { public class MediaCache : PublishedCacheBase, IPublishedMediaCache, INavigableData, IDisposable { diff --git a/src/Umbraco.PublishedCache.NuCache/MemberCache.cs b/src/Umbraco.PublishedCache.NuCache/MemberCache.cs index 68d82731d8..861af3a4a4 100644 --- a/src/Umbraco.PublishedCache.NuCache/MemberCache.cs +++ b/src/Umbraco.PublishedCache.NuCache/MemberCache.cs @@ -2,15 +2,17 @@ using System.Collections.Generic; using System.Linq; using System.Xml.XPath; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Services; -using Umbraco.Core.Xml.XPath; -using Umbraco.Web.PublishedCache.NuCache.Navigable; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Xml.XPath; +using Umbraco.Cms.Infrastructure.PublishedCache.Navigable; +using Umbraco.Extensions; +using Umbraco.Web.PublishedCache; -namespace Umbraco.Web.PublishedCache.NuCache +namespace Umbraco.Cms.Infrastructure.PublishedCache { internal class MemberCache : IPublishedMemberCache, INavigableData { diff --git a/src/Umbraco.PublishedCache.NuCache/Navigable/INavigableData.cs b/src/Umbraco.PublishedCache.NuCache/Navigable/INavigableData.cs index 6651f9dcee..2dc238d1e4 100644 --- a/src/Umbraco.PublishedCache.NuCache/Navigable/INavigableData.cs +++ b/src/Umbraco.PublishedCache.NuCache/Navigable/INavigableData.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.PublishedContent; -namespace Umbraco.Web.PublishedCache.NuCache.Navigable +namespace Umbraco.Cms.Infrastructure.PublishedCache.Navigable { internal interface INavigableData { diff --git a/src/Umbraco.PublishedCache.NuCache/Navigable/NavigableContent.cs b/src/Umbraco.PublishedCache.NuCache/Navigable/NavigableContent.cs index 51badc8b9a..9d2b2bbbe5 100644 --- a/src/Umbraco.PublishedCache.NuCache/Navigable/NavigableContent.cs +++ b/src/Umbraco.PublishedCache.NuCache/Navigable/NavigableContent.cs @@ -1,9 +1,9 @@ using System; using System.Collections.Generic; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Xml.XPath; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Xml.XPath; -namespace Umbraco.Web.PublishedCache.NuCache.Navigable +namespace Umbraco.Cms.Infrastructure.PublishedCache.Navigable { internal class NavigableContent : INavigableContent { diff --git a/src/Umbraco.PublishedCache.NuCache/Navigable/NavigableContentType.cs b/src/Umbraco.PublishedCache.NuCache/Navigable/NavigableContentType.cs index 310dae9dd2..9062f66b92 100644 --- a/src/Umbraco.PublishedCache.NuCache/Navigable/NavigableContentType.cs +++ b/src/Umbraco.PublishedCache.NuCache/Navigable/NavigableContentType.cs @@ -2,10 +2,10 @@ using System.Linq; using System.Runtime.CompilerServices; using System.Xml; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Xml.XPath; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Xml.XPath; -namespace Umbraco.Web.PublishedCache.NuCache.Navigable +namespace Umbraco.Cms.Infrastructure.PublishedCache.Navigable { internal class NavigableContentType : INavigableContentType { diff --git a/src/Umbraco.PublishedCache.NuCache/Navigable/NavigablePropertyType.cs b/src/Umbraco.PublishedCache.NuCache/Navigable/NavigablePropertyType.cs index 082ebd1fde..eed3d1a08d 100644 --- a/src/Umbraco.PublishedCache.NuCache/Navigable/NavigablePropertyType.cs +++ b/src/Umbraco.PublishedCache.NuCache/Navigable/NavigablePropertyType.cs @@ -1,7 +1,7 @@ using System; -using Umbraco.Core.Xml.XPath; +using Umbraco.Cms.Core.Xml.XPath; -namespace Umbraco.Web.PublishedCache.NuCache.Navigable +namespace Umbraco.Cms.Infrastructure.PublishedCache.Navigable { internal class NavigablePropertyType : INavigableFieldType { diff --git a/src/Umbraco.PublishedCache.NuCache/Navigable/RootContent.cs b/src/Umbraco.PublishedCache.NuCache/Navigable/RootContent.cs index 1e6da0a23f..68eb41a66a 100644 --- a/src/Umbraco.PublishedCache.NuCache/Navigable/RootContent.cs +++ b/src/Umbraco.PublishedCache.NuCache/Navigable/RootContent.cs @@ -1,8 +1,8 @@ using System.Collections.Generic; using System.Linq; -using Umbraco.Core.Xml.XPath; +using Umbraco.Cms.Core.Xml.XPath; -namespace Umbraco.Web.PublishedCache.NuCache.Navigable +namespace Umbraco.Cms.Infrastructure.PublishedCache.Navigable { internal class RootContent : INavigableContent { diff --git a/src/Umbraco.PublishedCache.NuCache/Navigable/Source.cs b/src/Umbraco.PublishedCache.NuCache/Navigable/Source.cs index 436a89c803..ad4f1a2b13 100644 --- a/src/Umbraco.PublishedCache.NuCache/Navigable/Source.cs +++ b/src/Umbraco.PublishedCache.NuCache/Navigable/Source.cs @@ -1,7 +1,7 @@ using System.Linq; -using Umbraco.Core.Xml.XPath; +using Umbraco.Cms.Core.Xml.XPath; -namespace Umbraco.Web.PublishedCache.NuCache.Navigable +namespace Umbraco.Cms.Infrastructure.PublishedCache.Navigable { internal class Source : INavigableSource { diff --git a/src/Umbraco.PublishedCache.NuCache/Persistence/INuCacheContentRepository.cs b/src/Umbraco.PublishedCache.NuCache/Persistence/INuCacheContentRepository.cs index 7bce5e138c..ab15515d55 100644 --- a/src/Umbraco.PublishedCache.NuCache/Persistence/INuCacheContentRepository.cs +++ b/src/Umbraco.PublishedCache.NuCache/Persistence/INuCacheContentRepository.cs @@ -1,8 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Models; -using Umbraco.Web.PublishedCache.NuCache; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Infrastructure.PublishedCache.Persistence +namespace Umbraco.Cms.Infrastructure.PublishedCache.Persistence { public interface INuCacheContentRepository { diff --git a/src/Umbraco.PublishedCache.NuCache/Persistence/INuCacheContentService.cs b/src/Umbraco.PublishedCache.NuCache/Persistence/INuCacheContentService.cs index 4a3f5b2b5d..67c0bec35f 100644 --- a/src/Umbraco.PublishedCache.NuCache/Persistence/INuCacheContentService.cs +++ b/src/Umbraco.PublishedCache.NuCache/Persistence/INuCacheContentService.cs @@ -1,8 +1,7 @@ using System.Collections.Generic; -using Umbraco.Core.Models; -using Umbraco.Web.PublishedCache.NuCache; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Infrastructure.PublishedCache.Persistence +namespace Umbraco.Cms.Infrastructure.PublishedCache.Persistence { /// /// Defines a data source for NuCache. diff --git a/src/Umbraco.PublishedCache.NuCache/Persistence/NuCacheContentRepository.cs b/src/Umbraco.PublishedCache.NuCache/Persistence/NuCacheContentRepository.cs index 60370e9be8..437682e0b4 100644 --- a/src/Umbraco.PublishedCache.NuCache/Persistence/NuCacheContentRepository.cs +++ b/src/Umbraco.PublishedCache.NuCache/Persistence/NuCacheContentRepository.cs @@ -5,23 +5,23 @@ using System.Linq; using Microsoft.Extensions.Logging; using Newtonsoft.Json; using NPoco; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Infrastructure.PublishedCache.DataSource; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.Dtos; -using Umbraco.Core.Persistence.Querying; using Umbraco.Core.Persistence.Repositories; using Umbraco.Core.Persistence.Repositories.Implement; using Umbraco.Core.Scoping; using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; -using Umbraco.Web.PublishedCache.NuCache; -using Umbraco.Web.PublishedCache.NuCache.DataSource; -using static Umbraco.Core.Persistence.SqlExtensionsStatics; +using Umbraco.Extensions; +using static Umbraco.Cms.Core.Persistence.SqlExtensionsStatics; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Infrastructure.PublishedCache.Persistence +namespace Umbraco.Cms.Infrastructure.PublishedCache.Persistence { public class NuCacheContentRepository : RepositoryBase, INuCacheContentRepository { diff --git a/src/Umbraco.PublishedCache.NuCache/Persistence/NuCacheContentService.cs b/src/Umbraco.PublishedCache.NuCache/Persistence/NuCacheContentService.cs index 00c3671217..02774a17f5 100644 --- a/src/Umbraco.PublishedCache.NuCache/Persistence/NuCacheContentService.cs +++ b/src/Umbraco.PublishedCache.NuCache/Persistence/NuCacheContentService.cs @@ -1,13 +1,13 @@ using System.Collections.Generic; using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Core.Events; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Scoping; using Umbraco.Core.Scoping; using Umbraco.Core.Services.Implement; -using Umbraco.Web.PublishedCache.NuCache; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Infrastructure.PublishedCache.Persistence +namespace Umbraco.Cms.Infrastructure.PublishedCache.Persistence { public class NuCacheContentService : RepositoryService, INuCacheContentService { diff --git a/src/Umbraco.PublishedCache.NuCache/Property.cs b/src/Umbraco.PublishedCache.NuCache/Property.cs index 1b70c6504c..2b5655b314 100644 --- a/src/Umbraco.PublishedCache.NuCache/Property.cs +++ b/src/Umbraco.PublishedCache.NuCache/Property.cs @@ -1,15 +1,16 @@ using System; using System.Collections.Generic; using System.Xml.Serialization; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Collections; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.PropertyEditors; -using Umbraco.Web.PublishedCache.NuCache.DataSource; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Collections; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Infrastructure.PublishedCache.DataSource; +using Umbraco.Extensions; -namespace Umbraco.Web.PublishedCache.NuCache +namespace Umbraco.Cms.Infrastructure.PublishedCache { [Serializable] [XmlType(Namespace = "http://umbraco.org/webservices/")] diff --git a/src/Umbraco.PublishedCache.NuCache/PublishedContent.cs b/src/Umbraco.PublishedCache.NuCache/PublishedContent.cs index 9cdc0db4fa..bf34fca4e7 100644 --- a/src/Umbraco.PublishedCache.NuCache/PublishedContent.cs +++ b/src/Umbraco.PublishedCache.NuCache/PublishedContent.cs @@ -1,15 +1,14 @@ using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Exceptions; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Services; -using Umbraco.Web.Models; -using Umbraco.Web.PublishedCache.NuCache.DataSource; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Exceptions; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Infrastructure.PublishedCache.DataSource; +using Umbraco.Extensions; -namespace Umbraco.Web.PublishedCache.NuCache +namespace Umbraco.Cms.Infrastructure.PublishedCache { internal class PublishedContent : PublishedContentBase { diff --git a/src/Umbraco.PublishedCache.NuCache/PublishedMember.cs b/src/Umbraco.PublishedCache.NuCache/PublishedMember.cs index aa03bf2702..dfd347168a 100644 --- a/src/Umbraco.PublishedCache.NuCache/PublishedMember.cs +++ b/src/Umbraco.PublishedCache.NuCache/PublishedMember.cs @@ -1,16 +1,17 @@ using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Web.PublishedCache.NuCache.DataSource; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Infrastructure.PublishedCache.DataSource; +using Umbraco.Extensions; -namespace Umbraco.Web.PublishedCache.NuCache +namespace Umbraco.Cms.Infrastructure.PublishedCache { // note // the whole PublishedMember thing should be refactored because as soon as a member // is wrapped on in a model, the inner IMember and all associated properties are lost - internal class PublishedMember : PublishedContent //, IPublishedMember { private readonly IMember _member; diff --git a/src/Umbraco.PublishedCache.NuCache/PublishedSnapshot.cs b/src/Umbraco.PublishedCache.NuCache/PublishedSnapshot.cs index 3f5c1aa4d5..6c158daf31 100644 --- a/src/Umbraco.PublishedCache.NuCache/PublishedSnapshot.cs +++ b/src/Umbraco.PublishedCache.NuCache/PublishedSnapshot.cs @@ -1,8 +1,9 @@ using System; -using Umbraco.Core; -using Umbraco.Core.Cache; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.PublishedCache; -namespace Umbraco.Web.PublishedCache.NuCache +namespace Umbraco.Cms.Infrastructure.PublishedCache { // implements published snapshot internal class PublishedSnapshot : IPublishedSnapshot, IDisposable diff --git a/src/Umbraco.PublishedCache.NuCache/PublishedSnapshotService.cs b/src/Umbraco.PublishedCache.NuCache/PublishedSnapshotService.cs index 6cc0416dbb..17fc0df69b 100644 --- a/src/Umbraco.PublishedCache.NuCache/PublishedSnapshotService.cs +++ b/src/Umbraco.PublishedCache.NuCache/PublishedSnapshotService.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using System.Globalization; using System.IO; using System.Linq; using System.Threading; @@ -8,27 +7,28 @@ using System.Threading.Tasks; using CSharpTest.Net.Collections; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; -using Umbraco.Core.Logging; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Persistence; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Runtime; +using Umbraco.Cms.Core.Scoping; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Services.Changes; +using Umbraco.Cms.Infrastructure.PublishedCache.DataSource; +using Umbraco.Cms.Infrastructure.PublishedCache.Persistence; using Umbraco.Core.Scoping; -using Umbraco.Core.Services; -using Umbraco.Core.Services.Changes; -using Umbraco.Infrastructure.PublishedCache.Persistence; -using Umbraco.Web.Cache; -using Umbraco.Web.PublishedCache.NuCache.DataSource; -using Umbraco.Web.Routing; +using Umbraco.Extensions; +using Umbraco.Web.PublishedCache; +using Constants = Umbraco.Cms.Core.Constants; using File = System.IO.File; -namespace Umbraco.Web.PublishedCache.NuCache +namespace Umbraco.Cms.Infrastructure.PublishedCache { - internal class PublishedSnapshotService : IPublishedSnapshotService { private readonly ServiceContext _serviceContext; diff --git a/src/Umbraco.PublishedCache.NuCache/PublishedSnapshotServiceEventHandler.cs b/src/Umbraco.PublishedCache.NuCache/PublishedSnapshotServiceEventHandler.cs index a8f3f9338b..e23e873c19 100644 --- a/src/Umbraco.PublishedCache.NuCache/PublishedSnapshotServiceEventHandler.cs +++ b/src/Umbraco.PublishedCache.NuCache/PublishedSnapshotServiceEventHandler.cs @@ -1,15 +1,17 @@ using System; using System.Linq; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Persistence; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Services.Changes; +using Umbraco.Cms.Infrastructure.PublishedCache.Persistence; using Umbraco.Core.Persistence.Repositories.Implement; -using Umbraco.Core.Services; -using Umbraco.Core.Services.Changes; using Umbraco.Core.Services.Implement; -using Umbraco.Infrastructure.PublishedCache.Persistence; +using Umbraco.Extensions; -namespace Umbraco.Web.PublishedCache.NuCache +namespace Umbraco.Cms.Infrastructure.PublishedCache { /// /// Subscribes to Umbraco events to ensure nucache remains consistent with the source data @@ -157,7 +159,7 @@ namespace Umbraco.Web.PublishedCache.NuCache /// /// If a is ever saved with a different culture, we need to rebuild all of the content nucache database table /// - private void OnLanguageSaved(ILocalizationService sender, Core.Events.SaveEventArgs e) + private void OnLanguageSaved(ILocalizationService sender, SaveEventArgs e) { // culture changed on an existing language var cultureChanged = e.SavedEntities.Any(x => !x.WasPropertyDirty(nameof(ILanguage.Id)) && x.WasPropertyDirty(nameof(ILanguage.IsoCode))); diff --git a/src/Umbraco.PublishedCache.NuCache/PublishedSnapshotServiceOptions.cs b/src/Umbraco.PublishedCache.NuCache/PublishedSnapshotServiceOptions.cs index ef9d83a802..8fcb4e410d 100644 --- a/src/Umbraco.PublishedCache.NuCache/PublishedSnapshotServiceOptions.cs +++ b/src/Umbraco.PublishedCache.NuCache/PublishedSnapshotServiceOptions.cs @@ -1,4 +1,6 @@ -namespace Umbraco.Web.PublishedCache.NuCache +using Umbraco.Cms.Core.PublishedCache; + +namespace Umbraco.Cms.Infrastructure.PublishedCache { /// /// Options class for configuring the diff --git a/src/Umbraco.PublishedCache.NuCache/PublishedSnapshotStatus.cs b/src/Umbraco.PublishedCache.NuCache/PublishedSnapshotStatus.cs index dff40275d8..df4f803006 100644 --- a/src/Umbraco.PublishedCache.NuCache/PublishedSnapshotStatus.cs +++ b/src/Umbraco.PublishedCache.NuCache/PublishedSnapshotStatus.cs @@ -1,6 +1,7 @@ -using Umbraco.Infrastructure.PublishedCache.Persistence; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Infrastructure.PublishedCache.Persistence; -namespace Umbraco.Web.PublishedCache.NuCache +namespace Umbraco.Cms.Infrastructure.PublishedCache { /// /// Generates a status report for diff --git a/src/Umbraco.PublishedCache.NuCache/Snap/GenObj.cs b/src/Umbraco.PublishedCache.NuCache/Snap/GenObj.cs index b69dab7dac..a5dc6ae06b 100644 --- a/src/Umbraco.PublishedCache.NuCache/Snap/GenObj.cs +++ b/src/Umbraco.PublishedCache.NuCache/Snap/GenObj.cs @@ -1,7 +1,7 @@ using System; using System.Threading; -namespace Umbraco.Web.PublishedCache.NuCache.Snap +namespace Umbraco.Cms.Infrastructure.PublishedCache.Snap { internal class GenObj { diff --git a/src/Umbraco.PublishedCache.NuCache/Snap/GenRef.cs b/src/Umbraco.PublishedCache.NuCache/Snap/GenRef.cs index ade0251b8d..7bf0fc8574 100644 --- a/src/Umbraco.PublishedCache.NuCache/Snap/GenRef.cs +++ b/src/Umbraco.PublishedCache.NuCache/Snap/GenRef.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.PublishedCache.NuCache.Snap +namespace Umbraco.Cms.Infrastructure.PublishedCache.Snap { internal class GenRef { diff --git a/src/Umbraco.PublishedCache.NuCache/Snap/LinkedNode.cs b/src/Umbraco.PublishedCache.NuCache/Snap/LinkedNode.cs index 94f83ac4e5..df82b47e94 100644 --- a/src/Umbraco.PublishedCache.NuCache/Snap/LinkedNode.cs +++ b/src/Umbraco.PublishedCache.NuCache/Snap/LinkedNode.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.PublishedCache.NuCache.Snap +namespace Umbraco.Cms.Infrastructure.PublishedCache.Snap { //NOTE: This cannot be struct because it references itself diff --git a/src/Umbraco.PublishedCache.NuCache/SnapDictionary.cs b/src/Umbraco.PublishedCache.NuCache/SnapDictionary.cs index 589cd06d8a..4580183239 100644 --- a/src/Umbraco.PublishedCache.NuCache/SnapDictionary.cs +++ b/src/Umbraco.PublishedCache.NuCache/SnapDictionary.cs @@ -4,11 +4,11 @@ using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; -using Umbraco.Core.Exceptions; +using Umbraco.Cms.Core.Exceptions; +using Umbraco.Cms.Infrastructure.PublishedCache.Snap; using Umbraco.Core.Scoping; -using Umbraco.Web.PublishedCache.NuCache.Snap; -namespace Umbraco.Web.PublishedCache.NuCache +namespace Umbraco.Cms.Infrastructure.PublishedCache { internal class SnapDictionary where TValue : class @@ -90,7 +90,7 @@ namespace Umbraco.Web.PublishedCache.NuCache { private readonly WriteLockInfo _lockinfo = new WriteLockInfo(); private readonly SnapDictionary _dictionary; - + public ScopedWriteLock(SnapDictionary dictionary, bool scoped) { _dictionary = dictionary; @@ -167,7 +167,7 @@ namespace Umbraco.Web.PublishedCache.NuCache _liveGen -= 1; } } - + foreach (var item in _items) { var link = item.Value; diff --git a/src/Umbraco.PublishedCache.NuCache/Umbraco.PublishedCache.NuCache.csproj b/src/Umbraco.PublishedCache.NuCache/Umbraco.PublishedCache.NuCache.csproj index ab9bcc2f90..8973054260 100644 --- a/src/Umbraco.PublishedCache.NuCache/Umbraco.PublishedCache.NuCache.csproj +++ b/src/Umbraco.PublishedCache.NuCache/Umbraco.PublishedCache.NuCache.csproj @@ -2,6 +2,8 @@ netstandard2.0 + Umbraco.Cms.Infrastructure.PublishedCache + 8 Umbraco.Infrastructure.PublishedCache diff --git a/src/Umbraco.TestData/LoadTestController.cs b/src/Umbraco.TestData/LoadTestController.cs index 1d03c8bb2a..6cbe31d70e 100644 --- a/src/Umbraco.TestData/LoadTestController.cs +++ b/src/Umbraco.TestData/LoadTestController.cs @@ -8,11 +8,13 @@ using System.Web; using System.Web.Hosting; using System.Web.Routing; using System.Diagnostics; -using Umbraco.Core.Composing; using System.Configuration; using Microsoft.Extensions.DependencyInjection; -using Umbraco.Core.Strings; -using Umbraco.Core.DependencyInjection; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.DependencyInjection; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; // see https://github.com/Shazwazza/UmbracoScripts/tree/master/src/LoadTesting diff --git a/src/Umbraco.TestData/SegmentTestController.cs b/src/Umbraco.TestData/SegmentTestController.cs index 650820760e..35c1acb69b 100644 --- a/src/Umbraco.TestData/SegmentTestController.cs +++ b/src/Umbraco.TestData/SegmentTestController.cs @@ -1,12 +1,9 @@ -using System; -using System.Collections.Generic; -using System.Configuration; +using System.Configuration; using System.Linq; -using System.Text; -using System.Threading.Tasks; using System.Web.Mvc; -using Umbraco.Core; -using Umbraco.Core.Models; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models; +using Umbraco.Extensions; using Umbraco.Web.Mvc; namespace Umbraco.TestData diff --git a/src/Umbraco.TestData/UmbracoTestDataController.cs b/src/Umbraco.TestData/UmbracoTestDataController.cs index 5ce90c9d69..2a534ef902 100644 --- a/src/Umbraco.TestData/UmbracoTestDataController.cs +++ b/src/Umbraco.TestData/UmbracoTestDataController.cs @@ -1,23 +1,23 @@ using System; using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Umbraco.Core; -using System.Web.Mvc; -using Umbraco.Core.Cache; -using Umbraco.Core.Logging; -using Umbraco.Core.Models; -using Umbraco.Core.Persistence; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Services; -using Umbraco.Web; -using Umbraco.Web.Mvc; using System.Configuration; +using System.Linq; +using System.Web.Mvc; using Bogus; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Core.Web; +using Umbraco.Core.Persistence; using Umbraco.Core.Scoping; using Umbraco.Core.Serialization; -using Umbraco.Core.Strings; +using Umbraco.Extensions; +using Umbraco.Web.Mvc; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.TestData { diff --git a/src/Umbraco.Tests.Benchmarks/CombineGuidBenchmarks.cs b/src/Umbraco.Tests.Benchmarks/CombineGuidBenchmarks.cs index ce55f6890d..67b6f42250 100644 --- a/src/Umbraco.Tests.Benchmarks/CombineGuidBenchmarks.cs +++ b/src/Umbraco.Tests.Benchmarks/CombineGuidBenchmarks.cs @@ -1,5 +1,6 @@ using System; using BenchmarkDotNet.Attributes; +using Umbraco.Cms.Core; using Umbraco.Core; using Umbraco.Tests.Benchmarks.Config; diff --git a/src/Umbraco.Tests.Benchmarks/ConcurrentDictionaryBenchmarks.cs b/src/Umbraco.Tests.Benchmarks/ConcurrentDictionaryBenchmarks.cs index 4e8476bb6d..c59cb04500 100644 --- a/src/Umbraco.Tests.Benchmarks/ConcurrentDictionaryBenchmarks.cs +++ b/src/Umbraco.Tests.Benchmarks/ConcurrentDictionaryBenchmarks.cs @@ -5,7 +5,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; -using Umbraco.Core.Collections; +using Umbraco.Cms.Core.Collections; namespace Umbraco.Tests.Benchmarks { diff --git a/src/Umbraco.Tests.Benchmarks/CtorInvokeBenchmarks.cs b/src/Umbraco.Tests.Benchmarks/CtorInvokeBenchmarks.cs index 02696b9b7b..34d885a27d 100644 --- a/src/Umbraco.Tests.Benchmarks/CtorInvokeBenchmarks.cs +++ b/src/Umbraco.Tests.Benchmarks/CtorInvokeBenchmarks.cs @@ -7,6 +7,7 @@ using BenchmarkDotNet.Configs; using BenchmarkDotNet.Diagnosers; using BenchmarkDotNet.Jobs; using Perfolizer.Horology; +using Umbraco.Cms.Core; using Umbraco.Core; namespace Umbraco.Tests.Benchmarks diff --git a/src/Umbraco.Tests.Benchmarks/HexStringBenchmarks.cs b/src/Umbraco.Tests.Benchmarks/HexStringBenchmarks.cs index e29a5a24f3..d5d079f318 100644 --- a/src/Umbraco.Tests.Benchmarks/HexStringBenchmarks.cs +++ b/src/Umbraco.Tests.Benchmarks/HexStringBenchmarks.cs @@ -1,6 +1,7 @@ using System; using System.Text; using BenchmarkDotNet.Attributes; +using Umbraco.Cms.Core; using Umbraco.Core; using Umbraco.Tests.Benchmarks.Config; diff --git a/src/Umbraco.Tests.Benchmarks/ModelToSqlExpressionHelperBenchmarks.cs b/src/Umbraco.Tests.Benchmarks/ModelToSqlExpressionHelperBenchmarks.cs index bc892c34ed..fa21f16ea6 100644 --- a/src/Umbraco.Tests.Benchmarks/ModelToSqlExpressionHelperBenchmarks.cs +++ b/src/Umbraco.Tests.Benchmarks/ModelToSqlExpressionHelperBenchmarks.cs @@ -2,13 +2,14 @@ using System.Linq.Expressions; using BenchmarkDotNet.Attributes; using Moq; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Persistence.SqlCe; using Umbraco.Core.Models; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.Mappers; using Umbraco.Core.Persistence.Querying; using Umbraco.Core.Persistence.SqlSyntax; using Umbraco.Infrastructure.Persistence.Mappers; -using Umbraco.Persistence.SqlCe; namespace Umbraco.Tests.Benchmarks { diff --git a/src/Umbraco.Tests.Benchmarks/SqlTemplatesBenchmark.cs b/src/Umbraco.Tests.Benchmarks/SqlTemplatesBenchmark.cs index d62ca25bf6..797e57678f 100644 --- a/src/Umbraco.Tests.Benchmarks/SqlTemplatesBenchmark.cs +++ b/src/Umbraco.Tests.Benchmarks/SqlTemplatesBenchmark.cs @@ -2,9 +2,9 @@ using BenchmarkDotNet.Configs; using BenchmarkDotNet.Diagnosers; using NPoco; +using Umbraco.Cms.Persistence.SqlCe; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.Mappers; -using Umbraco.Persistence.SqlCe; namespace Umbraco.Tests.Benchmarks { diff --git a/src/Umbraco.Tests.Benchmarks/TryConvertToBenchmarks.cs b/src/Umbraco.Tests.Benchmarks/TryConvertToBenchmarks.cs index 7e73c5e438..579afc761b 100644 --- a/src/Umbraco.Tests.Benchmarks/TryConvertToBenchmarks.cs +++ b/src/Umbraco.Tests.Benchmarks/TryConvertToBenchmarks.cs @@ -2,8 +2,7 @@ using System.Collections.Generic; using System.Linq; using BenchmarkDotNet.Attributes; -using BenchmarkDotNet.Engines; -using Umbraco.Core; +using Umbraco.Extensions; namespace Umbraco.Tests.Benchmarks { diff --git a/src/Umbraco.Tests.Benchmarks/TypeFinderBenchmarks.cs b/src/Umbraco.Tests.Benchmarks/TypeFinderBenchmarks.cs index 35bfa29db1..907c21f136 100644 --- a/src/Umbraco.Tests.Benchmarks/TypeFinderBenchmarks.cs +++ b/src/Umbraco.Tests.Benchmarks/TypeFinderBenchmarks.cs @@ -1,10 +1,8 @@ -using BenchmarkDotNet.Attributes; -using System; -using System.Linq; -using Microsoft.Extensions.Logging; +using System.Linq; +using BenchmarkDotNet.Attributes; using Microsoft.Extensions.Logging.Abstractions; -using Umbraco.Core.Composing; -using Umbraco.Tests.Benchmarks.Config; +using Umbraco.Cms.Core.Composing; +using Umbraco.Extensions; namespace Umbraco.Tests.Benchmarks { diff --git a/src/Umbraco.Tests.Common/Builders/AuditEntryBuilder.cs b/src/Umbraco.Tests.Common/Builders/AuditEntryBuilder.cs index 447aab3fe9..de8d81904a 100644 --- a/src/Umbraco.Tests.Common/Builders/AuditEntryBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/AuditEntryBuilder.cs @@ -2,10 +2,10 @@ // See LICENSE for more details. using System; -using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders.Interfaces; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Builders.Interfaces; -namespace Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.Common.Builders { public class AuditEntryBuilder : AuditEntryBuilder { diff --git a/src/Umbraco.Tests.Common/Builders/BuilderBase.cs b/src/Umbraco.Tests.Common/Builders/BuilderBase.cs index 102e5eaf05..9b48e63b56 100644 --- a/src/Umbraco.Tests.Common/Builders/BuilderBase.cs +++ b/src/Umbraco.Tests.Common/Builders/BuilderBase.cs @@ -3,7 +3,7 @@ using System; -namespace Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.Common.Builders { public abstract class BuilderBase { diff --git a/src/Umbraco.Tests.Common/Builders/ChildBuilderBase.cs b/src/Umbraco.Tests.Common/Builders/ChildBuilderBase.cs index feb87f9556..fb5904a21a 100644 --- a/src/Umbraco.Tests.Common/Builders/ChildBuilderBase.cs +++ b/src/Umbraco.Tests.Common/Builders/ChildBuilderBase.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.Common.Builders { public abstract class ChildBuilderBase : BuilderBase { diff --git a/src/Umbraco.Tests.Common/Builders/ConfigurationEditorBuilder.cs b/src/Umbraco.Tests.Common/Builders/ConfigurationEditorBuilder.cs index 2d8a93e772..8e910ee39b 100644 --- a/src/Umbraco.Tests.Common/Builders/ConfigurationEditorBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/ConfigurationEditorBuilder.cs @@ -2,9 +2,9 @@ // See LICENSE for more details. using System.Collections.Generic; -using Umbraco.Core.PropertyEditors; +using Umbraco.Cms.Core.PropertyEditors; -namespace Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.Common.Builders { public class ConfigurationEditorBuilder : ChildBuilderBase { diff --git a/src/Umbraco.Tests.Common/Builders/ContentBuilder.cs b/src/Umbraco.Tests.Common/Builders/ContentBuilder.cs index 715b504d71..6602c7b25c 100644 --- a/src/Umbraco.Tests.Common/Builders/ContentBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/ContentBuilder.cs @@ -4,13 +4,14 @@ using System; using System.Collections.Generic; using System.Globalization; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders.Extensions; -using Umbraco.Tests.Common.Builders.Interfaces; -using Umbraco.Tests.Testing; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Tests.Common.Builders.Interfaces; +using Umbraco.Cms.Tests.Common.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.Common.Builders { public class ContentBuilder : BuilderBase, diff --git a/src/Umbraco.Tests.Common/Builders/ContentItemSaveBuilder.cs b/src/Umbraco.Tests.Common/Builders/ContentItemSaveBuilder.cs index 5eadd01608..bcd73451f3 100644 --- a/src/Umbraco.Tests.Common/Builders/ContentItemSaveBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/ContentItemSaveBuilder.cs @@ -3,10 +3,10 @@ using System.Collections.Generic; using System.Linq; -using Umbraco.Tests.Common.Builders.Interfaces; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Tests.Common.Builders.Interfaces; -namespace Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.Common.Builders { public class ContentItemSaveBuilder : BuilderBase, IWithIdBuilder, diff --git a/src/Umbraco.Tests.Common/Builders/ContentPropertyBasicBuilder.cs b/src/Umbraco.Tests.Common/Builders/ContentPropertyBasicBuilder.cs index a9ff520228..7f4a57f0bf 100644 --- a/src/Umbraco.Tests.Common/Builders/ContentPropertyBasicBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/ContentPropertyBasicBuilder.cs @@ -1,10 +1,10 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -using Umbraco.Tests.Common.Builders.Interfaces; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Tests.Common.Builders.Interfaces; -namespace Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.Common.Builders { public class ContentPropertyBasicBuilder : ChildBuilderBase, IWithIdBuilder, IWithAliasBuilder diff --git a/src/Umbraco.Tests.Common/Builders/ContentTypeBaseBuilder.cs b/src/Umbraco.Tests.Common/Builders/ContentTypeBaseBuilder.cs index 0f00cc53d7..6c8a14dff2 100644 --- a/src/Umbraco.Tests.Common/Builders/ContentTypeBaseBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/ContentTypeBaseBuilder.cs @@ -3,12 +3,12 @@ using System; using System.Collections.Generic; -using Umbraco.Core.Models; -using Umbraco.Core.Strings; -using Umbraco.Tests.Common.Builders.Extensions; -using Umbraco.Tests.Common.Builders.Interfaces; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Tests.Common.Builders.Interfaces; -namespace Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.Common.Builders { public abstract class ContentTypeBaseBuilder : ChildBuilderBase, diff --git a/src/Umbraco.Tests.Common/Builders/ContentTypeBuilder.cs b/src/Umbraco.Tests.Common/Builders/ContentTypeBuilder.cs index 80aa414e46..39d0179825 100644 --- a/src/Umbraco.Tests.Common/Builders/ContentTypeBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/ContentTypeBuilder.cs @@ -3,12 +3,12 @@ using System.Collections.Generic; using System.Linq; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders.Extensions; -using Umbraco.Tests.Common.Builders.Interfaces; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Tests.Common.Builders.Interfaces; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.Common.Builders { public class ContentTypeBuilder : ContentTypeBaseBuilder, diff --git a/src/Umbraco.Tests.Common/Builders/ContentTypeSortBuilder.cs b/src/Umbraco.Tests.Common/Builders/ContentTypeSortBuilder.cs index 3e7c886623..b880c4fee6 100644 --- a/src/Umbraco.Tests.Common/Builders/ContentTypeSortBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/ContentTypeSortBuilder.cs @@ -2,11 +2,11 @@ // See LICENSE for more details. using System; -using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders.Extensions; -using Umbraco.Tests.Common.Builders.Interfaces; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Tests.Common.Builders.Interfaces; -namespace Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.Common.Builders { public class ContentTypeSortBuilder : ChildBuilderBase, diff --git a/src/Umbraco.Tests.Common/Builders/ContentVariantSaveBuilder.cs b/src/Umbraco.Tests.Common/Builders/ContentVariantSaveBuilder.cs index 3408e6a244..89241127ed 100644 --- a/src/Umbraco.Tests.Common/Builders/ContentVariantSaveBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/ContentVariantSaveBuilder.cs @@ -4,10 +4,10 @@ using System.Collections.Generic; using System.Globalization; using System.Linq; -using Umbraco.Tests.Common.Builders.Interfaces; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Tests.Common.Builders.Interfaces; -namespace Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.Common.Builders { public class ContentVariantSaveBuilder : ChildBuilderBase, IWithNameBuilder, diff --git a/src/Umbraco.Tests.Common/Builders/DataEditorBuilder.cs b/src/Umbraco.Tests.Common/Builders/DataEditorBuilder.cs index b4db018322..6a5cb84048 100644 --- a/src/Umbraco.Tests.Common/Builders/DataEditorBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/DataEditorBuilder.cs @@ -4,12 +4,13 @@ using System.Collections.Generic; using Microsoft.Extensions.Logging.Abstractions; using Moq; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; -namespace Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.Common.Builders { public class DataEditorBuilder : ChildBuilderBase { diff --git a/src/Umbraco.Tests.Common/Builders/DataTypeBuilder.cs b/src/Umbraco.Tests.Common/Builders/DataTypeBuilder.cs index d853b2a5c2..683f291374 100644 --- a/src/Umbraco.Tests.Common/Builders/DataTypeBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/DataTypeBuilder.cs @@ -2,11 +2,12 @@ // See LICENSE for more details. using System; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Tests.Common.Builders.Interfaces; using Umbraco.Core.Serialization; -using Umbraco.Tests.Common.Builders.Interfaces; -namespace Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.Common.Builders { public class DataTypeBuilder : BuilderBase, @@ -50,7 +51,7 @@ namespace Umbraco.Tests.Common.Builders public override DataType Build() { - Core.PropertyEditors.IDataEditor editor = _dataEditorBuilder.Build(); + IDataEditor editor = _dataEditorBuilder.Build(); var parentId = _parentId ?? -1; var id = _id ?? 1; Guid key = _key ?? Guid.NewGuid(); diff --git a/src/Umbraco.Tests.Common/Builders/DataValueEditorBuilder.cs b/src/Umbraco.Tests.Common/Builders/DataValueEditorBuilder.cs index 70a8e2c706..7560ac9b2b 100644 --- a/src/Umbraco.Tests.Common/Builders/DataValueEditorBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/DataValueEditorBuilder.cs @@ -3,12 +3,13 @@ using System; using Moq; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; -namespace Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.Common.Builders { public class DataValueEditorBuilder : ChildBuilderBase { diff --git a/src/Umbraco.Tests.Common/Builders/DictionaryItemBuilder.cs b/src/Umbraco.Tests.Common/Builders/DictionaryItemBuilder.cs index 9ad4c4178e..7c7e68a9cb 100644 --- a/src/Umbraco.Tests.Common/Builders/DictionaryItemBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/DictionaryItemBuilder.cs @@ -4,10 +4,10 @@ using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders.Interfaces; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Builders.Interfaces; -namespace Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.Common.Builders { public class DictionaryItemBuilder : BuilderBase, diff --git a/src/Umbraco.Tests.Common/Builders/DictionaryTranslationBuilder.cs b/src/Umbraco.Tests.Common/Builders/DictionaryTranslationBuilder.cs index 6029097307..ea3dbe02c0 100644 --- a/src/Umbraco.Tests.Common/Builders/DictionaryTranslationBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/DictionaryTranslationBuilder.cs @@ -2,10 +2,10 @@ // See LICENSE for more details. using System; -using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders.Interfaces; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Builders.Interfaces; -namespace Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.Common.Builders { public class DictionaryTranslationBuilder : ChildBuilderBase, diff --git a/src/Umbraco.Tests.Common/Builders/DocumentEntitySlimBuilder.cs b/src/Umbraco.Tests.Common/Builders/DocumentEntitySlimBuilder.cs index 490f94f789..b597600301 100644 --- a/src/Umbraco.Tests.Common/Builders/DocumentEntitySlimBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/DocumentEntitySlimBuilder.cs @@ -3,10 +3,10 @@ using System; using System.Collections.Generic; -using Umbraco.Core.Models.Entities; -using Umbraco.Tests.Common.Builders.Interfaces; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Tests.Common.Builders.Interfaces; -namespace Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.Common.Builders { public class DocumentEntitySlimBuilder : BuilderBase, diff --git a/src/Umbraco.Tests.Common/Builders/EntitySlimBuilder.cs b/src/Umbraco.Tests.Common/Builders/EntitySlimBuilder.cs index ce35bb21b1..e5053db676 100644 --- a/src/Umbraco.Tests.Common/Builders/EntitySlimBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/EntitySlimBuilder.cs @@ -1,10 +1,10 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -using Umbraco.Core.Models.Entities; -using Umbraco.Tests.Common.Builders.Interfaces; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Tests.Common.Builders.Interfaces; -namespace Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.Common.Builders { public class EntitySlimBuilder : BuilderBase, diff --git a/src/Umbraco.Tests.Common/Builders/Extensions/BuilderExtensions.cs b/src/Umbraco.Tests.Common/Builders/Extensions/BuilderExtensions.cs index c93b150647..b563cc3ec4 100644 --- a/src/Umbraco.Tests.Common/Builders/Extensions/BuilderExtensions.cs +++ b/src/Umbraco.Tests.Common/Builders/Extensions/BuilderExtensions.cs @@ -3,10 +3,10 @@ using System; using System.Globalization; -using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders.Interfaces; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Builders.Interfaces; -namespace Umbraco.Tests.Common.Builders.Extensions +namespace Umbraco.Cms.Tests.Common.Builders.Extensions { public static class BuilderExtensions { diff --git a/src/Umbraco.Tests.Common/Builders/Extensions/ContentItemSaveBuilderExtensions.cs b/src/Umbraco.Tests.Common/Builders/Extensions/ContentItemSaveBuilderExtensions.cs index 04e95bd8a4..9167d3a77f 100644 --- a/src/Umbraco.Tests.Common/Builders/Extensions/ContentItemSaveBuilderExtensions.cs +++ b/src/Umbraco.Tests.Common/Builders/Extensions/ContentItemSaveBuilderExtensions.cs @@ -1,9 +1,9 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Tests.Common.Builders.Extensions +namespace Umbraco.Cms.Tests.Common.Builders.Extensions { public static class ContentItemSaveBuilderExtensions { diff --git a/src/Umbraco.Tests.Common/Builders/Extensions/ContentTypeBuilderExtensions.cs b/src/Umbraco.Tests.Common/Builders/Extensions/ContentTypeBuilderExtensions.cs index 4ff0bae60c..92adfd3d67 100644 --- a/src/Umbraco.Tests.Common/Builders/Extensions/ContentTypeBuilderExtensions.cs +++ b/src/Umbraco.Tests.Common/Builders/Extensions/ContentTypeBuilderExtensions.cs @@ -1,10 +1,10 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -using Umbraco.Core; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.Common.Builders.Extensions +namespace Umbraco.Cms.Tests.Common.Builders.Extensions { public static class ContentTypeBuilderExtensions { diff --git a/src/Umbraco.Tests.Common/Builders/Extensions/StringExtensions.cs b/src/Umbraco.Tests.Common/Builders/Extensions/StringExtensions.cs index e0fef2647f..45d5bdb354 100644 --- a/src/Umbraco.Tests.Common/Builders/Extensions/StringExtensions.cs +++ b/src/Umbraco.Tests.Common/Builders/Extensions/StringExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Tests.Common.Builders.Extensions +namespace Umbraco.Cms.Tests.Common.Builders.Extensions { public static class StringExtensions { diff --git a/src/Umbraco.Tests.Common/Builders/GenericCollectionBuilder.cs b/src/Umbraco.Tests.Common/Builders/GenericCollectionBuilder.cs index 7fc58e4961..69c9f6245f 100644 --- a/src/Umbraco.Tests.Common/Builders/GenericCollectionBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/GenericCollectionBuilder.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; using System.Linq; -namespace Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.Common.Builders { public class GenericCollectionBuilder : ChildBuilderBase> diff --git a/src/Umbraco.Tests.Common/Builders/GenericDictionaryBuilder.cs b/src/Umbraco.Tests.Common/Builders/GenericDictionaryBuilder.cs index 3d7823b612..371dd88cf3 100644 --- a/src/Umbraco.Tests.Common/Builders/GenericDictionaryBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/GenericDictionaryBuilder.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; -namespace Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.Common.Builders { public class GenericDictionaryBuilder : ChildBuilderBase> diff --git a/src/Umbraco.Tests.Common/Builders/Interfaces/IAccountBuilder.cs b/src/Umbraco.Tests.Common/Builders/Interfaces/IAccountBuilder.cs index 1249209418..74786d7e1f 100644 --- a/src/Umbraco.Tests.Common/Builders/Interfaces/IAccountBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/Interfaces/IAccountBuilder.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Tests.Common.Builders.Interfaces +namespace Umbraco.Cms.Tests.Common.Builders.Interfaces { public interface IAccountBuilder : IWithLoginBuilder, IWithEmailBuilder, diff --git a/src/Umbraco.Tests.Common/Builders/Interfaces/IBuildContentTypes.cs b/src/Umbraco.Tests.Common/Builders/Interfaces/IBuildContentTypes.cs index 740da59a10..d8cfcc70ca 100644 --- a/src/Umbraco.Tests.Common/Builders/Interfaces/IBuildContentTypes.cs +++ b/src/Umbraco.Tests.Common/Builders/Interfaces/IBuildContentTypes.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Tests.Common.Builders.Interfaces +namespace Umbraco.Cms.Tests.Common.Builders.Interfaces { public interface IBuildContentTypes { diff --git a/src/Umbraco.Tests.Common/Builders/Interfaces/IBuildPropertyGroups.cs b/src/Umbraco.Tests.Common/Builders/Interfaces/IBuildPropertyGroups.cs index 756aa19744..ea836503bc 100644 --- a/src/Umbraco.Tests.Common/Builders/Interfaces/IBuildPropertyGroups.cs +++ b/src/Umbraco.Tests.Common/Builders/Interfaces/IBuildPropertyGroups.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Tests.Common.Builders.Interfaces +namespace Umbraco.Cms.Tests.Common.Builders.Interfaces { public interface IBuildPropertyGroups { diff --git a/src/Umbraco.Tests.Common/Builders/Interfaces/IBuildPropertyTypes.cs b/src/Umbraco.Tests.Common/Builders/Interfaces/IBuildPropertyTypes.cs index 91a7c10041..c35d100163 100644 --- a/src/Umbraco.Tests.Common/Builders/Interfaces/IBuildPropertyTypes.cs +++ b/src/Umbraco.Tests.Common/Builders/Interfaces/IBuildPropertyTypes.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Tests.Common.Builders.Interfaces +namespace Umbraco.Cms.Tests.Common.Builders.Interfaces { public interface IBuildPropertyTypes { diff --git a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithAliasBuilder.cs b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithAliasBuilder.cs index cf4db5382b..7acef7bfb5 100644 --- a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithAliasBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithAliasBuilder.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Tests.Common.Builders.Interfaces +namespace Umbraco.Cms.Tests.Common.Builders.Interfaces { public interface IWithAliasBuilder { diff --git a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithCreateDateBuilder.cs b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithCreateDateBuilder.cs index 46745c4428..92b8212b2b 100644 --- a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithCreateDateBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithCreateDateBuilder.cs @@ -3,7 +3,7 @@ using System; -namespace Umbraco.Tests.Common.Builders.Interfaces +namespace Umbraco.Cms.Tests.Common.Builders.Interfaces { public interface IWithCreateDateBuilder { diff --git a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithCreatorIdBuilder.cs b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithCreatorIdBuilder.cs index 0f3e11a4de..685235860b 100644 --- a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithCreatorIdBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithCreatorIdBuilder.cs @@ -1,9 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -using System; - -namespace Umbraco.Tests.Common.Builders.Interfaces +namespace Umbraco.Cms.Tests.Common.Builders.Interfaces { public interface IWithCreatorIdBuilder { diff --git a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithCultureInfoBuilder.cs b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithCultureInfoBuilder.cs index bcb74c5c94..23bbdd344b 100644 --- a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithCultureInfoBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithCultureInfoBuilder.cs @@ -3,7 +3,7 @@ using System.Globalization; -namespace Umbraco.Tests.Common.Builders.Interfaces +namespace Umbraco.Cms.Tests.Common.Builders.Interfaces { public interface IWithCultureInfoBuilder { diff --git a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithDeleteDateBuilder.cs b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithDeleteDateBuilder.cs index 25042be231..a50a8294d8 100644 --- a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithDeleteDateBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithDeleteDateBuilder.cs @@ -3,7 +3,7 @@ using System; -namespace Umbraco.Tests.Common.Builders.Interfaces +namespace Umbraco.Cms.Tests.Common.Builders.Interfaces { public interface IWithDeleteDateBuilder { diff --git a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithDescriptionBuilder.cs b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithDescriptionBuilder.cs index 98d14d81bc..2b2bf4f369 100644 --- a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithDescriptionBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithDescriptionBuilder.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Tests.Common.Builders.Interfaces +namespace Umbraco.Cms.Tests.Common.Builders.Interfaces { public interface IWithDescriptionBuilder { diff --git a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithEmailBuilder.cs b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithEmailBuilder.cs index 4dd5708aaf..defec80a46 100644 --- a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithEmailBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithEmailBuilder.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Tests.Common.Builders.Interfaces +namespace Umbraco.Cms.Tests.Common.Builders.Interfaces { public interface IWithEmailBuilder { diff --git a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithFailedPasswordAttemptsBuilder.cs b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithFailedPasswordAttemptsBuilder.cs index 7669a7609e..0bf1121fa5 100644 --- a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithFailedPasswordAttemptsBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithFailedPasswordAttemptsBuilder.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Tests.Common.Builders.Interfaces +namespace Umbraco.Cms.Tests.Common.Builders.Interfaces { public interface IWithFailedPasswordAttemptsBuilder { diff --git a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithIconBuilder.cs b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithIconBuilder.cs index a58c8c554b..a2b5667701 100644 --- a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithIconBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithIconBuilder.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Tests.Common.Builders.Interfaces +namespace Umbraco.Cms.Tests.Common.Builders.Interfaces { public interface IWithIconBuilder { diff --git a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithIdBuilder.cs b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithIdBuilder.cs index 8f99388086..fe26c89d85 100644 --- a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithIdBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithIdBuilder.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Tests.Common.Builders.Interfaces +namespace Umbraco.Cms.Tests.Common.Builders.Interfaces { public interface IWithIdBuilder { diff --git a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithIsApprovedBuilder.cs b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithIsApprovedBuilder.cs index 2645bc8071..c9fc310592 100644 --- a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithIsApprovedBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithIsApprovedBuilder.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Tests.Common.Builders.Interfaces +namespace Umbraco.Cms.Tests.Common.Builders.Interfaces { public interface IWithIsApprovedBuilder { diff --git a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithIsContainerBuilder.cs b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithIsContainerBuilder.cs index a74f2b658f..f2b0a64d7b 100644 --- a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithIsContainerBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithIsContainerBuilder.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Tests.Common.Builders.Interfaces +namespace Umbraco.Cms.Tests.Common.Builders.Interfaces { public interface IWithIsContainerBuilder { diff --git a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithIsLockedOutBuilder.cs b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithIsLockedOutBuilder.cs index d10db7d881..3d3562a023 100644 --- a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithIsLockedOutBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithIsLockedOutBuilder.cs @@ -3,7 +3,7 @@ using System; -namespace Umbraco.Tests.Common.Builders.Interfaces +namespace Umbraco.Cms.Tests.Common.Builders.Interfaces { public interface IWithIsLockedOutBuilder { diff --git a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithKeyBuilder.cs b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithKeyBuilder.cs index a709dff734..a4da641d96 100644 --- a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithKeyBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithKeyBuilder.cs @@ -3,7 +3,7 @@ using System; -namespace Umbraco.Tests.Common.Builders.Interfaces +namespace Umbraco.Cms.Tests.Common.Builders.Interfaces { public interface IWithKeyBuilder { diff --git a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithLastLoginDateBuilder.cs b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithLastLoginDateBuilder.cs index 9b969a210e..e01a1ef19d 100644 --- a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithLastLoginDateBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithLastLoginDateBuilder.cs @@ -3,7 +3,7 @@ using System; -namespace Umbraco.Tests.Common.Builders.Interfaces +namespace Umbraco.Cms.Tests.Common.Builders.Interfaces { public interface IWithLastLoginDateBuilder { diff --git a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithLastPasswordChangeDateBuilder.cs b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithLastPasswordChangeDateBuilder.cs index ffd7019404..e7b354217d 100644 --- a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithLastPasswordChangeDateBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithLastPasswordChangeDateBuilder.cs @@ -3,7 +3,7 @@ using System; -namespace Umbraco.Tests.Common.Builders.Interfaces +namespace Umbraco.Cms.Tests.Common.Builders.Interfaces { public interface IWithLastPasswordChangeDateBuilder { diff --git a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithLevelBuilder.cs b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithLevelBuilder.cs index 51d08e9143..0b55ce5766 100644 --- a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithLevelBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithLevelBuilder.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Tests.Common.Builders.Interfaces +namespace Umbraco.Cms.Tests.Common.Builders.Interfaces { public interface IWithLevelBuilder { diff --git a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithLoginBuilder.cs b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithLoginBuilder.cs index 8ab04bcc3f..905a90cb7e 100644 --- a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithLoginBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithLoginBuilder.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Tests.Common.Builders.Interfaces +namespace Umbraco.Cms.Tests.Common.Builders.Interfaces { public interface IWithLoginBuilder { diff --git a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithNameBuilder.cs b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithNameBuilder.cs index 17962dc678..494a9e3200 100644 --- a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithNameBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithNameBuilder.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Tests.Common.Builders.Interfaces +namespace Umbraco.Cms.Tests.Common.Builders.Interfaces { public interface IWithNameBuilder { diff --git a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithParentContentTypeBuilder.cs b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithParentContentTypeBuilder.cs index c5357164a5..3a284e4026 100644 --- a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithParentContentTypeBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithParentContentTypeBuilder.cs @@ -1,9 +1,9 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Tests.Common.Builders.Interfaces +namespace Umbraco.Cms.Tests.Common.Builders.Interfaces { public interface IWithParentContentTypeBuilder { diff --git a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithParentIdBuilder.cs b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithParentIdBuilder.cs index edba880af8..68bb7afe0c 100644 --- a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithParentIdBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithParentIdBuilder.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Tests.Common.Builders.Interfaces +namespace Umbraco.Cms.Tests.Common.Builders.Interfaces { public interface IWithParentIdBuilder { diff --git a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithPathBuilder.cs b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithPathBuilder.cs index 9fb99bc825..84e56a132d 100644 --- a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithPathBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithPathBuilder.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Tests.Common.Builders.Interfaces +namespace Umbraco.Cms.Tests.Common.Builders.Interfaces { public interface IWithPathBuilder { diff --git a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithPropertyTypeIdsIncrementingFrom.cs b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithPropertyTypeIdsIncrementingFrom.cs index 215b0d3791..00a1649c51 100644 --- a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithPropertyTypeIdsIncrementingFrom.cs +++ b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithPropertyTypeIdsIncrementingFrom.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Tests.Common.Builders.Interfaces +namespace Umbraco.Cms.Tests.Common.Builders.Interfaces { public interface IWithPropertyTypeIdsIncrementingFrom { diff --git a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithPropertyValues.cs b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithPropertyValues.cs index 06ac06070c..f6e99c8bfd 100644 --- a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithPropertyValues.cs +++ b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithPropertyValues.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Tests.Common.Builders.Interfaces +namespace Umbraco.Cms.Tests.Common.Builders.Interfaces { public interface IWithPropertyValues { diff --git a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithSortOrderBuilder.cs b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithSortOrderBuilder.cs index 8b23fd2b95..6f60f58d84 100644 --- a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithSortOrderBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithSortOrderBuilder.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Tests.Common.Builders.Interfaces +namespace Umbraco.Cms.Tests.Common.Builders.Interfaces { public interface IWithSortOrderBuilder { diff --git a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithSupportsPublishing.cs b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithSupportsPublishing.cs index 4b9f9e805b..4a7bfca964 100644 --- a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithSupportsPublishing.cs +++ b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithSupportsPublishing.cs @@ -1,9 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -using System; - -namespace Umbraco.Tests.Common.Builders.Interfaces +namespace Umbraco.Cms.Tests.Common.Builders.Interfaces { public interface IWithSupportsPublishing { diff --git a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithThumbnailBuilder.cs b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithThumbnailBuilder.cs index 59b4fbff81..92f8edef3b 100644 --- a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithThumbnailBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithThumbnailBuilder.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Tests.Common.Builders.Interfaces +namespace Umbraco.Cms.Tests.Common.Builders.Interfaces { public interface IWithThumbnailBuilder { diff --git a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithTrashedBuilder.cs b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithTrashedBuilder.cs index fe155aa07a..b75bf05286 100644 --- a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithTrashedBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithTrashedBuilder.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Tests.Common.Builders.Interfaces +namespace Umbraco.Cms.Tests.Common.Builders.Interfaces { public interface IWithTrashedBuilder { diff --git a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithUpdateDateBuilder.cs b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithUpdateDateBuilder.cs index 9c01286179..8264b91dbc 100644 --- a/src/Umbraco.Tests.Common/Builders/Interfaces/IWithUpdateDateBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/Interfaces/IWithUpdateDateBuilder.cs @@ -3,7 +3,7 @@ using System; -namespace Umbraco.Tests.Common.Builders.Interfaces +namespace Umbraco.Cms.Tests.Common.Builders.Interfaces { public interface IWithUpdateDateBuilder { diff --git a/src/Umbraco.Tests.Common/Builders/LanguageBuilder.cs b/src/Umbraco.Tests.Common/Builders/LanguageBuilder.cs index 653d729dfd..61d60334b5 100644 --- a/src/Umbraco.Tests.Common/Builders/LanguageBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/LanguageBuilder.cs @@ -3,11 +3,11 @@ using System; using System.Globalization; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders.Interfaces; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Builders.Interfaces; -namespace Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.Common.Builders { public class LanguageBuilder : LanguageBuilder { diff --git a/src/Umbraco.Tests.Common/Builders/MacroBuilder.cs b/src/Umbraco.Tests.Common/Builders/MacroBuilder.cs index 4206dcc3de..1039be4b75 100644 --- a/src/Umbraco.Tests.Common/Builders/MacroBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/MacroBuilder.cs @@ -4,12 +4,12 @@ using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core.Models; -using Umbraco.Core.Strings; -using Umbraco.Tests.Common.Builders.Extensions; -using Umbraco.Tests.Common.Builders.Interfaces; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Tests.Common.Builders.Interfaces; -namespace Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.Common.Builders { public class MacroBuilder : BuilderBase, diff --git a/src/Umbraco.Tests.Common/Builders/MacroPropertyBuilder.cs b/src/Umbraco.Tests.Common/Builders/MacroPropertyBuilder.cs index 15532b9cc9..2e88dcb8e6 100644 --- a/src/Umbraco.Tests.Common/Builders/MacroPropertyBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/MacroPropertyBuilder.cs @@ -2,11 +2,11 @@ // See LICENSE for more details. using System; -using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders.Extensions; -using Umbraco.Tests.Common.Builders.Interfaces; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Tests.Common.Builders.Interfaces; -namespace Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.Common.Builders { public class MacroPropertyBuilder : ChildBuilderBase, diff --git a/src/Umbraco.Tests.Common/Builders/MediaBuilder.cs b/src/Umbraco.Tests.Common/Builders/MediaBuilder.cs index a2afe1c964..57303651f1 100644 --- a/src/Umbraco.Tests.Common/Builders/MediaBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/MediaBuilder.cs @@ -3,13 +3,13 @@ using System; using System.Collections.Generic; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders.Extensions; -using Umbraco.Tests.Common.Builders.Interfaces; -using Umbraco.Tests.Testing; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Tests.Common.Builders.Interfaces; +using Umbraco.Cms.Tests.Common.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.Common.Builders { public class MediaBuilder : BuilderBase, diff --git a/src/Umbraco.Tests.Common/Builders/MediaTypeBuilder.cs b/src/Umbraco.Tests.Common/Builders/MediaTypeBuilder.cs index 668dbbc961..6c11f99b08 100644 --- a/src/Umbraco.Tests.Common/Builders/MediaTypeBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/MediaTypeBuilder.cs @@ -3,12 +3,12 @@ using System.Collections.Generic; using System.Linq; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders.Extensions; -using Umbraco.Tests.Common.Builders.Interfaces; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Tests.Common.Builders.Interfaces; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.Common.Builders { public class MediaTypeBuilder : ContentTypeBaseBuilder, diff --git a/src/Umbraco.Tests.Common/Builders/MemberBuilder.cs b/src/Umbraco.Tests.Common/Builders/MemberBuilder.cs index 3eacfaaff0..fd6e272fc4 100644 --- a/src/Umbraco.Tests.Common/Builders/MemberBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/MemberBuilder.cs @@ -3,11 +3,11 @@ using System; using System.Collections.Generic; -using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders.Extensions; -using Umbraco.Tests.Common.Builders.Interfaces; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Tests.Common.Builders.Interfaces; -namespace Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.Common.Builders { public class MemberBuilder : BuilderBase, diff --git a/src/Umbraco.Tests.Common/Builders/MemberGroupBuilder.cs b/src/Umbraco.Tests.Common/Builders/MemberGroupBuilder.cs index 41bc4eb5c4..53fdaaad7a 100644 --- a/src/Umbraco.Tests.Common/Builders/MemberGroupBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/MemberGroupBuilder.cs @@ -3,10 +3,10 @@ using System; using System.Collections.Generic; -using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders.Interfaces; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Builders.Interfaces; -namespace Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.Common.Builders { public class MemberGroupBuilder : BuilderBase, diff --git a/src/Umbraco.Tests.Common/Builders/MemberTypeBuilder.cs b/src/Umbraco.Tests.Common/Builders/MemberTypeBuilder.cs index 480a07890a..fd8e687c34 100644 --- a/src/Umbraco.Tests.Common/Builders/MemberTypeBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/MemberTypeBuilder.cs @@ -3,12 +3,12 @@ using System.Collections.Generic; using System.Linq; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders.Extensions; -using Umbraco.Tests.Common.Builders.Interfaces; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Tests.Common.Builders.Interfaces; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.Common.Builders { public class MemberTypeBuilder : ContentTypeBaseBuilder, diff --git a/src/Umbraco.Tests.Common/Builders/PropertyBuilder.cs b/src/Umbraco.Tests.Common/Builders/PropertyBuilder.cs index f6e3ab2557..de017c1353 100644 --- a/src/Umbraco.Tests.Common/Builders/PropertyBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/PropertyBuilder.cs @@ -2,10 +2,10 @@ // See LICENSE for more details. using System; -using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders.Interfaces; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Builders.Interfaces; -namespace Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.Common.Builders { public class PropertyBuilder : BuilderBase, diff --git a/src/Umbraco.Tests.Common/Builders/PropertyGroupBuilder.cs b/src/Umbraco.Tests.Common/Builders/PropertyGroupBuilder.cs index be177a3138..0a2e2b6c48 100644 --- a/src/Umbraco.Tests.Common/Builders/PropertyGroupBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/PropertyGroupBuilder.cs @@ -4,10 +4,10 @@ using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders.Interfaces; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Builders.Interfaces; -namespace Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.Common.Builders { public class PropertyGroupBuilder : PropertyGroupBuilder { diff --git a/src/Umbraco.Tests.Common/Builders/PropertyTypeBuilder.cs b/src/Umbraco.Tests.Common/Builders/PropertyTypeBuilder.cs index f541616d17..e41ab16436 100644 --- a/src/Umbraco.Tests.Common/Builders/PropertyTypeBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/PropertyTypeBuilder.cs @@ -2,13 +2,13 @@ // See LICENSE for more details. using System; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Strings; -using Umbraco.Tests.Common.Builders.Extensions; -using Umbraco.Tests.Common.Builders.Interfaces; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Tests.Common.Builders.Interfaces; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.Common.Builders { public class PropertyTypeBuilder : PropertyTypeBuilder { diff --git a/src/Umbraco.Tests.Common/Builders/RelationBuilder.cs b/src/Umbraco.Tests.Common/Builders/RelationBuilder.cs index 8824e9b20e..10585f2410 100644 --- a/src/Umbraco.Tests.Common/Builders/RelationBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/RelationBuilder.cs @@ -2,10 +2,10 @@ // See LICENSE for more details. using System; -using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders.Interfaces; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Builders.Interfaces; -namespace Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.Common.Builders { public class RelationBuilder : BuilderBase, diff --git a/src/Umbraco.Tests.Common/Builders/RelationTypeBuilder.cs b/src/Umbraco.Tests.Common/Builders/RelationTypeBuilder.cs index 4b1953322a..2bd9dc124d 100644 --- a/src/Umbraco.Tests.Common/Builders/RelationTypeBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/RelationTypeBuilder.cs @@ -2,10 +2,10 @@ // See LICENSE for more details. using System; -using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders.Interfaces; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Builders.Interfaces; -namespace Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.Common.Builders { public class RelationTypeBuilder : ChildBuilderBase, diff --git a/src/Umbraco.Tests.Common/Builders/StylesheetBuilder.cs b/src/Umbraco.Tests.Common/Builders/StylesheetBuilder.cs index b293cb7bb8..7e557d19cc 100644 --- a/src/Umbraco.Tests.Common/Builders/StylesheetBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/StylesheetBuilder.cs @@ -1,9 +1,9 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.Common.Builders { public class StylesheetBuilder : BuilderBase diff --git a/src/Umbraco.Tests.Common/Builders/TemplateBuilder.cs b/src/Umbraco.Tests.Common/Builders/TemplateBuilder.cs index 35a32a8d9f..f1c05bc969 100644 --- a/src/Umbraco.Tests.Common/Builders/TemplateBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/TemplateBuilder.cs @@ -2,12 +2,12 @@ // See LICENSE for more details. using System; -using Umbraco.Core.Models; -using Umbraco.Core.Strings; -using Umbraco.Tests.Common.Builders.Extensions; -using Umbraco.Tests.Common.Builders.Interfaces; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Tests.Common.Builders.Interfaces; -namespace Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.Common.Builders { public class TemplateBuilder : ChildBuilderBase, diff --git a/src/Umbraco.Tests.Common/Builders/TreeBuilder.cs b/src/Umbraco.Tests.Common/Builders/TreeBuilder.cs index 29a78ef4d7..7fc29e1c57 100644 --- a/src/Umbraco.Tests.Common/Builders/TreeBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/TreeBuilder.cs @@ -1,11 +1,11 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -using Umbraco.Core; -using Umbraco.Tests.Common.Builders.Interfaces; -using Umbraco.Web.Trees; +using Umbraco.Cms.Core.Trees; +using Umbraco.Cms.Tests.Common.Builders.Interfaces; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.Common.Builders { public class TreeBuilder : BuilderBase, diff --git a/src/Umbraco.Tests.Common/Builders/UserBuilder.cs b/src/Umbraco.Tests.Common/Builders/UserBuilder.cs index 14ec8f6a99..95fbc3a435 100644 --- a/src/Umbraco.Tests.Common/Builders/UserBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/UserBuilder.cs @@ -4,12 +4,13 @@ using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Models.Membership; -using Umbraco.Tests.Common.Builders.Extensions; -using Umbraco.Tests.Common.Builders.Interfaces; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Tests.Common.Builders.Interfaces; +using Umbraco.Extensions; -namespace Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.Common.Builders { public class UserBuilder : UserBuilder { diff --git a/src/Umbraco.Tests.Common/Builders/UserGroupBuilder.cs b/src/Umbraco.Tests.Common/Builders/UserGroupBuilder.cs index ef1733dc7d..bec92bcd8e 100644 --- a/src/Umbraco.Tests.Common/Builders/UserGroupBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/UserGroupBuilder.cs @@ -4,12 +4,12 @@ using System.Collections.Generic; using System.Linq; using Moq; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Strings; -using Umbraco.Tests.Common.Builders.Extensions; -using Umbraco.Tests.Common.Builders.Interfaces; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Tests.Common.Builders.Interfaces; +using Umbraco.Cms.Tests.Common.Builders.Extensions; -namespace Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.Common.Builders { public class UserGroupBuilder : UserGroupBuilder { diff --git a/src/Umbraco.Tests.Common/Builders/XmlDocumentBuilder.cs b/src/Umbraco.Tests.Common/Builders/XmlDocumentBuilder.cs index 431b86c57c..17a07bf9b2 100644 --- a/src/Umbraco.Tests.Common/Builders/XmlDocumentBuilder.cs +++ b/src/Umbraco.Tests.Common/Builders/XmlDocumentBuilder.cs @@ -3,7 +3,7 @@ using System.Xml; -namespace Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.Common.Builders { public class XmlDocumentBuilder : BuilderBase { diff --git a/src/Umbraco.Tests.Common/Extensions/ContentBaseExtensions.cs b/src/Umbraco.Tests.Common/Extensions/ContentBaseExtensions.cs index 148bd467db..7ba0f8377e 100644 --- a/src/Umbraco.Tests.Common/Extensions/ContentBaseExtensions.cs +++ b/src/Umbraco.Tests.Common/Extensions/ContentBaseExtensions.cs @@ -3,9 +3,9 @@ using System; using System.Reflection; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Tests.Testing +namespace Umbraco.Cms.Tests.Common.Extensions { public static class ContentBaseExtensions { diff --git a/src/Umbraco.Tests.Common/Published/PublishedSnapshotTestObjects.cs b/src/Umbraco.Tests.Common/Published/PublishedSnapshotTestObjects.cs index 2fb6c305fb..a3e8ee410a 100644 --- a/src/Umbraco.Tests.Common/Published/PublishedSnapshotTestObjects.cs +++ b/src/Umbraco.Tests.Common/Published/PublishedSnapshotTestObjects.cs @@ -3,10 +3,10 @@ using System.Collections.Generic; using Moq; -using Umbraco.Core; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Extensions; -namespace Umbraco.Tests.Published +namespace Umbraco.Cms.Tests.Common.Published { public class PublishedSnapshotTestObjects { diff --git a/src/Umbraco.Tests.Common/TestClone.cs b/src/Umbraco.Tests.Common/TestClone.cs index 4aa957e376..f8f06263a3 100644 --- a/src/Umbraco.Tests.Common/TestClone.cs +++ b/src/Umbraco.Tests.Common/TestClone.cs @@ -2,9 +2,9 @@ // See LICENSE for more details. using System; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Tests.Common +namespace Umbraco.Cms.Tests.Common { public class TestClone : IDeepCloneable, IEquatable { diff --git a/src/Umbraco.Tests.Common/TestDefaultCultureAccessor.cs b/src/Umbraco.Tests.Common/TestDefaultCultureAccessor.cs index 77b3793f26..d193e7aa83 100644 --- a/src/Umbraco.Tests.Common/TestDefaultCultureAccessor.cs +++ b/src/Umbraco.Tests.Common/TestDefaultCultureAccessor.cs @@ -1,9 +1,9 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -using Umbraco.Web.PublishedCache; +using Umbraco.Cms.Core.PublishedCache; -namespace Umbraco.Tests.Common +namespace Umbraco.Cms.Tests.Common { public class TestDefaultCultureAccessor : IDefaultCultureAccessor { diff --git a/src/Umbraco.Tests.Common/TestHelperBase.cs b/src/Umbraco.Tests.Common/TestHelperBase.cs index 732c9df5c2..ee3dc07b85 100644 --- a/src/Umbraco.Tests.Common/TestHelperBase.cs +++ b/src/Umbraco.Tests.Common/TestHelperBase.cs @@ -8,25 +8,28 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging.Abstractions; using Moq; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Composing; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Diagnostics; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; -using Umbraco.Core.Logging; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Diagnostics; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Net; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Runtime; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Tests.Common.TestHelpers; using Umbraco.Core.Persistence; using Umbraco.Core.Serialization; -using Umbraco.Core.Strings; -using Umbraco.Net; -using Umbraco.Tests.Common.TestHelpers; -using Umbraco.Web; -using Umbraco.Web.Routing; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.Common +namespace Umbraco.Cms.Tests.Common { /// /// Common helper properties and methods useful to testing diff --git a/src/Umbraco.Tests.Common/TestHelpers/LogTestHelper.cs b/src/Umbraco.Tests.Common/TestHelpers/LogTestHelper.cs index 9f04ef7307..236562df2a 100644 --- a/src/Umbraco.Tests.Common/TestHelpers/LogTestHelper.cs +++ b/src/Umbraco.Tests.Common/TestHelpers/LogTestHelper.cs @@ -5,7 +5,7 @@ using System; using Microsoft.Extensions.Logging; using Moq; -namespace Umbraco.Tests.Common.TestHelpers +namespace Umbraco.Cms.Tests.Common.TestHelpers { public static class LogTestHelper { diff --git a/src/Umbraco.Tests.Common/TestHelpers/MockedValueEditors.cs b/src/Umbraco.Tests.Common/TestHelpers/MockedValueEditors.cs index 9069bdcbf0..2cd245964a 100644 --- a/src/Umbraco.Tests.Common/TestHelpers/MockedValueEditors.cs +++ b/src/Umbraco.Tests.Common/TestHelpers/MockedValueEditors.cs @@ -2,12 +2,12 @@ // See LICENSE for more details. using Moq; -using Umbraco.Core.PropertyEditors; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; -namespace Umbraco.Tests.TestHelpers.Entities +namespace Umbraco.Cms.Tests.Common.TestHelpers { public class MockedValueEditors { diff --git a/src/Umbraco.Tests.Common/TestHelpers/SolidPublishedSnapshot.cs b/src/Umbraco.Tests.Common/TestHelpers/SolidPublishedSnapshot.cs index f14b6633ba..fac95cfd6d 100644 --- a/src/Umbraco.Tests.Common/TestHelpers/SolidPublishedSnapshot.cs +++ b/src/Umbraco.Tests.Common/TestHelpers/SolidPublishedSnapshot.cs @@ -6,17 +6,19 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; using Moq; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.PropertyEditors; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Core.Xml; using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; -using Umbraco.Web.PublishedCache; +using Umbraco.Extensions; -namespace Umbraco.Tests.Common.PublishedContent +namespace Umbraco.Cms.Tests.Common.TestHelpers { public class SolidPublishedSnapshot : IPublishedSnapshot { @@ -77,13 +79,13 @@ namespace Umbraco.Tests.Common.PublishedContent public override IEnumerable GetAtRoot(bool preview, string culture = null) => _content.Values.Where(x => x.Parent == null); - public override IPublishedContent GetSingleByXPath(bool preview, string xpath, Core.Xml.XPathVariable[] vars) => throw new NotImplementedException(); + public override IPublishedContent GetSingleByXPath(bool preview, string xpath, XPathVariable[] vars) => throw new NotImplementedException(); - public override IPublishedContent GetSingleByXPath(bool preview, System.Xml.XPath.XPathExpression xpath, Core.Xml.XPathVariable[] vars) => throw new NotImplementedException(); + public override IPublishedContent GetSingleByXPath(bool preview, System.Xml.XPath.XPathExpression xpath, XPathVariable[] vars) => throw new NotImplementedException(); - public override IEnumerable GetByXPath(bool preview, string xpath, Core.Xml.XPathVariable[] vars) => throw new NotImplementedException(); + public override IEnumerable GetByXPath(bool preview, string xpath, XPathVariable[] vars) => throw new NotImplementedException(); - public override IEnumerable GetByXPath(bool preview, System.Xml.XPath.XPathExpression xpath, Core.Xml.XPathVariable[] vars) => throw new NotImplementedException(); + public override IEnumerable GetByXPath(bool preview, System.Xml.XPath.XPathExpression xpath, XPathVariable[] vars) => throw new NotImplementedException(); public override System.Xml.XPath.XPathNavigator CreateNavigator(bool preview) => throw new NotImplementedException(); diff --git a/src/Umbraco.Tests.Common/TestHelpers/StringNewlineExtensions.cs b/src/Umbraco.Tests.Common/TestHelpers/StringNewlineExtensions.cs index 70e84a41c2..b4efb2d7c5 100644 --- a/src/Umbraco.Tests.Common/TestHelpers/StringNewlineExtensions.cs +++ b/src/Umbraco.Tests.Common/TestHelpers/StringNewlineExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Tests +namespace Umbraco.Cms.Tests.Common.TestHelpers { public static class StringNewLineExtensions { diff --git a/src/Umbraco.Tests.Common/TestHelpers/Stubs/TestProfiler.cs b/src/Umbraco.Tests.Common/TestHelpers/Stubs/TestProfiler.cs index 478fde32d4..52d2e0da62 100644 --- a/src/Umbraco.Tests.Common/TestHelpers/Stubs/TestProfiler.cs +++ b/src/Umbraco.Tests.Common/TestHelpers/Stubs/TestProfiler.cs @@ -4,9 +4,9 @@ using System; using StackExchange.Profiling; using StackExchange.Profiling.SqlFormatters; -using Umbraco.Core.Logging; +using Umbraco.Cms.Core.Logging; -namespace Umbraco.Tests.TestHelpers.Stubs +namespace Umbraco.Cms.Tests.Common.TestHelpers.Stubs { public class TestProfiler : IProfiler { diff --git a/src/Umbraco.Tests.Common/TestHelpers/TestDatabase.cs b/src/Umbraco.Tests.Common/TestHelpers/TestDatabase.cs index 3f388c8612..0e8aaedc80 100644 --- a/src/Umbraco.Tests.Common/TestHelpers/TestDatabase.cs +++ b/src/Umbraco.Tests.Common/TestHelpers/TestDatabase.cs @@ -16,7 +16,7 @@ using Umbraco.Core.Migrations.Install; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.SqlSyntax; -namespace Umbraco.Tests.Testing +namespace Umbraco.Cms.Tests.Common.TestHelpers { /// /// An implementation of for tests. diff --git a/src/Umbraco.Tests.Common/TestHelpers/TestEnvironment.cs b/src/Umbraco.Tests.Common/TestHelpers/TestEnvironment.cs index d0e9fe879f..38c346a944 100644 --- a/src/Umbraco.Tests.Common/TestHelpers/TestEnvironment.cs +++ b/src/Umbraco.Tests.Common/TestHelpers/TestEnvironment.cs @@ -3,7 +3,7 @@ using System.Runtime.InteropServices; -namespace Umbraco.Tests.Common.TestHelpers +namespace Umbraco.Cms.Tests.Common.TestHelpers { public static class TestEnvironment { diff --git a/src/Umbraco.Tests.Common/TestPublishedSnapshotAccessor.cs b/src/Umbraco.Tests.Common/TestPublishedSnapshotAccessor.cs index 6b2bc69e24..cab51ae91b 100644 --- a/src/Umbraco.Tests.Common/TestPublishedSnapshotAccessor.cs +++ b/src/Umbraco.Tests.Common/TestPublishedSnapshotAccessor.cs @@ -1,9 +1,9 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -using Umbraco.Web.PublishedCache; +using Umbraco.Cms.Core.PublishedCache; -namespace Umbraco.Tests.Common +namespace Umbraco.Cms.Tests.Common { public class TestPublishedSnapshotAccessor : IPublishedSnapshotAccessor { diff --git a/src/Umbraco.Tests.Common/TestUmbracoContextAccessor.cs b/src/Umbraco.Tests.Common/TestUmbracoContextAccessor.cs index 3c88765f44..868c3f1806 100644 --- a/src/Umbraco.Tests.Common/TestUmbracoContextAccessor.cs +++ b/src/Umbraco.Tests.Common/TestUmbracoContextAccessor.cs @@ -1,9 +1,9 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -using Umbraco.Web; +using Umbraco.Cms.Core.Web; -namespace Umbraco.Tests.Common +namespace Umbraco.Cms.Tests.Common { public class TestUmbracoContextAccessor : IUmbracoContextAccessor { diff --git a/src/Umbraco.Tests.Common/TestVariationContextAccessor.cs b/src/Umbraco.Tests.Common/TestVariationContextAccessor.cs index c1ff438b8c..484d0d0511 100644 --- a/src/Umbraco.Tests.Common/TestVariationContextAccessor.cs +++ b/src/Umbraco.Tests.Common/TestVariationContextAccessor.cs @@ -1,9 +1,9 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.PublishedContent; -namespace Umbraco.Tests.Common +namespace Umbraco.Cms.Tests.Common { /// /// Provides an implementation of for tests. diff --git a/src/Umbraco.Tests.Common/Testing/TestOptionAttributeBase.cs b/src/Umbraco.Tests.Common/Testing/TestOptionAttributeBase.cs index 9520532eaa..1e62f1827c 100644 --- a/src/Umbraco.Tests.Common/Testing/TestOptionAttributeBase.cs +++ b/src/Umbraco.Tests.Common/Testing/TestOptionAttributeBase.cs @@ -6,9 +6,9 @@ using System.Collections.Generic; using System.Linq; using System.Reflection; using NUnit.Framework; -using Umbraco.Core.Exceptions; +using Umbraco.Cms.Core.Exceptions; -namespace Umbraco.Tests.Testing +namespace Umbraco.Cms.Tests.Common.Testing { public abstract class TestOptionAttributeBase : Attribute { diff --git a/src/Umbraco.Tests.Common/Testing/UmbracoTestAttribute.cs b/src/Umbraco.Tests.Common/Testing/UmbracoTestAttribute.cs index b21d8b0614..7537ba1a82 100644 --- a/src/Umbraco.Tests.Common/Testing/UmbracoTestAttribute.cs +++ b/src/Umbraco.Tests.Common/Testing/UmbracoTestAttribute.cs @@ -2,9 +2,9 @@ // See LICENSE for more details. using System; -using Umbraco.Core; +using Umbraco.Cms.Core; -namespace Umbraco.Tests.Testing +namespace Umbraco.Cms.Tests.Common.Testing { [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, /*AllowMultiple = false,*/ Inherited = false)] public class UmbracoTestAttribute : TestOptionAttributeBase diff --git a/src/Umbraco.Tests.Common/Testing/UmbracoTestOptions.cs b/src/Umbraco.Tests.Common/Testing/UmbracoTestOptions.cs index 477148e300..a0286f1be3 100644 --- a/src/Umbraco.Tests.Common/Testing/UmbracoTestOptions.cs +++ b/src/Umbraco.Tests.Common/Testing/UmbracoTestOptions.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Tests.Testing +namespace Umbraco.Cms.Tests.Common.Testing { public static class UmbracoTestOptions { diff --git a/src/Umbraco.Tests.Common/Umbraco.Tests.Common.csproj b/src/Umbraco.Tests.Common/Umbraco.Tests.Common.csproj index 6fd77a4dbe..b02c1a5a29 100644 --- a/src/Umbraco.Tests.Common/Umbraco.Tests.Common.csproj +++ b/src/Umbraco.Tests.Common/Umbraco.Tests.Common.csproj @@ -3,6 +3,7 @@ netstandard2.0 latest + Umbraco.Cms.Tests.Common diff --git a/src/Umbraco.Tests.Integration/Cache/DistributedCacheBinderTests.cs b/src/Umbraco.Tests.Integration/Cache/DistributedCacheBinderTests.cs index f986092574..4a0f30387b 100644 --- a/src/Umbraco.Tests.Integration/Cache/DistributedCacheBinderTests.cs +++ b/src/Umbraco.Tests.Integration/Cache/DistributedCacheBinderTests.cs @@ -2,16 +2,17 @@ using System.Linq; using System.Threading; using NUnit.Framework; -using Umbraco.Core.Events; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Services; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; -using Umbraco.Web; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Web.Cache; -namespace Umbraco.Tests.Cache +namespace Umbraco.Cms.Tests.Integration.Cache { [TestFixture] [UmbracoTest(Boot = true)] diff --git a/src/Umbraco.Tests.Integration/ComponentRuntimeTests.cs b/src/Umbraco.Tests.Integration/ComponentRuntimeTests.cs index ba6c6473fa..ddac52872f 100644 --- a/src/Umbraco.Tests.Integration/ComponentRuntimeTests.cs +++ b/src/Umbraco.Tests.Integration/ComponentRuntimeTests.cs @@ -1,28 +1,18 @@ using System.Linq; using System.Threading; using System.Threading.Tasks; -using Microsoft.AspNetCore.Builder; -using Microsoft.AspNetCore.Hosting; -using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Composing; -using Umbraco.Core.DependencyInjection; -using Umbraco.Extensions; -using Umbraco.Infrastructure.PublishedCache.DependencyInjection; -using Umbraco.Tests.Integration.Extensions; -using Umbraco.Tests.Integration.Implementations; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; -using Umbraco.Web.Common.DependencyInjection; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.DependencyInjection; +using Umbraco.Cms.Core.Runtime; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; -namespace Umbraco.Tests.Integration +namespace Umbraco.Cms.Tests.Integration { - [TestFixture] [UmbracoTest(Boot = true)] public class ComponentRuntimeTests : UmbracoIntegrationTest diff --git a/src/Umbraco.Tests.Integration/DependencyInjection/UmbracoBuilderExtensions.cs b/src/Umbraco.Tests.Integration/DependencyInjection/UmbracoBuilderExtensions.cs index 531bc610bf..1c5b05ca2f 100644 --- a/src/Umbraco.Tests.Integration/DependencyInjection/UmbracoBuilderExtensions.cs +++ b/src/Umbraco.Tests.Integration/DependencyInjection/UmbracoBuilderExtensions.cs @@ -9,24 +9,24 @@ using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.DependencyInjection; -using Umbraco.Core.Logging; -using Umbraco.Core.Runtime; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.DependencyInjection; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Runtime; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Sync; +using Umbraco.Cms.Core.WebAssets; +using Umbraco.Cms.Infrastructure.PublishedCache; +using Umbraco.Cms.Tests.Common.TestHelpers.Stubs; +using Umbraco.Cms.Tests.Integration.Implementations; using Umbraco.Core.Services.Implement; -using Umbraco.Core.Sync; -using Umbraco.Core.WebAssets; using Umbraco.Examine; +using Umbraco.Extensions; using Umbraco.Infrastructure.HostedServices; -using Umbraco.Tests.Integration.Implementations; -using Umbraco.Tests.TestHelpers.Stubs; -using Umbraco.Web.PublishedCache.NuCache; using Umbraco.Web.Search; -namespace Umbraco.Tests.Integration.DependencyInjection +namespace Umbraco.Cms.Tests.Integration.DependencyInjection { /// /// This is used to replace certain services that are normally registered from our Core / Infrastructure that diff --git a/src/Umbraco.Tests.Integration/Extensions/ServiceCollectionExtensions.cs b/src/Umbraco.Tests.Integration/Extensions/ServiceCollectionExtensions.cs index cc01a08287..5b6a1db805 100644 --- a/src/Umbraco.Tests.Integration/Extensions/ServiceCollectionExtensions.cs +++ b/src/Umbraco.Tests.Integration/Extensions/ServiceCollectionExtensions.cs @@ -5,9 +5,9 @@ using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; -using Umbraco.Tests.Integration.Implementations; +using Umbraco.Cms.Tests.Integration.Implementations; -namespace Umbraco.Tests.Integration.Extensions +namespace Umbraco.Cms.Tests.Integration.Extensions { public static class ServiceCollectionExtensions { diff --git a/src/Umbraco.Tests.Integration/GlobalSetupTeardown.cs b/src/Umbraco.Tests.Integration/GlobalSetupTeardown.cs index 4aca5ff98a..c952fcc663 100644 --- a/src/Umbraco.Tests.Integration/GlobalSetupTeardown.cs +++ b/src/Umbraco.Tests.Integration/GlobalSetupTeardown.cs @@ -6,7 +6,7 @@ using System.Collections.Generic; using System.Diagnostics; using System.Text; using NUnit.Framework; -using Umbraco.Tests.Integration.Testing; +using Umbraco.Cms.Tests.Integration.Testing; // ReSharper disable once CheckNamespace diff --git a/src/Umbraco.Tests.Integration/Implementations/TestHelper.cs b/src/Umbraco.Tests.Integration/Implementations/TestHelper.cs index 8bdca33561..6ea81fd59d 100644 --- a/src/Umbraco.Tests.Integration/Implementations/TestHelper.cs +++ b/src/Umbraco.Tests.Integration/Implementations/TestHelper.cs @@ -18,24 +18,25 @@ using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Diagnostics; -using Umbraco.Core.Hosting; -using Umbraco.Core.Logging; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Diagnostics; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Net; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Runtime; +using Umbraco.Cms.Tests.Common; +using Umbraco.Cms.Web.Common.AspNetCore; using Umbraco.Core.Persistence; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Runtime; -using Umbraco.Net; -using Umbraco.Tests.Common; -using Umbraco.Web.Common.AspNetCore; +using Umbraco.Extensions; using File = System.IO.File; -using IHostingEnvironment = Umbraco.Core.Hosting.IHostingEnvironment; +using IHostingEnvironment = Umbraco.Cms.Core.Hosting.IHostingEnvironment; -namespace Umbraco.Tests.Integration.Implementations +namespace Umbraco.Cms.Tests.Integration.Implementations { public class TestHelper : TestHelperBase { diff --git a/src/Umbraco.Tests.Integration/Implementations/TestHostingEnvironment.cs b/src/Umbraco.Tests.Integration/Implementations/TestHostingEnvironment.cs index 8690a5f6f8..8980a91cff 100644 --- a/src/Umbraco.Tests.Integration/Implementations/TestHostingEnvironment.cs +++ b/src/Umbraco.Tests.Integration/Implementations/TestHostingEnvironment.cs @@ -3,13 +3,13 @@ using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Options; -using Umbraco.Core.Configuration.Models; -using Umbraco.Web.Common.AspNetCore; -using IHostingEnvironment = Umbraco.Core.Hosting.IHostingEnvironment; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Web.Common.AspNetCore; +using IHostingEnvironment = Umbraco.Cms.Core.Hosting.IHostingEnvironment; -namespace Umbraco.Tests.Integration.Implementations +namespace Umbraco.Cms.Tests.Integration.Implementations { - public class TestHostingEnvironment : AspNetCoreHostingEnvironment, IHostingEnvironment + public class TestHostingEnvironment : AspNetCoreHostingEnvironment, Cms.Core.Hosting.IHostingEnvironment { public TestHostingEnvironment(IOptionsMonitor hostingSettings,IOptionsMonitor webRoutingSettings, IWebHostEnvironment webHostEnvironment) : base(hostingSettings,webRoutingSettings, webHostEnvironment) diff --git a/src/Umbraco.Tests.Integration/Implementations/TestLifetime.cs b/src/Umbraco.Tests.Integration/Implementations/TestLifetime.cs index 07f517e710..0b444234af 100644 --- a/src/Umbraco.Tests.Integration/Implementations/TestLifetime.cs +++ b/src/Umbraco.Tests.Integration/Implementations/TestLifetime.cs @@ -5,7 +5,7 @@ using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.Hosting; -namespace Umbraco.Tests.Integration.Implementations +namespace Umbraco.Cms.Tests.Integration.Implementations { /// /// Ensures the host lifetime ends as soon as code execution is done diff --git a/src/Umbraco.Tests.Integration/Implementations/TestUmbracoBootPermissionChecker.cs b/src/Umbraco.Tests.Integration/Implementations/TestUmbracoBootPermissionChecker.cs index c032ad5551..ff0bfa599a 100644 --- a/src/Umbraco.Tests.Integration/Implementations/TestUmbracoBootPermissionChecker.cs +++ b/src/Umbraco.Tests.Integration/Implementations/TestUmbracoBootPermissionChecker.cs @@ -1,9 +1,9 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -using Umbraco.Core.Runtime; +using Umbraco.Cms.Core.Runtime; -namespace Umbraco.Tests.Integration.Implementations +namespace Umbraco.Cms.Tests.Integration.Implementations { public class TestUmbracoBootPermissionChecker : IUmbracoBootPermissionChecker { diff --git a/src/Umbraco.Tests.Integration/TestServerTest/Controllers/EnsureNotAmbiguousActionNameControllerTests.cs b/src/Umbraco.Tests.Integration/TestServerTest/Controllers/EnsureNotAmbiguousActionNameControllerTests.cs index 15862ae24f..c094ea3d9a 100644 --- a/src/Umbraco.Tests.Integration/TestServerTest/Controllers/EnsureNotAmbiguousActionNameControllerTests.cs +++ b/src/Umbraco.Tests.Integration/TestServerTest/Controllers/EnsureNotAmbiguousActionNameControllerTests.cs @@ -3,11 +3,12 @@ using System; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Web.BackOffice.Controllers; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Web.BackOffice.Controllers; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.Integration.TestServerTest.Controllers +namespace Umbraco.Cms.Tests.Integration.TestServerTest.Controllers { [TestFixture] public class EnsureNotAmbiguousActionNameControllerTests : UmbracoTestServerTestBase diff --git a/src/Umbraco.Tests.Integration/TestServerTest/TestAuthHandler.cs b/src/Umbraco.Tests.Integration/TestServerTest/TestAuthHandler.cs index 22f4b7e989..ac508686b4 100644 --- a/src/Umbraco.Tests.Integration/TestServerTest/TestAuthHandler.cs +++ b/src/Umbraco.Tests.Integration/TestServerTest/TestAuthHandler.cs @@ -7,14 +7,14 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Authentication; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models.Membership; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Web.BackOffice.Security; using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Web.Common.Security; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.Integration.TestServerTest +namespace Umbraco.Cms.Tests.Integration.TestServerTest { public class TestAuthHandler : AuthenticationHandler { diff --git a/src/Umbraco.Tests.Integration/TestServerTest/UmbracoTestServerTestBase.cs b/src/Umbraco.Tests.Integration/TestServerTest/UmbracoTestServerTestBase.cs index 2434b2b8fb..df0ef4600c 100644 --- a/src/Umbraco.Tests.Integration/TestServerTest/UmbracoTestServerTestBase.cs +++ b/src/Umbraco.Tests.Integration/TestServerTest/UmbracoTestServerTestBase.cs @@ -14,23 +14,21 @@ using Microsoft.AspNetCore.TestHost; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Composing; -using Umbraco.Core.DependencyInjection; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.DependencyInjection; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.DependencyInjection; +using Umbraco.Cms.Tests.Integration.Testing; +using Umbraco.Cms.Web.BackOffice.Controllers; +using Umbraco.Cms.Web.Common.Controllers; +using Umbraco.Cms.Web.Website.Controllers; using Umbraco.Extensions; -using Umbraco.Tests.Integration.DependencyInjection; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; -using Umbraco.Web; -using Umbraco.Web.BackOffice.Controllers; -using Umbraco.Web.BackOffice.DependencyInjection; -using Umbraco.Web.Common.Controllers; -using Umbraco.Web.Common.DependencyInjection; -using Umbraco.Web.Website.Controllers; -using Umbraco.Web.Website.DependencyInjection; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.Integration.TestServerTest +namespace Umbraco.Cms.Tests.Integration.TestServerTest { [TestFixture] [UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerTest, Logger = UmbracoTestOptions.Logger.Console, Boot = true)] diff --git a/src/Umbraco.Tests.Integration/TestServerTest/UmbracoWebApplicationFactory.cs b/src/Umbraco.Tests.Integration/TestServerTest/UmbracoWebApplicationFactory.cs index 5d923e583e..380603ae5c 100644 --- a/src/Umbraco.Tests.Integration/TestServerTest/UmbracoWebApplicationFactory.cs +++ b/src/Umbraco.Tests.Integration/TestServerTest/UmbracoWebApplicationFactory.cs @@ -5,7 +5,7 @@ using System; using Microsoft.AspNetCore.Mvc.Testing; using Microsoft.Extensions.Hosting; -namespace Umbraco.Tests.Integration.TestServerTest +namespace Umbraco.Cms.Tests.Integration.TestServerTest { public class UmbracoWebApplicationFactory : WebApplicationFactory where TStartup : class diff --git a/src/Umbraco.Tests.Integration/Testing/BaseTestDatabase.cs b/src/Umbraco.Tests.Integration/Testing/BaseTestDatabase.cs index 9b874c9999..d84ded1b18 100644 --- a/src/Umbraco.Tests.Integration/Testing/BaseTestDatabase.cs +++ b/src/Umbraco.Tests.Integration/Testing/BaseTestDatabase.cs @@ -10,11 +10,12 @@ using System.Diagnostics; using System.Linq; using System.Threading; using Microsoft.Extensions.Logging; -using Umbraco.Core.Configuration; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration; using Umbraco.Core.Migrations.Install; using Umbraco.Core.Persistence; -namespace Umbraco.Tests.Integration.Testing +namespace Umbraco.Cms.Tests.Integration.Testing { public abstract class BaseTestDatabase { @@ -126,7 +127,7 @@ namespace Umbraco.Tests.Integration.Testing private void RebuildSchemaFirstTime(TestDbMeta meta) { - _databaseFactory.Configure(meta.ConnectionString, Core.Constants.DatabaseProviders.SqlServer); + _databaseFactory.Configure(meta.ConnectionString, Constants.DatabaseProviders.SqlServer); using (var database = (UmbracoDatabase)_databaseFactory.CreateDatabase()) { diff --git a/src/Umbraco.Tests.Integration/Testing/ITestDatabase.cs b/src/Umbraco.Tests.Integration/Testing/ITestDatabase.cs index bdfde8d93b..fc400fe3ab 100644 --- a/src/Umbraco.Tests.Integration/Testing/ITestDatabase.cs +++ b/src/Umbraco.Tests.Integration/Testing/ITestDatabase.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Tests.Integration.Testing +namespace Umbraco.Cms.Tests.Integration.Testing { public interface ITestDatabase { diff --git a/src/Umbraco.Tests.Integration/Testing/IntegrationTestComponent.cs b/src/Umbraco.Tests.Integration/Testing/IntegrationTestComponent.cs index 4950f87bd9..277510fc9e 100644 --- a/src/Umbraco.Tests.Integration/Testing/IntegrationTestComponent.cs +++ b/src/Umbraco.Tests.Integration/Testing/IntegrationTestComponent.cs @@ -3,10 +3,9 @@ using Examine; using Examine.LuceneEngine.Providers; -using Umbraco.Core.Composing; -using Umbraco.Examine; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Tests.Integration.Testing +namespace Umbraco.Cms.Tests.Integration.Testing { /// /// A component to customize some services to work nicely with integration tests diff --git a/src/Umbraco.Tests.Integration/Testing/LocalDbTestDatabase.cs b/src/Umbraco.Tests.Integration/Testing/LocalDbTestDatabase.cs index b208a72c2f..07caf94219 100644 --- a/src/Umbraco.Tests.Integration/Testing/LocalDbTestDatabase.cs +++ b/src/Umbraco.Tests.Integration/Testing/LocalDbTestDatabase.cs @@ -9,7 +9,7 @@ using System.Threading; using Microsoft.Extensions.Logging; using Umbraco.Core.Persistence; -namespace Umbraco.Tests.Integration.Testing +namespace Umbraco.Cms.Tests.Integration.Testing { /// /// Manages a pool of LocalDb databases for integration testing diff --git a/src/Umbraco.Tests.Integration/Testing/SqlDeveloperTestDatabase.cs b/src/Umbraco.Tests.Integration/Testing/SqlDeveloperTestDatabase.cs index 80cf3c654c..13b5bad20f 100644 --- a/src/Umbraco.Tests.Integration/Testing/SqlDeveloperTestDatabase.cs +++ b/src/Umbraco.Tests.Integration/Testing/SqlDeveloperTestDatabase.cs @@ -3,7 +3,6 @@ using System; using System.Collections.Concurrent; -using System.Collections.Generic; using System.Data.SqlClient; using System.Linq; using System.Threading; @@ -11,7 +10,7 @@ using Microsoft.Extensions.Logging; using Umbraco.Core.Persistence; // ReSharper disable ConvertToUsingDeclaration -namespace Umbraco.Tests.Integration.Testing +namespace Umbraco.Cms.Tests.Integration.Testing { /// /// It's not meant to be pretty, rushed port of LocalDb.cs + LocalDbTestDatabase.cs diff --git a/src/Umbraco.Tests.Integration/Testing/TestDatabaseFactory.cs b/src/Umbraco.Tests.Integration/Testing/TestDatabaseFactory.cs index 9ca463c69a..1d55ca79ba 100644 --- a/src/Umbraco.Tests.Integration/Testing/TestDatabaseFactory.cs +++ b/src/Umbraco.Tests.Integration/Testing/TestDatabaseFactory.cs @@ -6,7 +6,7 @@ using System.IO; using Microsoft.Extensions.Logging; using Umbraco.Core.Persistence; -namespace Umbraco.Tests.Integration.Testing +namespace Umbraco.Cms.Tests.Integration.Testing { public class TestDatabaseFactory { diff --git a/src/Umbraco.Tests.Integration/Testing/TestDatabaseSettings.cs b/src/Umbraco.Tests.Integration/Testing/TestDatabaseSettings.cs index 9d9e305bc9..b2c9b0cfa2 100644 --- a/src/Umbraco.Tests.Integration/Testing/TestDatabaseSettings.cs +++ b/src/Umbraco.Tests.Integration/Testing/TestDatabaseSettings.cs @@ -1,5 +1,5 @@ -namespace Umbraco.Tests.Integration.Testing +namespace Umbraco.Cms.Tests.Integration.Testing { public class TestDatabaseSettings { diff --git a/src/Umbraco.Tests.Integration/Testing/TestDbMeta.cs b/src/Umbraco.Tests.Integration/Testing/TestDbMeta.cs index ea6f7d1c72..8e3dd355d5 100644 --- a/src/Umbraco.Tests.Integration/Testing/TestDbMeta.cs +++ b/src/Umbraco.Tests.Integration/Testing/TestDbMeta.cs @@ -3,7 +3,7 @@ using System.Text.RegularExpressions; -namespace Umbraco.Tests.Integration.Testing +namespace Umbraco.Cms.Tests.Integration.Testing { public class TestDbMeta { diff --git a/src/Umbraco.Tests.Integration/Testing/TestUmbracoDatabaseFactoryProvider.cs b/src/Umbraco.Tests.Integration/Testing/TestUmbracoDatabaseFactoryProvider.cs index 9b27f4cfba..4cba407e4c 100644 --- a/src/Umbraco.Tests.Integration/Testing/TestUmbracoDatabaseFactoryProvider.cs +++ b/src/Umbraco.Tests.Integration/Testing/TestUmbracoDatabaseFactoryProvider.cs @@ -4,12 +4,12 @@ using System; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; -using Umbraco.Core.Configuration.Models; +using Umbraco.Cms.Core.Configuration.Models; using Umbraco.Core.Migrations.Install; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.Mappers; -namespace Umbraco.Tests.Integration.Testing +namespace Umbraco.Cms.Tests.Integration.Testing { /// /// I want to be able to create a database for integration testsing without setting the connection string on the diff --git a/src/Umbraco.Tests.Integration/Testing/UmbracoIntegrationTest.cs b/src/Umbraco.Tests.Integration/Testing/UmbracoIntegrationTest.cs index 2a1e9a9298..4430f16533 100644 --- a/src/Umbraco.Tests.Integration/Testing/UmbracoIntegrationTest.cs +++ b/src/Umbraco.Tests.Integration/Testing/UmbracoIntegrationTest.cs @@ -18,30 +18,28 @@ using Microsoft.Extensions.Options; using Moq; using NUnit.Framework; using Serilog; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.DependencyInjection; -using Umbraco.Core.IO; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.DependencyInjection; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.DependencyInjection; +using Umbraco.Cms.Tests.Integration.Extensions; +using Umbraco.Cms.Tests.Integration.Implementations; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.Mappers; -using Umbraco.Core.Runtime; using Umbraco.Core.Scoping; -using Umbraco.Core.Strings; using Umbraco.Extensions; using Umbraco.Infrastructure.DependencyInjection; -using Umbraco.Infrastructure.PublishedCache.DependencyInjection; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Integration.DependencyInjection; -using Umbraco.Tests.Integration.Extensions; -using Umbraco.Tests.Integration.Implementations; -using Umbraco.Tests.Integration.TestServerTest; -using Umbraco.Tests.Testing; -using Umbraco.Web; -using Umbraco.Web.BackOffice.DependencyInjection; -using Umbraco.Web.Common.DependencyInjection; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.Integration.Testing +namespace Umbraco.Cms.Tests.Integration.Testing { /// /// Abstract class for integration tests @@ -200,7 +198,7 @@ namespace Umbraco.Tests.Integration.Testing services.AddRequiredNetCoreServices(TestHelper, webHostEnvironment); // Add it! - Core.Composing.TypeLoader typeLoader = services.AddTypeLoader( + TypeLoader typeLoader = services.AddTypeLoader( GetType().Assembly, webHostEnvironment, TestHelper.GetHostingEnvironment(), diff --git a/src/Umbraco.Tests.Integration/Testing/UmbracoIntegrationTestWithContent.cs b/src/Umbraco.Tests.Integration/Testing/UmbracoIntegrationTestWithContent.cs index 47159c419e..f279e5abf0 100644 --- a/src/Umbraco.Tests.Integration/Testing/UmbracoIntegrationTestWithContent.cs +++ b/src/Umbraco.Tests.Integration/Testing/UmbracoIntegrationTestWithContent.cs @@ -3,12 +3,12 @@ using System; using NUnit.Framework; -using Umbraco.Core.Models; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; using Umbraco.Core.Services.Implement; -using Umbraco.Tests.Common.Builders; -namespace Umbraco.Tests.Integration.Testing +namespace Umbraco.Cms.Tests.Integration.Testing { public abstract class UmbracoIntegrationTestWithContent : UmbracoIntegrationTest { diff --git a/src/Umbraco.Tests.Integration/Umbraco.Core/IO/FileSystemsTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Core/IO/FileSystemsTests.cs index 11773b157e..358a5fb350 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Core/IO/FileSystemsTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Core/IO/FileSystemsTests.cs @@ -5,13 +5,14 @@ using System; using System.IO; using System.Text; using NUnit.Framework; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; -using Umbraco.Core.IO.MediaPathSchemes; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.IO.MediaPathSchemes; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; +using Umbraco.Extensions; -namespace Umbraco.Tests.IO +namespace Umbraco.Cms.Tests.Integration.Umbraco.Core.IO { [TestFixture] [UmbracoTest] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Core/IO/ShadowFileSystemTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Core/IO/ShadowFileSystemTests.cs index 52d6a34a48..54f5e04dd2 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Core/IO/ShadowFileSystemTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Core/IO/ShadowFileSystemTests.cs @@ -7,15 +7,17 @@ using Microsoft.Extensions.Logging.Abstractions; using Microsoft.Extensions.Options; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; -using Umbraco.Tests.Integration.Implementations; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Implementations; +using Umbraco.Cms.Tests.Integration.Testing; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.IO +namespace Umbraco.Cms.Tests.Integration.Umbraco.Core.IO { [TestFixture] [UmbracoTest] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Core/Mapping/ContentTypeModelMappingTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Core/Mapping/ContentTypeModelMappingTests.cs index 77b82a22bf..f0ff1ead5a 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Core/Mapping/ContentTypeModelMappingTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Core/Mapping/ContentTypeModelMappingTests.cs @@ -6,19 +6,20 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.DependencyInjection; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.Integration.Umbraco.Core.Mapping +namespace Umbraco.Cms.Tests.Integration.Umbraco.Core.Mapping { [TestFixture] [UmbracoTest(Mapper = true, Database = UmbracoTestOptions.Database.NewSchemaPerTest)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Core/Mapping/UmbracoMapperTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Core/Mapping/UmbracoMapperTests.cs index a7152e7a3c..fb27ac5495 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Core/Mapping/UmbracoMapperTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Core/Mapping/UmbracoMapperTests.cs @@ -5,18 +5,19 @@ using System.Globalization; using System.Linq; using Microsoft.Extensions.DependencyInjection; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Services; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.Integration.Umbraco.Core.Mapping +namespace Umbraco.Cms.Tests.Integration.Umbraco.Core.Mapping { [TestFixture] [UmbracoTest(Mapper = true, Database = UmbracoTestOptions.Database.NewSchemaPerTest)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Core/Mapping/UserModelMapperTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Core/Mapping/UserModelMapperTests.cs index ac7c248058..5b96ebed3c 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Core/Mapping/UserModelMapperTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Core/Mapping/UserModelMapperTests.cs @@ -5,13 +5,13 @@ using System.Collections.Generic; using Microsoft.Extensions.DependencyInjection; using Newtonsoft.Json; using NUnit.Framework; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models.Membership; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; -namespace Umbraco.Tests.Integration.Umbraco.Core.Mapping +namespace Umbraco.Cms.Tests.Integration.Umbraco.Core.Mapping { [TestFixture] [UmbracoTest(Mapper = true, Database = UmbracoTestOptions.Database.NewSchemaPerTest)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Core/Packaging/CreatedPackagesRepositoryTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Core/Packaging/CreatedPackagesRepositoryTests.cs index 603d5a87b3..e2fb873611 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Core/Packaging/CreatedPackagesRepositoryTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Core/Packaging/CreatedPackagesRepositoryTests.cs @@ -8,17 +8,16 @@ using System.IO.Compression; using System.Linq; using System.Xml.Linq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Core.Models.Packaging; -using Umbraco.Core.Packaging; -using Umbraco.Core.Services; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Packaging; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; +using Umbraco.Extensions; -namespace Umbraco.Tests.Integration.Umbraco.Core.Packaging +namespace Umbraco.Cms.Tests.Integration.Umbraco.Core.Packaging { [TestFixture] [UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerFixture)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Core/Packaging/PackageDataInstallationTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Core/Packaging/PackageDataInstallationTests.cs index defdf1b25c..3e50df1474 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Core/Packaging/PackageDataInstallationTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Core/Packaging/PackageDataInstallationTests.cs @@ -8,23 +8,24 @@ using System.Xml.Linq; using Microsoft.Extensions.Logging; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Composing; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Packaging; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Packaging; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Packaging; using Umbraco.Core.Persistence.Dtos; -using Umbraco.Core.PropertyEditors; using Umbraco.Core.Scoping; using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; -using Umbraco.Tests.Integration.Testing; +using Umbraco.Extensions; using Umbraco.Tests.Services.Importing; -using Umbraco.Tests.Testing; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.Packaging +namespace Umbraco.Cms.Tests.Integration.Umbraco.Core.Packaging { [TestFixture] [Category("Slow")] @@ -353,7 +354,7 @@ namespace Umbraco.Tests.Packaging public void Can_Import_Media_Package_Xml() { // Arrange - Core.Services.Implement.MediaTypeService.ClearScopeEvents(); + global::Umbraco.Core.Services.Implement.MediaTypeService.ClearScopeEvents(); string strXml = ImportResources.MediaTypesAndMedia_Package_xml; var xml = XElement.Parse(strXml); XElement mediaTypesElement = xml.Descendants("MediaTypes").First(); @@ -398,7 +399,7 @@ namespace Umbraco.Tests.Packaging select doc).Count(); string configuration; - using (Core.Scoping.IScope scope = ScopeProvider.CreateScope()) + using (global::Umbraco.Core.Scoping.IScope scope = ScopeProvider.CreateScope()) { List dtos = scope.Database.Fetch("WHERE nodeId = @Id", new { dataTypeDefinitions.First().Id }); configuration = dtos.Single().Configuration; @@ -741,8 +742,8 @@ namespace Umbraco.Tests.Packaging private void AddLanguages() { var globalSettings = new GlobalSettings(); - var norwegian = new Core.Models.Language(globalSettings, "nb-NO"); - var english = new Core.Models.Language(globalSettings, "en-GB"); + var norwegian = new Language(globalSettings, "nb-NO"); + var english = new Language(globalSettings, "en-GB"); LocalizationService.Save(norwegian, 0); LocalizationService.Save(english, 0); } diff --git a/src/Umbraco.Tests.Integration/Umbraco.Core/Packaging/PackageInstallationTest.cs b/src/Umbraco.Tests.Integration/Umbraco.Core/Packaging/PackageInstallationTest.cs index 867a770097..2665cde3d7 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Core/Packaging/PackageInstallationTest.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Core/Packaging/PackageInstallationTest.cs @@ -6,13 +6,13 @@ using System.Collections.Generic; using System.IO; using System.Linq; using NUnit.Framework; -using Umbraco.Core.Hosting; -using Umbraco.Core.Models.Packaging; -using Umbraco.Core.Packaging; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Models.Packaging; +using Umbraco.Cms.Core.Packaging; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; -namespace Umbraco.Tests.Packaging +namespace Umbraco.Cms.Tests.Integration.Umbraco.Core.Packaging { [TestFixture] [UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerFixture)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Core/Services/SectionServiceTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Core/Services/SectionServiceTests.cs index dd91f3ad55..b9b3d0569e 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Core/Services/SectionServiceTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Core/Services/SectionServiceTests.cs @@ -4,14 +4,13 @@ using System.Linq; using System.Threading; using NUnit.Framework; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Services; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; -using Umbraco.Web.Services; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; -namespace Umbraco.Tests.Integration.Umbraco.Core.Services +namespace Umbraco.Cms.Tests.Integration.Umbraco.Core.Services { /// /// Tests covering the SectionService diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Migrations/AdvancedMigrationTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Migrations/AdvancedMigrationTests.cs index 92280fde43..e90af52069 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Migrations/AdvancedMigrationTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Migrations/AdvancedMigrationTests.cs @@ -7,18 +7,18 @@ using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging.Abstractions; using Moq; using NUnit.Framework; -using Umbraco.Core.Configuration; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Migrations; using Umbraco.Core.Migrations.Install; using Umbraco.Core.Migrations.Upgrade; using Umbraco.Core.Persistence.DatabaseModelDefinitions; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.Scoping; -using Umbraco.Core.Services; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; -namespace Umbraco.Tests.Migrations +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Migrations { [TestFixture] [UmbracoTest(Database = UmbracoTestOptions.Database.NewEmptyPerTest)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/DatabaseBuilderTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/DatabaseBuilderTests.cs index e8a9e7ed3c..faf9f4383e 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/DatabaseBuilderTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/DatabaseBuilderTests.cs @@ -5,19 +5,18 @@ using Microsoft.Extensions.Logging.Abstractions; using Moq; using NPoco; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Configuration; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Tests.Common.TestHelpers; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Migrations.Install; using Umbraco.Core.Persistence; -using Umbraco.Tests.Common.TestHelpers; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; -namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.Persistence +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Persistence { [TestFixture] [UmbracoTest] - public class DatabaseBuilderTests : UmbracoIntegrationTest { private IDbProviderFactoryCreator DbProviderFactoryCreator => GetRequiredService(); diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/LocksTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/LocksTests.cs index 4761c01fdb..901fb4335f 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/LocksTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/LocksTests.cs @@ -6,12 +6,13 @@ using System.Text; using System.Threading; using NPoco; using NUnit.Framework; -using Umbraco.Core; +using Umbraco.Cms.Core; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Persistence.Dtos; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.Persistence +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Persistence { [TestFixture] [Timeout(60000)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/NPocoTests/NPocoBulkInsertTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/NPocoTests/NPocoBulkInsertTests.cs index cf60557ba5..36a4604781 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/NPocoTests/NPocoBulkInsertTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/NPocoTests/NPocoBulkInsertTests.cs @@ -8,15 +8,15 @@ using System.Linq; using System.Text.RegularExpressions; using NPoco; using NUnit.Framework; -using Umbraco.Core.Logging; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Implementations; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.Scoping; -using Umbraco.Tests.Integration.Implementations; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Persistence.NPocoTests +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Persistence.NPocoTests { // FIXME: npoco - is this still appropriate? [TestFixture] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/NPocoTests/NPocoFetchTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/NPocoTests/NPocoFetchTests.cs index ca248a1c80..0754ab7c29 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/NPocoTests/NPocoFetchTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/NPocoTests/NPocoFetchTests.cs @@ -6,12 +6,12 @@ using System.Collections.Generic; using System.Linq; using NPoco; using NUnit.Framework; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Persistence; using Umbraco.Core.Scoping; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Persistence.NPocoTests +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Persistence.NPocoTests { [TestFixture] [UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerTest, WithApplication = true)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/AuditRepositoryTest.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/AuditRepositoryTest.cs index 10e89bc83a..63c51230e8 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/AuditRepositoryTest.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/AuditRepositoryTest.cs @@ -5,17 +5,17 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Models; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.Dtos; -using Umbraco.Core.Persistence.Querying; using Umbraco.Core.Persistence.Repositories.Implement; using Umbraco.Core.Scoping; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories { [TestFixture] [UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerTest, Logger = UmbracoTestOptions.Logger.Console)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/ContentTypeRepositoryTest.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/ContentTypeRepositoryTest.cs index 69441fd649..9e813482c9 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/ContentTypeRepositoryTest.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/ContentTypeRepositoryTest.cs @@ -6,23 +6,25 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.IO; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.Persistence; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Persistence; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Extensions; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Persistence.Repositories; using Umbraco.Core.Persistence.Repositories.Implement; using Umbraco.Core.Scoping; -using Umbraco.Core.Services; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; -using Umbraco.Web.Models.ContentEditing; -using Content = Umbraco.Core.Models.Content; +using Constants = Umbraco.Cms.Core.Constants; +using Content = Umbraco.Cms.Core.Models.Content; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories { [TestFixture] [UmbracoTest(Mapper = true, Database = UmbracoTestOptions.Database.NewSchemaPerTest)] @@ -123,7 +125,7 @@ namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositor contentType.ParentId = contentType.Id; repository.Save(contentType2); - global::Umbraco.Core.Events.MoveEventInfo[] result = repository.Move(contentType, container1).ToArray(); + global::Umbraco.Cms.Core.Events.MoveEventInfo[] result = repository.Move(contentType, container1).ToArray(); Assert.AreEqual(2, result.Count()); diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/DataTypeDefinitionRepositoryTest.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/DataTypeDefinitionRepositoryTest.cs index 699e22746f..496f5017d1 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/DataTypeDefinitionRepositoryTest.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/DataTypeDefinitionRepositoryTest.cs @@ -4,20 +4,23 @@ using System.Collections.Generic; using System.Linq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Events; -using Umbraco.Core.Models; -using Umbraco.Core.Persistence.Querying; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Persistence.Repositories; using Umbraco.Core.PropertyEditors; using Umbraco.Core.Scoping; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; using Umbraco.Web.PropertyEditors; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories { [TestFixture] [UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerTest)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/DictionaryRepositoryTest.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/DictionaryRepositoryTest.cs index edbeac263e..eda61c5401 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/DictionaryRepositoryTest.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/DictionaryRepositoryTest.cs @@ -5,16 +5,16 @@ using System; using System.Collections.Generic; using System.Linq; using NUnit.Framework; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Models; -using Umbraco.Core.Persistence.Querying; -using Umbraco.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Scoping; -using Umbraco.Core.Services; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories { [TestFixture] [UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerTest)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/DocumentRepositoryTest.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/DocumentRepositoryTest.cs index 7bfc9ea573..5904839a49 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/DocumentRepositoryTest.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/DocumentRepositoryTest.cs @@ -7,24 +7,27 @@ using System.Linq; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.IO; -using Umbraco.Core.Models; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Persistence; -using Umbraco.Core.Persistence.Querying; using Umbraco.Core.Persistence.Repositories.Implement; using Umbraco.Core.Persistence.SqlSyntax; -using Umbraco.Core.PropertyEditors; using Umbraco.Core.Scoping; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories { [TestFixture] [UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerTest)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/DomainRepositoryTest.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/DomainRepositoryTest.cs index 3a9794a93b..898bb39857 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/DomainRepositoryTest.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/DomainRepositoryTest.cs @@ -6,17 +6,18 @@ using System.Data; using System.Linq; using Microsoft.Extensions.Logging; using NUnit.Framework; -using Umbraco.Core.Cache; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Persistence.Repositories; using Umbraco.Core.Persistence.Repositories.Implement; using Umbraco.Core.Scoping; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories { [TestFixture] [UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerTest)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/EntityRepositoryTest.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/EntityRepositoryTest.cs index cd2e5e5d01..8d95dcabc7 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/EntityRepositoryTest.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/EntityRepositoryTest.cs @@ -4,19 +4,19 @@ using System.Collections.Generic; using System.Linq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Persistence.Querying; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Persistence.Repositories.Implement; using Umbraco.Core.Scoping; -using Umbraco.Core.Services; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories { [TestFixture] [UmbracoTest(Mapper = true, Database = UmbracoTestOptions.Database.NewSchemaPerTest)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/KeyValueRepositoryTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/KeyValueRepositoryTests.cs index 29885d732d..5577c61a0e 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/KeyValueRepositoryTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/KeyValueRepositoryTests.cs @@ -4,14 +4,14 @@ using System; using Microsoft.Extensions.Logging; using NUnit.Framework; -using Umbraco.Core.Models; -using Umbraco.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Persistence.Repositories.Implement; using Umbraco.Core.Scoping; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories { [TestFixture] [UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerTest)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/LanguageRepositoryTest.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/LanguageRepositoryTest.cs index 45e63cf091..130acd99e5 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/LanguageRepositoryTest.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/LanguageRepositoryTest.cs @@ -7,18 +7,18 @@ using System.Globalization; using System.Linq; using Microsoft.Extensions.Logging; using NUnit.Framework; -using Umbraco.Core.Cache; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Persistence; -using Umbraco.Core.Persistence.Querying; using Umbraco.Core.Persistence.Repositories.Implement; using Umbraco.Core.Scoping; -using Umbraco.Core.Services; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories { [TestFixture] [UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerTest)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/MacroRepositoryTest.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/MacroRepositoryTest.cs index 160642bcb7..f3f9116117 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/MacroRepositoryTest.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/MacroRepositoryTest.cs @@ -6,15 +6,15 @@ using System.Data.SqlClient; using System.Linq; using Microsoft.Extensions.Logging; using NUnit.Framework; -using Umbraco.Core.Cache; -using Umbraco.Core.Models; -using Umbraco.Core.Persistence.Querying; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Persistence.Repositories.Implement; using Umbraco.Core.Scoping; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories { [TestFixture] [UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerTest)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/MediaRepositoryTest.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/MediaRepositoryTest.cs index 0c70405378..ffd9638d1e 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/MediaRepositoryTest.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/MediaRepositoryTest.cs @@ -7,25 +7,26 @@ using System.Linq; using Microsoft.Extensions.Logging; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Persistence; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.Dtos; -using Umbraco.Core.Persistence.Querying; -using Umbraco.Core.Persistence.Repositories; using Umbraco.Core.Persistence.Repositories.Implement; -using Umbraco.Core.PropertyEditors; using Umbraco.Core.Scoping; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories { [TestFixture] [UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerTest)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/MediaTypeRepositoryTest.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/MediaTypeRepositoryTest.cs index 0626205d25..14ca7addb4 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/MediaTypeRepositoryTest.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/MediaTypeRepositoryTest.cs @@ -6,18 +6,18 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Models; -using Umbraco.Core.Persistence; -using Umbraco.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Persistence.Repositories.Implement; using Umbraco.Core.Scoping; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories { [TestFixture] [UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerTest)] @@ -54,7 +54,7 @@ namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositor contentType.ParentId = contentType.Id; repository.Save(contentType2); - global::Umbraco.Core.Events.MoveEventInfo[] result = repository.Move(contentType, container1).ToArray(); + global::Umbraco.Cms.Core.Events.MoveEventInfo[] result = repository.Move(contentType, container1).ToArray(); Assert.AreEqual(2, result.Length); diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/MemberRepositoryTest.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/MemberRepositoryTest.cs index 57518eb371..2a1a296027 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/MemberRepositoryTest.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/MemberRepositoryTest.cs @@ -9,24 +9,27 @@ using Microsoft.Extensions.Logging; using Moq; using NPoco; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Models; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.Persistence.Querying; using Umbraco.Core.Persistence.Repositories; using Umbraco.Core.Persistence.Repositories.Implement; -using Umbraco.Core.PropertyEditors; using Umbraco.Core.Scoping; -using Umbraco.Core.Security; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories { [TestFixture] [UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerTest)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/MemberTypeRepositoryTest.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/MemberTypeRepositoryTest.cs index d8f550f1bb..f24201e5da 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/MemberTypeRepositoryTest.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/MemberTypeRepositoryTest.cs @@ -7,18 +7,19 @@ using System.Linq; using Microsoft.Extensions.Logging; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Models; -using Umbraco.Core.Persistence; -using Umbraco.Core.Persistence.Repositories; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Persistence.Repositories.Implement; using Umbraco.Core.Scoping; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories { [TestFixture] [UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerTest)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/NotificationsRepositoryTest.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/NotificationsRepositoryTest.cs index c15a858218..4b00f46bc6 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/NotificationsRepositoryTest.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/NotificationsRepositoryTest.cs @@ -7,17 +7,17 @@ using System.Globalization; using System.Linq; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Models.Membership; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.Persistence.Repositories.Implement; using Umbraco.Core.Scoping; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories { [TestFixture] [UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerTest)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/PartialViewRepositoryTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/PartialViewRepositoryTests.cs index d4a90e6fcb..a218d0b87e 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/PartialViewRepositoryTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/PartialViewRepositoryTests.cs @@ -7,16 +7,16 @@ using System.IO; using Microsoft.Extensions.Logging; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Persistence.Repositories.Implement; using Umbraco.Core.Scoping; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories { [TestFixture] [UmbracoTest(Database = UmbracoTestOptions.Database.None)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/PublicAccessRepositoryTest.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/PublicAccessRepositoryTest.cs index 20c3f98f45..ece7d56bf8 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/PublicAccessRepositoryTest.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/PublicAccessRepositoryTest.cs @@ -6,17 +6,17 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; using NUnit.Framework; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.Repositories; using Umbraco.Core.Persistence.Repositories.Implement; using Umbraco.Core.Scoping; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; -using Content = Umbraco.Core.Models.Content; +using Content = Umbraco.Cms.Core.Models.Content; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories { [TestFixture] [UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerTest)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/RedirectUrlRepositoryTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/RedirectUrlRepositoryTests.cs index cc0624a2b8..c62a227027 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/RedirectUrlRepositoryTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/RedirectUrlRepositoryTests.cs @@ -6,16 +6,16 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; using NUnit.Framework; -using Umbraco.Core.Models; -using Umbraco.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Persistence.Repositories.Implement; using Umbraco.Core.Scoping; -using Umbraco.Core.Services; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories { [TestFixture] [UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerTest)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/RelationRepositoryTest.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/RelationRepositoryTest.cs index cccae431a7..227b9f90b5 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/RelationRepositoryTest.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/RelationRepositoryTest.cs @@ -7,20 +7,20 @@ using System.Linq; using Microsoft.Extensions.Logging; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Persistence.Querying; -using Umbraco.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Persistence.Repositories.Implement; using Umbraco.Core.Scoping; -using Umbraco.Core.Services; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories { [TestFixture] [UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerTest)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/RelationTypeRepositoryTest.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/RelationTypeRepositoryTest.cs index 8c28fad0de..92520e5052 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/RelationTypeRepositoryTest.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/RelationTypeRepositoryTest.cs @@ -5,16 +5,16 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Models; -using Umbraco.Core.Persistence.Querying; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Persistence.Repositories.Implement; using Umbraco.Core.Scoping; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories { [TestFixture] [UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerTest)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/ScriptRepositoryTest.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/ScriptRepositoryTest.cs index 514829a2dc..39226231eb 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/ScriptRepositoryTest.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/ScriptRepositoryTest.cs @@ -9,17 +9,17 @@ using System.Text; using Microsoft.Extensions.Logging; using Moq; using NUnit.Framework; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; -using Umbraco.Core.Models; -using Umbraco.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Persistence.Repositories.Implement; using Umbraco.Core.Scoping; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories { [TestFixture] [UmbracoTest(Database = UmbracoTestOptions.Database.None)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/ServerRegistrationRepositoryTest.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/ServerRegistrationRepositoryTest.cs index 80226da9a5..05d0bcef0a 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/ServerRegistrationRepositoryTest.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/ServerRegistrationRepositoryTest.cs @@ -7,14 +7,14 @@ using System.Data.SqlClient; using System.Linq; using Microsoft.Extensions.Logging; using NUnit.Framework; -using Umbraco.Core.Cache; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Persistence.Repositories.Implement; using Umbraco.Core.Scoping; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories { [TestFixture] [UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerTest)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/SimilarNodeNameTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/SimilarNodeNameTests.cs index 215303d981..fe22730456 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/SimilarNodeNameTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/SimilarNodeNameTests.cs @@ -4,7 +4,7 @@ using NUnit.Framework; using Umbraco.Core.Persistence.Repositories.Implement; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories { [TestFixture] public class SimilarNodeNameTests diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/StylesheetRepositoryTest.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/StylesheetRepositoryTest.cs index e142c2a1fa..44f75575e5 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/StylesheetRepositoryTest.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/StylesheetRepositoryTest.cs @@ -10,17 +10,16 @@ using System.Text; using Microsoft.Extensions.Logging; using Moq; using NUnit.Framework; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; -using Umbraco.Core.Models; -using Umbraco.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Persistence.Repositories.Implement; -using Umbraco.Tests.Integration.Implementations; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories { [TestFixture] [UmbracoTest(Database = UmbracoTestOptions.Database.None, Logger = UmbracoTestOptions.Logger.Console)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/TagRepositoryTest.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/TagRepositoryTest.cs index 7744173f3f..0739f0470d 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/TagRepositoryTest.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/TagRepositoryTest.cs @@ -5,17 +5,17 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; using NUnit.Framework; -using Umbraco.Core.Cache; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Persistence.Repositories; using Umbraco.Core.Persistence.Repositories.Implement; using Umbraco.Core.Scoping; -using Umbraco.Core.Services; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories { [TestFixture] [UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerTest)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/TemplateRepositoryTest.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/TemplateRepositoryTest.cs index d92493b859..e704b82bdd 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/TemplateRepositoryTest.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/TemplateRepositoryTest.cs @@ -8,24 +8,25 @@ using System.Linq; using System.Text; using Microsoft.Extensions.Logging; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; -using Umbraco.Core.Models; -using Umbraco.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Implementations; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Persistence.Repositories.Implement; -using Umbraco.Core.PropertyEditors; using Umbraco.Core.Scoping; using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Integration.Implementations; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories { [TestFixture] [UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerTest)] @@ -94,7 +95,7 @@ namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositor Assert.That(repository.Get("test"), Is.Not.Null); Assert.That(FileSystems.MvcViewsFileSystem.FileExists("test.cshtml"), Is.True); Assert.AreEqual( - @"@usingUmbraco.Web.PublishedModels;@inheritsUmbraco.Web.Common.Views.UmbracoViewPage@{Layout=null;}".StripWhitespace(), + @"@usingUmbraco.Cms.Web.Common.PublishedModels;@inheritsUmbraco.Cms.Web.Common.AspNetCore.UmbracoViewPage@{Layout=null;}".StripWhitespace(), template.Content.StripWhitespace()); } } @@ -122,7 +123,7 @@ namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositor Assert.That(repository.Get("test2"), Is.Not.Null); Assert.That(FileSystems.MvcViewsFileSystem.FileExists("test2.cshtml"), Is.True); Assert.AreEqual( - "@usingUmbraco.Web.PublishedModels;@inherits Umbraco.Web.Common.Views.UmbracoViewPage @{ Layout = \"test.cshtml\";}".StripWhitespace(), + "@usingUmbraco.Cms.Web.Common.PublishedModels;@inherits Umbraco.Cms.Web.Common.AspNetCore.UmbracoViewPage @{ Layout = \"test.cshtml\";}".StripWhitespace(), template2.Content.StripWhitespace()); } } diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/UserGroupRepositoryTest.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/UserGroupRepositoryTest.cs index 72a2d073be..08ed5bf3bb 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/UserGroupRepositoryTest.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/UserGroupRepositoryTest.cs @@ -5,23 +5,23 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; using NUnit.Framework; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Persistence.Querying; -using Umbraco.Core.Persistence.Repositories; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Persistence.Repositories.Implement; using Umbraco.Core.Scoping; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories { [TestFixture] [UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerTest)] public class UserGroupRepositoryTest : UmbracoIntegrationTest { private UserGroupRepository CreateRepository(IScopeProvider provider) => - new UserGroupRepository((IScopeAccessor)provider, global::Umbraco.Core.Cache.AppCaches.Disabled, LoggerFactory.CreateLogger(), LoggerFactory, ShortStringHelper); + new UserGroupRepository((IScopeAccessor)provider, global::Umbraco.Cms.Core.Cache.AppCaches.Disabled, LoggerFactory.CreateLogger(), LoggerFactory, ShortStringHelper); [Test] public void Can_Perform_Add_On_UserGroupRepository() @@ -131,7 +131,7 @@ namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositor int id = userGroup.Id; - var repository2 = new UserGroupRepository((IScopeAccessor)provider, global::Umbraco.Core.Cache.AppCaches.Disabled, LoggerFactory.CreateLogger(), LoggerFactory, ShortStringHelper); + var repository2 = new UserGroupRepository((IScopeAccessor)provider, global::Umbraco.Cms.Core.Cache.AppCaches.Disabled, LoggerFactory.CreateLogger(), LoggerFactory, ShortStringHelper); repository2.Delete(userGroup); scope.Complete(); diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/UserRepositoryTest.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/UserRepositoryTest.cs index a5164e0244..72d31faf0b 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/UserRepositoryTest.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/UserRepositoryTest.cs @@ -8,25 +8,28 @@ using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Membership; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Persistence.Repositories; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.Persistence.Mappers; -using Umbraco.Core.Persistence.Querying; using Umbraco.Core.Persistence.Repositories; using Umbraco.Core.Persistence.Repositories.Implement; using Umbraco.Core.Scoping; using Umbraco.Core.Serialization; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Persistence.Repositories { [TestFixture] [UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerTest, WithApplication = true, Logger = UmbracoTestOptions.Logger.Console)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/SchemaValidationTest.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/SchemaValidationTest.cs index b04c018a94..027d11846a 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/SchemaValidationTest.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/SchemaValidationTest.cs @@ -1,11 +1,11 @@ using Microsoft.Extensions.Logging; using NUnit.Framework; -using Umbraco.Core.Configuration; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Migrations.Install; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; -namespace Umbraco.Tests.Persistence +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Persistence { [TestFixture] [UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerFixture)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/SqlServerTableByTableTest.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/SqlServerTableByTableTest.cs index 59b56c0e51..a90059819a 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/SqlServerTableByTableTest.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/SqlServerTableByTableTest.cs @@ -1,13 +1,13 @@ using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging.Abstractions; using NUnit.Framework; -using Umbraco.Core.Configuration; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Migrations.Install; using Umbraco.Core.Persistence.Dtos; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; -namespace Umbraco.Tests.Persistence +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Persistence { [TestFixture] [UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerTest)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/SyntaxProvider/SqlServerSyntaxProviderTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/SyntaxProvider/SqlServerSyntaxProviderTests.cs index 62b3a9837d..f295fe18b4 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/SyntaxProvider/SqlServerSyntaxProviderTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/SyntaxProvider/SqlServerSyntaxProviderTests.cs @@ -4,7 +4,9 @@ using Microsoft.Extensions.Logging; using Moq; using NPoco; using NUnit.Framework; -using Umbraco.Core; +using Umbraco.Cms.Tests.Common.TestHelpers; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Migrations; using Umbraco.Core.Migrations.Expressions.Common.Expressions; using Umbraco.Core.Migrations.Expressions.Create.Index; @@ -13,10 +15,9 @@ using Umbraco.Core.Persistence.DatabaseAnnotations; using Umbraco.Core.Persistence.DatabaseModelDefinitions; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.Persistence.SqlSyntax; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.Persistence.SyntaxProvider +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Persistence.SyntaxProvider { [TestFixture] public class SqlServerSyntaxProviderTests : UmbracoIntegrationTest diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/UnitOfWorkTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/UnitOfWorkTests.cs index aad6938d18..ffa23920b2 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/UnitOfWorkTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/UnitOfWorkTests.cs @@ -3,12 +3,12 @@ using System; using NUnit.Framework; -using Umbraco.Core; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Scoping; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Persistence +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Persistence { [TestFixture] [UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerTest)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Scoping/ScopeFileSystemsTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Scoping/ScopeFileSystemsTests.cs index 3b486b565e..3d429cf059 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Scoping/ScopeFileSystemsTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Scoping/ScopeFileSystemsTests.cs @@ -6,16 +6,17 @@ using System.IO; using System.Text; using Microsoft.Extensions.Logging; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Scoping; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; -using FileSystems = Umbraco.Core.IO.FileSystems; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; +using FileSystems = Umbraco.Cms.Core.IO.FileSystems; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Scoping +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Scoping { [TestFixture] [UmbracoTest(Database = UmbracoTestOptions.Database.NewEmptyPerTest)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Scoping/ScopeTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Scoping/ScopeTests.cs index bb3bc99e19..d333ea6385 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Scoping/ScopeTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Scoping/ScopeTests.cs @@ -3,13 +3,14 @@ using System; using NUnit.Framework; -using Umbraco.Core; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Scoping; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Persistence; using Umbraco.Core.Scoping; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Scoping +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Scoping { [TestFixture] [UmbracoTest(Database = UmbracoTestOptions.Database.NewEmptyPerFixture)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Scoping/ScopedRepositoryTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Scoping/ScopedRepositoryTests.cs index 051ffa0a24..a1273518d2 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Scoping/ScopedRepositoryTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Scoping/ScopedRepositoryTests.cs @@ -5,20 +5,22 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; using NUnit.Framework; -using Umbraco.Core.Cache; -using Umbraco.Core.Events; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Membership; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Scoping; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Sync; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Scoping; -using Umbraco.Core.Services; using Umbraco.Core.Services.Implement; using Umbraco.Core.Sync; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; -using Umbraco.Web; using Umbraco.Web.Cache; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Scoping +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Scoping { [TestFixture] [UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerTest)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/AuditServiceTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/AuditServiceTests.cs index 6260d8adbb..30fd5e6c6c 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/AuditServiceTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/AuditServiceTests.cs @@ -5,14 +5,14 @@ using System; using System.Linq; using Microsoft.Extensions.DependencyInjection; using NUnit.Framework; -using Umbraco.Core.Models; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Services.Implement; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Services +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Services { [TestFixture] [UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerTest)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/CachedDataTypeServiceTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/CachedDataTypeServiceTests.cs index c57eac686b..8c486c9fc5 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/CachedDataTypeServiceTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/CachedDataTypeServiceTests.cs @@ -4,14 +4,14 @@ using System.Collections.Generic; using System.Threading; using NUnit.Framework; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Services +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Services { /// /// Tests covering the DataTypeService with cache enabled diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ConsentServiceTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ConsentServiceTests.cs index c489fe68af..54dcd96fed 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ConsentServiceTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ConsentServiceTests.cs @@ -4,12 +4,13 @@ using System; using System.Linq; using NUnit.Framework; -using Umbraco.Core.Models; -using Umbraco.Core.Services; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; +using Umbraco.Extensions; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Services +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Services { [TestFixture] [UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerFixture)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentEventsTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentEventsTests.cs index 1a2f39f51f..4d343beedb 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentEventsTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentEventsTests.cs @@ -8,18 +8,20 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Sync; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Persistence.Repositories.Implement; using Umbraco.Core.Sync; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; -using Umbraco.Web; +using Umbraco.Extensions; using Umbraco.Web.Cache; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Services +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Services { [TestFixture] [UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerTest)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentServiceEventTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentServiceEventTests.cs index 3a5d90b24f..a58f575a59 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentServiceEventTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentServiceEventTests.cs @@ -3,18 +3,18 @@ using System.Linq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Events; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Persistence.Repositories.Implement; -using Umbraco.Core.Services; using Umbraco.Core.Services.Implement; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; +using Umbraco.Extensions; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Services +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Services { [TestFixture] [UmbracoTest( diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentServicePerformanceTest.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentServicePerformanceTest.cs index e48f1fe52b..88e00ab8e0 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentServicePerformanceTest.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentServicePerformanceTest.cs @@ -8,19 +8,19 @@ using System.Linq; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging.Abstractions; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Logging; -using Umbraco.Core.Models; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.TestHelpers.Stubs; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Persistence.Repositories; using Umbraco.Core.Persistence.Repositories.Implement; using Umbraco.Core.Scoping; -using Umbraco.Core.Services; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.TestHelpers.Stubs; -using Umbraco.Tests.Testing; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Services +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Services { [TestFixture] [UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerTest)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentServicePublishBranchTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentServicePublishBranchTests.cs index b890f186b5..79c55f494b 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentServicePublishBranchTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentServicePublishBranchTests.cs @@ -5,16 +5,16 @@ using System; using System.Collections.Generic; using System.Linq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Models; -using Umbraco.Core.Services; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; +using Constants = Umbraco.Cms.Core.Constants; // ReSharper disable CommentTypo // ReSharper disable StringLiteralTypo -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Services +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Services { [TestFixture] [UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerTest, PublishedRepositoryEvents = true, WithApplication = true)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentServiceTagsTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentServiceTagsTests.cs index b7f3609d89..3369b138ab 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentServiceTagsTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentServiceTagsTests.cs @@ -5,19 +5,19 @@ using System; using System.Collections.Generic; using System.Linq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Persistence.Repositories.Implement; -using Umbraco.Core.PropertyEditors; using Umbraco.Core.Scoping; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; +using Umbraco.Extensions; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Services +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Services { [TestFixture] [UmbracoTest( diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentServiceTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentServiceTests.cs index bc8e68cb5d..0126d3d926 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentServiceTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentServiceTests.cs @@ -8,24 +8,28 @@ using System.Linq; using System.Threading; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Events; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Membership; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Tests.Common.Extensions; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.Repositories; using Umbraco.Core.Persistence.Repositories.Implement; -using Umbraco.Core.PropertyEditors; using Umbraco.Core.Scoping; -using Umbraco.Core.Serialization; using Umbraco.Core.Services; using Umbraco.Core.Services.Implement; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Services +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Services { /// diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentTypeServiceTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentTypeServiceTests.cs index 469a806335..000f78fd91 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentTypeServiceTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentTypeServiceTests.cs @@ -5,17 +5,18 @@ using System; using System.Collections.Generic; using System.Linq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Events; -using Umbraco.Core.Exceptions; -using Umbraco.Core.Models; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Exceptions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Services.Implement; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Services +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Services { [TestFixture] [UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerTest, PublishedRepositoryEvents = true)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentTypeServiceVariantsTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentTypeServiceVariantsTests.cs index 3671287da7..8412f8bf27 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentTypeServiceVariantsTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentTypeServiceVariantsTests.cs @@ -8,20 +8,18 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using NPoco; using NUnit.Framework; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.DependencyInjection; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Infrastructure.PublishedCache; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.Scoping; -using Umbraco.Core.Services; -using Umbraco.Infrastructure.PublishedCache.DependencyInjection; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; -using Umbraco.Web.PublishedCache.NuCache; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Services +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Services { [TestFixture] [Apartment(ApartmentState.STA)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/DataTypeServiceTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/DataTypeServiceTests.cs index 9c284fb4b7..2be14e8843 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/DataTypeServiceTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/DataTypeServiceTests.cs @@ -6,15 +6,15 @@ using System.Collections.Generic; using System.Linq; using System.Threading; using NUnit.Framework; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Services +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Services { /// /// Tests covering the DataTypeService diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/EntityServiceTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/EntityServiceTests.cs index 7267f34e51..ba29acf837 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/EntityServiceTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/EntityServiceTests.cs @@ -6,20 +6,19 @@ using System.Collections.Generic; using System.Linq; using System.Threading; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Persistence; -using Umbraco.Core.Services; -using Umbraco.Net; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; -using Umbraco.Web.PublishedCache; -using Umbraco.Web.PublishedCache.NuCache; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Services +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Services { /// /// Tests covering the EntityService diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/EntityXmlSerializerTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/EntityXmlSerializerTests.cs index d9c523bc58..0c618dde8d 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/EntityXmlSerializerTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/EntityXmlSerializerTests.cs @@ -6,15 +6,15 @@ using System.Diagnostics; using System.Linq; using System.Xml.Linq; using NUnit.Framework; -using Umbraco.Core.Models; -using Umbraco.Core.Services; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; -using Umbraco.Tests.Integration.Testing; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Tests.Services.Importing; -using Umbraco.Tests.Testing; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Services +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Services { [TestFixture] [UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerTest)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ExternalLoginServiceTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ExternalLoginServiceTests.cs index b47c8fb51e..7b53e811f3 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ExternalLoginServiceTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ExternalLoginServiceTests.cs @@ -6,15 +6,14 @@ using System.Collections.Generic; using System.Linq; using System.Threading; using NUnit.Framework; -using Umbraco.Core.Models.Identity; -using Umbraco.Core.Models.Membership; +using Umbraco.Cms.Core.Models.Identity; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Persistence.Dtos; -using Umbraco.Core.Services; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.TestHelpers; -using Umbraco.Tests.Testing; -namespace Umbraco.Tests.Services +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Services { [TestFixture] [Apartment(ApartmentState.STA)] @@ -35,7 +34,7 @@ namespace Umbraco.Tests.Services DateTime latest = DateTime.Now.AddDays(-1); DateTime oldest = DateTime.Now.AddDays(-10); - using (Core.Scoping.IScope scope = ScopeProvider.CreateScope()) + using (global::Umbraco.Core.Scoping.IScope scope = ScopeProvider.CreateScope()) { // insert duplicates manuall scope.Database.Insert(new ExternalLoginDto diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/FileServiceTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/FileServiceTests.cs index 9ca4b79a6e..0c8c7fd162 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/FileServiceTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/FileServiceTests.cs @@ -1,16 +1,15 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -using System; using System.Linq; using System.Threading; using NUnit.Framework; -using Umbraco.Core.Models; -using Umbraco.Core.Services; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Services +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Services { [TestFixture] [Apartment(ApartmentState.STA)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/Importing/ImportResources.Designer.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/Importing/ImportResources.Designer.cs index f7e0541d95..35ab2e061a 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/Importing/ImportResources.Designer.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/Importing/ImportResources.Designer.cs @@ -39,8 +39,8 @@ namespace Umbraco.Tests.Services.Importing { internal static global::System.Resources.ResourceManager ResourceManager { get { if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Umbraco.Tests.Integration.Umbraco.Infrastructure.Services.Importing.ImportResourc" + - "es", typeof(ImportResources).Assembly); + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Services.Importing.ImportRes" + + "ources", typeof(ImportResources).Assembly); resourceMan = temp; } return resourceMan; diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/KeyValueServiceTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/KeyValueServiceTests.cs index 5ffbe871a7..3437e1b286 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/KeyValueServiceTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/KeyValueServiceTests.cs @@ -3,11 +3,11 @@ using System.Threading; using NUnit.Framework; -using Umbraco.Core.Services; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Services +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Services { /// /// Tests covering methods in the KeyValueService class. diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/LocalizationServiceTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/LocalizationServiceTests.cs index a920682f4f..41c0acec01 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/LocalizationServiceTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/LocalizationServiceTests.cs @@ -7,16 +7,16 @@ using System.Diagnostics; using System.Linq; using System.Threading; using NUnit.Framework; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Persistence; using Umbraco.Core.Scoping; -using Umbraco.Core.Services; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Services +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Services { /// /// Tests covering all methods in the LocalizationService class. diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/MacroServiceTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/MacroServiceTests.cs index df89e32f96..06b4c6859b 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/MacroServiceTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/MacroServiceTests.cs @@ -8,17 +8,17 @@ using System.Threading; using Microsoft.Extensions.Logging; using Moq; using NUnit.Framework; -using Umbraco.Core.Cache; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Persistence.Repositories.Implement; using Umbraco.Core.Scoping; -using Umbraco.Core.Services; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Services +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Services { [TestFixture] [Apartment(ApartmentState.STA)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/MediaServiceTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/MediaServiceTests.cs index 3abbc0c38c..6d8fad4140 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/MediaServiceTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/MediaServiceTests.cs @@ -7,18 +7,18 @@ using System.Linq; using System.Reflection; using System.Threading; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Events; -using Umbraco.Core.Models; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Scoping; -using Umbraco.Core.Services; using Umbraco.Core.Services.Implement; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.TestHelpers.Entities; -using Umbraco.Tests.Testing; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Services +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Services { [TestFixture] [Apartment(ApartmentState.STA)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/MediaTypeServiceTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/MediaTypeServiceTests.cs index 2a1b5c3101..abd6466ce4 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/MediaTypeServiceTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/MediaTypeServiceTests.cs @@ -6,15 +6,15 @@ using System.Collections.Generic; using System.Linq; using System.Threading; using NUnit.Framework; -using Umbraco.Core.Events; -using Umbraco.Core.Models; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Services.Implement; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Services +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Services { [TestFixture] [Apartment(ApartmentState.STA)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/MemberGroupServiceTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/MemberGroupServiceTests.cs index 5abd76aaf8..ef876f04eb 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/MemberGroupServiceTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/MemberGroupServiceTests.cs @@ -4,14 +4,14 @@ using System; using System.Threading; using NUnit.Framework; -using Umbraco.Core.Models; -using Umbraco.Core.Services; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Services +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Services { [TestFixture] [Apartment(ApartmentState.STA)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/MemberServiceTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/MemberServiceTests.cs index 5e195aa077..faaaf7e8d3 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/MemberServiceTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/MemberServiceTests.cs @@ -7,24 +7,26 @@ using System.Linq; using System.Threading; using NPoco; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Infrastructure.PublishedCache; +using Umbraco.Cms.Tests.Common; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.Dtos; -using Umbraco.Core.Persistence.Querying; -using Umbraco.Core.PropertyEditors; using Umbraco.Core.Scoping; -using Umbraco.Core.Services; -using Umbraco.Tests.Common; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; -using Umbraco.Web.PublishedCache.NuCache; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Services +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Services { [TestFixture] [Category("Slow")] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/MemberTypeServiceTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/MemberTypeServiceTests.cs index 6e25d7f405..5f41203594 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/MemberTypeServiceTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/MemberTypeServiceTests.cs @@ -6,14 +6,14 @@ using System.Collections.Generic; using System.Linq; using System.Threading; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Services; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Services +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Services { [TestFixture] [Apartment(ApartmentState.STA)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/PublicAccessServiceTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/PublicAccessServiceTests.cs index b4b78365c6..6818f7b0d4 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/PublicAccessServiceTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/PublicAccessServiceTests.cs @@ -5,14 +5,14 @@ using System; using System.Linq; using System.Threading; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Services; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Services +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Services { [TestFixture] [Apartment(ApartmentState.STA)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/RedirectUrlServiceTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/RedirectUrlServiceTests.cs index 6c67797421..0606dc76f9 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/RedirectUrlServiceTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/RedirectUrlServiceTests.cs @@ -6,17 +6,15 @@ using System.Threading; using Microsoft.Extensions.Logging; using Moq; using NUnit.Framework; -using System.Linq; -using System.Threading; -using Umbraco.Core.Cache; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Persistence.Repositories.Implement; using Umbraco.Core.Scoping; -using Umbraco.Core.Services; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Services +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Services { [TestFixture] [Apartment(ApartmentState.STA)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/RelationServiceTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/RelationServiceTests.cs index 1965c737a5..b9755d44c0 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/RelationServiceTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/RelationServiceTests.cs @@ -6,14 +6,15 @@ using System.Collections.Generic; using System.Linq; using System.Threading; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Services; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Services +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Services { [TestFixture] [Apartment(ApartmentState.STA)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/TagServiceTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/TagServiceTests.cs index 3c3455fabd..206a6c5713 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/TagServiceTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/TagServiceTests.cs @@ -5,16 +5,17 @@ using System.Linq; using System.Threading; using Newtonsoft.Json; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Services +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Services { /// /// Tests covering methods in the TagService class. diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ThreadSafetyServiceTest.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ThreadSafetyServiceTest.cs index f727963d84..51243ff9ed 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ThreadSafetyServiceTest.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ThreadSafetyServiceTest.cs @@ -3,23 +3,20 @@ using System; using System.Collections.Generic; -using System.Diagnostics; using System.Linq; using System.Threading; using Microsoft.Extensions.Logging; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Scoping; -using Umbraco.Core.Services; using Umbraco.Core.Services.Implement; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.TestHelpers; -using Umbraco.Tests.TestHelpers.Entities; -using Umbraco.Tests.Testing; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Services +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Services { // these tests tend to fail from time to time esp. on VSTS // diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/TrackRelationsTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/TrackRelationsTests.cs index e6a8104355..644f4d959f 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/TrackRelationsTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/TrackRelationsTests.cs @@ -1,16 +1,13 @@ using System.Linq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.DependencyInjection; -using Umbraco.Core.Models; -using Umbraco.Core.Services; -using Umbraco.Core.Services.Implement; -using Umbraco.Infrastructure.PublishedCache.DependencyInjection; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Services +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Services { [UmbracoTest( Database = UmbracoTestOptions.Database.NewSchemaPerTest, diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/UserServiceTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/UserServiceTests.cs index e0d29ca634..baa61798d9 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/UserServiceTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/UserServiceTests.cs @@ -8,19 +8,20 @@ using System.Security.Cryptography; using System.Text; using System.Threading; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Persistence.Querying; -using Umbraco.Core.Services; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Actions; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Services.Implement; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; -using Umbraco.Web.Actions; +using Umbraco.Extensions; -namespace Umbraco.Tests.Integration.Umbraco.Infrastructure.Services +namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Services { /// /// Tests covering the UserService diff --git a/src/Umbraco.Tests.Integration/Umbraco.Tests.Integration.csproj b/src/Umbraco.Tests.Integration/Umbraco.Tests.Integration.csproj index b90a103d0f..18cc68996d 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Tests.Integration.csproj +++ b/src/Umbraco.Tests.Integration/Umbraco.Tests.Integration.csproj @@ -5,6 +5,7 @@ net5.0 false 8 + Umbraco.Cms.Tests.Integration diff --git a/src/Umbraco.Tests.Integration/Umbraco.Web.BackOffice/Controllers/BackOfficeAssetsControllerTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Web.BackOffice/Controllers/BackOfficeAssetsControllerTests.cs index 9304f005b3..68dee932fa 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Web.BackOffice/Controllers/BackOfficeAssetsControllerTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Web.BackOffice/Controllers/BackOfficeAssetsControllerTests.cs @@ -5,10 +5,10 @@ using System.Net; using System.Net.Http; using System.Threading.Tasks; using NUnit.Framework; -using Umbraco.Tests.Integration.TestServerTest; -using Umbraco.Web.BackOffice.Controllers; +using Umbraco.Cms.Tests.Integration.TestServerTest; +using Umbraco.Cms.Web.BackOffice.Controllers; -namespace Umbraco.Tests.Integration.Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Tests.Integration.Umbraco.Web.BackOffice.Controllers { [TestFixture] public class BackOfficeAssetsControllerTests : UmbracoTestServerTestBase diff --git a/src/Umbraco.Tests.Integration/Umbraco.Web.BackOffice/Controllers/ContentControllerTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Web.BackOffice/Controllers/ContentControllerTests.cs index a353cbdc7f..ab2acf9825 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Web.BackOffice/Controllers/ContentControllerTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Web.BackOffice/Controllers/ContentControllerTests.cs @@ -7,17 +7,18 @@ using System.Net.Http; using System.Threading.Tasks; using Newtonsoft.Json; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Services; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; -using Umbraco.Tests.Integration.TestServerTest; -using Umbraco.Web.BackOffice.Controllers; -using Umbraco.Web.Common.Formatters; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Tests.Integration.TestServerTest; +using Umbraco.Cms.Web.BackOffice.Controllers; +using Umbraco.Cms.Web.Common.Formatters; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.Integration.Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Tests.Integration.Umbraco.Web.BackOffice.Controllers { [TestFixture] public class ContentControllerTests : UmbracoTestServerTestBase diff --git a/src/Umbraco.Tests.Integration/Umbraco.Web.BackOffice/Controllers/TemplateQueryControllerTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Web.BackOffice/Controllers/TemplateQueryControllerTests.cs index 10478f1078..1a36f3054b 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Web.BackOffice/Controllers/TemplateQueryControllerTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Web.BackOffice/Controllers/TemplateQueryControllerTests.cs @@ -1,23 +1,20 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -using System; -using System.Linq; using System.Net; using System.Net.Http; using System.Threading.Tasks; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Tests.Common.Builders.Extensions; -using Umbraco.Tests.Integration.TestServerTest; -using Umbraco.Tests.Testing; -using Umbraco.Web.BackOffice.Controllers; -using Umbraco.Web.Common.Formatters; -using Umbraco.Web.Models.TemplateQuery; +using Umbraco.Cms.Core.Models.TemplateQuery; +using Umbraco.Cms.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Tests.Integration.TestServerTest; +using Umbraco.Cms.Web.BackOffice.Controllers; +using Umbraco.Cms.Web.Common.Formatters; +using Umbraco.Extensions; -namespace Umbraco.Tests.Integration.Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Tests.Integration.Umbraco.Web.BackOffice.Controllers { [TestFixture] public class TemplateQueryControllerTests : UmbracoTestServerTestBase diff --git a/src/Umbraco.Tests.Integration/Umbraco.Web.BackOffice/Controllers/UsersControllerTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Web.BackOffice/Controllers/UsersControllerTests.cs index 4814d158af..fd2481536b 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Web.BackOffice/Controllers/UsersControllerTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Web.BackOffice/Controllers/UsersControllerTests.cs @@ -11,20 +11,19 @@ using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Services; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; -using Umbraco.Tests.Integration.TestServerTest; -using Umbraco.Tests.Testing; -using Umbraco.Web.BackOffice.Controllers; -using Umbraco.Web.Common.Filters; -using Umbraco.Web.Common.Formatters; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Tests.Integration.TestServerTest; +using Umbraco.Cms.Web.BackOffice.Controllers; +using Umbraco.Cms.Web.Common.Formatters; +using Umbraco.Extensions; -namespace Umbraco.Tests.Integration.Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Tests.Integration.Umbraco.Web.BackOffice.Controllers { [TestFixture] public class UsersControllerTests : UmbracoTestServerTestBase diff --git a/src/Umbraco.Tests.Integration/Umbraco.Web.BackOffice/Filters/ContentModelValidatorTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Web.BackOffice/Filters/ContentModelValidatorTests.cs index 4350029159..b43cc13840 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Web.BackOffice/Filters/ContentModelValidatorTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Web.BackOffice/Filters/ContentModelValidatorTests.cs @@ -11,24 +11,25 @@ using Microsoft.Extensions.Logging; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.IO; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Tests.Testing; -using Umbraco.Web.BackOffice.Filters; -using Umbraco.Web.BackOffice.ModelBinders; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.Integration.Testing; +using Umbraco.Cms.Web.BackOffice.Filters; +using Umbraco.Cms.Web.BackOffice.ModelBinders; +using Umbraco.Extensions; using Umbraco.Web.PropertyEditors; -using DataType = Umbraco.Core.Models.DataType; +using DataType = Umbraco.Cms.Core.Models.DataType; -namespace Umbraco.Tests.Integration.Umbraco.Web.Backoffice.Filters +namespace Umbraco.Cms.Tests.Integration.Umbraco.Web.BackOffice.Filters { [TestFixture] [UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerTest, Mapper = true, WithApplication = true, Logger = UmbracoTestOptions.Logger.Console)] diff --git a/src/Umbraco.Tests.Integration/Umbraco.Web.BackOffice/UmbracoBackOfficeServiceCollectionExtensionsTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Web.BackOffice/UmbracoBackOfficeServiceCollectionExtensionsTests.cs index 1f07a1f45f..9c0698edc1 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Web.BackOffice/UmbracoBackOfficeServiceCollectionExtensionsTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Web.BackOffice/UmbracoBackOfficeServiceCollectionExtensionsTests.cs @@ -4,12 +4,12 @@ using Microsoft.AspNetCore.Identity; using Microsoft.Extensions.DependencyInjection; using NUnit.Framework; -using Umbraco.Core.DependencyInjection; +using Umbraco.Cms.Core.DependencyInjection; +using Umbraco.Cms.Tests.Integration.Testing; using Umbraco.Core.Security; -using Umbraco.Tests.Integration.Testing; -using Umbraco.Web.BackOffice.DependencyInjection; +using Umbraco.Extensions; -namespace Umbraco.Tests.Integration.Umbraco.Web.BackOffice +namespace Umbraco.Cms.Tests.Integration.Umbraco.Web.BackOffice { [TestFixture] public class UmbracoBackOfficeServiceCollectionExtensionsTests : UmbracoIntegrationTest diff --git a/src/Umbraco.Tests.Integration/Umbraco.Web.Website/Routing/FrontEndRouteTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Web.Website/Routing/FrontEndRouteTests.cs index a7cbc1646b..a6e69e47f7 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Web.Website/Routing/FrontEndRouteTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Web.Website/Routing/FrontEndRouteTests.cs @@ -1,24 +1,18 @@ -using System; -using System.Collections.Generic; -using System.Linq; using System.Net; using System.Net.Http; -using System.Text; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; -using Microsoft.AspNetCore.Mvc.ApplicationParts; -using Microsoft.Extensions.DependencyInjection; using NUnit.Framework; -using Umbraco.Core.Cache; -using Umbraco.Core.Logging; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Tests.Integration.TestServerTest; +using Umbraco.Cms.Web.Website.Controllers; using Umbraco.Core.Persistence; -using Umbraco.Core.Services; -using Umbraco.Tests.Integration.TestServerTest; -using Umbraco.Web; -using Umbraco.Web.Routing; -using Umbraco.Web.Website.Controllers; -namespace Umbraco.Tests.Integration.Umbraco.Web.Website.Routing +namespace Umbraco.Cms.Tests.Integration.Umbraco.Web.Website.Routing { [TestFixture] public class SurfaceControllerTests : UmbracoTestServerTestBase diff --git a/src/Umbraco.Tests.UnitTests/AutoFixture/AutoMoqDataAttribute.cs b/src/Umbraco.Tests.UnitTests/AutoFixture/AutoMoqDataAttribute.cs index bed11ca866..c3a1ff8995 100644 --- a/src/Umbraco.Tests.UnitTests/AutoFixture/AutoMoqDataAttribute.cs +++ b/src/Umbraco.Tests.UnitTests/AutoFixture/AutoMoqDataAttribute.cs @@ -10,18 +10,18 @@ using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Identity; using Microsoft.Extensions.Options; using Moq; -using Umbraco.Core; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Web.BackOffice.Controllers; +using Umbraco.Cms.Web.BackOffice.Routing; +using Umbraco.Cms.Web.Common.Install; +using Umbraco.Cms.Web.Common.Security; using Umbraco.Core.Security; -using Umbraco.Web.BackOffice.Controllers; -using Umbraco.Web.BackOffice.Routing; -using Umbraco.Web.Common.Install; -using Umbraco.Web.Common.Security; -using Umbraco.Web.WebApi; -namespace Umbraco.Tests.UnitTests.AutoFixture +namespace Umbraco.Cms.Tests.UnitTests.AutoFixture { [AttributeUsage(AttributeTargets.Method | AttributeTargets.Constructor)] public class AutoMoqDataAttribute : AutoDataAttribute diff --git a/src/Umbraco.Tests.UnitTests/AutoFixture/InlineAutoMoqDataAttribute.cs b/src/Umbraco.Tests.UnitTests/AutoFixture/InlineAutoMoqDataAttribute.cs index 0c182e6116..c06ff1a0f3 100644 --- a/src/Umbraco.Tests.UnitTests/AutoFixture/InlineAutoMoqDataAttribute.cs +++ b/src/Umbraco.Tests.UnitTests/AutoFixture/InlineAutoMoqDataAttribute.cs @@ -4,7 +4,7 @@ using System; using AutoFixture.NUnit3; -namespace Umbraco.Tests.UnitTests.AutoFixture +namespace Umbraco.Cms.Tests.UnitTests.AutoFixture { [AttributeUsage(AttributeTargets.Method | AttributeTargets.Constructor, AllowMultiple = true)] public class InlineAutoMoqDataAttribute : InlineAutoDataAttribute diff --git a/src/Umbraco.Tests.UnitTests/TestHelpers/BaseUsingSqlSyntax.cs b/src/Umbraco.Tests.UnitTests/TestHelpers/BaseUsingSqlSyntax.cs index d6db3c09f6..6fc78ce393 100644 --- a/src/Umbraco.Tests.UnitTests/TestHelpers/BaseUsingSqlSyntax.cs +++ b/src/Umbraco.Tests.UnitTests/TestHelpers/BaseUsingSqlSyntax.cs @@ -7,14 +7,14 @@ using Microsoft.Extensions.DependencyInjection; using Moq; using NPoco; using NUnit.Framework; -using Umbraco.Core.Composing; -using Umbraco.Core.DependencyInjection; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.DependencyInjection; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.Mappers; using Umbraco.Core.Persistence.SqlSyntax; -using Umbraco.Tests.UnitTests.TestHelpers; +using Umbraco.Extensions; -namespace Umbraco.Tests.TestHelpers +namespace Umbraco.Cms.Tests.UnitTests.TestHelpers { [TestFixture] public abstract class BaseUsingSqlSyntax diff --git a/src/Umbraco.Tests.UnitTests/TestHelpers/CompositionExtensions.cs b/src/Umbraco.Tests.UnitTests/TestHelpers/CompositionExtensions.cs index 806878fcc3..72793780f8 100644 --- a/src/Umbraco.Tests.UnitTests/TestHelpers/CompositionExtensions.cs +++ b/src/Umbraco.Tests.UnitTests/TestHelpers/CompositionExtensions.cs @@ -3,9 +3,9 @@ using System; using Microsoft.Extensions.DependencyInjection; -using Umbraco.Core.DependencyInjection; +using Umbraco.Cms.Core.DependencyInjection; -namespace Umbraco.Tests.UnitTests.TestHelpers +namespace Umbraco.Cms.Tests.UnitTests.TestHelpers { public static class CompositionExtensions { diff --git a/src/Umbraco.Tests.UnitTests/TestHelpers/Objects/TestUmbracoContextFactory.cs b/src/Umbraco.Tests.UnitTests/TestHelpers/Objects/TestUmbracoContextFactory.cs index d1450552c3..15c2e91bc5 100644 --- a/src/Umbraco.Tests.UnitTests/TestHelpers/Objects/TestUmbracoContextFactory.cs +++ b/src/Umbraco.Tests.UnitTests/TestHelpers/Objects/TestUmbracoContextFactory.cs @@ -4,18 +4,17 @@ using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Options; using Moq; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Core.Routing; -using Umbraco.Core.Security; -using Umbraco.Tests.Common; -using Umbraco.Tests.TestHelpers; -using Umbraco.Web; -using Umbraco.Web.Common.AspNetCore; -using Umbraco.Web.PublishedCache; -using Umbraco.Web.Routing; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Tests.Common; +using Umbraco.Cms.Web.Common.AspNetCore; +using Umbraco.Cms.Web.Common.UmbracoContext; -namespace Umbraco.Tests.UnitTests.TestHelpers.Objects +namespace Umbraco.Cms.Tests.UnitTests.TestHelpers.Objects { /// /// Simplify creating test UmbracoContext's diff --git a/src/Umbraco.Tests.UnitTests/TestHelpers/TestHelper.cs b/src/Umbraco.Tests.UnitTests/TestHelpers/TestHelper.cs index 9da0f84202..f2dbb9c577 100644 --- a/src/Umbraco.Tests.UnitTests/TestHelpers/TestHelper.cs +++ b/src/Umbraco.Tests.UnitTests/TestHelpers/TestHelper.cs @@ -13,35 +13,37 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; using Moq; using NUnit.Framework; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Diagnostics; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Mail; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Net; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Runtime; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Tests.Common; +using Umbraco.Cms.Web.Common.AspNetCore; using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Composing; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.DependencyInjection; -using Umbraco.Core.Diagnostics; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; -using Umbraco.Core.Logging; -using Umbraco.Core.Mail; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Models.PublishedContent; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.SqlSyntax; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Serialization; -using Umbraco.Core.Strings; +using Umbraco.Extensions; using Umbraco.Infrastructure.Persistence.Mappers; -using Umbraco.Net; -using Umbraco.Tests.Common; -using Umbraco.Web; -using Umbraco.Web.Common.AspNetCore; -using Umbraco.Web.Routing; +using Constants = Umbraco.Cms.Core.Constants; using File = System.IO.File; -using IHostingEnvironment = Umbraco.Core.Hosting.IHostingEnvironment; +using IHostingEnvironment = Umbraco.Cms.Core.Hosting.IHostingEnvironment; -namespace Umbraco.Tests.TestHelpers +namespace Umbraco.Cms.Tests.UnitTests.TestHelpers { /// /// Common helper properties and methods useful to testing diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Configuration/Models/ConnectionStringsTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Configuration/Models/ConnectionStringsTests.cs index 7d3099eb58..8d3d266515 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Configuration/Models/ConnectionStringsTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Configuration/Models/ConnectionStringsTests.cs @@ -2,11 +2,11 @@ // See LICENSE for more details. using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Configuration.Models; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.UnitTests.Umbraco.Configuration.Models +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Configuration.Models { public class ConnectionStringsTests { diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/AttemptTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/AttemptTests.cs index be1e3cc0d8..73987c3c4a 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/AttemptTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/AttemptTests.cs @@ -2,9 +2,9 @@ // See LICENSE for more details. using NUnit.Framework; -using Umbraco.Core; +using Umbraco.Cms.Core; -namespace Umbraco.Tests.UnitTests.Umbraco.Core +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core { [TestFixture] public class AttemptTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/BackOffice/BackOfficeClaimsPrincipalFactoryTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/BackOffice/BackOfficeClaimsPrincipalFactoryTests.cs index e681fc6841..f53dc2b7d6 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/BackOffice/BackOfficeClaimsPrincipalFactoryTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/BackOffice/BackOfficeClaimsPrincipalFactoryTests.cs @@ -9,13 +9,14 @@ using Microsoft.AspNetCore.Identity; using Microsoft.Extensions.Options; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Models.Membership; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Security; using Umbraco.Core.Security; using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.BackOffice +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.BackOffice { [TestFixture] public class BackOfficeClaimsPrincipalFactoryTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/BackOffice/IdentityExtensionsTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/BackOffice/IdentityExtensionsTests.cs index 3b2d0391e2..ce47b490a6 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/BackOffice/IdentityExtensionsTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/BackOffice/IdentityExtensionsTests.cs @@ -7,7 +7,7 @@ using Microsoft.AspNetCore.Identity; using NUnit.Framework; using Umbraco.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.BackOffice +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.BackOffice { public class IdentityExtensionsTests { diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/BackOffice/NopLookupNormalizerTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/BackOffice/NopLookupNormalizerTests.cs index f4ea348892..21ff01b296 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/BackOffice/NopLookupNormalizerTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/BackOffice/NopLookupNormalizerTests.cs @@ -5,7 +5,7 @@ using System; using NUnit.Framework; using Umbraco.Core.Security; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.BackOffice +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.BackOffice { public class NopLookupNormalizerTests { diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/BackOffice/UmbracoBackOfficeIdentityTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/BackOffice/UmbracoBackOfficeIdentityTests.cs index 35e143277a..46332df4b2 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/BackOffice/UmbracoBackOfficeIdentityTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/BackOffice/UmbracoBackOfficeIdentityTests.cs @@ -5,10 +5,11 @@ using System; using System.Linq; using System.Security.Claims; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Security; +using Umbraco.Cms.Core.Security; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.BackOffice +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.BackOffice { [TestFixture] public class UmbracoBackOfficeIdentityTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/AppCacheTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/AppCacheTests.cs index fe5d1ea819..115be24f8a 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/AppCacheTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/AppCacheTests.cs @@ -5,9 +5,9 @@ using System; using System.Collections.Generic; using System.Linq; using NUnit.Framework; -using Umbraco.Core.Cache; +using Umbraco.Cms.Core.Cache; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Cache +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Cache { public abstract class AppCacheTests { diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/DeepCloneAppCacheTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/DeepCloneAppCacheTests.cs index f653cf50f1..260cd3c6ca 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/DeepCloneAppCacheTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/DeepCloneAppCacheTests.cs @@ -5,13 +5,14 @@ using System; using System.Diagnostics; using System.Linq; using NUnit.Framework; -using Umbraco.Core.Cache; -using Umbraco.Core.Collections; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; -using Umbraco.Tests.Common; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Collections; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Tests.Common; +using Umbraco.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Cache +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Cache { [TestFixture] public class DeepCloneAppCacheTests : RuntimeAppCacheTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/DefaultCachePolicyTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/DefaultCachePolicyTests.cs index 9cb6af72fc..a9bfd2e099 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/DefaultCachePolicyTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/DefaultCachePolicyTests.cs @@ -5,11 +5,13 @@ using System; using System.Collections.Generic; using Moq; using NUnit.Framework; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Scoping; using Umbraco.Core.Cache; -using Umbraco.Core.Models; using Umbraco.Core.Scoping; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Cache +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Cache { [TestFixture] public class DefaultCachePolicyTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/DictionaryAppCacheTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/DictionaryAppCacheTests.cs index 13c0f16d0c..97acab7ce4 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/DictionaryAppCacheTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/DictionaryAppCacheTests.cs @@ -2,9 +2,9 @@ // See LICENSE for more details. using NUnit.Framework; -using Umbraco.Core.Cache; +using Umbraco.Cms.Core.Cache; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Cache +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Cache { [TestFixture] public class DictionaryAppCacheTests : AppCacheTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/DistributedCache/DistributedCacheTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/DistributedCache/DistributedCacheTests.cs index 0f16da11c7..0273690f09 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/DistributedCache/DistributedCacheTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/DistributedCache/DistributedCacheTests.cs @@ -5,10 +5,10 @@ using System; using System.Collections.Generic; using System.Linq; using NUnit.Framework; -using Umbraco.Core.Cache; -using Umbraco.Core.Sync; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Sync; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Cache.DistributedCache +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Cache.DistributedCache { /// /// Ensures that calls to DistributedCache methods carry through to the IServerMessenger correctly @@ -16,7 +16,7 @@ namespace Umbraco.Tests.UnitTests.Umbraco.Core.Cache.DistributedCache [TestFixture] public class DistributedCacheTests { - private global::Umbraco.Web.Cache.DistributedCache _distributedCache; + private global::Umbraco.Cms.Core.Cache.DistributedCache _distributedCache; private IServerRoleAccessor ServerRegistrar { get; set; } @@ -33,7 +33,7 @@ namespace Umbraco.Tests.UnitTests.Umbraco.Core.Cache.DistributedCache new TestCacheRefresher() }); - _distributedCache = new global::Umbraco.Web.Cache.DistributedCache(ServerMessenger, cacheRefresherCollection); + _distributedCache = new global::Umbraco.Cms.Core.Cache.DistributedCache(ServerMessenger, cacheRefresherCollection); } [Test] diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/FullDataSetCachePolicyTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/FullDataSetCachePolicyTests.cs index 87b61502c5..b1b635fb01 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/FullDataSetCachePolicyTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/FullDataSetCachePolicyTests.cs @@ -7,12 +7,14 @@ using System.Collections.Generic; using System.Linq; using Moq; using NUnit.Framework; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Collections; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Scoping; using Umbraco.Core.Cache; -using Umbraco.Core.Collections; -using Umbraco.Core.Models; using Umbraco.Core.Scoping; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Cache +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Cache { [TestFixture] public class FullDataSetCachePolicyTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/HttpRequestAppCacheTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/HttpRequestAppCacheTests.cs index ac8ded80e3..e2d0dfeb07 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/HttpRequestAppCacheTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/HttpRequestAppCacheTests.cs @@ -3,9 +3,9 @@ using Microsoft.AspNetCore.Http; using NUnit.Framework; -using Umbraco.Core.Cache; +using Umbraco.Cms.Core.Cache; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Cache +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Cache { [TestFixture] public class HttpRequestAppCacheTests : AppCacheTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/ObjectAppCacheTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/ObjectAppCacheTests.cs index 255c76ff46..73b50e2d63 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/ObjectAppCacheTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/ObjectAppCacheTests.cs @@ -3,9 +3,9 @@ using System.Linq; using NUnit.Framework; -using Umbraco.Core.Cache; +using Umbraco.Cms.Core.Cache; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Cache +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Cache { [TestFixture] public class ObjectAppCacheTests : RuntimeAppCacheTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/RefresherTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/RefresherTests.cs index 754dc8b830..5c9d2b13cf 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/RefresherTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/RefresherTests.cs @@ -4,10 +4,10 @@ using System; using Newtonsoft.Json; using NUnit.Framework; -using Umbraco.Core.Services.Changes; -using Umbraco.Web.Cache; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Services.Changes; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Cache +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Cache { [TestFixture] public class RefresherTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/RuntimeAppCacheTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/RuntimeAppCacheTests.cs index 41214bdb58..89e8fdb072 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/RuntimeAppCacheTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/RuntimeAppCacheTests.cs @@ -4,9 +4,10 @@ using System; using System.Threading; using NUnit.Framework; -using Umbraco.Core.Cache; +using Umbraco.Cms.Core.Cache; +using Umbraco.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Cache +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Cache { public abstract class RuntimeAppCacheTests : AppCacheTests { diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/SingleItemsOnlyCachePolicyTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/SingleItemsOnlyCachePolicyTests.cs index ffd5c90ce3..00d9ebe530 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/SingleItemsOnlyCachePolicyTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/SingleItemsOnlyCachePolicyTests.cs @@ -5,11 +5,13 @@ using System; using System.Collections.Generic; using Moq; using NUnit.Framework; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Scoping; using Umbraco.Core.Cache; -using Umbraco.Core.Models; using Umbraco.Core.Scoping; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Cache +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Cache { [TestFixture] public class SingleItemsOnlyCachePolicyTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/ClaimsIdentityExtensionsTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/ClaimsIdentityExtensionsTests.cs index 7125e13e90..d531b091c9 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/ClaimsIdentityExtensionsTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/ClaimsIdentityExtensionsTests.cs @@ -5,9 +5,9 @@ using System; using System.Collections.Generic; using System.Security.Claims; using NUnit.Framework; -using Umbraco.Core; +using Umbraco.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Core +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core { public class ClaimsIdentityExtensionsTests { diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Collections/DeepCloneableListTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Collections/DeepCloneableListTests.cs index 57237d907e..d5e6a88589 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Collections/DeepCloneableListTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Collections/DeepCloneableListTests.cs @@ -3,10 +3,10 @@ using System.Linq; using NUnit.Framework; -using Umbraco.Core.Collections; -using Umbraco.Tests.Common; +using Umbraco.Cms.Core.Collections; +using Umbraco.Cms.Tests.Common; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Collections +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Collections { [TestFixture] public class DeepCloneableListTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Collections/OrderedHashSetTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Collections/OrderedHashSetTests.cs index 06d935cfd8..4b77543140 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Collections/OrderedHashSetTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Collections/OrderedHashSetTests.cs @@ -3,9 +3,9 @@ using System; using NUnit.Framework; -using Umbraco.Core.Collections; +using Umbraco.Cms.Core.Collections; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Collections +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Collections { [TestFixture] public class OrderedHashSetTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Components/ComponentTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Components/ComponentTests.cs index a57b9b34fa..751a988309 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Components/ComponentTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Components/ComponentTests.cs @@ -12,22 +12,22 @@ using Microsoft.Extensions.Logging.Abstractions; using Microsoft.Extensions.Options; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Composing; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.DependencyInjection; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; -using Umbraco.Core.Logging; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.DependencyInjection; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Tests.UnitTests.TestHelpers; using Umbraco.Core.Migrations.Install; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.Mappers; using Umbraco.Core.Scoping; -using Umbraco.Tests.TestHelpers; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Components +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Components { [TestFixture] public class ComponentTests @@ -198,7 +198,7 @@ namespace Umbraco.Tests.UnitTests.Umbraco.Core.Components } catch (Exception e) { - Assert.AreEqual("Broken composer dependency: Umbraco.Tests.UnitTests.Umbraco.Core.Components.ComponentTests+Composer2 -> Umbraco.Tests.UnitTests.Umbraco.Core.Components.ComponentTests+Composer4.", e.Message); + Assert.AreEqual("Broken composer dependency: Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Components.ComponentTests+Composer2 -> Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Components.ComponentTests+Composer4.", e.Message); } } diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Composing/CollectionBuildersTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Composing/CollectionBuildersTests.cs index 1c4a401e2e..9b3c3a09e3 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Composing/CollectionBuildersTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Composing/CollectionBuildersTests.cs @@ -8,12 +8,11 @@ using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Moq; using NUnit.Framework; -using Umbraco.Core.Composing; -using Umbraco.Core.DependencyInjection; -using Umbraco.Tests.TestHelpers; -using Umbraco.Tests.UnitTests.TestHelpers; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.DependencyInjection; +using Umbraco.Cms.Tests.UnitTests.TestHelpers; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Composing +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Composing { [TestFixture] public class CollectionBuildersTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Composing/ComposingTestBase.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Composing/ComposingTestBase.cs index 1010424f75..17f271888b 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Composing/ComposingTestBase.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Composing/ComposingTestBase.cs @@ -7,13 +7,13 @@ using System.Reflection; using Microsoft.Extensions.Logging; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Composing; -using Umbraco.Core.Logging; -using Umbraco.Tests.TestHelpers; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Tests.UnitTests.TestHelpers; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Composing +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Composing { public abstract class ComposingTestBase { diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Composing/CompositionTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Composing/CompositionTests.cs index 984f598ef4..4056f5fdd4 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Composing/CompositionTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Composing/CompositionTests.cs @@ -3,7 +3,7 @@ using NUnit.Framework; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Composing +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Composing { [TestFixture] public class CompositionTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Composing/LazyCollectionBuilderTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Composing/LazyCollectionBuilderTests.cs index 9179e9e086..0a45415647 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Composing/LazyCollectionBuilderTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Composing/LazyCollectionBuilderTests.cs @@ -8,13 +8,12 @@ using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Composing; -using Umbraco.Core.DependencyInjection; -using Umbraco.Tests.TestHelpers; -using Umbraco.Tests.UnitTests.TestHelpers; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.DependencyInjection; +using Umbraco.Cms.Tests.UnitTests.TestHelpers; +using Umbraco.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Composing +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Composing { /// /// Tests for lazy collection builder. diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Composing/PackageActionCollectionTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Composing/PackageActionCollectionTests.cs index 702d4f9c8a..f393ff9910 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Composing/PackageActionCollectionTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Composing/PackageActionCollectionTests.cs @@ -10,14 +10,12 @@ using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Composing; -using Umbraco.Core.DependencyInjection; -using Umbraco.Core.PackageActions; -using Umbraco.Tests.TestHelpers; -using Umbraco.Tests.UnitTests.TestHelpers; +using Umbraco.Cms.Core.DependencyInjection; +using Umbraco.Cms.Core.PackageActions; +using Umbraco.Cms.Tests.UnitTests.TestHelpers; +using Umbraco.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Composing +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Composing { [TestFixture] public class PackageActionCollectionTests : ComposingTestBase diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Composing/TypeFinderTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Composing/TypeFinderTests.cs index a33096007c..027b851529 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Composing/TypeFinderTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Composing/TypeFinderTests.cs @@ -9,10 +9,11 @@ using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging.Abstractions; using Moq; using NUnit.Framework; -using Umbraco.Core.Composing; -using Umbraco.Web.BackOffice.Trees; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Web.BackOffice.Trees; +using Umbraco.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Composing +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Composing { /// /// Tests for typefinder diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Composing/TypeHelperTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Composing/TypeHelperTests.cs index 3126cce538..b2fade7e36 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Composing/TypeHelperTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Composing/TypeHelperTests.cs @@ -10,10 +10,10 @@ using System.Data.SqlClient; using System.Linq; using System.Reflection; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Composing +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Composing { /// /// Tests for TypeHelper diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Composing/TypeLoaderExtensions.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Composing/TypeLoaderExtensions.cs index 3179985c99..973ce87ff1 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Composing/TypeLoaderExtensions.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Composing/TypeLoaderExtensions.cs @@ -3,9 +3,9 @@ using System; using System.Collections.Generic; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Composing +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Composing { /// /// Used for PluginTypeResolverTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Composing/TypeLoaderTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Composing/TypeLoaderTests.cs index 865a77fbdc..f12413716e 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Composing/TypeLoaderTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Composing/TypeLoaderTests.cs @@ -9,16 +9,20 @@ using System.Reflection; using Microsoft.Extensions.Logging; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Composing; -using Umbraco.Core.Logging; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Tests.UnitTests.TestHelpers; +using Umbraco.Cms.Web.Common.UmbracoContext; using Umbraco.Core.PropertyEditors; -using Umbraco.Tests.TestHelpers; -using Umbraco.Web; +using Umbraco.Extensions; using Umbraco.Web.PropertyEditors; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Composing +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Composing { [TestFixture] public class TypeLoaderTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Configuration/Models/Extensions/HealthCheckSettingsExtensionsTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Configuration/Models/Extensions/HealthCheckSettingsExtensionsTests.cs index d3e2ca3014..39739d2cfd 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Configuration/Models/Extensions/HealthCheckSettingsExtensionsTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Configuration/Models/Extensions/HealthCheckSettingsExtensionsTests.cs @@ -3,11 +3,12 @@ using System; using NUnit.Framework; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Configuration.Models; using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Extensions; -using Umbraco.Core.Configuration.Models; +using Umbraco.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Configuration.Models.Extensions +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Configuration.Models.Extensions { [TestFixture] public class HealthCheckSettingsExtensionsTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Configuration/Models/GlobalSettingsTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Configuration/Models/GlobalSettingsTests.cs index 3c3de455f5..a530912b5d 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Configuration/Models/GlobalSettingsTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Configuration/Models/GlobalSettingsTests.cs @@ -4,12 +4,12 @@ using AutoFixture.NUnit3; using Microsoft.Extensions.Options; using NUnit.Framework; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Tests.UnitTests.AutoFixture; -using Umbraco.Web.Common.AspNetCore; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Tests.UnitTests.AutoFixture; +using Umbraco.Cms.Web.Common.AspNetCore; +using Umbraco.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Configuration.Models +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Configuration.Models { [TestFixture] public class GlobalSettingsTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Configuration/Models/Validation/ContentSettingsValidatorTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Configuration/Models/Validation/ContentSettingsValidatorTests.cs index ded3f1c725..d0b29f4cac 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Configuration/Models/Validation/ContentSettingsValidatorTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Configuration/Models/Validation/ContentSettingsValidatorTests.cs @@ -3,10 +3,10 @@ using Microsoft.Extensions.Options; using NUnit.Framework; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Configuration.Models.Validation; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Configuration.Models.Validation; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Configuration.Models.Validation +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Configuration.Models.Validation { [TestFixture] public class ContentSettingsValidatorTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Configuration/Models/Validation/GlobalSettingsValidatorTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Configuration/Models/Validation/GlobalSettingsValidatorTests.cs index ca20129092..9228182a8a 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Configuration/Models/Validation/GlobalSettingsValidatorTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Configuration/Models/Validation/GlobalSettingsValidatorTests.cs @@ -3,10 +3,10 @@ using Microsoft.Extensions.Options; using NUnit.Framework; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Configuration.Models.Validation; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Configuration.Models.Validation; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Configuration.Models.Validation +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Configuration.Models.Validation { [TestFixture] public class GlobalSettingsValidatorTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Configuration/Models/Validation/HealthChecksSettingsValidatorTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Configuration/Models/Validation/HealthChecksSettingsValidatorTests.cs index b645c758dc..505e37a51e 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Configuration/Models/Validation/HealthChecksSettingsValidatorTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Configuration/Models/Validation/HealthChecksSettingsValidatorTests.cs @@ -4,11 +4,11 @@ using System; using Microsoft.Extensions.Options; using NUnit.Framework; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Configuration.Models.Validation; using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Configuration.Models.Validation; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Configuration.Models.Validation +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Configuration.Models.Validation { [TestFixture] public class HealthChecksSettingsValidatorTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Configuration/Models/Validation/RequestHandlerSettingsValidatorTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Configuration/Models/Validation/RequestHandlerSettingsValidatorTests.cs index 4a53fbf375..d8f0c0847a 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Configuration/Models/Validation/RequestHandlerSettingsValidatorTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Configuration/Models/Validation/RequestHandlerSettingsValidatorTests.cs @@ -3,10 +3,10 @@ using Microsoft.Extensions.Options; using NUnit.Framework; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Configuration.Models.Validation; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Configuration.Models.Validation; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Configuration.Models.Validation +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Configuration.Models.Validation { [TestFixture] public class RequestHandlerSettingsValidatorTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Configuration/NCronTabParserTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Configuration/NCronTabParserTests.cs index 8ab3d01882..b58a7309e2 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Configuration/NCronTabParserTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Configuration/NCronTabParserTests.cs @@ -2,9 +2,10 @@ // See LICENSE for more details. using NUnit.Framework; +using Umbraco.Cms.Core.Configuration; using Umbraco.Core.Configuration; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Configuration +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Configuration { [TestFixture] public class NCronTabParserTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/CoreThings/CallContextTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/CoreThings/CallContextTests.cs index 82eef0eb71..ac54e72cce 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/CoreThings/CallContextTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/CoreThings/CallContextTests.cs @@ -2,10 +2,10 @@ // See LICENSE for more details. using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Scoping; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Scoping; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.CoreThings +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.CoreThings { [TestFixture] public class CallContextTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/CoreThings/ObjectExtensionsTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/CoreThings/ObjectExtensionsTests.cs index b1ff2c8fbe..f8a07fdf21 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/CoreThings/ObjectExtensionsTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/CoreThings/ObjectExtensionsTests.cs @@ -7,11 +7,12 @@ using System.Globalization; using System.Linq; using System.Threading; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.PropertyEditors; -using Umbraco.Tests.TestHelpers.Entities; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Tests.Common.TestHelpers; +using Umbraco.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.CoreThings +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.CoreThings { [TestFixture] public class ObjectExtensionsTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/CoreThings/TryConvertToTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/CoreThings/TryConvertToTests.cs index 7ebbe72ac1..6857a055bb 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/CoreThings/TryConvertToTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/CoreThings/TryConvertToTests.cs @@ -3,9 +3,9 @@ using System; using NUnit.Framework; -using Umbraco.Core; +using Umbraco.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.CoreThings +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.CoreThings { [TestFixture] public class TryConvertToTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/CoreThings/UdiTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/CoreThings/UdiTests.cs index 8703d4d7f4..89c5969281 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/CoreThings/UdiTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/CoreThings/UdiTests.cs @@ -7,11 +7,12 @@ using System.Linq; using System.Reflection; using Newtonsoft.Json; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Deploy; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Deploy; using Umbraco.Core.Serialization; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.CoreThings +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.CoreThings { [TestFixture] public class UdiTests @@ -275,14 +276,14 @@ namespace Umbraco.Tests.UnitTests.Umbraco.Core.CoreThings // unless we want to know Assert.IsFalse(UdiParser.TryParse("umb://whatever/1234", true, out udi)); Assert.AreEqual(Constants.UdiEntityType.Unknown, udi.EntityType); - Assert.AreEqual("Umbraco.Core.UnknownTypeUdi", udi.GetType().FullName); + Assert.AreEqual("Umbraco.Cms.Core.UnknownTypeUdi", udi.GetType().FullName); UdiParser.ResetUdiTypes(); // not known Assert.IsFalse(UdiParser.TryParse("umb://foo/A87F65C8D6B94E868F6949BA92C93045", true, out udi)); Assert.AreEqual(Constants.UdiEntityType.Unknown, udi.EntityType); - Assert.AreEqual("Umbraco.Core.UnknownTypeUdi", udi.GetType().FullName); + Assert.AreEqual("Umbraco.Cms.Core.UnknownTypeUdi", udi.GetType().FullName); // scanned UdiParserServiceConnectors.RegisterServiceConnector(); // this is the equivalent of scanning but we'll just manually register this one diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/CoreXml/FrameworkXmlTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/CoreXml/FrameworkXmlTests.cs index e91f47893f..97814824d6 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/CoreXml/FrameworkXmlTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/CoreXml/FrameworkXmlTests.cs @@ -5,7 +5,7 @@ using System.Xml; using System.Xml.XPath; using NUnit.Framework; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.CoreXml +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.CoreXml { [TestFixture] public class FrameworkXmlTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/CoreXml/NavigableNavigatorTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/CoreXml/NavigableNavigatorTests.cs index d0990114e8..90d999c01d 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/CoreXml/NavigableNavigatorTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/CoreXml/NavigableNavigatorTests.cs @@ -11,10 +11,12 @@ using System.Xml; using System.Xml.XPath; using System.Xml.Xsl; using NUnit.Framework; -using Umbraco.Core.Xml; -using Umbraco.Core.Xml.XPath; +using Umbraco.Cms.Core.Xml; +using Umbraco.Cms.Core.Xml.XPath; +using Umbraco.Cms.Tests.Common.TestHelpers; +using Umbraco.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.CoreXml +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.CoreXml { [TestFixture] public class NavigableNavigatorTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/CoreXml/RenamedRootNavigatorTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/CoreXml/RenamedRootNavigatorTests.cs index 2b6b584ca8..245d5f36a4 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/CoreXml/RenamedRootNavigatorTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/CoreXml/RenamedRootNavigatorTests.cs @@ -5,9 +5,10 @@ using System.Runtime.InteropServices; using System.Xml; using System.Xml.XPath; using NUnit.Framework; -using Umbraco.Core.Xml.XPath; +using Umbraco.Cms.Core.Xml.XPath; +using Umbraco.Cms.Tests.Common.TestHelpers; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.CoreXml +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.CoreXml { [TestFixture] public class RenamedRootNavigatorTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/DelegateExtensionsTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/DelegateExtensionsTests.cs index cc4b716944..c7a849cbc2 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/DelegateExtensionsTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/DelegateExtensionsTests.cs @@ -4,9 +4,10 @@ using System; using Lucene.Net.Index; using NUnit.Framework; -using Umbraco.Core; +using Umbraco.Cms.Core; +using Umbraco.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Core +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core { [TestFixture] public class DelegateExtensionsTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/EnumExtensionsTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/EnumExtensionsTests.cs index bf1e35a5ac..ebb563bdf4 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/EnumExtensionsTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/EnumExtensionsTests.cs @@ -3,10 +3,10 @@ using System; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Web.Trees; +using Umbraco.Cms.Core.Trees; +using Umbraco.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Core +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core { [TestFixture] public class EnumExtensionsTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/EnumerableExtensionsTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/EnumerableExtensionsTests.cs index 72a1ce25c6..a3e29c28aa 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/EnumerableExtensionsTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/EnumerableExtensionsTests.cs @@ -5,9 +5,9 @@ using System; using System.Collections.Generic; using System.Linq; using NUnit.Framework; -using Umbraco.Core; +using Umbraco.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Core +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core { [TestFixture] public class EnumerableExtensionsTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Events/EventAggregatorTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Events/EventAggregatorTests.cs index 57a3fb0bd7..bd43daf975 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Events/EventAggregatorTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Events/EventAggregatorTests.cs @@ -7,11 +7,11 @@ using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Moq; using NUnit.Framework; -using Umbraco.Core.DependencyInjection; -using Umbraco.Core.Events; -using Umbraco.Tests.TestHelpers; +using Umbraco.Cms.Core.DependencyInjection; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Tests.UnitTests.TestHelpers; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Events +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Events { [TestFixture] public class EventAggregatorTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Extensions/ClaimsPrincipalExtensionsTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Extensions/ClaimsPrincipalExtensionsTests.cs index 7b699e7b0c..fe688ceb76 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Extensions/ClaimsPrincipalExtensionsTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Extensions/ClaimsPrincipalExtensionsTests.cs @@ -5,11 +5,11 @@ using System; using System.Linq; using System.Security.Claims; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Security; +using Umbraco.Cms.Core.Security; using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Extensions +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Extensions { [TestFixture] public class ClaimsPrincipalExtensionsTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Extensions/UriExtensionsTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Extensions/UriExtensionsTests.cs index fa5ff0df0b..0baec74432 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Extensions/UriExtensionsTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Extensions/UriExtensionsTests.cs @@ -6,11 +6,11 @@ using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Options; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Web.Common.AspNetCore; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Web.Common.AspNetCore; +using Umbraco.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Extensions +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Extensions { [TestFixture] public class UriExtensionsTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/GuidUtilsTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/GuidUtilsTests.cs index db16dbeb8b..da9865e72e 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/GuidUtilsTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/GuidUtilsTests.cs @@ -3,9 +3,9 @@ using System; using NUnit.Framework; -using Umbraco.Core; +using Umbraco.Cms.Core; -namespace Umbraco.Tests.UnitTests.Umbraco.Core +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core { public class GuidUtilsTests { diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/HashCodeCombinerTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/HashCodeCombinerTests.cs index e9b43852c3..416368b9b0 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/HashCodeCombinerTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/HashCodeCombinerTests.cs @@ -5,9 +5,9 @@ using System; using System.IO; using System.Reflection; using NUnit.Framework; -using Umbraco.Core; +using Umbraco.Cms.Core; -namespace Umbraco.Tests.UnitTests.Umbraco.Core +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core { [TestFixture] public class HashCodeCombinerTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/HashGeneratorTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/HashGeneratorTests.cs index a0e75352dd..1a6f77d2c8 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/HashGeneratorTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/HashGeneratorTests.cs @@ -5,9 +5,9 @@ using System; using System.IO; using System.Reflection; using NUnit.Framework; -using Umbraco.Core; +using Umbraco.Cms.Core; -namespace Umbraco.Tests.UnitTests.Umbraco.Core +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core { [TestFixture] public class HashGeneratorTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/HexEncoderTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/HexEncoderTests.cs index 47d97ffaf8..22b43205a2 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/HexEncoderTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/HexEncoderTests.cs @@ -4,9 +4,9 @@ using System; using System.Text; using NUnit.Framework; -using Umbraco.Core; +using Umbraco.Cms.Core; -namespace Umbraco.Tests.UnitTests.Umbraco.Core +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core { public class HexEncoderTests { diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/IO/AbstractFileSystemTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/IO/AbstractFileSystemTests.cs index 71757c788d..133913d91a 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/IO/AbstractFileSystemTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/IO/AbstractFileSystemTests.cs @@ -8,9 +8,9 @@ using System.Linq; using System.Text; using System.Threading; using NUnit.Framework; -using Umbraco.Core.IO; +using Umbraco.Cms.Core.IO; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.IO +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.IO { [TestFixture] [Apartment(ApartmentState.STA)] diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/IO/PhysicalFileSystemTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/IO/PhysicalFileSystemTests.cs index 5ec7e5873e..d72a906def 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/IO/PhysicalFileSystemTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/IO/PhysicalFileSystemTests.cs @@ -8,10 +8,10 @@ using System.Threading; using Microsoft.Extensions.Logging; using Moq; using NUnit.Framework; -using Umbraco.Core.IO; -using Umbraco.Tests.TestHelpers; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Tests.UnitTests.TestHelpers; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.IO +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.IO { [TestFixture] [Apartment(ApartmentState.STA)] diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Manifest/ManifestContentAppTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Manifest/ManifestContentAppTests.cs index b3c75adfde..8cd8dc85ab 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Manifest/ManifestContentAppTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Manifest/ManifestContentAppTests.cs @@ -6,13 +6,13 @@ using System.Linq; using Moq; using Newtonsoft.Json; using NUnit.Framework; -using Umbraco.Core.Manifest; -using Umbraco.Core.Models; -using Umbraco.Core.Models.ContentEditing; -using Umbraco.Core.Models.Membership; -using Umbraco.Tests.TestHelpers; +using Umbraco.Cms.Core.Manifest; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Tests.UnitTests.TestHelpers; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Manifest +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Manifest { [TestFixture] public class ManifestContentAppTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Manifest/ManifestParserTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Manifest/ManifestParserTests.cs index ccab1885bb..7524b8f51c 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Manifest/ManifestParserTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Manifest/ManifestParserTests.cs @@ -11,18 +11,20 @@ using Moq; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using NUnit.Framework; -using Umbraco.Core.Cache; -using Umbraco.Core.Dashboards; -using Umbraco.Core.IO; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Dashboards; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Manifest; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.PropertyEditors.Validators; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Tests.UnitTests.TestHelpers; using Umbraco.Core.Manifest; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.PropertyEditors.Validators; using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; -using Umbraco.Tests.TestHelpers; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Manifest +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Manifest { [TestFixture] public class ManifestParserTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/Collections/Item.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/Collections/Item.cs index 192daee0bf..6c4a0e2828 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/Collections/Item.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/Collections/Item.cs @@ -7,10 +7,10 @@ using System.ComponentModel; using System.Linq; using System.Reflection; using System.Runtime.Serialization; -using Umbraco.Core; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Models.Collections +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Models.Collections { public abstract class Item : IEntity, ICanBeDirty { diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/Collections/OrderItem.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/Collections/OrderItem.cs index 91ccc3cac8..bb9129951e 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/Collections/OrderItem.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/Collections/OrderItem.cs @@ -3,7 +3,7 @@ using System; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Models.Collections +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Models.Collections { public class OrderItem : Item { diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/Collections/PropertyCollectionTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/Collections/PropertyCollectionTests.cs index 643ad1f64e..580774b43a 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/Collections/PropertyCollectionTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/Collections/PropertyCollectionTests.cs @@ -4,12 +4,12 @@ using System.Collections.Generic; using System.Linq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.TestHelpers; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.UnitTests.TestHelpers; +using Umbraco.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Models.Collections +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Models.Collections { [TestFixture] public class PropertyCollectionTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/Collections/SimpleOrder.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/Collections/SimpleOrder.cs index 86022f094b..5bd6389b23 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/Collections/SimpleOrder.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/Collections/SimpleOrder.cs @@ -6,7 +6,7 @@ using System.Collections.ObjectModel; using System.Collections.Specialized; using System.Linq; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Models.Collections +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Models.Collections { public class SimpleOrder : KeyedCollection, INotifyCollectionChanged { diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/ContentExtensionsTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/ContentExtensionsTests.cs index 556e855c83..abe7c1d08e 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/ContentExtensionsTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/ContentExtensionsTests.cs @@ -5,12 +5,12 @@ using System; using System.Linq; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Services; -using Umbraco.Tests.Common.Builders; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Models +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Models { [TestFixture] public class ContentExtensionsTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/ContentScheduleTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/ContentScheduleTests.cs index bdf1591301..81aecc94e7 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/ContentScheduleTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/ContentScheduleTests.cs @@ -5,9 +5,9 @@ using System; using System.Collections.Generic; using System.Linq; using NUnit.Framework; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Models +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Models { [TestFixture] public class ContentScheduleTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/ContentTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/ContentTests.cs index d59dafcda0..21d495f3a0 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/ContentTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/ContentTests.cs @@ -12,18 +12,18 @@ using Microsoft.Extensions.Logging.Abstractions; using Moq; using Newtonsoft.Json; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Logging; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Services; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; -using Umbraco.Tests.TestHelpers.Stubs; -using Umbraco.Tests.Testing; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Tests.Common.Extensions; +using Umbraco.Cms.Tests.Common.TestHelpers.Stubs; +using Umbraco.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Models +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Models { [TestFixture] public class ContentTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/ContentTypeTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/ContentTypeTests.cs index 3970fb9f53..00b2a3273a 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/ContentTypeTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/ContentTypeTests.cs @@ -7,12 +7,12 @@ using System.Linq; using System.Reflection; using Newtonsoft.Json; using NUnit.Framework; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Models +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Models { [TestFixture] public class ContentTypeTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/CultureImpactTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/CultureImpactTests.cs index f72a28b0f3..a6a71b3c6e 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/CultureImpactTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/CultureImpactTests.cs @@ -3,9 +3,9 @@ using Moq; using NUnit.Framework; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Models +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Models { [TestFixture] public class CultureImpactTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/DeepCloneHelperTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/DeepCloneHelperTests.cs index 6dc251d9f8..07b25965e9 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/DeepCloneHelperTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/DeepCloneHelperTests.cs @@ -5,9 +5,9 @@ using System.Collections; using System.Collections.Generic; using System.Linq; using NUnit.Framework; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Models +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Models { [TestFixture] public class DeepCloneHelperTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/DictionaryItemTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/DictionaryItemTests.cs index 4994c12f84..17d06deafa 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/DictionaryItemTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/DictionaryItemTests.cs @@ -5,10 +5,10 @@ using System.Linq; using System.Reflection; using Newtonsoft.Json; using NUnit.Framework; -using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Builders; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Models +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Models { [TestFixture] public class DictionaryItemTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/DictionaryTranslationTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/DictionaryTranslationTests.cs index 073a168e23..ef8dda0ba8 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/DictionaryTranslationTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/DictionaryTranslationTests.cs @@ -6,11 +6,11 @@ using System.Linq; using System.Reflection; using Newtonsoft.Json; using NUnit.Framework; -using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Models +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Models { [TestFixture] public class DictionaryTranslationTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/DocumentEntityTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/DocumentEntityTests.cs index ec3ed57bd6..6ede1a5bf3 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/DocumentEntityTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/DocumentEntityTests.cs @@ -4,11 +4,11 @@ using System.Diagnostics; using Newtonsoft.Json; using NUnit.Framework; -using Umbraco.Core.Models.Entities; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Models +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Models { [TestFixture] public class DocumentEntityTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/LanguageTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/LanguageTests.cs index 5523f57680..4f2d70a407 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/LanguageTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/LanguageTests.cs @@ -4,11 +4,11 @@ using System.Reflection; using Newtonsoft.Json; using NUnit.Framework; -using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Models +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Models { [TestFixture] public class LanguageTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/MacroTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/MacroTests.cs index d7964e45b2..cfdb08e7f4 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/MacroTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/MacroTests.cs @@ -5,12 +5,12 @@ using System; using System.Linq; using System.Reflection; using NUnit.Framework; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Models +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Models { [TestFixture] public class MacroTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/MemberGroupTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/MemberGroupTests.cs index 165a42b225..cffe093c09 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/MemberGroupTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/MemberGroupTests.cs @@ -6,11 +6,11 @@ using System.Diagnostics; using System.Reflection; using Newtonsoft.Json; using NUnit.Framework; -using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Models +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Models { [TestFixture] public class MemberGroupTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/MemberTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/MemberTests.cs index 8ca253c224..83dbe0a266 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/MemberTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/MemberTests.cs @@ -6,11 +6,11 @@ using System.Linq; using System.Reflection; using Newtonsoft.Json; using NUnit.Framework; -using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Models +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Models { [TestFixture] public class MemberTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/PropertyGroupTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/PropertyGroupTests.cs index 647684ff2f..80a3391787 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/PropertyGroupTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/PropertyGroupTests.cs @@ -5,11 +5,11 @@ using System.Diagnostics; using System.Reflection; using Newtonsoft.Json; using NUnit.Framework; -using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Models +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Models { [TestFixture] public class PropertyGroupTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/PropertyTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/PropertyTests.cs index 99188759af..d9cfe3e0d5 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/PropertyTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/PropertyTests.cs @@ -4,11 +4,11 @@ using System.Linq; using System.Reflection; using NUnit.Framework; -using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Models +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Models { [TestFixture] public class PropertyTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/PropertyTypeTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/PropertyTypeTests.cs index cce3f43db0..b5127715ff 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/PropertyTypeTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/PropertyTypeTests.cs @@ -7,11 +7,11 @@ using System.Linq; using System.Reflection; using Newtonsoft.Json; using NUnit.Framework; -using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Models +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Models { [TestFixture] public class PropertyTypeTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/RangeTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/RangeTests.cs index 3fb4e8708b..c76f8dc7e5 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/RangeTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/RangeTests.cs @@ -1,8 +1,8 @@ using System.Globalization; using NUnit.Framework; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Tests.Models +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Models { [TestFixture] public class RangeTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/RelationTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/RelationTests.cs index 66fce7f93f..81f1c4c49e 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/RelationTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/RelationTests.cs @@ -6,11 +6,11 @@ using System.Diagnostics; using System.Reflection; using Newtonsoft.Json; using NUnit.Framework; -using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Models +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Models { [TestFixture] public class RelationTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/RelationTypeTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/RelationTypeTests.cs index d29f89283d..77195a9d49 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/RelationTypeTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/RelationTypeTests.cs @@ -5,11 +5,11 @@ using System; using System.Reflection; using Newtonsoft.Json; using NUnit.Framework; -using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Models +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Models { [TestFixture] public class RelationTypeTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/StylesheetTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/StylesheetTests.cs index a2d9ed18f8..dc163ab39f 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/StylesheetTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/StylesheetTests.cs @@ -7,10 +7,10 @@ using System.Diagnostics; using System.Linq; using Newtonsoft.Json; using NUnit.Framework; -using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Builders; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Models +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Models { [TestFixture] public class StylesheetTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/TemplateTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/TemplateTests.cs index 04a49456b6..a2d6f95f6c 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/TemplateTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/TemplateTests.cs @@ -7,11 +7,11 @@ using System.Linq; using System.Reflection; using Newtonsoft.Json; using NUnit.Framework; -using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Models +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Models { [TestFixture] public class TemplateTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/UserExtensionsTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/UserExtensionsTests.cs index 426f698969..556fb42ff0 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/UserExtensionsTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/UserExtensionsTests.cs @@ -6,13 +6,13 @@ using System.Collections.Generic; using System.Linq; using Moq; using NUnit.Framework; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Services; -using Umbraco.Tests.Common.Builders; -using User = Umbraco.Core.Models.Membership.User; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using User = Umbraco.Cms.Core.Models.Membership.User; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Models +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Models { [TestFixture] public class UserExtensionsTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/UserTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/UserTests.cs index 9f0613f9d6..a0383bd2ca 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/UserTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/UserTests.cs @@ -6,11 +6,11 @@ using System.Linq; using System.Reflection; using Newtonsoft.Json; using NUnit.Framework; -using Umbraco.Core.Models.Membership; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Models +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Models { [TestFixture] public class UserTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/VariationTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/VariationTests.cs index f92ba1ddeb..89ea1f61c7 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/VariationTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/VariationTests.cs @@ -5,19 +5,22 @@ using System; using Microsoft.Extensions.Logging.Abstractions; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.IO; -using Umbraco.Core.Models; -using Umbraco.Core.PropertyEditors; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Tests.UnitTests.TestHelpers; using Umbraco.Core.Serialization; using Umbraco.Core.Services; -using Umbraco.Core.Strings; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; -using Umbraco.Tests.TestHelpers; +using Umbraco.Extensions; using Umbraco.Web.PropertyEditors; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Models +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Models { [TestFixture] public class VariationTests @@ -117,7 +120,7 @@ namespace Umbraco.Tests.UnitTests.Umbraco.Core.Models } /// - /// Asserts the result of + /// Asserts the result of /// /// Validate using Exact + Wildcards flags /// Validate using non Exact + no Wildcard flags diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Packaging/PackageExtractionTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Packaging/PackageExtractionTests.cs index a5025b6ec5..435c2f14dc 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Packaging/PackageExtractionTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Packaging/PackageExtractionTests.cs @@ -5,9 +5,9 @@ using System.Collections.Generic; using System.IO; using System.Linq; using NUnit.Framework; -using Umbraco.Core.Packaging; +using Umbraco.Cms.Core.Packaging; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Packaging +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Packaging { [TestFixture] public class PackageExtractionTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/BlockEditorComponentTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/BlockEditorComponentTests.cs index 438d2053e8..c8a70fe0ed 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/BlockEditorComponentTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/BlockEditorComponentTests.cs @@ -6,10 +6,12 @@ using System.Collections.Generic; using System.Linq; using Newtonsoft.Json; using NUnit.Framework; -using Umbraco.Core; +using Umbraco.Cms.Core; +using Umbraco.Extensions; using Umbraco.Web.Compose; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.PropertyEditors { [TestFixture] public class BlockEditorComponentTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/BlockListPropertyValueConverterTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/BlockListPropertyValueConverterTests.cs index b232647d89..b0e07c442d 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/BlockListPropertyValueConverterTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/BlockListPropertyValueConverterTests.cs @@ -4,16 +4,16 @@ using System; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Logging; -using Umbraco.Core.Models.Blocks; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.PropertyEditors; -using Umbraco.Web.PropertyEditors; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Models.Blocks; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.PublishedCache; using Umbraco.Web.PropertyEditors.ValueConverters; -using Umbraco.Web.PublishedCache; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.PropertyEditors { [TestFixture] public class BlockListPropertyValueConverterTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/ColorListValidatorTest.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/ColorListValidatorTest.cs index 1264e24e58..6940f2fb2a 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/ColorListValidatorTest.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/ColorListValidatorTest.cs @@ -9,13 +9,13 @@ using Microsoft.Extensions.Logging.Abstractions; using Moq; using Newtonsoft.Json.Linq; using NUnit.Framework; -using Umbraco.Core.IO; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; using Umbraco.Web.PropertyEditors; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.PropertyEditors { [TestFixture] public class ColorListValidatorTest diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/ConvertersTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/ConvertersTests.cs index f78a72b42a..9e30acaa2f 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/ConvertersTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/ConvertersTests.cs @@ -9,20 +9,20 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging.Abstractions; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.DependencyInjection; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.PropertyEditors; +using Umbraco.Cms.Core.DependencyInjection; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Tests.Common.Published; +using Umbraco.Cms.Tests.Common.TestHelpers; +using Umbraco.Cms.Tests.UnitTests.TestHelpers; using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; -using Umbraco.Tests.Common.PublishedContent; -using Umbraco.Tests.TestHelpers; -using Umbraco.Tests.UnitTests.TestHelpers; -using Umbraco.Web.PublishedCache; +using Umbraco.Extensions; -namespace Umbraco.Tests.Published +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.PropertyEditors { [TestFixture] public class ConvertersTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/DataValueReferenceFactoryCollectionTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/DataValueReferenceFactoryCollectionTests.cs index d29ba45531..d030f7a67a 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/DataValueReferenceFactoryCollectionTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/DataValueReferenceFactoryCollectionTests.cs @@ -7,18 +7,22 @@ using System.Linq; using Microsoft.Extensions.Logging.Abstractions; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.IO; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Editors; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Editors; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; using Umbraco.Core.PropertyEditors; using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Umbraco.Extensions; using Umbraco.Web.PropertyEditors; -using static Umbraco.Core.Models.Property; +using static Umbraco.Cms.Core.Models.Property; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.PropertyEditors { [TestFixture] public class DataValueReferenceFactoryCollectionTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/EnsureUniqueValuesValidatorTest.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/EnsureUniqueValuesValidatorTest.cs index 230be138ce..86b0fe9ed9 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/EnsureUniqueValuesValidatorTest.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/EnsureUniqueValuesValidatorTest.cs @@ -9,13 +9,13 @@ using Microsoft.Extensions.Logging.Abstractions; using Moq; using Newtonsoft.Json.Linq; using NUnit.Framework; -using Umbraco.Core.IO; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; using Umbraco.Web.PropertyEditors; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.PropertyEditors { [TestFixture] public class EnsureUniqueValuesValidatorTest diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/MultiValuePropertyEditorTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/MultiValuePropertyEditorTests.cs index 0b069d9662..d03bb41e55 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/MultiValuePropertyEditorTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/MultiValuePropertyEditorTests.cs @@ -7,15 +7,15 @@ using Microsoft.Extensions.Logging.Abstractions; using Moq; using Newtonsoft.Json; using NUnit.Framework; -using Umbraco.Core.IO; -using Umbraco.Core.Models; -using Umbraco.Core.PropertyEditors; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; using Umbraco.Web.PropertyEditors; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.PropertyEditors { /// /// Tests for the base classes of ValueEditors and PreValueEditors that are used for Property Editors that edit diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/NestedContentPropertyComponentTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/NestedContentPropertyComponentTests.cs index 022e19c18e..cb99bb2931 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/NestedContentPropertyComponentTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/NestedContentPropertyComponentTests.cs @@ -6,7 +6,7 @@ using Newtonsoft.Json; using NUnit.Framework; using Umbraco.Web.Compose; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.PropertyEditors { [TestFixture] public class NestedContentPropertyComponentTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/PropertyEditorValueConverterTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/PropertyEditorValueConverterTests.cs index 94e68af881..599ce254d2 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/PropertyEditorValueConverterTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/PropertyEditorValueConverterTests.cs @@ -6,15 +6,15 @@ using System.Collections.Generic; using System.Linq; using Moq; using NUnit.Framework; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.PropertyEditors.ValueConverters; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.PropertyEditors.ValueConverters; +using Umbraco.Cms.Core.Strings; using Umbraco.Core.Serialization; -using Umbraco.Core.Strings; using Umbraco.Web.PropertyEditors.ValueConverters; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.PropertyEditors { [TestFixture] public class PropertyEditorValueConverterTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/PropertyEditorValueEditorTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/PropertyEditorValueEditorTests.cs index a351439c90..4248120b5e 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/PropertyEditorValueEditorTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/PropertyEditorValueEditorTests.cs @@ -4,13 +4,14 @@ using System; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Strings; -using Umbraco.Tests.TestHelpers.Entities; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Tests.Common.TestHelpers; +using Umbraco.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.PropertyEditors +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.PropertyEditors { [TestFixture] public class PropertyEditorValueEditorTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Published/ConvertersTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Published/ConvertersTests.cs index 352a1f45cd..e386437ea4 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Published/ConvertersTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Published/ConvertersTests.cs @@ -7,17 +7,17 @@ using System.Linq; using Microsoft.Extensions.Logging; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.PropertyEditors; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Tests.Common.TestHelpers; using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; -using Umbraco.Tests.Common.PublishedContent; -using Umbraco.Web.PublishedCache; +using Umbraco.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Published +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Published { [TestFixture] public class ConvertersTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Published/ModelTypeTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Published/ModelTypeTests.cs index 92bdf638a9..1ae968301d 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Published/ModelTypeTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Published/ModelTypeTests.cs @@ -4,10 +4,10 @@ using System; using System.Collections.Generic; using NUnit.Framework; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Tests.Published; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Tests.Common.Published; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Published +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Published { [TestFixture] public class ModelTypeTests @@ -57,16 +57,16 @@ namespace Umbraco.Tests.UnitTests.Umbraco.Core.Published }; Assert.AreEqual( - "Umbraco.Tests.Published.PublishedSnapshotTestObjects+TestElementModel1", + "Umbraco.Cms.Tests.Common.Published.PublishedSnapshotTestObjects+TestElementModel1", ModelType.Map(ModelType.For("alias1"), map).ToString()); Assert.AreEqual( - "Umbraco.Tests.Published.PublishedSnapshotTestObjects+TestElementModel1[]", + "Umbraco.Cms.Tests.Common.Published.PublishedSnapshotTestObjects+TestElementModel1[]", ModelType.Map(ModelType.For("alias1").MakeArrayType(), map).ToString()); Assert.AreEqual( - "System.Collections.Generic.IEnumerable`1[Umbraco.Tests.Published.PublishedSnapshotTestObjects+TestElementModel1]", + "System.Collections.Generic.IEnumerable`1[Umbraco.Cms.Tests.Common.Published.PublishedSnapshotTestObjects+TestElementModel1]", ModelType.Map(typeof(IEnumerable<>).MakeGenericType(ModelType.For("alias1")), map).ToString()); Assert.AreEqual( - "System.Collections.Generic.IEnumerable`1[Umbraco.Tests.Published.PublishedSnapshotTestObjects+TestElementModel1[]]", + "System.Collections.Generic.IEnumerable`1[Umbraco.Cms.Tests.Common.Published.PublishedSnapshotTestObjects+TestElementModel1[]]", ModelType.Map(typeof(IEnumerable<>).MakeGenericType(ModelType.For("alias1").MakeArrayType()), map).ToString()); } } diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Published/NestedContentTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Published/NestedContentTests.cs index 102dd6388e..734944755e 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Published/NestedContentTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Published/NestedContentTests.cs @@ -9,21 +9,21 @@ using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging.Abstractions; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.IO; -using Umbraco.Core.Logging; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.PropertyEditors; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Tests.Common.TestHelpers; using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; -using Umbraco.Tests.Common.PublishedContent; +using Umbraco.Extensions; using Umbraco.Web.PropertyEditors; using Umbraco.Web.PropertyEditors.ValueConverters; -using Umbraco.Web.PublishedCache; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Published +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Published { [TestFixture] public class NestedContentTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Published/PropertyCacheLevelTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Published/PropertyCacheLevelTests.cs index d020fb01d5..16c941656c 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Published/PropertyCacheLevelTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Published/PropertyCacheLevelTests.cs @@ -6,17 +6,17 @@ using System.Collections.Generic; using Microsoft.Extensions.Logging.Abstractions; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.PropertyEditors; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; -using Umbraco.Web.PublishedCache; +using Umbraco.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Published +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Published { [TestFixture] public class PropertyCacheLevelTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/ReflectionTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/ReflectionTests.cs index 6950c50cc0..817bef62d4 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/ReflectionTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/ReflectionTests.cs @@ -4,9 +4,9 @@ using System; using System.Linq; using NUnit.Framework; -using Umbraco.Core; +using Umbraco.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Core +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core { [TestFixture] public class ReflectionTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/ReflectionUtilitiesTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/ReflectionUtilitiesTests.cs index ba397522ae..5545b471c6 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/ReflectionUtilitiesTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/ReflectionUtilitiesTests.cs @@ -7,9 +7,10 @@ using System.Linq; using System.Reflection; using Newtonsoft.Json; using NUnit.Framework; +using Umbraco.Cms.Core; using Umbraco.Core; -namespace Umbraco.Tests.UnitTests.Umbraco.Core +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core { [TestFixture] public class ReflectionUtilitiesTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Routing/SiteDomainHelperTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Routing/SiteDomainHelperTests.cs index 13f6794a5d..729ec5fb7f 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Routing/SiteDomainHelperTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Routing/SiteDomainHelperTests.cs @@ -3,12 +3,11 @@ using System; using System.Collections.Generic; -using System.Globalization; using System.Linq; using NUnit.Framework; -using Umbraco.Web.Routing; +using Umbraco.Cms.Core.Routing; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Routing +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Routing { [TestFixture] public class SiteDomainHelperTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Routing/UmbracoRequestPathsTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Routing/UmbracoRequestPathsTests.cs index 57015f30ea..fffabb8d79 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Routing/UmbracoRequestPathsTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Routing/UmbracoRequestPathsTests.cs @@ -3,12 +3,12 @@ using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Options; using Moq; using NUnit.Framework; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Routing; -using Umbraco.Web.Common.AspNetCore; -using IHostingEnvironment = Umbraco.Core.Hosting.IHostingEnvironment; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Web.Common.AspNetCore; +using IHostingEnvironment = Umbraco.Cms.Core.Hosting.IHostingEnvironment; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Routing +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Routing { [TestFixture] public class UmbracoRequestPathsTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Routing/UriUtilityTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Routing/UriUtilityTests.cs index 4789698fcd..fad2e00db9 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Routing/UriUtilityTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Routing/UriUtilityTests.cs @@ -4,11 +4,11 @@ using System; using Moq; using NUnit.Framework; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Web; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Routing; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Routing +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Routing { // FIXME: not testing virtual directory! diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Routing/WebPathTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Routing/WebPathTests.cs index ec1602e629..2f9c05994f 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Routing/WebPathTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Routing/WebPathTests.cs @@ -3,9 +3,9 @@ using System; using NUnit.Framework; -using Umbraco.Core.Routing; +using Umbraco.Cms.Core.Routing; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Routing +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Routing { [TestFixture] public class WebPathTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Scoping/EventNameExtractorTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Scoping/EventNameExtractorTests.cs index 60e3915325..b58291505e 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Scoping/EventNameExtractorTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Scoping/EventNameExtractorTests.cs @@ -3,10 +3,10 @@ using System; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Events; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Events; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Scoping +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Scoping { [TestFixture] public class EventNameExtractorTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Scoping/ScopeEventDispatcherTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Scoping/ScopeEventDispatcherTests.cs index 49440af438..87c8a90e34 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Scoping/ScopeEventDispatcherTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Scoping/ScopeEventDispatcherTests.cs @@ -5,18 +5,19 @@ using Microsoft.Extensions.Logging.Abstractions; using Microsoft.Extensions.Options; using Moq; using NUnit.Framework; -using Umbraco.Core.Cache; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Events; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Scoping; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; using Umbraco.Core.Persistence; using Umbraco.Core.Scoping; -using Umbraco.Core.Services; -using Umbraco.Tests.Common.Builders; -namespace Umbraco.Tests.Scoping +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Scoping { [TestFixture] public class ScopeEventDispatcherTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Security/ContentPermissionsTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Security/ContentPermissionsTests.cs index f4bd63f1f8..fc52aaf275 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Security/ContentPermissionsTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Security/ContentPermissionsTests.cs @@ -3,15 +3,15 @@ using Moq; using NUnit.Framework; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Security +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Security { [TestFixture] public class ContentPermissionsTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Security/LegacyPasswordSecurityTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Security/LegacyPasswordSecurityTests.cs index c41b2b60a0..273823eec3 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Security/LegacyPasswordSecurityTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Security/LegacyPasswordSecurityTests.cs @@ -3,11 +3,11 @@ using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Configuration; -using Umbraco.Core.Security; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Security; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Security +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Security { [TestFixture] public class LegacyPasswordSecurityTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Security/MediaPermissionsTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Security/MediaPermissionsTests.cs index 52c37717d9..370e968a76 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Security/MediaPermissionsTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Security/MediaPermissionsTests.cs @@ -3,15 +3,15 @@ using Moq; using NUnit.Framework; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Security +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Security { [TestFixture] public class MediaPermissionsTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Services/ContentTypeServiceExtensionsTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Services/ContentTypeServiceExtensionsTests.cs index af91e78afa..12c7f93ff8 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Services/ContentTypeServiceExtensionsTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Services/ContentTypeServiceExtensionsTests.cs @@ -1,17 +1,17 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -using System; using System.Linq; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; -using Umbraco.Tests.Common.Builders; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Services +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Services { [TestFixture] public class ContentTypeServiceExtensionsTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/ShortStringHelper/CmsHelperCasingTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/ShortStringHelper/CmsHelperCasingTests.cs index 9dabbc7f36..5f72f0d93d 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/ShortStringHelper/CmsHelperCasingTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/ShortStringHelper/CmsHelperCasingTests.cs @@ -3,11 +3,11 @@ using Microsoft.Extensions.Options; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Strings; +using Umbraco.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.ShortStringHelper +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.ShortStringHelper { [TestFixture] public class CmsHelperCasingTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/ShortStringHelper/DefaultShortStringHelperTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/ShortStringHelper/DefaultShortStringHelperTests.cs index b6380ecfa5..c9f74e1f9d 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/ShortStringHelper/DefaultShortStringHelperTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/ShortStringHelper/DefaultShortStringHelperTests.cs @@ -4,11 +4,11 @@ using System.Collections.Generic; using System.Text.RegularExpressions; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Strings; +using Umbraco.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.ShortStringHelper +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.ShortStringHelper { [TestFixture] public class DefaultShortStringHelperTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/ShortStringHelper/DefaultShortStringHelperTestsWithoutSetup.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/ShortStringHelper/DefaultShortStringHelperTestsWithoutSetup.cs index f8b6f258e0..6f9ee481cc 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/ShortStringHelper/DefaultShortStringHelperTestsWithoutSetup.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/ShortStringHelper/DefaultShortStringHelperTestsWithoutSetup.cs @@ -5,12 +5,11 @@ using System.Diagnostics; using System.Linq; using System.Text; using NUnit.Framework; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Configuration.UmbracoSettings; -using Umbraco.Core.Strings; -using CoreStrings = Umbraco.Core.Strings; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Configuration.UmbracoSettings; +using Umbraco.Cms.Core.Strings; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.ShortStringHelper +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.ShortStringHelper { [TestFixture] public class DefaultShortStringHelperTestsWithoutSetup @@ -309,7 +308,7 @@ namespace Umbraco.Tests.UnitTests.Umbraco.Core.ShortStringHelper public void Utf8ToAsciiConverter() { const string str = "a\U00010F00z\uA74Ftéô"; - var output = CoreStrings.Utf8ToAsciiConverter.ToAsciiString(str); + var output = Cms.Core.Strings.Utf8ToAsciiConverter.ToAsciiString(str); Assert.AreEqual("a?zooteo", output); } diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/ShortStringHelper/MockShortStringHelper.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/ShortStringHelper/MockShortStringHelper.cs index ac17cb1199..35b5ed63e4 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/ShortStringHelper/MockShortStringHelper.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/ShortStringHelper/MockShortStringHelper.cs @@ -1,9 +1,9 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Strings; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.ShortStringHelper +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.ShortStringHelper { internal class MockShortStringHelper : IShortStringHelper { diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/ShortStringHelper/StringExtensionsTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/ShortStringHelper/StringExtensionsTests.cs index 19103c2ec6..c6a5510986 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/ShortStringHelper/StringExtensionsTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/ShortStringHelper/StringExtensionsTests.cs @@ -8,11 +8,12 @@ using System.Linq; using System.Text; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.IO; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Strings; +using Umbraco.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.ShortStringHelper +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.ShortStringHelper { [TestFixture] public class StringExtensionsTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/ShortStringHelper/StringValidationTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/ShortStringHelper/StringValidationTests.cs index 80eaf2df98..0f982fb946 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/ShortStringHelper/StringValidationTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/ShortStringHelper/StringValidationTests.cs @@ -4,7 +4,7 @@ using System.ComponentModel.DataAnnotations; using NUnit.Framework; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.ShortStringHelper +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.ShortStringHelper { [TestFixture] public class StringValidationTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/ShortStringHelper/StylesheetHelperTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/ShortStringHelper/StylesheetHelperTests.cs index 8be740a9a0..f918251566 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/ShortStringHelper/StylesheetHelperTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/ShortStringHelper/StylesheetHelperTests.cs @@ -4,10 +4,10 @@ using System.Collections.Generic; using System.Linq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Strings.Css; +using Umbraco.Cms.Core.Strings.Css; +using Umbraco.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.ShortStringHelper +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.ShortStringHelper { [TestFixture] public class StylesheetHelperTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/TaskHelperTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/TaskHelperTests.cs index 7a9a215746..48c9b984ca 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/TaskHelperTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/TaskHelperTests.cs @@ -8,11 +8,11 @@ using AutoFixture.NUnit3; using Microsoft.Extensions.Logging; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Tests.Common.TestHelpers; -using Umbraco.Tests.UnitTests.AutoFixture; +using Umbraco.Cms.Core; +using Umbraco.Cms.Tests.Common.TestHelpers; +using Umbraco.Cms.Tests.UnitTests.AutoFixture; -namespace Umbraco.Tests.UnitTests.Umbraco.Core +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core { [TestFixture] public class TaskHelperTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Templates/HtmlImageSourceParserTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Templates/HtmlImageSourceParserTests.cs index b49a229133..ba338cdf31 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Templates/HtmlImageSourceParserTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Templates/HtmlImageSourceParserTests.cs @@ -7,17 +7,17 @@ using System.Linq; using Microsoft.Extensions.Options; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Tests.Common; -using Umbraco.Tests.UnitTests.TestHelpers.Objects; -using Umbraco.Web; -using Umbraco.Web.Routing; -using Umbraco.Web.Templates; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Templates; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Tests.Common; +using Umbraco.Cms.Tests.UnitTests.TestHelpers.Objects; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Templates +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Templates { [TestFixture] public class HtmlImageSourceParserTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Templates/HtmlLocalLinkParserTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Templates/HtmlLocalLinkParserTests.cs index 726741cd1c..b3c4d96328 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Templates/HtmlLocalLinkParserTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Templates/HtmlLocalLinkParserTests.cs @@ -5,17 +5,17 @@ using System; using System.Linq; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Tests.Common; -using Umbraco.Tests.UnitTests.TestHelpers.Objects; -using Umbraco.Web; -using Umbraco.Web.Routing; -using Umbraco.Web.Templates; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Templates; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Tests.Common; +using Umbraco.Cms.Tests.UnitTests.TestHelpers.Objects; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Templates +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Templates { [TestFixture] public class HtmlLocalLinkParserTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Templates/ViewHelperTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Templates/ViewHelperTests.cs index 73eae0d51c..186e75b2f5 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Templates/ViewHelperTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Templates/ViewHelperTests.cs @@ -2,9 +2,9 @@ // See LICENSE for more details. using NUnit.Framework; -using Umbraco.Core.IO; +using Umbraco.Cms.Core.IO; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Templates +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Templates { [TestFixture] public class ViewHelperTests @@ -14,8 +14,8 @@ namespace Umbraco.Tests.UnitTests.Umbraco.Core.Templates { var view = ViewHelper.GetDefaultFileContent(); Assert.AreEqual( - FixView(@"@using Umbraco.Web.PublishedModels; -@inherits Umbraco.Web.Common.Views.UmbracoViewPage + FixView(@"@using Umbraco.Cms.Web.Common.PublishedModels; +@inherits Umbraco.Cms.Web.Common.AspNetCore.UmbracoViewPage @{ Layout = null; }"), FixView(view)); @@ -26,8 +26,8 @@ namespace Umbraco.Tests.UnitTests.Umbraco.Core.Templates { var view = ViewHelper.GetDefaultFileContent(layoutPageAlias: "Dharznoik"); Assert.AreEqual( - FixView(@"@using Umbraco.Web.PublishedModels; -@inherits Umbraco.Web.Common.Views.UmbracoViewPage + FixView(@"@using Umbraco.Cms.Web.Common.PublishedModels; +@inherits Umbraco.Cms.Web.Common.AspNetCore.UmbracoViewPage @{ Layout = ""Dharznoik.cshtml""; }"), FixView(view)); @@ -38,8 +38,8 @@ namespace Umbraco.Tests.UnitTests.Umbraco.Core.Templates { var view = ViewHelper.GetDefaultFileContent(modelClassName: "ClassName"); Assert.AreEqual( - FixView(@"@using Umbraco.Web.PublishedModels; -@inherits Umbraco.Web.Common.Views.UmbracoViewPage + FixView(@"@using Umbraco.Cms.Web.Common.PublishedModels; +@inherits Umbraco.Cms.Web.Common.AspNetCore.UmbracoViewPage @{ Layout = null; }"), FixView(view)); @@ -50,8 +50,8 @@ namespace Umbraco.Tests.UnitTests.Umbraco.Core.Templates { var view = ViewHelper.GetDefaultFileContent(modelNamespace: "Models"); Assert.AreEqual( - FixView(@"@using Umbraco.Web.PublishedModels; -@inherits Umbraco.Web.Common.Views.UmbracoViewPage + FixView(@"@using Umbraco.Cms.Web.Common.PublishedModels; +@inherits Umbraco.Cms.Web.Common.AspNetCore.UmbracoViewPage @{ Layout = null; }"), FixView(view)); @@ -62,8 +62,8 @@ namespace Umbraco.Tests.UnitTests.Umbraco.Core.Templates { var view = ViewHelper.GetDefaultFileContent(modelClassName: "ClassName", modelNamespace: "My.Models"); Assert.AreEqual( - FixView(@"@using Umbraco.Web.PublishedModels; -@inherits Umbraco.Web.Common.Views.UmbracoViewPage + FixView(@"@using Umbraco.Cms.Web.Common.PublishedModels; +@inherits Umbraco.Cms.Web.Common.AspNetCore.UmbracoViewPage @using ContentModels = My.Models; @{ Layout = null; @@ -75,8 +75,8 @@ namespace Umbraco.Tests.UnitTests.Umbraco.Core.Templates { var view = ViewHelper.GetDefaultFileContent(modelClassName: "ClassName", modelNamespace: "My.Models", modelNamespaceAlias: "MyModels"); Assert.AreEqual( - FixView(@"@using Umbraco.Web.PublishedModels; -@inherits Umbraco.Web.Common.Views.UmbracoViewPage + FixView(@"@using Umbraco.Cms.Web.Common.PublishedModels; +@inherits Umbraco.Cms.Web.Common.AspNetCore.UmbracoViewPage @using MyModels = My.Models; @{ Layout = null; @@ -88,8 +88,8 @@ namespace Umbraco.Tests.UnitTests.Umbraco.Core.Templates { var view = ViewHelper.GetDefaultFileContent(layoutPageAlias: "Dharznoik", modelClassName: "ClassName", modelNamespace: "My.Models", modelNamespaceAlias: "MyModels"); Assert.AreEqual( - FixView(@"@using Umbraco.Web.PublishedModels; -@inherits Umbraco.Web.Common.Views.UmbracoViewPage + FixView(@"@using Umbraco.Cms.Web.Common.PublishedModels; +@inherits Umbraco.Cms.Web.Common.AspNetCore.UmbracoViewPage @using MyModels = My.Models; @{ Layout = ""Dharznoik.cshtml""; diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/VersionExtensionTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/VersionExtensionTests.cs index df80f3b38b..04bf021346 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/VersionExtensionTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/VersionExtensionTests.cs @@ -3,9 +3,9 @@ using System; using NUnit.Framework; -using Umbraco.Core; +using Umbraco.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Core +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core { [TestFixture] public class VersionExtensionTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Web/Routing/PublishedRequestBuilderTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Web/Routing/PublishedRequestBuilderTests.cs index 234226c3c7..ceeb0de7bb 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Web/Routing/PublishedRequestBuilderTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Web/Routing/PublishedRequestBuilderTests.cs @@ -1,14 +1,13 @@ using System; using System.Collections.Generic; -using System.Globalization; using Moq; using NUnit.Framework; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Services; -using Umbraco.Web.Routing; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Services; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Web.Routing +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Web.Routing { [TestFixture] public class PublishedRequestBuilderTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Xml/XmlHelperTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Xml/XmlHelperTests.cs index 8d4f8aef0f..cea8625d3f 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/Xml/XmlHelperTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/Xml/XmlHelperTests.cs @@ -6,11 +6,11 @@ using System.Linq; using System.Xml; using System.Xml.XPath; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Xml; -using Umbraco.Tests.Common.Builders; +using Umbraco.Cms.Core.Xml; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Core.Xml +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Xml { [TestFixture] public class XmlHelperTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Core/XmlExtensionsTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Core/XmlExtensionsTests.cs index 2d2fb9d85b..eda2c8d7aa 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Core/XmlExtensionsTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Core/XmlExtensionsTests.cs @@ -4,9 +4,9 @@ using System.Xml; using System.Xml.Linq; using NUnit.Framework; -using Umbraco.Core; +using Umbraco.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Core +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core { [TestFixture] public class XmlExtensionsTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/BackOffice/BackOfficeLookupNormalizerTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/BackOffice/BackOfficeLookupNormalizerTests.cs index 9ce3a8a3c3..b2e8df9c12 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/BackOffice/BackOfficeLookupNormalizerTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/BackOffice/BackOfficeLookupNormalizerTests.cs @@ -5,7 +5,7 @@ using System; using NUnit.Framework; using Umbraco.Core.Security; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.Backoffice +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.BackOffice { public class BackOfficeLookupNormalizerTests { diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Editors/UserEditorAuthorizationHelperTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Editors/UserEditorAuthorizationHelperTests.cs index 971a378fe8..0cc7346d0e 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Editors/UserEditorAuthorizationHelperTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Editors/UserEditorAuthorizationHelperTests.cs @@ -5,16 +5,17 @@ using System.Collections.Generic; using System.Linq; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Services; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; -using Umbraco.Web.Editors; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Editors; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.Editors +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.Editors { [TestFixture] public class UserEditorAuthorizationHelperTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Examine/UmbracoContentValueSetValidatorTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Examine/UmbracoContentValueSetValidatorTests.cs index a1b00c9ab2..a865624cdd 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Examine/UmbracoContentValueSetValidatorTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Examine/UmbracoContentValueSetValidatorTests.cs @@ -7,12 +7,12 @@ using System.Linq; using Examine; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Services; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; using Umbraco.Examine; -namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.Examine +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.Examine { [TestFixture] public class UmbracoContentValueSetValidatorTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HealthChecks/HealthCheckResultsTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HealthChecks/HealthCheckResultsTests.cs index 1c20c384df..c1a155d5a3 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HealthChecks/HealthCheckResultsTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HealthChecks/HealthCheckResultsTests.cs @@ -5,9 +5,9 @@ using System; using System.Collections.Generic; using System.Threading.Tasks; using NUnit.Framework; -using Umbraco.Core.HealthChecks; +using Umbraco.Cms.Core.HealthChecks; -namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.HealthChecks +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.HealthChecks { [TestFixture] public class HealthCheckResultsTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HostedServices/HealthCheckNotifierTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HostedServices/HealthCheckNotifierTests.cs index 325aa4f74b..b7d7731ec6 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HostedServices/HealthCheckNotifierTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HostedServices/HealthCheckNotifierTests.cs @@ -9,17 +9,19 @@ using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.HealthChecks; -using Umbraco.Core.HealthChecks.NotificationMethods; -using Umbraco.Core.Logging; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.HealthChecks; +using Umbraco.Cms.Core.HealthChecks.NotificationMethods; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Runtime; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Sync; using Umbraco.Core.Scoping; -using Umbraco.Core.Sync; using Umbraco.Infrastructure.HostedServices; -namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.HostedServices +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.HostedServices { [TestFixture] public class HealthCheckNotifierTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HostedServices/KeepAliveTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HostedServices/KeepAliveTests.cs index 8eca24a724..c2b72e874b 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HostedServices/KeepAliveTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HostedServices/KeepAliveTests.cs @@ -11,15 +11,15 @@ using Microsoft.Extensions.Options; using Moq; using Moq.Protected; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Core.Logging; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Runtime; +using Umbraco.Cms.Core.Sync; using Umbraco.Core.Scoping; -using Umbraco.Core.Sync; using Umbraco.Infrastructure.HostedServices; -namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.HostedServices +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.HostedServices { [TestFixture] public class KeepAliveTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HostedServices/LogScrubberTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HostedServices/LogScrubberTests.cs index b7e2f7d80e..ea6acd68bf 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HostedServices/LogScrubberTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HostedServices/LogScrubberTests.cs @@ -8,16 +8,17 @@ using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Events; -using Umbraco.Core.Logging; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Runtime; +using Umbraco.Cms.Core.Scoping; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Sync; using Umbraco.Core.Scoping; -using Umbraco.Core.Services; -using Umbraco.Core.Sync; using Umbraco.Infrastructure.HostedServices; -namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.HostedServices +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.HostedServices { [TestFixture] public class LogScrubberTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HostedServices/ScheduledPublishingTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HostedServices/ScheduledPublishingTests.cs index 17ff9f0c5d..e6b6b6d793 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HostedServices/ScheduledPublishingTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HostedServices/ScheduledPublishingTests.cs @@ -6,13 +6,15 @@ using System.Threading.Tasks; using Microsoft.Extensions.Logging; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Services; -using Umbraco.Core.Sync; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Runtime; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Sync; +using Umbraco.Cms.Core.Web; using Umbraco.Infrastructure.HostedServices; using Umbraco.Web; -namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.HostedServices +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.HostedServices { [TestFixture] public class ScheduledPublishingTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HostedServices/ServerRegistration/InstructionProcessTaskTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HostedServices/ServerRegistration/InstructionProcessTaskTests.cs index 5187f83375..dfafd76b74 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HostedServices/ServerRegistration/InstructionProcessTaskTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HostedServices/ServerRegistration/InstructionProcessTaskTests.cs @@ -6,12 +6,13 @@ using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Sync; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Sync; using Umbraco.Infrastructure.HostedServices.ServerRegistration; -namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.HostedServices.ServerRegistration +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.HostedServices.ServerRegistration { [TestFixture] public class InstructionProcessTaskTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HostedServices/ServerRegistration/TouchServerTaskTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HostedServices/ServerRegistration/TouchServerTaskTests.cs index 5b97c36d16..8e4d9ea6ef 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HostedServices/ServerRegistration/TouchServerTaskTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HostedServices/ServerRegistration/TouchServerTaskTests.cs @@ -7,13 +7,13 @@ using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Core.Services; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Services; using Umbraco.Infrastructure.HostedServices.ServerRegistration; -namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.HostedServices.ServerRegistration +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.HostedServices.ServerRegistration { [TestFixture] public class TouchServerTaskTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HostedServices/TempFileCleanupTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HostedServices/TempFileCleanupTests.cs index 6024d50ce3..004124fe55 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HostedServices/TempFileCleanupTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HostedServices/TempFileCleanupTests.cs @@ -7,12 +7,12 @@ using System.Threading.Tasks; using Microsoft.Extensions.Logging; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.IO; -using Umbraco.Core.Logging; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Runtime; using Umbraco.Infrastructure.HostedServices; -namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.HostedServices +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.HostedServices { [TestFixture] public class TempFileCleanupTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Logging/LogviewerTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Logging/LogviewerTests.cs index 42e4c3e1e6..377c24b3e0 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Logging/LogviewerTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Logging/LogviewerTests.cs @@ -10,16 +10,16 @@ using Microsoft.Extensions.Logging; using Moq; using NUnit.Framework; using Serilog; -using Umbraco.Core; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; -using Umbraco.Core.Logging; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.UnitTests.TestHelpers; using Umbraco.Core.Logging.Viewer; -using Umbraco.Core.Models; -using Umbraco.Tests.TestHelpers; using File = System.IO.File; -namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.Logging +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.Logging { [TestFixture] public class LogviewerTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Mapping/MappingTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Mapping/MappingTests.cs index ff443cd944..6c883dad44 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Mapping/MappingTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Mapping/MappingTests.cs @@ -6,11 +6,11 @@ using System.Collections.Generic; using System.Linq; using System.Threading; using NUnit.Framework; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; -namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.Mapping +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.Mapping { [TestFixture] public class MappingTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Media/ImageSharpImageUrlGeneratorTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Media/ImageSharpImageUrlGeneratorTests.cs index 1ced792520..b0cd3de9f4 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Media/ImageSharpImageUrlGeneratorTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Media/ImageSharpImageUrlGeneratorTests.cs @@ -2,11 +2,10 @@ // See LICENSE for more details. using NUnit.Framework; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; using Umbraco.Infrastructure.Media; -using Umbraco.Web.Models; -namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.Media +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.Media { [TestFixture] public class ImageSharpImageUrlGeneratorTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/AlterMigrationTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/AlterMigrationTests.cs index c09b354bef..0af8d53347 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/AlterMigrationTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/AlterMigrationTests.cs @@ -7,11 +7,11 @@ using System.Linq; using Microsoft.Extensions.Logging; using Moq; using NUnit.Framework; +using Umbraco.Cms.Tests.Common.TestHelpers; +using Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.Migrations.Stubs; using Umbraco.Core.Migrations; -using Umbraco.Tests.Migrations.Stubs; -using Umbraco.Tests.Testing; -namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.Migrations +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.Migrations { [TestFixture] public class AlterMigrationTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/MigrationPlanTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/MigrationPlanTests.cs index a0d0966b99..60a26ef4d0 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/MigrationPlanTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/MigrationPlanTests.cs @@ -9,17 +9,18 @@ using Microsoft.Extensions.Logging.Abstractions; using Moq; using NPoco; using NUnit.Framework; -using Umbraco.Core; +using Umbraco.Cms.Core.Migrations; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.TestHelpers; +using Umbraco.Cms.Tests.UnitTests.TestHelpers; using Umbraco.Core.Migrations; using Umbraco.Core.Migrations.Upgrade; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.SqlSyntax; using Umbraco.Core.Scoping; -using Umbraco.Core.Services; -using Umbraco.Tests.TestHelpers; -using Umbraco.Tests.Testing; +using Umbraco.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.Migrations +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.Migrations { [TestFixture] public class MigrationPlanTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/MigrationTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/MigrationTests.cs index b37338c08b..71741f137f 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/MigrationTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/MigrationTests.cs @@ -6,12 +6,14 @@ using System.Data; using Microsoft.Extensions.Logging; using Moq; using NUnit.Framework; -using Umbraco.Core.Events; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Migrations; +using Umbraco.Cms.Core.Scoping; using Umbraco.Core.Migrations; using Umbraco.Core.Persistence; using Umbraco.Core.Scoping; -namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.Migrations +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.Migrations { [TestFixture] public class MigrationTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/PostMigrationTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/PostMigrationTests.cs index d1df3a8098..0279422efd 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/PostMigrationTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/PostMigrationTests.cs @@ -7,15 +7,16 @@ using Microsoft.Extensions.Logging.Abstractions; using Moq; using NPoco; using NUnit.Framework; +using Umbraco.Cms.Core.Migrations; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.TestHelpers; using Umbraco.Core.Migrations; using Umbraco.Core.Migrations.Upgrade; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.SqlSyntax; using Umbraco.Core.Scoping; -using Umbraco.Core.Services; -using Umbraco.Tests.Testing; -namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.Migrations +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.Migrations { [TestFixture] public class PostMigrationTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/Stubs/AlterUserTableMigrationStub.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/Stubs/AlterUserTableMigrationStub.cs index a5c119f995..7d82d309e1 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/Stubs/AlterUserTableMigrationStub.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/Stubs/AlterUserTableMigrationStub.cs @@ -3,7 +3,7 @@ using Umbraco.Core.Migrations; -namespace Umbraco.Tests.Migrations.Stubs +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.Migrations.Stubs { public class AlterUserTableMigrationStub : MigrationBase { diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/Stubs/DropForeignKeyMigrationStub.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/Stubs/DropForeignKeyMigrationStub.cs index cf3a26c7d3..778d987d2e 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/Stubs/DropForeignKeyMigrationStub.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/Stubs/DropForeignKeyMigrationStub.cs @@ -3,7 +3,7 @@ using Umbraco.Core.Migrations; -namespace Umbraco.Tests.Migrations.Stubs +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.Migrations.Stubs { public class DropForeignKeyMigrationStub : MigrationBase { diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/Stubs/Dummy.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/Stubs/Dummy.cs index f998c4b8a4..626fa4f3c6 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/Stubs/Dummy.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/Stubs/Dummy.cs @@ -1,9 +1,9 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -using Umbraco.Core.Migrations; +using Umbraco.Cms.Core.Migrations; -namespace Umbraco.Tests.Migrations.Stubs +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.Migrations.Stubs { /// /// This is just a dummy class that is used to ensure that implementations diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/Stubs/FiveZeroMigration.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/Stubs/FiveZeroMigration.cs index d870ef82db..dd1b14663d 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/Stubs/FiveZeroMigration.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/Stubs/FiveZeroMigration.cs @@ -3,7 +3,7 @@ using Umbraco.Core.Migrations; -namespace Umbraco.Tests.Migrations.Stubs +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.Migrations.Stubs { public class FiveZeroMigration : MigrationBase { diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/Stubs/FourElevenMigration.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/Stubs/FourElevenMigration.cs index c168fa1c8f..e630110d56 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/Stubs/FourElevenMigration.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/Stubs/FourElevenMigration.cs @@ -3,7 +3,7 @@ using Umbraco.Core.Migrations; -namespace Umbraco.Tests.Migrations.Stubs +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.Migrations.Stubs { public class FourElevenMigration : MigrationBase { diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/Stubs/SixZeroMigration1.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/Stubs/SixZeroMigration1.cs index 1b5c580d5f..a5a8d1148a 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/Stubs/SixZeroMigration1.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/Stubs/SixZeroMigration1.cs @@ -3,7 +3,7 @@ using Umbraco.Core.Migrations; -namespace Umbraco.Tests.Migrations.Stubs +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.Migrations.Stubs { public class SixZeroMigration1 : MigrationBase { diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/Stubs/SixZeroMigration2.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/Stubs/SixZeroMigration2.cs index 689e770a98..f32670c060 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/Stubs/SixZeroMigration2.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/Stubs/SixZeroMigration2.cs @@ -3,7 +3,7 @@ using Umbraco.Core.Migrations; -namespace Umbraco.Tests.Migrations.Stubs +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.Migrations.Stubs { public class SixZeroMigration2 : MigrationBase { diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Models/DataTypeTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Models/DataTypeTests.cs index 71087917b0..4ab4d769b2 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Models/DataTypeTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Models/DataTypeTests.cs @@ -4,11 +4,11 @@ using System.Reflection; using Newtonsoft.Json; using NUnit.Framework; -using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.Models +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.Models { [TestFixture] public class DataTypeTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Models/PathValidationTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Models/PathValidationTests.cs index 8a341687f5..80efe1f286 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Models/PathValidationTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Models/PathValidationTests.cs @@ -5,12 +5,12 @@ using System; using Microsoft.Extensions.Logging; using Moq; using NUnit.Framework; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.Models +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.Models { [TestFixture] public class PathValidationTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/BulkDataReaderTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/BulkDataReaderTests.cs index e01f071f3c..1dc39fdde3 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/BulkDataReaderTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/BulkDataReaderTests.cs @@ -10,7 +10,7 @@ using System.Data.SqlClient; using NUnit.Framework; using Umbraco.Core.Persistence; -namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.Persistence +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.Persistence { /// /// Unit tests for . diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/DatabaseContextTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/DatabaseContextTests.cs index 8b40ca2ef4..7325c489cf 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/DatabaseContextTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/DatabaseContextTests.cs @@ -1,7 +1,7 @@ using NUnit.Framework; using Umbraco.Core.Migrations.Install; -namespace Umbraco.Tests.Persistence +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.Persistence { [TestFixture] public class DatabaseContextTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/ContentMapperTest.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/ContentMapperTest.cs index 5db6493858..fb46a3d061 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/ContentMapperTest.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/ContentMapperTest.cs @@ -2,12 +2,12 @@ // See LICENSE for more details. using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.UnitTests.TestHelpers; using Umbraco.Core.Persistence.Mappers; -using Umbraco.Tests.TestHelpers; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.Persistence.Mappers +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.Persistence.Mappers { [TestFixture] public class ContentMapperTest diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/ContentTypeMapperTest.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/ContentTypeMapperTest.cs index 923de28f13..cb3267a8fc 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/ContentTypeMapperTest.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/ContentTypeMapperTest.cs @@ -2,10 +2,10 @@ // See LICENSE for more details. using NUnit.Framework; +using Umbraco.Cms.Tests.UnitTests.TestHelpers; using Umbraco.Core.Persistence.Mappers; -using Umbraco.Tests.TestHelpers; -namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.Persistence.Mappers +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.Persistence.Mappers { [TestFixture] public class ContentTypeMapperTest diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/DataTypeMapperTest.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/DataTypeMapperTest.cs index 7fdd2882c4..6787a24c1b 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/DataTypeMapperTest.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/DataTypeMapperTest.cs @@ -2,11 +2,11 @@ // See LICENSE for more details. using NUnit.Framework; -using Umbraco.Core; +using Umbraco.Cms.Tests.UnitTests.TestHelpers; using Umbraco.Core.Persistence.Mappers; -using Umbraco.Tests.TestHelpers; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.Persistence.Mappers +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.Persistence.Mappers { [TestFixture] public class DataTypeMapperTest diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/DictionaryMapperTest.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/DictionaryMapperTest.cs index f31110f30a..0bb5a6e8a6 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/DictionaryMapperTest.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/DictionaryMapperTest.cs @@ -2,10 +2,10 @@ // See LICENSE for more details. using NUnit.Framework; +using Umbraco.Cms.Tests.UnitTests.TestHelpers; using Umbraco.Core.Persistence.Mappers; -using Umbraco.Tests.TestHelpers; -namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.Persistence.Mappers +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.Persistence.Mappers { [TestFixture] public class DictionaryMapperTest diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/DictionaryTranslationMapperTest.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/DictionaryTranslationMapperTest.cs index ebe57e7746..a0234516da 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/DictionaryTranslationMapperTest.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/DictionaryTranslationMapperTest.cs @@ -2,10 +2,10 @@ // See LICENSE for more details. using NUnit.Framework; +using Umbraco.Cms.Tests.UnitTests.TestHelpers; using Umbraco.Core.Persistence.Mappers; -using Umbraco.Tests.TestHelpers; -namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.Persistence.Mappers +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.Persistence.Mappers { [TestFixture] public class DictionaryTranslationMapperTest diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/LanguageMapperTest.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/LanguageMapperTest.cs index 20a446ad70..fae929b9a5 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/LanguageMapperTest.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/LanguageMapperTest.cs @@ -2,10 +2,10 @@ // See LICENSE for more details. using NUnit.Framework; +using Umbraco.Cms.Tests.UnitTests.TestHelpers; using Umbraco.Core.Persistence.Mappers; -using Umbraco.Tests.TestHelpers; -namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.Persistence.Mappers +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.Persistence.Mappers { [TestFixture] public class LanguageMapperTest diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/MediaMapperTest.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/MediaMapperTest.cs index a94e4cade3..6f01081518 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/MediaMapperTest.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/MediaMapperTest.cs @@ -2,12 +2,12 @@ // See LICENSE for more details. using NUnit.Framework; -using Umbraco.Core; +using Umbraco.Cms.Tests.UnitTests.TestHelpers; using Umbraco.Core.Persistence.Mappers; -using Umbraco.Tests.TestHelpers; -using MediaModel = Umbraco.Core.Models.Media; +using Constants = Umbraco.Cms.Core.Constants; +using MediaModel = Umbraco.Cms.Core.Models.Media; -namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.Persistence.Mappers +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.Persistence.Mappers { [TestFixture] public class MediaMapperTest diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/PropertyGroupMapperTest.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/PropertyGroupMapperTest.cs index 40c74f25a5..721dfdbd45 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/PropertyGroupMapperTest.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/PropertyGroupMapperTest.cs @@ -2,10 +2,10 @@ // See LICENSE for more details. using NUnit.Framework; +using Umbraco.Cms.Tests.UnitTests.TestHelpers; using Umbraco.Core.Persistence.Mappers; -using Umbraco.Tests.TestHelpers; -namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.Persistence.Mappers +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.Persistence.Mappers { [TestFixture] public class PropertyGroupMapperTest diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/PropertyTypeMapperTest.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/PropertyTypeMapperTest.cs index 72223e952f..e4c0fd2edb 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/PropertyTypeMapperTest.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/PropertyTypeMapperTest.cs @@ -2,11 +2,11 @@ // See LICENSE for more details. using NUnit.Framework; -using Umbraco.Core; +using Umbraco.Cms.Tests.UnitTests.TestHelpers; using Umbraco.Core.Persistence.Mappers; -using Umbraco.Tests.TestHelpers; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.Persistence.Mappers +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.Persistence.Mappers { [TestFixture] public class PropertyTypeMapperTest diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/RelationMapperTest.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/RelationMapperTest.cs index add7cd8b4b..bf6d4106b3 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/RelationMapperTest.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/RelationMapperTest.cs @@ -2,10 +2,10 @@ // See LICENSE for more details. using NUnit.Framework; +using Umbraco.Cms.Tests.UnitTests.TestHelpers; using Umbraco.Core.Persistence.Mappers; -using Umbraco.Tests.TestHelpers; -namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.Persistence.Mappers +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.Persistence.Mappers { [TestFixture] public class RelationMapperTest diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/RelationTypeMapperTest.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/RelationTypeMapperTest.cs index 310b12c1cf..9e6cfbe5e0 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/RelationTypeMapperTest.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/RelationTypeMapperTest.cs @@ -2,10 +2,10 @@ // See LICENSE for more details. using NUnit.Framework; +using Umbraco.Cms.Tests.UnitTests.TestHelpers; using Umbraco.Core.Persistence.Mappers; -using Umbraco.Tests.TestHelpers; -namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.Persistence.Mappers +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.Persistence.Mappers { [TestFixture] public class RelationTypeMapperTest diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/NPocoTests/NPocoSqlExtensionsTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/NPocoTests/NPocoSqlExtensionsTests.cs index 4ad1b89bf6..611974edef 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/NPocoTests/NPocoSqlExtensionsTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/NPocoTests/NPocoSqlExtensionsTests.cs @@ -4,13 +4,14 @@ using System.Collections.Generic; using NPoco; using NUnit.Framework; +using Umbraco.Cms.Tests.Common.TestHelpers; +using Umbraco.Cms.Tests.UnitTests.TestHelpers; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.Persistence.Querying; -using Umbraco.Tests.TestHelpers; -using static Umbraco.Core.Persistence.SqlExtensionsStatics; +using static Umbraco.Cms.Core.Persistence.SqlExtensionsStatics; -namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.Persistence.NPocoTests +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.Persistence.NPocoTests { [TestFixture] public class NPocoSqlExtensionsTests : BaseUsingSqlSyntax diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/NPocoTests/NPocoSqlTemplateTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/NPocoTests/NPocoSqlTemplateTests.cs index 54c9814909..bea42cd64b 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/NPocoTests/NPocoSqlTemplateTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/NPocoTests/NPocoSqlTemplateTests.cs @@ -5,12 +5,13 @@ using System; using Moq; using NPoco; using NUnit.Framework; -using Umbraco.Core; +using Umbraco.Cms.Tests.Common.TestHelpers; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.Mappers; using Umbraco.Core.Persistence.SqlSyntax; +using Umbraco.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.Persistence.NPocoTests +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.Persistence.NPocoTests { [TestFixture] public class NPocoSqlTemplateTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/NPocoTests/NPocoSqlTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/NPocoTests/NPocoSqlTests.cs index a3fd28d952..2b84ffda90 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/NPocoTests/NPocoSqlTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/NPocoTests/NPocoSqlTests.cs @@ -5,13 +5,14 @@ using System; using System.Diagnostics; using NPoco; using NUnit.Framework; -using Umbraco.Core; +using Umbraco.Cms.Tests.Common.TestHelpers; +using Umbraco.Cms.Tests.UnitTests.TestHelpers; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.Persistence.Querying; -using Umbraco.Tests.TestHelpers; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.Persistence.NPocoTests +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.Persistence.NPocoTests { [TestFixture] public class NPocoSqlTests : BaseUsingSqlSyntax diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Querying/ContentTypeRepositorySqlClausesTest.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Querying/ContentTypeRepositorySqlClausesTest.cs index dfd8e5ed12..9c41ddcc1a 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Querying/ContentTypeRepositorySqlClausesTest.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Querying/ContentTypeRepositorySqlClausesTest.cs @@ -4,12 +4,12 @@ using System; using System.Diagnostics; using NUnit.Framework; -using Umbraco.Core; +using Umbraco.Cms.Tests.UnitTests.TestHelpers; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.Dtos; -using Umbraco.Tests.TestHelpers; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.Persistence.Querying +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.Persistence.Querying { [TestFixture] public class ContentTypeRepositorySqlClausesTest : BaseUsingSqlSyntax diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Querying/DataTypeDefinitionRepositorySqlClausesTest.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Querying/DataTypeDefinitionRepositorySqlClausesTest.cs index b6a389d83d..417e28a97d 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Querying/DataTypeDefinitionRepositorySqlClausesTest.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Querying/DataTypeDefinitionRepositorySqlClausesTest.cs @@ -5,12 +5,12 @@ using System; using System.Diagnostics; using NPoco; using NUnit.Framework; -using Umbraco.Core; +using Umbraco.Cms.Tests.UnitTests.TestHelpers; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.Dtos; -using Umbraco.Tests.TestHelpers; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.Persistence.Querying +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.Persistence.Querying { [TestFixture] public class DataTypeDefinitionRepositorySqlClausesTest : BaseUsingSqlSyntax diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Querying/ExpressionTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Querying/ExpressionTests.cs index eed6fcdf59..6739955292 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Querying/ExpressionTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Querying/ExpressionTests.cs @@ -8,19 +8,19 @@ using System.Linq.Expressions; using Microsoft.Extensions.Logging.Abstractions; using Moq; using NUnit.Framework; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Persistence; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Persistence; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Tests.UnitTests.TestHelpers; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.Persistence.Querying; using Umbraco.Core.Persistence.SqlSyntax; -using Umbraco.Core.PropertyEditors; using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; -using Umbraco.Tests.TestHelpers; -namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.Persistence.Querying +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.Persistence.Querying { [TestFixture] public class ExpressionTests : BaseUsingSqlSyntax diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Querying/MediaRepositorySqlClausesTest.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Querying/MediaRepositorySqlClausesTest.cs index 09958a73b0..87c37ce252 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Querying/MediaRepositorySqlClausesTest.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Querying/MediaRepositorySqlClausesTest.cs @@ -5,12 +5,12 @@ using System; using System.Diagnostics; using NPoco; using NUnit.Framework; -using Umbraco.Core; +using Umbraco.Cms.Tests.UnitTests.TestHelpers; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.Dtos; -using Umbraco.Tests.TestHelpers; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.Persistence.Querying +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.Persistence.Querying { [TestFixture] public class MediaRepositorySqlClausesTest : BaseUsingSqlSyntax diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Querying/MediaTypeRepositorySqlClausesTest.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Querying/MediaTypeRepositorySqlClausesTest.cs index 4187ecf1df..2e74455e4f 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Querying/MediaTypeRepositorySqlClausesTest.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Querying/MediaTypeRepositorySqlClausesTest.cs @@ -5,12 +5,12 @@ using System; using System.Diagnostics; using NPoco; using NUnit.Framework; -using Umbraco.Core; +using Umbraco.Cms.Tests.UnitTests.TestHelpers; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.Dtos; -using Umbraco.Tests.TestHelpers; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.Persistence.Querying +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.Persistence.Querying { [TestFixture] public class MediaTypeRepositorySqlClausesTest : BaseUsingSqlSyntax diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Querying/QueryBuilderTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Querying/QueryBuilderTests.cs index 00500c9094..40ba6e4847 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Querying/QueryBuilderTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Querying/QueryBuilderTests.cs @@ -4,13 +4,14 @@ using System.Diagnostics; using NPoco; using NUnit.Framework; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Tests.UnitTests.TestHelpers; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.Persistence.Querying; -using Umbraco.Tests.TestHelpers; -namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.Persistence.Querying +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.Persistence.Querying { [TestFixture] public class QueryBuilderTests : BaseUsingSqlSyntax diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Serialization/JsonNetSerializerTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Serialization/JsonNetSerializerTests.cs index cbf3e7daaa..e763441138 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Serialization/JsonNetSerializerTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Serialization/JsonNetSerializerTests.cs @@ -3,9 +3,10 @@ using Newtonsoft.Json; using NUnit.Framework; +using Umbraco.Cms.Core.Serialization; using Umbraco.Core.Serialization; -namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.Serialization +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.Serialization { [TestFixture] public class JsonNetSerializerTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Services/AmbiguousEventTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Services/AmbiguousEventTests.cs index 63331762b6..97386b8f47 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Services/AmbiguousEventTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Services/AmbiguousEventTests.cs @@ -5,10 +5,10 @@ using System; using System.Reflection; using System.Text; using NUnit.Framework; -using Umbraco.Core.Events; +using Umbraco.Cms.Core.Events; using Umbraco.Core.Services.Implement; -namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.Services +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.Services { [TestFixture] public class AmbiguousEventTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Services/LocalizedTextServiceTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Services/LocalizedTextServiceTests.cs index 6bfc252574..316d8f3d9f 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Services/LocalizedTextServiceTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Services/LocalizedTextServiceTests.cs @@ -11,7 +11,7 @@ using Microsoft.Extensions.Logging.Abstractions; using NUnit.Framework; using Umbraco.Core.Services.Implement; -namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.Services +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.Services { [TestFixture] public class LocalizedTextServiceTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Services/PropertyValidationServiceTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Services/PropertyValidationServiceTests.cs index 2f26b041c6..308ec538a6 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Services/PropertyValidationServiceTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Services/PropertyValidationServiceTests.cs @@ -4,16 +4,17 @@ using System.Threading; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.PropertyEditors.Validators; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.PropertyEditors.Validators; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; using Umbraco.Core.Serialization; using Umbraco.Core.Services; -using Umbraco.Core.Strings; -using Umbraco.Web.PropertyEditors; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.Services +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Infrastructure.Services { [TestFixture] public class PropertyValidationServiceTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.ModelsBuilder.Embedded/BuilderTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.ModelsBuilder.Embedded/BuilderTests.cs index af77d0e570..8e14197f16 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.ModelsBuilder.Embedded/BuilderTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.ModelsBuilder.Embedded/BuilderTests.cs @@ -6,13 +6,13 @@ using System.Collections.Generic; using System.Linq; using System.Text; using NUnit.Framework; -using Semver; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.ModelsBuilder.Embedded; -using Umbraco.ModelsBuilder.Embedded.Building; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Semver; +using Umbraco.Cms.ModelsBuilder.Embedded; +using Umbraco.Cms.ModelsBuilder.Embedded.Building; -namespace Umbraco.Tests.UnitTests.Umbraco.ModelsBuilder.Embedded +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.ModelsBuilder.Embedded { [TestFixture] public class BuilderTests @@ -59,12 +59,15 @@ namespace Umbraco.Tests.UnitTests.Umbraco.ModelsBuilder.Embedded using System; using System.Linq.Expressions; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.PublishedContent; using Umbraco.Web.PublishedCache; -using Umbraco.ModelsBuilder.Embedded; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.ModelsBuilder.Embedded; +using Umbraco.Cms.Core; using Umbraco.Core; +using Umbraco.Extensions; -namespace Umbraco.Web.PublishedModels +namespace Umbraco.Cms.Web.Common.PublishedModels { [PublishedModel(""type1"")] public partial class Type1 : PublishedContentModel @@ -89,7 +92,7 @@ namespace Umbraco.Web.PublishedModels public Type1(IPublishedContent content, IPublishedValueFallback publishedValueFallback) : base(content) { - _publishedValueFallback = publishedValueFallback; + _publishedValueFallback = publishedValueFallback; } // properties @@ -139,7 +142,7 @@ namespace Umbraco.Web.PublishedModels var modelsBuilderConfig = new ModelsBuilderSettings(); var builder = new TextBuilder(modelsBuilderConfig, types) { - ModelsNamespace = "Umbraco.Web.PublishedModels" + ModelsNamespace = "Umbraco.Cms.Web.Common.PublishedModels" }; var sb1 = new StringBuilder(); @@ -164,12 +167,15 @@ namespace Umbraco.Web.PublishedModels using System; using System.Linq.Expressions; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.PublishedContent; using Umbraco.Web.PublishedCache; -using Umbraco.ModelsBuilder.Embedded; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.ModelsBuilder.Embedded; +using Umbraco.Cms.Core; using Umbraco.Core; +using Umbraco.Extensions; -namespace Umbraco.Web.PublishedModels +namespace Umbraco.Cms.Web.Common.PublishedModels { [PublishedModel(""type1"")] public partial class Type1 : PublishedContentModel @@ -194,7 +200,7 @@ namespace Umbraco.Web.PublishedModels public Type1(IPublishedContent content, IPublishedValueFallback publishedValueFallback) : base(content) { - _publishedValueFallback = publishedValueFallback; + _publishedValueFallback = publishedValueFallback; } // properties @@ -238,7 +244,7 @@ namespace Umbraco.Web.PublishedModels { Alias = "prop3", ClrName = "Prop3", - ModelClrType = typeof(global::Umbraco.Core.Exceptions.BootFailedException), + ModelClrType = typeof(global::Umbraco.Cms.Core.Exceptions.BootFailedException), }); TypeModel[] types = new[] { type1 }; @@ -258,15 +264,15 @@ namespace Umbraco.Web.PublishedModels Console.WriteLine(gen); - Assert.IsTrue(gen.Contains(" global::Umbraco.Core.Models.PublishedContent.IPublishedContent Prop1")); + Assert.IsTrue(gen.Contains(" global::Umbraco.Cms.Core.Models.PublishedContent.IPublishedContent Prop1")); Assert.IsTrue(gen.Contains(" global::System.Text.StringBuilder Prop2")); - Assert.IsTrue(gen.Contains(" global::Umbraco.Core.Exceptions.BootFailedException Prop3")); + Assert.IsTrue(gen.Contains(" global::Umbraco.Cms.Core.Exceptions.BootFailedException Prop3")); } [TestCase("int", typeof(int))] [TestCase("global::System.Collections.Generic.IEnumerable", typeof(IEnumerable))] - [TestCase("global::Umbraco.Tests.UnitTests.Umbraco.ModelsBuilder.Embedded.BuilderTestsClass1", typeof(BuilderTestsClass1))] - [TestCase("global::Umbraco.Tests.UnitTests.Umbraco.ModelsBuilder.Embedded.BuilderTests.Class1", typeof(Class1))] + [TestCase("global::Umbraco.Cms.Tests.UnitTests.Umbraco.ModelsBuilder.Embedded.BuilderTestsClass1", typeof(BuilderTestsClass1))] + [TestCase("global::Umbraco.Cms.Tests.UnitTests.Umbraco.ModelsBuilder.Embedded.BuilderTests.Class1", typeof(Class1))] public void WriteClrType(string expected, Type input) { // note - these assertions differ from the original tests in MB because in the embedded version, the result of Builder.IsAmbiguousSymbol is always true @@ -282,14 +288,14 @@ namespace Umbraco.Web.PublishedModels [TestCase("int", typeof(int))] [TestCase("global::System.Collections.Generic.IEnumerable", typeof(IEnumerable))] - [TestCase("global::Umbraco.Tests.UnitTests.Umbraco.ModelsBuilder.Embedded.BuilderTestsClass1", typeof(BuilderTestsClass1))] - [TestCase("global::Umbraco.Tests.UnitTests.Umbraco.ModelsBuilder.Embedded.BuilderTests.Class1", typeof(Class1))] + [TestCase("global::Umbraco.Cms.Tests.UnitTests.Umbraco.ModelsBuilder.Embedded.BuilderTestsClass1", typeof(BuilderTestsClass1))] + [TestCase("global::Umbraco.Cms.Tests.UnitTests.Umbraco.ModelsBuilder.Embedded.BuilderTests.Class1", typeof(Class1))] public void WriteClrTypeUsing(string expected, Type input) { // note - these assertions differ from the original tests in MB because in the embedded version, the result of Builder.IsAmbiguousSymbol is always true // which means global:: syntax will be applied to most things var builder = new TextBuilder(); - builder.Using.Add("Umbraco.Tests.UnitTests.Umbraco.ModelsBuilder"); + builder.Using.Add("Umbraco.Cms.Tests.UnitTests.Umbraco.ModelsBuilder"); builder.ModelsNamespaceForTests = "ModelsNamespace"; var sb = new StringBuilder(); builder.WriteClrType(sb, input); @@ -357,14 +363,14 @@ namespace Umbraco.Web.PublishedModels { var builder = new TextBuilder(); builder.Using.Add("System.Text"); - builder.Using.Add("Umbraco.Tests.UnitTests.Umbraco.ModelsBuilder.Embedded"); + builder.Using.Add("Umbraco.Cms.Tests.UnitTests.Umbraco.ModelsBuilder.Embedded"); builder.ModelsNamespaceForTests = "SomeRandomNamespace"; var sb = new StringBuilder(); builder.WriteClrType(sb, typeof(ASCIIEncoding)); // note - these assertions differ from the original tests in MB because in the embedded version, the result of Builder.IsAmbiguousSymbol is always true // which means global:: syntax will be applied to most things - Assert.AreEqual("global::Umbraco.Tests.UnitTests.Umbraco.ModelsBuilder.Embedded.ASCIIEncoding", sb.ToString()); + Assert.AreEqual("global::Umbraco.Cms.Tests.UnitTests.Umbraco.ModelsBuilder.Embedded.ASCIIEncoding", sb.ToString()); } [Test] @@ -372,14 +378,14 @@ namespace Umbraco.Web.PublishedModels { var builder = new TextBuilder(); builder.Using.Add("System.Text"); - builder.Using.Add("Umbraco.Tests.UnitTests.Umbraco.ModelsBuilder.Embedded"); - builder.ModelsNamespaceForTests = "Umbraco.Tests.UnitTests.Umbraco.ModelsBuilder.Models"; + builder.Using.Add("Umbraco.Cms.Tests.UnitTests.Umbraco.ModelsBuilder.Embedded"); + builder.ModelsNamespaceForTests = "Umbraco.Cms.Tests.UnitTests.Umbraco.ModelsBuilder.Models"; var sb = new StringBuilder(); builder.WriteClrType(sb, typeof(ASCIIEncoding)); // note - these assertions differ from the original tests in MB because in the embedded version, the result of Builder.IsAmbiguousSymbol is always true // which means global:: syntax will be applied to most things - Assert.AreEqual("global::Umbraco.Tests.UnitTests.Umbraco.ModelsBuilder.Embedded.ASCIIEncoding", sb.ToString()); + Assert.AreEqual("global::Umbraco.Cms.Tests.UnitTests.Umbraco.ModelsBuilder.Embedded.ASCIIEncoding", sb.ToString()); } [Test] @@ -387,14 +393,14 @@ namespace Umbraco.Web.PublishedModels { var builder = new TextBuilder(); builder.Using.Add("System.Text"); - builder.Using.Add("Umbraco.Tests.UnitTests.Umbraco.ModelsBuilder.Embedded"); + builder.Using.Add("Umbraco.Cms.Tests.UnitTests.Umbraco.ModelsBuilder.Embedded"); builder.ModelsNamespaceForTests = "SomeRandomNamespace"; var sb = new StringBuilder(); builder.WriteClrType(sb, typeof(ASCIIEncoding.Nested)); // note - these assertions differ from the original tests in MB because in the embedded version, the result of Builder.IsAmbiguousSymbol is always true // which means global:: syntax will be applied to most things - Assert.AreEqual("global::Umbraco.Tests.UnitTests.Umbraco.ModelsBuilder.Embedded.ASCIIEncoding.Nested", sb.ToString()); + Assert.AreEqual("global::Umbraco.Cms.Tests.UnitTests.Umbraco.ModelsBuilder.Embedded.ASCIIEncoding.Nested", sb.ToString()); } public class Class1 diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.ModelsBuilder.Embedded/StringExtensions.cs b/src/Umbraco.Tests.UnitTests/Umbraco.ModelsBuilder.Embedded/StringExtensions.cs index 45065bbd53..b80ab5dfe6 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.ModelsBuilder.Embedded/StringExtensions.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.ModelsBuilder.Embedded/StringExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Tests.UnitTests.Umbraco.ModelsBuilder.Embedded +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.ModelsBuilder.Embedded { public static class StringExtensions { diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.ModelsBuilder.Embedded/UmbracoApplicationTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.ModelsBuilder.Embedded/UmbracoApplicationTests.cs index 0c75318c87..a44c209ab6 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.ModelsBuilder.Embedded/UmbracoApplicationTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.ModelsBuilder.Embedded/UmbracoApplicationTests.cs @@ -4,10 +4,10 @@ using System; using System.Collections.Generic; using NUnit.Framework; -using Umbraco.ModelsBuilder.Embedded; -using Umbraco.ModelsBuilder.Embedded.Building; +using Umbraco.Cms.ModelsBuilder.Embedded; +using Umbraco.Cms.ModelsBuilder.Embedded.Building; -namespace Umbraco.Tests.UnitTests.Umbraco.ModelsBuilder.Embedded +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.ModelsBuilder.Embedded { [TestFixture] public class UmbracoApplicationTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.PublishedCache.NuCache/SnapDictionaryTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.PublishedCache.NuCache/SnapDictionaryTests.cs index 8f42f0c42b..d672da4c24 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.PublishedCache.NuCache/SnapDictionaryTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.PublishedCache.NuCache/SnapDictionaryTests.cs @@ -6,10 +6,10 @@ using System.Linq; using System.Threading.Tasks; using Moq; using NUnit.Framework; +using Umbraco.Cms.Infrastructure.PublishedCache; using Umbraco.Core.Scoping; -using Umbraco.Web.PublishedCache.NuCache; -namespace Umbraco.Tests.UnitTests.Umbraco.Umbraco.PublishedCache +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.PublishedCache.NuCache { [TestFixture] public class SnapDictionaryTests @@ -395,7 +395,7 @@ namespace Umbraco.Tests.UnitTests.Umbraco.Umbraco.PublishedCache // collect liveGen GC.Collect(); - Assert.IsTrue(d.Test.GenObjs.TryPeek(out global::Umbraco.Web.PublishedCache.NuCache.Snap.GenObj genObj)); + Assert.IsTrue(d.Test.GenObjs.TryPeek(out global::Umbraco.Cms.Infrastructure.PublishedCache.Snap.GenObj genObj)); genObj = null; // in Release mode, it works, but in Debug mode, the weak reference is still alive diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/AllowedContentTypeDetail.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/AllowedContentTypeDetail.cs index b4c59de805..9182dfe241 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/AllowedContentTypeDetail.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/AllowedContentTypeDetail.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Tests.UnitTests.Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Tests.Common.Builders { public class AllowedContentTypeDetail { diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/ContentTypeBuilderTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/ContentTypeBuilderTests.cs index 157bf67fea..2efe4df18d 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/ContentTypeBuilderTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/ContentTypeBuilderTests.cs @@ -4,12 +4,11 @@ using System; using System.Linq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Tests.Common.Builders { [TestFixture] public class ContentTypeBuilderTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/DataTypeBuilderTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/DataTypeBuilderTests.cs index 5e9ebccdb9..8079aed461 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/DataTypeBuilderTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/DataTypeBuilderTests.cs @@ -2,11 +2,11 @@ // See LICENSE for more details. using NUnit.Framework; -using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Tests.Common.Builders { [TestFixture] public class DataTypeBuilderTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/DocumentEntitySlimBuilderTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/DocumentEntitySlimBuilderTests.cs index 3f99904f61..e9e0c85584 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/DocumentEntitySlimBuilderTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/DocumentEntitySlimBuilderTests.cs @@ -4,11 +4,11 @@ using System; using System.Collections.Generic; using NUnit.Framework; -using Umbraco.Core.Models.Entities; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Tests.Common.Builders { [TestFixture] public class DocumentEntitySlimBuilderTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/LanguageBuilderTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/LanguageBuilderTests.cs index a30ec6b0bf..8d54f84b64 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/LanguageBuilderTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/LanguageBuilderTests.cs @@ -3,11 +3,11 @@ using System.Globalization; using NUnit.Framework; -using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Tests.Common.Builders { [TestFixture] public class LanguageBuilderTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/MacroBuilderTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/MacroBuilderTests.cs index fd98331634..5ef76bf935 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/MacroBuilderTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/MacroBuilderTests.cs @@ -3,11 +3,11 @@ using System; using NUnit.Framework; -using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Tests.Common.Builders { [TestFixture] public class MacroBuilderTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/MediaTypeBuilderTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/MediaTypeBuilderTests.cs index 720c6dbb8c..515dfb4728 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/MediaTypeBuilderTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/MediaTypeBuilderTests.cs @@ -4,12 +4,12 @@ using System; using System.Linq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.UnitTests.Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Tests.Common.Builders { [TestFixture] public class MediaTypeBuilderTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/MemberBuilderTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/MemberBuilderTests.cs index 16b1a98ec8..f7392f9e38 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/MemberBuilderTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/MemberBuilderTests.cs @@ -5,12 +5,11 @@ using System; using System.Collections.Generic; using System.Linq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Tests.Common.Builders { [TestFixture] public class MemberBuilderTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/MemberGroupBuilderTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/MemberGroupBuilderTests.cs index afa7de5aac..9072a49b2c 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/MemberGroupBuilderTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/MemberGroupBuilderTests.cs @@ -4,11 +4,11 @@ using System; using System.Collections.Generic; using NUnit.Framework; -using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Tests.Common.Builders { [TestFixture] public class MemberGroupBuilderTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/MemberTypeBuilderTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/MemberTypeBuilderTests.cs index b55d6467f1..925b9386a6 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/MemberTypeBuilderTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/MemberTypeBuilderTests.cs @@ -5,12 +5,12 @@ using System; using System.Collections.Generic; using System.Linq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.UnitTests.Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Tests.Common.Builders { [TestFixture] public class MemberTypeBuilderTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/PropertyBuilderTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/PropertyBuilderTests.cs index 8ce3b89bd3..33626f2f97 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/PropertyBuilderTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/PropertyBuilderTests.cs @@ -3,11 +3,11 @@ using System; using NUnit.Framework; -using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Tests.Common.Builders { [TestFixture] public class PropertyBuilderTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/PropertyGroupBuilderTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/PropertyGroupBuilderTests.cs index adc460732b..5060a0b351 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/PropertyGroupBuilderTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/PropertyGroupBuilderTests.cs @@ -3,11 +3,11 @@ using System; using NUnit.Framework; -using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Tests.Common.Builders { [TestFixture] public class PropertyGroupBuilderTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/PropertyTypeBuilderTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/PropertyTypeBuilderTests.cs index a774e924f8..32a60247b6 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/PropertyTypeBuilderTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/PropertyTypeBuilderTests.cs @@ -3,11 +3,11 @@ using System; using NUnit.Framework; -using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Tests.Common.Builders { [TestFixture] public class PropertyTypeBuilderTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/PropertyTypeDetail.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/PropertyTypeDetail.cs index d074e6443d..67f993fe69 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/PropertyTypeDetail.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/PropertyTypeDetail.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Tests.UnitTests.Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Tests.Common.Builders { public class PropertyTypeDetail { diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/RelationBuilderTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/RelationBuilderTests.cs index 09d9121295..67f887d123 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/RelationBuilderTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/RelationBuilderTests.cs @@ -3,11 +3,11 @@ using System; using NUnit.Framework; -using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Tests.Common.Builders { [TestFixture] public class RelationBuilderTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/RelationTypeBuilderTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/RelationTypeBuilderTests.cs index e262d5ebbe..877023f82f 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/RelationTypeBuilderTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/RelationTypeBuilderTests.cs @@ -3,11 +3,11 @@ using System; using NUnit.Framework; -using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Tests.Common.Builders { [TestFixture] public class RelationTypeBuilderTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/StylesheetBuilderTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/StylesheetBuilderTests.cs index 9c8e5fbc28..51929cc445 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/StylesheetBuilderTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/StylesheetBuilderTests.cs @@ -3,11 +3,11 @@ using System.IO; using NUnit.Framework; -using Umbraco.Core.Models; -using Umbraco.Core.Routing; -using Umbraco.Tests.Common.Builders; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Tests.Common.Builders; -namespace Umbraco.Tests.UnitTests.Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Tests.Common.Builders { [TestFixture] public class StylesheetBuilderTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/TemplateBuilderTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/TemplateBuilderTests.cs index e0ec812d4e..88695cd48b 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/TemplateBuilderTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/TemplateBuilderTests.cs @@ -3,11 +3,11 @@ using System; using NUnit.Framework; -using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Tests.Common.Builders { [TestFixture] public class TemplateBuilderTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/TemplateDetail.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/TemplateDetail.cs index f612fcf0a3..53a9875382 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/TemplateDetail.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/TemplateDetail.cs @@ -1,7 +1,7 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -namespace Umbraco.Tests.UnitTests.Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Tests.Common.Builders { public class TemplateDetail { diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/UserBuilderTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/UserBuilderTests.cs index 1063f7cf96..deb3e1a0f6 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/UserBuilderTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/UserBuilderTests.cs @@ -3,11 +3,11 @@ using System; using NUnit.Framework; -using Umbraco.Core.Models.Membership; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Tests.Common.Builders { [TestFixture] public class UserBuilderTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/UserGroupBuilderTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/UserGroupBuilderTests.cs index 2751ea0e15..71c5b5835a 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/UserGroupBuilderTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/UserGroupBuilderTests.cs @@ -3,11 +3,11 @@ using System.Linq; using NUnit.Framework; -using Umbraco.Core.Models.Membership; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Tests.Common.Builders { [TestFixture] public class UserGroupBuilderTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/XmlDocumentBuilderTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/XmlDocumentBuilderTests.cs index 028b2842d1..efe5f96c76 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/XmlDocumentBuilderTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Tests.Common/Builders/XmlDocumentBuilderTests.cs @@ -3,9 +3,9 @@ using System.Xml; using NUnit.Framework; -using Umbraco.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders; -namespace Umbraco.Tests.UnitTests.Umbraco.Tests.Common.Builders +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Tests.Common.Builders { [TestFixture] public class XmlDocumentBuilderTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Tests.UnitTests.csproj b/src/Umbraco.Tests.UnitTests/Umbraco.Tests.UnitTests.csproj index 25b0c97a1b..beddf1df65 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Tests.UnitTests.csproj +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Tests.UnitTests.csproj @@ -4,6 +4,7 @@ Exe net5.0 false + Umbraco.Cms.Tests.UnitTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Authorization/AdminUsersHandlerTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Authorization/AdminUsersHandlerTests.cs index c05373f5fb..ade6a304d3 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Authorization/AdminUsersHandlerTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Authorization/AdminUsersHandlerTests.cs @@ -9,17 +9,17 @@ using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Primitives; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; -using Umbraco.Web.BackOffice.Authorization; -using Umbraco.Web.Editors; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Editors; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Web.BackOffice.Authorization; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.BackOffice.Authorization +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.BackOffice.Authorization { public class AdminUsersHandlerTests { diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Authorization/BackOfficeHandlerTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Authorization/BackOfficeHandlerTests.cs index 5cb59a7002..1bdcb58c73 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Authorization/BackOfficeHandlerTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Authorization/BackOfficeHandlerTests.cs @@ -7,13 +7,14 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Security; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; -using Umbraco.Web.BackOffice.Authorization; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Web.BackOffice.Authorization; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.BackOffice.Authorization +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.BackOffice.Authorization { public class BackOfficeHandlerTests { @@ -100,7 +101,7 @@ namespace Umbraco.Tests.UnitTests.Umbraco.Web.BackOffice.Authorization private static Mock CreateMockBackOfficeSecurityAccessor(bool currentUserIsAuthenticated, bool currentUserIsApproved) { - global::Umbraco.Core.Models.Membership.User user = new UserBuilder() + global::Umbraco.Cms.Core.Models.Membership.User user = new UserBuilder() .WithIsApproved(currentUserIsApproved) .Build(); var mockBackOfficeSecurityAccessor = new Mock(); diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Authorization/ContentPermissionsPublishBranchHandlerTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Authorization/ContentPermissionsPublishBranchHandlerTests.cs index ce3a960b6f..416b2f0d40 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Authorization/ContentPermissionsPublishBranchHandlerTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Authorization/ContentPermissionsPublishBranchHandlerTests.cs @@ -7,17 +7,17 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Persistence.Querying; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Tests.Common.Builders; -using Umbraco.Web.BackOffice.Authorization; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Web.BackOffice.Authorization; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.BackOffice.Authorization +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.BackOffice.Authorization { public class ContentPermissionsPublishBranchHandlerTests { diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Authorization/ContentPermissionsQueryStringHandlerTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Authorization/ContentPermissionsQueryStringHandlerTests.cs index 6f1a4b9e73..58ff85d427 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Authorization/ContentPermissionsQueryStringHandlerTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Authorization/ContentPermissionsQueryStringHandlerTests.cs @@ -10,15 +10,16 @@ using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Primitives; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Tests.Common.Builders; -using Umbraco.Web.BackOffice.Authorization; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Web.BackOffice.Authorization; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.BackOffice.Authorization +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.BackOffice.Authorization { public class ContentPermissionsQueryStringHandlerTests { diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Authorization/ContentPermissionsResourceHandlerTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Authorization/ContentPermissionsResourceHandlerTests.cs index 1ac74d99ba..345b9a2b0d 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Authorization/ContentPermissionsResourceHandlerTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Authorization/ContentPermissionsResourceHandlerTests.cs @@ -7,15 +7,15 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Tests.Common.Builders; -using Umbraco.Web.BackOffice.Authorization; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Web.BackOffice.Authorization; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.BackOffice.Authorization +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.BackOffice.Authorization { public class ContentPermissionsResourceHandlerTests { diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Authorization/DenyLocalLoginHandlerTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Authorization/DenyLocalLoginHandlerTests.cs index 830954aaf6..56f51450b0 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Authorization/DenyLocalLoginHandlerTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Authorization/DenyLocalLoginHandlerTests.cs @@ -7,10 +7,10 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Moq; using NUnit.Framework; -using Umbraco.Web.BackOffice.Authorization; -using Umbraco.Web.BackOffice.Security; +using Umbraco.Cms.Web.BackOffice.Authorization; +using Umbraco.Cms.Web.BackOffice.Security; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.BackOffice.Authorization +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.BackOffice.Authorization { public class DenyLocalLoginHandlerTests { diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Authorization/MediaPermissionsQueryStringHandlerTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Authorization/MediaPermissionsQueryStringHandlerTests.cs index fb2eec93c8..af2dd9226a 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Authorization/MediaPermissionsQueryStringHandlerTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Authorization/MediaPermissionsQueryStringHandlerTests.cs @@ -10,15 +10,15 @@ using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Primitives; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Tests.Common.Builders; -using Umbraco.Web.BackOffice.Authorization; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Web.BackOffice.Authorization; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.BackOffice.Authorization +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.BackOffice.Authorization { public class MediaPermissionsQueryStringHandlerTests { diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Authorization/MediaPermissionsResourceHandlerTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Authorization/MediaPermissionsResourceHandlerTests.cs index de4a7c0b52..9b2c217ac6 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Authorization/MediaPermissionsResourceHandlerTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Authorization/MediaPermissionsResourceHandlerTests.cs @@ -7,14 +7,14 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Moq; using NUnit.Framework; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Tests.Common.Builders; -using Umbraco.Web.BackOffice.Authorization; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Web.BackOffice.Authorization; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.BackOffice.Authorization +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.BackOffice.Authorization { public class MediaPermissionsResourceHandlerTests { diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Authorization/SectionHandlerTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Authorization/SectionHandlerTests.cs index 0435299081..b34918523c 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Authorization/SectionHandlerTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Authorization/SectionHandlerTests.cs @@ -7,13 +7,13 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Security; -using Umbraco.Tests.Common.Builders; -using Umbraco.Web.BackOffice.Authorization; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Web.BackOffice.Authorization; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.BackOffice.Authorization +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.BackOffice.Authorization { public class SectionHandlerTests { diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Authorization/TreeHandlerTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Authorization/TreeHandlerTests.cs index 7d91469379..547372a4ae 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Authorization/TreeHandlerTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Authorization/TreeHandlerTests.cs @@ -7,16 +7,16 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Security; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; -using Umbraco.Web.BackOffice.Authorization; -using Umbraco.Web.Services; -using Umbraco.Web.Trees; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Trees; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Web.BackOffice.Authorization; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.BackOffice.Authorization +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.BackOffice.Authorization { public class TreeHandlerTests { diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Authorization/UserGroupHandlerTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Authorization/UserGroupHandlerTests.cs index 33f6dca02f..f6fc89cc48 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Authorization/UserGroupHandlerTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Authorization/UserGroupHandlerTests.cs @@ -9,15 +9,15 @@ using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Primitives; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; -using Umbraco.Web.BackOffice.Authorization; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Web.BackOffice.Authorization; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.BackOffice.Authorization +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.BackOffice.Authorization { public class UserGroupHandlerTests { diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Controllers/UsersControllerTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Controllers/UsersControllerTests.cs index 2e400aa8c5..0c51700052 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Controllers/UsersControllerTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Controllers/UsersControllerTests.cs @@ -6,11 +6,11 @@ using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Moq; using NUnit.Framework; +using Umbraco.Cms.Tests.UnitTests.AutoFixture; +using Umbraco.Cms.Web.BackOffice.Controllers; using Umbraco.Core.Security; -using Umbraco.Tests.UnitTests.AutoFixture; -using Umbraco.Web.BackOffice.Controllers; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.BackOffice.Controllers { [TestFixture] public class UsersControllerTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Extensions/ModelStateExtensionsTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Extensions/ModelStateExtensionsTests.cs index ce182c7e7c..3c4b78b4fa 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Extensions/ModelStateExtensionsTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Extensions/ModelStateExtensionsTests.cs @@ -7,10 +7,10 @@ using System.Linq; using Microsoft.AspNetCore.Mvc.ModelBinding; using Moq; using NUnit.Framework; -using Umbraco.Core.Services; -using Umbraco.Extensions; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Web.BackOffice.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.BackOffice.Extensions +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.BackOffice.Extensions { [TestFixture] public class ModelStateExtensionsTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Filters/AppendUserModifiedHeaderAttributeTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Filters/AppendUserModifiedHeaderAttributeTests.cs index fcace95718..5dd39fcf80 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Filters/AppendUserModifiedHeaderAttributeTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Filters/AppendUserModifiedHeaderAttributeTests.cs @@ -11,11 +11,11 @@ using Microsoft.AspNetCore.Routing; using Microsoft.Extensions.Primitives; using Moq; using NUnit.Framework; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Security; -using Umbraco.Web.BackOffice.Filters; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Web.BackOffice.Filters; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.BackOffice.Filters +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.BackOffice.Filters { [TestFixture] public class AppendUserModifiedHeaderAttributeTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Filters/ContentModelValidatorTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Filters/ContentModelValidatorTests.cs index 97f819a402..4a18ecf393 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Filters/ContentModelValidatorTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Filters/ContentModelValidatorTests.cs @@ -6,10 +6,10 @@ using System.ComponentModel.DataAnnotations; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using NUnit.Framework; -using Umbraco.Web.BackOffice.PropertyEditors.Validation; -using Umbraco.Web.PropertyEditors.Validation; +using Umbraco.Cms.Core.PropertyEditors.Validation; +using Umbraco.Cms.Web.BackOffice.PropertyEditors.Validation; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.BackOffice.Filters +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.BackOffice.Filters { [TestFixture] public class ContentModelValidatorTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Filters/FilterAllowedOutgoingContentAttributeTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Filters/FilterAllowedOutgoingContentAttributeTests.cs index fcd0dd0aea..dbd6bd4bad 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Filters/FilterAllowedOutgoingContentAttributeTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Filters/FilterAllowedOutgoingContentAttributeTests.cs @@ -6,19 +6,19 @@ using System.Linq; using Microsoft.AspNetCore.Mvc; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Tests.Common.Builders; -using Umbraco.Tests.Common.Builders.Extensions; -using Umbraco.Web.Actions; -using Umbraco.Web.BackOffice.Filters; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Actions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Tests.Common.Builders.Extensions; +using Umbraco.Cms.Web.BackOffice.Filters; +using Umbraco.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.BackOffice.Filters +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.BackOffice.Filters { [TestFixture] public class FilterAllowedOutgoingContentAttributeTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Filters/OnlyLocalRequestsAttributeTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Filters/OnlyLocalRequestsAttributeTests.cs index f616216974..3b12947034 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Filters/OnlyLocalRequestsAttributeTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Filters/OnlyLocalRequestsAttributeTests.cs @@ -10,9 +10,9 @@ using Microsoft.AspNetCore.Mvc.Filters; using Microsoft.AspNetCore.Routing; using Moq; using NUnit.Framework; -using Umbraco.Web.BackOffice.Filters; +using Umbraco.Cms.Web.BackOffice.Filters; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.BackOffice.Filters +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.BackOffice.Filters { [TestFixture] public class OnlyLocalRequestsAttributeTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Filters/ValidationFilterAttributeTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Filters/ValidationFilterAttributeTests.cs index a14084c923..49508fbac4 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Filters/ValidationFilterAttributeTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Filters/ValidationFilterAttributeTests.cs @@ -10,9 +10,9 @@ using Microsoft.AspNetCore.Mvc.ModelBinding; using Microsoft.AspNetCore.Routing; using Moq; using NUnit.Framework; -using Umbraco.Web.BackOffice.Filters; +using Umbraco.Cms.Web.BackOffice.Filters; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.BackOffice.Filters +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.BackOffice.Filters { [TestFixture] public class ValidationFilterAttributeTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Security/BackOfficeAntiforgeryTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Security/BackOfficeAntiforgeryTests.cs index 568318006e..9b77e6c60d 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Security/BackOfficeAntiforgeryTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Security/BackOfficeAntiforgeryTests.cs @@ -11,11 +11,13 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; using Microsoft.Net.Http.Headers; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Security; -using Umbraco.Web.BackOffice.Security; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Web.BackOffice.Security; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.BackOffice.Security +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.BackOffice.Security { [TestFixture] public class BackOfficeAntiforgeryTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Security/BackOfficeCookieManagerTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Security/BackOfficeCookieManagerTests.cs index 974254179d..3c04fe5f40 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Security/BackOfficeCookieManagerTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Security/BackOfficeCookieManagerTests.cs @@ -4,17 +4,19 @@ using Microsoft.Extensions.Options; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Core.Routing; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Tests.UnitTests.TestHelpers; +using Umbraco.Cms.Web.BackOffice.Controllers; +using Umbraco.Cms.Web.BackOffice.Security; using Umbraco.Extensions; -using Umbraco.Tests.TestHelpers; -using Umbraco.Web; -using Umbraco.Web.BackOffice.Controllers; -using Umbraco.Web.BackOffice.Security; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.Backoffice.Security +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.BackOffice.Security { [TestFixture] public class BackOfficeCookieManagerTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/AngularIntegration/ContentModelSerializationTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/AngularIntegration/ContentModelSerializationTests.cs index 79a971d9f4..5b4ce0835f 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/AngularIntegration/ContentModelSerializationTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/AngularIntegration/ContentModelSerializationTests.cs @@ -6,10 +6,10 @@ using System.Linq; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.Common.AngularIntegration +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.Common.AngularIntegration { [TestFixture] public class ContentModelSerializationTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/AngularIntegration/JsInitializationTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/AngularIntegration/JsInitializationTests.cs index c29f5f16b7..21943d1144 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/AngularIntegration/JsInitializationTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/AngularIntegration/JsInitializationTests.cs @@ -2,10 +2,10 @@ // See LICENSE for more details. using NUnit.Framework; -using Umbraco.Core; +using Umbraco.Extensions; using Umbraco.Web.WebAssets; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.Common.AngularIntegration +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.Common.AngularIntegration { [TestFixture] public class JsInitializationTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/AngularIntegration/ServerVariablesParserTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/AngularIntegration/ServerVariablesParserTests.cs index 6ca8bb588c..18d1aae0c2 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/AngularIntegration/ServerVariablesParserTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/AngularIntegration/ServerVariablesParserTests.cs @@ -5,11 +5,11 @@ using System.Collections.Generic; using System.Threading.Tasks; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Events; +using Umbraco.Cms.Core.Events; +using Umbraco.Extensions; using Umbraco.Web.WebAssets; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.Common.AngularIntegration +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.Common.AngularIntegration { [TestFixture] public class ServerVariablesParserTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Extensions/HtmlHelperExtensionMethodsTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Extensions/HtmlHelperExtensionMethodsTests.cs index 19433769fa..6936b2e5f0 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Extensions/HtmlHelperExtensionMethodsTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Extensions/HtmlHelperExtensionMethodsTests.cs @@ -11,7 +11,7 @@ using Moq; using NUnit.Framework; using Umbraco.Extensions; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.Common.Filters +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.Common.Extensions { [TestFixture] public class HtmlHelperExtensionMethodsTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/FileNameTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/FileNameTests.cs index 5fc5987354..98d4eaee3c 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/FileNameTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/FileNameTests.cs @@ -11,13 +11,13 @@ using Microsoft.AspNetCore.Mvc.ViewFeatures; using Microsoft.Extensions.Options; using Moq; using NUnit.Framework; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Tests.UnitTests.AutoFixture; -using Umbraco.Web.BackOffice.Controllers; -using Umbraco.Web.Common.Install; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Tests.UnitTests.AutoFixture; +using Umbraco.Cms.Web.BackOffice.Controllers; +using Umbraco.Cms.Web.Common.Install; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.Common +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.Common { [TestFixture] internal class FileNameTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Filters/ValidateUmbracoFormRouteStringFilterTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Filters/ValidateUmbracoFormRouteStringFilterTests.cs index 03bab2e02b..ca4a5a7c90 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Filters/ValidateUmbracoFormRouteStringFilterTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Filters/ValidateUmbracoFormRouteStringFilterTests.cs @@ -3,11 +3,11 @@ using Microsoft.AspNetCore.DataProtection; using NUnit.Framework; -using Umbraco.Web.Common.Exceptions; -using Umbraco.Web.Common.Filters; -using Umbraco.Web.Common.Security; +using Umbraco.Cms.Web.Common.Exceptions; +using Umbraco.Cms.Web.Common.Filters; +using Umbraco.Cms.Web.Common.Security; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.Common.Filters +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.Common.Filters { [TestFixture] public class ValidateUmbracoFormRouteStringFilterTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Formatters/IgnoreRequiredAttributesResolverUnitTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Formatters/IgnoreRequiredAttributesResolverUnitTests.cs index ab087b325a..c44baa044a 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Formatters/IgnoreRequiredAttributesResolverUnitTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Formatters/IgnoreRequiredAttributesResolverUnitTests.cs @@ -4,9 +4,9 @@ using System.Runtime.Serialization; using Newtonsoft.Json; using NUnit.Framework; -using Umbraco.Web.Common.Formatters; +using Umbraco.Cms.Web.Common.Formatters; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.Common.Formatters +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.Common.Formatters { [TestFixture] public class IgnoreRequiredAttributesResolverUnitTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/ImageCropperTest.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/ImageCropperTest.cs index 2ec4c40714..e31034dbad 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/ImageCropperTest.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/ImageCropperTest.cs @@ -7,14 +7,13 @@ using System.Text; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Media; -using Umbraco.Core.Models; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Media; +using Umbraco.Cms.Core.Models; using Umbraco.Core.PropertyEditors.ValueConverters; using Umbraco.Extensions; -using Umbraco.Web.Models; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.Common +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.Common { [TestFixture] public class ImageCropperTest diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Macros/MacroParserTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Macros/MacroParserTests.cs index e8cfa0501f..9b4837fa52 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Macros/MacroParserTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Macros/MacroParserTests.cs @@ -4,9 +4,10 @@ using System; using System.Collections.Generic; using NUnit.Framework; +using Umbraco.Cms.Tests.Common.TestHelpers; using Umbraco.Web.Macros; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.Common.Macros +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.Common.Macros { [TestFixture] public class MacroParserTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Macros/MacroTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Macros/MacroTests.cs index d789156eb5..b91054315c 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Macros/MacroTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Macros/MacroTests.cs @@ -2,10 +2,11 @@ // See LICENSE for more details. using NUnit.Framework; -using Umbraco.Core.Cache; -using Umbraco.Web.Macros; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Macros; +using Umbraco.Cms.Web.Common.Macros; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.Common.Macros +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.Common.Macros { [TestFixture] public class MacroTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/ModelBinders/ContentModelBinderTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/ModelBinders/ContentModelBinderTests.cs index 837a0059f4..e925a21a2f 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/ModelBinders/ContentModelBinderTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/ModelBinders/ContentModelBinderTests.cs @@ -10,16 +10,15 @@ using Microsoft.AspNetCore.Mvc.ModelBinding; using Microsoft.AspNetCore.Routing; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Events; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Services; -using Umbraco.Web.Common.ModelBinders; -using Umbraco.Web.Common.Routing; -using Umbraco.Web.Models; -using Umbraco.Web.Routing; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Web.Common.ModelBinders; +using Umbraco.Cms.Web.Common.Routing; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.Common.ModelBinders +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.Common.ModelBinders { [TestFixture] public class ContentModelBinderTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/ModelBinders/HttpQueryStringModelBinderTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/ModelBinders/HttpQueryStringModelBinderTests.cs index 6e06adf727..03412ca0b0 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/ModelBinders/HttpQueryStringModelBinderTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/ModelBinders/HttpQueryStringModelBinderTests.cs @@ -9,9 +9,9 @@ using Microsoft.AspNetCore.Mvc.ModelBinding; using Microsoft.AspNetCore.Routing; using Microsoft.Extensions.Primitives; using NUnit.Framework; -using Umbraco.Web.Common.ModelBinders; +using Umbraco.Cms.Web.Common.ModelBinders; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.Common.ModelBinders +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.Common.ModelBinders { [TestFixture] public class HttpQueryStringModelBinderTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Mvc/HtmlStringUtilitiesTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Mvc/HtmlStringUtilitiesTests.cs index b106d24ed6..c63cee8b84 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Mvc/HtmlStringUtilitiesTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Mvc/HtmlStringUtilitiesTests.cs @@ -2,9 +2,9 @@ // See LICENSE for more details. using NUnit.Framework; -using Umbraco.Web.Common.Mvc; +using Umbraco.Cms.Web.Common.Mvc; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.Common.Mvc +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.Common.Mvc { [TestFixture] public class HtmlStringUtilitiesTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Routing/BackOfficeAreaRoutesTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Routing/BackOfficeAreaRoutesTests.cs index f501305b67..d785225ad2 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Routing/BackOfficeAreaRoutesTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Routing/BackOfficeAreaRoutesTests.cs @@ -7,19 +7,19 @@ using Microsoft.AspNetCore.Routing; using Microsoft.Extensions.Options; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Web.BackOffice.Controllers; +using Umbraco.Cms.Web.BackOffice.Routing; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Controllers; using Umbraco.Extensions; -using Umbraco.Web.BackOffice.Controllers; -using Umbraco.Web.BackOffice.Routing; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Controllers; -using Umbraco.Web.WebApi; -using Constants = Umbraco.Core.Constants; -using static Umbraco.Core.Constants.Web.Routing; +using Constants = Umbraco.Cms.Core.Constants; +using static Umbraco.Cms.Core.Constants.Web.Routing; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.Common.Routing +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.Common.Routing { [TestFixture] public class BackOfficeAreaRoutesTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Routing/EndpointRouteBuilderExtensionsTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Routing/EndpointRouteBuilderExtensionsTests.cs index 062e0f079d..197f432bce 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Routing/EndpointRouteBuilderExtensionsTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Routing/EndpointRouteBuilderExtensionsTests.cs @@ -5,13 +5,11 @@ using System.Linq; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Routing; using NUnit.Framework; -using Umbraco.Core; using Umbraco.Extensions; -using Umbraco.Web.Common.Extensions; -using Constants = Umbraco.Core.Constants; -using static Umbraco.Core.Constants.Web.Routing; +using static Umbraco.Cms.Core.Constants.Web.Routing; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.Common.Routing +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.Common.Routing { [TestFixture] public class EndpointRouteBuilderExtensionsTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Routing/InstallAreaRoutesTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Routing/InstallAreaRoutesTests.cs index c32d54e072..0833ba4576 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Routing/InstallAreaRoutesTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Routing/InstallAreaRoutesTests.cs @@ -6,13 +6,15 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Routing; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Hosting; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Web.Common.Install; using Umbraco.Extensions; -using Umbraco.Web.Common.Install; -using static Umbraco.Core.Constants.Web.Routing; +using static Umbraco.Cms.Core.Constants.Web.Routing; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.Common.Routing +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.Common.Routing { [TestFixture] public class InstallAreaRoutesTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Routing/PreviewRoutesTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Routing/PreviewRoutesTests.cs index 82e5628c3a..e4da74c707 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Routing/PreviewRoutesTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Routing/PreviewRoutesTests.cs @@ -7,16 +7,17 @@ using Microsoft.AspNetCore.Routing; using Microsoft.Extensions.Options; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Web.BackOffice.Controllers; +using Umbraco.Cms.Web.BackOffice.Routing; using Umbraco.Extensions; -using Umbraco.Web.BackOffice.Controllers; -using Umbraco.Web.BackOffice.Routing; -using Constants = Umbraco.Core.Constants; -using static Umbraco.Core.Constants.Web.Routing; +using Constants = Umbraco.Cms.Core.Constants; +using static Umbraco.Cms.Core.Constants.Web.Routing; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.Common.Routing +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.Common.Routing { [TestFixture] public class PreviewRoutesTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Routing/RoutableDocumentFilterTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Routing/RoutableDocumentFilterTests.cs index 1c9cbc9c26..7ce84a854b 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Routing/RoutableDocumentFilterTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Routing/RoutableDocumentFilterTests.cs @@ -6,12 +6,11 @@ using Microsoft.AspNetCore.Routing.Patterns; using Microsoft.Extensions.Options; using Moq; using NUnit.Framework; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; -using Umbraco.Web.Common.Routing; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Web.Common.Routing; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.Common.Routing +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.Common.Routing { [TestFixture] public class RoutableDocumentFilterTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Routing/TestRouteBuilder.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Routing/TestRouteBuilder.cs index c35c1a1d9e..e2a916dd7d 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Routing/TestRouteBuilder.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Routing/TestRouteBuilder.cs @@ -12,7 +12,7 @@ using Microsoft.Extensions.Hosting.Internal; using Microsoft.Extensions.Logging; using Moq; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.Common.Routing +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.Common.Routing { public class TestRouteBuilder : IEndpointRouteBuilder { diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Security/EncryptionHelperTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Security/EncryptionHelperTests.cs index 0e54676f10..5fbc285616 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Security/EncryptionHelperTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Security/EncryptionHelperTests.cs @@ -4,9 +4,9 @@ using System.Collections.Generic; using Microsoft.AspNetCore.DataProtection; using NUnit.Framework; -using Umbraco.Web.Common.Security; +using Umbraco.Cms.Web.Common.Security; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.Common.Security +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.Common.Security { [TestFixture] public class EncryptionHelperTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Views/UmbracoViewPageTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Views/UmbracoViewPageTests.cs index ed26d5d75f..c981a8d6ad 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Views/UmbracoViewPageTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Views/UmbracoViewPageTests.cs @@ -4,17 +4,16 @@ using System; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc.ModelBinding; -using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.AspNetCore.Mvc.ViewFeatures; using Moq; using NUnit.Framework; -using Umbraco.Core.Events; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Web.Common.ModelBinders; -using Umbraco.Web.Common.Views; -using Umbraco.Web.Models; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Web.Common.AspNetCore; +using Umbraco.Cms.Web.Common.ModelBinders; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.Common.Views +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.Common.Views { [TestFixture] public class UmbracoViewPageTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Website/AspNetCoreHostingEnvironmentTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Website/AspNetCoreHostingEnvironmentTests.cs index 8ecd05367a..fe9796251e 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Website/AspNetCoreHostingEnvironmentTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Website/AspNetCoreHostingEnvironmentTests.cs @@ -3,11 +3,11 @@ using System; using NUnit.Framework; -using Umbraco.Core.Strings; -using Umbraco.Tests.UnitTests.AutoFixture; -using Umbraco.Web.Common.AspNetCore; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Tests.UnitTests.AutoFixture; +using Umbraco.Cms.Web.Common.AspNetCore; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.Website +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.Website { [TestFixture] public class AspNetCoreHostingEnvironmentTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Website/Controllers/RenderNoContentControllerTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Website/Controllers/RenderNoContentControllerTests.cs index 9320c87949..52c976d8c1 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Website/Controllers/RenderNoContentControllerTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Website/Controllers/RenderNoContentControllerTests.cs @@ -5,14 +5,14 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Options; using Moq; using NUnit.Framework; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.IO; -using Umbraco.Tests.Common; -using Umbraco.Web; -using Umbraco.Web.Website.Controllers; -using Umbraco.Web.Website.Models; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Tests.Common; +using Umbraco.Cms.Web.Website.Controllers; +using Umbraco.Cms.Web.Website.Models; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.Website.Controllers +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.Website.Controllers { [TestFixture] public class RenderNoContentControllerTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Website/Controllers/SurfaceControllerTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Website/Controllers/SurfaceControllerTests.cs index 21143662cb..869fb7046b 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Website/Controllers/SurfaceControllerTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Website/Controllers/SurfaceControllerTests.cs @@ -3,28 +3,28 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Http; -using Microsoft.AspNetCore.Http.Features; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Routing; using Moq; using NUnit.Framework; -using Umbraco.Core.Cache; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Tests.Common; -using Umbraco.Tests.Testing; -using Umbraco.Tests.UnitTests.TestHelpers.Objects; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Tests.Common; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Cms.Tests.UnitTests.TestHelpers.Objects; +using Umbraco.Cms.Web.Common.Routing; +using Umbraco.Cms.Web.Website.Controllers; using Umbraco.Web; -using Umbraco.Web.Common.Routing; -using Umbraco.Web.PublishedCache; -using Umbraco.Web.Routing; -using Umbraco.Web.Website.Controllers; -using CoreConstants = Umbraco.Core.Constants; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.Website.Controllers +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.Website.Controllers { [TestFixture] [UmbracoTest(WithApplication = true)] diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Website/Routing/ControllerActionSearcherTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Website/Routing/ControllerActionSearcherTests.cs index 9382621c99..c0ed21e1f7 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Website/Routing/ControllerActionSearcherTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Website/Routing/ControllerActionSearcherTests.cs @@ -11,14 +11,13 @@ using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging.Abstractions; using Moq; using NUnit.Framework; -using Umbraco.Core; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Web.Common.Controllers; +using Umbraco.Cms.Web.Website.Routing; using Umbraco.Extensions; -using Umbraco.Web; -using Umbraco.Web.Common.Controllers; -using Umbraco.Web.Website.Routing; -using static Umbraco.Core.Constants.Web.Routing; +using static Umbraco.Cms.Core.Constants.Web.Routing; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.Website.Routing +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.Website.Routing { [TestFixture] diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Website/Routing/UmbracoRouteValueTransformerTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Website/Routing/UmbracoRouteValueTransformerTests.cs index 9d7560060d..4d74ea6427 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Website/Routing/UmbracoRouteValueTransformerTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Website/Routing/UmbracoRouteValueTransformerTests.cs @@ -11,20 +11,21 @@ using Microsoft.Extensions.Logging.Abstractions; using Microsoft.Extensions.Options; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Tests.UnitTests.TestHelpers; +using Umbraco.Cms.Web.Common.Controllers; +using Umbraco.Cms.Web.Common.Routing; +using Umbraco.Cms.Web.Website.Controllers; +using Umbraco.Cms.Web.Website.Routing; using Umbraco.Extensions; -using Umbraco.Tests.TestHelpers; -using Umbraco.Web; -using Umbraco.Web.Common.Controllers; -using Umbraco.Web.Common.Routing; -using Umbraco.Web.PublishedCache; -using Umbraco.Web.Routing; -using Umbraco.Web.Website.Controllers; -using Umbraco.Web.Website.Routing; -using static Umbraco.Core.Constants.Web.Routing; +using static Umbraco.Cms.Core.Constants.Web.Routing; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.Website.Routing +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.Website.Routing { [TestFixture] public class UmbracoRouteValueTransformerTests diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Website/Routing/UmbracoRouteValuesFactoryTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Website/Routing/UmbracoRouteValuesFactoryTests.cs index 58fd52496d..54c9fd9438 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Website/Routing/UmbracoRouteValuesFactoryTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Website/Routing/UmbracoRouteValuesFactoryTests.cs @@ -9,20 +9,18 @@ using Microsoft.AspNetCore.Routing; using Microsoft.Extensions.Logging.Abstractions; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Features; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Web.Common.Controllers; +using Umbraco.Cms.Web.Common.Routing; +using Umbraco.Cms.Web.Website.Controllers; +using Umbraco.Cms.Web.Website.Routing; using Umbraco.Extensions; -using Umbraco.Web.Common.Controllers; -using Umbraco.Web.Common.Routing; -using Umbraco.Web.Features; -using Umbraco.Web.Routing; -using Umbraco.Web.Website.Controllers; -using Umbraco.Web.Website.Routing; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.Website.Routing +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.Website.Routing { [TestFixture] diff --git a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Website/Security/UmbracoWebsiteSecurityTests.cs b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Website/Security/UmbracoWebsiteSecurityTests.cs index 50ff362cdc..5e53486d11 100644 --- a/src/Umbraco.Tests.UnitTests/Umbraco.Web.Website/Security/UmbracoWebsiteSecurityTests.cs +++ b/src/Umbraco.Tests.UnitTests/Umbraco.Web.Website/Security/UmbracoWebsiteSecurityTests.cs @@ -7,16 +7,16 @@ using System.Security.Principal; using Microsoft.AspNetCore.Http; using Moq; using NUnit.Framework; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Security; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; -using Umbraco.Tests.Common.Builders; -using Umbraco.Web.Website.Security; -using CoreConstants = Umbraco.Core.Constants; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Security; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Tests.Common.Builders; +using Umbraco.Cms.Web.Website.Security; +using CoreConstants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Tests.UnitTests.Umbraco.Web.Website.Security +namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.Website.Security { [TestFixture] public class UmbracoWebsiteSecurityTests diff --git a/src/Umbraco.Tests/Cache/PublishedCache/PublishedContentCacheTests.cs b/src/Umbraco.Tests/Cache/PublishedCache/PublishedContentCacheTests.cs index 27bc7dd5a3..5cc8947085 100644 --- a/src/Umbraco.Tests/Cache/PublishedCache/PublishedContentCacheTests.cs +++ b/src/Umbraco.Tests/Cache/PublishedCache/PublishedContentCacheTests.cs @@ -3,17 +3,18 @@ using System.Xml; using Microsoft.Extensions.DependencyInjection; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Tests.Common; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Tests.Common; +using Umbraco.Cms.Tests.Common.Testing; using Umbraco.Tests.LegacyXmlPublishedCache; using Umbraco.Tests.TestHelpers; using Umbraco.Tests.Testing; using Umbraco.Web; -using Umbraco.Web.PublishedCache; namespace Umbraco.Tests.Cache.PublishedCache { diff --git a/src/Umbraco.Tests/Cache/PublishedCache/PublishedMediaCacheTests.cs b/src/Umbraco.Tests/Cache/PublishedCache/PublishedMediaCacheTests.cs index 2e377a0617..1bd4a54d08 100644 --- a/src/Umbraco.Tests/Cache/PublishedCache/PublishedMediaCacheTests.cs +++ b/src/Umbraco.Tests/Cache/PublishedCache/PublishedMediaCacheTests.cs @@ -5,19 +5,22 @@ using System.Xml; using Examine; using Microsoft.Extensions.DependencyInjection; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Strings; -using Umbraco.Tests.TestHelpers; -using Umbraco.Tests.Testing; -using Current = Umbraco.Web.Composing.Current; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Services; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Extensions; using Umbraco.Tests.LegacyXmlPublishedCache; using Umbraco.Tests.PublishedContent; -using Umbraco.Web; +using Umbraco.Tests.TestHelpers; +using Umbraco.Tests.Testing; +using Constants = Umbraco.Cms.Core.Constants; +using Current = Umbraco.Web.Composing.Current; namespace Umbraco.Tests.Cache.PublishedCache { diff --git a/src/Umbraco.Tests/Issues/U9560.cs b/src/Umbraco.Tests/Issues/U9560.cs index 5ce89a583b..df5a0c8400 100644 --- a/src/Umbraco.Tests/Issues/U9560.cs +++ b/src/Umbraco.Tests/Issues/U9560.cs @@ -1,6 +1,8 @@ using System; using Microsoft.Extensions.DependencyInjection; using NUnit.Framework; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Testing; using Umbraco.Core.Models; using Umbraco.Core.Persistence; using Umbraco.Tests.Testing; diff --git a/src/Umbraco.Tests/LegacyXmlPublishedCache/DictionaryPublishedContent.cs b/src/Umbraco.Tests/LegacyXmlPublishedCache/DictionaryPublishedContent.cs index c472778f9f..14c0ba9d53 100644 --- a/src/Umbraco.Tests/LegacyXmlPublishedCache/DictionaryPublishedContent.cs +++ b/src/Umbraco.Tests/LegacyXmlPublishedCache/DictionaryPublishedContent.cs @@ -1,15 +1,14 @@ -using Examine; -using System; +using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Xml.XPath; +using Examine; using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Extensions; using Umbraco.Web.Composing; -using Umbraco.Web.Models; using Umbraco.Web.PublishedCache; namespace Umbraco.Tests.LegacyXmlPublishedCache diff --git a/src/Umbraco.Tests/LegacyXmlPublishedCache/DomainCache.cs b/src/Umbraco.Tests/LegacyXmlPublishedCache/DomainCache.cs index 92c2691f90..0ff61e7e45 100644 --- a/src/Umbraco.Tests/LegacyXmlPublishedCache/DomainCache.cs +++ b/src/Umbraco.Tests/LegacyXmlPublishedCache/DomainCache.cs @@ -1,10 +1,9 @@ using System.Collections.Generic; -using System.Globalization; using System.Linq; -using Umbraco.Core; -using Umbraco.Core.Services; -using Umbraco.Web.PublishedCache; -using Umbraco.Web.Routing; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; namespace Umbraco.Tests.LegacyXmlPublishedCache { diff --git a/src/Umbraco.Tests/LegacyXmlPublishedCache/LegacyBackgroundTask/BackgroundTaskRunner.cs b/src/Umbraco.Tests/LegacyXmlPublishedCache/LegacyBackgroundTask/BackgroundTaskRunner.cs index 826ad12c0d..f0dc6564e4 100644 --- a/src/Umbraco.Tests/LegacyXmlPublishedCache/LegacyBackgroundTask/BackgroundTaskRunner.cs +++ b/src/Umbraco.Tests/LegacyXmlPublishedCache/LegacyBackgroundTask/BackgroundTaskRunner.cs @@ -3,9 +3,11 @@ using System.Threading; using System.Threading.Tasks; using System.Threading.Tasks.Dataflow; using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Runtime; using Umbraco.Core; using Umbraco.Core.Events; -using Umbraco.Core.Hosting; namespace Umbraco.Web.Scheduling { @@ -769,12 +771,12 @@ namespace Umbraco.Web.Scheduling _ => StopImmediate(), // Must explicitly specify this, see https://blog.stephencleary.com/2013/10/continuewith-is-dangerous-too.html TaskScheduler.Default); - } + } else { StopImmediate(); } - + } } diff --git a/src/Umbraco.Tests/LegacyXmlPublishedCache/LegacyBackgroundTask/IBackgroundTaskRunner.cs b/src/Umbraco.Tests/LegacyXmlPublishedCache/LegacyBackgroundTask/IBackgroundTaskRunner.cs index 8cbf5fc8d6..32a488fb44 100644 --- a/src/Umbraco.Tests/LegacyXmlPublishedCache/LegacyBackgroundTask/IBackgroundTaskRunner.cs +++ b/src/Umbraco.Tests/LegacyXmlPublishedCache/LegacyBackgroundTask/IBackgroundTaskRunner.cs @@ -1,4 +1,5 @@ using System; +using Umbraco.Cms.Core; using Umbraco.Core; namespace Umbraco.Web.Scheduling diff --git a/src/Umbraco.Tests/LegacyXmlPublishedCache/LegacyBackgroundTask/LatchedBackgroundTaskBase.cs b/src/Umbraco.Tests/LegacyXmlPublishedCache/LegacyBackgroundTask/LatchedBackgroundTaskBase.cs index 1c86b873bb..46d80dee70 100644 --- a/src/Umbraco.Tests/LegacyXmlPublishedCache/LegacyBackgroundTask/LatchedBackgroundTaskBase.cs +++ b/src/Umbraco.Tests/LegacyXmlPublishedCache/LegacyBackgroundTask/LatchedBackgroundTaskBase.cs @@ -1,6 +1,7 @@ using System; using System.Threading; using System.Threading.Tasks; +using Umbraco.Cms.Core; using Umbraco.Core; namespace Umbraco.Web.Scheduling diff --git a/src/Umbraco.Tests/LegacyXmlPublishedCache/PreviewContent.cs b/src/Umbraco.Tests/LegacyXmlPublishedCache/PreviewContent.cs index 7f8793b098..f190b7ee41 100644 --- a/src/Umbraco.Tests/LegacyXmlPublishedCache/PreviewContent.cs +++ b/src/Umbraco.Tests/LegacyXmlPublishedCache/PreviewContent.cs @@ -3,10 +3,10 @@ using System.IO; using System.Linq; using System.Xml; using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Core.IO; +using Umbraco.Extensions; using Umbraco.Tests.TestHelpers; using Umbraco.Web.Composing; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Tests.LegacyXmlPublishedCache { diff --git a/src/Umbraco.Tests/LegacyXmlPublishedCache/PublishedContentCache.cs b/src/Umbraco.Tests/LegacyXmlPublishedCache/PublishedContentCache.cs index 28bb5bb6d7..4909f60643 100644 --- a/src/Umbraco.Tests/LegacyXmlPublishedCache/PublishedContentCache.cs +++ b/src/Umbraco.Tests/LegacyXmlPublishedCache/PublishedContentCache.cs @@ -4,15 +4,16 @@ using System.Globalization; using System.Linq; using System.Xml; using System.Xml.XPath; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Xml; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Xml; +using Umbraco.Extensions; using Umbraco.Tests.TestHelpers; using Umbraco.Web.PublishedCache; -using Umbraco.Web.Routing; namespace Umbraco.Tests.LegacyXmlPublishedCache { diff --git a/src/Umbraco.Tests/LegacyXmlPublishedCache/PublishedMediaCache.cs b/src/Umbraco.Tests/LegacyXmlPublishedCache/PublishedMediaCache.cs index 02510d8e88..8536c2ce33 100644 --- a/src/Umbraco.Tests/LegacyXmlPublishedCache/PublishedMediaCache.cs +++ b/src/Umbraco.Tests/LegacyXmlPublishedCache/PublishedMediaCache.cs @@ -9,16 +9,19 @@ using Microsoft.Extensions.Logging; using Examine; using Examine.Search; using Lucene.Net.Store; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Services; -using Umbraco.Core.Xml; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Core.Xml; +using Umbraco.Extensions; using Umbraco.Examine; -using Umbraco.Web; using Umbraco.Web.Composing; using Umbraco.Web.PublishedCache; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Tests.LegacyXmlPublishedCache { diff --git a/src/Umbraco.Tests/LegacyXmlPublishedCache/PublishedMemberCache.cs b/src/Umbraco.Tests/LegacyXmlPublishedCache/PublishedMemberCache.cs index e763fd8510..0e8ae06f50 100644 --- a/src/Umbraco.Tests/LegacyXmlPublishedCache/PublishedMemberCache.cs +++ b/src/Umbraco.Tests/LegacyXmlPublishedCache/PublishedMemberCache.cs @@ -1,10 +1,12 @@ using System.Text; using System.Xml.XPath; -using Umbraco.Core.Cache; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; using Umbraco.Web.Composing; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Services; using Umbraco.Web.PublishedCache; using Umbraco.Web.Security; diff --git a/src/Umbraco.Tests/LegacyXmlPublishedCache/PublishedSnapshot.cs b/src/Umbraco.Tests/LegacyXmlPublishedCache/PublishedSnapshot.cs index c7be2e6be0..2dc4162c5a 100644 --- a/src/Umbraco.Tests/LegacyXmlPublishedCache/PublishedSnapshot.cs +++ b/src/Umbraco.Tests/LegacyXmlPublishedCache/PublishedSnapshot.cs @@ -1,4 +1,7 @@ using System; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.PublishedCache; using Umbraco.Core; using Umbraco.Core.Cache; using Umbraco.Web.PublishedCache; diff --git a/src/Umbraco.Tests/LegacyXmlPublishedCache/SafeXmlReaderWriter.cs b/src/Umbraco.Tests/LegacyXmlPublishedCache/SafeXmlReaderWriter.cs index aa88f28dc0..60a304443f 100644 --- a/src/Umbraco.Tests/LegacyXmlPublishedCache/SafeXmlReaderWriter.cs +++ b/src/Umbraco.Tests/LegacyXmlPublishedCache/SafeXmlReaderWriter.cs @@ -1,5 +1,6 @@ using System; using System.Xml; +using Umbraco.Cms.Core; using Umbraco.Core; using Umbraco.Core.Scoping; diff --git a/src/Umbraco.Tests/LegacyXmlPublishedCache/UmbracoContextCache.cs b/src/Umbraco.Tests/LegacyXmlPublishedCache/UmbracoContextCache.cs index e967a1ea12..d1a3340b06 100644 --- a/src/Umbraco.Tests/LegacyXmlPublishedCache/UmbracoContextCache.cs +++ b/src/Umbraco.Tests/LegacyXmlPublishedCache/UmbracoContextCache.cs @@ -1,5 +1,6 @@ using System.Collections.Concurrent; using System.Runtime.CompilerServices; +using Umbraco.Cms.Core.Web; using Umbraco.Web; namespace Umbraco.Tests.LegacyXmlPublishedCache diff --git a/src/Umbraco.Tests/LegacyXmlPublishedCache/XmlPublishedContent.cs b/src/Umbraco.Tests/LegacyXmlPublishedCache/XmlPublishedContent.cs index b1ee6a7c4d..81f4c7a2f0 100644 --- a/src/Umbraco.Tests/LegacyXmlPublishedCache/XmlPublishedContent.cs +++ b/src/Umbraco.Tests/LegacyXmlPublishedCache/XmlPublishedContent.cs @@ -4,12 +4,10 @@ using System.Linq; using System.Xml; using System.Xml.Serialization; using System.Xml.XPath; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Web; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Extensions; using Umbraco.Web.Composing; -using Umbraco.Web.Models; using Umbraco.Web.PublishedCache; namespace Umbraco.Tests.LegacyXmlPublishedCache diff --git a/src/Umbraco.Tests/LegacyXmlPublishedCache/XmlPublishedProperty.cs b/src/Umbraco.Tests/LegacyXmlPublishedCache/XmlPublishedProperty.cs index 7d2fa74aa6..3dca2ad7cb 100644 --- a/src/Umbraco.Tests/LegacyXmlPublishedCache/XmlPublishedProperty.cs +++ b/src/Umbraco.Tests/LegacyXmlPublishedCache/XmlPublishedProperty.cs @@ -1,9 +1,10 @@ using System; using System.Xml; using System.Xml.Serialization; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Xml; using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Xml; namespace Umbraco.Tests.LegacyXmlPublishedCache { diff --git a/src/Umbraco.Tests/LegacyXmlPublishedCache/XmlPublishedSnapshotService.cs b/src/Umbraco.Tests/LegacyXmlPublishedCache/XmlPublishedSnapshotService.cs index 1b65d6c70e..79a2e56983 100644 --- a/src/Umbraco.Tests/LegacyXmlPublishedCache/XmlPublishedSnapshotService.cs +++ b/src/Umbraco.Tests/LegacyXmlPublishedCache/XmlPublishedSnapshotService.cs @@ -2,16 +2,23 @@ using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Runtime; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Core.Web; using Umbraco.Core.Cache; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; using Umbraco.Core.Persistence.Repositories; using Umbraco.Core.Runtime; using Umbraco.Core.Scoping; using Umbraco.Core.Services; -using Umbraco.Core.Strings; using Umbraco.Web; using Umbraco.Web.Cache; using Umbraco.Web.PublishedCache; diff --git a/src/Umbraco.Tests/LegacyXmlPublishedCache/XmlStore.cs b/src/Umbraco.Tests/LegacyXmlPublishedCache/XmlStore.cs index 420ddbe952..15d3afd6d5 100644 --- a/src/Umbraco.Tests/LegacyXmlPublishedCache/XmlStore.cs +++ b/src/Umbraco.Tests/LegacyXmlPublishedCache/XmlStore.cs @@ -8,25 +8,29 @@ using System.Threading.Tasks; using System.Xml; using Microsoft.Extensions.Logging; using NPoco; -using Umbraco.Core; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; -using Umbraco.Core.Models; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Runtime; +using Umbraco.Cms.Core.Scoping; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Services.Changes; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Core.Xml; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.Repositories; using Umbraco.Core.Persistence.Repositories.Implement; -using Umbraco.Core.Runtime; using Umbraco.Core.Scoping; -using Umbraco.Core.Services; -using Umbraco.Core.Services.Changes; using Umbraco.Core.Services.Implement; -using Umbraco.Core.Strings; -using Umbraco.Core.Xml; +using Umbraco.Extensions; using Umbraco.Tests.TestHelpers; -using Umbraco.Web.Cache; using Umbraco.Web.Composing; using Umbraco.Web.PublishedCache; using Umbraco.Web.Scheduling; +using Constants = Umbraco.Cms.Core.Constants; using File = System.IO.File; namespace Umbraco.Tests.LegacyXmlPublishedCache @@ -1522,7 +1526,7 @@ ORDER BY umbracoNode.level, umbracoNode.sortOrder"; private static bool HasChangesImpactingAllVersions(IContent icontent) { - var content = (Core.Models.Content)icontent; + var content = (Content)icontent; // UpdateDate will be dirty // Published may be dirty if saving a Published entity diff --git a/src/Umbraco.Tests/LegacyXmlPublishedCache/XmlStoreFilePersister.cs b/src/Umbraco.Tests/LegacyXmlPublishedCache/XmlStoreFilePersister.cs index 52f639f829..58900dea5f 100644 --- a/src/Umbraco.Tests/LegacyXmlPublishedCache/XmlStoreFilePersister.cs +++ b/src/Umbraco.Tests/LegacyXmlPublishedCache/XmlStoreFilePersister.cs @@ -1,6 +1,7 @@ using System; using System.Threading; using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core; using Umbraco.Core; using Umbraco.Web.Scheduling; diff --git a/src/Umbraco.Tests/Models/ContentXmlTest.cs b/src/Umbraco.Tests/Models/ContentXmlTest.cs index c512ac21c2..184bec85c2 100644 --- a/src/Umbraco.Tests/Models/ContentXmlTest.cs +++ b/src/Umbraco.Tests/Models/ContentXmlTest.cs @@ -2,12 +2,16 @@ using System.Xml.Linq; using Microsoft.Extensions.DependencyInjection; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Extensions; using Umbraco.Tests.TestHelpers; using Umbraco.Tests.TestHelpers.Entities; using Umbraco.Tests.Testing; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Tests.Models { diff --git a/src/Umbraco.Tests/Models/MediaXmlTest.cs b/src/Umbraco.Tests/Models/MediaXmlTest.cs index 20c86d127f..4d8d2a5b95 100644 --- a/src/Umbraco.Tests/Models/MediaXmlTest.cs +++ b/src/Umbraco.Tests/Models/MediaXmlTest.cs @@ -5,15 +5,19 @@ using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging.Abstractions; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.IO; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Extensions; using Umbraco.Tests.TestHelpers; using Umbraco.Tests.TestHelpers.Entities; using Umbraco.Tests.Testing; using Umbraco.Web.PropertyEditors; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Tests.Models { diff --git a/src/Umbraco.Tests/Persistence/FaultHandling/ConnectionRetryTest.cs b/src/Umbraco.Tests/Persistence/FaultHandling/ConnectionRetryTest.cs index 5409b1d493..04529afa15 100644 --- a/src/Umbraco.Tests/Persistence/FaultHandling/ConnectionRetryTest.cs +++ b/src/Umbraco.Tests/Persistence/FaultHandling/ConnectionRetryTest.cs @@ -10,6 +10,7 @@ using Umbraco.Core.Persistence.Mappers; using Umbraco.Core.Persistence.SqlSyntax; using Umbraco.Core.Scoping; using Umbraco.Tests.TestHelpers; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Tests.Persistence.FaultHandling { diff --git a/src/Umbraco.Tests/Persistence/Mappers/MapperTestBase.cs b/src/Umbraco.Tests/Persistence/Mappers/MapperTestBase.cs index 95d665e4ff..cf8068c27d 100644 --- a/src/Umbraco.Tests/Persistence/Mappers/MapperTestBase.cs +++ b/src/Umbraco.Tests/Persistence/Mappers/MapperTestBase.cs @@ -1,8 +1,8 @@ using System; using Moq; +using Umbraco.Cms.Persistence.SqlCe; using Umbraco.Core.Persistence; using Umbraco.Infrastructure.Persistence.Mappers; -using Umbraco.Persistence.SqlCe; namespace Umbraco.Tests.Persistence.Mappers { diff --git a/src/Umbraco.Tests/Persistence/NPocoTests/PetaPocoCachesTest.cs b/src/Umbraco.Tests/Persistence/NPocoTests/PetaPocoCachesTest.cs index a30a703ee1..c8e7536594 100644 --- a/src/Umbraco.Tests/Persistence/NPocoTests/PetaPocoCachesTest.cs +++ b/src/Umbraco.Tests/Persistence/NPocoTests/PetaPocoCachesTest.cs @@ -1,16 +1,12 @@ using System; -using System.Collections.Generic; -using System.Diagnostics; using System.Linq; -using System.Threading; using NUnit.Framework; -using Umbraco.Core.Models; -using Umbraco.Core.Persistence; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Testing; using Umbraco.Core.Serialization; -using Umbraco.Core.Services; using Umbraco.Core.Services.Implement; +using Umbraco.Extensions; using Umbraco.Tests.Services; -using Umbraco.Tests.TestHelpers; using Umbraco.Tests.TestHelpers.Entities; using Umbraco.Tests.Testing; diff --git a/src/Umbraco.Tests/Published/ModelTypeTests.cs b/src/Umbraco.Tests/Published/ModelTypeTests.cs index 8fb072674a..2702b82812 100644 --- a/src/Umbraco.Tests/Published/ModelTypeTests.cs +++ b/src/Umbraco.Tests/Published/ModelTypeTests.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; using NUnit.Framework; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.PublishedContent; namespace Umbraco.Tests.Published { diff --git a/src/Umbraco.Tests/PublishedContent/NuCacheChildrenTests.cs b/src/Umbraco.Tests/PublishedContent/NuCacheChildrenTests.cs index bd5c467c88..368855fec1 100644 --- a/src/Umbraco.Tests/PublishedContent/NuCacheChildrenTests.cs +++ b/src/Umbraco.Tests/PublishedContent/NuCacheChildrenTests.cs @@ -6,27 +6,29 @@ using Microsoft.Extensions.Logging.Abstractions; using Microsoft.Extensions.Options; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Events; -using Umbraco.Core.Hosting; -using Umbraco.Core.Logging; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.PropertyEditors; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Scoping; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Services.Changes; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Infrastructure.PublishedCache; +using Umbraco.Cms.Infrastructure.PublishedCache.DataSource; +using Umbraco.Cms.Tests.Common; using Umbraco.Core.Scoping; using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Services.Changes; -using Umbraco.Core.Strings; -using Umbraco.Tests.Common; +using Umbraco.Extensions; using Umbraco.Tests.TestHelpers; using Umbraco.Tests.Testing.Objects; -using Umbraco.Web.Cache; using Umbraco.Web.Composing; -using Umbraco.Web.PublishedCache; -using Umbraco.Web.PublishedCache.NuCache; -using Umbraco.Web.PublishedCache.NuCache.DataSource; namespace Umbraco.Tests.PublishedContent { diff --git a/src/Umbraco.Tests/PublishedContent/NuCacheTests.cs b/src/Umbraco.Tests/PublishedContent/NuCacheTests.cs index f4803951f3..6dd79384cb 100644 --- a/src/Umbraco.Tests/PublishedContent/NuCacheTests.cs +++ b/src/Umbraco.Tests/PublishedContent/NuCacheTests.cs @@ -5,29 +5,28 @@ using System.Linq; using Microsoft.Extensions.Logging.Abstractions; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Events; -using Umbraco.Core.Logging; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Persistence.Repositories; -using Umbraco.Core.PropertyEditors; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Scoping; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Services.Changes; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Infrastructure.PublishedCache; +using Umbraco.Cms.Infrastructure.PublishedCache.DataSource; +using Umbraco.Cms.Tests.Common; using Umbraco.Core.Scoping; using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Services.Changes; -using Umbraco.Core.Strings; -using Umbraco.Net; -using Umbraco.Tests.Common; +using Umbraco.Extensions; using Umbraco.Tests.TestHelpers; using Umbraco.Tests.Testing.Objects; -using Umbraco.Web; -using Umbraco.Web.Cache; using Umbraco.Web.Composing; -using Umbraco.Web.PublishedCache; -using Umbraco.Web.PublishedCache.NuCache; -using Umbraco.Web.PublishedCache.NuCache.DataSource; namespace Umbraco.Tests.PublishedContent { diff --git a/src/Umbraco.Tests/PublishedContent/PublishedContentDataTableTests.cs b/src/Umbraco.Tests/PublishedContent/PublishedContentDataTableTests.cs index 1676ed9a20..bfa023aba7 100644 --- a/src/Umbraco.Tests/PublishedContent/PublishedContentDataTableTests.cs +++ b/src/Umbraco.Tests/PublishedContent/PublishedContentDataTableTests.cs @@ -5,15 +5,15 @@ using System.Linq; using Microsoft.Extensions.Logging.Abstractions; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.PropertyEditors; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Umbraco.Extensions; using Umbraco.Tests.TestHelpers; -using Umbraco.Web.Routing; namespace Umbraco.Tests.PublishedContent { diff --git a/src/Umbraco.Tests/PublishedContent/PublishedContentExtensionTests.cs b/src/Umbraco.Tests/PublishedContent/PublishedContentExtensionTests.cs index 3cff4d4e9d..67d861a564 100644 --- a/src/Umbraco.Tests/PublishedContent/PublishedContentExtensionTests.cs +++ b/src/Umbraco.Tests/PublishedContent/PublishedContentExtensionTests.cs @@ -1,11 +1,11 @@ using System.Collections.Generic; using NUnit.Framework; -using Umbraco.Web.Composing; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Extensions; using Umbraco.Tests.Testing; -using Umbraco.Web; namespace Umbraco.Tests.PublishedContent { diff --git a/src/Umbraco.Tests/PublishedContent/PublishedContentLanguageVariantTests.cs b/src/Umbraco.Tests/PublishedContent/PublishedContentLanguageVariantTests.cs index 7993ca025a..5793262bf8 100644 --- a/src/Umbraco.Tests/PublishedContent/PublishedContentLanguageVariantTests.cs +++ b/src/Umbraco.Tests/PublishedContent/PublishedContentLanguageVariantTests.cs @@ -5,15 +5,14 @@ using System.Linq; using Microsoft.Extensions.DependencyInjection; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.DependencyInjection; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Services; -using Umbraco.Tests.TestHelpers; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.DependencyInjection; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Extensions; using Umbraco.Tests.Testing; -using Umbraco.Web; using Current = Umbraco.Web.Composing.Current; namespace Umbraco.Tests.PublishedContent diff --git a/src/Umbraco.Tests/PublishedContent/PublishedContentMoreTests.cs b/src/Umbraco.Tests/PublishedContent/PublishedContentMoreTests.cs index 1bfb147d26..97d0c3adbc 100644 --- a/src/Umbraco.Tests/PublishedContent/PublishedContentMoreTests.cs +++ b/src/Umbraco.Tests/PublishedContent/PublishedContentMoreTests.cs @@ -1,15 +1,17 @@ +using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; -using NUnit.Framework; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Web; -using Umbraco.Core; -using Umbraco.Tests.Testing; -using Umbraco.Web.Composing; -using Moq; using Examine; -using System; +using Moq; +using NUnit.Framework; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Extensions; +using Umbraco.Tests.Testing; +using Umbraco.Web; +using Umbraco.Web.Composing; namespace Umbraco.Tests.PublishedContent { diff --git a/src/Umbraco.Tests/PublishedContent/PublishedContentSnapshotTestBase.cs b/src/Umbraco.Tests/PublishedContent/PublishedContentSnapshotTestBase.cs index 3387f424dd..c87cbb5b84 100644 --- a/src/Umbraco.Tests/PublishedContent/PublishedContentSnapshotTestBase.cs +++ b/src/Umbraco.Tests/PublishedContent/PublishedContentSnapshotTestBase.cs @@ -6,23 +6,24 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging.Abstractions; using Moq; -using Umbraco.Core.Cache; -using Umbraco.Core.Composing; -using Umbraco.Core.DependencyInjection; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; -using Umbraco.Core.Logging; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Security; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Tests.Common; using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; -using Umbraco.Tests.Common; +using Umbraco.Extensions; using Umbraco.Tests.TestHelpers; using Umbraco.Web; -using Umbraco.Web.PublishedCache; namespace Umbraco.Tests.PublishedContent { diff --git a/src/Umbraco.Tests/PublishedContent/PublishedContentTestBase.cs b/src/Umbraco.Tests/PublishedContent/PublishedContentTestBase.cs index ec8e55e2bf..268b630d18 100644 --- a/src/Umbraco.Tests/PublishedContent/PublishedContentTestBase.cs +++ b/src/Umbraco.Tests/PublishedContent/PublishedContentTestBase.cs @@ -4,10 +4,18 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging.Abstractions; using Moq; -using Umbraco.Core.IO; -using Umbraco.Core.Media; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Media; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.PropertyEditors.ValueConverters; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Templates; +using Umbraco.Cms.Core.Web; using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; using Umbraco.Core.PropertyEditors; using Umbraco.Core.PropertyEditors.ValueConverters; using Umbraco.Core.Security; @@ -17,7 +25,6 @@ using Umbraco.Tests.TestHelpers; using Umbraco.Web; using Umbraco.Web.PropertyEditors; using Umbraco.Web.Routing; -using Umbraco.Web.Templates; namespace Umbraco.Tests.PublishedContent { diff --git a/src/Umbraco.Tests/PublishedContent/PublishedContentTests.cs b/src/Umbraco.Tests/PublishedContent/PublishedContentTests.cs index a076deb8b3..c2761819ad 100644 --- a/src/Umbraco.Tests/PublishedContent/PublishedContentTests.cs +++ b/src/Umbraco.Tests/PublishedContent/PublishedContentTests.cs @@ -7,30 +7,32 @@ using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging.Abstractions; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Composing; -using Umbraco.Core.DependencyInjection; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; -using Umbraco.Core.Logging; -using Umbraco.Core.Media; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Security; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.DependencyInjection; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Media; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Core.Templates; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Tests.Common.Testing; using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Umbraco.Extensions; using Umbraco.Tests.TestHelpers; using Umbraco.Tests.Testing; -using Umbraco.Web; using Umbraco.Web.Composing; -using Umbraco.Web.Models.PublishedContent; using Umbraco.Web.PropertyEditors; -using Umbraco.Web.PublishedCache; -using Umbraco.Web.Routing; -using Umbraco.Web.Templates; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Tests.PublishedContent { diff --git a/src/Umbraco.Tests/PublishedContent/PublishedMediaTests.cs b/src/Umbraco.Tests/PublishedContent/PublishedMediaTests.cs index ee69ecf4b2..b95103313a 100644 --- a/src/Umbraco.Tests/PublishedContent/PublishedMediaTests.cs +++ b/src/Umbraco.Tests/PublishedContent/PublishedMediaTests.cs @@ -1,31 +1,28 @@ -using System.Web; -using System.Xml.Linq; -using System.Xml.XPath; -using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Tests.TestHelpers; -using Umbraco.Tests.TestHelpers.Entities; -using Umbraco.Tests.UmbracoExamine; -using Umbraco.Web; using System.Linq; using System.Threading; using System.Xml; -using Examine; +using System.Xml.Linq; +using System.Xml.XPath; using Microsoft.Extensions.DependencyInjection; -using Umbraco.Core.Cache; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Strings; +using NUnit.Framework; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.DependencyInjection; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Tests.Common; +using Umbraco.Cms.Tests.Common.Testing; using Umbraco.Examine; -using Current = Umbraco.Web.Composing.Current; -using Umbraco.Tests.Testing; -using Umbraco.Core.Composing; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Services; +using Umbraco.Extensions; using Umbraco.Tests.LegacyXmlPublishedCache; -using Umbraco.Tests.Common; -using Umbraco.Core.DependencyInjection; +using Umbraco.Tests.TestHelpers.Entities; +using Umbraco.Tests.Testing; +using Umbraco.Tests.UmbracoExamine; namespace Umbraco.Tests.PublishedContent { diff --git a/src/Umbraco.Tests/PublishedContent/PublishedRouterTests.cs b/src/Umbraco.Tests/PublishedContent/PublishedRouterTests.cs index 39fc49a9db..e8df74026e 100644 --- a/src/Umbraco.Tests/PublishedContent/PublishedRouterTests.cs +++ b/src/Umbraco.Tests/PublishedContent/PublishedRouterTests.cs @@ -6,8 +6,10 @@ using System.Linq; using System.Threading.Tasks; using Moq; using NUnit.Framework; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Routing; using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; using Umbraco.Tests.TestHelpers; using Umbraco.Web.Routing; diff --git a/src/Umbraco.Tests/PublishedContent/SolidPublishedSnapshot.cs b/src/Umbraco.Tests/PublishedContent/SolidPublishedSnapshot.cs index 58b6ea7c4d..945fc360c3 100644 --- a/src/Umbraco.Tests/PublishedContent/SolidPublishedSnapshot.cs +++ b/src/Umbraco.Tests/PublishedContent/SolidPublishedSnapshot.cs @@ -3,16 +3,18 @@ using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging.Abstractions; using Moq; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.PropertyEditors; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Core.Xml; using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Umbraco.Extensions; using Umbraco.Web.Composing; -using Umbraco.Web.PublishedCache; namespace Umbraco.Tests.PublishedContent { @@ -106,22 +108,22 @@ namespace Umbraco.Tests.PublishedContent return _content.Values.Where(x => x.Parent == null); } - public override IPublishedContent GetSingleByXPath(bool preview, string xpath, Core.Xml.XPathVariable[] vars) + public override IPublishedContent GetSingleByXPath(bool preview, string xpath, XPathVariable[] vars) { throw new NotImplementedException(); } - public override IPublishedContent GetSingleByXPath(bool preview, System.Xml.XPath.XPathExpression xpath, Core.Xml.XPathVariable[] vars) + public override IPublishedContent GetSingleByXPath(bool preview, System.Xml.XPath.XPathExpression xpath, XPathVariable[] vars) { throw new NotImplementedException(); } - public override IEnumerable GetByXPath(bool preview, string xpath, Core.Xml.XPathVariable[] vars) + public override IEnumerable GetByXPath(bool preview, string xpath, XPathVariable[] vars) { throw new NotImplementedException(); } - public override IEnumerable GetByXPath(bool preview, System.Xml.XPath.XPathExpression xpath, Core.Xml.XPathVariable[] vars) + public override IEnumerable GetByXPath(bool preview, System.Xml.XPath.XPathExpression xpath, XPathVariable[] vars) { throw new NotImplementedException(); } diff --git a/src/Umbraco.Tests/Routing/BaseUrlProviderTest.cs b/src/Umbraco.Tests/Routing/BaseUrlProviderTest.cs index d9c6021534..5236f29872 100644 --- a/src/Umbraco.Tests/Routing/BaseUrlProviderTest.cs +++ b/src/Umbraco.Tests/Routing/BaseUrlProviderTest.cs @@ -1,10 +1,12 @@ using System.Linq; using Microsoft.Extensions.DependencyInjection; using Moq; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Tests.Common; using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Tests.Common; using Umbraco.Tests.TestHelpers; using Umbraco.Web; using Umbraco.Web.Routing; diff --git a/src/Umbraco.Tests/Routing/ContentFinderByAliasTests.cs b/src/Umbraco.Tests/Routing/ContentFinderByAliasTests.cs index e510dd8381..a853a5c0d6 100644 --- a/src/Umbraco.Tests/Routing/ContentFinderByAliasTests.cs +++ b/src/Umbraco.Tests/Routing/ContentFinderByAliasTests.cs @@ -5,10 +5,14 @@ using NUnit.Framework; using Microsoft.Extensions.Logging; using Umbraco.Core; using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; using Umbraco.Core.PropertyEditors; using Umbraco.Web.Routing; using System.Threading.Tasks; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Routing; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Tests.Routing { diff --git a/src/Umbraco.Tests/Routing/ContentFinderByAliasWithDomainsTests.cs b/src/Umbraco.Tests/Routing/ContentFinderByAliasWithDomainsTests.cs index 13f5e8b214..64ff4beaf7 100644 --- a/src/Umbraco.Tests/Routing/ContentFinderByAliasWithDomainsTests.cs +++ b/src/Umbraco.Tests/Routing/ContentFinderByAliasWithDomainsTests.cs @@ -4,11 +4,15 @@ using System.Threading.Tasks; using Microsoft.Extensions.Logging; using Moq; using NUnit.Framework; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Routing; using Umbraco.Core; using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; using Umbraco.Core.PropertyEditors; using Umbraco.Web.Routing; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Tests.Routing { diff --git a/src/Umbraco.Tests/Routing/ContentFinderByIdTests.cs b/src/Umbraco.Tests/Routing/ContentFinderByIdTests.cs index a484597c9c..e26fb71b90 100644 --- a/src/Umbraco.Tests/Routing/ContentFinderByIdTests.cs +++ b/src/Umbraco.Tests/Routing/ContentFinderByIdTests.cs @@ -2,11 +2,13 @@ using Microsoft.Extensions.DependencyInjection; using NUnit.Framework; using Microsoft.Extensions.Logging; using Umbraco.Core; -using Umbraco.Core.Configuration.Models; using Umbraco.Tests.TestHelpers; using Umbraco.Web; using Umbraco.Web.Routing; using System.Threading.Tasks; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Web; namespace Umbraco.Tests.Routing { diff --git a/src/Umbraco.Tests/Routing/ContentFinderByPageIdQueryTests.cs b/src/Umbraco.Tests/Routing/ContentFinderByPageIdQueryTests.cs index 05f4ee67b7..4dc4d4344b 100644 --- a/src/Umbraco.Tests/Routing/ContentFinderByPageIdQueryTests.cs +++ b/src/Umbraco.Tests/Routing/ContentFinderByPageIdQueryTests.cs @@ -1,6 +1,8 @@ using System.Threading.Tasks; using Moq; using NUnit.Framework; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Web; using Umbraco.Tests.TestHelpers; using Umbraco.Web; using Umbraco.Web.Routing; diff --git a/src/Umbraco.Tests/Routing/ContentFinderByUrlAndTemplateTests.cs b/src/Umbraco.Tests/Routing/ContentFinderByUrlAndTemplateTests.cs index 881cead1fb..54df5b59d1 100644 --- a/src/Umbraco.Tests/Routing/ContentFinderByUrlAndTemplateTests.cs +++ b/src/Umbraco.Tests/Routing/ContentFinderByUrlAndTemplateTests.cs @@ -2,10 +2,13 @@ using NUnit.Framework; using Microsoft.Extensions.Logging; using Umbraco.Tests.TestHelpers; using Umbraco.Web.Routing; -using Umbraco.Core.Configuration.Models; using Umbraco.Core.Models; using Umbraco.Tests.Testing; using System.Threading.Tasks; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Tests.Common.Testing; namespace Umbraco.Tests.Routing { diff --git a/src/Umbraco.Tests/Routing/ContentFinderByUrlTests.cs b/src/Umbraco.Tests/Routing/ContentFinderByUrlTests.cs index c86fd0fe1c..4e4b67b203 100644 --- a/src/Umbraco.Tests/Routing/ContentFinderByUrlTests.cs +++ b/src/Umbraco.Tests/Routing/ContentFinderByUrlTests.cs @@ -1,7 +1,6 @@ using System; using System.Globalization; using NUnit.Framework; -using Umbraco.Core.Configuration.Models; using Umbraco.Tests.TestHelpers; using Umbraco.Tests.Testing; using Umbraco.Web.Routing; @@ -9,6 +8,9 @@ using Microsoft.Extensions.Logging; using Umbraco.Web; using Moq; using System.Threading.Tasks; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Tests.Common.Testing; namespace Umbraco.Tests.Routing { diff --git a/src/Umbraco.Tests/Routing/ContentFinderByUrlWithDomainsTests.cs b/src/Umbraco.Tests/Routing/ContentFinderByUrlWithDomainsTests.cs index df8d372b98..39af6e31d3 100644 --- a/src/Umbraco.Tests/Routing/ContentFinderByUrlWithDomainsTests.cs +++ b/src/Umbraco.Tests/Routing/ContentFinderByUrlWithDomainsTests.cs @@ -2,14 +2,14 @@ using Moq; using NUnit.Framework; using Microsoft.Extensions.Logging; using Umbraco.Core; -using Umbraco.Core.Composing; using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders; using Umbraco.Tests.TestHelpers; using Umbraco.Web.Routing; using System.Threading.Tasks; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Routing; namespace Umbraco.Tests.Routing { diff --git a/src/Umbraco.Tests/Routing/DomainsAndCulturesTests.cs b/src/Umbraco.Tests/Routing/DomainsAndCulturesTests.cs index cd4fdc6fdd..17f213f51b 100644 --- a/src/Umbraco.Tests/Routing/DomainsAndCulturesTests.cs +++ b/src/Umbraco.Tests/Routing/DomainsAndCulturesTests.cs @@ -4,8 +4,10 @@ using Microsoft.Extensions.Logging; using Umbraco.Core.Models; using Umbraco.Web.Routing; using Umbraco.Core; -using Umbraco.Core.Configuration.Models; using System.Threading.Tasks; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Routing; namespace Umbraco.Tests.Routing { diff --git a/src/Umbraco.Tests/Routing/GetContentUrlsTests.cs b/src/Umbraco.Tests/Routing/GetContentUrlsTests.cs index 7cb9983155..20b44dca9b 100644 --- a/src/Umbraco.Tests/Routing/GetContentUrlsTests.cs +++ b/src/Umbraco.Tests/Routing/GetContentUrlsTests.cs @@ -1,17 +1,17 @@ using System.Collections.Generic; using System.Globalization; using System.Linq; +using System.Threading.Tasks; +using Microsoft.Extensions.Logging; using Moq; using NUnit.Framework; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Services; -using Umbraco.Tests.Common; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; using Umbraco.Tests.TestHelpers.Entities; -using Umbraco.Web.Routing; -using Microsoft.Extensions.Logging; -using System.Threading.Tasks; namespace Umbraco.Tests.Routing { diff --git a/src/Umbraco.Tests/Routing/MediaUrlProviderTests.cs b/src/Umbraco.Tests/Routing/MediaUrlProviderTests.cs index 047b7205bf..3f7177f402 100644 --- a/src/Umbraco.Tests/Routing/MediaUrlProviderTests.cs +++ b/src/Umbraco.Tests/Routing/MediaUrlProviderTests.cs @@ -5,21 +5,29 @@ using Microsoft.Extensions.Logging.Abstractions; using Moq; using Newtonsoft.Json; using NUnit.Framework; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.PropertyEditors.ValueConverters; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Tests.Common; +using Umbraco.Cms.Tests.Common.Testing; using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.IO; using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; using Umbraco.Core.PropertyEditors; using Umbraco.Core.PropertyEditors.ValueConverters; using Umbraco.Core.Services; -using Umbraco.Tests.Common; using Umbraco.Tests.PublishedContent; using Umbraco.Tests.TestHelpers; using Umbraco.Tests.Testing; using Umbraco.Web; using Umbraco.Web.PropertyEditors; using Umbraco.Web.Routing; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Tests.Routing { diff --git a/src/Umbraco.Tests/Routing/RoutesCacheTests.cs b/src/Umbraco.Tests/Routing/RoutesCacheTests.cs index 46af27c56e..ba851bf761 100644 --- a/src/Umbraco.Tests/Routing/RoutesCacheTests.cs +++ b/src/Umbraco.Tests/Routing/RoutesCacheTests.cs @@ -4,6 +4,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using NUnit.Framework; +using Umbraco.Cms.Tests.Common.Testing; using Umbraco.Tests.LegacyXmlPublishedCache; using Umbraco.Tests.TestHelpers; using Umbraco.Tests.Testing; diff --git a/src/Umbraco.Tests/Routing/UrlProviderWithHideTopLevelNodeFromPathTests.cs b/src/Umbraco.Tests/Routing/UrlProviderWithHideTopLevelNodeFromPathTests.cs index de8ddfd201..d777738d7d 100644 --- a/src/Umbraco.Tests/Routing/UrlProviderWithHideTopLevelNodeFromPathTests.cs +++ b/src/Umbraco.Tests/Routing/UrlProviderWithHideTopLevelNodeFromPathTests.cs @@ -1,10 +1,11 @@ -using NUnit.Framework; -using Microsoft.Extensions.Logging; -using Umbraco.Core.Configuration.Models; -using Umbraco.Tests.Common; +using Microsoft.Extensions.Logging; +using NUnit.Framework; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Tests.Common; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Extensions; using Umbraco.Tests.Testing; -using Umbraco.Web.Routing; -using Umbraco.Core.DependencyInjection; namespace Umbraco.Tests.Routing { diff --git a/src/Umbraco.Tests/Routing/UrlProviderWithoutHideTopLevelNodeFromPathTests.cs b/src/Umbraco.Tests/Routing/UrlProviderWithoutHideTopLevelNodeFromPathTests.cs index 597a7e223e..6a94ef4166 100644 --- a/src/Umbraco.Tests/Routing/UrlProviderWithoutHideTopLevelNodeFromPathTests.cs +++ b/src/Umbraco.Tests/Routing/UrlProviderWithoutHideTopLevelNodeFromPathTests.cs @@ -6,10 +6,14 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Moq; using NUnit.Framework; -using Umbraco.Core.Configuration.Models; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Tests.Common; +using Umbraco.Cms.Tests.Common.Testing; using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Tests.Common; using Umbraco.Tests.LegacyXmlPublishedCache; using Umbraco.Tests.PublishedContent; using Umbraco.Tests.Testing; diff --git a/src/Umbraco.Tests/Routing/UrlRoutesTests.cs b/src/Umbraco.Tests/Routing/UrlRoutesTests.cs index 9f076983d2..938d0a53f2 100644 --- a/src/Umbraco.Tests/Routing/UrlRoutesTests.cs +++ b/src/Umbraco.Tests/Routing/UrlRoutesTests.cs @@ -1,12 +1,12 @@ using System; using Moq; using NUnit.Framework; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Testing; using Umbraco.Core; -using Umbraco.Core.Composing; using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; using Umbraco.Core.Models; -using Umbraco.Tests.Common.Builders; using Umbraco.Tests.LegacyXmlPublishedCache; using Umbraco.Tests.TestHelpers; using Umbraco.Tests.Testing; diff --git a/src/Umbraco.Tests/Routing/UrlRoutingTestBase.cs b/src/Umbraco.Tests/Routing/UrlRoutingTestBase.cs index 649f63f09e..e2f195b09d 100644 --- a/src/Umbraco.Tests/Routing/UrlRoutingTestBase.cs +++ b/src/Umbraco.Tests/Routing/UrlRoutingTestBase.cs @@ -2,10 +2,10 @@ using System.Linq; using Moq; using NUnit.Framework; -using Umbraco.Core.Composing; -using Umbraco.Core.DependencyInjection; -using Umbraco.Core.Models; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Extensions; using Umbraco.Tests.TestHelpers; using Umbraco.Tests.Testing; diff --git a/src/Umbraco.Tests/Routing/UrlsProviderWithDomainsTests.cs b/src/Umbraco.Tests/Routing/UrlsProviderWithDomainsTests.cs index a18d12351f..9820b96455 100644 --- a/src/Umbraco.Tests/Routing/UrlsProviderWithDomainsTests.cs +++ b/src/Umbraco.Tests/Routing/UrlsProviderWithDomainsTests.cs @@ -5,15 +5,15 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Moq; using NUnit.Framework; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.DependencyInjection; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Services; -using Umbraco.Tests.Common; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Tests.Common; +using Umbraco.Extensions; using Umbraco.Tests.LegacyXmlPublishedCache; -using Umbraco.Web; -using Umbraco.Web.Routing; namespace Umbraco.Tests.Routing { diff --git a/src/Umbraco.Tests/Routing/UrlsWithNestedDomains.cs b/src/Umbraco.Tests/Routing/UrlsWithNestedDomains.cs index 73b6f17d19..25428765a3 100644 --- a/src/Umbraco.Tests/Routing/UrlsWithNestedDomains.cs +++ b/src/Umbraco.Tests/Routing/UrlsWithNestedDomains.cs @@ -1,19 +1,19 @@ using System; using System.Linq; +using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Logging; using Moq; using NUnit.Framework; -using Microsoft.Extensions.Logging; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Services; -using Umbraco.Tests.Common; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Tests.Common; +using Umbraco.Extensions; using Umbraco.Tests.LegacyXmlPublishedCache; -using Umbraco.Web; -using Umbraco.Web.Routing; -using Umbraco.Core.DependencyInjection; -using System.Threading.Tasks; namespace Umbraco.Tests.Routing { diff --git a/src/Umbraco.Tests/Scoping/ScopedNuCacheTests.cs b/src/Umbraco.Tests/Scoping/ScopedNuCacheTests.cs index 63b3b13e13..f776d6411f 100644 --- a/src/Umbraco.Tests/Scoping/ScopedNuCacheTests.cs +++ b/src/Umbraco.Tests/Scoping/ScopedNuCacheTests.cs @@ -5,29 +5,32 @@ using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging.Abstractions; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.DependencyInjection; -using Umbraco.Core.Events; -using Umbraco.Core.Hosting; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.DependencyInjection; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Core.Sync; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Infrastructure.PublishedCache; +using Umbraco.Cms.Infrastructure.PublishedCache.Persistence; +using Umbraco.Cms.Tests.Common; +using Umbraco.Cms.Tests.Common.Testing; using Umbraco.Core.Persistence.Repositories; -using Umbraco.Core.Security; -using Umbraco.Core.Services; using Umbraco.Core.Services.Implement; -using Umbraco.Core.Strings; -using Umbraco.Core.Sync; -using Umbraco.Infrastructure.PublishedCache.Persistence; -using Umbraco.Tests.Common; +using Umbraco.Extensions; using Umbraco.Tests.TestHelpers; using Umbraco.Tests.Testing; using Umbraco.Web; using Umbraco.Web.Cache; using Umbraco.Web.Composing; -using Umbraco.Web.PublishedCache; -using Umbraco.Web.PublishedCache.NuCache; namespace Umbraco.Tests.Scoping { diff --git a/src/Umbraco.Tests/Scoping/ScopedXmlTests.cs b/src/Umbraco.Tests/Scoping/ScopedXmlTests.cs index af94f6b2e1..a0341225e9 100644 --- a/src/Umbraco.Tests/Scoping/ScopedXmlTests.cs +++ b/src/Umbraco.Tests/Scoping/ScopedXmlTests.cs @@ -5,23 +5,24 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.DependencyInjection; -using Umbraco.Core.Events; -using Umbraco.Core.Models; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.DependencyInjection; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Sync; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Tests.Common.Testing; using Umbraco.Core.Services.Implement; using Umbraco.Core.Sync; -using Umbraco.Tests.Common.Builders; +using Umbraco.Extensions; using Umbraco.Tests.LegacyXmlPublishedCache; using Umbraco.Tests.TestHelpers; using Umbraco.Tests.Testing; -using Umbraco.Web; using Umbraco.Web.Cache; using Umbraco.Web.Composing; -using Umbraco.Web.PublishedCache; namespace Umbraco.Tests.Scoping { diff --git a/src/Umbraco.Tests/Services/TestWithSomeContentBase.cs b/src/Umbraco.Tests/Services/TestWithSomeContentBase.cs index 6daa16470b..a8fcbff578 100644 --- a/src/Umbraco.Tests/Services/TestWithSomeContentBase.cs +++ b/src/Umbraco.Tests/Services/TestWithSomeContentBase.cs @@ -1,6 +1,7 @@ using System; using System.Threading; using NUnit.Framework; +using Umbraco.Cms.Core.Models; using Umbraco.Core.Models; using Umbraco.Tests.TestHelpers; using Umbraco.Tests.TestHelpers.Entities; diff --git a/src/Umbraco.Tests/TestHelpers/BaseUsingSqlCeSyntax.cs b/src/Umbraco.Tests/TestHelpers/BaseUsingSqlCeSyntax.cs index 7a8241a856..d094be3b9c 100644 --- a/src/Umbraco.Tests/TestHelpers/BaseUsingSqlCeSyntax.cs +++ b/src/Umbraco.Tests/TestHelpers/BaseUsingSqlCeSyntax.cs @@ -7,16 +7,17 @@ using Microsoft.Extensions.Logging.Abstractions; using Moq; using NPoco; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Composing; -using Umbraco.Core.DependencyInjection; -using Umbraco.Core.Logging; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.DependencyInjection; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Persistence.SqlCe; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.Mappers; -using Umbraco.Persistence.SqlCe; +using Umbraco.Extensions; using Umbraco.Web; using Umbraco.Web.Composing; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Tests.TestHelpers { diff --git a/src/Umbraco.Tests/TestHelpers/BaseWebTest.cs b/src/Umbraco.Tests/TestHelpers/BaseWebTest.cs index 719c785fd7..449ceb0e50 100644 --- a/src/Umbraco.Tests/TestHelpers/BaseWebTest.cs +++ b/src/Umbraco.Tests/TestHelpers/BaseWebTest.cs @@ -6,24 +6,23 @@ using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging.Abstractions; using Moq; using NUnit.Framework; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.DependencyInjection; -using Umbraco.Core.Events; -using Umbraco.Core.Logging; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.PropertyEditors; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Tests.Common; using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; -using Umbraco.Tests.Common; +using Umbraco.Extensions; using Umbraco.Tests.PublishedContent; using Umbraco.Tests.TestHelpers.Stubs; -using Umbraco.Web; using Umbraco.Web.Composing; -using Umbraco.Web.Models.PublishedContent; -using Umbraco.Web.Routing; -using Umbraco.Web.Security; namespace Umbraco.Tests.TestHelpers { diff --git a/src/Umbraco.Tests/TestHelpers/ControllerTesting/AuthenticateEverythingMiddleware.cs b/src/Umbraco.Tests/TestHelpers/ControllerTesting/AuthenticateEverythingMiddleware.cs index e702753236..53db23ec0a 100644 --- a/src/Umbraco.Tests/TestHelpers/ControllerTesting/AuthenticateEverythingMiddleware.cs +++ b/src/Umbraco.Tests/TestHelpers/ControllerTesting/AuthenticateEverythingMiddleware.cs @@ -4,6 +4,8 @@ using Microsoft.Owin; using Microsoft.Owin.Security; using Microsoft.Owin.Security.Infrastructure; using Owin; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Security; using Umbraco.Core.Security; namespace Umbraco.Tests.TestHelpers.ControllerTesting @@ -29,7 +31,7 @@ namespace Umbraco.Tests.TestHelpers.ControllerTesting { var securityStamp = Guid.NewGuid().ToString(); var identity = new UmbracoBackOfficeIdentity( - Umbraco.Core.Constants.Security.SuperUserIdAsString, "admin", "Admin", new[] { -1 }, new[] { -1 }, "en-US", securityStamp, new[] { "content", "media", "members" }, new[] { "admin" }); + Constants.Security.SuperUserIdAsString, "admin", "Admin", new[] { -1 }, new[] { -1 }, "en-US", securityStamp, new[] { "content", "media", "members" }, new[] { "admin" }); return Task.FromResult(new AuthenticationTicket( identity, diff --git a/src/Umbraco.Tests/TestHelpers/ControllerTesting/TestControllerActivator.cs b/src/Umbraco.Tests/TestHelpers/ControllerTesting/TestControllerActivator.cs index d3cc51b38d..1c1687dec8 100644 --- a/src/Umbraco.Tests/TestHelpers/ControllerTesting/TestControllerActivator.cs +++ b/src/Umbraco.Tests/TestHelpers/ControllerTesting/TestControllerActivator.cs @@ -1,6 +1,7 @@ using System; using System.Net.Http; using System.Web.Http; +using Umbraco.Cms.Core.Web; using Umbraco.Web; namespace Umbraco.Tests.TestHelpers.ControllerTesting diff --git a/src/Umbraco.Tests/TestHelpers/ControllerTesting/TestControllerActivatorBase.cs b/src/Umbraco.Tests/TestHelpers/ControllerTesting/TestControllerActivatorBase.cs index f993ee5b6a..517198a8f1 100644 --- a/src/Umbraco.Tests/TestHelpers/ControllerTesting/TestControllerActivatorBase.cs +++ b/src/Umbraco.Tests/TestHelpers/ControllerTesting/TestControllerActivatorBase.cs @@ -6,15 +6,20 @@ using System.Web.Http; using System.Web.Http.Controllers; using System.Web.Http.Dispatcher; using Moq; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Tests.Common; using Umbraco.Core.Services; using Umbraco.Web; using Umbraco.Web.PublishedCache; using Umbraco.Web.Routing; using Umbraco.Web.WebApi; -using Umbraco.Tests.Common; using Umbraco.Tests.TestHelpers.Entities; using Umbraco.Core.Security; diff --git a/src/Umbraco.Tests/TestHelpers/ControllerTesting/TestStartup.cs b/src/Umbraco.Tests/TestHelpers/ControllerTesting/TestStartup.cs index dd6d4c1c39..408046ad9a 100644 --- a/src/Umbraco.Tests/TestHelpers/ControllerTesting/TestStartup.cs +++ b/src/Umbraco.Tests/TestHelpers/ControllerTesting/TestStartup.cs @@ -5,8 +5,8 @@ using System.Web.Http.Dispatcher; using System.Web.Http.ExceptionHandling; using System.Web.Http.Tracing; using Owin; +using Umbraco.Cms.Core.Web; using Umbraco.Web; -using Umbraco.Web.Editors; using Umbraco.Web.Hosting; using Umbraco.Web.WebApi; diff --git a/src/Umbraco.Tests/TestHelpers/Entities/MockedContent.cs b/src/Umbraco.Tests/TestHelpers/Entities/MockedContent.cs index dfb7834aff..a657f5c109 100644 --- a/src/Umbraco.Tests/TestHelpers/Entities/MockedContent.cs +++ b/src/Umbraco.Tests/TestHelpers/Entities/MockedContent.cs @@ -1,8 +1,12 @@ using System; using System.Collections.Generic; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Extensions; using Umbraco.Core; using Umbraco.Core.Models; using Umbraco.Tests.Testing; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Tests.TestHelpers.Entities { diff --git a/src/Umbraco.Tests/TestHelpers/Entities/MockedContentTypes.cs b/src/Umbraco.Tests/TestHelpers/Entities/MockedContentTypes.cs index ae43cd4ea1..ff68ee124a 100644 --- a/src/Umbraco.Tests/TestHelpers/Entities/MockedContentTypes.cs +++ b/src/Umbraco.Tests/TestHelpers/Entities/MockedContentTypes.cs @@ -1,7 +1,9 @@ using System; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Strings; using Umbraco.Core; using Umbraco.Core.Models; -using Umbraco.Core.Strings; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Tests.TestHelpers.Entities { diff --git a/src/Umbraco.Tests/TestHelpers/Entities/MockedEntity.cs b/src/Umbraco.Tests/TestHelpers/Entities/MockedEntity.cs index 22f6376760..c40d5b33bf 100644 --- a/src/Umbraco.Tests/TestHelpers/Entities/MockedEntity.cs +++ b/src/Umbraco.Tests/TestHelpers/Entities/MockedEntity.cs @@ -1,6 +1,6 @@ using System; using System.Runtime.Serialization; -using Umbraco.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Entities; namespace Umbraco.Tests.TestHelpers.Entities { diff --git a/src/Umbraco.Tests/TestHelpers/Entities/MockedMedia.cs b/src/Umbraco.Tests/TestHelpers/Entities/MockedMedia.cs index 41ea230e7d..64d6a40c46 100644 --- a/src/Umbraco.Tests/TestHelpers/Entities/MockedMedia.cs +++ b/src/Umbraco.Tests/TestHelpers/Entities/MockedMedia.cs @@ -1,6 +1,9 @@ -using Umbraco.Core; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Tests.Common.Extensions; +using Umbraco.Core; using Umbraco.Core.Models; using Umbraco.Tests.Testing; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Tests.TestHelpers.Entities { diff --git a/src/Umbraco.Tests/TestHelpers/Entities/MockedMember.cs b/src/Umbraco.Tests/TestHelpers/Entities/MockedMember.cs index e6916d7de7..85e69d23bc 100644 --- a/src/Umbraco.Tests/TestHelpers/Entities/MockedMember.cs +++ b/src/Umbraco.Tests/TestHelpers/Entities/MockedMember.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using Umbraco.Cms.Core.Models; using Umbraco.Core.Models; namespace Umbraco.Tests.TestHelpers.Entities diff --git a/src/Umbraco.Tests/TestHelpers/Entities/MockedPropertyTypes.cs b/src/Umbraco.Tests/TestHelpers/Entities/MockedPropertyTypes.cs index e8efc045f6..25c4943313 100644 --- a/src/Umbraco.Tests/TestHelpers/Entities/MockedPropertyTypes.cs +++ b/src/Umbraco.Tests/TestHelpers/Entities/MockedPropertyTypes.cs @@ -1,4 +1,5 @@ -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Core.Models; namespace Umbraco.Tests.TestHelpers.Entities { diff --git a/src/Umbraco.Tests/TestHelpers/Entities/MockedUser.cs b/src/Umbraco.Tests/TestHelpers/Entities/MockedUser.cs index 4707c4af38..f2fbaca571 100644 --- a/src/Umbraco.Tests/TestHelpers/Entities/MockedUser.cs +++ b/src/Umbraco.Tests/TestHelpers/Entities/MockedUser.cs @@ -1,8 +1,8 @@ using System; using System.Collections.Generic; using Moq; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Models.Membership; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models.Membership; namespace Umbraco.Tests.TestHelpers.Entities { diff --git a/src/Umbraco.Tests/TestHelpers/Entities/MockedUserGroup.cs b/src/Umbraco.Tests/TestHelpers/Entities/MockedUserGroup.cs index 0285005a84..37a510a0e8 100644 --- a/src/Umbraco.Tests/TestHelpers/Entities/MockedUserGroup.cs +++ b/src/Umbraco.Tests/TestHelpers/Entities/MockedUserGroup.cs @@ -1,5 +1,5 @@ -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Strings; namespace Umbraco.Tests.TestHelpers.Entities { diff --git a/src/Umbraco.Tests/TestHelpers/Stubs/TestControllerFactory.cs b/src/Umbraco.Tests/TestHelpers/Stubs/TestControllerFactory.cs index a718a09d5b..cf88208286 100644 --- a/src/Umbraco.Tests/TestHelpers/Stubs/TestControllerFactory.cs +++ b/src/Umbraco.Tests/TestHelpers/Stubs/TestControllerFactory.cs @@ -7,10 +7,9 @@ using System.Web.Routing; using System.Web.SessionState; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; -using Moq; -using Umbraco.Core; -using Umbraco.Core.Composing; -using Umbraco.Web; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Web; +using Umbraco.Extensions; using Current = Umbraco.Web.Composing.Current; namespace Umbraco.Tests.TestHelpers.Stubs diff --git a/src/Umbraco.Tests/TestHelpers/Stubs/TestLastChanceFinder.cs b/src/Umbraco.Tests/TestHelpers/Stubs/TestLastChanceFinder.cs index dfbca2763c..8adff546ce 100644 --- a/src/Umbraco.Tests/TestHelpers/Stubs/TestLastChanceFinder.cs +++ b/src/Umbraco.Tests/TestHelpers/Stubs/TestLastChanceFinder.cs @@ -1,3 +1,4 @@ +using Umbraco.Cms.Core.Routing; using Umbraco.Web.Routing; namespace Umbraco.Tests.TestHelpers.Stubs diff --git a/src/Umbraco.Tests/TestHelpers/Stubs/TestUserPasswordConfig.cs b/src/Umbraco.Tests/TestHelpers/Stubs/TestUserPasswordConfig.cs index df99139d82..0ab2f0d750 100644 --- a/src/Umbraco.Tests/TestHelpers/Stubs/TestUserPasswordConfig.cs +++ b/src/Umbraco.Tests/TestHelpers/Stubs/TestUserPasswordConfig.cs @@ -1,5 +1,7 @@ -using Umbraco.Core.Configuration; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Core.Configuration; using Umbraco.Core; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Tests.TestHelpers.Stubs { diff --git a/src/Umbraco.Tests/TestHelpers/TestHelper.cs b/src/Umbraco.Tests/TestHelpers/TestHelper.cs index 158d0141c2..cfce05e35b 100644 --- a/src/Umbraco.Tests/TestHelpers/TestHelper.cs +++ b/src/Umbraco.Tests/TestHelpers/TestHelper.cs @@ -13,31 +13,34 @@ using Microsoft.Extensions.Logging.Abstractions; using Microsoft.Extensions.Options; using Moq; using NUnit.Framework; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Diagnostics; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Mail; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Net; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Runtime; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Persistence.SqlCe; +using Umbraco.Cms.Tests.Common; using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Composing; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.DependencyInjection; -using Umbraco.Core.Diagnostics; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; -using Umbraco.Core.Logging; -using Umbraco.Core.Mail; using Umbraco.Core.Migrations.Install; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Models.PublishedContent; using Umbraco.Core.Persistence; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Serialization; -using Umbraco.Core.Strings; -using Umbraco.Net; -using Umbraco.Persistence.SqlCe; -using Umbraco.Tests.Common; +using Umbraco.Extensions; using Umbraco.Web; using Umbraco.Web.Hosting; -using Umbraco.Web.Routing; +using Constants = Umbraco.Cms.Core.Constants; using File = System.IO.File; namespace Umbraco.Tests.TestHelpers diff --git a/src/Umbraco.Tests/TestHelpers/TestObjects-Mocks.cs b/src/Umbraco.Tests/TestHelpers/TestObjects-Mocks.cs index 17c1c3961d..9e8c07c2be 100644 --- a/src/Umbraco.Tests/TestHelpers/TestObjects-Mocks.cs +++ b/src/Umbraco.Tests/TestHelpers/TestObjects-Mocks.cs @@ -7,16 +7,18 @@ using System.Linq.Expressions; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Moq; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.IO; -using Umbraco.Core.Models; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Persistence.SqlCe; +using Umbraco.Cms.Tests.Common; using Umbraco.Core.Persistence; -using Umbraco.Core.Services; -using Umbraco.Persistence.SqlCe; -using Umbraco.Tests.Common; +using Umbraco.Extensions; using Umbraco.Web; -using Umbraco.Web.PublishedCache; namespace Umbraco.Tests.TestHelpers { diff --git a/src/Umbraco.Tests/TestHelpers/TestObjects.cs b/src/Umbraco.Tests/TestHelpers/TestObjects.cs index 54f52f74ef..c30dee5236 100644 --- a/src/Umbraco.Tests/TestHelpers/TestObjects.cs +++ b/src/Umbraco.Tests/TestHelpers/TestObjects.cs @@ -5,18 +5,18 @@ using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using Moq; using NPoco; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.IO; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Persistence.SqlCe; using Umbraco.Core.Migrations.Install; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.Mappers; using Umbraco.Core.Persistence.SqlSyntax; using Umbraco.Core.Scoping; -using Umbraco.Persistence.SqlCe; using Umbraco.Web.Composing; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Tests.TestHelpers { diff --git a/src/Umbraco.Tests/TestHelpers/TestWithDatabaseBase.cs b/src/Umbraco.Tests/TestHelpers/TestWithDatabaseBase.cs index e4b2b229f0..38b553c46b 100644 --- a/src/Umbraco.Tests/TestHelpers/TestWithDatabaseBase.cs +++ b/src/Umbraco.Tests/TestHelpers/TestWithDatabaseBase.cs @@ -9,30 +9,33 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Moq; using NUnit.Framework; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.DependencyInjection; -using Umbraco.Core.Logging; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Persistence.SqlCe; +using Umbraco.Cms.Tests.Common; +using Umbraco.Cms.Tests.Common.Testing; using Umbraco.Core.Migrations.Install; -using Umbraco.Core.Models.PublishedContent; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.Mappers; using Umbraco.Core.Persistence.Repositories; using Umbraco.Core.Persistence.SqlSyntax; -using Umbraco.Core.PropertyEditors; using Umbraco.Core.Scoping; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Persistence.SqlCe; -using Umbraco.Tests.Common; +using Umbraco.Extensions; using Umbraco.Tests.LegacyXmlPublishedCache; using Umbraco.Tests.Testing; using Umbraco.Web; using Umbraco.Web.Composing; using Umbraco.Web.PublishedCache; -using Umbraco.Web.Routing; using Umbraco.Web.WebApi; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Tests.TestHelpers { diff --git a/src/Umbraco.Tests/Testing/Objects/TestDataSource.cs b/src/Umbraco.Tests/Testing/Objects/TestDataSource.cs index d8a413fab9..9a5b5d343c 100644 --- a/src/Umbraco.Tests/Testing/Objects/TestDataSource.cs +++ b/src/Umbraco.Tests/Testing/Objects/TestDataSource.cs @@ -1,12 +1,13 @@ using System; using System.Collections.Generic; using System.Linq; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Infrastructure.PublishedCache; +using Umbraco.Cms.Infrastructure.PublishedCache.Persistence; using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; using Umbraco.Core.Scoping; -using Umbraco.Infrastructure.PublishedCache.Persistence; using Umbraco.Web; -using Umbraco.Web.PublishedCache.NuCache; namespace Umbraco.Tests.Testing.Objects { diff --git a/src/Umbraco.Tests/Testing/UmbracoTestBase.cs b/src/Umbraco.Tests/Testing/UmbracoTestBase.cs index 0888bafa97..12bcbfdf6b 100644 --- a/src/Umbraco.Tests/Testing/UmbracoTestBase.cs +++ b/src/Umbraco.Tests/Testing/UmbracoTestBase.cs @@ -15,58 +15,62 @@ using Microsoft.Extensions.Logging.Abstractions; using Moq; using NUnit.Framework; using Serilog; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Actions; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.ContentApps; +using Umbraco.Cms.Core.DependencyInjection; +using Umbraco.Cms.Core.Dictionary; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Install; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.IO.MediaPathSchemes; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Mail; +using Umbraco.Cms.Core.Manifest; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Media; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Net; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Sections; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Core.Templates; +using Umbraco.Cms.Core.Trees; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Tests.Common; +using Umbraco.Cms.Tests.Common.Testing; using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Composing; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.DependencyInjection; -using Umbraco.Core.Dictionary; -using Umbraco.Core.Events; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; -using Umbraco.Core.IO.MediaPathSchemes; -using Umbraco.Core.Logging; -using Umbraco.Core.Mail; using Umbraco.Core.Manifest; -using Umbraco.Core.Mapping; -using Umbraco.Core.Media; using Umbraco.Core.Migrations.Install; -using Umbraco.Core.Models.PublishedContent; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.Mappers; using Umbraco.Core.Persistence.Repositories.Implement; using Umbraco.Core.Persistence.SqlSyntax; -using Umbraco.Core.PropertyEditors; using Umbraco.Core.Scoping; -using Umbraco.Core.Security; using Umbraco.Core.Serialization; -using Umbraco.Core.Services; using Umbraco.Core.Services.Implement; -using Umbraco.Core.Strings; +using Umbraco.Extensions; using Umbraco.Infrastructure.DependencyInjection; -using Umbraco.Net; -using Umbraco.Tests.Common; using Umbraco.Tests.TestHelpers; using Umbraco.Tests.TestHelpers.Stubs; using Umbraco.Web; -using Umbraco.Web.Actions; -using Umbraco.Web.AspNet; using Umbraco.Web.Composing; -using Umbraco.Web.ContentApps; using Umbraco.Web.Hosting; -using Umbraco.Web.Install; using Umbraco.Web.Media; using Umbraco.Web.PropertyEditors; -using Umbraco.Web.PublishedCache; -using Umbraco.Web.Routing; -using Umbraco.Web.Sections; using Umbraco.Web.Security; using Umbraco.Web.Security.Providers; -using Umbraco.Web.Services; -using Umbraco.Web.Templates; -using Umbraco.Web.Trees; -using FileSystems = Umbraco.Core.IO.FileSystems; +using FileSystems = Umbraco.Cms.Core.IO.FileSystems; using ILogger = Microsoft.Extensions.Logging.ILogger; namespace Umbraco.Tests.Testing diff --git a/src/Umbraco.Tests/UmbracoExamine/EventsTest.cs b/src/Umbraco.Tests/UmbracoExamine/EventsTest.cs index f40cae536f..5da57f77f9 100644 --- a/src/Umbraco.Tests/UmbracoExamine/EventsTest.cs +++ b/src/Umbraco.Tests/UmbracoExamine/EventsTest.cs @@ -1,5 +1,6 @@ using System.Linq; using NUnit.Framework; +using Umbraco.Cms.Tests.Common.Testing; using Umbraco.Tests.Testing; using Umbraco.Examine; diff --git a/src/Umbraco.Tests/UmbracoExamine/ExamineBaseTest.cs b/src/Umbraco.Tests/UmbracoExamine/ExamineBaseTest.cs index 61b5141856..809ed77185 100644 --- a/src/Umbraco.Tests/UmbracoExamine/ExamineBaseTest.cs +++ b/src/Umbraco.Tests/UmbracoExamine/ExamineBaseTest.cs @@ -1,15 +1,11 @@ -using System.IO; -using Microsoft.Extensions.Logging; +using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging.Abstractions; using NUnit.Framework; -using Umbraco.Core.Composing; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.DependencyInjection; -using Umbraco.Core.Logging; -using Umbraco.Core.Logging.Serilog; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Strings; +using Umbraco.Extensions; using Umbraco.Tests.TestHelpers; -using NullLogger = Microsoft.Extensions.Logging.Abstractions.NullLogger; namespace Umbraco.Tests.UmbracoExamine { diff --git a/src/Umbraco.Tests/UmbracoExamine/IndexInitializer.cs b/src/Umbraco.Tests/UmbracoExamine/IndexInitializer.cs index 215a007463..22e84650d2 100644 --- a/src/Umbraco.Tests/UmbracoExamine/IndexInitializer.cs +++ b/src/Umbraco.Tests/UmbracoExamine/IndexInitializer.cs @@ -7,19 +7,20 @@ using Lucene.Net.Analysis.Standard; using Lucene.Net.Store; using Microsoft.Extensions.Logging; using Moq; -using Umbraco.Core; -using Umbraco.Core.Hosting; -using Umbraco.Core.Logging; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Membership; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; using Umbraco.Core.Persistence; -using Umbraco.Core.Persistence.Querying; -using Umbraco.Core.PropertyEditors; using Umbraco.Core.Scoping; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; using Umbraco.Examine; using Umbraco.Tests.TestHelpers; +using IContentService = Umbraco.Cms.Core.Services.IContentService; +using IMediaService = Umbraco.Cms.Core.Services.IMediaService; using Version = Lucene.Net.Util.Version; namespace Umbraco.Tests.UmbracoExamine diff --git a/src/Umbraco.Tests/UmbracoExamine/IndexTest.cs b/src/Umbraco.Tests/UmbracoExamine/IndexTest.cs index e37dabdfec..bcd0732fce 100644 --- a/src/Umbraco.Tests/UmbracoExamine/IndexTest.cs +++ b/src/Umbraco.Tests/UmbracoExamine/IndexTest.cs @@ -9,12 +9,13 @@ using Lucene.Net.Search; using Microsoft.Extensions.DependencyInjection; using Newtonsoft.Json; using NUnit.Framework; -using Umbraco.Core.Models; -using Umbraco.Core.PropertyEditors; using Umbraco.Examine; -using Umbraco.Tests.TestHelpers; using Umbraco.Tests.TestHelpers.Entities; -using Umbraco.Tests.Testing; +using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Tests.TestHelpers; namespace Umbraco.Tests.UmbracoExamine { @@ -43,7 +44,7 @@ namespace Umbraco.Tests.UmbracoExamine { Alias = "grid", Name = "Grid", - PropertyEditorAlias = Core.Constants.PropertyEditors.Aliases.Grid + PropertyEditorAlias = Cms.Core.Constants.PropertyEditors.Aliases.Grid }); var content = MockedContent.CreateBasicContent(contentType); content.Id = 555; diff --git a/src/Umbraco.Tests/UmbracoExamine/SearchTests.cs b/src/Umbraco.Tests/UmbracoExamine/SearchTests.cs index 156ac06876..8594a34edf 100644 --- a/src/Umbraco.Tests/UmbracoExamine/SearchTests.cs +++ b/src/Umbraco.Tests/UmbracoExamine/SearchTests.cs @@ -5,13 +5,13 @@ using Examine; using Examine.Search; using Microsoft.Extensions.DependencyInjection; using Moq; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Testing; using NUnit.Framework; -using Umbraco.Core.Models; -using Umbraco.Core.Persistence.Querying; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Services; using Umbraco.Examine; -using Umbraco.Tests.Testing; namespace Umbraco.Tests.UmbracoExamine { diff --git a/src/Umbraco.Tests/Web/Controllers/AuthenticationControllerTests.cs b/src/Umbraco.Tests/Web/Controllers/AuthenticationControllerTests.cs index 125d21dfa6..a138c6ce94 100644 --- a/src/Umbraco.Tests/Web/Controllers/AuthenticationControllerTests.cs +++ b/src/Umbraco.Tests/Web/Controllers/AuthenticationControllerTests.cs @@ -1,10 +1,11 @@ using Moq; using NUnit.Framework; -using Umbraco.Core.DependencyInjection; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Features; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Tests.Common.Testing; +using Umbraco.Extensions; using Umbraco.Tests.TestHelpers; using Umbraco.Tests.Testing; -using Umbraco.Web.Features; namespace Umbraco.Tests.Web.Controllers { diff --git a/src/Umbraco.Tests/Web/PublishedContentQueryTests.cs b/src/Umbraco.Tests/Web/PublishedContentQueryTests.cs index 74ab279fb8..91cd7526d9 100644 --- a/src/Umbraco.Tests/Web/PublishedContentQueryTests.cs +++ b/src/Umbraco.Tests/Web/PublishedContentQueryTests.cs @@ -6,7 +6,8 @@ using Examine.LuceneEngine.Providers; using Lucene.Net.Store; using Moq; using NUnit.Framework; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; using Umbraco.Examine; using Umbraco.Tests.TestHelpers; using Umbraco.Web; @@ -55,7 +56,7 @@ namespace Umbraco.Tests.Web [UmbracoExamineFieldNames.VariesByCultureFieldName] = "y" })); } - + return indexer; } @@ -84,7 +85,7 @@ namespace Umbraco.Tests.Web { var fieldNames = new[] { "title", "title_en-us", "title_fr-fr" }; using (var indexer = CreateTestIndex(luceneDir, fieldNames)) - { + { var pcq = CreatePublishedContentQuery(indexer); var results = pcq.Search("Products", culture, "TestIndex"); diff --git a/src/Umbraco.Web.BackOffice/ActionResults/JavaScriptResult.cs b/src/Umbraco.Web.BackOffice/ActionResults/JavaScriptResult.cs index d440cc833d..2d9b87b680 100644 --- a/src/Umbraco.Web.BackOffice/ActionResults/JavaScriptResult.cs +++ b/src/Umbraco.Web.BackOffice/ActionResults/JavaScriptResult.cs @@ -1,6 +1,6 @@ using Microsoft.AspNetCore.Mvc; -namespace Umbraco.Web.BackOffice.ActionResults +namespace Umbraco.Cms.Web.BackOffice.ActionResults { public class JavaScriptResult : ContentResult { diff --git a/src/Umbraco.Web.BackOffice/ActionResults/UmbracoErrorResult.cs b/src/Umbraco.Web.BackOffice/ActionResults/UmbracoErrorResult.cs index e810fb1eb3..cb4d999e69 100644 --- a/src/Umbraco.Web.BackOffice/ActionResults/UmbracoErrorResult.cs +++ b/src/Umbraco.Web.BackOffice/ActionResults/UmbracoErrorResult.cs @@ -1,7 +1,7 @@ using System.Net; using Microsoft.AspNetCore.Mvc; -namespace Umbraco.Web.BackOffice.ActionResults +namespace Umbraco.Cms.Web.BackOffice.ActionResults { public class UmbracoErrorResult : ObjectResult { diff --git a/src/Umbraco.Web.BackOffice/ActionResults/UmbracoNotificationSuccessResponse.cs b/src/Umbraco.Web.BackOffice/ActionResults/UmbracoNotificationSuccessResponse.cs index cdd9359ac1..37e4902626 100644 --- a/src/Umbraco.Web.BackOffice/ActionResults/UmbracoNotificationSuccessResponse.cs +++ b/src/Umbraco.Web.BackOffice/ActionResults/UmbracoNotificationSuccessResponse.cs @@ -1,7 +1,8 @@ using Microsoft.AspNetCore.Mvc; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Extensions; -namespace Umbraco.Web.BackOffice.ActionResults +namespace Umbraco.Cms.Web.BackOffice.ActionResults { public class UmbracoNotificationSuccessResponse : OkObjectResult { diff --git a/src/Umbraco.Web.BackOffice/Authorization/AdminUsersHandler.cs b/src/Umbraco.Web.BackOffice/Authorization/AdminUsersHandler.cs index a7733b25bd..64649ac274 100644 --- a/src/Umbraco.Web.BackOffice/Authorization/AdminUsersHandler.cs +++ b/src/Umbraco.Web.BackOffice/Authorization/AdminUsersHandler.cs @@ -7,12 +7,13 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Primitives; -using Umbraco.Core; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Web.Editors; +using Umbraco.Cms.Core.Editors; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; -namespace Umbraco.Web.BackOffice.Authorization +namespace Umbraco.Cms.Web.BackOffice.Authorization { /// /// If the users being edited is an admin then we must ensure that the current user is also an admin. @@ -78,7 +79,7 @@ namespace Umbraco.Web.BackOffice.Authorization return Task.FromResult(true); } - IEnumerable users = _userService.GetUsersById(userIds); + IEnumerable users = _userService.GetUsersById(userIds); var isAuth = users.All(user => _userEditorAuthorizationHelper.IsAuthorized(_backOfficeSecurityAccessor.BackOfficeSecurity.CurrentUser, user, null, null, null) != false); return Task.FromResult(isAuth); diff --git a/src/Umbraco.Web.BackOffice/Authorization/AdminUsersRequirement.cs b/src/Umbraco.Web.BackOffice/Authorization/AdminUsersRequirement.cs index e8a56ee8cb..95e115bc16 100644 --- a/src/Umbraco.Web.BackOffice/Authorization/AdminUsersRequirement.cs +++ b/src/Umbraco.Web.BackOffice/Authorization/AdminUsersRequirement.cs @@ -3,7 +3,7 @@ using Microsoft.AspNetCore.Authorization; -namespace Umbraco.Web.BackOffice.Authorization +namespace Umbraco.Cms.Web.BackOffice.Authorization { /// /// Authorization requirement for the diff --git a/src/Umbraco.Web.BackOffice/Authorization/BackOfficeHandler.cs b/src/Umbraco.Web.BackOffice/Authorization/BackOfficeHandler.cs index 0d7c28f314..97108f5460 100644 --- a/src/Umbraco.Web.BackOffice/Authorization/BackOfficeHandler.cs +++ b/src/Umbraco.Web.BackOffice/Authorization/BackOfficeHandler.cs @@ -3,10 +3,11 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; -using Umbraco.Core; -using Umbraco.Core.Security; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; -namespace Umbraco.Web.BackOffice.Authorization +namespace Umbraco.Cms.Web.BackOffice.Authorization { /// /// Ensures authorization is successful for a back office user. diff --git a/src/Umbraco.Web.BackOffice/Authorization/BackOfficeRequirement.cs b/src/Umbraco.Web.BackOffice/Authorization/BackOfficeRequirement.cs index 17c5f6e02a..1bce297b9b 100644 --- a/src/Umbraco.Web.BackOffice/Authorization/BackOfficeRequirement.cs +++ b/src/Umbraco.Web.BackOffice/Authorization/BackOfficeRequirement.cs @@ -3,7 +3,7 @@ using Microsoft.AspNetCore.Authorization; -namespace Umbraco.Web.BackOffice.Authorization +namespace Umbraco.Cms.Web.BackOffice.Authorization { /// /// Authorization requirement for the diff --git a/src/Umbraco.Web.BackOffice/Authorization/ContentPermissionsPublishBranchHandler.cs b/src/Umbraco.Web.BackOffice/Authorization/ContentPermissionsPublishBranchHandler.cs index bb6dc919be..b620daf0f8 100644 --- a/src/Umbraco.Web.BackOffice/Authorization/ContentPermissionsPublishBranchHandler.cs +++ b/src/Umbraco.Web.BackOffice/Authorization/ContentPermissionsPublishBranchHandler.cs @@ -5,13 +5,14 @@ using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Security; -using Umbraco.Core.Services; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; -namespace Umbraco.Web.BackOffice.Authorization +namespace Umbraco.Cms.Web.BackOffice.Authorization { /// /// The user must have access to all descendant nodes of the content item in order to continue. @@ -41,7 +42,7 @@ namespace Umbraco.Web.BackOffice.Authorization /// protected override Task IsAuthorized(AuthorizationHandlerContext context, ContentPermissionsPublishBranchRequirement requirement, IContent resource) { - Core.Models.Membership.IUser currentUser = _backOfficeSecurityAccessor.BackOfficeSecurity.CurrentUser; + IUser currentUser = _backOfficeSecurityAccessor.BackOfficeSecurity.CurrentUser; var denied = new List(); var page = 0; diff --git a/src/Umbraco.Web.BackOffice/Authorization/ContentPermissionsPublishBranchRequirement.cs b/src/Umbraco.Web.BackOffice/Authorization/ContentPermissionsPublishBranchRequirement.cs index cfa6f512a2..caf987488f 100644 --- a/src/Umbraco.Web.BackOffice/Authorization/ContentPermissionsPublishBranchRequirement.cs +++ b/src/Umbraco.Web.BackOffice/Authorization/ContentPermissionsPublishBranchRequirement.cs @@ -3,7 +3,7 @@ using Microsoft.AspNetCore.Authorization; -namespace Umbraco.Web.BackOffice.Authorization +namespace Umbraco.Cms.Web.BackOffice.Authorization { /// /// Authorization requirement for diff --git a/src/Umbraco.Web.BackOffice/Authorization/ContentPermissionsQueryStringHandler.cs b/src/Umbraco.Web.BackOffice/Authorization/ContentPermissionsQueryStringHandler.cs index caf94c1cec..10d2aaffde 100644 --- a/src/Umbraco.Web.BackOffice/Authorization/ContentPermissionsQueryStringHandler.cs +++ b/src/Umbraco.Web.BackOffice/Authorization/ContentPermissionsQueryStringHandler.cs @@ -5,11 +5,11 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Primitives; -using Umbraco.Core.Models; -using Umbraco.Core.Security; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; -namespace Umbraco.Web.BackOffice.Authorization +namespace Umbraco.Cms.Web.BackOffice.Authorization { /// /// Used to authorize if the user has the correct permission access to the content for the content id specified in a query string. diff --git a/src/Umbraco.Web.BackOffice/Authorization/ContentPermissionsQueryStringRequirement.cs b/src/Umbraco.Web.BackOffice/Authorization/ContentPermissionsQueryStringRequirement.cs index ee386295c2..d958968d6e 100644 --- a/src/Umbraco.Web.BackOffice/Authorization/ContentPermissionsQueryStringRequirement.cs +++ b/src/Umbraco.Web.BackOffice/Authorization/ContentPermissionsQueryStringRequirement.cs @@ -3,7 +3,7 @@ using Microsoft.AspNetCore.Authorization; -namespace Umbraco.Web.BackOffice.Authorization +namespace Umbraco.Cms.Web.BackOffice.Authorization { /// /// An authorization requirement for diff --git a/src/Umbraco.Web.BackOffice/Authorization/ContentPermissionsResource.cs b/src/Umbraco.Web.BackOffice/Authorization/ContentPermissionsResource.cs index b544d28eb5..4c9da3ae41 100644 --- a/src/Umbraco.Web.BackOffice/Authorization/ContentPermissionsResource.cs +++ b/src/Umbraco.Web.BackOffice/Authorization/ContentPermissionsResource.cs @@ -2,9 +2,9 @@ // See LICENSE for more details. using System.Collections.Generic; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Web.BackOffice.Authorization +namespace Umbraco.Cms.Web.BackOffice.Authorization { /// /// The resource used for the diff --git a/src/Umbraco.Web.BackOffice/Authorization/ContentPermissionsResourceHandler.cs b/src/Umbraco.Web.BackOffice/Authorization/ContentPermissionsResourceHandler.cs index 24e5e5b6ac..3c1bf8ae56 100644 --- a/src/Umbraco.Web.BackOffice/Authorization/ContentPermissionsResourceHandler.cs +++ b/src/Umbraco.Web.BackOffice/Authorization/ContentPermissionsResourceHandler.cs @@ -3,10 +3,10 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; -using Umbraco.Core.Models; -using Umbraco.Core.Security; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Security; -namespace Umbraco.Web.BackOffice.Authorization +namespace Umbraco.Cms.Web.BackOffice.Authorization { /// /// Used to authorize if the user has the correct permission access to the content for the specified. diff --git a/src/Umbraco.Web.BackOffice/Authorization/ContentPermissionsResourceRequirement.cs b/src/Umbraco.Web.BackOffice/Authorization/ContentPermissionsResourceRequirement.cs index fcf2838f33..af86ab080b 100644 --- a/src/Umbraco.Web.BackOffice/Authorization/ContentPermissionsResourceRequirement.cs +++ b/src/Umbraco.Web.BackOffice/Authorization/ContentPermissionsResourceRequirement.cs @@ -3,7 +3,7 @@ using Microsoft.AspNetCore.Authorization; -namespace Umbraco.Web.BackOffice.Authorization +namespace Umbraco.Cms.Web.BackOffice.Authorization { /// /// An authorization requirement for diff --git a/src/Umbraco.Web.BackOffice/Authorization/DenyLocalLoginHandler.cs b/src/Umbraco.Web.BackOffice/Authorization/DenyLocalLoginHandler.cs index 6c09d00ef7..dd6b7a6483 100644 --- a/src/Umbraco.Web.BackOffice/Authorization/DenyLocalLoginHandler.cs +++ b/src/Umbraco.Web.BackOffice/Authorization/DenyLocalLoginHandler.cs @@ -3,9 +3,9 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; -using Umbraco.Web.BackOffice.Security; +using Umbraco.Cms.Web.BackOffice.Security; -namespace Umbraco.Web.BackOffice.Authorization +namespace Umbraco.Cms.Web.BackOffice.Authorization { /// /// Ensures the resource cannot be accessed if returns true. diff --git a/src/Umbraco.Web.BackOffice/Authorization/DenyLocalLoginRequirement.cs b/src/Umbraco.Web.BackOffice/Authorization/DenyLocalLoginRequirement.cs index b295c74621..d148342e3a 100644 --- a/src/Umbraco.Web.BackOffice/Authorization/DenyLocalLoginRequirement.cs +++ b/src/Umbraco.Web.BackOffice/Authorization/DenyLocalLoginRequirement.cs @@ -3,7 +3,7 @@ using Microsoft.AspNetCore.Authorization; -namespace Umbraco.Web.BackOffice.Authorization +namespace Umbraco.Cms.Web.BackOffice.Authorization { /// /// Marker requirement for the . diff --git a/src/Umbraco.Web.BackOffice/Authorization/MediaPermissionsQueryStringHandler.cs b/src/Umbraco.Web.BackOffice/Authorization/MediaPermissionsQueryStringHandler.cs index e55384ab15..6deccbc0cb 100644 --- a/src/Umbraco.Web.BackOffice/Authorization/MediaPermissionsQueryStringHandler.cs +++ b/src/Umbraco.Web.BackOffice/Authorization/MediaPermissionsQueryStringHandler.cs @@ -5,11 +5,11 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Primitives; -using Umbraco.Core.Models; -using Umbraco.Core.Security; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; -namespace Umbraco.Web.BackOffice.Authorization +namespace Umbraco.Cms.Web.BackOffice.Authorization { /// /// Used to authorize if the user has the correct permission access to the media for the media id specified in a query string. diff --git a/src/Umbraco.Web.BackOffice/Authorization/MediaPermissionsQueryStringRequirement.cs b/src/Umbraco.Web.BackOffice/Authorization/MediaPermissionsQueryStringRequirement.cs index 14d9d77834..6c17d5cfac 100644 --- a/src/Umbraco.Web.BackOffice/Authorization/MediaPermissionsQueryStringRequirement.cs +++ b/src/Umbraco.Web.BackOffice/Authorization/MediaPermissionsQueryStringRequirement.cs @@ -3,7 +3,7 @@ using Microsoft.AspNetCore.Authorization; -namespace Umbraco.Web.BackOffice.Authorization +namespace Umbraco.Cms.Web.BackOffice.Authorization { /// /// An authorization requirement for diff --git a/src/Umbraco.Web.BackOffice/Authorization/MediaPermissionsResource.cs b/src/Umbraco.Web.BackOffice/Authorization/MediaPermissionsResource.cs index 267fbc2b90..48eed0a844 100644 --- a/src/Umbraco.Web.BackOffice/Authorization/MediaPermissionsResource.cs +++ b/src/Umbraco.Web.BackOffice/Authorization/MediaPermissionsResource.cs @@ -1,9 +1,9 @@ // Copyright (c) Umbraco. // See LICENSE for more details. -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Models; -namespace Umbraco.Web.BackOffice.Authorization +namespace Umbraco.Cms.Web.BackOffice.Authorization { public class MediaPermissionsResource { diff --git a/src/Umbraco.Web.BackOffice/Authorization/MediaPermissionsResourceHandler.cs b/src/Umbraco.Web.BackOffice/Authorization/MediaPermissionsResourceHandler.cs index 613aaaa8d5..71cace6b6f 100644 --- a/src/Umbraco.Web.BackOffice/Authorization/MediaPermissionsResourceHandler.cs +++ b/src/Umbraco.Web.BackOffice/Authorization/MediaPermissionsResourceHandler.cs @@ -3,10 +3,10 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; -using Umbraco.Core.Models; -using Umbraco.Core.Security; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Security; -namespace Umbraco.Web.BackOffice.Authorization +namespace Umbraco.Cms.Web.BackOffice.Authorization { /// /// Used to authorize if the user has the correct permission access to the content for the specified. diff --git a/src/Umbraco.Web.BackOffice/Authorization/MediaPermissionsResourceRequirement.cs b/src/Umbraco.Web.BackOffice/Authorization/MediaPermissionsResourceRequirement.cs index b615a81709..637636ede6 100644 --- a/src/Umbraco.Web.BackOffice/Authorization/MediaPermissionsResourceRequirement.cs +++ b/src/Umbraco.Web.BackOffice/Authorization/MediaPermissionsResourceRequirement.cs @@ -3,7 +3,7 @@ using Microsoft.AspNetCore.Authorization; -namespace Umbraco.Web.BackOffice.Authorization +namespace Umbraco.Cms.Web.BackOffice.Authorization { /// /// An authorization requirement for diff --git a/src/Umbraco.Web.BackOffice/Authorization/MustSatisfyRequirementAuthorizationHandler.cs b/src/Umbraco.Web.BackOffice/Authorization/MustSatisfyRequirementAuthorizationHandler.cs index b990906942..d64459c94f 100644 --- a/src/Umbraco.Web.BackOffice/Authorization/MustSatisfyRequirementAuthorizationHandler.cs +++ b/src/Umbraco.Web.BackOffice/Authorization/MustSatisfyRequirementAuthorizationHandler.cs @@ -4,7 +4,7 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; -namespace Umbraco.Web.BackOffice.Authorization +namespace Umbraco.Cms.Web.BackOffice.Authorization { /// /// Abstract handler that must satisfy the requirement so Succeed or Fail will be called no matter what. diff --git a/src/Umbraco.Web.BackOffice/Authorization/PermissionsQueryStringHandler.cs b/src/Umbraco.Web.BackOffice/Authorization/PermissionsQueryStringHandler.cs index 47e7c6bb91..531b92a7e9 100644 --- a/src/Umbraco.Web.BackOffice/Authorization/PermissionsQueryStringHandler.cs +++ b/src/Umbraco.Web.BackOffice/Authorization/PermissionsQueryStringHandler.cs @@ -4,12 +4,12 @@ using System; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Security; -using Umbraco.Core.Services; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; -namespace Umbraco.Web.BackOffice.Authorization +namespace Umbraco.Cms.Web.BackOffice.Authorization { /// /// Abstract base class providing common functionality for authorization checks based on querystrings. diff --git a/src/Umbraco.Web.BackOffice/Authorization/SectionHandler.cs b/src/Umbraco.Web.BackOffice/Authorization/SectionHandler.cs index 4620422742..4b2ffd356d 100644 --- a/src/Umbraco.Web.BackOffice/Authorization/SectionHandler.cs +++ b/src/Umbraco.Web.BackOffice/Authorization/SectionHandler.cs @@ -4,9 +4,9 @@ using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; -using Umbraco.Core.Security; +using Umbraco.Cms.Core.Security; -namespace Umbraco.Web.BackOffice.Authorization +namespace Umbraco.Cms.Web.BackOffice.Authorization { /// /// Ensures that the current user has access to the section diff --git a/src/Umbraco.Web.BackOffice/Authorization/SectionRequirement.cs b/src/Umbraco.Web.BackOffice/Authorization/SectionRequirement.cs index a7e3aa5e2c..efd4a3b3bb 100644 --- a/src/Umbraco.Web.BackOffice/Authorization/SectionRequirement.cs +++ b/src/Umbraco.Web.BackOffice/Authorization/SectionRequirement.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; using Microsoft.AspNetCore.Authorization; -namespace Umbraco.Web.BackOffice.Authorization +namespace Umbraco.Cms.Web.BackOffice.Authorization { /// /// Authorization requirements for diff --git a/src/Umbraco.Web.BackOffice/Authorization/TreeHandler.cs b/src/Umbraco.Web.BackOffice/Authorization/TreeHandler.cs index f847f0981d..6e9269e6bd 100644 --- a/src/Umbraco.Web.BackOffice/Authorization/TreeHandler.cs +++ b/src/Umbraco.Web.BackOffice/Authorization/TreeHandler.cs @@ -5,11 +5,11 @@ using System; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; -using Umbraco.Core; -using Umbraco.Core.Security; -using Umbraco.Web.Services; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; -namespace Umbraco.Web.BackOffice.Authorization +namespace Umbraco.Cms.Web.BackOffice.Authorization { /// /// Ensures that the current user has access to the section for which the specified tree(s) belongs diff --git a/src/Umbraco.Web.BackOffice/Authorization/TreeRequirement.cs b/src/Umbraco.Web.BackOffice/Authorization/TreeRequirement.cs index 1d8671d3c9..c8c7d2853a 100644 --- a/src/Umbraco.Web.BackOffice/Authorization/TreeRequirement.cs +++ b/src/Umbraco.Web.BackOffice/Authorization/TreeRequirement.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; using Microsoft.AspNetCore.Authorization; -namespace Umbraco.Web.BackOffice.Authorization +namespace Umbraco.Cms.Web.BackOffice.Authorization { /// /// Authorization requirements for diff --git a/src/Umbraco.Web.BackOffice/Authorization/UserGroupHandler.cs b/src/Umbraco.Web.BackOffice/Authorization/UserGroupHandler.cs index 92045fcdfb..8020faa4ff 100644 --- a/src/Umbraco.Web.BackOffice/Authorization/UserGroupHandler.cs +++ b/src/Umbraco.Web.BackOffice/Authorization/UserGroupHandler.cs @@ -7,13 +7,14 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Primitives; -using Umbraco.Core; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Web.BackOffice.Controllers; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Web.BackOffice.Controllers; +using Umbraco.Extensions; -namespace Umbraco.Web.BackOffice.Authorization +namespace Umbraco.Cms.Web.BackOffice.Authorization { /// /// Authorizes that the current user has access to the user group Id in the request diff --git a/src/Umbraco.Web.BackOffice/Authorization/UserGroupRequirement.cs b/src/Umbraco.Web.BackOffice/Authorization/UserGroupRequirement.cs index 2a14bb1a78..ae82309f8d 100644 --- a/src/Umbraco.Web.BackOffice/Authorization/UserGroupRequirement.cs +++ b/src/Umbraco.Web.BackOffice/Authorization/UserGroupRequirement.cs @@ -3,7 +3,7 @@ using Microsoft.AspNetCore.Authorization; -namespace Umbraco.Web.BackOffice.Authorization +namespace Umbraco.Cms.Web.BackOffice.Authorization { /// /// Authorization requirement for the diff --git a/src/Umbraco.Web.BackOffice/Controllers/AuthenticationController.cs b/src/Umbraco.Web.BackOffice/Controllers/AuthenticationController.cs index 5e512b2342..f8e134957a 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/AuthenticationController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/AuthenticationController.cs @@ -10,29 +10,31 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Routing; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Mail; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Models.Security; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Mail; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Models.Security; +using Umbraco.Cms.Core.Net; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Web.BackOffice.Extensions; +using Umbraco.Cms.Web.BackOffice.Filters; +using Umbraco.Cms.Web.BackOffice.Security; +using Umbraco.Cms.Web.Common.ActionsResults; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; +using Umbraco.Cms.Web.Common.Controllers; +using Umbraco.Cms.Web.Common.Filters; using Umbraco.Core.Security; -using Umbraco.Core.Services; using Umbraco.Extensions; -using Umbraco.Net; -using Umbraco.Web.BackOffice.Filters; -using Umbraco.Web.BackOffice.Security; -using Umbraco.Web.Common.ActionsResults; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Authorization; -using Umbraco.Web.Common.Controllers; -using Umbraco.Web.Common.Filters; -using Umbraco.Web.Common.Security; -using Umbraco.Web.Models; -using Umbraco.Web.Models.ContentEditing; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { // See // for a bigger example of this type of controller implementation in netcore: @@ -63,7 +65,7 @@ namespace Umbraco.Web.BackOffice.Controllers private readonly UserPasswordConfigurationSettings _passwordConfiguration; private readonly IEmailSender _emailSender; private readonly ISmsSender _smsSender; - private readonly Core.Hosting.IHostingEnvironment _hostingEnvironment; + private readonly IHostingEnvironment _hostingEnvironment; private readonly LinkGenerator _linkGenerator; private readonly IBackOfficeExternalLoginProviders _externalAuthenticationOptions; private readonly IBackOfficeTwoFactorOptions _backOfficeTwoFactorOptions; @@ -84,7 +86,7 @@ namespace Umbraco.Web.BackOffice.Controllers IOptions passwordConfiguration, IEmailSender emailSender, ISmsSender smsSender, - Core.Hosting.IHostingEnvironment hostingEnvironment, + IHostingEnvironment hostingEnvironment, LinkGenerator linkGenerator, IBackOfficeExternalLoginProviders externalAuthenticationOptions, IBackOfficeTwoFactorOptions backOfficeTwoFactorOptions) diff --git a/src/Umbraco.Web.BackOffice/Controllers/BackOfficeAssetsController.cs b/src/Umbraco.Web.BackOffice/Controllers/BackOfficeAssetsController.cs index 720a0f154d..8215e8fead 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/BackOfficeAssetsController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/BackOfficeAssetsController.cs @@ -2,17 +2,16 @@ using System.Collections.Generic; using System.IO; using System.Linq; -using Microsoft.Extensions.Logging; using Microsoft.AspNetCore.Mvc; +using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; -using Umbraco.Web.Common.Attributes; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Web.Common.Attributes; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { [PluginController(Constants.Web.Mvc.BackOfficeApiArea)] public class BackOfficeAssetsController : UmbracoAuthorizedJsonController diff --git a/src/Umbraco.Web.BackOffice/Controllers/BackOfficeController.cs b/src/Umbraco.Web.BackOffice/Controllers/BackOfficeController.cs index 63e7e09513..146b4ff532 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/BackOfficeController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/BackOfficeController.cs @@ -13,31 +13,29 @@ using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Grid; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Configuration.Grid; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.WebAssets; +using Umbraco.Cms.Web.BackOffice.ActionResults; +using Umbraco.Cms.Web.BackOffice.Filters; +using Umbraco.Cms.Web.BackOffice.Security; +using Umbraco.Cms.Web.Common.ActionsResults; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; +using Umbraco.Cms.Web.Common.Controllers; +using Umbraco.Cms.Web.Common.Filters; using Umbraco.Core.Security; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.WebAssets; using Umbraco.Extensions; -using Umbraco.Web.BackOffice.ActionResults; -using Umbraco.Web.BackOffice.Filters; -using Umbraco.Web.BackOffice.Security; -using Umbraco.Web.Common.ActionsResults; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Authorization; -using Umbraco.Web.Common.Controllers; -using Umbraco.Web.Common.Filters; -using Umbraco.Web.Common.Security; -using Umbraco.Web.Models; using Umbraco.Web.WebAssets; -using Constants = Umbraco.Core.Constants; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { [DisableBrowserCache] [UmbracoRequireHttps] @@ -296,7 +294,7 @@ namespace Umbraco.Web.BackOffice.Controllers // Configures the redirect URL and user identifier for the specified external login var properties = _signInManager.ConfigureExternalAuthenticationProperties(provider, redirectUrl); - + return Challenge(properties, provider); } @@ -314,7 +312,7 @@ namespace Umbraco.Web.BackOffice.Controllers // Configures the redirect URL and user identifier for the specified external login including xsrf data var properties = _signInManager.ConfigureExternalAuthenticationProperties(provider, redirectUrl, _userManager.GetUserId(User)); - + return Challenge(properties, provider); } @@ -485,7 +483,7 @@ namespace Umbraco.Web.BackOffice.Controllers } else if (result == AutoLinkSignInResult.FailedNoEmail) { - errors.Add($"The requested provider ({loginInfo.LoginProvider}) has not provided the email claim {ClaimTypes.Email}, the account cannot be linked."); + errors.Add($"The requested provider ({loginInfo.LoginProvider}) has not provided the email claim {ClaimTypes.Email}, the account cannot be linked."); } else if (result is AutoLinkSignInResult autoLinkSignInResult && autoLinkSignInResult.Errors.Count > 0) { diff --git a/src/Umbraco.Web.BackOffice/Controllers/BackOfficeNotificationsController.cs b/src/Umbraco.Web.BackOffice/Controllers/BackOfficeNotificationsController.cs index 5c6a999e4a..4cecb20aa5 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/BackOfficeNotificationsController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/BackOfficeNotificationsController.cs @@ -1,6 +1,6 @@ -using Umbraco.Web.BackOffice.Filters; +using Umbraco.Cms.Web.BackOffice.Filters; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { /// /// An abstract controller that automatically checks if any request is a non-GET and if the diff --git a/src/Umbraco.Web.BackOffice/Controllers/BackOfficeServerVariables.cs b/src/Umbraco.Web.BackOffice/Controllers/BackOfficeServerVariables.cs index 92c6d887ff..5d874a9ce3 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/BackOfficeServerVariables.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/BackOfficeServerVariables.cs @@ -6,25 +6,28 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Routing; using Microsoft.Extensions.Options; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Features; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Media; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Trees; +using Umbraco.Cms.Core.WebAssets; +using Umbraco.Cms.Web.BackOffice.HealthChecks; +using Umbraco.Cms.Web.BackOffice.Profiling; +using Umbraco.Cms.Web.BackOffice.PropertyEditors; +using Umbraco.Cms.Web.BackOffice.Routing; +using Umbraco.Cms.Web.BackOffice.Security; +using Umbraco.Cms.Web.BackOffice.Trees; +using Umbraco.Cms.Web.Common.Attributes; using Umbraco.Core; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Core.Media; -using Umbraco.Core.WebAssets; using Umbraco.Extensions; -using Umbraco.Web.BackOffice.HealthChecks; -using Umbraco.Web.BackOffice.Profiling; -using Umbraco.Web.BackOffice.PropertyEditors; -using Umbraco.Web.BackOffice.Routing; -using Umbraco.Web.BackOffice.Security; -using Umbraco.Web.BackOffice.Trees; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Features; -using Umbraco.Web.Models.ContentEditing; -using Umbraco.Web.Trees; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { /// /// Used to collect the server variables for use in the back office angular app diff --git a/src/Umbraco.Web.BackOffice/Controllers/CodeFileController.cs b/src/Umbraco.Web.BackOffice/Controllers/CodeFileController.cs index e2ec2fecd7..25f8f21c01 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/CodeFileController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/CodeFileController.cs @@ -6,26 +6,28 @@ using System.Net; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; -using Umbraco.Core.Strings.Css; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Core.Strings.Css; +using Umbraco.Cms.Web.BackOffice.Filters; +using Umbraco.Cms.Web.BackOffice.Trees; +using Umbraco.Cms.Web.Common.ActionsResults; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; using Umbraco.Extensions; -using Umbraco.Web.BackOffice.Filters; -using Umbraco.Web.Common.ActionsResults; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Authorization; -using Umbraco.Web.Models.ContentEditing; -using Stylesheet = Umbraco.Core.Models.Stylesheet; -using StylesheetRule = Umbraco.Web.Models.ContentEditing.StylesheetRule; +using Constants = Umbraco.Cms.Core.Constants; +using Stylesheet = Umbraco.Cms.Core.Models.Stylesheet; +using StylesheetRule = Umbraco.Cms.Core.Models.ContentEditing.StylesheetRule; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { // TODO: Put some exception filters in our webapi to return 404 instead of 500 when we throw ArgumentNullException // ref: https://www.exceptionnotfound.net/the-asp-net-web-api-exception-handling-pipeline-a-guided-tour/ @@ -79,7 +81,7 @@ namespace Umbraco.Web.BackOffice.Controllers var currentUser = _backOfficeSecurityAccessor.BackOfficeSecurity.CurrentUser; switch (type) { - case Core.Constants.Trees.PartialViews: + case Constants.Trees.PartialViews: var view = new PartialView(PartialViewType.PartialView, display.VirtualPath); view.Content = display.Content; var result = _fileService.CreatePartialView(view, display.Snippet, currentUser.Id); @@ -88,7 +90,7 @@ namespace Umbraco.Web.BackOffice.Controllers else return ValidationErrorResult.CreateNotificationValidationErrorResult(result.Exception.Message); - case Core.Constants.Trees.PartialViewMacros: + case Constants.Trees.PartialViewMacros: var viewMacro = new PartialView(PartialViewType.PartialViewMacro, display.VirtualPath); viewMacro.Content = display.Content; var resultMacro = _fileService.CreatePartialViewMacro(viewMacro, display.Snippet, currentUser.Id); @@ -97,7 +99,7 @@ namespace Umbraco.Web.BackOffice.Controllers else return ValidationErrorResult.CreateNotificationValidationErrorResult(resultMacro.Exception.Message); - case Core.Constants.Trees.Scripts: + case Constants.Trees.Scripts: var script = new Script(display.VirtualPath); _fileService.SaveScript(script, currentUser.Id); return Ok(); @@ -126,7 +128,7 @@ namespace Umbraco.Web.BackOffice.Controllers // if the parentId is root (-1) then we just need an empty string as we are // creating the path below and we don't want -1 in the path - if (parentId == Core.Constants.System.RootString) + if (parentId == Constants.System.RootString) { parentId = string.Empty; } @@ -142,19 +144,19 @@ namespace Umbraco.Web.BackOffice.Controllers var virtualPath = string.Empty; switch (type) { - case Core.Constants.Trees.PartialViews: - virtualPath = NormalizeVirtualPath(name, Core.Constants.SystemDirectories.PartialViews); + case Constants.Trees.PartialViews: + virtualPath = NormalizeVirtualPath(name, Constants.SystemDirectories.PartialViews); _fileService.CreatePartialViewFolder(virtualPath); break; - case Core.Constants.Trees.PartialViewMacros: - virtualPath = NormalizeVirtualPath(name, Core.Constants.SystemDirectories.MacroPartials); + case Constants.Trees.PartialViewMacros: + virtualPath = NormalizeVirtualPath(name, Constants.SystemDirectories.MacroPartials); _fileService.CreatePartialViewMacroFolder(virtualPath); break; - case Core.Constants.Trees.Scripts: + case Constants.Trees.Scripts: virtualPath = NormalizeVirtualPath(name, _globalSettings.UmbracoScriptsPath); _fileService.CreateScriptFolder(virtualPath); break; - case Core.Constants.Trees.Stylesheets: + case Constants.Trees.Stylesheets: virtualPath = NormalizeVirtualPath(name, _globalSettings.UmbracoCssPath); _fileService.CreateStyleSheetFolder(virtualPath); break; @@ -245,7 +247,7 @@ namespace Umbraco.Web.BackOffice.Controllers IEnumerable snippets; switch (type) { - case Core.Constants.Trees.PartialViews: + case Constants.Trees.PartialViews: snippets = _fileService.GetPartialViewSnippetNames( //ignore these - (this is taken from the logic in "PartialView.ascx.cs") "Gallery", @@ -253,7 +255,7 @@ namespace Umbraco.Web.BackOffice.Controllers "ListChildPagesOrderedByProperty", "ListImagesFromMediaFolder"); break; - case Core.Constants.Trees.PartialViewMacros: + case Constants.Trees.PartialViewMacros: snippets = _fileService.GetPartialViewSnippetNames(); break; default: @@ -279,23 +281,23 @@ namespace Umbraco.Web.BackOffice.Controllers switch (type) { - case Core.Constants.Trees.PartialViews: + case Constants.Trees.PartialViews: codeFileDisplay = _umbracoMapper.Map(new PartialView(PartialViewType.PartialView, string.Empty)); - codeFileDisplay.VirtualPath = Core.Constants.SystemDirectories.PartialViews; + codeFileDisplay.VirtualPath = Constants.SystemDirectories.PartialViews; if (snippetName.IsNullOrWhiteSpace() == false) codeFileDisplay.Content = _fileService.GetPartialViewSnippetContent(snippetName); break; - case Core.Constants.Trees.PartialViewMacros: + case Constants.Trees.PartialViewMacros: codeFileDisplay = _umbracoMapper.Map(new PartialView(PartialViewType.PartialViewMacro, string.Empty)); - codeFileDisplay.VirtualPath = Core.Constants.SystemDirectories.MacroPartials; + codeFileDisplay.VirtualPath = Constants.SystemDirectories.MacroPartials; if (snippetName.IsNullOrWhiteSpace() == false) codeFileDisplay.Content = _fileService.GetPartialViewMacroSnippetContent(snippetName); break; - case Core.Constants.Trees.Scripts: + case Constants.Trees.Scripts: codeFileDisplay = _umbracoMapper.Map(new Script(string.Empty)); codeFileDisplay.VirtualPath = _globalSettings.UmbracoScriptsPath; break; - case Core.Constants.Trees.Stylesheets: + case Constants.Trees.Stylesheets: codeFileDisplay = _umbracoMapper.Map(new Stylesheet(string.Empty)); codeFileDisplay.VirtualPath = _globalSettings.UmbracoCssPath; break; @@ -306,7 +308,7 @@ namespace Umbraco.Web.BackOffice.Controllers // Make sure that the root virtual path ends with '/' codeFileDisplay.VirtualPath = codeFileDisplay.VirtualPath.EnsureEndsWith("/"); - if (id != Core.Constants.System.RootString) + if (id != Constants.System.RootString) { codeFileDisplay.VirtualPath += id.TrimStart("/").EnsureEndsWith("/"); //if it's not new then it will have a path, otherwise it won't @@ -494,7 +496,7 @@ namespace Umbraco.Web.BackOffice.Controllers { // first remove all existing rules var existingRules = data.Content.IsNullOrWhiteSpace() - ? new Core.Strings.Css.StylesheetRule[0] + ? new Cms.Core.Strings.Css.StylesheetRule[0] : StylesheetHelper.ParseRules(data.Content).ToArray(); foreach (var rule in existingRules) { @@ -508,7 +510,7 @@ namespace Umbraco.Web.BackOffice.Controllers { foreach (var rule in data.Rules) { - data.Content = StylesheetHelper.AppendRule(data.Content, new Core.Strings.Css.StylesheetRule + data.Content = StylesheetHelper.AppendRule(data.Content, new Cms.Core.Strings.Css.StylesheetRule { Name = rule.Name, Selector = rule.Selector, @@ -549,7 +551,7 @@ namespace Umbraco.Web.BackOffice.Controllers } private T CreateOrUpdateFile(CodeFileDisplay display, string extension, IFileSystem fileSystem, - Func getFileByName, Action saveFile, Func createFile) where T : Core.Models.IFile + Func getFileByName, Action saveFile, Func createFile) where T : IFile { //must always end with the correct extension display.Name = EnsureCorrectFileExtension(display.Name, extension); @@ -589,13 +591,13 @@ namespace Umbraco.Web.BackOffice.Controllers private Attempt CreateOrUpdatePartialView(CodeFileDisplay display) { - return CreateOrUpdatePartialView(display, Core.Constants.SystemDirectories.PartialViews, + return CreateOrUpdatePartialView(display, Constants.SystemDirectories.PartialViews, _fileService.GetPartialView, _fileService.SavePartialView, _fileService.CreatePartialView); } private Attempt CreateOrUpdatePartialViewMacro(CodeFileDisplay display) { - return CreateOrUpdatePartialView(display, Core.Constants.SystemDirectories.MacroPartials, + return CreateOrUpdatePartialView(display, Constants.SystemDirectories.MacroPartials, _fileService.GetPartialViewMacro, _fileService.SavePartialViewMacro, _fileService.CreatePartialViewMacro); } diff --git a/src/Umbraco.Web.BackOffice/Controllers/ContentController.cs b/src/Umbraco.Web.BackOffice/Controllers/ContentController.cs index 0d2b925e31..ee7cf589e5 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/ContentController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/ContentController.cs @@ -9,36 +9,36 @@ using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http.Extensions; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Core.Dictionary; -using Umbraco.Core.Events; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.Models.ContentEditing; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Models.Validation; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Actions; +using Umbraco.Cms.Core.ContentApps; +using Umbraco.Cms.Core.Dictionary; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Models.Validation; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Web.BackOffice.ActionResults; +using Umbraco.Cms.Web.BackOffice.Authorization; +using Umbraco.Cms.Web.BackOffice.Extensions; +using Umbraco.Cms.Web.BackOffice.Filters; +using Umbraco.Cms.Web.BackOffice.ModelBinders; +using Umbraco.Cms.Web.Common.ActionsResults; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; using Umbraco.Core.Persistence; -using Umbraco.Core.Persistence.Querying; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Security; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; using Umbraco.Extensions; -using Umbraco.Web.Actions; -using Umbraco.Web.BackOffice.ActionResults; -using Umbraco.Web.BackOffice.Authorization; -using Umbraco.Web.BackOffice.Filters; -using Umbraco.Web.BackOffice.ModelBinders; -using Umbraco.Web.Common.ActionsResults; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Authorization; -using Umbraco.Web.ContentApps; -using Umbraco.Web.Models.ContentEditing; -using Umbraco.Web.Models.Mapping; -using Umbraco.Web.Routing; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { /// /// The API controller used for editing content @@ -271,7 +271,7 @@ namespace Umbraco.Web.BackOffice.Controllers public ActionResult GetRecycleBin() { var apps = new List(); - apps.Add(ListViewContentAppFactory.CreateContentApp(_dataTypeService, _propertyEditors, "recycleBin", "content", Core.Constants.DataTypes.DefaultMembersListView)); + apps.Add(ListViewContentAppFactory.CreateContentApp(_dataTypeService, _propertyEditors, "recycleBin", "content", Constants.DataTypes.DefaultMembersListView)); apps[0].Active = true; var display = new ContentItemDisplay { diff --git a/src/Umbraco.Web.BackOffice/Controllers/ContentControllerBase.cs b/src/Umbraco.Web.BackOffice/Controllers/ContentControllerBase.cs index 75d62f1863..b6c8a4a2b9 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/ContentControllerBase.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/ContentControllerBase.cs @@ -2,19 +2,19 @@ using System; using System.Linq; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Core.Dictionary; -using Umbraco.Core.Events; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Editors; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; -using Umbraco.Web.Common.Filters; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Dictionary; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Models.Editors; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Web.Common.Filters; +using Umbraco.Extensions; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { /// /// An abstract base controller used for media/content/members to try to reduce code replication. diff --git a/src/Umbraco.Web.BackOffice/Controllers/ContentTypeController.cs b/src/Umbraco.Web.BackOffice/Controllers/ContentTypeController.cs index e3437cbd11..e32cb46b57 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/ContentTypeController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/ContentTypeController.cs @@ -10,25 +10,26 @@ using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Core.Dictionary; -using Umbraco.Core.Hosting; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Dictionary; +using Umbraco.Cms.Core.Editors; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Web.Common.ActionsResults; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; using Umbraco.Core.Packaging; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; -using Umbraco.Web.Common.ActionsResults; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Authorization; -using Umbraco.Web.Editors; -using Umbraco.Web.Models; -using Umbraco.Web.Models.ContentEditing; -using ContentType = Umbraco.Core.Models.ContentType; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; +using ContentType = Umbraco.Cms.Core.Models.ContentType; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { /// /// An API controller used for dealing with content types diff --git a/src/Umbraco.Web.BackOffice/Controllers/ContentTypeControllerBase.cs b/src/Umbraco.Web.BackOffice/Controllers/ContentTypeControllerBase.cs index fe22523ebd..b26db7f8fc 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/ContentTypeControllerBase.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/ContentTypeControllerBase.cs @@ -1,26 +1,26 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Net; using System.Net.Mime; using System.Text; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.ModelBinding; -using Umbraco.Core; -using Umbraco.Core.Dictionary; -using Umbraco.Core.Exceptions; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.Services; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Dictionary; +using Umbraco.Cms.Core.Editors; +using Umbraco.Cms.Core.Exceptions; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Web.BackOffice.Extensions; +using Umbraco.Cms.Web.BackOffice.Filters; +using Umbraco.Cms.Web.Common.ActionsResults; +using Umbraco.Cms.Web.Common.Attributes; using Umbraco.Extensions; -using Umbraco.Web.BackOffice.Filters; -using Umbraco.Web.Common.ActionsResults; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Exceptions; -using Umbraco.Web.Editors; -using Umbraco.Web.Models.ContentEditing; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { /// /// Am abstract API controller providing functionality used for dealing with content and media types @@ -347,7 +347,7 @@ namespace Umbraco.Web.BackOffice.Controllers var responseEx = CreateInvalidCompositionResponseException(ex, contentTypeSave, ct, ctId); if (responseEx is null) throw ex; - + return new ValidationErrorResult(responseEx); } diff --git a/src/Umbraco.Web.BackOffice/Controllers/CurrentUserController.cs b/src/Umbraco.Web.BackOffice/Controllers/CurrentUserController.cs index 36f1a7455f..cce6adf112 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/CurrentUserController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/CurrentUserController.cs @@ -9,27 +9,28 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using Newtonsoft.Json; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; -using Umbraco.Core.Mapping; -using Umbraco.Core.Media; -using Umbraco.Core.Models; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Media; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Web.BackOffice.Extensions; +using Umbraco.Cms.Web.BackOffice.Filters; +using Umbraco.Cms.Web.BackOffice.Security; +using Umbraco.Cms.Web.Common.ActionsResults; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; using Umbraco.Extensions; -using Umbraco.Web.BackOffice.Filters; -using Umbraco.Web.BackOffice.Security; -using Umbraco.Web.Common.ActionsResults; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Authorization; -using Umbraco.Web.Models; -using Umbraco.Web.Models.ContentEditing; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { /// /// Controller to back the User.Resource service, used for fetching user data when already authenticated. user.service is currently used for handling authentication diff --git a/src/Umbraco.Web.BackOffice/Controllers/DashboardController.cs b/src/Umbraco.Web.BackOffice/Controllers/DashboardController.cs index a69cc6739b..42c37684a3 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/DashboardController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/DashboardController.cs @@ -1,30 +1,29 @@ -using System.Collections.Generic; -using Umbraco.Core; -using Umbraco.Core.Configuration; -using Umbraco.Web.Models.ContentEditing; -using Newtonsoft.Json.Linq; -using System.Threading.Tasks; -using System.Net.Http; -using System; +using System; +using System.Collections.Generic; using System.Linq; +using System.Net.Http; using System.Text; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; -using Umbraco.Core.Cache; -using Umbraco.Core.Persistence; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; -using Umbraco.Core.Dashboards; -using Umbraco.Core.Security; -using Umbraco.Web.Services; -using Umbraco.Web.BackOffice.Filters; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Controllers; -using Umbraco.Web.Common.Filters; -using Microsoft.AspNetCore.Authorization; -using Umbraco.Web.Common.Authorization; +using Newtonsoft.Json.Linq; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Dashboards; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Web.BackOffice.Filters; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; +using Umbraco.Cms.Web.Common.Controllers; +using Umbraco.Cms.Web.Common.Filters; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { //we need to fire up the controller like this to enable loading of remote css directly from this controller [PluginController(Constants.Web.Mvc.BackOfficeApiArea)] diff --git a/src/Umbraco.Web.BackOffice/Controllers/DataTypeController.cs b/src/Umbraco.Web.BackOffice/Controllers/DataTypeController.cs index eb47b7457e..3d532c4d94 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/DataTypeController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/DataTypeController.cs @@ -7,22 +7,24 @@ using System.Text; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Security; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Web.BackOffice.Extensions; +using Umbraco.Cms.Web.BackOffice.Filters; +using Umbraco.Cms.Web.Common.ActionsResults; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; using Umbraco.Extensions; -using Umbraco.Web.BackOffice.Filters; -using Umbraco.Web.Common.ActionsResults; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Authorization; -using Umbraco.Web.Models.ContentEditing; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { /// /// The API controller used for editing data types @@ -480,9 +482,8 @@ namespace Umbraco.Web.BackOffice.Controllers datatypes.Add(basic); } - var grouped = datatypes - .GroupBy(x => x.Group.IsNullOrWhiteSpace() ? "" : x.Group.ToLower()) - .ToDictionary(group => group.Key, group => group.OrderBy(d => d.Name).AsEnumerable()); + var grouped = Enumerable.ToDictionary(datatypes + .GroupBy(x => x.Group.IsNullOrWhiteSpace() ? "" : x.Group.ToLower()), group => group.Key, group => group.OrderBy(d => d.Name).AsEnumerable()); return grouped; } diff --git a/src/Umbraco.Web.BackOffice/Controllers/DictionaryController.cs b/src/Umbraco.Web.BackOffice/Controllers/DictionaryController.cs index bf5c487a92..2d49c97f2a 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/DictionaryController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/DictionaryController.cs @@ -6,19 +6,21 @@ using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.Security; -using Umbraco.Core.Services; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Web.BackOffice.Extensions; +using Umbraco.Cms.Web.Common.ActionsResults; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; using Umbraco.Extensions; -using Umbraco.Web.Common.ActionsResults; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Authorization; -using Umbraco.Web.Models.ContentEditing; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { /// /// diff --git a/src/Umbraco.Web.BackOffice/Controllers/ElementTypeController.cs b/src/Umbraco.Web.BackOffice/Controllers/ElementTypeController.cs index ce188511dc..f15010387d 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/ElementTypeController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/ElementTypeController.cs @@ -1,10 +1,14 @@ +// Copyright (c) Umbraco. +// See LICENSE for more details. + using System.Collections.Generic; using System.Linq; using Microsoft.AspNetCore.Mvc; -using Umbraco.Core.Services; -using Umbraco.Web.Common.Attributes; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Extensions; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { [PluginController("UmbracoApi")] public class ElementTypeController : UmbracoAuthorizedJsonController diff --git a/src/Umbraco.Web.BackOffice/Controllers/EntityController.cs b/src/Umbraco.Web.BackOffice/Controllers/EntityController.cs index bf15621fae..a561b36094 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/EntityController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/EntityController.cs @@ -5,31 +5,29 @@ using System.Reflection; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Infrastructure; -using Umbraco.Core; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Models.Membership; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Models.TemplateQuery; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Core.Trees; +using Umbraco.Cms.Core.Xml; +using Umbraco.Cms.Web.BackOffice.ModelBinders; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.ModelBinders; using Umbraco.Core.Persistence; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; -using Umbraco.Core.Trees; -using Umbraco.Core.Xml; using Umbraco.Extensions; -using Umbraco.Web.BackOffice.ModelBinders; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.ModelBinders; -using Umbraco.Web.Models; -using Umbraco.Web.Models.ContentEditing; -using Umbraco.Web.Models.Mapping; -using Umbraco.Web.Models.TemplateQuery; -using Umbraco.Web.Routing; +using Umbraco.Web; using Umbraco.Web.Search; -using Umbraco.Web.Services; -using Umbraco.Web.Trees; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { /// /// The API controller used for getting entity objects, basic name, icon, id representation of umbraco objects that are based on CMSNode diff --git a/src/Umbraco.Web.BackOffice/Controllers/ExamineManagementController.cs b/src/Umbraco.Web.BackOffice/Controllers/ExamineManagementController.cs index 3174c3ca4a..e863293ed4 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/ExamineManagementController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/ExamineManagementController.cs @@ -4,18 +4,17 @@ using System.Linq; using Examine; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.IO; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Web.Common.Attributes; using Umbraco.Examine; using Umbraco.Extensions; -using Umbraco.Web.Common.ActionsResults; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Models.ContentEditing; using Umbraco.Web.Search; -using SearchResult = Umbraco.Web.Models.ContentEditing.SearchResult; +using Constants = Umbraco.Cms.Core.Constants; +using SearchResult = Umbraco.Cms.Core.Models.ContentEditing.SearchResult; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { [PluginController(Constants.Web.Mvc.BackOfficeApiArea)] public class ExamineManagementController : UmbracoAuthorizedJsonController diff --git a/src/Umbraco.Web.BackOffice/Controllers/HelpController.cs b/src/Umbraco.Web.BackOffice/Controllers/HelpController.cs index 285915873c..3bc45703fa 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/HelpController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/HelpController.cs @@ -1,14 +1,13 @@ -using Newtonsoft.Json; -using System.Collections.Generic; +using System.Collections.Generic; using System.Net.Http; using System.Runtime.Serialization; using System.Threading.Tasks; using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Editors; +using Newtonsoft.Json; +using Umbraco.Cms.Web.Common.Attributes; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { [PluginController(Constants.Web.Mvc.BackOfficeApiArea)] public class HelpController : UmbracoAuthorizedJsonController diff --git a/src/Umbraco.Web.BackOffice/Controllers/IconController.cs b/src/Umbraco.Web.BackOffice/Controllers/IconController.cs index 2d481b627f..93024941c1 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/IconController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/IconController.cs @@ -1,9 +1,9 @@ using System.Collections.Generic; -using Umbraco.Core.Models; -using Umbraco.Core.Services; -using Umbraco.Web.Common.Attributes; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Web.Common.Attributes; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { [PluginController("UmbracoApi")] public class IconController : UmbracoAuthorizedApiController diff --git a/src/Umbraco.Web.BackOffice/Controllers/ImageUrlGeneratorController.cs b/src/Umbraco.Web.BackOffice/Controllers/ImageUrlGeneratorController.cs index ee8d113abd..1d72c80ad8 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/ImageUrlGeneratorController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/ImageUrlGeneratorController.cs @@ -1,16 +1,9 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Umbraco.Core; -using Umbraco.Core.Media; -using Umbraco.Core.Models; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Models; -using Umbraco.Web.Mvc; +using Umbraco.Cms.Core.Media; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Web.Common.Attributes; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { /// /// The API controller used for getting URLs for images with parameters diff --git a/src/Umbraco.Web.BackOffice/Controllers/ImagesController.cs b/src/Umbraco.Web.BackOffice/Controllers/ImagesController.cs index 1f626b1b0f..8b9ab5652c 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/ImagesController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/ImagesController.cs @@ -1,14 +1,14 @@ using System; using System.IO; using Microsoft.AspNetCore.Mvc; -using Umbraco.Core; -using Umbraco.Core.IO; -using Umbraco.Core.Media; -using Umbraco.Core.Models; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Models; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Media; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { /// /// A controller used to return images for media diff --git a/src/Umbraco.Web.BackOffice/Controllers/KeepAliveController.cs b/src/Umbraco.Web.BackOffice/Controllers/KeepAliveController.cs index ed8d02b7b2..650efec70f 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/KeepAliveController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/KeepAliveController.cs @@ -1,12 +1,11 @@ -using System; -using System.Runtime.Serialization; +using System.Runtime.Serialization; using Microsoft.AspNetCore.Mvc; -using Umbraco.Core; -using Umbraco.Web.BackOffice.Filters; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Controllers; +using Umbraco.Cms.Web.BackOffice.Filters; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Controllers; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { [PluginController(Constants.Web.Mvc.BackOfficeApiArea)] [IsBackOffice] diff --git a/src/Umbraco.Web.BackOffice/Controllers/LanguageController.cs b/src/Umbraco.Web.BackOffice/Controllers/LanguageController.cs index c011f67279..b1090c9b8e 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/LanguageController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/LanguageController.cs @@ -5,18 +5,19 @@ using System.Linq; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Web.BackOffice.Extensions; +using Umbraco.Cms.Web.Common.ActionsResults; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; using Umbraco.Extensions; -using Umbraco.Web.Common.ActionsResults; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Authorization; -using Language = Umbraco.Web.Models.ContentEditing.Language; +using Constants = Umbraco.Cms.Core.Constants; +using Language = Umbraco.Cms.Core.Models.ContentEditing.Language; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { /// /// Backoffice controller supporting the dashboard for language administration. @@ -152,7 +153,7 @@ namespace Umbraco.Web.BackOffice.Controllers } // create it (creating a new language cannot create a fallback cycle) - var newLang = new Core.Models.Language(_globalSettings, culture.Name) + var newLang = new Cms.Core.Models.Language(_globalSettings, culture.Name) { CultureName = culture.DisplayName, IsDefault = language.IsDefault, diff --git a/src/Umbraco.Web.BackOffice/Controllers/LogController.cs b/src/Umbraco.Web.BackOffice/Controllers/LogController.cs index acdd9721e4..b6ef9ef3cf 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/LogController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/LogController.cs @@ -1,23 +1,22 @@ -using Microsoft.AspNetCore.Authorization; -using System; +using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.IO; -using Umbraco.Core.Mapping; -using Umbraco.Core.Media; -using Umbraco.Core.Models; +using Microsoft.AspNetCore.Authorization; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Media; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; using Umbraco.Core.Persistence; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Web.BackOffice.Filters; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Authorization; -using Umbraco.Web.Models.ContentEditing; -using Umbraco.Web.Security; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { /// /// The API controller used for getting log history @@ -112,9 +111,8 @@ namespace Umbraco.Web.BackOffice.Controllers { var mappedItems = items.ToList(); var userIds = mappedItems.Select(x => x.UserId).ToArray(); - var userAvatars = _userService.GetUsersById(userIds) - .ToDictionary(x => x.Id, x => x.GetUserAvatarUrls(_appCaches.RuntimeCache, _mediaFileSystem, _imageUrlGenerator)); - var userNames = _userService.GetUsersById(userIds).ToDictionary(x => x.Id, x => x.Name); + var userAvatars = Enumerable.ToDictionary(_userService.GetUsersById(userIds), x => x.Id, x => x.GetUserAvatarUrls(_appCaches.RuntimeCache, _mediaFileSystem, _imageUrlGenerator)); + var userNames = Enumerable.ToDictionary(_userService.GetUsersById(userIds), x => x.Id, x => x.Name); foreach (var item in mappedItems) { if (userAvatars.TryGetValue(item.UserId, out var avatars)) diff --git a/src/Umbraco.Web.BackOffice/Controllers/LogViewerController.cs b/src/Umbraco.Web.BackOffice/Controllers/LogViewerController.cs index d77f76a4b2..d3fd41d663 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/LogViewerController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/LogViewerController.cs @@ -2,14 +2,15 @@ using System; using System.Collections.Generic; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; -using Umbraco.Core; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Web.Common.ActionsResults; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; using Umbraco.Core.Logging.Viewer; -using Umbraco.Core.Models; -using Umbraco.Web.Common.ActionsResults; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Authorization; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { /// /// Backoffice controller supporting the dashboard for viewing logs with some simple graphs & filtering diff --git a/src/Umbraco.Web.BackOffice/Controllers/MacroRenderingController.cs b/src/Umbraco.Web.BackOffice/Controllers/MacroRenderingController.cs index 739ef9942e..460bd4a8a8 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/MacroRenderingController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/MacroRenderingController.cs @@ -5,19 +5,20 @@ using System.Linq; using System.Text; using System.Threading; using Microsoft.AspNetCore.Mvc; -using Umbraco.Web.Models.ContentEditing; -using Umbraco.Core; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Templates; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; -using Umbraco.Web.Common.ActionsResults; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Routing; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Core.Templates; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { /// /// API controller to deal with Macro data diff --git a/src/Umbraco.Web.BackOffice/Controllers/MacrosController.cs b/src/Umbraco.Web.BackOffice/Controllers/MacrosController.cs index c8a943d92a..8a1df92c00 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/MacrosController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/MacrosController.cs @@ -6,20 +6,22 @@ using System.Net.Http; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Core.Hosting; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; -using Umbraco.Web.Common.ActionsResults; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Authorization; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Web.Common.ActionsResults; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { /// diff --git a/src/Umbraco.Web.BackOffice/Controllers/MediaController.cs b/src/Umbraco.Web.BackOffice/Controllers/MediaController.cs index b230664b28..17ea52fc97 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/MediaController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/MediaController.cs @@ -11,38 +11,38 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Infrastructure; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Dictionary; -using Umbraco.Core.Events; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; -using Umbraco.Core.Mapping; -using Umbraco.Core.Media; -using Umbraco.Core.Models; -using Umbraco.Core.Models.ContentEditing; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Models.Validation; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.ContentApps; +using Umbraco.Cms.Core.Dictionary; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Media; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Validation; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Web.BackOffice.ActionResults; +using Umbraco.Cms.Web.BackOffice.Authorization; +using Umbraco.Cms.Web.BackOffice.Extensions; +using Umbraco.Cms.Web.BackOffice.Filters; +using Umbraco.Cms.Web.BackOffice.ModelBinders; +using Umbraco.Cms.Web.Common.ActionsResults; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; using Umbraco.Core.Persistence; -using Umbraco.Core.Persistence.Querying; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Security; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; using Umbraco.Extensions; -using Umbraco.Web.BackOffice.ActionResults; -using Umbraco.Web.BackOffice.Authorization; -using Umbraco.Web.BackOffice.Filters; -using Umbraco.Web.BackOffice.ModelBinders; -using Umbraco.Web.Common.ActionsResults; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Authorization; -using Umbraco.Web.ContentApps; -using Umbraco.Web.Models.ContentEditing; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { /// /// This controller is decorated with the UmbracoApplicationAuthorizeAttribute which means that any user requesting @@ -147,7 +147,7 @@ namespace Umbraco.Web.BackOffice.Controllers public MediaItemDisplay GetRecycleBin() { var apps = new List(); - apps.Add(ListViewContentAppFactory.CreateContentApp(_dataTypeService, _propertyEditors, "recycleBin", "media", Core.Constants.DataTypes.DefaultMediaListView)); + apps.Add(ListViewContentAppFactory.CreateContentApp(_dataTypeService, _propertyEditors, "recycleBin", "media", Constants.DataTypes.DefaultMediaListView)); apps[0].Active = true; var display = new MediaItemDisplay { diff --git a/src/Umbraco.Web.BackOffice/Controllers/MediaTypeController.cs b/src/Umbraco.Web.BackOffice/Controllers/MediaTypeController.cs index 769bac0868..36591316d5 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/MediaTypeController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/MediaTypeController.cs @@ -3,20 +3,22 @@ using System.Collections.Generic; using System.Linq; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; -using Umbraco.Core; -using Umbraco.Core.Dictionary; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; -using Umbraco.Web.Common.ActionsResults; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Authorization; -using Umbraco.Web.Editors; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Dictionary; +using Umbraco.Cms.Core.Editors; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Web.Common.ActionsResults; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { /// /// An API controller used for dealing with content types diff --git a/src/Umbraco.Web.BackOffice/Controllers/MemberController.cs b/src/Umbraco.Web.BackOffice/Controllers/MemberController.cs index 26d84756bd..441ed1c5c3 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/MemberController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/MemberController.cs @@ -11,30 +11,31 @@ using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Dictionary; -using Umbraco.Core.Events; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.Models.ContentEditing; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Security; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.ContentApps; +using Umbraco.Cms.Core.Dictionary; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Web.BackOffice.Extensions; +using Umbraco.Cms.Web.BackOffice.Filters; +using Umbraco.Cms.Web.BackOffice.ModelBinders; +using Umbraco.Cms.Web.Common.ActionsResults; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; +using Umbraco.Cms.Web.Common.Filters; using Umbraco.Core.Services.Implement; -using Umbraco.Core.Strings; using Umbraco.Extensions; -using Umbraco.Web.BackOffice.Filters; -using Umbraco.Web.BackOffice.ModelBinders; -using Umbraco.Web.Common.ActionsResults; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Authorization; -using Umbraco.Web.Common.Filters; -using Umbraco.Web.ContentApps; -using Umbraco.Web.Models.ContentEditing; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { /// /// This controller is decorated with the UmbracoApplicationAuthorizeAttribute which means that any user requesting @@ -126,7 +127,7 @@ namespace Umbraco.Web.BackOffice.Controllers var name = foundType != null ? foundType.Name : listName; var apps = new List(); - apps.Add(ListViewContentAppFactory.CreateContentApp(_dataTypeService, _propertyEditors, listName, "member", Core.Constants.DataTypes.DefaultMembersListView)); + apps.Add(ListViewContentAppFactory.CreateContentApp(_dataTypeService, _propertyEditors, listName, "member", Constants.DataTypes.DefaultMembersListView)); apps[0].Active = true; var display = new MemberListDisplay diff --git a/src/Umbraco.Web.BackOffice/Controllers/MemberGroupController.cs b/src/Umbraco.Web.BackOffice/Controllers/MemberGroupController.cs index c7d64c550d..7146cd5820 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/MemberGroupController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/MemberGroupController.cs @@ -3,15 +3,17 @@ using System.Collections.Generic; using System.Linq; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; -using Umbraco.Core; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.Services; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Authorization; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { /// /// An API controller used for dealing with member groups diff --git a/src/Umbraco.Web.BackOffice/Controllers/MemberTypeController.cs b/src/Umbraco.Web.BackOffice/Controllers/MemberTypeController.cs index 728245e042..57cb18250c 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/MemberTypeController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/MemberTypeController.cs @@ -3,19 +3,21 @@ using System.Collections.Generic; using System.Linq; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; -using Umbraco.Core; -using Umbraco.Core.Dictionary; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Authorization; -using Umbraco.Web.Editors; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Dictionary; +using Umbraco.Cms.Core.Editors; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { /// /// An API controller used for dealing with member types diff --git a/src/Umbraco.Web.BackOffice/Controllers/PackageController.cs b/src/Umbraco.Web.BackOffice/Controllers/PackageController.cs index d900076e03..99dcf161ab 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/PackageController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/PackageController.cs @@ -7,19 +7,20 @@ using System.Text; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.Net.Http.Headers; -using Semver; -using Umbraco.Core; -using Umbraco.Core.Hosting; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Packaging; -using Umbraco.Core.Security; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Packaging; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Semver; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Web.BackOffice.Extensions; +using Umbraco.Cms.Web.Common.ActionsResults; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; using Umbraco.Extensions; -using Umbraco.Web.Common.ActionsResults; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Authorization; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { /// /// A controller used for managing packages in the back office diff --git a/src/Umbraco.Web.BackOffice/Controllers/PackageInstallController.cs b/src/Umbraco.Web.BackOffice/Controllers/PackageInstallController.cs index a8a191de1a..0da770c0c5 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/PackageInstallController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/PackageInstallController.cs @@ -3,26 +3,27 @@ using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; +using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; -using Semver; -using Umbraco.Core; -using Umbraco.Core.Configuration; -using Umbraco.Core.Hosting; -using Umbraco.Core.Models.Packaging; -using Umbraco.Core.Packaging; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Core.WebAssets; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Models; -using Umbraco.Web.Models.ContentEditing; -using Microsoft.AspNetCore.Authorization; -using Umbraco.Web.Common.Authorization; -using Umbraco.Web.Common.ActionsResults; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Models.Packaging; +using Umbraco.Cms.Core.Packaging; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Semver; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.WebAssets; +using Umbraco.Cms.Web.Common.ActionsResults; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { /// /// A controller used for installing packages and managing all of the data in the packages section in the back office @@ -168,7 +169,7 @@ namespace Umbraco.Web.BackOffice.Controllers { //we always save package files to /App_Data/packages/package-guid.umb for processing as a standard so lets copy. - var packagesFolder = _hostingEnvironment.MapPathContentRoot(Core.Constants.SystemDirectories.Packages); + var packagesFolder = _hostingEnvironment.MapPathContentRoot(Constants.SystemDirectories.Packages); Directory.CreateDirectory(packagesFolder); var packageFile = Path.Combine(packagesFolder, model.PackageGuid + ".umb"); diff --git a/src/Umbraco.Web.BackOffice/Controllers/ParameterSwapControllerActionSelectorAttribute.cs b/src/Umbraco.Web.BackOffice/Controllers/ParameterSwapControllerActionSelectorAttribute.cs index 6b6cf87a71..ac0a7fea84 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/ParameterSwapControllerActionSelectorAttribute.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/ParameterSwapControllerActionSelectorAttribute.cs @@ -6,10 +6,9 @@ using Microsoft.AspNetCore.Mvc.ActionConstraints; using Microsoft.AspNetCore.Mvc.Controllers; using Newtonsoft.Json; using Newtonsoft.Json.Linq; -using Umbraco.Core; using Umbraco.Extensions; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { [AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = true)] internal class ParameterSwapControllerActionSelectorAttribute : Attribute, IActionConstraint diff --git a/src/Umbraco.Web.BackOffice/Controllers/PreviewController.cs b/src/Umbraco.Web.BackOffice/Controllers/PreviewController.cs index c1aa0e83de..749b2a0bfb 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/PreviewController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/PreviewController.cs @@ -1,35 +1,29 @@ -using Microsoft.AspNetCore.Http; -using Microsoft.AspNetCore.Mvc; -using Microsoft.AspNetCore.Mvc.ViewEngines; -using Microsoft.Extensions.Options; using System; using System.IO; using System.Linq; using System.Threading.Tasks; -using Umbraco.Core; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Configuration.UmbracoSettings; -using Umbraco.Core.Hosting; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Core.WebAssets; -using Umbraco.Extensions; -using Umbraco.Web.BackOffice.Filters; -using Umbraco.Web.BackOffice.ActionResults; -using Umbraco.Web.Common.Filters; -using Umbraco.Web.Editors; -using Umbraco.Web.Features; -using Umbraco.Web.PublishedCache; -using Umbraco.Web.Security; -using Umbraco.Web.Services; -using Umbraco.Web.Trees; -using Umbraco.Web.WebAssets; -using Constants = Umbraco.Core.Constants; using Microsoft.AspNetCore.Authorization; -using Umbraco.Web.Common.Authorization; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.ViewEngines; +using Microsoft.Extensions.Options; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Editors; +using Umbraco.Cms.Core.Features; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Core.WebAssets; +using Umbraco.Cms.Web.BackOffice.ActionResults; +using Umbraco.Cms.Web.BackOffice.Filters; +using Umbraco.Cms.Web.Common.Authorization; +using Umbraco.Cms.Web.Common.Filters; +using Umbraco.Extensions; +using Umbraco.Web.WebAssets; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { [DisableBrowserCache] [Area(Constants.Web.Mvc.BackOfficeArea)] diff --git a/src/Umbraco.Web.BackOffice/Controllers/PublishedSnapshotCacheStatusController.cs b/src/Umbraco.Web.BackOffice/Controllers/PublishedSnapshotCacheStatusController.cs index 90db13227f..96fff53dbb 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/PublishedSnapshotCacheStatusController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/PublishedSnapshotCacheStatusController.cs @@ -1,13 +1,13 @@ using System; -using System.Reflection.Metadata; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; -using Umbraco.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Web.Common.Attributes; using Umbraco.Web.Cache; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.PublishedCache; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { [PluginController(Constants.Web.Mvc.BackOfficeApiArea)] public class PublishedSnapshotCacheStatusController : UmbracoAuthorizedApiController diff --git a/src/Umbraco.Web.BackOffice/Controllers/PublishedStatusController.cs b/src/Umbraco.Web.BackOffice/Controllers/PublishedStatusController.cs index 5c41d54cb8..8df529ddd3 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/PublishedStatusController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/PublishedStatusController.cs @@ -1,8 +1,8 @@ using System; using Microsoft.AspNetCore.Mvc; -using Umbraco.Web.PublishedCache; +using Umbraco.Cms.Core.PublishedCache; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { public class PublishedStatusController : UmbracoAuthorizedApiController { diff --git a/src/Umbraco.Web.BackOffice/Controllers/RedirectUrlManagementController.cs b/src/Umbraco.Web.BackOffice/Controllers/RedirectUrlManagementController.cs index 1db6d9228e..3131000703 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/RedirectUrlManagementController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/RedirectUrlManagementController.cs @@ -1,20 +1,25 @@ -using System; +// Copyright (c) Umbraco. +// See LICENSE for more details. + +using System; using System.Security; using System.Threading; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { [PluginController(Constants.Web.Mvc.BackOfficeApiArea)] public class RedirectUrlManagementController : UmbracoAuthorizedApiController diff --git a/src/Umbraco.Web.BackOffice/Controllers/RelationController.cs b/src/Umbraco.Web.BackOffice/Controllers/RelationController.cs index 5646c7f1aa..882b26e4e4 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/RelationController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/RelationController.cs @@ -1,23 +1,17 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Net; -using System.Net.Http; using Microsoft.AspNetCore.Authorization; -using Microsoft.AspNetCore.Mvc; -using Umbraco.Core; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.Services; -using Umbraco.Web.BackOffice.Filters; -using Umbraco.Web.Common.ActionsResults; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Authorization; -using Umbraco.Web.Editors; -using Umbraco.Web.Models.ContentEditing; -using Constants = Umbraco.Core.Constants; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { [PluginController(Constants.Web.Mvc.BackOfficeApiArea)] [Authorize(Policy = AuthorizationPolicies.SectionAccessContent)] diff --git a/src/Umbraco.Web.BackOffice/Controllers/RelationTypeController.cs b/src/Umbraco.Web.BackOffice/Controllers/RelationTypeController.cs index 8ef1a24951..e979d02794 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/RelationTypeController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/RelationTypeController.cs @@ -5,17 +5,19 @@ using System.Net.Http; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; -using Umbraco.Web.Common.ActionsResults; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Authorization; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Web.Common.ActionsResults; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { /// /// The API controller for editing relation types. diff --git a/src/Umbraco.Web.BackOffice/Controllers/SectionController.cs b/src/Umbraco.Web.BackOffice/Controllers/SectionController.cs index 5b1e5fb18a..00874c9a74 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/SectionController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/SectionController.cs @@ -1,21 +1,23 @@ +// Copyright (c) Umbraco. +// See LICENSE for more details. + using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Controllers; using Microsoft.AspNetCore.Mvc.Infrastructure; -using Umbraco.Core; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Web.BackOffice.Trees; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Web.BackOffice.Trees; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Extensions; using Umbraco.Web.Models.Trees; -using Umbraco.Web.Services; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { /// /// The API controller used for using the list of sections diff --git a/src/Umbraco.Web.BackOffice/Controllers/StylesheetController.cs b/src/Umbraco.Web.BackOffice/Controllers/StylesheetController.cs index 4dbfda1148..0eb18cf7cd 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/StylesheetController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/StylesheetController.cs @@ -1,12 +1,12 @@ using System.Collections.Generic; using System.Linq; -using Umbraco.Core; -using Umbraco.Core.Services; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Editors; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { /// /// The API controller used for retrieving available stylesheets diff --git a/src/Umbraco.Web.BackOffice/Controllers/TemplateController.cs b/src/Umbraco.Web.BackOffice/Controllers/TemplateController.cs index 5b85c381c4..91395431e9 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/TemplateController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/TemplateController.cs @@ -3,17 +3,18 @@ using System.Collections.Generic; using System.Linq; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; -using Umbraco.Core; -using Umbraco.Core.IO; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Authorization; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { [PluginController(Constants.Web.Mvc.BackOfficeApiArea)] [Authorize(Policy = AuthorizationPolicies.TreeAccessTemplates)] diff --git a/src/Umbraco.Web.BackOffice/Controllers/TemplateQueryController.cs b/src/Umbraco.Web.BackOffice/Controllers/TemplateQueryController.cs index b1dd2e94e5..efbbb2cd9d 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/TemplateQueryController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/TemplateQueryController.cs @@ -3,14 +3,16 @@ using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; -using Umbraco.Core; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Services; -using Umbraco.Web.BackOffice.Filters; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Models.TemplateQuery; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.TemplateQuery; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Web.BackOffice.Filters; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Extensions; +using Umbraco.Web; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { /// /// The API controller used for building content queries within the template diff --git a/src/Umbraco.Web.BackOffice/Controllers/TinyMceController.cs b/src/Umbraco.Web.BackOffice/Controllers/TinyMceController.cs index edaaa4f1e3..c1d2cecc2d 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/TinyMceController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/TinyMceController.cs @@ -8,23 +8,21 @@ using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; -using Umbraco.Core.Media; -using Umbraco.Core.Strings; -using Umbraco.Web.BackOffice.Filters; -using Umbraco.Web.Common.ActionsResults; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Authorization; -using Constants = Umbraco.Core.Constants; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Media; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Web.Common.ActionsResults; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { [PluginController(Constants.Web.Mvc.BackOfficeApiArea)] - [Authorize(Policy = AuthorizationPolicies.SectionAccessForTinyMce)] + [Authorize(Policy = AuthorizationPolicies.SectionAccessForTinyMce)] public class TinyMceController : UmbracoAuthorizedApiController { private readonly IHostingEnvironment _hostingEnvironment; diff --git a/src/Umbraco.Web.BackOffice/Controllers/TourController.cs b/src/Umbraco.Web.BackOffice/Controllers/TourController.cs index 340025972f..b77ff2a2cc 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/TourController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/TourController.cs @@ -4,17 +4,16 @@ using System.IO; using System.Linq; using Microsoft.Extensions.Options; using Newtonsoft.Json; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Models; -using Umbraco.Web.Security; -using Umbraco.Web.Tour; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Tour; +using Umbraco.Cms.Web.Common.Attributes; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { [PluginController(Constants.Web.Mvc.BackOfficeApiArea)] public class TourController : UmbracoAuthorizedJsonController @@ -58,7 +57,7 @@ namespace Umbraco.Web.BackOffice.Controllers var nonPluginFilters = _filters.Where(x => x.PluginName == null).ToList(); //add core tour files - var coreToursPath = Path.Combine(_hostingEnvironment.MapPathContentRoot(Core.Constants.SystemDirectories.Config), "BackOfficeTours"); + var coreToursPath = Path.Combine(_hostingEnvironment.MapPathContentRoot(Constants.SystemDirectories.Config), "BackOfficeTours"); if (Directory.Exists(coreToursPath)) { foreach (var tourFile in Directory.EnumerateFiles(coreToursPath, "*.json")) @@ -68,7 +67,7 @@ namespace Umbraco.Web.BackOffice.Controllers } //collect all tour files in packages - var appPlugins = _hostingEnvironment.MapPathContentRoot(Core.Constants.SystemDirectories.AppPlugins); + var appPlugins = _hostingEnvironment.MapPathContentRoot(Constants.SystemDirectories.AppPlugins); if (Directory.Exists(appPlugins)) { foreach (var plugin in Directory.EnumerateDirectories(appPlugins)) diff --git a/src/Umbraco.Web.BackOffice/Controllers/UmbracoAuthorizedApiController.cs b/src/Umbraco.Web.BackOffice/Controllers/UmbracoAuthorizedApiController.cs index 9c415fe180..3891550f1e 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/UmbracoAuthorizedApiController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/UmbracoAuthorizedApiController.cs @@ -1,12 +1,12 @@ using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; -using Umbraco.Web.BackOffice.Filters; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Authorization; -using Umbraco.Web.Common.Controllers; -using Umbraco.Web.Common.Filters; +using Umbraco.Cms.Web.BackOffice.Filters; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; +using Umbraco.Cms.Web.Common.Controllers; +using Umbraco.Cms.Web.Common.Filters; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { /// /// Provides a base class for authorized auto-routed Umbraco API controllers. diff --git a/src/Umbraco.Web.BackOffice/Controllers/UmbracoAuthorizedJsonController.cs b/src/Umbraco.Web.BackOffice/Controllers/UmbracoAuthorizedJsonController.cs index 5eaab10417..eb082ae6e6 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/UmbracoAuthorizedJsonController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/UmbracoAuthorizedJsonController.cs @@ -1,7 +1,7 @@ -using Umbraco.Web.BackOffice.Filters; -using Umbraco.Web.Common.Filters; +using Umbraco.Cms.Web.BackOffice.Filters; +using Umbraco.Cms.Web.Common.Filters; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { /// /// An abstract API controller that only supports JSON and all requests must contain the correct csrf header diff --git a/src/Umbraco.Web.BackOffice/Controllers/UpdateCheckController.cs b/src/Umbraco.Web.BackOffice/Controllers/UpdateCheckController.cs index ea6ac8a45b..2f1f887ba6 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/UpdateCheckController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/UpdateCheckController.cs @@ -4,18 +4,18 @@ using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; using Microsoft.Extensions.Options; -using Semver; -using Umbraco.Core; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Models; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Models; -using Umbraco.Web.Security; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Semver; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { [PluginController(Constants.Web.Mvc.BackOfficeApiArea)] public class UpdateCheckController : UmbracoAuthorizedJsonController diff --git a/src/Umbraco.Web.BackOffice/Controllers/UserGroupEditorAuthorizationHelper.cs b/src/Umbraco.Web.BackOffice/Controllers/UserGroupEditorAuthorizationHelper.cs index b0edba3085..4b759cfaa2 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/UserGroupEditorAuthorizationHelper.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/UserGroupEditorAuthorizationHelper.cs @@ -1,11 +1,13 @@ using System.Collections.Generic; using System.Linq; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Services; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { internal class UserGroupEditorAuthorizationHelper { diff --git a/src/Umbraco.Web.BackOffice/Controllers/UserGroupsController.cs b/src/Umbraco.Web.BackOffice/Controllers/UserGroupsController.cs index ff5ade53c1..e7f90bf521 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/UserGroupsController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/UserGroupsController.cs @@ -1,24 +1,22 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Net; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; -using Umbraco.Web.BackOffice.ActionResults; -using Umbraco.Web.BackOffice.Filters; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Authorization; -using Umbraco.Web.Common.Exceptions; -using Umbraco.Web.Models.ContentEditing; -using Constants = Umbraco.Core.Constants; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Web.BackOffice.ActionResults; +using Umbraco.Cms.Web.BackOffice.Filters; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { [PluginController(Constants.Web.Mvc.BackOfficeApiArea)] [Authorize(Policy = AuthorizationPolicies.SectionAccessUsers)] diff --git a/src/Umbraco.Web.BackOffice/Controllers/UsersController.cs b/src/Umbraco.Web.BackOffice/Controllers/UsersController.cs index 5e3d6b6791..817733fe1a 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/UsersController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/UsersController.cs @@ -14,33 +14,36 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Routing; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Editors; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Mail; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Media; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Web.BackOffice.ActionResults; +using Umbraco.Cms.Web.BackOffice.Extensions; +using Umbraco.Cms.Web.BackOffice.Filters; +using Umbraco.Cms.Web.BackOffice.ModelBinders; +using Umbraco.Cms.Web.BackOffice.Security; +using Umbraco.Cms.Web.Common.ActionsResults; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; -using Umbraco.Core.Mail; -using Umbraco.Core.Mapping; -using Umbraco.Core.Media; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Membership; using Umbraco.Core.Persistence; using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; using Umbraco.Extensions; -using Umbraco.Web.BackOffice.ActionResults; -using Umbraco.Web.BackOffice.Filters; -using Umbraco.Web.BackOffice.ModelBinders; -using Umbraco.Web.BackOffice.Security; -using Umbraco.Web.Common.ActionsResults; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Authorization; -using Umbraco.Web.Editors; -using Umbraco.Web.Models; -using Umbraco.Web.Models.ContentEditing; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Controllers +namespace Umbraco.Cms.Web.BackOffice.Controllers { [PluginController(Constants.Web.Mvc.BackOfficeApiArea)] [Authorize(Policy = AuthorizationPolicies.SectionAccessUsers)] diff --git a/src/Umbraco.Web.BackOffice/DependencyInjection/ServiceCollectionExtensions.cs b/src/Umbraco.Web.BackOffice/DependencyInjection/ServiceCollectionExtensions.cs index 518152a543..574af724c7 100644 --- a/src/Umbraco.Web.BackOffice/DependencyInjection/ServiceCollectionExtensions.cs +++ b/src/Umbraco.Web.BackOffice/DependencyInjection/ServiceCollectionExtensions.cs @@ -2,19 +2,19 @@ using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Identity; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; -using Umbraco.Core; +using Umbraco.Cms.Core.Actions; +using Umbraco.Cms.Core.Net; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Web.BackOffice.Authorization; +using Umbraco.Cms.Web.BackOffice.Security; +using Umbraco.Cms.Web.Common.AspNetCore; +using Umbraco.Cms.Web.Common.Authorization; +using Umbraco.Cms.Web.Common.Security; using Umbraco.Core.Security; -using Umbraco.Core.Serialization; -using Umbraco.Extensions; -using Umbraco.Net; -using Umbraco.Web.Actions; -using Umbraco.Web.BackOffice.Authorization; -using Umbraco.Web.BackOffice.Security; -using Umbraco.Web.Common.AspNetCore; -using Umbraco.Web.Common.Authorization; -using Umbraco.Web.Common.Security; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.DependencyInjection +namespace Umbraco.Extensions { public static class ServiceCollectionExtensions { diff --git a/src/Umbraco.Web.BackOffice/DependencyInjection/UmbracoBuilderExtensions.cs b/src/Umbraco.Web.BackOffice/DependencyInjection/UmbracoBuilderExtensions.cs index 6587f3c6e4..4baf6a29f5 100644 --- a/src/Umbraco.Web.BackOffice/DependencyInjection/UmbracoBuilderExtensions.cs +++ b/src/Umbraco.Web.BackOffice/DependencyInjection/UmbracoBuilderExtensions.cs @@ -3,25 +3,23 @@ using System.Linq; using Microsoft.AspNetCore.Authorization; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; -using Umbraco.Core.DependencyInjection; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; -using Umbraco.Core.Services; -using Umbraco.Extensions; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.DependencyInjection; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Web.BackOffice.Controllers; +using Umbraco.Cms.Web.BackOffice.Filters; +using Umbraco.Cms.Web.BackOffice.Middleware; +using Umbraco.Cms.Web.BackOffice.Routing; +using Umbraco.Cms.Web.BackOffice.Security; +using Umbraco.Cms.Web.BackOffice.Services; +using Umbraco.Cms.Web.BackOffice.Trees; +using Umbraco.Cms.Web.Common.Authorization; using Umbraco.Infrastructure.DependencyInjection; -using Umbraco.Web.BackOffice.Authorization; -using Umbraco.Web.BackOffice.Controllers; -using Umbraco.Web.BackOffice.Filters; -using Umbraco.Web.BackOffice.Middleware; -using Umbraco.Web.BackOffice.Routing; -using Umbraco.Web.BackOffice.Security; -using Umbraco.Web.BackOffice.Services; -using Umbraco.Web.BackOffice.Trees; -using Umbraco.Web.Common.Authorization; -using Umbraco.Web.Common.DependencyInjection; using Umbraco.Web.WebAssets; -namespace Umbraco.Web.BackOffice.DependencyInjection +namespace Umbraco.Extensions { /// /// Extension methods for for the Umbraco back office @@ -60,18 +58,18 @@ namespace Umbraco.Web.BackOffice.DependencyInjection .AddAuthentication() // Add our custom schemes which are cookie handlers - .AddCookie(Core.Constants.Security.BackOfficeAuthenticationType) - .AddCookie(Core.Constants.Security.BackOfficeExternalAuthenticationType, o => + .AddCookie(Constants.Security.BackOfficeAuthenticationType) + .AddCookie(Constants.Security.BackOfficeExternalAuthenticationType, o => { - o.Cookie.Name = Core.Constants.Security.BackOfficeExternalAuthenticationType; + o.Cookie.Name = Constants.Security.BackOfficeExternalAuthenticationType; o.ExpireTimeSpan = TimeSpan.FromMinutes(5); }) // Although we don't natively support this, we add it anyways so that if end-users implement the required logic // they don't have to worry about manually adding this scheme or modifying the sign in manager - .AddCookie(Core.Constants.Security.BackOfficeTwoFactorAuthenticationType, o => + .AddCookie(Constants.Security.BackOfficeTwoFactorAuthenticationType, o => { - o.Cookie.Name = Core.Constants.Security.BackOfficeTwoFactorAuthenticationType; + o.Cookie.Name = Constants.Security.BackOfficeTwoFactorAuthenticationType; o.ExpireTimeSpan = TimeSpan.FromMinutes(5); }); @@ -97,7 +95,7 @@ namespace Umbraco.Web.BackOffice.DependencyInjection /// /// Adds Umbraco back office authorization policies /// - public static IUmbracoBuilder AddBackOfficeAuthorizationPolicies(this IUmbracoBuilder builder, string backOfficeAuthenticationScheme = Core.Constants.Security.BackOfficeAuthenticationType) + public static IUmbracoBuilder AddBackOfficeAuthorizationPolicies(this IUmbracoBuilder builder, string backOfficeAuthenticationScheme = Constants.Security.BackOfficeAuthenticationType) { builder.Services.AddBackOfficeAuthorizationPolicies(backOfficeAuthenticationScheme); diff --git a/src/Umbraco.Web.BackOffice/Extensions/BackOfficeApplicationBuilderExtensions.cs b/src/Umbraco.Web.BackOffice/Extensions/BackOfficeApplicationBuilderExtensions.cs index 71cb14eb78..d63deda88a 100644 --- a/src/Umbraco.Web.BackOffice/Extensions/BackOfficeApplicationBuilderExtensions.cs +++ b/src/Umbraco.Web.BackOffice/Extensions/BackOfficeApplicationBuilderExtensions.cs @@ -1,9 +1,9 @@ using System; using Microsoft.AspNetCore.Builder; using Microsoft.Extensions.DependencyInjection; -using Umbraco.Web.BackOffice.Middleware; -using Umbraco.Web.BackOffice.Routing; -using Umbraco.Web.Common.Security; +using Umbraco.Cms.Web.BackOffice.Middleware; +using Umbraco.Cms.Web.BackOffice.Routing; +using Umbraco.Cms.Web.BackOffice.Security; namespace Umbraco.Extensions { diff --git a/src/Umbraco.Web.BackOffice/Extensions/ControllerContextExtensions.cs b/src/Umbraco.Web.BackOffice/Extensions/ControllerContextExtensions.cs index ca17d97fc7..98efd7a92d 100644 --- a/src/Umbraco.Web.BackOffice/Extensions/ControllerContextExtensions.cs +++ b/src/Umbraco.Web.BackOffice/Extensions/ControllerContextExtensions.cs @@ -1,14 +1,11 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Net.Http; -using System.Threading; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; -using Microsoft.Extensions.DependencyInjection; -namespace Umbraco.Extensions +namespace Umbraco.Cms.Web.BackOffice.Extensions { internal static class ControllerContextExtensions { diff --git a/src/Umbraco.Web.BackOffice/Extensions/HtmlHelperBackOfficeExtensions.cs b/src/Umbraco.Web.BackOffice/Extensions/HtmlHelperBackOfficeExtensions.cs index 555ed5bb90..934442ea46 100644 --- a/src/Umbraco.Web.BackOffice/Extensions/HtmlHelperBackOfficeExtensions.cs +++ b/src/Umbraco.Web.BackOffice/Extensions/HtmlHelperBackOfficeExtensions.cs @@ -1,25 +1,16 @@ -using Microsoft.AspNetCore.Authentication; -using Microsoft.AspNetCore.Html; -using Microsoft.AspNetCore.Mvc.Rendering; -using Microsoft.AspNetCore.Routing; -using Newtonsoft.Json; -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; -using Umbraco.Core; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.UmbracoSettings; -using Umbraco.Core.Hosting; -using Umbraco.Core.WebAssets; -using Umbraco.Web.BackOffice.Controllers; -using Umbraco.Web.Features; -using Umbraco.Web.Models; -using Umbraco.Web.WebApi; +using Microsoft.AspNetCore.Html; +using Microsoft.AspNetCore.Mvc.Rendering; +using Newtonsoft.Json; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.WebAssets; +using Umbraco.Cms.Web.BackOffice.Controllers; +using Umbraco.Cms.Web.BackOffice.Security; +using Umbraco.Extensions; using Umbraco.Web.WebAssets; -using Umbraco.Core; -using Umbraco.Core.Security; -using Umbraco.Web.BackOffice.Security; namespace Umbraco.Extensions { diff --git a/src/Umbraco.Web.BackOffice/Extensions/HttpContextExtensions.cs b/src/Umbraco.Web.BackOffice/Extensions/HttpContextExtensions.cs index dd41de67bd..bf9e8f48e0 100644 --- a/src/Umbraco.Web.BackOffice/Extensions/HttpContextExtensions.cs +++ b/src/Umbraco.Web.BackOffice/Extensions/HttpContextExtensions.cs @@ -1,5 +1,5 @@ using Microsoft.AspNetCore.Http; -using Umbraco.Core.Security; +using Umbraco.Cms.Core.Security; namespace Umbraco.Extensions { diff --git a/src/Umbraco.Web.BackOffice/Extensions/ModelStateExtensions.cs b/src/Umbraco.Web.BackOffice/Extensions/ModelStateExtensions.cs index c798a00dd1..2def3c85e9 100644 --- a/src/Umbraco.Web.BackOffice/Extensions/ModelStateExtensions.cs +++ b/src/Umbraco.Web.BackOffice/Extensions/ModelStateExtensions.cs @@ -3,14 +3,13 @@ using System.ComponentModel.DataAnnotations; using System.Linq; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.ModelBinding; -using Umbraco.Core; -using Umbraco.Web.BackOffice.PropertyEditors.Validation; +using Umbraco.Cms.Web.BackOffice.PropertyEditors.Validation; +using Umbraco.Extensions; -namespace Umbraco.Extensions +namespace Umbraco.Cms.Web.BackOffice.Extensions { internal static class ModelStateExtensions { - /// /// Checks if there are any model errors on any fields containing the prefix /// diff --git a/src/Umbraco.Web.BackOffice/Extensions/WebMappingProfiles.cs b/src/Umbraco.Web.BackOffice/Extensions/WebMappingProfiles.cs index f66c175f29..efc066ea32 100644 --- a/src/Umbraco.Web.BackOffice/Extensions/WebMappingProfiles.cs +++ b/src/Umbraco.Web.BackOffice/Extensions/WebMappingProfiles.cs @@ -1,7 +1,7 @@ using Microsoft.Extensions.DependencyInjection; -using Umbraco.Core.DependencyInjection; -using Umbraco.Core.Mapping; -using Umbraco.Web.BackOffice.Mapping; +using Umbraco.Cms.Core.DependencyInjection; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Web.BackOffice.Mapping; namespace Umbraco.Extensions { diff --git a/src/Umbraco.Web.BackOffice/Filters/AppendCurrentEventMessagesAttribute.cs b/src/Umbraco.Web.BackOffice/Filters/AppendCurrentEventMessagesAttribute.cs index 8d8a3ffa9a..152f318c06 100644 --- a/src/Umbraco.Web.BackOffice/Filters/AppendCurrentEventMessagesAttribute.cs +++ b/src/Umbraco.Web.BackOffice/Filters/AppendCurrentEventMessagesAttribute.cs @@ -2,10 +2,11 @@ using System.Net.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; -using Umbraco.Core.Events; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Web; -namespace Umbraco.Web.BackOffice.Filters +namespace Umbraco.Cms.Web.BackOffice.Filters { /// diff --git a/src/Umbraco.Web.BackOffice/Filters/AppendUserModifiedHeaderAttribute.cs b/src/Umbraco.Web.BackOffice/Filters/AppendUserModifiedHeaderAttribute.cs index c33d416cc7..842e455199 100644 --- a/src/Umbraco.Web.BackOffice/Filters/AppendUserModifiedHeaderAttribute.cs +++ b/src/Umbraco.Web.BackOffice/Filters/AppendUserModifiedHeaderAttribute.cs @@ -1,10 +1,10 @@ using System; using Microsoft.AspNetCore.Mvc.Filters; using Microsoft.Extensions.DependencyInjection; -using Umbraco.Core; -using Umbraco.Core.Security; +using Umbraco.Cms.Core.Security; +using Umbraco.Extensions; -namespace Umbraco.Web.BackOffice.Filters +namespace Umbraco.Cms.Web.BackOffice.Filters { /// /// Appends a custom response header to notify the UI that the current user data has been modified diff --git a/src/Umbraco.Web.BackOffice/Filters/CheckIfUserTicketDataIsStaleAttribute.cs b/src/Umbraco.Web.BackOffice/Filters/CheckIfUserTicketDataIsStaleAttribute.cs index 97765df837..1aa71f149a 100644 --- a/src/Umbraco.Web.BackOffice/Filters/CheckIfUserTicketDataIsStaleAttribute.cs +++ b/src/Umbraco.Web.BackOffice/Filters/CheckIfUserTicketDataIsStaleAttribute.cs @@ -7,20 +7,20 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Membership; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Web.BackOffice.Security; using Umbraco.Core.Scoping; using Umbraco.Core.Security; -using Umbraco.Core.Services; using Umbraco.Extensions; -using Umbraco.Web.BackOffice.Security; -using Umbraco.Web.Common.Security; -namespace Umbraco.Web.BackOffice.Filters +namespace Umbraco.Cms.Web.BackOffice.Filters { /// /// diff --git a/src/Umbraco.Web.BackOffice/Filters/ContentModelValidator.cs b/src/Umbraco.Web.BackOffice/Filters/ContentModelValidator.cs index 6d757dc983..a1705bcedf 100644 --- a/src/Umbraco.Web.BackOffice/Filters/ContentModelValidator.cs +++ b/src/Umbraco.Web.BackOffice/Filters/ContentModelValidator.cs @@ -6,14 +6,14 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; using Microsoft.AspNetCore.Mvc.ModelBinding; using Microsoft.Extensions.Logging; -using Umbraco.Core.Models; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Web.BackOffice.Extensions; using Umbraco.Extensions; -using Umbraco.Web.Models.ContentEditing; -using Umbraco.Core.Security; -namespace Umbraco.Web.BackOffice.Filters +namespace Umbraco.Cms.Web.BackOffice.Filters { /// /// A base class purely used for logging without generics @@ -44,7 +44,7 @@ namespace Umbraco.Web.BackOffice.Filters where TPersisted : class, IContentBase where TModelSave: IContentSave where TModelWithProperties : IContentProperties - { + { protected ContentModelValidator( ILogger logger, IPropertyValidationService propertyValidationService) diff --git a/src/Umbraco.Web.BackOffice/Filters/ContentSaveModelValidator.cs b/src/Umbraco.Web.BackOffice/Filters/ContentSaveModelValidator.cs index b83462fa10..28dfcfdb97 100644 --- a/src/Umbraco.Web.BackOffice/Filters/ContentSaveModelValidator.cs +++ b/src/Umbraco.Web.BackOffice/Filters/ContentSaveModelValidator.cs @@ -1,10 +1,9 @@ using Microsoft.Extensions.Logging; -using Umbraco.Core.Models; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Services; -namespace Umbraco.Web.BackOffice.Filters +namespace Umbraco.Cms.Web.BackOffice.Filters { /// /// Validator for diff --git a/src/Umbraco.Web.BackOffice/Filters/ContentSaveValidationAttribute.cs b/src/Umbraco.Web.BackOffice/Filters/ContentSaveValidationAttribute.cs index 686023a478..beadb10fc7 100644 --- a/src/Umbraco.Web.BackOffice/Filters/ContentSaveValidationAttribute.cs +++ b/src/Umbraco.Web.BackOffice/Filters/ContentSaveValidationAttribute.cs @@ -5,19 +5,16 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; -using Microsoft.AspNetCore.Mvc.Infrastructure; using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Web.Actions; -using Umbraco.Web.BackOffice.Authorization; -using Umbraco.Web.Common.Authorization; -using Umbraco.Web.Models.ContentEditing; -using Umbraco.Web.Security; +using Umbraco.Cms.Core.Actions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Web.BackOffice.Authorization; +using Umbraco.Cms.Web.Common.Authorization; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Filters +namespace Umbraco.Cms.Web.BackOffice.Filters { /// /// Validates the incoming model along with if the user is allowed to perform the @@ -59,9 +56,9 @@ namespace Umbraco.Web.BackOffice.Filters if (context.Result == null) { //need to pass the execution to next if a result was not set - await next(); + await next(); } - + // on executed... } @@ -238,7 +235,7 @@ namespace Umbraco.Web.BackOffice.Filters return true; } - + } } } diff --git a/src/Umbraco.Web.BackOffice/Filters/DataTypeValidateAttribute.cs b/src/Umbraco.Web.BackOffice/Filters/DataTypeValidateAttribute.cs index 26c3b419ba..24c15e8a7f 100644 --- a/src/Umbraco.Web.BackOffice/Filters/DataTypeValidateAttribute.cs +++ b/src/Umbraco.Web.BackOffice/Filters/DataTypeValidateAttribute.cs @@ -3,16 +3,16 @@ using System.Linq; using System.Net; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; -using Umbraco.Core; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Web.BackOffice.Extensions; +using Umbraco.Cms.Web.Common.ActionsResults; using Umbraco.Extensions; -using Umbraco.Web.Common.ActionsResults; -using Umbraco.Web.Models.ContentEditing; -namespace Umbraco.Web.BackOffice.Filters +namespace Umbraco.Cms.Web.BackOffice.Filters { /// /// An attribute/filter that wires up the persisted entity of the DataTypeSave model and validates the whole request diff --git a/src/Umbraco.Web.BackOffice/Filters/EditorModelEventManager.cs b/src/Umbraco.Web.BackOffice/Filters/EditorModelEventManager.cs index d1856ee7d9..a76b1a4091 100644 --- a/src/Umbraco.Web.BackOffice/Filters/EditorModelEventManager.cs +++ b/src/Umbraco.Web.BackOffice/Filters/EditorModelEventManager.cs @@ -1,11 +1,11 @@ using System.Collections.Generic; using Microsoft.AspNetCore.Mvc.Filters; -using Umbraco.Core.Dashboards; -using Umbraco.Core.Events; -using Umbraco.Web.Editors; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Dashboards; +using Umbraco.Cms.Core.Editors; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models.ContentEditing; -namespace Umbraco.Web.BackOffice.Filters +namespace Umbraco.Cms.Web.BackOffice.Filters { /// /// Used to emit events for editor models in the back office diff --git a/src/Umbraco.Web.BackOffice/Filters/FileUploadCleanupFilterAttribute.cs b/src/Umbraco.Web.BackOffice/Filters/FileUploadCleanupFilterAttribute.cs index 042c20520d..49085de977 100644 --- a/src/Umbraco.Web.BackOffice/Filters/FileUploadCleanupFilterAttribute.cs +++ b/src/Umbraco.Web.BackOffice/Filters/FileUploadCleanupFilterAttribute.cs @@ -6,10 +6,10 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Extensions; -namespace Umbraco.Web.BackOffice.Filters +namespace Umbraco.Cms.Web.BackOffice.Filters { /// /// Checks if the parameter is IHaveUploadedFiles and then deletes any temporary saved files from file uploads diff --git a/src/Umbraco.Web.BackOffice/Filters/FilterAllowedOutgoingContentAttribute.cs b/src/Umbraco.Web.BackOffice/Filters/FilterAllowedOutgoingContentAttribute.cs index 38c0333d8b..44ccfcb115 100644 --- a/src/Umbraco.Web.BackOffice/Filters/FilterAllowedOutgoingContentAttribute.cs +++ b/src/Umbraco.Web.BackOffice/Filters/FilterAllowedOutgoingContentAttribute.cs @@ -4,14 +4,14 @@ using System.Collections.Generic; using System.Globalization; using System.Linq; using Microsoft.AspNetCore.Mvc; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Web.Actions; +using Umbraco.Cms.Core.Actions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Filters +namespace Umbraco.Cms.Web.BackOffice.Filters { /// /// This inspects the result of the action that returns a collection of content and removes diff --git a/src/Umbraco.Web.BackOffice/Filters/FilterAllowedOutgoingMediaAttribute.cs b/src/Umbraco.Web.BackOffice/Filters/FilterAllowedOutgoingMediaAttribute.cs index c7a7a56f83..23ce54df4e 100644 --- a/src/Umbraco.Web.BackOffice/Filters/FilterAllowedOutgoingMediaAttribute.cs +++ b/src/Umbraco.Web.BackOffice/Filters/FilterAllowedOutgoingMediaAttribute.cs @@ -4,16 +4,16 @@ using System.Collections.Generic; using System.Linq; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; -using Umbraco.Core; -using Umbraco.Core.Composing; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Web.Security; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Filters +namespace Umbraco.Cms.Web.BackOffice.Filters { /// /// This inspects the result of the action that returns a collection of content and removes diff --git a/src/Umbraco.Web.BackOffice/Filters/IsCurrentUserModelFilterAttribute.cs b/src/Umbraco.Web.BackOffice/Filters/IsCurrentUserModelFilterAttribute.cs index 0ba343cfbc..31750f1e66 100644 --- a/src/Umbraco.Web.BackOffice/Filters/IsCurrentUserModelFilterAttribute.cs +++ b/src/Umbraco.Web.BackOffice/Filters/IsCurrentUserModelFilterAttribute.cs @@ -1,12 +1,11 @@ using System.Collections.Generic; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; -using Umbraco.Core.Security; -using Umbraco.Web.BackOffice.Controllers; -using Umbraco.Web.Models.ContentEditing; -using Umbraco.Web.Security; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Web.BackOffice.Controllers; -namespace Umbraco.Web.BackOffice.Filters +namespace Umbraco.Cms.Web.BackOffice.Filters { internal class IsCurrentUserModelFilterAttribute : TypeFilterAttribute { diff --git a/src/Umbraco.Web.BackOffice/Filters/JsonCamelCaseFormatterAttribute.cs b/src/Umbraco.Web.BackOffice/Filters/JsonCamelCaseFormatterAttribute.cs index c5151f42d9..c8b7683a2c 100644 --- a/src/Umbraco.Web.BackOffice/Filters/JsonCamelCaseFormatterAttribute.cs +++ b/src/Umbraco.Web.BackOffice/Filters/JsonCamelCaseFormatterAttribute.cs @@ -1,14 +1,12 @@ -using System; -using System.Buffers; +using System.Buffers; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; using Microsoft.Extensions.Options; using Newtonsoft.Json; -using Newtonsoft.Json.Converters; using Newtonsoft.Json.Serialization; -using Umbraco.Web.Common.Formatters; +using Umbraco.Cms.Web.Common.Formatters; -namespace Umbraco.Web.BackOffice.Filters +namespace Umbraco.Cms.Web.BackOffice.Filters { public class JsonCamelCaseFormatterAttribute : TypeFilterAttribute { diff --git a/src/Umbraco.Web.BackOffice/Filters/MediaItemSaveValidationAttribute.cs b/src/Umbraco.Web.BackOffice/Filters/MediaItemSaveValidationAttribute.cs index 3ba2b408ef..ff5f8a83c1 100644 --- a/src/Umbraco.Web.BackOffice/Filters/MediaItemSaveValidationAttribute.cs +++ b/src/Umbraco.Web.BackOffice/Filters/MediaItemSaveValidationAttribute.cs @@ -4,15 +4,14 @@ using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Web.BackOffice.Authorization; -using Umbraco.Web.Common.Authorization; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Web.BackOffice.Authorization; +using Umbraco.Cms.Web.Common.Authorization; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Filters +namespace Umbraco.Cms.Web.BackOffice.Filters { /// /// Validates the incoming model diff --git a/src/Umbraco.Web.BackOffice/Filters/MediaSaveModelValidator.cs b/src/Umbraco.Web.BackOffice/Filters/MediaSaveModelValidator.cs index 0a59aadfa6..7e211773d9 100644 --- a/src/Umbraco.Web.BackOffice/Filters/MediaSaveModelValidator.cs +++ b/src/Umbraco.Web.BackOffice/Filters/MediaSaveModelValidator.cs @@ -1,10 +1,9 @@ using Microsoft.Extensions.Logging; -using Umbraco.Core.Models; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Services; -namespace Umbraco.Web.BackOffice.Filters +namespace Umbraco.Cms.Web.BackOffice.Filters { /// /// Validator for diff --git a/src/Umbraco.Web.BackOffice/Filters/MemberSaveModelValidator.cs b/src/Umbraco.Web.BackOffice/Filters/MemberSaveModelValidator.cs index 65056e1a5b..57fc834e0c 100644 --- a/src/Umbraco.Web.BackOffice/Filters/MemberSaveModelValidator.cs +++ b/src/Umbraco.Web.BackOffice/Filters/MemberSaveModelValidator.cs @@ -5,15 +5,17 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; using Microsoft.AspNetCore.Mvc.ModelBinding; using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Web.BackOffice.Extensions; using Umbraco.Extensions; -using Umbraco.Web.Models.ContentEditing; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Filters +namespace Umbraco.Cms.Web.BackOffice.Filters { /// /// Validator for diff --git a/src/Umbraco.Web.BackOffice/Filters/MemberSaveValidationAttribute.cs b/src/Umbraco.Web.BackOffice/Filters/MemberSaveValidationAttribute.cs index b8109b0e0c..e01f9197e1 100644 --- a/src/Umbraco.Web.BackOffice/Filters/MemberSaveValidationAttribute.cs +++ b/src/Umbraco.Web.BackOffice/Filters/MemberSaveValidationAttribute.cs @@ -2,13 +2,12 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; using Microsoft.Extensions.Logging; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; -using Umbraco.Web.Models.ContentEditing; -using Umbraco.Web.Security; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; -namespace Umbraco.Web.BackOffice.Filters +namespace Umbraco.Cms.Web.BackOffice.Filters { /// /// Validates the incoming model diff --git a/src/Umbraco.Web.BackOffice/Filters/MinifyJavaScriptResultAttribute.cs b/src/Umbraco.Web.BackOffice/Filters/MinifyJavaScriptResultAttribute.cs index 343a642d5b..325fdfcc7f 100644 --- a/src/Umbraco.Web.BackOffice/Filters/MinifyJavaScriptResultAttribute.cs +++ b/src/Umbraco.Web.BackOffice/Filters/MinifyJavaScriptResultAttribute.cs @@ -1,11 +1,11 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc.Filters; -using Umbraco.Core.Hosting; using Microsoft.Extensions.DependencyInjection; -using Umbraco.Core.WebAssets; -using Umbraco.Web.BackOffice.ActionResults; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.WebAssets; +using Umbraco.Cms.Web.BackOffice.ActionResults; -namespace Umbraco.Web.BackOffice.Filters +namespace Umbraco.Cms.Web.BackOffice.Filters { public class MinifyJavaScriptResultAttribute : ActionFilterAttribute { diff --git a/src/Umbraco.Web.BackOffice/Filters/OnlyLocalRequestsAttribute.cs b/src/Umbraco.Web.BackOffice/Filters/OnlyLocalRequestsAttribute.cs index 32d8e9d543..d811287b85 100644 --- a/src/Umbraco.Web.BackOffice/Filters/OnlyLocalRequestsAttribute.cs +++ b/src/Umbraco.Web.BackOffice/Filters/OnlyLocalRequestsAttribute.cs @@ -2,7 +2,7 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; using Umbraco.Extensions; -namespace Umbraco.Web.BackOffice.Filters +namespace Umbraco.Cms.Web.BackOffice.Filters { public class OnlyLocalRequestsAttribute : ActionFilterAttribute { diff --git a/src/Umbraco.Web.BackOffice/Filters/OutgoingEditorModelEventAttribute.cs b/src/Umbraco.Web.BackOffice/Filters/OutgoingEditorModelEventAttribute.cs index 4687d108a0..fe825a1907 100644 --- a/src/Umbraco.Web.BackOffice/Filters/OutgoingEditorModelEventAttribute.cs +++ b/src/Umbraco.Web.BackOffice/Filters/OutgoingEditorModelEventAttribute.cs @@ -1,11 +1,12 @@ using System; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; -using Umbraco.Core; -using Umbraco.Core.Security; -using Umbraco.Web.Editors; +using Umbraco.Cms.Core.Editors; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Web; +using Umbraco.Extensions; -namespace Umbraco.Web.BackOffice.Filters +namespace Umbraco.Cms.Web.BackOffice.Filters { /// /// Used to emit outgoing editor model events @@ -54,7 +55,7 @@ namespace Umbraco.Web.BackOffice.Filters } } } - + public void OnActionExecuting(ActionExecutingContext context) { } diff --git a/src/Umbraco.Web.BackOffice/Filters/PrefixlessBodyModelValidatorAttribute.cs b/src/Umbraco.Web.BackOffice/Filters/PrefixlessBodyModelValidatorAttribute.cs index 840149ef14..de23791720 100644 --- a/src/Umbraco.Web.BackOffice/Filters/PrefixlessBodyModelValidatorAttribute.cs +++ b/src/Umbraco.Web.BackOffice/Filters/PrefixlessBodyModelValidatorAttribute.cs @@ -2,7 +2,7 @@ using System.Linq; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; -namespace Umbraco.Web.BackOffice.Filters +namespace Umbraco.Cms.Web.BackOffice.Filters { /// /// Applying this attribute to any controller will ensure that the parameter name (prefix) is not part of the validation error keys. diff --git a/src/Umbraco.Web.BackOffice/Filters/SetAngularAntiForgeryTokensAttribute.cs b/src/Umbraco.Web.BackOffice/Filters/SetAngularAntiForgeryTokensAttribute.cs index 756a6cb383..543c6204a8 100644 --- a/src/Umbraco.Web.BackOffice/Filters/SetAngularAntiForgeryTokensAttribute.cs +++ b/src/Umbraco.Web.BackOffice/Filters/SetAngularAntiForgeryTokensAttribute.cs @@ -3,11 +3,11 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Web.BackOffice.Security; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Web.BackOffice.Security; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Filters +namespace Umbraco.Cms.Web.BackOffice.Filters { /// /// An attribute/filter to set the csrf cookie token based on angular conventions diff --git a/src/Umbraco.Web.BackOffice/Filters/UmbracoRequireHttpsAttribute.cs b/src/Umbraco.Web.BackOffice/Filters/UmbracoRequireHttpsAttribute.cs index a027531e06..b793346eba 100644 --- a/src/Umbraco.Web.BackOffice/Filters/UmbracoRequireHttpsAttribute.cs +++ b/src/Umbraco.Web.BackOffice/Filters/UmbracoRequireHttpsAttribute.cs @@ -2,9 +2,9 @@ using Microsoft.AspNetCore.Mvc.Filters; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; -using Umbraco.Core.Configuration.Models; +using Umbraco.Cms.Core.Configuration.Models; -namespace Umbraco.Web.BackOffice.Filters +namespace Umbraco.Cms.Web.BackOffice.Filters { /// /// If Umbraco.Core.UseHttps property in web.config is set to true, this filter will redirect any http access to https. diff --git a/src/Umbraco.Web.BackOffice/Filters/UnhandledExceptionLoggerFilter.cs b/src/Umbraco.Web.BackOffice/Filters/UnhandledExceptionLoggerFilter.cs index ebea90249c..dd955d11f2 100644 --- a/src/Umbraco.Web.BackOffice/Filters/UnhandledExceptionLoggerFilter.cs +++ b/src/Umbraco.Web.BackOffice/Filters/UnhandledExceptionLoggerFilter.cs @@ -1,7 +1,6 @@ using Microsoft.AspNetCore.Builder; - -namespace Umbraco.Web.BackOffice.Filters +namespace Umbraco.Cms.Web.BackOffice.Filters { /// /// Applies the UnhandledExceptionLoggerMiddleware to a specific controller diff --git a/src/Umbraco.Web.BackOffice/Filters/UnhandledExceptionLoggerMiddleware.cs b/src/Umbraco.Web.BackOffice/Filters/UnhandledExceptionLoggerMiddleware.cs index e2192f694b..42662cf548 100644 --- a/src/Umbraco.Web.BackOffice/Filters/UnhandledExceptionLoggerMiddleware.cs +++ b/src/Umbraco.Web.BackOffice/Filters/UnhandledExceptionLoggerMiddleware.cs @@ -3,10 +3,9 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http.Extensions; using Microsoft.Extensions.Logging; -using Umbraco.Core; using Umbraco.Extensions; -namespace Umbraco.Web.BackOffice.Filters +namespace Umbraco.Cms.Web.BackOffice.Filters { /// /// Logs any unhandled exception. diff --git a/src/Umbraco.Web.BackOffice/Filters/UserGroupValidateAttribute.cs b/src/Umbraco.Web.BackOffice/Filters/UserGroupValidateAttribute.cs index f6647ea1d7..1bcfbfe0f9 100644 --- a/src/Umbraco.Web.BackOffice/Filters/UserGroupValidateAttribute.cs +++ b/src/Umbraco.Web.BackOffice/Filters/UserGroupValidateAttribute.cs @@ -2,15 +2,15 @@ using System; using System.Net; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; -using Umbraco.Core; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Services; -using Umbraco.Web.BackOffice.ActionResults; -using Umbraco.Web.Common.ActionsResults; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Web.BackOffice.ActionResults; +using Umbraco.Cms.Web.Common.ActionsResults; +using Umbraco.Extensions; -namespace Umbraco.Web.BackOffice.Filters +namespace Umbraco.Cms.Web.BackOffice.Filters { internal sealed class UserGroupValidateAttribute : TypeFilterAttribute { diff --git a/src/Umbraco.Web.BackOffice/Filters/ValidateAngularAntiForgeryTokenAttribute.cs b/src/Umbraco.Web.BackOffice/Filters/ValidateAngularAntiForgeryTokenAttribute.cs index ef8e22c9d8..8e3c6d97ca 100644 --- a/src/Umbraco.Web.BackOffice/Filters/ValidateAngularAntiForgeryTokenAttribute.cs +++ b/src/Umbraco.Web.BackOffice/Filters/ValidateAngularAntiForgeryTokenAttribute.cs @@ -7,11 +7,12 @@ using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; using Microsoft.Extensions.Logging; -using Umbraco.Core; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Web.BackOffice.Security; using Umbraco.Extensions; -using Umbraco.Web.BackOffice.Security; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Filters +namespace Umbraco.Cms.Web.BackOffice.Filters { /// /// An attribute/filter to check for the csrf token based on Angular's standard approach diff --git a/src/Umbraco.Web.BackOffice/Filters/ValidationFilterAttribute.cs b/src/Umbraco.Web.BackOffice/Filters/ValidationFilterAttribute.cs index 77d44062d0..b29607a9c7 100644 --- a/src/Umbraco.Web.BackOffice/Filters/ValidationFilterAttribute.cs +++ b/src/Umbraco.Web.BackOffice/Filters/ValidationFilterAttribute.cs @@ -1,7 +1,7 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; -namespace Umbraco.Web.BackOffice.Filters +namespace Umbraco.Cms.Web.BackOffice.Filters { /// /// An action filter used to do basic validation against the model and return a result diff --git a/src/Umbraco.Web.BackOffice/HealthChecks/HealthCheckController.cs b/src/Umbraco.Web.BackOffice/HealthChecks/HealthCheckController.cs index 8bd86eb106..82029eb8c5 100644 --- a/src/Umbraco.Web.BackOffice/HealthChecks/HealthCheckController.cs +++ b/src/Umbraco.Web.BackOffice/HealthChecks/HealthCheckController.cs @@ -9,14 +9,14 @@ using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.HealthChecks; -using Umbraco.Web.BackOffice.Controllers; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Authorization; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.HealthChecks; +using Umbraco.Cms.Web.BackOffice.Controllers; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.HealthChecks +namespace Umbraco.Cms.Web.BackOffice.HealthChecks { /// /// The API controller used to display the health check info and execute any actions diff --git a/src/Umbraco.Web.BackOffice/Mapping/CommonTreeNodeMapper.cs b/src/Umbraco.Web.BackOffice/Mapping/CommonTreeNodeMapper.cs index 794fd8caae..9559275ec9 100644 --- a/src/Umbraco.Web.BackOffice/Mapping/CommonTreeNodeMapper.cs +++ b/src/Umbraco.Web.BackOffice/Mapping/CommonTreeNodeMapper.cs @@ -1,13 +1,10 @@ -using Microsoft.AspNetCore.Http; -using Microsoft.AspNetCore.Mvc; -using Microsoft.AspNetCore.Mvc.Routing; -using Microsoft.AspNetCore.Routing; -using Umbraco.Core.Models; +using Microsoft.AspNetCore.Routing; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Web.BackOffice.Trees; +using Umbraco.Cms.Web.Common.Controllers; using Umbraco.Extensions; -using Umbraco.Web.Common.Controllers; -using Umbraco.Web.BackOffice.Trees; -namespace Umbraco.Web.BackOffice.Mapping +namespace Umbraco.Cms.Web.BackOffice.Mapping { public class CommonTreeNodeMapper { diff --git a/src/Umbraco.Web.BackOffice/Mapping/ContentMapDefinition.cs b/src/Umbraco.Web.BackOffice/Mapping/ContentMapDefinition.cs index 3ebce0fedb..797a8ed368 100644 --- a/src/Umbraco.Web.BackOffice/Mapping/ContentMapDefinition.cs +++ b/src/Umbraco.Web.BackOffice/Mapping/ContentMapDefinition.cs @@ -2,20 +2,23 @@ using System; using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Core.Dictionary; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Web.Models.ContentEditing; -using Umbraco.Web.Models.Mapping; -using Umbraco.Web.Routing; -using Umbraco.Web.BackOffice.Trees; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Dictionary; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Models.Mapping; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Web.BackOffice.Trees; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Mapping +namespace Umbraco.Cms.Web.BackOffice.Mapping { /// /// Declares how model mappings for content diff --git a/src/Umbraco.Web.BackOffice/Mapping/MediaMapDefinition.cs b/src/Umbraco.Web.BackOffice/Mapping/MediaMapDefinition.cs index 3f8c308645..2b654fff48 100644 --- a/src/Umbraco.Web.BackOffice/Mapping/MediaMapDefinition.cs +++ b/src/Umbraco.Web.BackOffice/Mapping/MediaMapDefinition.cs @@ -1,17 +1,19 @@ using System; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Dictionary; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.PropertyEditors; -using Umbraco.Core.Services; -using Umbraco.Web.Models.ContentEditing; -using Umbraco.Web.Models.Mapping; -using Umbraco.Web.BackOffice.Trees; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Dictionary; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Models.Mapping; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Web.BackOffice.Trees; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Mapping +namespace Umbraco.Cms.Web.BackOffice.Mapping { /// /// Declares model mappings for media. diff --git a/src/Umbraco.Web.BackOffice/Mapping/MemberMapDefinition.cs b/src/Umbraco.Web.BackOffice/Mapping/MemberMapDefinition.cs index 2df45704d8..c17d834226 100644 --- a/src/Umbraco.Web.BackOffice/Mapping/MemberMapDefinition.cs +++ b/src/Umbraco.Web.BackOffice/Mapping/MemberMapDefinition.cs @@ -1,12 +1,13 @@ using Microsoft.AspNetCore.Http; -using Umbraco.Core; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Web.Models.ContentEditing; -using Umbraco.Web.Models.Mapping; -using Umbraco.Web.BackOffice.Trees; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Models.Mapping; +using Umbraco.Cms.Web.BackOffice.Trees; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Mapping +namespace Umbraco.Cms.Web.BackOffice.Mapping { /// /// Declares model mappings for members. diff --git a/src/Umbraco.Web.BackOffice/Middleware/BackOfficeExternalLoginProviderErrorMiddleware.cs b/src/Umbraco.Web.BackOffice/Middleware/BackOfficeExternalLoginProviderErrorMiddleware.cs index 1a2d5b20e7..796443bbf6 100644 --- a/src/Umbraco.Web.BackOffice/Middleware/BackOfficeExternalLoginProviderErrorMiddleware.cs +++ b/src/Umbraco.Web.BackOffice/Middleware/BackOfficeExternalLoginProviderErrorMiddleware.cs @@ -4,16 +4,16 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http.Extensions; using Newtonsoft.Json; -using Umbraco.Core; using Umbraco.Extensions; +using HttpRequestExtensions = Umbraco.Extensions.HttpRequestExtensions; -namespace Umbraco.Web.BackOffice.Middleware +namespace Umbraco.Cms.Web.BackOffice.Middleware { /// /// Used to handle errors registered by external login providers /// /// - /// When an external login provider registers an error with during the OAuth process, + /// When an external login provider registers an error with during the OAuth process, /// this middleware will detect that, store the errors into cookie data and redirect to the back office login so we can read the errors back out. /// public class BackOfficeExternalLoginProviderErrorMiddleware : IMiddleware @@ -21,7 +21,7 @@ namespace Umbraco.Web.BackOffice.Middleware public async Task InvokeAsync(HttpContext context, RequestDelegate next) { var shortCircuit = false; - if (!context.Request.IsClientSideRequest()) + if (!HttpRequestExtensions.IsClientSideRequest(context.Request)) { // check if we have any errors registered var errors = context.GetExternalLoginProviderErrors(); diff --git a/src/Umbraco.Web.BackOffice/Middleware/PreviewAuthenticationMiddleware.cs b/src/Umbraco.Web.BackOffice/Middleware/PreviewAuthenticationMiddleware.cs index 85bc7c9ef7..b03769d28b 100644 --- a/src/Umbraco.Web.BackOffice/Middleware/PreviewAuthenticationMiddleware.cs +++ b/src/Umbraco.Web.BackOffice/Middleware/PreviewAuthenticationMiddleware.cs @@ -4,10 +4,10 @@ using Microsoft.AspNetCore.Authentication.Cookies; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; -using Umbraco.Core; using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Middleware +namespace Umbraco.Cms.Web.BackOffice.Middleware { /// /// Ensures that preview pages (front-end routed) are authenticated with the back office identity appended to the principal alongside any default authentication that takes place diff --git a/src/Umbraco.Web.BackOffice/ModelBinders/BlueprintItemBinder.cs b/src/Umbraco.Web.BackOffice/ModelBinders/BlueprintItemBinder.cs index 744d125bf9..eb88cf3748 100644 --- a/src/Umbraco.Web.BackOffice/ModelBinders/BlueprintItemBinder.cs +++ b/src/Umbraco.Web.BackOffice/ModelBinders/BlueprintItemBinder.cs @@ -1,12 +1,11 @@ -using Umbraco.Core.Hosting; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Core.Services.Implement; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; -namespace Umbraco.Web.BackOffice.ModelBinders +namespace Umbraco.Cms.Web.BackOffice.ModelBinders { internal class BlueprintItemBinder : ContentItemBinder { diff --git a/src/Umbraco.Web.BackOffice/ModelBinders/ContentItemBinder.cs b/src/Umbraco.Web.BackOffice/ModelBinders/ContentItemBinder.cs index b395fdb4e1..82b612c98c 100644 --- a/src/Umbraco.Web.BackOffice/ModelBinders/ContentItemBinder.cs +++ b/src/Umbraco.Web.BackOffice/ModelBinders/ContentItemBinder.cs @@ -2,17 +2,16 @@ using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc.ModelBinding; -using Umbraco.Core; -using Umbraco.Core.Hosting; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Web.BackOffice.Controllers; -using Umbraco.Web.Models.ContentEditing; -using Umbraco.Web.Models.Mapping; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Web.BackOffice.Controllers; +using Umbraco.Extensions; -namespace Umbraco.Web.BackOffice.ModelBinders +namespace Umbraco.Cms.Web.BackOffice.ModelBinders { /// /// The model binder for diff --git a/src/Umbraco.Web.BackOffice/ModelBinders/ContentModelBinderHelper.cs b/src/Umbraco.Web.BackOffice/ModelBinders/ContentModelBinderHelper.cs index 0ed360214b..55d2be84a7 100644 --- a/src/Umbraco.Web.BackOffice/ModelBinders/ContentModelBinderHelper.cs +++ b/src/Umbraco.Web.BackOffice/ModelBinders/ContentModelBinderHelper.cs @@ -1,17 +1,15 @@ using System; using System.IO; -using System.Net; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc.ModelBinding; -using Umbraco.Core; -using Umbraco.Core.Hosting; -using Umbraco.Core.Models.Editors; -using Umbraco.Core.Serialization; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Models.Editors; +using Umbraco.Cms.Core.Serialization; using Umbraco.Extensions; -using Umbraco.Web.Common.Exceptions; -using Umbraco.Web.Models.ContentEditing; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.ModelBinders +namespace Umbraco.Cms.Web.BackOffice.ModelBinders { /// /// Helper methods to bind media/member models @@ -92,7 +90,7 @@ namespace Umbraco.Web.BackOffice.ModelBinders var fileName = formFile.FileName.Trim('\"'); - var tempFileUploadFolder = hostingEnvironment.MapPathContentRoot(Core.Constants.SystemDirectories.TempFileUploads); + var tempFileUploadFolder = hostingEnvironment.MapPathContentRoot(Constants.SystemDirectories.TempFileUploads); Directory.CreateDirectory(tempFileUploadFolder); var tempFilePath = Path.Combine(tempFileUploadFolder, Guid.NewGuid().ToString()); diff --git a/src/Umbraco.Web.BackOffice/ModelBinders/FromJsonPathAttribute.cs b/src/Umbraco.Web.BackOffice/ModelBinders/FromJsonPathAttribute.cs index aa33406db3..a27243714f 100644 --- a/src/Umbraco.Web.BackOffice/ModelBinders/FromJsonPathAttribute.cs +++ b/src/Umbraco.Web.BackOffice/ModelBinders/FromJsonPathAttribute.cs @@ -1,8 +1,5 @@ using System; -using System.IO; -using System.Text; using System.Threading.Tasks; -using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.ModelBinding; using Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http; @@ -10,7 +7,7 @@ using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Umbraco.Extensions; -namespace Umbraco.Web.BackOffice.ModelBinders +namespace Umbraco.Cms.Web.BackOffice.ModelBinders { /// /// Used to bind a value from an inner json property diff --git a/src/Umbraco.Web.BackOffice/ModelBinders/MediaItemBinder.cs b/src/Umbraco.Web.BackOffice/ModelBinders/MediaItemBinder.cs index a8f105a24a..7cd4bceaa8 100644 --- a/src/Umbraco.Web.BackOffice/ModelBinders/MediaItemBinder.cs +++ b/src/Umbraco.Web.BackOffice/ModelBinders/MediaItemBinder.cs @@ -1,15 +1,15 @@ using System; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc.ModelBinding; -using Umbraco.Core.Hosting; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models; -using Umbraco.Core.Serialization; -using Umbraco.Core.Services; -using Umbraco.Web.BackOffice.Controllers; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Web.BackOffice.Controllers; -namespace Umbraco.Web.BackOffice.ModelBinders +namespace Umbraco.Cms.Web.BackOffice.ModelBinders { /// /// The model binder for @@ -76,7 +76,7 @@ namespace Umbraco.Web.BackOffice.ModelBinders { throw new InvalidOperationException("No media type found with alias " + model.ContentTypeAlias); } - return new Core.Models.Media(model.Name, model.ParentId, mediaType); + return new Cms.Core.Models.Media(model.Name, model.ParentId, mediaType); } } diff --git a/src/Umbraco.Web.BackOffice/ModelBinders/MemberBinder.cs b/src/Umbraco.Web.BackOffice/ModelBinders/MemberBinder.cs index 117cf7c089..2221b907a6 100644 --- a/src/Umbraco.Web.BackOffice/ModelBinders/MemberBinder.cs +++ b/src/Umbraco.Web.BackOffice/ModelBinders/MemberBinder.cs @@ -1,19 +1,19 @@ using System; using System.Collections.Generic; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; -using Umbraco.Web.Models.ContentEditing; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc.ModelBinding; -using Umbraco.Core.Hosting; -using Umbraco.Core.Mapping; -using Umbraco.Core.Serialization; -using Umbraco.Web.BackOffice.Controllers; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Web.BackOffice.Controllers; -namespace Umbraco.Web.BackOffice.ModelBinders +namespace Umbraco.Cms.Web.BackOffice.ModelBinders { /// /// The model binder for diff --git a/src/Umbraco.Web.BackOffice/Profiling/WebProfilingController.cs b/src/Umbraco.Web.BackOffice/Profiling/WebProfilingController.cs index 0908522d9e..211c5261e4 100644 --- a/src/Umbraco.Web.BackOffice/Profiling/WebProfilingController.cs +++ b/src/Umbraco.Web.BackOffice/Profiling/WebProfilingController.cs @@ -1,13 +1,11 @@ -using Umbraco.Core; -using Umbraco.Core.Hosting; -using Umbraco.Web.BackOffice.Filters; -using Umbraco.Web.BackOffice.Controllers; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Controllers; -using Microsoft.AspNetCore.Authorization; -using Umbraco.Web.Common.Authorization; +using Microsoft.AspNetCore.Authorization; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Web.BackOffice.Controllers; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Profiling +namespace Umbraco.Cms.Web.BackOffice.Profiling { /// /// The API controller used to display the state of the web profiler diff --git a/src/Umbraco.Web.BackOffice/PropertyEditors/NestedContentController.cs b/src/Umbraco.Web.BackOffice/PropertyEditors/NestedContentController.cs index 942b9dd6ea..25d120d807 100644 --- a/src/Umbraco.Web.BackOffice/PropertyEditors/NestedContentController.cs +++ b/src/Umbraco.Web.BackOffice/PropertyEditors/NestedContentController.cs @@ -1,12 +1,16 @@ -using System.Collections.Generic; +// Copyright (c) Umbraco. +// See LICENSE for more details. + +using System.Collections.Generic; using System.Linq; using Microsoft.AspNetCore.Mvc; -using Umbraco.Core.Services; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.BackOffice.Controllers; -using Umbraco.Core; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Web.BackOffice.Controllers; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.PropertyEditors +namespace Umbraco.Cms.Web.BackOffice.PropertyEditors { [PluginController(Constants.Web.Mvc.BackOfficeApiArea)] public class NestedContentController : UmbracoAuthorizedJsonController diff --git a/src/Umbraco.Web.BackOffice/PropertyEditors/RichTextPreValueController.cs b/src/Umbraco.Web.BackOffice/PropertyEditors/RichTextPreValueController.cs index 1f302294de..faa4cc83dc 100644 --- a/src/Umbraco.Web.BackOffice/PropertyEditors/RichTextPreValueController.cs +++ b/src/Umbraco.Web.BackOffice/PropertyEditors/RichTextPreValueController.cs @@ -1,13 +1,15 @@ using System.Collections.Generic; using System.Xml; -using Umbraco.Core; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; -using Umbraco.Web.BackOffice.Controllers; -using Umbraco.Web.Models.ContentEditing; -using Umbraco.Web.Common.Attributes; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Web.BackOffice.Controllers; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.PropertyEditors +namespace Umbraco.Cms.Web.BackOffice.PropertyEditors { /// /// ApiController to provide RTE configuration with available plugins and commands from the RTE config diff --git a/src/Umbraco.Web.BackOffice/PropertyEditors/RteEmbedController.cs b/src/Umbraco.Web.BackOffice/PropertyEditors/RteEmbedController.cs index 49c2f0e4d4..08a35b6c6d 100644 --- a/src/Umbraco.Web.BackOffice/PropertyEditors/RteEmbedController.cs +++ b/src/Umbraco.Web.BackOffice/PropertyEditors/RteEmbedController.cs @@ -1,13 +1,13 @@ using System; using System.Text.RegularExpressions; using Microsoft.Extensions.Logging; -using Umbraco.Web.BackOffice.Controllers; -using Umbraco.Core.Media; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Media.EmbedProviders; -using Umbraco.Core; +using Umbraco.Cms.Core.Media; +using Umbraco.Cms.Core.Media.EmbedProviders; +using Umbraco.Cms.Web.BackOffice.Controllers; +using Umbraco.Cms.Web.Common.Attributes; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.PropertyEditors +namespace Umbraco.Cms.Web.BackOffice.PropertyEditors { /// /// A controller used for the embed dialog diff --git a/src/Umbraco.Web.BackOffice/PropertyEditors/TagsDataController.cs b/src/Umbraco.Web.BackOffice/PropertyEditors/TagsDataController.cs index aa2b413abd..17d015abc8 100644 --- a/src/Umbraco.Web.BackOffice/PropertyEditors/TagsDataController.cs +++ b/src/Umbraco.Web.BackOffice/PropertyEditors/TagsDataController.cs @@ -1,12 +1,14 @@ using System; using System.Collections.Generic; using System.Linq; -using Umbraco.Core; -using Umbraco.Web.BackOffice.Controllers; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Web.BackOffice.Controllers; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.PropertyEditors +namespace Umbraco.Cms.Web.BackOffice.PropertyEditors { /// /// A controller used for type-ahead values for tags diff --git a/src/Umbraco.Web.BackOffice/PropertyEditors/Validation/ContentPropertyValidationResult.cs b/src/Umbraco.Web.BackOffice/PropertyEditors/Validation/ContentPropertyValidationResult.cs index f0689c6044..5cd434bd2d 100644 --- a/src/Umbraco.Web.BackOffice/PropertyEditors/Validation/ContentPropertyValidationResult.cs +++ b/src/Umbraco.Web.BackOffice/PropertyEditors/Validation/ContentPropertyValidationResult.cs @@ -1,8 +1,8 @@ -using Newtonsoft.Json; -using System.ComponentModel.DataAnnotations; -using Umbraco.Web.PropertyEditors.Validation; +using System.ComponentModel.DataAnnotations; +using Newtonsoft.Json; +using Umbraco.Cms.Core.PropertyEditors.Validation; -namespace Umbraco.Web.BackOffice.PropertyEditors.Validation +namespace Umbraco.Cms.Web.BackOffice.PropertyEditors.Validation { /// /// Custom for content properties diff --git a/src/Umbraco.Web.BackOffice/PropertyEditors/Validation/ValidationResultConverter.cs b/src/Umbraco.Web.BackOffice/PropertyEditors/Validation/ValidationResultConverter.cs index 44f57f9e6c..4be6b17b32 100644 --- a/src/Umbraco.Web.BackOffice/PropertyEditors/Validation/ValidationResultConverter.cs +++ b/src/Umbraco.Web.BackOffice/PropertyEditors/Validation/ValidationResultConverter.cs @@ -1,15 +1,15 @@ -using Newtonsoft.Json; -using Newtonsoft.Json.Linq; -using Newtonsoft.Json.Serialization; -using System; +using System; using System.ComponentModel.DataAnnotations; using System.Linq; using Microsoft.AspNetCore.Mvc.ModelBinding; -using Umbraco.Core; +using Newtonsoft.Json; +using Newtonsoft.Json.Linq; +using Newtonsoft.Json.Serialization; +using Umbraco.Cms.Core.PropertyEditors.Validation; +using Umbraco.Cms.Web.BackOffice.Extensions; using Umbraco.Extensions; -using Umbraco.Web.PropertyEditors.Validation; -namespace Umbraco.Web.BackOffice.PropertyEditors.Validation +namespace Umbraco.Cms.Web.BackOffice.PropertyEditors.Validation { /// /// Custom json converter for and diff --git a/src/Umbraco.Web.BackOffice/Routing/BackOfficeAreaRoutes.cs b/src/Umbraco.Web.BackOffice/Routing/BackOfficeAreaRoutes.cs index 56b5d26d92..2a83b45fd5 100644 --- a/src/Umbraco.Web.BackOffice/Routing/BackOfficeAreaRoutes.cs +++ b/src/Umbraco.Web.BackOffice/Routing/BackOfficeAreaRoutes.cs @@ -1,18 +1,18 @@ using System; using Microsoft.AspNetCore.Routing; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Web.BackOffice.Controllers; -using Umbraco.Web.Common.Controllers; -using Umbraco.Web.Common.Extensions; -using Umbraco.Web.Common.Routing; -using Umbraco.Web.Mvc; -using Umbraco.Web.WebApi; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Web.Mvc; +using Umbraco.Cms.Web.BackOffice.Controllers; +using Umbraco.Cms.Web.Common.Controllers; +using Umbraco.Cms.Web.Common.Routing; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Routing +namespace Umbraco.Cms.Web.BackOffice.Routing { /// /// Creates routes for the back office area diff --git a/src/Umbraco.Web.BackOffice/Routing/PreviewRoutes.cs b/src/Umbraco.Web.BackOffice/Routing/PreviewRoutes.cs index d8c93e5985..a207a727fb 100644 --- a/src/Umbraco.Web.BackOffice/Routing/PreviewRoutes.cs +++ b/src/Umbraco.Web.BackOffice/Routing/PreviewRoutes.cs @@ -1,16 +1,17 @@ using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Routing; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Web.BackOffice.Controllers; -using Umbraco.Web.BackOffice.SignalR; -using Umbraco.Web.Common.Extensions; -using Umbraco.Web.Common.Routing; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Web.BackOffice.Controllers; +using Umbraco.Cms.Web.BackOffice.SignalR; +using Umbraco.Cms.Web.Common.Routing; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Routing +namespace Umbraco.Cms.Web.BackOffice.Routing { /// /// Creates routes for the preview hub diff --git a/src/Umbraco.Web.BackOffice/Security/AutoLinkSignInResult.cs b/src/Umbraco.Web.BackOffice/Security/AutoLinkSignInResult.cs index 54f409e6f8..3da2553d04 100644 --- a/src/Umbraco.Web.BackOffice/Security/AutoLinkSignInResult.cs +++ b/src/Umbraco.Web.BackOffice/Security/AutoLinkSignInResult.cs @@ -2,7 +2,7 @@ using System; using System.Collections.Generic; using Microsoft.AspNetCore.Identity; -namespace Umbraco.Web.Common.Security +namespace Umbraco.Cms.Web.BackOffice.Security { /// /// Result returned from signing in when auto-linking takes place diff --git a/src/Umbraco.Web.BackOffice/Security/BackOfficeAntiforgery.cs b/src/Umbraco.Web.BackOffice/Security/BackOfficeAntiforgery.cs index 07aef007f9..396387f04e 100644 --- a/src/Umbraco.Web.BackOffice/Security/BackOfficeAntiforgery.cs +++ b/src/Umbraco.Web.BackOffice/Security/BackOfficeAntiforgery.cs @@ -1,12 +1,13 @@ -using Microsoft.AspNetCore.Antiforgery; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Antiforgery; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Options; using Microsoft.Net.Http.Headers; -using System.Linq; -using System.Threading.Tasks; -using Umbraco.Core; +using Umbraco.Cms.Core; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Security +namespace Umbraco.Cms.Web.BackOffice.Security { /// @@ -113,6 +114,6 @@ namespace Umbraco.Web.BackOffice.Security } } - + } } diff --git a/src/Umbraco.Web.BackOffice/Security/BackOfficeAuthenticationBuilder.cs b/src/Umbraco.Web.BackOffice/Security/BackOfficeAuthenticationBuilder.cs index 7012d5f1dd..5ccd1c0aa1 100644 --- a/src/Umbraco.Web.BackOffice/Security/BackOfficeAuthenticationBuilder.cs +++ b/src/Umbraco.Web.BackOffice/Security/BackOfficeAuthenticationBuilder.cs @@ -1,11 +1,11 @@ +using System; using Microsoft.AspNetCore.Authentication; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; using Microsoft.Extensions.Options; -using System; -using Umbraco.Core; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Security +namespace Umbraco.Cms.Web.BackOffice.Security { /// /// Custom used to associate external logins with umbraco external login options @@ -35,7 +35,7 @@ namespace Umbraco.Web.BackOffice.Security /// /// public override AuthenticationBuilder AddRemoteScheme(string authenticationScheme, string displayName, Action configureOptions) - { + { // Validate that the prefix is set if (!authenticationScheme.StartsWith(Constants.Security.BackOfficeExternalAuthenticationTypePrefix)) { diff --git a/src/Umbraco.Web.BackOffice/Security/BackOfficeCookieManager.cs b/src/Umbraco.Web.BackOffice/Security/BackOfficeCookieManager.cs index 7d3d392712..a05af07bb6 100644 --- a/src/Umbraco.Web.BackOffice/Security/BackOfficeCookieManager.cs +++ b/src/Umbraco.Web.BackOffice/Security/BackOfficeCookieManager.cs @@ -2,10 +2,13 @@ using System.Collections.Generic; using System.Linq; using Microsoft.AspNetCore.Authentication.Cookies; using Microsoft.AspNetCore.Http; -using Umbraco.Core; -using Umbraco.Core.Routing; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Web; +using Umbraco.Extensions; -namespace Umbraco.Web.BackOffice.Security +namespace Umbraco.Cms.Web.BackOffice.Security { /// /// A custom cookie manager that is used to read the cookie from the request. diff --git a/src/Umbraco.Web.BackOffice/Security/BackOfficeExternalLoginProvider.cs b/src/Umbraco.Web.BackOffice/Security/BackOfficeExternalLoginProvider.cs index 18e5b066dc..ff2a64f155 100644 --- a/src/Umbraco.Web.BackOffice/Security/BackOfficeExternalLoginProvider.cs +++ b/src/Umbraco.Web.BackOffice/Security/BackOfficeExternalLoginProvider.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Web.BackOffice.Security +namespace Umbraco.Cms.Web.BackOffice.Security { /// /// An external login (OAuth) provider for the back office diff --git a/src/Umbraco.Web.BackOffice/Security/BackOfficeExternalLoginProviderOptions.cs b/src/Umbraco.Web.BackOffice/Security/BackOfficeExternalLoginProviderOptions.cs index b6c1c7f2d2..fa1c1fe487 100644 --- a/src/Umbraco.Web.BackOffice/Security/BackOfficeExternalLoginProviderOptions.cs +++ b/src/Umbraco.Web.BackOffice/Security/BackOfficeExternalLoginProviderOptions.cs @@ -1,7 +1,4 @@ -using System; -using System.Runtime.Serialization; - -namespace Umbraco.Web.BackOffice.Security +namespace Umbraco.Cms.Web.BackOffice.Security { @@ -11,7 +8,7 @@ namespace Umbraco.Web.BackOffice.Security public class BackOfficeExternalLoginProviderOptions { public BackOfficeExternalLoginProviderOptions( - string buttonStyle, string icon, + string buttonStyle, string icon, ExternalSignInAutoLinkOptions autoLinkOptions = null, bool denyLocalLogin = false, bool autoRedirectLoginToExternalProvider = false, diff --git a/src/Umbraco.Web.BackOffice/Security/BackOfficeExternalLoginProviders.cs b/src/Umbraco.Web.BackOffice/Security/BackOfficeExternalLoginProviders.cs index 21c94308dd..7ecb4e2829 100644 --- a/src/Umbraco.Web.BackOffice/Security/BackOfficeExternalLoginProviders.cs +++ b/src/Umbraco.Web.BackOffice/Security/BackOfficeExternalLoginProviders.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.Linq; -namespace Umbraco.Web.BackOffice.Security +namespace Umbraco.Cms.Web.BackOffice.Security { /// public class BackOfficeExternalLoginProviders : IBackOfficeExternalLoginProviders diff --git a/src/Umbraco.Web.BackOffice/Security/BackOfficeExternalLoginsBuilder.cs b/src/Umbraco.Web.BackOffice/Security/BackOfficeExternalLoginsBuilder.cs index 402ad8b948..daea904a49 100644 --- a/src/Umbraco.Web.BackOffice/Security/BackOfficeExternalLoginsBuilder.cs +++ b/src/Umbraco.Web.BackOffice/Security/BackOfficeExternalLoginsBuilder.cs @@ -1,7 +1,7 @@ -using Microsoft.Extensions.DependencyInjection; -using System; +using System; +using Microsoft.Extensions.DependencyInjection; -namespace Umbraco.Web.BackOffice.Security +namespace Umbraco.Cms.Web.BackOffice.Security { /// /// Used to add back office login providers diff --git a/src/Umbraco.Web.BackOffice/Security/BackOfficePasswordHasher.cs b/src/Umbraco.Web.BackOffice/Security/BackOfficePasswordHasher.cs index 65f1a7f5bc..17190b1b37 100644 --- a/src/Umbraco.Web.BackOffice/Security/BackOfficePasswordHasher.cs +++ b/src/Umbraco.Web.BackOffice/Security/BackOfficePasswordHasher.cs @@ -1,11 +1,13 @@ using Microsoft.AspNetCore.Identity; -using Umbraco.Core.Security; -using Umbraco.Core; -using Umbraco.Core.Models.Membership; using Microsoft.Extensions.Options; -using Umbraco.Core.Serialization; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Core.Security; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Security +namespace Umbraco.Cms.Web.BackOffice.Security { /// /// A password hasher for back office users @@ -42,7 +44,7 @@ namespace Umbraco.Web.BackOffice.Security /// /// /// This will check the user's current hashed password format stored with their user row and use that to verify the hash. This could be any hashes - /// from the very old v4, to the older v6-v8, to the older aspnet identity and finally to the most recent + /// from the very old v4, to the older v6-v8, to the older aspnet identity and finally to the most recent /// public override PasswordVerificationResult VerifyHashedPassword(BackOfficeIdentityUser user, string hashedPassword, string providedPassword) { @@ -60,10 +62,10 @@ namespace Umbraco.Web.BackOffice.Security // We will explicitly detect names here // The default is PBKDF2.ASPNETCORE.V3: - // PBKDF2 with HMAC-SHA256, 128-bit salt, 256-bit subkey, 10000 iterations. + // PBKDF2 with HMAC-SHA256, 128-bit salt, 256-bit subkey, 10000 iterations. // The underlying class only lets us change 2 things which is the version: options.CompatibilityMode and the iteration count // The PBKDF2.ASPNETCORE.V2 settings are: - // PBKDF2 with HMAC-SHA1, 128-bit salt, 256-bit subkey, 1000 iterations. + // PBKDF2 with HMAC-SHA1, 128-bit salt, 256-bit subkey, 1000 iterations. switch (deserialized.HashAlgorithm) { diff --git a/src/Umbraco.Web.BackOffice/Security/BackOfficeSecureDataFormat.cs b/src/Umbraco.Web.BackOffice/Security/BackOfficeSecureDataFormat.cs index 377801a0b7..8df128661b 100644 --- a/src/Umbraco.Web.BackOffice/Security/BackOfficeSecureDataFormat.cs +++ b/src/Umbraco.Web.BackOffice/Security/BackOfficeSecureDataFormat.cs @@ -1,9 +1,9 @@ -using Microsoft.AspNetCore.Authentication; -using System; +using System; using System.Security.Claims; -using Umbraco.Core.Security; +using Microsoft.AspNetCore.Authentication; +using Umbraco.Cms.Core.Security; -namespace Umbraco.Web.BackOffice.Security +namespace Umbraco.Cms.Web.BackOffice.Security { /// @@ -19,7 +19,7 @@ namespace Umbraco.Web.BackOffice.Security _loginTimeoutMinutes = loginTimeoutMinutes; _ticketDataFormat = ticketDataFormat ?? throw new ArgumentNullException(nameof(ticketDataFormat)); } - + public string Protect(AuthenticationTicket data, string purpose) { // create a new ticket based on the passed in tickets details, however, we'll adjust the expires utc based on the specified timeout mins @@ -38,7 +38,7 @@ namespace Umbraco.Web.BackOffice.Security public string Protect(AuthenticationTicket data) => Protect(data, string.Empty); - + public AuthenticationTicket Unprotect(string protectedText) => Unprotect(protectedText, string.Empty); /// diff --git a/src/Umbraco.Web.BackOffice/Security/BackOfficeSecurityStampValidator.cs b/src/Umbraco.Web.BackOffice/Security/BackOfficeSecurityStampValidator.cs index abd0af1353..9037f39da1 100644 --- a/src/Umbraco.Web.BackOffice/Security/BackOfficeSecurityStampValidator.cs +++ b/src/Umbraco.Web.BackOffice/Security/BackOfficeSecurityStampValidator.cs @@ -1,14 +1,10 @@ -using System; -using System.Security.Claims; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Authentication; +using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Identity; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using Umbraco.Core.Security; -using Umbraco.Web.Common.Security; -namespace Umbraco.Web.BackOffice.Security +namespace Umbraco.Cms.Web.BackOffice.Security { /// diff --git a/src/Umbraco.Web.BackOffice/Security/BackOfficeSecurityStampValidatorOptions.cs b/src/Umbraco.Web.BackOffice/Security/BackOfficeSecurityStampValidatorOptions.cs index 55d4a9cb94..bf9a17b71b 100644 --- a/src/Umbraco.Web.BackOffice/Security/BackOfficeSecurityStampValidatorOptions.cs +++ b/src/Umbraco.Web.BackOffice/Security/BackOfficeSecurityStampValidatorOptions.cs @@ -1,6 +1,6 @@ using Microsoft.AspNetCore.Identity; -namespace Umbraco.Web.BackOffice.Security +namespace Umbraco.Cms.Web.BackOffice.Security { /// /// Custom for the back office diff --git a/src/Umbraco.Web.BackOffice/Security/BackOfficeSessionIdValidator.cs b/src/Umbraco.Web.BackOffice/Security/BackOfficeSessionIdValidator.cs index 709416c420..2631d6c900 100644 --- a/src/Umbraco.Web.BackOffice/Security/BackOfficeSessionIdValidator.cs +++ b/src/Umbraco.Web.BackOffice/Security/BackOfficeSessionIdValidator.cs @@ -8,12 +8,12 @@ using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Authentication.Cookies; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; +using Umbraco.Cms.Core.Configuration.Models; using Umbraco.Core.Security; using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Security +namespace Umbraco.Cms.Web.BackOffice.Security { /// /// Used to validate a cookie against a user's session id diff --git a/src/Umbraco.Web.BackOffice/Security/BackOfficeSignInManager.cs b/src/Umbraco.Web.BackOffice/Security/BackOfficeSignInManager.cs index 6d1c348d7f..ea8a0dcfc9 100644 --- a/src/Umbraco.Web.BackOffice/Security/BackOfficeSignInManager.cs +++ b/src/Umbraco.Web.BackOffice/Security/BackOfficeSignInManager.cs @@ -1,25 +1,22 @@ -using Microsoft.AspNetCore.Authentication; -using Microsoft.AspNetCore.Http; -using Microsoft.AspNetCore.Identity; -using Microsoft.Extensions.Logging; -using Microsoft.Extensions.Options; -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Security.Claims; using System.Threading.Tasks; -using Umbraco.Core; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; +using Microsoft.AspNetCore.Authentication; +using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Identity; +using Microsoft.Extensions.Logging; +using Microsoft.Extensions.Options; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Web.Common.Security; using Umbraco.Core.Security; using Umbraco.Extensions; -using Umbraco.Net; -using Umbraco.Web.BackOffice.Security; -namespace Umbraco.Web.Common.Security +namespace Umbraco.Cms.Web.BackOffice.Security { - using Constants = Umbraco.Core.Constants; + using Constants = Core.Constants; public class BackOfficeSignInManager : SignInManager, IBackOfficeSignInManager { diff --git a/src/Umbraco.Web.BackOffice/Security/BackOfficeUserManagerAuditer.cs b/src/Umbraco.Web.BackOffice/Security/BackOfficeUserManagerAuditer.cs index 81be953d22..a90a3a4466 100644 --- a/src/Umbraco.Web.BackOffice/Security/BackOfficeUserManagerAuditer.cs +++ b/src/Umbraco.Web.BackOffice/Security/BackOfficeUserManagerAuditer.cs @@ -1,13 +1,15 @@ using System; using Microsoft.Extensions.Options; -using Umbraco.Core; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Web.Common.Security; using Umbraco.Core.Compose; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Models.Membership; using Umbraco.Core.Security; -using Umbraco.Core.Services; +using Umbraco.Extensions; -namespace Umbraco.Web.Common.Security +namespace Umbraco.Cms.Web.BackOffice.Security { /// /// Binds to events to write audit logs for the diff --git a/src/Umbraco.Web.BackOffice/Security/ConfigureBackOfficeCookieOptions.cs b/src/Umbraco.Web.BackOffice/Security/ConfigureBackOfficeCookieOptions.cs index c267cb7489..03807fd70d 100644 --- a/src/Umbraco.Web.BackOffice/Security/ConfigureBackOfficeCookieOptions.cs +++ b/src/Umbraco.Web.BackOffice/Security/ConfigureBackOfficeCookieOptions.cs @@ -5,22 +5,20 @@ using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Authentication.Cookies; using Microsoft.AspNetCore.DataProtection; using Microsoft.AspNetCore.Http; -using Microsoft.AspNetCore.Routing; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Core.Routing; -using Umbraco.Core.Security; -using Umbraco.Core.Services; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Net; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Web; using Umbraco.Extensions; -using Umbraco.Net; -using Umbraco.Web.Common.Security; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Security +namespace Umbraco.Cms.Web.BackOffice.Security { /// /// Used to configure for the back office authentication type @@ -119,7 +117,7 @@ namespace Umbraco.Web.BackOffice.Security options.CookieManager = new BackOfficeCookieManager( _umbracoContextAccessor, _runtimeState, - _umbracoRequestPaths); + _umbracoRequestPaths); options.Events = new CookieAuthenticationEvents { diff --git a/src/Umbraco.Web.BackOffice/Security/ConfigureBackOfficeIdentityOptions.cs b/src/Umbraco.Web.BackOffice/Security/ConfigureBackOfficeIdentityOptions.cs index 989c852350..052bc35a64 100644 --- a/src/Umbraco.Web.BackOffice/Security/ConfigureBackOfficeIdentityOptions.cs +++ b/src/Umbraco.Web.BackOffice/Security/ConfigureBackOfficeIdentityOptions.cs @@ -2,12 +2,12 @@ using System; using System.Security.Claims; using Microsoft.AspNetCore.Identity; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Configuration.Models; using Umbraco.Core.Security; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Security +namespace Umbraco.Cms.Web.BackOffice.Security { /// /// Used to configure for the Umbraco Back office diff --git a/src/Umbraco.Web.BackOffice/Security/ConfigureBackOfficeSecurityStampValidatorOptions.cs b/src/Umbraco.Web.BackOffice/Security/ConfigureBackOfficeSecurityStampValidatorOptions.cs index 1facf094d1..88099b4c6e 100644 --- a/src/Umbraco.Web.BackOffice/Security/ConfigureBackOfficeSecurityStampValidatorOptions.cs +++ b/src/Umbraco.Web.BackOffice/Security/ConfigureBackOfficeSecurityStampValidatorOptions.cs @@ -1,7 +1,7 @@ -using Microsoft.Extensions.Options; -using System; +using System; +using Microsoft.Extensions.Options; -namespace Umbraco.Web.BackOffice.Security +namespace Umbraco.Cms.Web.BackOffice.Security { /// /// Configures the back office security stamp options diff --git a/src/Umbraco.Web.BackOffice/Security/ExternalSignInAutoLinkOptions.cs b/src/Umbraco.Web.BackOffice/Security/ExternalSignInAutoLinkOptions.cs index 8636d9e62d..44a83cfeb8 100644 --- a/src/Umbraco.Web.BackOffice/Security/ExternalSignInAutoLinkOptions.cs +++ b/src/Umbraco.Web.BackOffice/Security/ExternalSignInAutoLinkOptions.cs @@ -1,11 +1,11 @@ -using Microsoft.AspNetCore.Identity; -using System; +using System; using System.Runtime.Serialization; -using Umbraco.Core.Configuration.Models; +using Microsoft.AspNetCore.Identity; +using Umbraco.Cms.Core.Configuration.Models; using Umbraco.Core.Security; -using SecurityConstants = Umbraco.Core.Constants.Security; +using SecurityConstants = Umbraco.Cms.Core.Constants.Security; -namespace Umbraco.Web.BackOffice.Security +namespace Umbraco.Cms.Web.BackOffice.Security { /// /// Options used to configure auto-linking external OAuth providers diff --git a/src/Umbraco.Web.BackOffice/Security/IBackOfficeAntiforgery.cs b/src/Umbraco.Web.BackOffice/Security/IBackOfficeAntiforgery.cs index d34fd493df..ded1374db2 100644 --- a/src/Umbraco.Web.BackOffice/Security/IBackOfficeAntiforgery.cs +++ b/src/Umbraco.Web.BackOffice/Security/IBackOfficeAntiforgery.cs @@ -1,9 +1,8 @@ -using Microsoft.AspNetCore.Antiforgery; +using System.Threading.Tasks; using Microsoft.AspNetCore.Http; -using System.Threading.Tasks; -using Umbraco.Core; +using Umbraco.Cms.Core; -namespace Umbraco.Web.BackOffice.Security +namespace Umbraco.Cms.Web.BackOffice.Security { /// /// Antiforgery implementation for the Umbraco back office diff --git a/src/Umbraco.Web.BackOffice/Security/IBackOfficeExternalLoginProviders.cs b/src/Umbraco.Web.BackOffice/Security/IBackOfficeExternalLoginProviders.cs index ff22b91b0a..d47873f3cd 100644 --- a/src/Umbraco.Web.BackOffice/Security/IBackOfficeExternalLoginProviders.cs +++ b/src/Umbraco.Web.BackOffice/Security/IBackOfficeExternalLoginProviders.cs @@ -1,9 +1,6 @@ -using Microsoft.AspNetCore.Authentication.OAuth; -using System.Collections.Concurrent; -using System.Collections.Generic; -using System.Text; +using System.Collections.Generic; -namespace Umbraco.Web.BackOffice.Security +namespace Umbraco.Cms.Web.BackOffice.Security { /// diff --git a/src/Umbraco.Web.BackOffice/Security/IBackOfficeSignInManager.cs b/src/Umbraco.Web.BackOffice/Security/IBackOfficeSignInManager.cs index 669ca21239..7b18f4b04f 100644 --- a/src/Umbraco.Web.BackOffice/Security/IBackOfficeSignInManager.cs +++ b/src/Umbraco.Web.BackOffice/Security/IBackOfficeSignInManager.cs @@ -1,11 +1,11 @@ -using Microsoft.AspNetCore.Authentication; -using Microsoft.AspNetCore.Identity; -using System.Collections.Generic; +using System.Collections.Generic; using System.Security.Claims; using System.Threading.Tasks; +using Microsoft.AspNetCore.Authentication; +using Microsoft.AspNetCore.Identity; using Umbraco.Core.Security; -namespace Umbraco.Web.Common.Security +namespace Umbraco.Cms.Web.BackOffice.Security { /// /// A for the back office with a diff --git a/src/Umbraco.Web.BackOffice/Security/IBackOfficeTwoFactorOptions.cs b/src/Umbraco.Web.BackOffice/Security/IBackOfficeTwoFactorOptions.cs index a05d71f3cb..291781fb23 100644 --- a/src/Umbraco.Web.BackOffice/Security/IBackOfficeTwoFactorOptions.cs +++ b/src/Umbraco.Web.BackOffice/Security/IBackOfficeTwoFactorOptions.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.BackOffice.Security +namespace Umbraco.Cms.Web.BackOffice.Security { /// /// Options used to control 2FA for the Umbraco back office diff --git a/src/Umbraco.Web.BackOffice/Security/NoopBackOfficeTwoFactorOptions.cs b/src/Umbraco.Web.BackOffice/Security/NoopBackOfficeTwoFactorOptions.cs index bbc0b3e049..05cc7970b4 100644 --- a/src/Umbraco.Web.BackOffice/Security/NoopBackOfficeTwoFactorOptions.cs +++ b/src/Umbraco.Web.BackOffice/Security/NoopBackOfficeTwoFactorOptions.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.BackOffice.Security +namespace Umbraco.Cms.Web.BackOffice.Security { public class NoopBackOfficeTwoFactorOptions : IBackOfficeTwoFactorOptions { diff --git a/src/Umbraco.Web.BackOffice/Security/PasswordChanger.cs b/src/Umbraco.Web.BackOffice/Security/PasswordChanger.cs index 180f433fab..e5bbaf3845 100644 --- a/src/Umbraco.Web.BackOffice/Security/PasswordChanger.cs +++ b/src/Umbraco.Web.BackOffice/Security/PasswordChanger.cs @@ -2,14 +2,14 @@ using System; using System.ComponentModel.DataAnnotations; using System.Threading.Tasks; using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Core.Models; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models; using Umbraco.Core.Security; using Umbraco.Extensions; -using Umbraco.Web.Models; -using IUser = Umbraco.Core.Models.Membership.IUser; +using Constants = Umbraco.Cms.Core.Constants; +using IUser = Umbraco.Cms.Core.Models.Membership.IUser; -namespace Umbraco.Web.BackOffice.Security +namespace Umbraco.Cms.Web.BackOffice.Security { internal class PasswordChanger { @@ -59,7 +59,7 @@ namespace Umbraco.Web.BackOffice.Security } //if the current user has access to reset/manually change the password - if (currentUser.HasSectionAccess(Umbraco.Core.Constants.Applications.Users) == false) + if (currentUser.HasSectionAccess(Constants.Applications.Users) == false) { return Attempt.Fail(new PasswordChangedModel { ChangeError = new ValidationResult("The current user is not authorized", new[] { "value" }) }); } diff --git a/src/Umbraco.Web.BackOffice/Services/IconService.cs b/src/Umbraco.Web.BackOffice/Services/IconService.cs index 07a52b4446..e80fe24894 100644 --- a/src/Umbraco.Web.BackOffice/Services/IconService.cs +++ b/src/Umbraco.Web.BackOffice/Services/IconService.cs @@ -3,13 +3,14 @@ using System.IO; using System.Linq; using Ganss.XSS; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Core.Models; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Services +namespace Umbraco.Cms.Web.BackOffice.Services { public class IconService : IIconService { diff --git a/src/Umbraco.Web.BackOffice/SignalR/IPreviewHub.cs b/src/Umbraco.Web.BackOffice/SignalR/IPreviewHub.cs index 810124010c..1123bc6b16 100644 --- a/src/Umbraco.Web.BackOffice/SignalR/IPreviewHub.cs +++ b/src/Umbraco.Web.BackOffice/SignalR/IPreviewHub.cs @@ -1,6 +1,6 @@ using System.Threading.Tasks; -namespace Umbraco.Web.BackOffice.SignalR +namespace Umbraco.Cms.Web.BackOffice.SignalR { public interface IPreviewHub { diff --git a/src/Umbraco.Web.BackOffice/SignalR/PreviewHub.cs b/src/Umbraco.Web.BackOffice/SignalR/PreviewHub.cs index e5caea552a..38ab3b478d 100644 --- a/src/Umbraco.Web.BackOffice/SignalR/PreviewHub.cs +++ b/src/Umbraco.Web.BackOffice/SignalR/PreviewHub.cs @@ -1,6 +1,6 @@ using Microsoft.AspNetCore.SignalR; -namespace Umbraco.Web.BackOffice.SignalR +namespace Umbraco.Cms.Web.BackOffice.SignalR { public class PreviewHub : Hub { } diff --git a/src/Umbraco.Web.BackOffice/SignalR/PreviewHubComponent.cs b/src/Umbraco.Web.BackOffice/SignalR/PreviewHubComponent.cs index ca3d40ccc8..00d3dc8013 100644 --- a/src/Umbraco.Web.BackOffice/SignalR/PreviewHubComponent.cs +++ b/src/Umbraco.Web.BackOffice/SignalR/PreviewHubComponent.cs @@ -1,11 +1,10 @@ using System; using Microsoft.AspNetCore.SignalR; -using Umbraco.Core.Cache; -using Umbraco.Core.Composing; -using Umbraco.Core.Sync; -using Umbraco.Web.Cache; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Sync; -namespace Umbraco.Web.BackOffice.SignalR +namespace Umbraco.Cms.Web.BackOffice.SignalR { public class PreviewHubComponent : IComponent { diff --git a/src/Umbraco.Web.BackOffice/SignalR/PreviewHubComposer.cs b/src/Umbraco.Web.BackOffice/SignalR/PreviewHubComposer.cs index 9b06e07f7c..18b8f90825 100644 --- a/src/Umbraco.Web.BackOffice/SignalR/PreviewHubComposer.cs +++ b/src/Umbraco.Web.BackOffice/SignalR/PreviewHubComposer.cs @@ -1,8 +1,7 @@ -using Umbraco.Core; -using Umbraco.Core.DependencyInjection; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.DependencyInjection; -namespace Umbraco.Web.BackOffice.SignalR +namespace Umbraco.Cms.Web.BackOffice.SignalR { public class PreviewHubComposer : ComponentComposer, ICoreComposer { diff --git a/src/Umbraco.Web.BackOffice/Trees/ApplicationTreeController.cs b/src/Umbraco.Web.BackOffice/Trees/ApplicationTreeController.cs index 36eddd0d32..84f2b5f574 100644 --- a/src/Umbraco.Web.BackOffice/Trees/ApplicationTreeController.cs +++ b/src/Umbraco.Web.BackOffice/Trees/ApplicationTreeController.cs @@ -8,19 +8,19 @@ using Microsoft.AspNetCore.Mvc.Controllers; using Microsoft.AspNetCore.Mvc.Infrastructure; using Microsoft.AspNetCore.Routing; using Microsoft.Extensions.Primitives; -using Umbraco.Core; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Trees; +using Umbraco.Cms.Web.BackOffice.Controllers; +using Umbraco.Cms.Web.BackOffice.Extensions; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Filters; +using Umbraco.Cms.Web.Common.ModelBinders; using Umbraco.Extensions; -using Umbraco.Web.BackOffice.Controllers; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Filters; -using Umbraco.Web.Common.ModelBinders; using Umbraco.Web.Models.Trees; -using Umbraco.Web.Services; -using Umbraco.Web.Trees; -using static Umbraco.Core.Constants.Web.Routing; +using static Umbraco.Cms.Core.Constants.Web.Routing; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Trees +namespace Umbraco.Cms.Web.BackOffice.Trees { /// /// Used to return tree root nodes diff --git a/src/Umbraco.Web.BackOffice/Trees/ContentBlueprintTreeController.cs b/src/Umbraco.Web.BackOffice/Trees/ContentBlueprintTreeController.cs index c0396b68e6..4b48902e17 100644 --- a/src/Umbraco.Web.BackOffice/Trees/ContentBlueprintTreeController.cs +++ b/src/Umbraco.Web.BackOffice/Trees/ContentBlueprintTreeController.cs @@ -3,18 +3,19 @@ using System.Linq; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Services; -using Umbraco.Web.Actions; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Authorization; -using Umbraco.Web.Models.Trees; -using Umbraco.Web.Trees; -using Umbraco.Web.WebApi; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Actions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Trees; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Trees; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Trees +namespace Umbraco.Cms.Web.BackOffice.Trees { /// /// The content blueprint tree controller diff --git a/src/Umbraco.Web.BackOffice/Trees/ContentTreeController.cs b/src/Umbraco.Web.BackOffice/Trees/ContentTreeController.cs index 4c139847f0..63326a8c7a 100644 --- a/src/Umbraco.Web.BackOffice/Trees/ContentTreeController.cs +++ b/src/Umbraco.Web.BackOffice/Trees/ContentTreeController.cs @@ -6,23 +6,24 @@ using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Actions; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Trees; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Trees; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Core.Trees; -using Umbraco.Web.Actions; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Authorization; -using Umbraco.Web.Models.ContentEditing; -using Umbraco.Web.Models.Trees; +using Umbraco.Extensions; using Umbraco.Web.Search; -using Umbraco.Web.Trees; -using Umbraco.Web.WebApi; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Trees +namespace Umbraco.Cms.Web.BackOffice.Trees { [Authorize(Policy = AuthorizationPolicies.SectionAccessForContentTree)] [Tree(Constants.Applications.Content, Constants.Trees.Content)] diff --git a/src/Umbraco.Web.BackOffice/Trees/ContentTreeControllerBase.cs b/src/Umbraco.Web.BackOffice/Trees/ContentTreeControllerBase.cs index 212b4dd890..7bb9782c5e 100644 --- a/src/Umbraco.Web.BackOffice/Trees/ContentTreeControllerBase.cs +++ b/src/Umbraco.Web.BackOffice/Trees/ContentTreeControllerBase.cs @@ -5,19 +5,19 @@ using System.Linq; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Security; -using Umbraco.Core.Services; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Actions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Trees; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Trees; +using Umbraco.Cms.Web.Common.ModelBinders; using Umbraco.Extensions; -using Umbraco.Web.Actions; -using Umbraco.Web.Common.ModelBinders; -using Umbraco.Web.Models.Trees; -using Umbraco.Web.Trees; -using Umbraco.Web.WebApi; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Trees +namespace Umbraco.Cms.Web.BackOffice.Trees { public abstract class ContentTreeControllerBase : TreeController, ITreeNodeController { diff --git a/src/Umbraco.Web.BackOffice/Trees/ContentTypeTreeController.cs b/src/Umbraco.Web.BackOffice/Trees/ContentTypeTreeController.cs index f115e3e923..2151141406 100644 --- a/src/Umbraco.Web.BackOffice/Trees/ContentTypeTreeController.cs +++ b/src/Umbraco.Web.BackOffice/Trees/ContentTypeTreeController.cs @@ -4,20 +4,20 @@ using System.Linq; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Services; -using Umbraco.Core.Trees; -using Umbraco.Web.Actions; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Authorization; -using Umbraco.Web.Models.ContentEditing; -using Umbraco.Web.Models.Trees; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Actions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Models.Trees; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Trees; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; +using Umbraco.Extensions; using Umbraco.Web.Search; -using Umbraco.Web.Trees; -using Umbraco.Web.WebApi; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Trees +namespace Umbraco.Cms.Web.BackOffice.Trees { [Authorize(Policy = AuthorizationPolicies.TreeAccessDocumentTypes)] [Tree(Constants.Applications.Settings, Constants.Trees.DocumentTypes, SortOrder = 0, TreeGroup = Constants.Trees.Groups.Settings)] diff --git a/src/Umbraco.Web.BackOffice/Trees/DataTypeTreeController.cs b/src/Umbraco.Web.BackOffice/Trees/DataTypeTreeController.cs index 79cfee1ce7..714fb6954c 100644 --- a/src/Umbraco.Web.BackOffice/Trees/DataTypeTreeController.cs +++ b/src/Umbraco.Web.BackOffice/Trees/DataTypeTreeController.cs @@ -4,20 +4,20 @@ using System.Linq; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Services; -using Umbraco.Core.Trees; -using Umbraco.Web.Actions; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Authorization; -using Umbraco.Web.Models.ContentEditing; -using Umbraco.Web.Models.Trees; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Actions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Models.Trees; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Trees; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; +using Umbraco.Extensions; using Umbraco.Web.Search; -using Umbraco.Web.Trees; -using Umbraco.Web.WebApi; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Trees +namespace Umbraco.Cms.Web.BackOffice.Trees { [Authorize(Policy = AuthorizationPolicies.TreeAccessDataTypes)] [Tree(Constants.Applications.Settings, Constants.Trees.DataTypes, SortOrder = 3, TreeGroup = Constants.Trees.Groups.Settings)] @@ -67,7 +67,7 @@ namespace Umbraco.Web.BackOffice.Trees var systemListViewDataTypeIds = GetNonDeletableSystemListViewDataTypeIds(); var children = _entityService.GetChildren(intId.Result, UmbracoObjectTypes.DataType).ToArray(); - var dataTypes = _dataTypeService.GetAll(children.Select(c => c.Id).ToArray()).ToDictionary(dt => dt.Id); + var dataTypes = Enumerable.ToDictionary(_dataTypeService.GetAll(children.Select(c => c.Id).ToArray()), dt => dt.Id); nodes.AddRange( children diff --git a/src/Umbraco.Web.BackOffice/Trees/DictionaryTreeController.cs b/src/Umbraco.Web.BackOffice/Trees/DictionaryTreeController.cs index 87f7a1508f..3355cc5312 100644 --- a/src/Umbraco.Web.BackOffice/Trees/DictionaryTreeController.cs +++ b/src/Umbraco.Web.BackOffice/Trees/DictionaryTreeController.cs @@ -3,17 +3,18 @@ using System.Linq; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Services; -using Umbraco.Web.Actions; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Authorization; -using Umbraco.Web.Models.Trees; -using Umbraco.Web.Trees; -using Umbraco.Web.WebApi; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Actions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Trees; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Trees; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Trees +namespace Umbraco.Cms.Web.BackOffice.Trees { // We are allowed to see the dictionary tree, if we are allowed to manage templates, such that se can use the diff --git a/src/Umbraco.Web.BackOffice/Trees/FileSystemTreeController.cs b/src/Umbraco.Web.BackOffice/Trees/FileSystemTreeController.cs index ab77e00067..fffa767ad0 100644 --- a/src/Umbraco.Web.BackOffice/Trees/FileSystemTreeController.cs +++ b/src/Umbraco.Web.BackOffice/Trees/FileSystemTreeController.cs @@ -4,15 +4,16 @@ using System.Linq; using System.Net; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; -using Umbraco.Core; -using Umbraco.Core.IO; -using Umbraco.Core.Services; -using Umbraco.Web.Actions; -using Umbraco.Web.Models.Trees; -using Umbraco.Web.Trees; -using Umbraco.Web.WebApi; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Actions; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models.Trees; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Trees; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Trees +namespace Umbraco.Cms.Web.BackOffice.Trees { public abstract class FileSystemTreeController : TreeController { diff --git a/src/Umbraco.Web.BackOffice/Trees/FilesTreeController.cs b/src/Umbraco.Web.BackOffice/Trees/FilesTreeController.cs index 11e2ae8fc7..e324cddfbc 100644 --- a/src/Umbraco.Web.BackOffice/Trees/FilesTreeController.cs +++ b/src/Umbraco.Web.BackOffice/Trees/FilesTreeController.cs @@ -1,12 +1,10 @@ -using Umbraco.Core; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; -using Umbraco.Core.Logging; -using Umbraco.Core.Services; -using Umbraco.Web.Trees; -using Umbraco.Web.WebApi; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Trees; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Trees +namespace Umbraco.Cms.Web.BackOffice.Trees { [Tree(Constants.Applications.Settings, "files", TreeTitle = "Files", TreeUse = TreeUse.Dialog)] [CoreTree] diff --git a/src/Umbraco.Web.BackOffice/Trees/ITreeNodeController.cs b/src/Umbraco.Web.BackOffice/Trees/ITreeNodeController.cs index 12ff485938..409d92558c 100644 --- a/src/Umbraco.Web.BackOffice/Trees/ITreeNodeController.cs +++ b/src/Umbraco.Web.BackOffice/Trees/ITreeNodeController.cs @@ -1,9 +1,9 @@ -using Umbraco.Web.Models.Trees; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; -using Umbraco.Web.Common.ModelBinders; +using Umbraco.Cms.Core.Trees; +using Umbraco.Cms.Web.Common.ModelBinders; -namespace Umbraco.Web.BackOffice.Trees +namespace Umbraco.Cms.Web.BackOffice.Trees { /// /// Represents an TreeNodeController diff --git a/src/Umbraco.Web.BackOffice/Trees/LanguageTreeController.cs b/src/Umbraco.Web.BackOffice/Trees/LanguageTreeController.cs index 3dcbbc9da8..a3e55a68dc 100644 --- a/src/Umbraco.Web.BackOffice/Trees/LanguageTreeController.cs +++ b/src/Umbraco.Web.BackOffice/Trees/LanguageTreeController.cs @@ -1,15 +1,14 @@ using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; -using Umbraco.Core; -using Umbraco.Core.Services; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Authorization; -using Umbraco.Web.Models.Trees; -using Umbraco.Web.Trees; -using Umbraco.Web.WebApi; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Trees; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Trees +namespace Umbraco.Cms.Web.BackOffice.Trees { [Authorize(Policy = AuthorizationPolicies.TreeAccessLanguages)] [Tree(Constants.Applications.Settings, Constants.Trees.Languages, SortOrder = 11, TreeGroup = Constants.Trees.Groups.Settings)] diff --git a/src/Umbraco.Web.BackOffice/Trees/LogViewerTreeController.cs b/src/Umbraco.Web.BackOffice/Trees/LogViewerTreeController.cs index 91b89cee69..7a9eec99fe 100644 --- a/src/Umbraco.Web.BackOffice/Trees/LogViewerTreeController.cs +++ b/src/Umbraco.Web.BackOffice/Trees/LogViewerTreeController.cs @@ -1,15 +1,14 @@ using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; -using Umbraco.Core; -using Umbraco.Core.Services; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Authorization; -using Umbraco.Web.Models.Trees; -using Umbraco.Web.Trees; -using Umbraco.Web.WebApi; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Trees; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Trees +namespace Umbraco.Cms.Web.BackOffice.Trees { [Authorize(Policy = AuthorizationPolicies.TreeAccessLogs)] [Tree(Constants.Applications.Settings, Constants.Trees.LogViewer, SortOrder= 9, TreeGroup = Constants.Trees.Groups.Settings)] diff --git a/src/Umbraco.Web.BackOffice/Trees/MacrosTreeController.cs b/src/Umbraco.Web.BackOffice/Trees/MacrosTreeController.cs index d59c5c8d3a..8f587bd9a4 100644 --- a/src/Umbraco.Web.BackOffice/Trees/MacrosTreeController.cs +++ b/src/Umbraco.Web.BackOffice/Trees/MacrosTreeController.cs @@ -2,16 +2,16 @@ using System.Linq; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; -using Umbraco.Core; -using Umbraco.Core.Services; -using Umbraco.Web.Actions; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Authorization; -using Umbraco.Web.Models.Trees; -using Umbraco.Web.Trees; -using Umbraco.Web.WebApi; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Actions; +using Umbraco.Cms.Core.Models.Trees; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Trees; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Trees +namespace Umbraco.Cms.Web.BackOffice.Trees { [Authorize(Policy = AuthorizationPolicies.TreeAccessMacros)] [Tree(Constants.Applications.Settings, Constants.Trees.Macros, TreeTitle = "Macros", SortOrder = 4, TreeGroup = Constants.Trees.Groups.Settings)] diff --git a/src/Umbraco.Web.BackOffice/Trees/MediaTreeController.cs b/src/Umbraco.Web.BackOffice/Trees/MediaTreeController.cs index 1354fc3d7c..74c6ef39d2 100644 --- a/src/Umbraco.Web.BackOffice/Trees/MediaTreeController.cs +++ b/src/Umbraco.Web.BackOffice/Trees/MediaTreeController.cs @@ -1,31 +1,26 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Net; -using Microsoft.AspNetCore.Http; -using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Services; -using Umbraco.Web.Actions; -using Umbraco.Web.Models.Trees; -using Umbraco.Web.Models.ContentEditing; -using Umbraco.Web.Search; -using Umbraco.Core.Security; -using Constants = Umbraco.Core.Constants; -using Umbraco.Web.BackOffice.Filters; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Exceptions; -using Umbraco.Web.Security; -using Umbraco.Web.Trees; -using Umbraco.Web.WebApi; using Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; -using Umbraco.Web.Common.Authorization; -using Umbraco.Core.Trees; +using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Actions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Trees; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Trees; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; +using Umbraco.Extensions; +using Umbraco.Web.Search; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Trees +namespace Umbraco.Cms.Web.BackOffice.Trees { [Authorize(Policy = AuthorizationPolicies.SectionAccessForMediaTree)] [Tree(Constants.Applications.Media, Constants.Trees.Media)] diff --git a/src/Umbraco.Web.BackOffice/Trees/MediaTypeTreeController.cs b/src/Umbraco.Web.BackOffice/Trees/MediaTypeTreeController.cs index ff53a82219..8b1a6c70a1 100644 --- a/src/Umbraco.Web.BackOffice/Trees/MediaTypeTreeController.cs +++ b/src/Umbraco.Web.BackOffice/Trees/MediaTypeTreeController.cs @@ -4,20 +4,20 @@ using System.Linq; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Services; -using Umbraco.Core.Trees; -using Umbraco.Web.Actions; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Authorization; -using Umbraco.Web.Models.ContentEditing; -using Umbraco.Web.Models.Trees; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Actions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Models.Trees; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Trees; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; +using Umbraco.Extensions; using Umbraco.Web.Search; -using Umbraco.Web.Trees; -using Umbraco.Web.WebApi; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Trees +namespace Umbraco.Cms.Web.BackOffice.Trees { [Authorize(Policy = AuthorizationPolicies.TreeAccessMediaTypes)] [Tree(Constants.Applications.Settings, Constants.Trees.MediaTypes, SortOrder = 1, TreeGroup = Constants.Trees.Groups.Settings)] diff --git a/src/Umbraco.Web.BackOffice/Trees/MemberGroupTreeController.cs b/src/Umbraco.Web.BackOffice/Trees/MemberGroupTreeController.cs index 5184325db8..10379c7991 100644 --- a/src/Umbraco.Web.BackOffice/Trees/MemberGroupTreeController.cs +++ b/src/Umbraco.Web.BackOffice/Trees/MemberGroupTreeController.cs @@ -3,15 +3,14 @@ using System.Linq; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; -using Umbraco.Core; -using Umbraco.Core.Services; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Authorization; -using Umbraco.Web.Models.Trees; -using Umbraco.Web.Trees; -using Umbraco.Web.WebApi; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Trees; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Trees +namespace Umbraco.Cms.Web.BackOffice.Trees { [Authorize(Policy = AuthorizationPolicies.TreeAccessMemberGroups)] [Tree(Constants.Applications.Members, Constants.Trees.MemberGroups, SortOrder = 1)] diff --git a/src/Umbraco.Web.BackOffice/Trees/MemberTreeController.cs b/src/Umbraco.Web.BackOffice/Trees/MemberTreeController.cs index 0a68c36e08..5d72327525 100644 --- a/src/Umbraco.Web.BackOffice/Trees/MemberTreeController.cs +++ b/src/Umbraco.Web.BackOffice/Trees/MemberTreeController.cs @@ -4,23 +4,22 @@ using System.Linq; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Core.Trees; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Actions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Models.Trees; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Trees; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; +using Umbraco.Cms.Web.Common.ModelBinders; using Umbraco.Extensions; -using Umbraco.Web.Actions; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Authorization; -using Umbraco.Web.Common.ModelBinders; -using Umbraco.Web.Models.ContentEditing; -using Umbraco.Web.Models.Trees; using Umbraco.Web.Search; -using Umbraco.Web.Trees; -using Umbraco.Web.WebApi; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Trees +namespace Umbraco.Cms.Web.BackOffice.Trees { [Authorize(Policy = AuthorizationPolicies.SectionAccessForMemberTree)] [Tree(Constants.Applications.Members, Constants.Trees.Members, SortOrder = 0)] diff --git a/src/Umbraco.Web.BackOffice/Trees/MemberTypeAndGroupTreeControllerBase.cs b/src/Umbraco.Web.BackOffice/Trees/MemberTypeAndGroupTreeControllerBase.cs index 0804e78c8a..35c4d04d9f 100644 --- a/src/Umbraco.Web.BackOffice/Trees/MemberTypeAndGroupTreeControllerBase.cs +++ b/src/Umbraco.Web.BackOffice/Trees/MemberTypeAndGroupTreeControllerBase.cs @@ -1,15 +1,15 @@ using System.Collections.Generic; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; -using Umbraco.Core; -using Umbraco.Core.Services; -using Umbraco.Web.Actions; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Models.Trees; -using Umbraco.Web.Trees; -using Umbraco.Web.WebApi; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Actions; +using Umbraco.Cms.Core.Models.Trees; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Trees; +using Umbraco.Cms.Web.Common.Attributes; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Trees +namespace Umbraco.Cms.Web.BackOffice.Trees { [PluginController(Constants.Web.Mvc.BackOfficeTreeArea)] [CoreTree] diff --git a/src/Umbraco.Web.BackOffice/Trees/MemberTypeTreeController.cs b/src/Umbraco.Web.BackOffice/Trees/MemberTypeTreeController.cs index 5d44d7c832..731543a96c 100644 --- a/src/Umbraco.Web.BackOffice/Trees/MemberTypeTreeController.cs +++ b/src/Umbraco.Web.BackOffice/Trees/MemberTypeTreeController.cs @@ -3,19 +3,17 @@ using System.Linq; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Services; -using Umbraco.Core.Trees; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Authorization; -using Umbraco.Web.Models.ContentEditing; -using Umbraco.Web.Models.Trees; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Trees; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; using Umbraco.Web.Search; -using Umbraco.Web.Trees; -using Umbraco.Web.WebApi; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Trees +namespace Umbraco.Cms.Web.BackOffice.Trees { [CoreTree] [Authorize(Policy = AuthorizationPolicies.TreeAccessMemberTypes)] diff --git a/src/Umbraco.Web.BackOffice/Trees/MenuRenderingEventArgs.cs b/src/Umbraco.Web.BackOffice/Trees/MenuRenderingEventArgs.cs index 74a557854f..5ec827eb4a 100644 --- a/src/Umbraco.Web.BackOffice/Trees/MenuRenderingEventArgs.cs +++ b/src/Umbraco.Web.BackOffice/Trees/MenuRenderingEventArgs.cs @@ -1,7 +1,7 @@ using Microsoft.AspNetCore.Http; -using Umbraco.Web.Models.Trees; +using Umbraco.Cms.Core.Trees; -namespace Umbraco.Web.BackOffice.Trees +namespace Umbraco.Cms.Web.BackOffice.Trees { public class MenuRenderingEventArgs : TreeRenderingEventArgs { diff --git a/src/Umbraco.Web.BackOffice/Trees/PackagesTreeController.cs b/src/Umbraco.Web.BackOffice/Trees/PackagesTreeController.cs index 9b80782725..4d53671388 100644 --- a/src/Umbraco.Web.BackOffice/Trees/PackagesTreeController.cs +++ b/src/Umbraco.Web.BackOffice/Trees/PackagesTreeController.cs @@ -1,15 +1,14 @@ using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; -using Umbraco.Core; -using Umbraco.Core.Services; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Authorization; -using Umbraco.Web.Models.Trees; -using Umbraco.Web.Trees; -using Umbraco.Web.WebApi; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Trees; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Trees +namespace Umbraco.Cms.Web.BackOffice.Trees { [Authorize(Policy = AuthorizationPolicies.TreeAccessPackages)] [Tree(Constants.Applications.Packages, Constants.Trees.Packages, SortOrder = 0, IsSingleNodeTree = true)] diff --git a/src/Umbraco.Web.BackOffice/Trees/PartialViewMacrosTreeController.cs b/src/Umbraco.Web.BackOffice/Trees/PartialViewMacrosTreeController.cs index 484ea21b2f..9a31a286e7 100644 --- a/src/Umbraco.Web.BackOffice/Trees/PartialViewMacrosTreeController.cs +++ b/src/Umbraco.Web.BackOffice/Trees/PartialViewMacrosTreeController.cs @@ -1,14 +1,13 @@ using Microsoft.AspNetCore.Authorization; -using Umbraco.Core.IO; -using Umbraco.Core.Services; -using Umbraco.Web.BackOffice.Filters; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Authorization; -using Umbraco.Web.Trees; -using Umbraco.Web.WebApi; -using Constants = Umbraco.Core.Constants; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Trees; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Trees +namespace Umbraco.Cms.Web.BackOffice.Trees { /// /// Tree for displaying partial view macros in the developer app diff --git a/src/Umbraco.Web.BackOffice/Trees/PartialViewsTreeController.cs b/src/Umbraco.Web.BackOffice/Trees/PartialViewsTreeController.cs index a5707968ee..b9a592ca31 100644 --- a/src/Umbraco.Web.BackOffice/Trees/PartialViewsTreeController.cs +++ b/src/Umbraco.Web.BackOffice/Trees/PartialViewsTreeController.cs @@ -1,18 +1,18 @@ using Microsoft.AspNetCore.Authorization; -using Umbraco.Core.IO; -using Umbraco.Core.Services; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Authorization; -using Umbraco.Web.Trees; -using Umbraco.Web.WebApi; -using Constants = Umbraco.Core.Constants; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Trees; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Trees +namespace Umbraco.Cms.Web.BackOffice.Trees { /// /// Tree for displaying partial views in the settings app /// - [Tree(Core.Constants.Applications.Settings, Core.Constants.Trees.PartialViews, SortOrder = 7, TreeGroup = Core.Constants.Trees.Groups.Templating)] + [Tree(Constants.Applications.Settings, Constants.Trees.PartialViews, SortOrder = 7, TreeGroup = Constants.Trees.Groups.Templating)] [Authorize(Policy = AuthorizationPolicies.TreeAccessPartialViews)] [PluginController(Constants.Web.Mvc.BackOfficeTreeArea)] [CoreTree] diff --git a/src/Umbraco.Web.BackOffice/Trees/RelationTypeTreeController.cs b/src/Umbraco.Web.BackOffice/Trees/RelationTypeTreeController.cs index 2e200e8b0a..f786e68ae0 100644 --- a/src/Umbraco.Web.BackOffice/Trees/RelationTypeTreeController.cs +++ b/src/Umbraco.Web.BackOffice/Trees/RelationTypeTreeController.cs @@ -2,17 +2,17 @@ using System.Linq; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Services; -using Umbraco.Web.Actions; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Authorization; -using Umbraco.Web.Models.Trees; -using Umbraco.Web.Trees; -using Umbraco.Web.WebApi; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Actions; +using Umbraco.Cms.Core.Models.Trees; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Trees; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Trees +namespace Umbraco.Cms.Web.BackOffice.Trees { [Authorize(Policy = AuthorizationPolicies.TreeAccessRelationTypes)] [Tree(Constants.Applications.Settings, Constants.Trees.RelationTypes, SortOrder = 5, TreeGroup = Constants.Trees.Groups.Settings)] diff --git a/src/Umbraco.Web.BackOffice/Trees/ScriptsTreeController.cs b/src/Umbraco.Web.BackOffice/Trees/ScriptsTreeController.cs index 4b29c458a1..7b0f8a7574 100644 --- a/src/Umbraco.Web.BackOffice/Trees/ScriptsTreeController.cs +++ b/src/Umbraco.Web.BackOffice/Trees/ScriptsTreeController.cs @@ -1,11 +1,10 @@ -using Umbraco.Core; -using Umbraco.Core.IO; -using Umbraco.Core.Services; -using Umbraco.Web.BackOffice.Trees; -using Umbraco.Web.Trees; -using Umbraco.Web.WebApi; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Trees; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Trees +namespace Umbraco.Cms.Web.BackOffice.Trees { [CoreTree] [Tree(Constants.Applications.Settings, Constants.Trees.Scripts, TreeTitle = "Scripts", SortOrder = 10, TreeGroup = Constants.Trees.Groups.Templating)] diff --git a/src/Umbraco.Web.BackOffice/Trees/StylesheetsTreeController.cs b/src/Umbraco.Web.BackOffice/Trees/StylesheetsTreeController.cs index 5b8a9d5298..36d61a6f42 100644 --- a/src/Umbraco.Web.BackOffice/Trees/StylesheetsTreeController.cs +++ b/src/Umbraco.Web.BackOffice/Trees/StylesheetsTreeController.cs @@ -1,10 +1,10 @@ -using Umbraco.Core; -using Umbraco.Core.IO; -using Umbraco.Core.Services; -using Umbraco.Web.Trees; -using Umbraco.Web.WebApi; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Trees; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Trees +namespace Umbraco.Cms.Web.BackOffice.Trees { [CoreTree] [Tree(Constants.Applications.Settings, Constants.Trees.Stylesheets, TreeTitle = "Stylesheets", SortOrder = 9, TreeGroup = Constants.Trees.Groups.Templating)] diff --git a/src/Umbraco.Web.BackOffice/Trees/TemplatesTreeController.cs b/src/Umbraco.Web.BackOffice/Trees/TemplatesTreeController.cs index a8ebc71581..3b0b586e7d 100644 --- a/src/Umbraco.Web.BackOffice/Trees/TemplatesTreeController.cs +++ b/src/Umbraco.Web.BackOffice/Trees/TemplatesTreeController.cs @@ -4,22 +4,21 @@ using System.Linq; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Services; -using Umbraco.Core.Trees; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Actions; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Models.Trees; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Trees; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; using Umbraco.Extensions; -using Umbraco.Web.Actions; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Authorization; -using Umbraco.Web.Models.ContentEditing; -using Umbraco.Web.Models.Trees; using Umbraco.Web.Search; -using Umbraco.Web.Trees; -using Umbraco.Web.WebApi; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Trees +namespace Umbraco.Cms.Web.BackOffice.Trees { [Authorize(Policy = AuthorizationPolicies.TreeAccessTemplates)] [Tree(Constants.Applications.Settings, Constants.Trees.Templates, SortOrder = 6, TreeGroup = Constants.Trees.Groups.Templating)] diff --git a/src/Umbraco.Web.BackOffice/Trees/TreeAttribute.cs b/src/Umbraco.Web.BackOffice/Trees/TreeAttribute.cs index ba24dea1c1..3a6f9314e3 100644 --- a/src/Umbraco.Web.BackOffice/Trees/TreeAttribute.cs +++ b/src/Umbraco.Web.BackOffice/Trees/TreeAttribute.cs @@ -1,7 +1,7 @@ using System; -using Umbraco.Web.Trees; +using Umbraco.Cms.Core.Trees; -namespace Umbraco.Web.BackOffice.Trees +namespace Umbraco.Cms.Web.BackOffice.Trees { /// /// Identifies a section tree. diff --git a/src/Umbraco.Web.BackOffice/Trees/TreeCollectionBuilder.cs b/src/Umbraco.Web.BackOffice/Trees/TreeCollectionBuilder.cs index a82731f777..2257f80d88 100644 --- a/src/Umbraco.Web.BackOffice/Trees/TreeCollectionBuilder.cs +++ b/src/Umbraco.Web.BackOffice/Trees/TreeCollectionBuilder.cs @@ -1,11 +1,11 @@ using System; using System.Collections.Generic; using Microsoft.Extensions.DependencyInjection; -using Umbraco.Core; -using Umbraco.Core.Composing; -using Umbraco.Web.Trees; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Trees; +using Umbraco.Extensions; -namespace Umbraco.Web.BackOffice.Trees +namespace Umbraco.Cms.Web.BackOffice.Trees { /// /// Builds a . diff --git a/src/Umbraco.Web.BackOffice/Trees/TreeController.cs b/src/Umbraco.Web.BackOffice/Trees/TreeController.cs index 1132b9bd5f..fd5ee6f8d3 100644 --- a/src/Umbraco.Web.BackOffice/Trees/TreeController.cs +++ b/src/Umbraco.Web.BackOffice/Trees/TreeController.cs @@ -1,11 +1,11 @@ using System; using System.Collections.Concurrent; -using Umbraco.Core; -using Umbraco.Core.Services; -using Umbraco.Web.Trees; -using Umbraco.Web.WebApi; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Trees; +using Umbraco.Extensions; -namespace Umbraco.Web.BackOffice.Trees +namespace Umbraco.Cms.Web.BackOffice.Trees { /// /// The base controller for all tree requests diff --git a/src/Umbraco.Web.BackOffice/Trees/TreeControllerBase.cs b/src/Umbraco.Web.BackOffice/Trees/TreeControllerBase.cs index 5c6f8a7fe8..2e0d2b57b0 100644 --- a/src/Umbraco.Web.BackOffice/Trees/TreeControllerBase.cs +++ b/src/Umbraco.Web.BackOffice/Trees/TreeControllerBase.cs @@ -2,20 +2,18 @@ using System; using System.Linq; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; -using Umbraco.Core; -using Umbraco.Core.Events; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Entities; -using Umbraco.Core.Trees; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Entities; +using Umbraco.Cms.Core.Trees; +using Umbraco.Cms.Web.BackOffice.Controllers; +using Umbraco.Cms.Web.Common.Filters; +using Umbraco.Cms.Web.Common.ModelBinders; using Umbraco.Extensions; -using Umbraco.Web.BackOffice.Controllers; -using Umbraco.Web.Common.Filters; -using Umbraco.Web.Common.ModelBinders; -using Umbraco.Web.Models.Trees; -using Umbraco.Web.Trees; -using Umbraco.Web.WebApi; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Trees +namespace Umbraco.Cms.Web.BackOffice.Trees { /// /// A base controller reference for non-attributed trees (un-registered). diff --git a/src/Umbraco.Web.BackOffice/Trees/TreeNodeRenderingEventArgs.cs b/src/Umbraco.Web.BackOffice/Trees/TreeNodeRenderingEventArgs.cs index 50d7b627d9..afd065ffa4 100644 --- a/src/Umbraco.Web.BackOffice/Trees/TreeNodeRenderingEventArgs.cs +++ b/src/Umbraco.Web.BackOffice/Trees/TreeNodeRenderingEventArgs.cs @@ -1,7 +1,7 @@ using Microsoft.AspNetCore.Http; -using Umbraco.Web.Models.Trees; +using Umbraco.Cms.Core.Trees; -namespace Umbraco.Web.BackOffice.Trees +namespace Umbraco.Cms.Web.BackOffice.Trees { public class TreeNodeRenderingEventArgs : TreeRenderingEventArgs { diff --git a/src/Umbraco.Web.BackOffice/Trees/TreeNodesRenderingEventArgs.cs b/src/Umbraco.Web.BackOffice/Trees/TreeNodesRenderingEventArgs.cs index 8c9cfebd83..f0d29a7901 100644 --- a/src/Umbraco.Web.BackOffice/Trees/TreeNodesRenderingEventArgs.cs +++ b/src/Umbraco.Web.BackOffice/Trees/TreeNodesRenderingEventArgs.cs @@ -1,7 +1,7 @@ using Microsoft.AspNetCore.Http; -using Umbraco.Web.Models.Trees; +using Umbraco.Cms.Core.Trees; -namespace Umbraco.Web.BackOffice.Trees +namespace Umbraco.Cms.Web.BackOffice.Trees { public class TreeNodesRenderingEventArgs : TreeRenderingEventArgs { diff --git a/src/Umbraco.Web.BackOffice/Trees/TreeQueryStringParameters.cs b/src/Umbraco.Web.BackOffice/Trees/TreeQueryStringParameters.cs index 80fba4bb34..9497d69dab 100644 --- a/src/Umbraco.Web.BackOffice/Trees/TreeQueryStringParameters.cs +++ b/src/Umbraco.Web.BackOffice/Trees/TreeQueryStringParameters.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.BackOffice.Trees +namespace Umbraco.Cms.Web.BackOffice.Trees { /// /// Common query string parameters used for tree query strings diff --git a/src/Umbraco.Web.BackOffice/Trees/TreeRenderingEventArgs.cs b/src/Umbraco.Web.BackOffice/Trees/TreeRenderingEventArgs.cs index a132e52dad..9d8795938f 100644 --- a/src/Umbraco.Web.BackOffice/Trees/TreeRenderingEventArgs.cs +++ b/src/Umbraco.Web.BackOffice/Trees/TreeRenderingEventArgs.cs @@ -1,7 +1,7 @@ using System; using Microsoft.AspNetCore.Http; -namespace Umbraco.Web.BackOffice.Trees +namespace Umbraco.Cms.Web.BackOffice.Trees { public class TreeRenderingEventArgs : EventArgs { diff --git a/src/Umbraco.Web.BackOffice/Trees/UrlHelperExtensions.cs b/src/Umbraco.Web.BackOffice/Trees/UrlHelperExtensions.cs index 878a23b38f..9d996d7dcb 100644 --- a/src/Umbraco.Web.BackOffice/Trees/UrlHelperExtensions.cs +++ b/src/Umbraco.Web.BackOffice/Trees/UrlHelperExtensions.cs @@ -4,11 +4,10 @@ using System.Net; using System.Text; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; -using Umbraco.Core; -using Umbraco.Web.BackOffice.Trees; -using Umbraco.Web.WebApi; +using Umbraco.Cms.Core; +using Umbraco.Extensions; -namespace Umbraco.Extensions +namespace Umbraco.Cms.Web.BackOffice.Trees { public static class UrlHelperExtensions { diff --git a/src/Umbraco.Web.BackOffice/Trees/UserTreeController.cs b/src/Umbraco.Web.BackOffice/Trees/UserTreeController.cs index f43247c09c..6e06f7636d 100644 --- a/src/Umbraco.Web.BackOffice/Trees/UserTreeController.cs +++ b/src/Umbraco.Web.BackOffice/Trees/UserTreeController.cs @@ -1,15 +1,14 @@ using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; -using Umbraco.Core; -using Umbraco.Core.Services; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Authorization; -using Umbraco.Web.Models.Trees; -using Umbraco.Web.Trees; -using Umbraco.Web.WebApi; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Trees; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.BackOffice.Trees +namespace Umbraco.Cms.Web.BackOffice.Trees { [Authorize(Policy = AuthorizationPolicies.TreeAccessUsers)] [Tree(Constants.Applications.Users, Constants.Trees.Users, SortOrder = 0, IsSingleNodeTree = true)] diff --git a/src/Umbraco.Web.BackOffice/Umbraco.Web.BackOffice.csproj b/src/Umbraco.Web.BackOffice/Umbraco.Web.BackOffice.csproj index 7675d1cede..8a1a0ebcdf 100644 --- a/src/Umbraco.Web.BackOffice/Umbraco.Web.BackOffice.csproj +++ b/src/Umbraco.Web.BackOffice/Umbraco.Web.BackOffice.csproj @@ -3,6 +3,8 @@ net5.0 Library + latest + Umbraco.Cms.Web.BackOffice diff --git a/src/Umbraco.Web.Common/ActionsResults/PublishedContentNotFoundResult.cs b/src/Umbraco.Web.Common/ActionsResults/PublishedContentNotFoundResult.cs index a2a752cfd0..a2fb64f02d 100644 --- a/src/Umbraco.Web.Common/ActionsResults/PublishedContentNotFoundResult.cs +++ b/src/Umbraco.Web.Common/ActionsResults/PublishedContentNotFoundResult.cs @@ -2,9 +2,10 @@ using System.Net; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; -using Umbraco.Web.Routing; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Web; -namespace Umbraco.Web.Common.ActionsResults +namespace Umbraco.Cms.Web.Common.ActionsResults { /// /// Returns the Umbraco not found result diff --git a/src/Umbraco.Web.Common/ActionsResults/UmbracoProblemResult.cs b/src/Umbraco.Web.Common/ActionsResults/UmbracoProblemResult.cs index 235ef0c037..e3279407fa 100644 --- a/src/Umbraco.Web.Common/ActionsResults/UmbracoProblemResult.cs +++ b/src/Umbraco.Web.Common/ActionsResults/UmbracoProblemResult.cs @@ -1,7 +1,7 @@ using System.Net; using Microsoft.AspNetCore.Mvc; -namespace Umbraco.Web.Common.ActionsResults +namespace Umbraco.Cms.Web.Common.ActionsResults { public class UmbracoProblemResult : ObjectResult { diff --git a/src/Umbraco.Web.Common/ActionsResults/ValidationErrorResult.cs b/src/Umbraco.Web.Common/ActionsResults/ValidationErrorResult.cs index 0116c6b77a..8fe0ef9326 100644 --- a/src/Umbraco.Web.Common/ActionsResults/ValidationErrorResult.cs +++ b/src/Umbraco.Web.Common/ActionsResults/ValidationErrorResult.cs @@ -1,9 +1,9 @@ -using System.Net; -using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; -using Umbraco.Web.Models.ContentEditing; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Extensions; -namespace Umbraco.Web.Common.ActionsResults +namespace Umbraco.Cms.Web.Common.ActionsResults { /// /// Custom result to return a validation error message with required headers diff --git a/src/Umbraco.Web.Common/ApplicationModels/BackOfficeApplicationModelProvider.cs b/src/Umbraco.Web.Common/ApplicationModels/BackOfficeApplicationModelProvider.cs index 4d75e2219f..146edb19e9 100644 --- a/src/Umbraco.Web.Common/ApplicationModels/BackOfficeApplicationModelProvider.cs +++ b/src/Umbraco.Web.Common/ApplicationModels/BackOfficeApplicationModelProvider.cs @@ -1,10 +1,10 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using Microsoft.AspNetCore.Mvc.ApplicationModels; using Microsoft.AspNetCore.Mvc.ModelBinding; -using Umbraco.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Attributes; -namespace Umbraco.Web.Common.ApplicationModels +namespace Umbraco.Cms.Web.Common.ApplicationModels { // TODO: This should just exist in the back office project diff --git a/src/Umbraco.Web.Common/ApplicationModels/BackOfficeIdentityCultureConvention.cs b/src/Umbraco.Web.Common/ApplicationModels/BackOfficeIdentityCultureConvention.cs index ffbb76dd0d..8414662816 100644 --- a/src/Umbraco.Web.Common/ApplicationModels/BackOfficeIdentityCultureConvention.cs +++ b/src/Umbraco.Web.Common/ApplicationModels/BackOfficeIdentityCultureConvention.cs @@ -1,7 +1,7 @@ -using Microsoft.AspNetCore.Mvc.ApplicationModels; -using Umbraco.Web.Common.Filters; +using Microsoft.AspNetCore.Mvc.ApplicationModels; +using Umbraco.Cms.Web.Common.Filters; -namespace Umbraco.Web.Common.ApplicationModels +namespace Umbraco.Cms.Web.Common.ApplicationModels { // TODO: This should just exist in the back office project diff --git a/src/Umbraco.Web.Common/ApplicationModels/UmbracoApiBehaviorApplicationModelProvider.cs b/src/Umbraco.Web.Common/ApplicationModels/UmbracoApiBehaviorApplicationModelProvider.cs index edf4571a7e..b80104a7bf 100644 --- a/src/Umbraco.Web.Common/ApplicationModels/UmbracoApiBehaviorApplicationModelProvider.cs +++ b/src/Umbraco.Web.Common/ApplicationModels/UmbracoApiBehaviorApplicationModelProvider.cs @@ -1,12 +1,11 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.ApplicationModels; using Microsoft.AspNetCore.Mvc.ModelBinding; -using Umbraco.Core; -using Umbraco.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Attributes; -namespace Umbraco.Web.Common.ApplicationModels +namespace Umbraco.Cms.Web.Common.ApplicationModels { /// diff --git a/src/Umbraco.Web.Common/ApplicationModels/UmbracoJsonModelBinderConvention.cs b/src/Umbraco.Web.Common/ApplicationModels/UmbracoJsonModelBinderConvention.cs index affcc2e7e5..e96bda8771 100644 --- a/src/Umbraco.Web.Common/ApplicationModels/UmbracoJsonModelBinderConvention.cs +++ b/src/Umbraco.Web.Common/ApplicationModels/UmbracoJsonModelBinderConvention.cs @@ -1,9 +1,9 @@ using System.Linq; using Microsoft.AspNetCore.Mvc.ApplicationModels; using Microsoft.AspNetCore.Mvc.ModelBinding; -using Umbraco.Web.Common.ModelBinders; +using Umbraco.Cms.Web.Common.ModelBinders; -namespace Umbraco.Web.Common.ApplicationModels +namespace Umbraco.Cms.Web.Common.ApplicationModels { /// /// Applies the body model binder to any parameter binding source of type diff --git a/src/Umbraco.Web.Common/ApplicationModels/VirtualPageApplicationModelProvider.cs b/src/Umbraco.Web.Common/ApplicationModels/VirtualPageApplicationModelProvider.cs index 62867d045b..f195301aeb 100644 --- a/src/Umbraco.Web.Common/ApplicationModels/VirtualPageApplicationModelProvider.cs +++ b/src/Umbraco.Web.Common/ApplicationModels/VirtualPageApplicationModelProvider.cs @@ -1,11 +1,11 @@ using System.Collections.Generic; using System.Linq; using Microsoft.AspNetCore.Mvc.ApplicationModels; -using Umbraco.Core; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Extensions; using Umbraco.Web.Common.Controllers; -namespace Umbraco.Web.Common.ApplicationModels +namespace Umbraco.Cms.Web.Common.ApplicationModels { /// /// Applies the to any action on a controller that is diff --git a/src/Umbraco.Web.Common/ApplicationModels/VirtualPageConvention.cs b/src/Umbraco.Web.Common/ApplicationModels/VirtualPageConvention.cs index d35af70bb0..66b68c7a85 100644 --- a/src/Umbraco.Web.Common/ApplicationModels/VirtualPageConvention.cs +++ b/src/Umbraco.Web.Common/ApplicationModels/VirtualPageConvention.cs @@ -1,9 +1,7 @@ -using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.ApplicationModels; -using Umbraco.Web.Common.Controllers; -using Umbraco.Web.Common.Filters; +using Umbraco.Cms.Web.Common.Filters; -namespace Umbraco.Web.Common.ApplicationModels +namespace Umbraco.Cms.Web.Common.ApplicationModels { /// /// Adds the as a convention diff --git a/src/Umbraco.Web.Common/AspNetCore/AspNetCoreApplicationShutdownRegistry.cs b/src/Umbraco.Web.Common/AspNetCore/AspNetCoreApplicationShutdownRegistry.cs index 93347ddaa0..ff431966ce 100644 --- a/src/Umbraco.Web.Common/AspNetCore/AspNetCoreApplicationShutdownRegistry.cs +++ b/src/Umbraco.Web.Common/AspNetCore/AspNetCoreApplicationShutdownRegistry.cs @@ -2,10 +2,10 @@ using System; using System.Collections.Concurrent; using System.Threading; using Microsoft.Extensions.Hosting; -using Umbraco.Core; -using Umbraco.Core.Hosting; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Hosting; -namespace Umbraco.Web.Common.AspNetCore +namespace Umbraco.Cms.Web.Common.AspNetCore { public class AspNetCoreApplicationShutdownRegistry : IApplicationShutdownRegistry { diff --git a/src/Umbraco.Web.Common/AspNetCore/AspNetCoreBackOfficeInfo.cs b/src/Umbraco.Web.Common/AspNetCore/AspNetCoreBackOfficeInfo.cs index fe991275de..caaac9dfeb 100644 --- a/src/Umbraco.Web.Common/AspNetCore/AspNetCoreBackOfficeInfo.cs +++ b/src/Umbraco.Web.Common/AspNetCore/AspNetCoreBackOfficeInfo.cs @@ -1,8 +1,8 @@ using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration.Models; -namespace Umbraco.Web.Common.AspNetCore +namespace Umbraco.Cms.Web.Common.AspNetCore { public class AspNetCoreBackOfficeInfo : IBackOfficeInfo { diff --git a/src/Umbraco.Web.Common/AspNetCore/AspNetCoreCookieManager.cs b/src/Umbraco.Web.Common/AspNetCore/AspNetCoreCookieManager.cs index 0886f0e123..1ba86eac0c 100644 --- a/src/Umbraco.Web.Common/AspNetCore/AspNetCoreCookieManager.cs +++ b/src/Umbraco.Web.Common/AspNetCore/AspNetCoreCookieManager.cs @@ -1,7 +1,8 @@ using System; using Microsoft.AspNetCore.Http; +using Umbraco.Cms.Core.Web; -namespace Umbraco.Web.Common.AspNetCore +namespace Umbraco.Cms.Web.Common.AspNetCore { public class AspNetCoreCookieManager : ICookieManager { diff --git a/src/Umbraco.Web.Common/AspNetCore/AspNetCoreHostingEnvironment.cs b/src/Umbraco.Web.Common/AspNetCore/AspNetCoreHostingEnvironment.cs index ac306809db..df7a75a791 100644 --- a/src/Umbraco.Web.Common/AspNetCore/AspNetCoreHostingEnvironment.cs +++ b/src/Umbraco.Web.Common/AspNetCore/AspNetCoreHostingEnvironment.cs @@ -3,13 +3,14 @@ using System.Collections.Generic; using System.IO; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Extensions; +using IHostingEnvironment = Umbraco.Cms.Core.Hosting.IHostingEnvironment; -namespace Umbraco.Web.Common.AspNetCore +namespace Umbraco.Cms.Web.Common.AspNetCore { - public class AspNetCoreHostingEnvironment : Core.Hosting.IHostingEnvironment + public class AspNetCoreHostingEnvironment : IHostingEnvironment { private readonly ISet _applicationUrls = new HashSet(); private readonly IOptionsMonitor _hostingSettings; @@ -85,7 +86,7 @@ namespace Umbraco.Web.Common.AspNetCore default: - return _localTempPath = MapPathContentRoot(Core.Constants.SystemDirectories.TempData); + return _localTempPath = MapPathContentRoot(Cms.Core.Constants.SystemDirectories.TempData); } } } diff --git a/src/Umbraco.Web.Common/AspNetCore/AspNetCoreIpResolver.cs b/src/Umbraco.Web.Common/AspNetCore/AspNetCoreIpResolver.cs index 3628478682..d7683e1ffe 100644 --- a/src/Umbraco.Web.Common/AspNetCore/AspNetCoreIpResolver.cs +++ b/src/Umbraco.Web.Common/AspNetCore/AspNetCoreIpResolver.cs @@ -1,7 +1,7 @@ using Microsoft.AspNetCore.Http; -using Umbraco.Net; +using Umbraco.Cms.Core.Net; -namespace Umbraco.Web.Common.AspNetCore +namespace Umbraco.Cms.Web.Common.AspNetCore { public class AspNetCoreIpResolver : IIpResolver { diff --git a/src/Umbraco.Web.Common/AspNetCore/AspNetCoreMarchal.cs b/src/Umbraco.Web.Common/AspNetCore/AspNetCoreMarchal.cs index af23d092e9..bd9d4439e2 100644 --- a/src/Umbraco.Web.Common/AspNetCore/AspNetCoreMarchal.cs +++ b/src/Umbraco.Web.Common/AspNetCore/AspNetCoreMarchal.cs @@ -1,8 +1,8 @@ using System; using System.Runtime.InteropServices; -using Umbraco.Core.Diagnostics; +using Umbraco.Cms.Core.Diagnostics; -namespace Umbraco.Web.Common.AspNetCore +namespace Umbraco.Cms.Web.Common.AspNetCore { public class AspNetCoreMarchal : IMarchal diff --git a/src/Umbraco.Web.Common/AspNetCore/AspNetCorePasswordHasher.cs b/src/Umbraco.Web.Common/AspNetCore/AspNetCorePasswordHasher.cs index 149403b172..a68b27ec86 100644 --- a/src/Umbraco.Web.Common/AspNetCore/AspNetCorePasswordHasher.cs +++ b/src/Umbraco.Web.Common/AspNetCore/AspNetCorePasswordHasher.cs @@ -1,9 +1,8 @@ using Microsoft.AspNetCore.Identity; -using IPasswordHasher = Umbraco.Core.Security.IPasswordHasher; -namespace Umbraco.Web.Common.AspNetCore +namespace Umbraco.Cms.Web.Common.AspNetCore { - public class AspNetCorePasswordHasher : IPasswordHasher + public class AspNetCorePasswordHasher : Cms.Core.Security.IPasswordHasher { private PasswordHasher _underlyingHasher; diff --git a/src/Umbraco.Web.Common/AspNetCore/AspNetCoreRequestAccessor.cs b/src/Umbraco.Web.Common/AspNetCore/AspNetCoreRequestAccessor.cs index 7e1dbb3c9c..273213ecbb 100644 --- a/src/Umbraco.Web.Common/AspNetCore/AspNetCoreRequestAccessor.cs +++ b/src/Umbraco.Web.Common/AspNetCore/AspNetCoreRequestAccessor.cs @@ -4,12 +4,12 @@ using System.Threading; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http.Extensions; using Microsoft.Extensions.Options; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Events; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Web; using Umbraco.Extensions; -using Umbraco.Web.Routing; -namespace Umbraco.Web.Common.AspNetCore +namespace Umbraco.Cms.Web.Common.AspNetCore { public class AspNetCoreRequestAccessor : IRequestAccessor, INotificationHandler { diff --git a/src/Umbraco.Web.Common/AspNetCore/AspNetCoreSessionManager.cs b/src/Umbraco.Web.Common/AspNetCore/AspNetCoreSessionManager.cs index a7f42bb888..9732d43e2d 100644 --- a/src/Umbraco.Web.Common/AspNetCore/AspNetCoreSessionManager.cs +++ b/src/Umbraco.Web.Common/AspNetCore/AspNetCoreSessionManager.cs @@ -1,8 +1,9 @@ using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http.Features; -using Umbraco.Net; +using Umbraco.Cms.Core.Net; +using Umbraco.Cms.Core.Web; -namespace Umbraco.Web.Common.AspNetCore +namespace Umbraco.Cms.Web.Common.AspNetCore { internal class AspNetCoreSessionManager : ISessionIdResolver, ISessionManager { diff --git a/src/Umbraco.Web.Common/AspNetCore/AspNetCoreUmbracoApplicationLifetime.cs b/src/Umbraco.Web.Common/AspNetCore/AspNetCoreUmbracoApplicationLifetime.cs index 3854f92f8c..2bda7a28a7 100644 --- a/src/Umbraco.Web.Common/AspNetCore/AspNetCoreUmbracoApplicationLifetime.cs +++ b/src/Umbraco.Web.Common/AspNetCore/AspNetCoreUmbracoApplicationLifetime.cs @@ -1,7 +1,7 @@ using Microsoft.Extensions.Hosting; -using Umbraco.Core.Hosting; +using Umbraco.Cms.Core.Hosting; -namespace Umbraco.Web.Common.AspNetCore +namespace Umbraco.Cms.Web.Common.AspNetCore { public class AspNetCoreUmbracoApplicationLifetime : IUmbracoApplicationLifetime { diff --git a/src/Umbraco.Web.Common/AspNetCore/AspNetCoreUserAgentProvider.cs b/src/Umbraco.Web.Common/AspNetCore/AspNetCoreUserAgentProvider.cs index cc61070947..8e94fc3b80 100644 --- a/src/Umbraco.Web.Common/AspNetCore/AspNetCoreUserAgentProvider.cs +++ b/src/Umbraco.Web.Common/AspNetCore/AspNetCoreUserAgentProvider.cs @@ -1,7 +1,7 @@ using Microsoft.AspNetCore.Http; -using Umbraco.Net; +using Umbraco.Cms.Core.Net; -namespace Umbraco.Web.Common.AspNetCore +namespace Umbraco.Cms.Web.Common.AspNetCore { public class AspNetCoreUserAgentProvider : IUserAgentProvider { diff --git a/src/Umbraco.Web.Common/AspNetCore/OptionsMonitorAdapter.cs b/src/Umbraco.Web.Common/AspNetCore/OptionsMonitorAdapter.cs index 9162c85cdd..5811bf45ec 100644 --- a/src/Umbraco.Web.Common/AspNetCore/OptionsMonitorAdapter.cs +++ b/src/Umbraco.Web.Common/AspNetCore/OptionsMonitorAdapter.cs @@ -1,7 +1,7 @@ using System; using Microsoft.Extensions.Options; -namespace Umbraco.Web.Common.AspNetCore +namespace Umbraco.Cms.Web.Common.AspNetCore { /// /// HACK: OptionsMonitor but without the monitoring, hopefully temporary. diff --git a/src/Umbraco.Web.Common/Attributes/IsBackOfficeAttribute.cs b/src/Umbraco.Web.Common/Attributes/IsBackOfficeAttribute.cs index 2c017a5978..15c2d45267 100644 --- a/src/Umbraco.Web.Common/Attributes/IsBackOfficeAttribute.cs +++ b/src/Umbraco.Web.Common/Attributes/IsBackOfficeAttribute.cs @@ -1,7 +1,6 @@ -using Microsoft.AspNetCore.Mvc; -using System; +using System; -namespace Umbraco.Web.Common.Attributes +namespace Umbraco.Cms.Web.Common.Attributes { /// /// When applied to an api controller it will be routed to the /Umbraco/BackOffice prefix route so we can determine if it @@ -9,6 +8,6 @@ namespace Umbraco.Web.Common.Attributes /// [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)] public sealed class IsBackOfficeAttribute : Attribute - { + { } } diff --git a/src/Umbraco.Web.Common/Attributes/PluginControllerAttribute.cs b/src/Umbraco.Web.Common/Attributes/PluginControllerAttribute.cs index 4844200ebf..885558eb65 100644 --- a/src/Umbraco.Web.Common/Attributes/PluginControllerAttribute.cs +++ b/src/Umbraco.Web.Common/Attributes/PluginControllerAttribute.cs @@ -1,8 +1,8 @@ -using Microsoft.AspNetCore.Mvc; -using System; +using System; using System.Linq; +using Microsoft.AspNetCore.Mvc; -namespace Umbraco.Web.Common.Attributes +namespace Umbraco.Cms.Web.Common.Attributes { /// /// Indicates that a controller is a plugin controller and will be routed to its own area. diff --git a/src/Umbraco.Web.Common/Attributes/UmbracoApiControllerAttribute.cs b/src/Umbraco.Web.Common/Attributes/UmbracoApiControllerAttribute.cs index a3ffc3d9e9..abb2e4ff06 100644 --- a/src/Umbraco.Web.Common/Attributes/UmbracoApiControllerAttribute.cs +++ b/src/Umbraco.Web.Common/Attributes/UmbracoApiControllerAttribute.cs @@ -1,7 +1,7 @@ using System; -using Umbraco.Web.Common.ApplicationModels; +using Umbraco.Cms.Web.Common.ApplicationModels; -namespace Umbraco.Web.Common.Attributes +namespace Umbraco.Cms.Web.Common.Attributes { /// /// When present on a controller then conventions will apply diff --git a/src/Umbraco.Web.Common/Authorization/AuthorizationPolicies.cs b/src/Umbraco.Web.Common/Authorization/AuthorizationPolicies.cs index 56070f5033..0ef34a9ced 100644 --- a/src/Umbraco.Web.Common/Authorization/AuthorizationPolicies.cs +++ b/src/Umbraco.Web.Common/Authorization/AuthorizationPolicies.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.Common.Authorization +namespace Umbraco.Cms.Web.Common.Authorization { /// /// A list of authorization policy names for use in the back office @@ -26,7 +26,7 @@ public const string MediaPermissionByResource = nameof(MediaPermissionByResource); public const string MediaPermissionPathById = nameof(MediaPermissionPathById); - + // Single section access diff --git a/src/Umbraco.Web.Common/Authorization/FeatureAuthorizeHandler.cs b/src/Umbraco.Web.Common/Authorization/FeatureAuthorizeHandler.cs index 80d3482629..0a4981d6c6 100644 --- a/src/Umbraco.Web.Common/Authorization/FeatureAuthorizeHandler.cs +++ b/src/Umbraco.Web.Common/Authorization/FeatureAuthorizeHandler.cs @@ -4,9 +4,9 @@ using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http.Features; using Microsoft.AspNetCore.Mvc.Controllers; -using Umbraco.Web.Features; +using Umbraco.Cms.Core.Features; -namespace Umbraco.Web.BackOffice.Authorization +namespace Umbraco.Cms.Web.Common.Authorization { /// /// Ensures that the controller is an authorized feature. diff --git a/src/Umbraco.Web.Common/Authorization/FeatureAuthorizeRequirement.cs b/src/Umbraco.Web.Common/Authorization/FeatureAuthorizeRequirement.cs index 87614d7f19..5845df902c 100644 --- a/src/Umbraco.Web.Common/Authorization/FeatureAuthorizeRequirement.cs +++ b/src/Umbraco.Web.Common/Authorization/FeatureAuthorizeRequirement.cs @@ -1,6 +1,6 @@ using Microsoft.AspNetCore.Authorization; -namespace Umbraco.Web.BackOffice.Authorization +namespace Umbraco.Cms.Web.Common.Authorization { /// diff --git a/src/Umbraco.Web.Common/Constants/ViewConstants.cs b/src/Umbraco.Web.Common/Constants/ViewConstants.cs index 4c87509069..5c8ec4974a 100644 --- a/src/Umbraco.Web.Common/Constants/ViewConstants.cs +++ b/src/Umbraco.Web.Common/Constants/ViewConstants.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.Common.Constants +namespace Umbraco.Cms.Web.Common.Constants { /// /// constants diff --git a/src/Umbraco.Web.Common/Controllers/IRenderController.cs b/src/Umbraco.Web.Common/Controllers/IRenderController.cs index 26a1286afa..21a5eda83a 100644 --- a/src/Umbraco.Web.Common/Controllers/IRenderController.cs +++ b/src/Umbraco.Web.Common/Controllers/IRenderController.cs @@ -1,6 +1,6 @@ -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Web.Common.Controllers +namespace Umbraco.Cms.Web.Common.Controllers { /// /// A marker interface to designate that a controller will be used for Umbraco front-end requests and/or route hijacking diff --git a/src/Umbraco.Web.Common/Controllers/IVirtualPageController.cs b/src/Umbraco.Web.Common/Controllers/IVirtualPageController.cs index bfea5c8d87..edb343d226 100644 --- a/src/Umbraco.Web.Common/Controllers/IVirtualPageController.cs +++ b/src/Umbraco.Web.Common/Controllers/IVirtualPageController.cs @@ -1,5 +1,5 @@ using Microsoft.AspNetCore.Mvc.Filters; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.PublishedContent; namespace Umbraco.Web.Common.Controllers { diff --git a/src/Umbraco.Web.Common/Controllers/PluginController.cs b/src/Umbraco.Web.Common/Controllers/PluginController.cs index d5b033c26e..314a863cbf 100644 --- a/src/Umbraco.Web.Common/Controllers/PluginController.cs +++ b/src/Umbraco.Web.Common/Controllers/PluginController.cs @@ -1,17 +1,17 @@ using System; using System.Collections.Concurrent; using Microsoft.AspNetCore.Mvc; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Composing; -using Umbraco.Core.Logging; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Core.Web.Mvc; +using Umbraco.Cms.Web.Common.Attributes; using Umbraco.Core.Persistence; -using Umbraco.Core.Services; -using Umbraco.Web.Common.Attributes; using Umbraco.Extensions; -using Umbraco.Web.Mvc; -namespace Umbraco.Web.Common.Controllers +namespace Umbraco.Cms.Web.Common.Controllers { /// /// Provides a base class for plugin controllers. diff --git a/src/Umbraco.Web.Common/Controllers/ProxyViewDataFeature.cs b/src/Umbraco.Web.Common/Controllers/ProxyViewDataFeature.cs index a672fdfd3c..f926ccbfaa 100644 --- a/src/Umbraco.Web.Common/Controllers/ProxyViewDataFeature.cs +++ b/src/Umbraco.Web.Common/Controllers/ProxyViewDataFeature.cs @@ -1,6 +1,6 @@ using Microsoft.AspNetCore.Mvc.ViewFeatures; -namespace Umbraco.Web.Common.Controllers +namespace Umbraco.Cms.Web.Common.Controllers { /// /// A request feature to allowing proxying viewdata from one controller to another diff --git a/src/Umbraco.Web.Common/Controllers/PublishedRequestFilterAttribute.cs b/src/Umbraco.Web.Common/Controllers/PublishedRequestFilterAttribute.cs index a2c403bf7b..0d8c0833e1 100644 --- a/src/Umbraco.Web.Common/Controllers/PublishedRequestFilterAttribute.cs +++ b/src/Umbraco.Web.Common/Controllers/PublishedRequestFilterAttribute.cs @@ -2,10 +2,10 @@ using System; using System.Collections.Generic; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc.Filters; -using Umbraco.Web.Common.Routing; -using Umbraco.Web.Routing; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Web.Common.Routing; -namespace Umbraco.Web.Common.Controllers +namespace Umbraco.Cms.Web.Common.Controllers { /// /// Deals with custom headers for the umbraco request diff --git a/src/Umbraco.Web.Common/Controllers/RenderController.cs b/src/Umbraco.Web.Common/Controllers/RenderController.cs index a1453ee6cd..12896b7998 100644 --- a/src/Umbraco.Web.Common/Controllers/RenderController.cs +++ b/src/Umbraco.Web.Common/Controllers/RenderController.cs @@ -4,12 +4,13 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; using Microsoft.AspNetCore.Mvc.ViewEngines; using Microsoft.Extensions.Logging; -using Umbraco.Web.Common.ActionsResults; -using Umbraco.Web.Common.Filters; -using Umbraco.Web.Models; -using Umbraco.Web.Routing; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Web.Common.ActionsResults; +using Umbraco.Cms.Web.Common.Filters; -namespace Umbraco.Web.Common.Controllers +namespace Umbraco.Cms.Web.Common.Controllers { /// diff --git a/src/Umbraco.Web.Common/Controllers/UmbracoApiController.cs b/src/Umbraco.Web.Common/Controllers/UmbracoApiController.cs index 019e3cffdd..f00f2fec57 100644 --- a/src/Umbraco.Web.Common/Controllers/UmbracoApiController.cs +++ b/src/Umbraco.Web.Common/Controllers/UmbracoApiController.cs @@ -1,6 +1,6 @@ -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Web.Common.Controllers +namespace Umbraco.Cms.Web.Common.Controllers { /// /// Provides a base class for auto-routed Umbraco API controllers. diff --git a/src/Umbraco.Web.Common/Controllers/UmbracoApiControllerBase.cs b/src/Umbraco.Web.Common/Controllers/UmbracoApiControllerBase.cs index 811b0dfd69..8dfd5a76af 100644 --- a/src/Umbraco.Web.Common/Controllers/UmbracoApiControllerBase.cs +++ b/src/Umbraco.Web.Common/Controllers/UmbracoApiControllerBase.cs @@ -1,10 +1,10 @@ using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Authorization; -using Umbraco.Web.Features; +using Umbraco.Cms.Core.Features; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Authorization; -namespace Umbraco.Web.Common.Controllers +namespace Umbraco.Cms.Web.Common.Controllers { /// /// Provides a base class for Umbraco API controllers. diff --git a/src/Umbraco.Web.Common/Controllers/UmbracoApiControllerTypeCollectionBuilder.cs b/src/Umbraco.Web.Common/Controllers/UmbracoApiControllerTypeCollectionBuilder.cs index 8d68e95dd8..30dec7842b 100644 --- a/src/Umbraco.Web.Common/Controllers/UmbracoApiControllerTypeCollectionBuilder.cs +++ b/src/Umbraco.Web.Common/Controllers/UmbracoApiControllerTypeCollectionBuilder.cs @@ -1,7 +1,7 @@ -using Umbraco.Core.Composing; -using Umbraco.Web.WebApi; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Web.Common.Controllers +namespace Umbraco.Cms.Web.Common.Controllers { public class UmbracoApiControllerTypeCollectionBuilder : TypeCollectionBuilderBase { diff --git a/src/Umbraco.Web.Common/Controllers/UmbracoController.cs b/src/Umbraco.Web.Common/Controllers/UmbracoController.cs index 22bef0da69..3d714e8e60 100644 --- a/src/Umbraco.Web.Common/Controllers/UmbracoController.cs +++ b/src/Umbraco.Web.Common/Controllers/UmbracoController.cs @@ -1,7 +1,7 @@ using System; using Microsoft.AspNetCore.Mvc; -namespace Umbraco.Web.Common.Controllers +namespace Umbraco.Cms.Web.Common.Controllers { /// /// Provides a base class for Umbraco controllers. diff --git a/src/Umbraco.Web.Common/Controllers/UmbracoPageController.cs b/src/Umbraco.Web.Common/Controllers/UmbracoPageController.cs index 33fa4ca53e..0e6b6d0d0c 100644 --- a/src/Umbraco.Web.Common/Controllers/UmbracoPageController.cs +++ b/src/Umbraco.Web.Common/Controllers/UmbracoPageController.cs @@ -2,11 +2,11 @@ using System; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.ViewEngines; using Microsoft.Extensions.Logging; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Web.Common.Routing; -using Umbraco.Web.Routing; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Web.Common.Routing; -namespace Umbraco.Web.Common.Controllers +namespace Umbraco.Cms.Web.Common.Controllers { /// /// An abstract controller for a front-end Umbraco page diff --git a/src/Umbraco.Web.Common/DependencyInjection/ServiceCollectionExtensions.cs b/src/Umbraco.Web.Common/DependencyInjection/ServiceCollectionExtensions.cs index dd7eda895e..b764dbec40 100644 --- a/src/Umbraco.Web.Common/DependencyInjection/ServiceCollectionExtensions.cs +++ b/src/Umbraco.Web.Common/DependencyInjection/ServiceCollectionExtensions.cs @@ -8,9 +8,9 @@ using SixLabors.ImageSharp.Web.Commands; using SixLabors.ImageSharp.Web.DependencyInjection; using SixLabors.ImageSharp.Web.Processors; using SixLabors.ImageSharp.Web.Providers; -using Umbraco.Core.Configuration.Models; +using Umbraco.Cms.Core.Configuration.Models; -namespace Umbraco.Web.Common.DependencyInjection +namespace Umbraco.Extensions { public static class ServiceCollectionExtensions { @@ -19,7 +19,7 @@ namespace Umbraco.Web.Common.DependencyInjection /// public static IServiceCollection AddUmbracoImageSharp(this IServiceCollection services, IConfiguration configuration) { - var imagingSettings = configuration.GetSection(Core.Constants.Configuration.ConfigImaging) + var imagingSettings = configuration.GetSection(Cms.Core.Constants.Configuration.ConfigImaging) .Get() ?? new ImagingSettings(); services.AddImageSharp(options => diff --git a/src/Umbraco.Web.Common/DependencyInjection/UmbracoBuilderExtensions.cs b/src/Umbraco.Web.Common/DependencyInjection/UmbracoBuilderExtensions.cs index e8097335d6..f941a4a0f7 100644 --- a/src/Umbraco.Web.Common/DependencyInjection/UmbracoBuilderExtensions.cs +++ b/src/Umbraco.Web.Common/DependencyInjection/UmbracoBuilderExtensions.cs @@ -16,46 +16,47 @@ using Microsoft.Extensions.Logging; using Serilog; using Smidge; using Smidge.Nuglify; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Composing; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.DependencyInjection; -using Umbraco.Core.Diagnostics; -using Umbraco.Core.Events; -using Umbraco.Core.Hosting; -using Umbraco.Core.Logging; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.DependencyInjection; +using Umbraco.Cms.Core.Diagnostics; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Macros; +using Umbraco.Cms.Core.Net; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Templates; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Web.Common; +using Umbraco.Cms.Web.Common.ApplicationModels; +using Umbraco.Cms.Web.Common.AspNetCore; +using Umbraco.Cms.Web.Common.Controllers; +using Umbraco.Cms.Web.Common.DependencyInjection; +using Umbraco.Cms.Web.Common.Install; +using Umbraco.Cms.Web.Common.Localization; +using Umbraco.Cms.Web.Common.Macros; +using Umbraco.Cms.Web.Common.Middleware; +using Umbraco.Cms.Web.Common.ModelBinders; +using Umbraco.Cms.Web.Common.Mvc; +using Umbraco.Cms.Web.Common.Profiler; +using Umbraco.Cms.Web.Common.Routing; +using Umbraco.Cms.Web.Common.Security; +using Umbraco.Cms.Web.Common.Templates; +using Umbraco.Cms.Web.Common.UmbracoContext; using Umbraco.Core.Migrations.Install; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.SqlSyntax; -using Umbraco.Core.Security; -using Umbraco.Extensions; using Umbraco.Infrastructure.DependencyInjection; using Umbraco.Infrastructure.HostedServices; using Umbraco.Infrastructure.HostedServices.ServerRegistration; -using Umbraco.Infrastructure.PublishedCache.DependencyInjection; -using Umbraco.Net; -using Umbraco.Web.Common.ApplicationModels; -using Umbraco.Web.Common.AspNetCore; -using Umbraco.Web.Common.Controllers; -using Umbraco.Web.Common.Install; -using Umbraco.Web.Common.Localization; -using Umbraco.Web.Common.Macros; -using Umbraco.Web.Common.Middleware; -using Umbraco.Web.Common.ModelBinders; -using Umbraco.Web.Common.Mvc; -using Umbraco.Web.Common.Profiler; -using Umbraco.Web.Common.Routing; -using Umbraco.Web.Common.Security; -using Umbraco.Web.Common.Templates; -using Umbraco.Web.Macros; -using Umbraco.Web.Security; using Umbraco.Web.Telemetry; -using Umbraco.Web.Templates; -using Umbraco.Web.Website; -using IHostingEnvironment = Umbraco.Core.Hosting.IHostingEnvironment; +using IHostingEnvironment = Umbraco.Cms.Core.Hosting.IHostingEnvironment; -namespace Umbraco.Web.Common.DependencyInjection +namespace Umbraco.Extensions { // TODO: We could add parameters to configure each of these for flexibility @@ -85,7 +86,7 @@ namespace Umbraco.Web.Common.DependencyInjection IHostingEnvironment tempHostingEnvironment = GetTemporaryHostingEnvironment(webHostEnvironment, config); - var loggingDir = tempHostingEnvironment.MapPathContentRoot(Core.Constants.SystemDirectories.LogFiles); + var loggingDir = tempHostingEnvironment.MapPathContentRoot(Cms.Core.Constants.SystemDirectories.LogFiles); var loggingConfig = new LoggingConfiguration(loggingDir); services.AddLogger(tempHostingEnvironment, loggingConfig, config); @@ -209,7 +210,7 @@ namespace Umbraco.Web.Common.DependencyInjection /// public static IUmbracoBuilder AddRuntimeMinifier(this IUmbracoBuilder builder) { - builder.Services.AddSmidge(builder.Config.GetSection(Core.Constants.Configuration.ConfigRuntimeMinification)); + builder.Services.AddSmidge(builder.Config.GetSection(Cms.Core.Constants.Configuration.ConfigRuntimeMinification)); builder.Services.AddSmidgeNuglify(); return builder; @@ -321,9 +322,9 @@ namespace Umbraco.Web.Common.DependencyInjection var dllPath = Path.Combine(binFolder, "Umbraco.Persistence.SqlCe.dll"); var umbSqlCeAssembly = Assembly.LoadFrom(dllPath); - var sqlCeSyntaxProviderType = umbSqlCeAssembly.GetType("Umbraco.Persistence.SqlCe.SqlCeSyntaxProvider"); - var sqlCeBulkSqlInsertProviderType = umbSqlCeAssembly.GetType("Umbraco.Persistence.SqlCe.SqlCeBulkSqlInsertProvider"); - var sqlCeEmbeddedDatabaseCreatorType = umbSqlCeAssembly.GetType("Umbraco.Persistence.SqlCe.SqlCeEmbeddedDatabaseCreator"); + var sqlCeSyntaxProviderType = umbSqlCeAssembly.GetType("Umbraco.Cms.Persistence.SqlCe.SqlCeSyntaxProvider"); + var sqlCeBulkSqlInsertProviderType = umbSqlCeAssembly.GetType("Umbraco.Cms.Persistence.SqlCe.SqlCeBulkSqlInsertProvider"); + var sqlCeEmbeddedDatabaseCreatorType = umbSqlCeAssembly.GetType("Umbraco.Cms.Persistence.SqlCe.SqlCeEmbeddedDatabaseCreator"); if (!(sqlCeSyntaxProviderType is null || sqlCeBulkSqlInsertProviderType is null || sqlCeEmbeddedDatabaseCreatorType is null)) { @@ -337,7 +338,7 @@ namespace Umbraco.Web.Common.DependencyInjection var sqlCe = sqlCeAssembly.GetType("System.Data.SqlServerCe.SqlCeProviderFactory"); if (!(sqlCe is null)) { - DbProviderFactories.RegisterFactory(Core.Constants.DbProviderNames.SqlCe, sqlCe); + DbProviderFactories.RegisterFactory(Cms.Core.Constants.DbProviderNames.SqlCe, sqlCe); } } } @@ -354,7 +355,7 @@ namespace Umbraco.Web.Common.DependencyInjection /// private static IUmbracoBuilder AddUmbracoSqlServerSupport(this IUmbracoBuilder builder) { - DbProviderFactories.RegisterFactory(Core.Constants.DbProviderNames.SqlServer, SqlClientFactory.Instance); + DbProviderFactories.RegisterFactory(Cms.Core.Constants.DbProviderNames.SqlServer, SqlClientFactory.Instance); builder.Services.AddSingleton(); builder.Services.AddSingleton(); @@ -365,7 +366,7 @@ namespace Umbraco.Web.Common.DependencyInjection private static IProfiler GetWebProfiler(IConfiguration config) { - var isDebug = config.GetValue($"{Core.Constants.Configuration.ConfigHosting}:Debug"); + var isDebug = config.GetValue($"{Cms.Core.Constants.Configuration.ConfigHosting}:Debug"); // create and start asap to profile boot if (!isDebug) { @@ -387,8 +388,8 @@ namespace Umbraco.Web.Common.DependencyInjection /// private static IHostingEnvironment GetTemporaryHostingEnvironment(IWebHostEnvironment webHostEnvironment, IConfiguration config) { - var hostingSettings = config.GetSection(Core.Constants.Configuration.ConfigHosting).Get() ?? new HostingSettings(); - var webRoutingSettings = config.GetSection(Core.Constants.Configuration.ConfigWebRouting).Get() ?? new WebRoutingSettings(); + var hostingSettings = config.GetSection(Cms.Core.Constants.Configuration.ConfigHosting).Get() ?? new HostingSettings(); + var webRoutingSettings = config.GetSection(Cms.Core.Constants.Configuration.ConfigWebRouting).Get() ?? new WebRoutingSettings(); var wrappedHostingSettings = new OptionsMonitorAdapter(hostingSettings); var wrappedWebRoutingSettings = new OptionsMonitorAdapter(webRoutingSettings); diff --git a/src/Umbraco.Web.Common/DependencyInjection/UmbracoStartupFilter.cs b/src/Umbraco.Web.Common/DependencyInjection/UmbracoStartupFilter.cs index 008f8b0b35..3c7e47350b 100644 --- a/src/Umbraco.Web.Common/DependencyInjection/UmbracoStartupFilter.cs +++ b/src/Umbraco.Web.Common/DependencyInjection/UmbracoStartupFilter.cs @@ -3,7 +3,7 @@ using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Umbraco.Extensions; -namespace Umbraco.Web.Common.DependencyInjection +namespace Umbraco.Cms.Web.Common.DependencyInjection { /// /// A registered early in DI so that it executes before any user IStartupFilters diff --git a/src/Umbraco.Web.Common/Events/ActionExecutedEventArgs.cs b/src/Umbraco.Web.Common/Events/ActionExecutedEventArgs.cs index b33cbc7d8a..6b0b87c7b7 100644 --- a/src/Umbraco.Web.Common/Events/ActionExecutedEventArgs.cs +++ b/src/Umbraco.Web.Common/Events/ActionExecutedEventArgs.cs @@ -1,7 +1,7 @@ using System; using Microsoft.AspNetCore.Mvc; -namespace Umbraco.Web.Common.Events +namespace Umbraco.Cms.Web.Common.Events { public class ActionExecutedEventArgs : EventArgs { diff --git a/src/Umbraco.Web.Common/Exceptions/HttpUmbracoFormRouteStringException.cs b/src/Umbraco.Web.Common/Exceptions/HttpUmbracoFormRouteStringException.cs index 8ba326a926..a98ab32f8b 100644 --- a/src/Umbraco.Web.Common/Exceptions/HttpUmbracoFormRouteStringException.cs +++ b/src/Umbraco.Web.Common/Exceptions/HttpUmbracoFormRouteStringException.cs @@ -1,7 +1,7 @@ using System; using System.Runtime.Serialization; -namespace Umbraco.Web.Common.Exceptions +namespace Umbraco.Cms.Web.Common.Exceptions { /// /// Exception that occurs when an Umbraco form route string is invalid diff --git a/src/Umbraco.Web.Common/Extensions/ActionResultExtensions.cs b/src/Umbraco.Web.Common/Extensions/ActionResultExtensions.cs index edb0749133..21bfd6f9ba 100644 --- a/src/Umbraco.Web.Common/Extensions/ActionResultExtensions.cs +++ b/src/Umbraco.Web.Common/Extensions/ActionResultExtensions.cs @@ -1,6 +1,4 @@ using System.Net; -using Microsoft.AspNetCore.Http; -using Microsoft.AspNetCore.Http.Features; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Infrastructure; diff --git a/src/Umbraco.Web.Common/Extensions/ApplicationBuilderExtensions.cs b/src/Umbraco.Web.Common/Extensions/ApplicationBuilderExtensions.cs index eb33451e0b..75a5f95f21 100644 --- a/src/Umbraco.Web.Common/Extensions/ApplicationBuilderExtensions.cs +++ b/src/Umbraco.Web.Common/Extensions/ApplicationBuilderExtensions.cs @@ -1,7 +1,6 @@ using System; using System.IO; using Microsoft.AspNetCore.Builder; -using Microsoft.AspNetCore.Localization; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; using Serilog.Context; @@ -9,16 +8,16 @@ using SixLabors.ImageSharp.Web.DependencyInjection; using Smidge; using Smidge.Nuglify; using StackExchange.Profiling; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Web.Common.Middleware; +using Umbraco.Cms.Web.Common.Plugins; using Umbraco.Infrastructure.Logging.Serilog.Enrichers; -using Umbraco.Web.Common.Middleware; -using Umbraco.Web.Common.Plugins; namespace Umbraco.Extensions { - /// /// extensions for Umbraco /// diff --git a/src/Umbraco.Web.Common/Extensions/BlockListTemplateExtensions.cs b/src/Umbraco.Web.Common/Extensions/BlockListTemplateExtensions.cs index 3edc3714e2..0fd5df73aa 100644 --- a/src/Umbraco.Web.Common/Extensions/BlockListTemplateExtensions.cs +++ b/src/Umbraco.Web.Common/Extensions/BlockListTemplateExtensions.cs @@ -1,9 +1,8 @@ using System; using Microsoft.AspNetCore.Html; using Microsoft.AspNetCore.Mvc.Rendering; -using Microsoft.AspNetCore.Mvc.ViewFeatures; -using Umbraco.Core.Models.Blocks; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.Blocks; +using Umbraco.Cms.Core.Models.PublishedContent; namespace Umbraco.Extensions { diff --git a/src/Umbraco.Web.Common/Extensions/CacheHelperExtensions.cs b/src/Umbraco.Web.Common/Extensions/CacheHelperExtensions.cs index e8309262e6..d52d140640 100644 --- a/src/Umbraco.Web.Common/Extensions/CacheHelperExtensions.cs +++ b/src/Umbraco.Web.Common/Extensions/CacheHelperExtensions.cs @@ -2,12 +2,11 @@ using Microsoft.AspNetCore.Html; using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.AspNetCore.Mvc.ViewFeatures; -using Umbraco.Core.Cache; -using Umbraco.Core.Hosting; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Hosting; namespace Umbraco.Extensions { - /// /// Extension methods for the cache helper /// @@ -43,7 +42,7 @@ namespace Umbraco.Extensions } return appCaches.RuntimeCache.GetCacheItem( - Core.CacheHelperExtensions.PartialViewCacheKey + cacheKey, + CoreCacheHelperExtensions.PartialViewCacheKey + cacheKey, () => htmlHelper.Partial(partialViewName, model, viewData), timeout: new TimeSpan(0, 0, 0, cachedSeconds)); } diff --git a/src/Umbraco.Web.Common/Extensions/ControllerActionEndpointConventionBuilderExtensions.cs b/src/Umbraco.Web.Common/Extensions/ControllerActionEndpointConventionBuilderExtensions.cs index d30436c87b..8da2e26b61 100644 --- a/src/Umbraco.Web.Common/Extensions/ControllerActionEndpointConventionBuilderExtensions.cs +++ b/src/Umbraco.Web.Common/Extensions/ControllerActionEndpointConventionBuilderExtensions.cs @@ -1,17 +1,14 @@ using System; -using System.Collections.Generic; using System.Linq; -using System.Text; -using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; -using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc.Controllers; using Microsoft.AspNetCore.Mvc.Filters; using Microsoft.AspNetCore.Routing; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Web.Common.Filters; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Web.Common.Filters; +using Umbraco.Cms.Web.Common.Routing; -namespace Umbraco.Web.Common.Extensions +namespace Umbraco.Extensions { public static class ControllerActionEndpointConventionBuilderExtensions { diff --git a/src/Umbraco.Web.Common/Extensions/ControllerExtensions.cs b/src/Umbraco.Web.Common/Extensions/ControllerExtensions.cs index b5fa9f946c..b5f665ae9c 100644 --- a/src/Umbraco.Web.Common/Extensions/ControllerExtensions.cs +++ b/src/Umbraco.Web.Common/Extensions/ControllerExtensions.cs @@ -2,14 +2,13 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Mvc; -using Umbraco.Core; namespace Umbraco.Extensions { public static class ControllerExtensions { /// - /// Runs the authentication process + /// Runs the authentication process /// /// /// @@ -20,7 +19,7 @@ namespace Umbraco.Extensions return AuthenticateResult.NoResult(); } - var result = await controller.HttpContext.AuthenticateAsync(Constants.Security.BackOfficeAuthenticationType); + var result = await controller.HttpContext.AuthenticateAsync(Cms.Core.Constants.Security.BackOfficeAuthenticationType); return result; } diff --git a/src/Umbraco.Web.Common/Extensions/EndpointRouteBuilderExtensions.cs b/src/Umbraco.Web.Common/Extensions/EndpointRouteBuilderExtensions.cs index 7ebb2f71c1..d1de1a2248 100644 --- a/src/Umbraco.Web.Common/Extensions/EndpointRouteBuilderExtensions.cs +++ b/src/Umbraco.Web.Common/Extensions/EndpointRouteBuilderExtensions.cs @@ -3,10 +3,8 @@ using System.Text; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Routing; -using NUglify.Helpers; -using Umbraco.Extensions; -namespace Umbraco.Web.Common.Extensions +namespace Umbraco.Extensions { public static class EndpointRouteBuilderExtensions { @@ -109,8 +107,8 @@ namespace Umbraco.Web.Common.Extensions { string prefixPathSegment = isBackOffice ? areaName.IsNullOrWhiteSpace() - ? $"{Core.Constants.Web.Mvc.BackOfficePathSegment}/Api" - : $"{Core.Constants.Web.Mvc.BackOfficePathSegment}/{areaName}" + ? $"{Cms.Core.Constants.Web.Mvc.BackOfficePathSegment}/Api" + : $"{Cms.Core.Constants.Web.Mvc.BackOfficePathSegment}/{areaName}" : areaName.IsNullOrWhiteSpace() ? "Api" : areaName; diff --git a/src/Umbraco.Web.Common/Extensions/FormCollectionExtensions.cs b/src/Umbraco.Web.Common/Extensions/FormCollectionExtensions.cs index 59b29ffa9b..03ec2ce8af 100644 --- a/src/Umbraco.Web.Common/Extensions/FormCollectionExtensions.cs +++ b/src/Umbraco.Web.Common/Extensions/FormCollectionExtensions.cs @@ -3,7 +3,6 @@ using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.AspNetCore.Http; -using Umbraco.Core; namespace Umbraco.Extensions { diff --git a/src/Umbraco.Web.Common/Extensions/GridTemplateExtensions.cs b/src/Umbraco.Web.Common/Extensions/GridTemplateExtensions.cs index 3c3a9d69a1..223f418f22 100644 --- a/src/Umbraco.Web.Common/Extensions/GridTemplateExtensions.cs +++ b/src/Umbraco.Web.Common/Extensions/GridTemplateExtensions.cs @@ -1,7 +1,7 @@ using System; using Microsoft.AspNetCore.Html; using Microsoft.AspNetCore.Mvc.Rendering; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.PublishedContent; namespace Umbraco.Extensions { diff --git a/src/Umbraco.Web.Common/Extensions/HttpContextExtensions.cs b/src/Umbraco.Web.Common/Extensions/HttpContextExtensions.cs index f484ddac18..6579c69536 100644 --- a/src/Umbraco.Web.Common/Extensions/HttpContextExtensions.cs +++ b/src/Umbraco.Web.Common/Extensions/HttpContextExtensions.cs @@ -1,11 +1,8 @@ -using Microsoft.AspNetCore.Http; -using System; -using System.Collections.Generic; +using System; using System.Security.Claims; -using System.Security.Principal; -using System.Text; +using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http.Features; -using Umbraco.Core.Security; +using Umbraco.Cms.Core.Security; namespace Umbraco.Extensions { diff --git a/src/Umbraco.Web.Common/Extensions/HttpRequestExtensions.cs b/src/Umbraco.Web.Common/Extensions/HttpRequestExtensions.cs index db8dab2813..c7c2bb3115 100644 --- a/src/Umbraco.Web.Common/Extensions/HttpRequestExtensions.cs +++ b/src/Umbraco.Web.Common/Extensions/HttpRequestExtensions.cs @@ -4,8 +4,7 @@ using System.Text; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.DependencyInjection; -using Umbraco.Core; -using Umbraco.Core.Routing; +using Umbraco.Cms.Core.Routing; namespace Umbraco.Extensions { @@ -18,7 +17,7 @@ namespace Umbraco.Extensions /// Check if a preview cookie exist /// public static bool HasPreviewCookie(this HttpRequest request) - => request.Cookies.TryGetValue(Constants.Web.PreviewCookieName, out var cookieVal) && !cookieVal.IsNullOrWhiteSpace(); + => request.Cookies.TryGetValue(Cms.Core.Constants.Web.PreviewCookieName, out var cookieVal) && !cookieVal.IsNullOrWhiteSpace(); /// /// Returns true if the request is a back office request diff --git a/src/Umbraco.Web.Common/Extensions/ImageCropperTemplateCoreExtensions.cs b/src/Umbraco.Web.Common/Extensions/ImageCropperTemplateCoreExtensions.cs index 9c6a016b57..b3a92bfb2c 100644 --- a/src/Umbraco.Web.Common/Extensions/ImageCropperTemplateCoreExtensions.cs +++ b/src/Umbraco.Web.Common/Extensions/ImageCropperTemplateCoreExtensions.cs @@ -1,13 +1,11 @@ using System; -using Newtonsoft.Json.Linq; using System.Globalization; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; +using Newtonsoft.Json.Linq; +using Umbraco.Cms.Core.Media; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Routing; using Umbraco.Core.PropertyEditors.ValueConverters; -using Umbraco.Web.Models; -using Umbraco.Core.Media; -using Umbraco.Web.Routing; namespace Umbraco.Extensions { @@ -131,7 +129,7 @@ namespace Umbraco.Extensions IPublishedUrlProvider publishedUrlProvider, int? width = null, int? height = null, - string propertyAlias = Constants.Conventions.Media.File, + string propertyAlias = Cms.Core.Constants.Conventions.Media.File, string cropAlias = null, int? quality = null, ImageCropMode? imageCropMode = null, diff --git a/src/Umbraco.Web.Common/Extensions/ImageCropperTemplateExtensions.cs b/src/Umbraco.Web.Common/Extensions/ImageCropperTemplateExtensions.cs index db2561b998..330ebf7f6a 100644 --- a/src/Umbraco.Web.Common/Extensions/ImageCropperTemplateExtensions.cs +++ b/src/Umbraco.Web.Common/Extensions/ImageCropperTemplateExtensions.cs @@ -1,9 +1,9 @@ using System; using System.Globalization; -using Newtonsoft.Json; -using Umbraco.Core; -using Umbraco.Core.PropertyEditors.ValueConverters; using Microsoft.Extensions.Logging; +using Newtonsoft.Json; +using Umbraco.Cms.Core; +using Umbraco.Core.PropertyEditors.ValueConverters; namespace Umbraco.Extensions { diff --git a/src/Umbraco.Web.Common/Extensions/LinkGeneratorExtensions.cs b/src/Umbraco.Web.Common/Extensions/LinkGeneratorExtensions.cs index e0c94efb83..e0a6802a8d 100644 --- a/src/Umbraco.Web.Common/Extensions/LinkGeneratorExtensions.cs +++ b/src/Umbraco.Web.Common/Extensions/LinkGeneratorExtensions.cs @@ -6,11 +6,11 @@ using System.Linq.Expressions; using System.Reflection; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Routing; -using Umbraco.Core; -using Umbraco.Core.Hosting; -using Umbraco.Web.Common.Controllers; -using Umbraco.Web.Common.Install; -using Umbraco.Web.Mvc; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Web.Mvc; +using Umbraco.Cms.Web.Common.Controllers; +using Umbraco.Cms.Web.Common.Install; namespace Umbraco.Extensions { @@ -36,14 +36,14 @@ namespace Umbraco.Extensions return hostingEnvironment.ApplicationVirtualPath; // this would indicate that the installer is installed without the back office } - return linkGenerator.GetPathByAction("Default", ControllerExtensions.GetControllerName(backOfficeControllerType), values: new { area = Constants.Web.Mvc.BackOfficeApiArea }); + return linkGenerator.GetPathByAction("Default", ControllerExtensions.GetControllerName(backOfficeControllerType), values: new { area = Cms.Core.Constants.Web.Mvc.BackOfficeApiArea }); } /// /// Returns the URL for the installer /// public static string GetInstallerUrl(this LinkGenerator linkGenerator) - => linkGenerator.GetPathByAction(nameof(InstallController.Index), ControllerExtensions.GetControllerName(), new { area = Constants.Web.Mvc.InstallArea }); + => linkGenerator.GetPathByAction(nameof(InstallController.Index), ControllerExtensions.GetControllerName(), new { area = Cms.Core.Constants.Web.Mvc.InstallArea }); /// /// Returns the URL for the installer api @@ -52,7 +52,7 @@ namespace Umbraco.Extensions => linkGenerator.GetPathByAction( nameof(InstallApiController.GetSetup), ControllerExtensions.GetControllerName(), - new { area = Constants.Web.Mvc.InstallArea }).TrimEnd(nameof(InstallApiController.GetSetup)); + new { area = Cms.Core.Constants.Web.Mvc.InstallArea }).TrimEnd(nameof(InstallApiController.GetSetup)); /// /// Return the Url for a Web Api service diff --git a/src/Umbraco.Web.Common/Extensions/TypeLoaderExtensions.cs b/src/Umbraco.Web.Common/Extensions/TypeLoaderExtensions.cs index e800150c27..f8d682d76b 100644 --- a/src/Umbraco.Web.Common/Extensions/TypeLoaderExtensions.cs +++ b/src/Umbraco.Web.Common/Extensions/TypeLoaderExtensions.cs @@ -1,8 +1,7 @@ using System; using System.Collections.Generic; -using System.Text; -using Umbraco.Core.Composing; -using Umbraco.Web.Common.Controllers; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Web.Common.Controllers; namespace Umbraco.Extensions { diff --git a/src/Umbraco.Web.Common/Extensions/UmbracoCoreServiceCollectionExtensions.cs b/src/Umbraco.Web.Common/Extensions/UmbracoCoreServiceCollectionExtensions.cs index e6617dfc73..c914e53836 100644 --- a/src/Umbraco.Web.Common/Extensions/UmbracoCoreServiceCollectionExtensions.cs +++ b/src/Umbraco.Web.Common/Extensions/UmbracoCoreServiceCollectionExtensions.cs @@ -7,22 +7,17 @@ using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using Serilog; using Serilog.Extensions.Hosting; -using Umbraco.Core.Cache; -using Umbraco.Core.Composing; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.DependencyInjection; -using Umbraco.Core.Logging; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Logging; using Umbraco.Core.Logging.Serilog; -using Umbraco.Core.Runtime; -using Umbraco.Web.Common.AspNetCore; -using Umbraco.Web.Common.Profiler; -using IHostingEnvironment = Umbraco.Core.Hosting.IHostingEnvironment; +using IHostingEnvironment = Umbraco.Cms.Core.Hosting.IHostingEnvironment; namespace Umbraco.Extensions { public static class UmbracoCoreServiceCollectionExtensions { - /// /// Create and configure the logger /// @@ -74,7 +69,7 @@ namespace Umbraco.Extensions IProfilingLogger profilingLogger) { - var typeFinderSettings = config.GetSection(Core.Constants.Configuration.ConfigTypeFinder).Get() ?? new TypeFinderSettings(); + var typeFinderSettings = config.GetSection(Cms.Core.Constants.Configuration.ConfigTypeFinder).Get() ?? new TypeFinderSettings(); var runtimeHashPaths = new RuntimeHashPaths().AddFolder(new DirectoryInfo(Path.Combine(webHostEnvironment.ContentRootPath, "bin"))); var runtimeHash = new RuntimeHash(profilingLogger, runtimeHashPaths); diff --git a/src/Umbraco.Web.Common/Extensions/UmbracoInstallApplicationBuilderExtensions.cs b/src/Umbraco.Web.Common/Extensions/UmbracoInstallApplicationBuilderExtensions.cs index ac5d787911..40c5c63642 100644 --- a/src/Umbraco.Web.Common/Extensions/UmbracoInstallApplicationBuilderExtensions.cs +++ b/src/Umbraco.Web.Common/Extensions/UmbracoInstallApplicationBuilderExtensions.cs @@ -1,6 +1,6 @@ using Microsoft.AspNetCore.Builder; using Microsoft.Extensions.DependencyInjection; -using Umbraco.Web.Common.Install; +using Umbraco.Cms.Web.Common.Install; namespace Umbraco.Extensions { diff --git a/src/Umbraco.Web.Common/Extensions/UrlHelperExtensions.cs b/src/Umbraco.Web.Common/Extensions/UrlHelperExtensions.cs index 22c4f5fc6a..413e1eb187 100644 --- a/src/Umbraco.Web.Common/Extensions/UrlHelperExtensions.cs +++ b/src/Umbraco.Web.Common/Extensions/UrlHelperExtensions.cs @@ -4,21 +4,16 @@ using System.Linq; using System.Linq.Expressions; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Routing; -using Umbraco.Core; -using Umbraco.Core.Configuration; -using Umbraco.Core.Hosting; -using Umbraco.Core.WebAssets; -using Umbraco.Web.Common.Controllers; -using Umbraco.Web.WebApi; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.WebAssets; +using Umbraco.Cms.Web.Common.Controllers; namespace Umbraco.Extensions { - public static class UrlHelperExtensions { - - - /// /// Return the back office url if the back office is installed /// @@ -28,7 +23,7 @@ namespace Umbraco.Extensions { var backOfficeControllerType = Type.GetType("Umbraco.Web.BackOffice.Controllers"); if (backOfficeControllerType == null) return "/"; // this would indicate that the installer is installed without the back office - return url.Action("Default", ControllerExtensions.GetControllerName(backOfficeControllerType), new { area = Constants.Web.Mvc.BackOfficeApiArea }); + return url.Action("Default", ControllerExtensions.GetControllerName(backOfficeControllerType), new { area = Cms.Core.Constants.Web.Mvc.BackOfficeApiArea }); } /// diff --git a/src/Umbraco.Web.Common/Extensions/ViewDataExtensions.cs b/src/Umbraco.Web.Common/Extensions/ViewDataExtensions.cs index 655df315f8..36adacc2d2 100644 --- a/src/Umbraco.Web.Common/Extensions/ViewDataExtensions.cs +++ b/src/Umbraco.Web.Common/Extensions/ViewDataExtensions.cs @@ -1,12 +1,10 @@ using System; -using System.Collections.Generic; using System.Text; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc.ViewFeatures; -using Semver; -using Umbraco.Core; -using Umbraco.Core.Security; -using Umbraco.Core.Serialization; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Semver; +using Umbraco.Cms.Core.Serialization; namespace Umbraco.Extensions { diff --git a/src/Umbraco.Web.Common/Filters/AngularJsonOnlyConfigurationAttribute.cs b/src/Umbraco.Web.Common/Filters/AngularJsonOnlyConfigurationAttribute.cs index 05abe6cfbc..542013577d 100644 --- a/src/Umbraco.Web.Common/Filters/AngularJsonOnlyConfigurationAttribute.cs +++ b/src/Umbraco.Web.Common/Filters/AngularJsonOnlyConfigurationAttribute.cs @@ -5,9 +5,9 @@ using Microsoft.Extensions.Options; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Serialization; -using Umbraco.Web.Common.Formatters; +using Umbraco.Cms.Web.Common.Formatters; -namespace Umbraco.Web.Common.Filters +namespace Umbraco.Cms.Web.Common.Filters { /// /// Applying this attribute to any controller will ensure that it only contains one json formatter compatible with the angular json vulnerability prevention. diff --git a/src/Umbraco.Web.Common/Filters/BackOfficeCultureFilter.cs b/src/Umbraco.Web.Common/Filters/BackOfficeCultureFilter.cs index 8a241e6a9d..cf3fe4cf9e 100644 --- a/src/Umbraco.Web.Common/Filters/BackOfficeCultureFilter.cs +++ b/src/Umbraco.Web.Common/Filters/BackOfficeCultureFilter.cs @@ -1,9 +1,11 @@ -using System; -using Microsoft.AspNetCore.Mvc.Filters; -using Umbraco.Core.Security; -using System.Globalization; +// Copyright (c) Umbraco. +// See LICENSE for more details. -namespace Umbraco.Web.Common.Filters +using System.Globalization; +using Microsoft.AspNetCore.Mvc.Filters; +using Umbraco.Extensions; + +namespace Umbraco.Cms.Web.Common.Filters { /// /// Applied to all Umbraco controllers to ensure the thread culture is set to the culture assigned to the back office identity diff --git a/src/Umbraco.Web.Common/Filters/DisableBrowserCacheAttribute.cs b/src/Umbraco.Web.Common/Filters/DisableBrowserCacheAttribute.cs index 0fe251bac4..8d7b5c6284 100644 --- a/src/Umbraco.Web.Common/Filters/DisableBrowserCacheAttribute.cs +++ b/src/Umbraco.Web.Common/Filters/DisableBrowserCacheAttribute.cs @@ -3,7 +3,7 @@ using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc.Filters; using Microsoft.Net.Http.Headers; -namespace Umbraco.Web.Common.Filters +namespace Umbraco.Cms.Web.Common.Filters { /// /// Ensures that the request is not cached by the browser diff --git a/src/Umbraco.Web.Common/Filters/EnsurePartialViewMacroViewContextFilterAttribute.cs b/src/Umbraco.Web.Common/Filters/EnsurePartialViewMacroViewContextFilterAttribute.cs index c53c367689..e09cc83dd3 100644 --- a/src/Umbraco.Web.Common/Filters/EnsurePartialViewMacroViewContextFilterAttribute.cs +++ b/src/Umbraco.Web.Common/Filters/EnsurePartialViewMacroViewContextFilterAttribute.cs @@ -5,10 +5,10 @@ using Microsoft.AspNetCore.Mvc.Filters; using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.AspNetCore.Mvc.ViewEngines; using Microsoft.AspNetCore.Mvc.ViewFeatures; -using Umbraco.Web.Common.Constants; -using Umbraco.Web.Common.Controllers; +using Umbraco.Cms.Web.Common.Constants; +using Umbraco.Cms.Web.Common.Controllers; -namespace Umbraco.Web.Common.Filters +namespace Umbraco.Cms.Web.Common.Filters { /// /// This is a special filter which is required for the RTE to be able to render Partial View Macros that diff --git a/src/Umbraco.Web.Common/Filters/ExceptionViewModel.cs b/src/Umbraco.Web.Common/Filters/ExceptionViewModel.cs index 917e00bb02..082f65cfdf 100644 --- a/src/Umbraco.Web.Common/Filters/ExceptionViewModel.cs +++ b/src/Umbraco.Web.Common/Filters/ExceptionViewModel.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Web.Common.Filters +namespace Umbraco.Cms.Web.Common.Filters { public class ExceptionViewModel { diff --git a/src/Umbraco.Web.Common/Filters/JsonDateTimeFormatAttribute.cs b/src/Umbraco.Web.Common/Filters/JsonDateTimeFormatAttribute.cs index edf8489f12..8e4b04c678 100644 --- a/src/Umbraco.Web.Common/Filters/JsonDateTimeFormatAttribute.cs +++ b/src/Umbraco.Web.Common/Filters/JsonDateTimeFormatAttribute.cs @@ -1,14 +1,12 @@ using System.Buffers; -using System.Linq; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; -using Microsoft.AspNetCore.Mvc.Formatters; using Microsoft.Extensions.Options; using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using Umbraco.Web.Common.Formatters; +using Umbraco.Cms.Web.Common.Formatters; -namespace Umbraco.Web.Common.Filters +namespace Umbraco.Cms.Web.Common.Filters { /// /// Applying this attribute to any controller will ensure that it only contains one json formatter compatible with the angular json vulnerability prevention. diff --git a/src/Umbraco.Web.Common/Filters/JsonExceptionFilterAttribute.cs b/src/Umbraco.Web.Common/Filters/JsonExceptionFilterAttribute.cs index 3d25016c15..098192365d 100644 --- a/src/Umbraco.Web.Common/Filters/JsonExceptionFilterAttribute.cs +++ b/src/Umbraco.Web.Common/Filters/JsonExceptionFilterAttribute.cs @@ -4,9 +4,9 @@ using System.Net.Mime; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; using Newtonsoft.Json; -using Umbraco.Core.Hosting; +using Umbraco.Cms.Core.Hosting; -namespace Umbraco.Web.Common.Filters +namespace Umbraco.Cms.Web.Common.Filters { public class JsonExceptionFilterAttribute : TypeFilterAttribute { diff --git a/src/Umbraco.Web.Common/Filters/ModelBindingExceptionAttribute.cs b/src/Umbraco.Web.Common/Filters/ModelBindingExceptionAttribute.cs index d22ac70d8d..87d611947e 100644 --- a/src/Umbraco.Web.Common/Filters/ModelBindingExceptionAttribute.cs +++ b/src/Umbraco.Web.Common/Filters/ModelBindingExceptionAttribute.cs @@ -5,12 +5,12 @@ using Microsoft.AspNetCore.Http.Extensions; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Web.Common.ModelBinders; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Web.Common.ModelBinders; +using Umbraco.Extensions; -namespace Umbraco.Web.Common.Filters +namespace Umbraco.Cms.Web.Common.Filters { /// /// An exception filter checking if we get a or with the same model. diff --git a/src/Umbraco.Web.Common/Filters/OutgoingNoHyphenGuidFormatAttribute.cs b/src/Umbraco.Web.Common/Filters/OutgoingNoHyphenGuidFormatAttribute.cs index 27ed71117d..602438008b 100644 --- a/src/Umbraco.Web.Common/Filters/OutgoingNoHyphenGuidFormatAttribute.cs +++ b/src/Umbraco.Web.Common/Filters/OutgoingNoHyphenGuidFormatAttribute.cs @@ -1,16 +1,13 @@ using System; using System.Buffers; -using System.Linq; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; -using Microsoft.AspNetCore.Mvc.Formatters; using Microsoft.Extensions.Options; using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Umbraco.Core; -using Umbraco.Web.Common.Formatters; +using Umbraco.Cms.Web.Common.Formatters; +using Umbraco.Extensions; -namespace Umbraco.Web.Common.Filters +namespace Umbraco.Cms.Web.Common.Filters { public class OutgoingNoHyphenGuidFormatAttribute : TypeFilterAttribute { diff --git a/src/Umbraco.Web.Common/Filters/StatusCodeResultAttribute.cs b/src/Umbraco.Web.Common/Filters/StatusCodeResultAttribute.cs index fe941e89d5..98f6d2232c 100644 --- a/src/Umbraco.Web.Common/Filters/StatusCodeResultAttribute.cs +++ b/src/Umbraco.Web.Common/Filters/StatusCodeResultAttribute.cs @@ -3,10 +3,9 @@ using Microsoft.AspNetCore.Diagnostics; using Microsoft.AspNetCore.Mvc.Filters; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Configuration.UmbracoSettings; +using Umbraco.Cms.Core.Configuration.Models; -namespace Umbraco.Web.Common.Filters +namespace Umbraco.Cms.Web.Common.Filters { /// /// Forces the response to have a specific http status code diff --git a/src/Umbraco.Web.Common/Filters/UmbracoMemberAuthorizeAttribute.cs b/src/Umbraco.Web.Common/Filters/UmbracoMemberAuthorizeAttribute.cs index cc6058121b..603a9c421b 100644 --- a/src/Umbraco.Web.Common/Filters/UmbracoMemberAuthorizeAttribute.cs +++ b/src/Umbraco.Web.Common/Filters/UmbracoMemberAuthorizeAttribute.cs @@ -1,6 +1,6 @@ using Microsoft.AspNetCore.Mvc; -namespace Umbraco.Web.Common.Filters +namespace Umbraco.Cms.Web.Common.Filters { /// /// Ensures authorization is successful for a website user (member). diff --git a/src/Umbraco.Web.Common/Filters/UmbracoMemberAuthorizeFilter.cs b/src/Umbraco.Web.Common/Filters/UmbracoMemberAuthorizeFilter.cs index fc247af55c..24c82ee23b 100644 --- a/src/Umbraco.Web.Common/Filters/UmbracoMemberAuthorizeFilter.cs +++ b/src/Umbraco.Web.Common/Filters/UmbracoMemberAuthorizeFilter.cs @@ -1,11 +1,10 @@ -using Microsoft.AspNetCore.Mvc; +using System.Collections.Generic; +using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; -using System.Collections.Generic; -using Umbraco.Core; -using Umbraco.Core.Security; +using Umbraco.Cms.Core.Security; using Umbraco.Extensions; -namespace Umbraco.Web.Common.Filters +namespace Umbraco.Cms.Web.Common.Filters { /// diff --git a/src/Umbraco.Web.Common/Filters/UmbracoUserTimeoutFilterAttribute.cs b/src/Umbraco.Web.Common/Filters/UmbracoUserTimeoutFilterAttribute.cs index 2c11b06839..b42962140d 100644 --- a/src/Umbraco.Web.Common/Filters/UmbracoUserTimeoutFilterAttribute.cs +++ b/src/Umbraco.Web.Common/Filters/UmbracoUserTimeoutFilterAttribute.cs @@ -3,7 +3,7 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; using Umbraco.Extensions; -namespace Umbraco.Web.Common.Filters +namespace Umbraco.Cms.Web.Common.Filters { /// /// This will check if the user making the request is authenticated and if there's an auth ticket tied to the user diff --git a/src/Umbraco.Web.Common/Filters/UmbracoVirtualPageFilterAttribute.cs b/src/Umbraco.Web.Common/Filters/UmbracoVirtualPageFilterAttribute.cs index 988608c2c2..7adf882488 100644 --- a/src/Umbraco.Web.Common/Filters/UmbracoVirtualPageFilterAttribute.cs +++ b/src/Umbraco.Web.Common/Filters/UmbracoVirtualPageFilterAttribute.cs @@ -6,13 +6,13 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Controllers; using Microsoft.AspNetCore.Mvc.Filters; using Microsoft.Extensions.DependencyInjection; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Web.Common.Routing; using Umbraco.Web.Common.Controllers; -using Umbraco.Web.Common.Extensions; -using Umbraco.Web.Common.Routing; -using Umbraco.Web.Routing; -namespace Umbraco.Web.Common.Filters +namespace Umbraco.Cms.Web.Common.Filters { /// /// Used to set the request feature based on the specified (if any) diff --git a/src/Umbraco.Web.Common/Filters/ValidateUmbracoFormRouteStringAttribute.cs b/src/Umbraco.Web.Common/Filters/ValidateUmbracoFormRouteStringAttribute.cs index bbd3aa981e..ed86d7c783 100644 --- a/src/Umbraco.Web.Common/Filters/ValidateUmbracoFormRouteStringAttribute.cs +++ b/src/Umbraco.Web.Common/Filters/ValidateUmbracoFormRouteStringAttribute.cs @@ -3,12 +3,12 @@ using Microsoft.AspNetCore.DataProtection; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Controllers; using Microsoft.AspNetCore.Mvc.Filters; -using Umbraco.Core; -using Umbraco.Web.Common.Constants; -using Umbraco.Web.Common.Exceptions; -using Umbraco.Web.Common.Security; +using Umbraco.Cms.Web.Common.Constants; +using Umbraco.Cms.Web.Common.Exceptions; +using Umbraco.Cms.Web.Common.Security; +using Umbraco.Extensions; -namespace Umbraco.Web.Common.Filters +namespace Umbraco.Cms.Web.Common.Filters { /// diff --git a/src/Umbraco.Web.Common/Formatters/AngularJsonMediaTypeFormatter.cs b/src/Umbraco.Web.Common/Formatters/AngularJsonMediaTypeFormatter.cs index 3dd5e8330f..d0558442f9 100644 --- a/src/Umbraco.Web.Common/Formatters/AngularJsonMediaTypeFormatter.cs +++ b/src/Umbraco.Web.Common/Formatters/AngularJsonMediaTypeFormatter.cs @@ -6,7 +6,7 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Umbraco.Core.Serialization; -namespace Umbraco.Web.Common.Formatters +namespace Umbraco.Cms.Web.Common.Formatters { /// /// This will format the JSON output for use with AngularJs's approach to JSON Vulnerability attacks diff --git a/src/Umbraco.Web.Common/Formatters/IgnoreRequiredAttributesResolver.cs b/src/Umbraco.Web.Common/Formatters/IgnoreRequiredAttributesResolver.cs index 49e65d4a3b..1988afcaef 100644 --- a/src/Umbraco.Web.Common/Formatters/IgnoreRequiredAttributesResolver.cs +++ b/src/Umbraco.Web.Common/Formatters/IgnoreRequiredAttributesResolver.cs @@ -2,7 +2,7 @@ using Newtonsoft.Json; using Newtonsoft.Json.Serialization; -namespace Umbraco.Web.Common.Formatters +namespace Umbraco.Cms.Web.Common.Formatters { public class IgnoreRequiredAttributesResolver : DefaultContractResolver { diff --git a/src/Umbraco.Web.Common/Install/InstallApiController.cs b/src/Umbraco.Web.Common/Install/InstallApiController.cs index ab96707f94..1db4bdd7f1 100644 --- a/src/Umbraco.Web.Common/Install/InstallApiController.cs +++ b/src/Umbraco.Web.Common/Install/InstallApiController.cs @@ -6,22 +6,23 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using Newtonsoft.Json.Linq; -using Umbraco.Core; -using Umbraco.Core.Hosting; -using Umbraco.Core.Logging; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Install; +using Umbraco.Cms.Core.Install.Models; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Web.Common.ActionsResults; +using Umbraco.Cms.Web.Common.Attributes; +using Umbraco.Cms.Web.Common.Filters; using Umbraco.Core.Migrations.Install; -using Umbraco.Web.Common.ActionsResults; -using Umbraco.Web.Common.Attributes; -using Umbraco.Web.Common.Filters; +using Umbraco.Extensions; using Umbraco.Web.Install; -using Umbraco.Web.Install.Models; -namespace Umbraco.Web.Common.Install +namespace Umbraco.Cms.Web.Common.Install { [UmbracoApiController] [AngularJsonOnlyConfiguration] [InstallAuthorize] - [Area(Umbraco.Core.Constants.Web.Mvc.InstallArea)] + [Area(Cms.Core.Constants.Web.Mvc.InstallArea)] public class InstallApiController : ControllerBase { private readonly DatabaseBuilder _databaseBuilder; diff --git a/src/Umbraco.Web.Common/Install/InstallAreaRoutes.cs b/src/Umbraco.Web.Common/Install/InstallAreaRoutes.cs index f1fb7220bd..6a89d3b770 100644 --- a/src/Umbraco.Web.Common/Install/InstallAreaRoutes.cs +++ b/src/Umbraco.Web.Common/Install/InstallAreaRoutes.cs @@ -1,16 +1,13 @@ -using Microsoft.AspNetCore.Builder; -using Microsoft.AspNetCore.Http.Extensions; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Routing; -using System; -using System.Threading.Tasks; -using Umbraco.Core; -using Umbraco.Core.Hosting; -using Umbraco.Core.Logging; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Web.Common.Routing; using Umbraco.Extensions; -using Umbraco.Web.Common.Extensions; -using Umbraco.Web.Common.Routing; -namespace Umbraco.Web.Common.Install +namespace Umbraco.Cms.Web.Common.Install { public class InstallAreaRoutes : IAreaRoutes @@ -28,23 +25,23 @@ namespace Umbraco.Web.Common.Install public void CreateRoutes(IEndpointRouteBuilder endpoints) { - var installPathSegment = _hostingEnvironment.ToAbsolute(Core.Constants.SystemDirectories.Install).TrimStart('/'); + var installPathSegment = _hostingEnvironment.ToAbsolute(Cms.Core.Constants.SystemDirectories.Install).TrimStart('/'); switch (_runtime.Level) { case RuntimeLevel.Install: case RuntimeLevel.Upgrade: - endpoints.MapUmbracoRoute(installPathSegment, Core.Constants.Web.Mvc.InstallArea, "api", includeControllerNameInRoute: false); - endpoints.MapUmbracoRoute(installPathSegment, Core.Constants.Web.Mvc.InstallArea, string.Empty, includeControllerNameInRoute: false); + endpoints.MapUmbracoRoute(installPathSegment, Cms.Core.Constants.Web.Mvc.InstallArea, "api", includeControllerNameInRoute: false); + endpoints.MapUmbracoRoute(installPathSegment, Cms.Core.Constants.Web.Mvc.InstallArea, string.Empty, includeControllerNameInRoute: false); // register catch all because if we are in install/upgrade mode then we'll catch everything and redirect endpoints.MapFallbackToAreaController( "Redirect", ControllerExtensions.GetControllerName(), - Core.Constants.Web.Mvc.InstallArea); + Cms.Core.Constants.Web.Mvc.InstallArea); + - break; case RuntimeLevel.Run: @@ -61,10 +58,10 @@ namespace Umbraco.Web.Common.Install case RuntimeLevel.Unknown: case RuntimeLevel.Boot: break; - + } } - + } } diff --git a/src/Umbraco.Web.Common/Install/InstallAuthorizeAttribute.cs b/src/Umbraco.Web.Common/Install/InstallAuthorizeAttribute.cs index 0989de5ba4..71482db274 100644 --- a/src/Umbraco.Web.Common/Install/InstallAuthorizeAttribute.cs +++ b/src/Umbraco.Web.Common/Install/InstallAuthorizeAttribute.cs @@ -2,10 +2,10 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Core.Security; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Services; -namespace Umbraco.Web.Common.Install +namespace Umbraco.Cms.Web.Common.Install { /// /// Ensures authorization occurs for the installer if it has already completed. diff --git a/src/Umbraco.Web.Common/Install/InstallController.cs b/src/Umbraco.Web.Common/Install/InstallController.cs index 1e8264a2fc..823e1a8305 100644 --- a/src/Umbraco.Web.Common/Install/InstallController.cs +++ b/src/Umbraco.Web.Common/Install/InstallController.cs @@ -1,30 +1,29 @@ using System.IO; +using System.Threading.Tasks; using Microsoft.AspNetCore.Http.Extensions; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Routing; using Microsoft.Extensions.Logging; -using System.Threading.Tasks; -using Umbraco.Core; -using Umbraco.Core.Configuration; -using Umbraco.Core.Hosting; -using Umbraco.Core.Security; -using Umbraco.Core.WebAssets; -using Umbraco.Extensions; -using Umbraco.Web.Common.Filters; -using Umbraco.Web.Install; -using Umbraco.Web.Security; -using Umbraco.Core.Configuration.Models; using Microsoft.Extensions.Options; -using Microsoft.AspNetCore.Authentication; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.WebAssets; +using Umbraco.Extensions; +using Umbraco.Cms.Web.Common.Filters; +using Umbraco.Web.Install; -namespace Umbraco.Web.Common.Install +namespace Umbraco.Cms.Web.Common.Install { /// /// The Installation controller /// [InstallAuthorize] - [Area(Umbraco.Core.Constants.Web.Mvc.InstallArea)] + [Area(Cms.Core.Constants.Web.Mvc.InstallArea)] public class InstallController : Controller { private readonly IBackOfficeSecurityAccessor _backofficeSecurityAccessor; @@ -93,7 +92,7 @@ namespace Umbraco.Web.Common.Install await _installHelper.SetInstallStatusAsync(false, ""); - return View(Path.Combine(baseFolder , Umbraco.Core.Constants.Web.Mvc.InstallArea, nameof(Index) + ".cshtml")); + return View(Path.Combine(baseFolder , Cms.Core.Constants.Web.Mvc.InstallArea, nameof(Index) + ".cshtml")); } /// diff --git a/src/Umbraco.Web.Common/Localization/UmbracoBackOfficeIdentityCultureProvider.cs b/src/Umbraco.Web.Common/Localization/UmbracoBackOfficeIdentityCultureProvider.cs index 4993b68568..d7d10fe67f 100644 --- a/src/Umbraco.Web.Common/Localization/UmbracoBackOfficeIdentityCultureProvider.cs +++ b/src/Umbraco.Web.Common/Localization/UmbracoBackOfficeIdentityCultureProvider.cs @@ -1,14 +1,15 @@ +// Copyright (c) Umbraco. +// See LICENSE for more details. + using System.Globalization; using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Localization; -using Microsoft.Extensions.Options; -using Umbraco.Core.Security; +using Umbraco.Extensions; -namespace Umbraco.Web.Common.Localization +namespace Umbraco.Cms.Web.Common.Localization { - /// /// Sets the request culture to the culture of the back office user if one is determined to be in the request /// diff --git a/src/Umbraco.Web.Common/Localization/UmbracoPublishedContentCultureProvider.cs b/src/Umbraco.Web.Common/Localization/UmbracoPublishedContentCultureProvider.cs index 66177e965a..ab3f4ccc77 100644 --- a/src/Umbraco.Web.Common/Localization/UmbracoPublishedContentCultureProvider.cs +++ b/src/Umbraco.Web.Common/Localization/UmbracoPublishedContentCultureProvider.cs @@ -5,13 +5,11 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Localization; -using Microsoft.AspNetCore.Routing; -using Microsoft.Extensions.Options; using Microsoft.Extensions.Primitives; -using Umbraco.Web.Common.Routing; -using Umbraco.Web.Routing; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Web.Common.Routing; -namespace Umbraco.Web.Common.Localization +namespace Umbraco.Cms.Web.Common.Localization { /// /// Sets the request culture to the culture of the if one is found in the request diff --git a/src/Umbraco.Web.Common/Localization/UmbracoRequestLocalizationOptions.cs b/src/Umbraco.Web.Common/Localization/UmbracoRequestLocalizationOptions.cs index a4c6d117ca..9d8718a5f4 100644 --- a/src/Umbraco.Web.Common/Localization/UmbracoRequestLocalizationOptions.cs +++ b/src/Umbraco.Web.Common/Localization/UmbracoRequestLocalizationOptions.cs @@ -2,9 +2,9 @@ using System.Collections.Generic; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Localization; using Microsoft.Extensions.Options; -using Umbraco.Core.Configuration.Models; +using Umbraco.Cms.Core.Configuration.Models; -namespace Umbraco.Web.Common.Localization +namespace Umbraco.Cms.Web.Common.Localization { /// /// Custom Umbraco options configuration for diff --git a/src/Umbraco.Web.Common/Macros/MacroRenderer.cs b/src/Umbraco.Web.Common/Macros/MacroRenderer.cs index 9a9e46eefc..f798199012 100644 --- a/src/Umbraco.Web.Common/Macros/MacroRenderer.cs +++ b/src/Umbraco.Web.Common/Macros/MacroRenderer.cs @@ -4,21 +4,22 @@ using System.IO; using System.Linq; using System.Text; using Microsoft.AspNetCore.Http; -using Microsoft.Extensions.Options; using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Events; -using Umbraco.Core.Logging; -using Umbraco.Core.Macros; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Web.Common.Macros; -using Umbraco.Core.Hosting; +using Microsoft.Extensions.Options; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Macros; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Web; +using Umbraco.Extensions; -namespace Umbraco.Web.Macros +namespace Umbraco.Cms.Web.Common.Macros { public class MacroRenderer : IMacroRenderer { diff --git a/src/Umbraco.Web.Common/Macros/MemberUserKeyProvider.cs b/src/Umbraco.Web.Common/Macros/MemberUserKeyProvider.cs index d5b30bbe0d..0d9fce3fc7 100644 --- a/src/Umbraco.Web.Common/Macros/MemberUserKeyProvider.cs +++ b/src/Umbraco.Web.Common/Macros/MemberUserKeyProvider.cs @@ -1,6 +1,6 @@ -using Umbraco.Core.Security; +using Umbraco.Cms.Core.Security; -namespace Umbraco.Web.Common.Macros +namespace Umbraco.Cms.Web.Common.Macros { internal class MemberUserKeyProvider : IMemberUserKeyProvider { diff --git a/src/Umbraco.Web.Common/Macros/PartialViewMacroEngine.cs b/src/Umbraco.Web.Common/Macros/PartialViewMacroEngine.cs index 051f545293..ef59c9f896 100644 --- a/src/Umbraco.Web.Common/Macros/PartialViewMacroEngine.cs +++ b/src/Umbraco.Web.Common/Macros/PartialViewMacroEngine.cs @@ -13,13 +13,13 @@ using Microsoft.AspNetCore.Mvc.ViewEngines; using Microsoft.AspNetCore.Mvc.ViewFeatures; using Microsoft.AspNetCore.Routing; using Microsoft.Extensions.DependencyInjection; -using Umbraco.Core.Hosting; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Macros; +using Umbraco.Cms.Core.Models.PublishedContent; using Umbraco.Extensions; -using Umbraco.Web.Macros; -using static Umbraco.Core.Constants.Web.Routing; +using static Umbraco.Cms.Core.Constants.Web.Routing; -namespace Umbraco.Web.Common.Macros +namespace Umbraco.Cms.Web.Common.Macros { /// /// A macro engine using MVC Partial Views to execute. @@ -92,7 +92,7 @@ namespace Umbraco.Web.Common.Macros routeVals.Values.Add(ActionToken, "Index"); //TODO: Was required for UmbracoViewPage need to figure out if we still need that, i really don't think this is necessary - //routeVals.DataTokens.Add(Core.Constants.Web.UmbracoContextDataToken, umbCtx); + //routeVals.DataTokens.Add(Core.Constants.Web.UmbracoContextDataToken, umbCtx); var modelMetadataProvider = httpContext.RequestServices.GetRequiredService(); var tempDataProvider = httpContext.RequestServices.GetRequiredService(); diff --git a/src/Umbraco.Web.Common/Macros/PartialViewMacroPage.cs b/src/Umbraco.Web.Common/Macros/PartialViewMacroPage.cs index 22c90e8ac2..2c8a77bd05 100644 --- a/src/Umbraco.Web.Common/Macros/PartialViewMacroPage.cs +++ b/src/Umbraco.Web.Common/Macros/PartialViewMacroPage.cs @@ -1,7 +1,7 @@ -using Umbraco.Web.Common.Views; -using Umbraco.Web.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Web.Common.AspNetCore; -namespace Umbraco.Web.Common.Macros +namespace Umbraco.Cms.Web.Common.Macros { /// /// The base view class that PartialViewMacro views need to inherit from diff --git a/src/Umbraco.Web.Common/Macros/PartialViewMacroViewComponent.cs b/src/Umbraco.Web.Common/Macros/PartialViewMacroViewComponent.cs index 3fc3375738..2b317585b4 100644 --- a/src/Umbraco.Web.Common/Macros/PartialViewMacroViewComponent.cs +++ b/src/Umbraco.Web.Common/Macros/PartialViewMacroViewComponent.cs @@ -1,14 +1,12 @@ -using System.Collections.Generic; -using Umbraco.Web.Models; -using System.Linq; +using System.Linq; using System.Threading.Tasks; -using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Mvc; -using Microsoft.AspNetCore.Mvc.ViewEngines; -using Umbraco.Core.Composing; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Macros; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; -namespace Umbraco.Web.Macros +namespace Umbraco.Cms.Web.Common.Macros { /// /// Controller to render macro content for Partial View Macros diff --git a/src/Umbraco.Web.Common/Middleware/BootFailedMiddleware.cs b/src/Umbraco.Web.Common/Middleware/BootFailedMiddleware.cs index 685312778d..718d2f3a4c 100644 --- a/src/Umbraco.Web.Common/Middleware/BootFailedMiddleware.cs +++ b/src/Umbraco.Web.Common/Middleware/BootFailedMiddleware.cs @@ -1,10 +1,10 @@ -using System; -using System.Threading.Tasks; +using System.Threading.Tasks; using Microsoft.AspNetCore.Http; -using Umbraco.Core; -using Umbraco.Core.Exceptions; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Exceptions; +using Umbraco.Cms.Core.Services; -namespace Umbraco.Web.Common.Middleware +namespace Umbraco.Cms.Web.Common.Middleware { /// /// Executes when Umbraco booting fails in order to show the problem diff --git a/src/Umbraco.Web.Common/Middleware/UmbracoRequestLoggingMiddleware.cs b/src/Umbraco.Web.Common/Middleware/UmbracoRequestLoggingMiddleware.cs index 1bda56bd37..57c50d4f46 100644 --- a/src/Umbraco.Web.Common/Middleware/UmbracoRequestLoggingMiddleware.cs +++ b/src/Umbraco.Web.Common/Middleware/UmbracoRequestLoggingMiddleware.cs @@ -1,13 +1,10 @@ -using System; -using System.Threading.Tasks; +using System.Threading.Tasks; using Microsoft.AspNetCore.Http; -using Microsoft.AspNetCore.Http.Extensions; using Serilog.Context; -using Umbraco.Core; using Umbraco.Core.Logging.Serilog.Enrichers; using Umbraco.Extensions; -namespace Umbraco.Web.Common.Middleware +namespace Umbraco.Cms.Web.Common.Middleware { /// /// Adds request based serilog enrichers to the LogContext for each request @@ -16,7 +13,7 @@ namespace Umbraco.Web.Common.Middleware { private readonly HttpSessionIdEnricher _sessionIdEnricher; private readonly HttpRequestNumberEnricher _requestNumberEnricher; - private readonly HttpRequestIdEnricher _requestIdEnricher; + private readonly HttpRequestIdEnricher _requestIdEnricher; public UmbracoRequestLoggingMiddleware( HttpSessionIdEnricher sessionIdEnricher, diff --git a/src/Umbraco.Web.Common/Middleware/UmbracoRequestMiddleware.cs b/src/Umbraco.Web.Common/Middleware/UmbracoRequestMiddleware.cs index 5dc604fea9..74651d8087 100644 --- a/src/Umbraco.Web.Common/Middleware/UmbracoRequestMiddleware.cs +++ b/src/Umbraco.Web.Common/Middleware/UmbracoRequestMiddleware.cs @@ -5,16 +5,18 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http.Extensions; using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Events; -using Umbraco.Core.Hosting; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Infrastructure.PublishedCache; +using Umbraco.Cms.Web.Common.Profiler; using Umbraco.Core.Logging; using Umbraco.Extensions; -using Umbraco.Web.Common.Profiler; -using Umbraco.Web.PublishedCache.NuCache; -namespace Umbraco.Web.Common.Middleware +namespace Umbraco.Cms.Web.Common.Middleware { /// diff --git a/src/Umbraco.Web.Common/ModelBinders/ContentModelBinder.cs b/src/Umbraco.Web.Common/ModelBinders/ContentModelBinder.cs index e3aabe71be..564e0992b5 100644 --- a/src/Umbraco.Web.Common/ModelBinders/ContentModelBinder.cs +++ b/src/Umbraco.Web.Common/ModelBinders/ContentModelBinder.cs @@ -2,13 +2,14 @@ using System; using System.Text; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc.ModelBinding; -using Umbraco.Core; -using Umbraco.Core.Events; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Web.Common.Routing; -using Umbraco.Web.Models; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Web.Common.Routing; +using Umbraco.Extensions; -namespace Umbraco.Web.Common.ModelBinders +namespace Umbraco.Cms.Web.Common.ModelBinders { /// diff --git a/src/Umbraco.Web.Common/ModelBinders/ContentModelBinderProvider.cs b/src/Umbraco.Web.Common/ModelBinders/ContentModelBinderProvider.cs index 9ce38abe03..1e07d05985 100644 --- a/src/Umbraco.Web.Common/ModelBinders/ContentModelBinderProvider.cs +++ b/src/Umbraco.Web.Common/ModelBinders/ContentModelBinderProvider.cs @@ -1,15 +1,15 @@ using Microsoft.AspNetCore.Mvc.ModelBinding; using Microsoft.AspNetCore.Mvc.ModelBinding.Binders; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Web.Models; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; -namespace Umbraco.Web.Common.ModelBinders +namespace Umbraco.Cms.Web.Common.ModelBinders { /// /// The provider for mapping view models, supporting mapping to and from any IPublishedContent or IContentModel. /// public class ContentModelBinderProvider : IModelBinderProvider - { + { public IModelBinder GetBinder(ModelBinderProviderContext context) { var modelType = context.Metadata.ModelType; diff --git a/src/Umbraco.Web.Common/ModelBinders/HttpQueryStringModelBinder.cs b/src/Umbraco.Web.Common/ModelBinders/HttpQueryStringModelBinder.cs index 824da4fcd0..a8c09475d9 100644 --- a/src/Umbraco.Web.Common/ModelBinders/HttpQueryStringModelBinder.cs +++ b/src/Umbraco.Web.Common/ModelBinders/HttpQueryStringModelBinder.cs @@ -4,10 +4,9 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc.ModelBinding; using Microsoft.Extensions.Primitives; -using Umbraco.Core; using Umbraco.Extensions; -namespace Umbraco.Web.Common.ModelBinders +namespace Umbraco.Cms.Web.Common.ModelBinders { /// /// Allows an Action to execute with an arbitrary number of QueryStrings diff --git a/src/Umbraco.Web.Common/ModelBinders/ModelBindingError.cs b/src/Umbraco.Web.Common/ModelBinders/ModelBindingError.cs index 352ca842a5..f32d1273a4 100644 --- a/src/Umbraco.Web.Common/ModelBinders/ModelBindingError.cs +++ b/src/Umbraco.Web.Common/ModelBinders/ModelBindingError.cs @@ -1,8 +1,8 @@ using System; using System.Text; -using Umbraco.Core.Events; +using Umbraco.Cms.Core.Events; -namespace Umbraco.Web.Common.ModelBinders +namespace Umbraco.Cms.Web.Common.ModelBinders { /// /// Contains event data for the event. diff --git a/src/Umbraco.Web.Common/ModelBinders/ModelBindingException.cs b/src/Umbraco.Web.Common/ModelBinders/ModelBindingException.cs index 66ad642412..d8418b17a6 100644 --- a/src/Umbraco.Web.Common/ModelBinders/ModelBindingException.cs +++ b/src/Umbraco.Web.Common/ModelBinders/ModelBindingException.cs @@ -1,7 +1,7 @@ using System; using System.Runtime.Serialization; -namespace Umbraco.Web.Common.ModelBinders +namespace Umbraco.Cms.Web.Common.ModelBinders { /// /// The exception that is thrown when an error occurs while binding a source to a model. diff --git a/src/Umbraco.Web.Common/ModelBinders/UmbracoJsonModelBinder.cs b/src/Umbraco.Web.Common/ModelBinders/UmbracoJsonModelBinder.cs index 7069344bda..e681785f20 100644 --- a/src/Umbraco.Web.Common/ModelBinders/UmbracoJsonModelBinder.cs +++ b/src/Umbraco.Web.Common/ModelBinders/UmbracoJsonModelBinder.cs @@ -6,9 +6,9 @@ using Microsoft.AspNetCore.Mvc.ModelBinding; using Microsoft.AspNetCore.Mvc.ModelBinding.Binders; using Microsoft.Extensions.Logging; using Microsoft.Extensions.ObjectPool; -using Umbraco.Web.Common.Formatters; +using Umbraco.Cms.Web.Common.Formatters; -namespace Umbraco.Web.Common.ModelBinders +namespace Umbraco.Cms.Web.Common.ModelBinders { /// /// A custom body model binder that only uses a to bind body action parameters diff --git a/src/Umbraco.Web.Common/Mvc/HtmlStringUtilities.cs b/src/Umbraco.Web.Common/Mvc/HtmlStringUtilities.cs index 204bb61425..21e4ce0320 100644 --- a/src/Umbraco.Web.Common/Mvc/HtmlStringUtilities.cs +++ b/src/Umbraco.Web.Common/Mvc/HtmlStringUtilities.cs @@ -7,7 +7,7 @@ using System.Web; using HtmlAgilityPack; using Microsoft.AspNetCore.Html; -namespace Umbraco.Web.Common.Mvc +namespace Umbraco.Cms.Web.Common.Mvc { /// /// Provides utility methods for UmbracoHelper for working with strings and HTML in views. diff --git a/src/Umbraco.Web.Common/Mvc/UmbracoMvcConfigureOptions.cs b/src/Umbraco.Web.Common/Mvc/UmbracoMvcConfigureOptions.cs index c212334560..15927a4404 100644 --- a/src/Umbraco.Web.Common/Mvc/UmbracoMvcConfigureOptions.cs +++ b/src/Umbraco.Web.Common/Mvc/UmbracoMvcConfigureOptions.cs @@ -1,9 +1,9 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Options; -using Umbraco.Web.Common.Filters; -using Umbraco.Web.Common.ModelBinders; +using Umbraco.Cms.Web.Common.Filters; +using Umbraco.Cms.Web.Common.ModelBinders; -namespace Umbraco.Web.Common.Mvc +namespace Umbraco.Cms.Web.Common.Mvc { /// diff --git a/src/Umbraco.Web.Common/Plugins/UmbracoPluginPhysicalFileProvider.cs b/src/Umbraco.Web.Common/Plugins/UmbracoPluginPhysicalFileProvider.cs index d62e203cce..4259413d2d 100644 --- a/src/Umbraco.Web.Common/Plugins/UmbracoPluginPhysicalFileProvider.cs +++ b/src/Umbraco.Web.Common/Plugins/UmbracoPluginPhysicalFileProvider.cs @@ -5,9 +5,9 @@ using System.IO; using Microsoft.Extensions.FileProviders; using Microsoft.Extensions.FileProviders.Physical; using Microsoft.Extensions.Options; -using Umbraco.Core.Configuration.Models; +using Umbraco.Cms.Core.Configuration.Models; -namespace Umbraco.Web.Common.Plugins +namespace Umbraco.Cms.Web.Common.Plugins { /// /// Looks up files using the on-disk file system and check file extensions are on a allow list @@ -40,7 +40,7 @@ namespace Umbraco.Web.Common.Plugins public new IFileInfo GetFileInfo(string subpath) { var extension = Path.GetExtension(subpath); - var subPathInclAppPluginsFolder = Path.Combine(Core.Constants.SystemDirectories.AppPlugins, subpath); + var subPathInclAppPluginsFolder = Path.Combine(Cms.Core.Constants.SystemDirectories.AppPlugins, subpath); if (!_options.Value.BrowsableFileExtensions.Contains(extension)) { return new NotFoundFileInfo(subPathInclAppPluginsFolder); diff --git a/src/Umbraco.Web.Common/Profiler/InitializeWebProfiling.cs b/src/Umbraco.Web.Common/Profiler/InitializeWebProfiling.cs index cdff75ffbe..257fd948a1 100644 --- a/src/Umbraco.Web.Common/Profiler/InitializeWebProfiling.cs +++ b/src/Umbraco.Web.Common/Profiler/InitializeWebProfiling.cs @@ -2,10 +2,10 @@ // See LICENSE for more details. using Microsoft.Extensions.Logging; -using Umbraco.Core.Events; -using Umbraco.Core.Logging; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Logging; -namespace Umbraco.Web.Common.Profiler +namespace Umbraco.Cms.Web.Common.Profiler { /// /// Initialized the web profiling. Ensures the boot process profiling is stopped. diff --git a/src/Umbraco.Web.Common/Profiler/WebProfiler.cs b/src/Umbraco.Web.Common/Profiler/WebProfiler.cs index ac0aadb1a4..34326083d3 100644 --- a/src/Umbraco.Web.Common/Profiler/WebProfiler.cs +++ b/src/Umbraco.Web.Common/Profiler/WebProfiler.cs @@ -3,10 +3,10 @@ using System.Linq; using System.Threading; using Microsoft.AspNetCore.Http; using StackExchange.Profiling; -using Umbraco.Core.Logging; +using Umbraco.Cms.Core.Logging; using Umbraco.Extensions; -namespace Umbraco.Web.Common.Profiler +namespace Umbraco.Cms.Web.Common.Profiler { public class WebProfiler : IProfiler diff --git a/src/Umbraco.Web.Common/Profiler/WebProfilerHtml.cs b/src/Umbraco.Web.Common/Profiler/WebProfilerHtml.cs index 40c245dd5a..037e5e40ad 100644 --- a/src/Umbraco.Web.Common/Profiler/WebProfilerHtml.cs +++ b/src/Umbraco.Web.Common/Profiler/WebProfilerHtml.cs @@ -3,9 +3,9 @@ using System.Collections.Generic; using Microsoft.AspNetCore.Http; using StackExchange.Profiling; using StackExchange.Profiling.Internal; -using Umbraco.Core.Logging; +using Umbraco.Cms.Core.Logging; -namespace Umbraco.Web.Common.Profiler +namespace Umbraco.Cms.Web.Common.Profiler { public class WebProfilerHtml : IProfilerHtml { diff --git a/src/Umbraco.Web.Common/PublishedModels/DummyClassSoThatPublishedModelsNamespaceExists.cs b/src/Umbraco.Web.Common/PublishedModels/DummyClassSoThatPublishedModelsNamespaceExists.cs index 9691cb5a94..df1be4a6f1 100644 --- a/src/Umbraco.Web.Common/PublishedModels/DummyClassSoThatPublishedModelsNamespaceExists.cs +++ b/src/Umbraco.Web.Common/PublishedModels/DummyClassSoThatPublishedModelsNamespaceExists.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.PublishedModels +namespace Umbraco.Cms.Web.Common.PublishedModels { // this is here so that Umbraco.Web.PublishedModels namespace exists in views // even if people are not using models at all - because we are referencing it diff --git a/src/Umbraco.Web.Common/Routing/CustomRouteContentFinderDelegate.cs b/src/Umbraco.Web.Common/Routing/CustomRouteContentFinderDelegate.cs index 5be3b4b952..7f835f7996 100644 --- a/src/Umbraco.Web.Common/Routing/CustomRouteContentFinderDelegate.cs +++ b/src/Umbraco.Web.Common/Routing/CustomRouteContentFinderDelegate.cs @@ -1,9 +1,8 @@ using System; -using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc.Filters; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.PublishedContent; -namespace Umbraco.Web.Common.Extensions +namespace Umbraco.Cms.Web.Common.Routing { internal class CustomRouteContentFinderDelegate { diff --git a/src/Umbraco.Web.Common/Routing/IAreaRoutes.cs b/src/Umbraco.Web.Common/Routing/IAreaRoutes.cs index b01f703016..a82e81f34f 100644 --- a/src/Umbraco.Web.Common/Routing/IAreaRoutes.cs +++ b/src/Umbraco.Web.Common/Routing/IAreaRoutes.cs @@ -1,6 +1,6 @@ using Microsoft.AspNetCore.Routing; -namespace Umbraco.Web.Common.Routing +namespace Umbraco.Cms.Web.Common.Routing { /// /// Used to create routes for a route area diff --git a/src/Umbraco.Web.Common/Routing/IRoutableDocumentFilter.cs b/src/Umbraco.Web.Common/Routing/IRoutableDocumentFilter.cs index b921918bf6..62b52191e8 100644 --- a/src/Umbraco.Web.Common/Routing/IRoutableDocumentFilter.cs +++ b/src/Umbraco.Web.Common/Routing/IRoutableDocumentFilter.cs @@ -1,7 +1,7 @@ -namespace Umbraco.Web.Common.Routing +namespace Umbraco.Cms.Web.Common.Routing { public interface IRoutableDocumentFilter { bool IsDocumentRequest(string absPath); } -} \ No newline at end of file +} diff --git a/src/Umbraco.Web.Common/Routing/PublicAccessChecker.cs b/src/Umbraco.Web.Common/Routing/PublicAccessChecker.cs index 0d7b787721..0ac3125d87 100644 --- a/src/Umbraco.Web.Common/Routing/PublicAccessChecker.cs +++ b/src/Umbraco.Web.Common/Routing/PublicAccessChecker.cs @@ -1,6 +1,6 @@ -using Umbraco.Web.Security; +using Umbraco.Cms.Core.Security; -namespace Umbraco.Web.Common.Routing +namespace Umbraco.Cms.Web.Common.Routing { public class PublicAccessChecker : IPublicAccessChecker { diff --git a/src/Umbraco.Web.Common/Routing/RoutableDocumentFilter.cs b/src/Umbraco.Web.Common/Routing/RoutableDocumentFilter.cs index 71c01be5e0..a4311b988c 100644 --- a/src/Umbraco.Web.Common/Routing/RoutableDocumentFilter.cs +++ b/src/Umbraco.Web.Common/Routing/RoutableDocumentFilter.cs @@ -7,12 +7,11 @@ using System.Threading; using Microsoft.AspNetCore.Routing; using Microsoft.AspNetCore.Routing.Template; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Extensions; -namespace Umbraco.Web.Common.Routing +namespace Umbraco.Cms.Web.Common.Routing { /// /// Utility class used to check if the current request is for a front-end request @@ -71,7 +70,7 @@ namespace Umbraco.Web.Common.Routing // /foo/bar/nil/ // where /foo is not a reserved path - // if the path contains an extension + // if the path contains an extension // then it cannot be a document request var extension = Path.GetExtension(absPath); if (maybeDoc && !extension.IsNullOrWhiteSpace()) diff --git a/src/Umbraco.Web.Common/Routing/UmbracoRouteValues.cs b/src/Umbraco.Web.Common/Routing/UmbracoRouteValues.cs index 20381fea80..6088f21931 100644 --- a/src/Umbraco.Web.Common/Routing/UmbracoRouteValues.cs +++ b/src/Umbraco.Web.Common/Routing/UmbracoRouteValues.cs @@ -1,11 +1,9 @@ using System; using Microsoft.AspNetCore.Mvc.Controllers; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Extensions; -using Umbraco.Web.Common.Controllers; -using Umbraco.Web.Routing; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Web.Common.Controllers; -namespace Umbraco.Web.Common.Routing +namespace Umbraco.Cms.Web.Common.Routing { /// /// Represents the data required to route to a specific controller/action during an Umbraco request diff --git a/src/Umbraco.Web.Common/RuntimeMinification/SmidgeComposer.cs b/src/Umbraco.Web.Common/RuntimeMinification/SmidgeComposer.cs index 9a097f688b..c4869a9cf9 100644 --- a/src/Umbraco.Web.Common/RuntimeMinification/SmidgeComposer.cs +++ b/src/Umbraco.Web.Common/RuntimeMinification/SmidgeComposer.cs @@ -1,11 +1,11 @@ using Microsoft.Extensions.DependencyInjection; using Smidge.FileProcessors; -using Umbraco.Core.DependencyInjection; -using Umbraco.Core.Composing; -using Umbraco.Core.Runtime; -using Umbraco.Core.WebAssets; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.DependencyInjection; +using Umbraco.Cms.Core.WebAssets; +using Umbraco.Extensions; -namespace Umbraco.Web.Common.RuntimeMinification +namespace Umbraco.Cms.Web.Common.RuntimeMinification { public sealed class SmidgeComposer : IComposer { diff --git a/src/Umbraco.Web.Common/RuntimeMinification/SmidgeHelperAccessor.cs b/src/Umbraco.Web.Common/RuntimeMinification/SmidgeHelperAccessor.cs index c46a948bc2..198fe7a5d0 100644 --- a/src/Umbraco.Web.Common/RuntimeMinification/SmidgeHelperAccessor.cs +++ b/src/Umbraco.Web.Common/RuntimeMinification/SmidgeHelperAccessor.cs @@ -3,7 +3,7 @@ using Microsoft.AspNetCore.Http; using Microsoft.Extensions.DependencyInjection; using Smidge; -namespace Umbraco.Web.Common.RuntimeMinification +namespace Umbraco.Cms.Web.Common.RuntimeMinification { // work around for SmidgeHelper being request/scope lifetime public sealed class SmidgeHelperAccessor diff --git a/src/Umbraco.Web.Common/RuntimeMinification/SmidgeNuglifyJs.cs b/src/Umbraco.Web.Common/RuntimeMinification/SmidgeNuglifyJs.cs index bab4abde53..cf85ae568d 100644 --- a/src/Umbraco.Web.Common/RuntimeMinification/SmidgeNuglifyJs.cs +++ b/src/Umbraco.Web.Common/RuntimeMinification/SmidgeNuglifyJs.cs @@ -1,6 +1,6 @@ using Smidge.Nuglify; -namespace Umbraco.Web.Common.RuntimeMinification +namespace Umbraco.Cms.Web.Common.RuntimeMinification { /// /// Custom Nuglify Js pre-process to specify custom nuglify options without changing the global defaults diff --git a/src/Umbraco.Web.Common/RuntimeMinification/SmidgeRuntimeMinifier.cs b/src/Umbraco.Web.Common/RuntimeMinification/SmidgeRuntimeMinifier.cs index 29a0e41998..f90ef96f19 100644 --- a/src/Umbraco.Web.Common/RuntimeMinification/SmidgeRuntimeMinifier.cs +++ b/src/Umbraco.Web.Common/RuntimeMinification/SmidgeRuntimeMinifier.cs @@ -7,14 +7,13 @@ using Smidge.CompositeFiles; using Smidge.FileProcessors; using Smidge.Models; using Smidge.Nuglify; -using Umbraco.Core; -using Umbraco.Core.Configuration; -using Umbraco.Core.Hosting; -using Umbraco.Core.WebAssets; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.WebAssets; using CssFile = Smidge.Models.CssFile; using JavaScriptFile = Smidge.Models.JavaScriptFile; -namespace Umbraco.Web.Common.RuntimeMinification +namespace Umbraco.Cms.Web.Common.RuntimeMinification { public class SmidgeRuntimeMinifier : IRuntimeMinifier { @@ -118,7 +117,7 @@ namespace Umbraco.Web.Common.RuntimeMinification public void Reset() { var version = DateTime.UtcNow.Ticks.ToString(); - _configManipulator.SaveConfigValue(Core.Constants.Configuration.ConfigRuntimeMinificationVersion, version.ToString()); + _configManipulator.SaveConfigValue(Cms.Core.Constants.Configuration.ConfigRuntimeMinificationVersion, version.ToString()); } diff --git a/src/Umbraco.Web.Common/Security/BackOfficeUserManager.cs b/src/Umbraco.Web.Common/Security/BackOfficeUserManager.cs index 081ca6b581..b8e5cd9c43 100644 --- a/src/Umbraco.Web.Common/Security/BackOfficeUserManager.cs +++ b/src/Umbraco.Web.Common/Security/BackOfficeUserManager.cs @@ -6,16 +6,15 @@ using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Identity; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Models.Membership; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Models.ContentEditing; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Net; +using Umbraco.Cms.Core.Security; using Umbraco.Core.Security; using Umbraco.Extensions; -using Umbraco.Net; -using Umbraco.Web.Models.ContentEditing; - -namespace Umbraco.Web.Common.Security +namespace Umbraco.Cms.Web.Common.Security { public class BackOfficeUserManager : UmbracoUserManager, IBackOfficeUserManager { @@ -179,7 +178,7 @@ namespace Umbraco.Web.Common.Security private string GetCurrentUserId(IPrincipal currentUser) { UmbracoBackOfficeIdentity umbIdentity = currentUser?.GetUmbracoIdentity(); - var currentUserId = umbIdentity?.GetUserId() ?? Core.Constants.Security.SuperUserIdAsString; + var currentUserId = umbIdentity?.GetUserId() ?? Cms.Core.Constants.Security.SuperUserIdAsString; return currentUserId; } diff --git a/src/Umbraco.Web.Common/Security/BackofficeSecurity.cs b/src/Umbraco.Web.Common/Security/BackofficeSecurity.cs index 9d8fdd9174..27dd822f1a 100644 --- a/src/Umbraco.Web.Common/Security/BackofficeSecurity.cs +++ b/src/Umbraco.Web.Common/Security/BackofficeSecurity.cs @@ -1,12 +1,11 @@ using Microsoft.AspNetCore.Http; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Membership; -using Umbraco.Core.Security; -using Umbraco.Core.Services; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; using Umbraco.Extensions; -namespace Umbraco.Web.Common.Security +namespace Umbraco.Cms.Web.Common.Security { // TODO: This is only for the back office, does it need to be in common? diff --git a/src/Umbraco.Web.Common/Security/BackofficeSecurityFactory.cs b/src/Umbraco.Web.Common/Security/BackofficeSecurityFactory.cs index 528f2f564c..41e7f6d816 100644 --- a/src/Umbraco.Web.Common/Security/BackofficeSecurityFactory.cs +++ b/src/Umbraco.Web.Common/Security/BackofficeSecurityFactory.cs @@ -1,9 +1,9 @@ using Microsoft.AspNetCore.Http; -using Umbraco.Core; -using Umbraco.Core.Security; -using Umbraco.Core.Services; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; -namespace Umbraco.Web.Common.Security +namespace Umbraco.Cms.Web.Common.Security { // TODO: This is only for the back office, does it need to be in common? diff --git a/src/Umbraco.Web.Common/Security/EncryptionHelper.cs b/src/Umbraco.Web.Common/Security/EncryptionHelper.cs index 9dc1cd7497..48154d7c8f 100644 --- a/src/Umbraco.Web.Common/Security/EncryptionHelper.cs +++ b/src/Umbraco.Web.Common/Security/EncryptionHelper.cs @@ -6,10 +6,11 @@ using System.Net; using System.Web; using Microsoft.AspNetCore.DataProtection; using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Web.Common.Constants; +using Umbraco.Cms.Core; +using Umbraco.Cms.Web.Common.Constants; +using Umbraco.Extensions; -namespace Umbraco.Web.Common.Security +namespace Umbraco.Cms.Web.Common.Security { public class EncryptionHelper { diff --git a/src/Umbraco.Web.Common/Templates/TemplateRenderer.cs b/src/Umbraco.Web.Common/Templates/TemplateRenderer.cs index 23b2ba6466..5818609aeb 100644 --- a/src/Umbraco.Web.Common/Templates/TemplateRenderer.cs +++ b/src/Umbraco.Web.Common/Templates/TemplateRenderer.cs @@ -13,15 +13,15 @@ using Microsoft.AspNetCore.Mvc.ViewFeatures; using Microsoft.AspNetCore.Routing; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Core.Templates; +using Umbraco.Cms.Core.Web; using Umbraco.Extensions; -using Umbraco.Web.Routing; -using Umbraco.Web.Templates; -namespace Umbraco.Web.Common.Templates +namespace Umbraco.Cms.Web.Common.Templates { /// /// This is used purely for the RenderTemplate functionality in Umbraco diff --git a/src/Umbraco.Web.Common/Umbraco.Web.Common.csproj b/src/Umbraco.Web.Common/Umbraco.Web.Common.csproj index 26e8287935..2bcf4a3e55 100644 --- a/src/Umbraco.Web.Common/Umbraco.Web.Common.csproj +++ b/src/Umbraco.Web.Common/Umbraco.Web.Common.csproj @@ -3,6 +3,8 @@ net5.0 Library + latest + Umbraco.Cms.Web.Common diff --git a/src/Umbraco.Web.Common/UmbracoContext/UmbracoContext.cs b/src/Umbraco.Web.Common/UmbracoContext/UmbracoContext.cs index e89a874d71..c31fe4dd3e 100644 --- a/src/Umbraco.Web.Common/UmbracoContext/UmbracoContext.cs +++ b/src/Umbraco.Web.Common/UmbracoContext/UmbracoContext.cs @@ -1,14 +1,14 @@ using System; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Routing; -using Umbraco.Core.Security; -using Umbraco.Web.PublishedCache; -using Umbraco.Web.Routing; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Web; +using Umbraco.Extensions; -namespace Umbraco.Web +namespace Umbraco.Cms.Web.Common.UmbracoContext { /// /// Class that encapsulates Umbraco information of a specific HTTP request @@ -145,7 +145,7 @@ namespace Umbraco.Web && _umbracoRequestPaths.IsBackOfficeRequest(requestUrl.AbsolutePath) == false && _backofficeSecurity.CurrentUser != null) { - var previewToken = _cookieManager.GetCookieValue(Constants.Web.PreviewCookieName); // may be null or empty + var previewToken = _cookieManager.GetCookieValue(Core.Constants.Web.PreviewCookieName); // may be null or empty _previewToken = previewToken.IsNullOrWhiteSpace() ? null : previewToken; } diff --git a/src/Umbraco.Web.Common/UmbracoContext/UmbracoContextFactory.cs b/src/Umbraco.Web.Common/UmbracoContext/UmbracoContextFactory.cs index 67dfd72bad..8d199febd0 100644 --- a/src/Umbraco.Web.Common/UmbracoContext/UmbracoContextFactory.cs +++ b/src/Umbraco.Web.Common/UmbracoContext/UmbracoContextFactory.cs @@ -1,13 +1,13 @@ using System; -using Microsoft.Extensions.Options; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Routing; -using Umbraco.Core.Security; -using Umbraco.Web.PublishedCache; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Web; -namespace Umbraco.Web +namespace Umbraco.Cms.Web.Common.UmbracoContext { /// /// Creates and manages instances. diff --git a/src/Umbraco.Web.Common/UmbracoHelper.cs b/src/Umbraco.Web.Common/UmbracoHelper.cs index 54aeda6b09..4ed59a00e0 100644 --- a/src/Umbraco.Web.Common/UmbracoHelper.cs +++ b/src/Umbraco.Web.Common/UmbracoHelper.cs @@ -2,14 +2,16 @@ using System; using System.Collections.Generic; using System.Threading.Tasks; using System.Xml.XPath; -using Umbraco.Core; -using Umbraco.Core.Dictionary; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Strings; -using Umbraco.Core.Templates; -using Umbraco.Core.Xml; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Dictionary; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Core.Templates; +using Umbraco.Cms.Core.Xml; +using Umbraco.Extensions; +using Umbraco.Web; -namespace Umbraco.Web.Website +namespace Umbraco.Cms.Web.Common { /// /// A helper class that provides many useful methods and functionality for using Umbraco in templates diff --git a/src/Umbraco.Web.Common/Views/UmbracoViewPage.cs b/src/Umbraco.Web.Common/Views/UmbracoViewPage.cs index aea63e762e..d96ed397c5 100644 --- a/src/Umbraco.Web.Common/Views/UmbracoViewPage.cs +++ b/src/Umbraco.Web.Common/Views/UmbracoViewPage.cs @@ -8,18 +8,17 @@ using Microsoft.AspNetCore.Mvc.ViewFeatures; using Microsoft.AspNetCore.Razor.TagHelpers; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.IO; -using Umbraco.Core.Logging; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Web.Common.ModelBinders; using Umbraco.Extensions; -using Umbraco.Web.Common.ModelBinders; -using Umbraco.Web.Models; -using Umbraco.Web.Website; -namespace Umbraco.Web.Common.Views +namespace Umbraco.Cms.Web.Common.AspNetCore { public abstract class UmbracoViewPage : UmbracoViewPage { diff --git a/src/Umbraco.Web.UI.NetCore/Program.cs b/src/Umbraco.Web.UI.NetCore/Program.cs index 4849ee226a..89ce7d92bc 100644 --- a/src/Umbraco.Web.UI.NetCore/Program.cs +++ b/src/Umbraco.Web.UI.NetCore/Program.cs @@ -1,9 +1,8 @@ using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; -using Umbraco.Core.Composing; -namespace Umbraco.Web.UI.NetCore +namespace Umbraco.Cms.Web.UI.NetCore { public class Program { diff --git a/src/Umbraco.Web.UI.NetCore/Startup.cs b/src/Umbraco.Web.UI.NetCore/Startup.cs index c3d3d18451..85aa067627 100644 --- a/src/Umbraco.Web.UI.NetCore/Startup.cs +++ b/src/Umbraco.Web.UI.NetCore/Startup.cs @@ -4,15 +4,10 @@ using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; -using Umbraco.Core.DependencyInjection; +using Umbraco.Cms.Core.DependencyInjection; using Umbraco.Extensions; -using Umbraco.ModelsBuilder.Embedded.DependencyInjection; -using Umbraco.Web.BackOffice.DependencyInjection; -using Umbraco.Web.BackOffice.Security; -using Umbraco.Web.Common.DependencyInjection; -using Umbraco.Web.Website.DependencyInjection; -namespace Umbraco.Web.UI.NetCore +namespace Umbraco.Cms.Web.UI.NetCore { public class Startup { diff --git a/src/Umbraco.Web.UI.NetCore/Umbraco.Web.UI.NetCore.csproj b/src/Umbraco.Web.UI.NetCore/Umbraco.Web.UI.NetCore.csproj index b238b3598e..9e4c6de077 100644 --- a/src/Umbraco.Web.UI.NetCore/Umbraco.Web.UI.NetCore.csproj +++ b/src/Umbraco.Web.UI.NetCore/Umbraco.Web.UI.NetCore.csproj @@ -2,6 +2,8 @@ net5.0 + Umbraco.Cms.Web.UI.NetCore + latest Umbraco.Web.UI.NetCore diff --git a/src/Umbraco.Web.UI.NetCore/Views/Partials/blocklist/default.cshtml b/src/Umbraco.Web.UI.NetCore/Views/Partials/blocklist/default.cshtml index c80a5f5400..38f7431f25 100644 --- a/src/Umbraco.Web.UI.NetCore/Views/Partials/blocklist/default.cshtml +++ b/src/Umbraco.Web.UI.NetCore/Views/Partials/blocklist/default.cshtml @@ -1,4 +1,4 @@ -@inherits Umbraco.Web.Common.Views.UmbracoViewPage +@inherits Umbraco.Cms.Web.Common.AspNetCore.UmbracoViewPage @{ if (!Model.Any()) { return; } } diff --git a/src/Umbraco.Web.UI.NetCore/Views/Partials/grid/bootstrap3-fluid.cshtml b/src/Umbraco.Web.UI.NetCore/Views/Partials/grid/bootstrap3-fluid.cshtml index d2e1f76eee..840c9c1218 100644 --- a/src/Umbraco.Web.UI.NetCore/Views/Partials/grid/bootstrap3-fluid.cshtml +++ b/src/Umbraco.Web.UI.NetCore/Views/Partials/grid/bootstrap3-fluid.cshtml @@ -1,7 +1,7 @@ @using System.Web @using Microsoft.AspNetCore.Html @using Newtonsoft.Json.Linq -@inherits Umbraco.Web.Common.Views.UmbracoViewPage +@inherits Umbraco.Cms.Web.Common.AspNetCore.UmbracoViewPage @* Razor helpers located at the bottom of this file diff --git a/src/Umbraco.Web.UI.NetCore/Views/Partials/grid/bootstrap3.cshtml b/src/Umbraco.Web.UI.NetCore/Views/Partials/grid/bootstrap3.cshtml index 7d0c17becb..892dc84afe 100644 --- a/src/Umbraco.Web.UI.NetCore/Views/Partials/grid/bootstrap3.cshtml +++ b/src/Umbraco.Web.UI.NetCore/Views/Partials/grid/bootstrap3.cshtml @@ -1,7 +1,7 @@ @using System.Web @using Microsoft.AspNetCore.Html @using Newtonsoft.Json.Linq -@inherits Umbraco.Web.Common.Views.UmbracoViewPage +@inherits Umbraco.Cms.Web.Common.AspNetCore.UmbracoViewPage @if (Model != null && Model.sections != null) { diff --git a/src/Umbraco.Web.UI.NetCore/Views/Partials/grid/editors/embed.cshtml b/src/Umbraco.Web.UI.NetCore/Views/Partials/grid/editors/embed.cshtml index 39ba997194..dbd9438fa7 100644 --- a/src/Umbraco.Web.UI.NetCore/Views/Partials/grid/editors/embed.cshtml +++ b/src/Umbraco.Web.UI.NetCore/Views/Partials/grid/editors/embed.cshtml @@ -1,5 +1,5 @@ -@using Umbraco.Core -@inherits Umbraco.Web.Common.Views.UmbracoViewPage +@using Umbraco.Cms.Core +@inherits Umbraco.Cms.Web.Common.AspNetCore.UmbracoViewPage @{ string embedValue = Convert.ToString(Model.value); diff --git a/src/Umbraco.Web.UI.NetCore/Views/Partials/grid/editors/macro.cshtml b/src/Umbraco.Web.UI.NetCore/Views/Partials/grid/editors/macro.cshtml index 6cbc5c49cd..4305a1e4cf 100644 --- a/src/Umbraco.Web.UI.NetCore/Views/Partials/grid/editors/macro.cshtml +++ b/src/Umbraco.Web.UI.NetCore/Views/Partials/grid/editors/macro.cshtml @@ -1,4 +1,4 @@ -@inherits Umbraco.Web.Common.Views.UmbracoViewPage +@inherits Umbraco.Cms.Web.Common.AspNetCore.UmbracoViewPage @if (Model.value != null) { diff --git a/src/Umbraco.Web.UI.NetCore/Views/Partials/grid/editors/media.cshtml b/src/Umbraco.Web.UI.NetCore/Views/Partials/grid/editors/media.cshtml index 41155a390e..c5c7533146 100644 --- a/src/Umbraco.Web.UI.NetCore/Views/Partials/grid/editors/media.cshtml +++ b/src/Umbraco.Web.UI.NetCore/Views/Partials/grid/editors/media.cshtml @@ -1,6 +1,6 @@ @model dynamic @using Umbraco.Core.PropertyEditors.ValueConverters -@using Umbraco.Core.Media +@using Umbraco.Cms.Core.Media @inject IImageUrlGenerator ImageUrlGenerator @if (Model.value != null) { diff --git a/src/Umbraco.Web.UI.NetCore/Views/Partials/grid/editors/rte.cshtml b/src/Umbraco.Web.UI.NetCore/Views/Partials/grid/editors/rte.cshtml index 76b665af46..696b058212 100644 --- a/src/Umbraco.Web.UI.NetCore/Views/Partials/grid/editors/rte.cshtml +++ b/src/Umbraco.Web.UI.NetCore/Views/Partials/grid/editors/rte.cshtml @@ -1,4 +1,4 @@ -@using Umbraco.Web.Templates +@using Umbraco.Cms.Core.Templates @model dynamic @inject HtmlLocalLinkParser HtmlLocalLinkParser; @inject HtmlUrlParser HtmlUrlParser; diff --git a/src/Umbraco.Web.UI.NetCore/Views/_ViewImports.cshtml b/src/Umbraco.Web.UI.NetCore/Views/_ViewImports.cshtml index 7770ecdc5f..ad195ac8c3 100644 --- a/src/Umbraco.Web.UI.NetCore/Views/_ViewImports.cshtml +++ b/src/Umbraco.Web.UI.NetCore/Views/_ViewImports.cshtml @@ -1,4 +1,4 @@ @using Umbraco.Extensions -@using Umbraco.Web.UI.NetCore -@using Umbraco.Web.PublishedModels +@using Umbraco.Cms.Web.UI.NetCore +@using Umbraco.Cms.Web.Common.PublishedModels @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers diff --git a/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/Breadcrumb.cshtml b/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/Breadcrumb.cshtml index e2a62b5a62..30c3feb5c5 100644 --- a/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/Breadcrumb.cshtml +++ b/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/Breadcrumb.cshtml @@ -1,6 +1,6 @@ -@using Umbraco.Core -@using Umbraco.Web.Routing -@inherits Umbraco.Web.Common.Macros.PartialViewMacroPage +@using Umbraco.Cms.Core.Routing +@using Umbraco.Extensions +@inherits Umbraco.Cms.Web.Common.Macros.PartialViewMacroPage @inject IPublishedUrlProvider PublishedUrlProvider @* This snippet makes a breadcrumb of parents using an unordered HTML list. diff --git a/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/EditProfile.cshtml b/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/EditProfile.cshtml index de5f3167b0..e88794bcb5 100644 --- a/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/EditProfile.cshtml +++ b/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/EditProfile.cshtml @@ -1,7 +1,7 @@ -@using Umbraco.Core.Security +@using Umbraco.Cms.Core.Security +@using Umbraco.Cms.Web.Website.Controllers @using Umbraco.Extensions -@using Umbraco.Web.Website.Controllers -@inherits Umbraco.Web.Common.Macros.PartialViewMacroPage +@inherits Umbraco.Cms.Web.Common.Macros.PartialViewMacroPage @inject IUmbracoWebsiteSecurityAccessor UmbracoWebsiteSecurityAccessor @{ diff --git a/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/Empty.cshtml b/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/Empty.cshtml index 8c983c4da4..01501b67a8 100644 --- a/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/Empty.cshtml +++ b/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/Empty.cshtml @@ -1 +1 @@ -@inherits Umbraco.Web.Common.Macros.PartialViewMacroPage +@inherits Umbraco.Cms.Web.Common.Macros.PartialViewMacroPage diff --git a/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/Gallery.cshtml b/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/Gallery.cshtml index 8e5ab9fd7d..d1f109d307 100644 --- a/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/Gallery.cshtml +++ b/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/Gallery.cshtml @@ -1,10 +1,10 @@ -@using Umbraco.Core.Models.PublishedContent +@using Umbraco.Cms.Core +@using Umbraco.Cms.Core.Media +@using Umbraco.Cms.Core.Models.PublishedContent +@using Umbraco.Cms.Core.Routing @using Umbraco.Web -@using Umbraco.Core -@using Umbraco.Core.Media @using Umbraco.Extensions -@using Umbraco.Web.Routing -@inherits Umbraco.Web.Common.Macros.PartialViewMacroPage +@inherits Umbraco.Cms.Web.Common.Macros.PartialViewMacroPage @inject IPublishedValueFallback PublishedValueFallback @inject IPublishedContentQuery PublishedContentQuery @inject IVariationContextAccessor VariationContextAccessor diff --git a/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/ListAncestorsFromCurrentPage.cshtml b/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/ListAncestorsFromCurrentPage.cshtml index 2b2e04064b..c44965ec85 100644 --- a/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/ListAncestorsFromCurrentPage.cshtml +++ b/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/ListAncestorsFromCurrentPage.cshtml @@ -1,6 +1,6 @@ -@using Umbraco.Core -@using Umbraco.Web.Routing -@inherits Umbraco.Web.Common.Macros.PartialViewMacroPage +@using Umbraco.Cms.Core.Routing +@using Umbraco.Extensions +@inherits Umbraco.Cms.Web.Common.Macros.PartialViewMacroPage @inject IPublishedUrlProvider PublishedUrlProvider @* This snippet makes a list of links to the of parents of the current page using an unordered HTML list. diff --git a/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/ListChildPagesFromChangeableSource.cshtml b/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/ListChildPagesFromChangeableSource.cshtml index 0cc090fd9e..8ce5fd7920 100644 --- a/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/ListChildPagesFromChangeableSource.cshtml +++ b/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/ListChildPagesFromChangeableSource.cshtml @@ -1,8 +1,9 @@ -@using Umbraco.Core -@using Umbraco.Core.Models.PublishedContent +@using Umbraco.Cms.Core +@using Umbraco.Cms.Core.Models.PublishedContent +@using Umbraco.Cms.Core.Routing +@using Umbraco.Extensions @using Umbraco.Web -@using Umbraco.Web.Routing -@inherits Umbraco.Web.Common.Macros.PartialViewMacroPage +@inherits Umbraco.Cms.Web.Common.Macros.PartialViewMacroPage @inject IPublishedContentQuery PublishedContentQuery @inject IPublishedValueFallback PublishedValueFallback @inject IPublishedUrlProvider PublishedUrlProvider diff --git a/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/ListChildPagesFromCurrentPage.cshtml b/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/ListChildPagesFromCurrentPage.cshtml index 1b3c04beb1..491f90238a 100644 --- a/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/ListChildPagesFromCurrentPage.cshtml +++ b/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/ListChildPagesFromCurrentPage.cshtml @@ -1,7 +1,8 @@ -@using Umbraco.Core -@using Umbraco.Core.Models.PublishedContent -@using Umbraco.Web.Routing -@inherits Umbraco.Web.Common.Macros.PartialViewMacroPage +@using Umbraco.Cms.Core +@using Umbraco.Cms.Core.Models.PublishedContent +@using Umbraco.Cms.Core.Routing +@using Umbraco.Extensions +@inherits Umbraco.Cms.Web.Common.Macros.PartialViewMacroPage @inject IPublishedValueFallback PublishedValueFallback @inject IPublishedUrlProvider PublishedUrlProvider @* diff --git a/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/ListChildPagesOrderedByDate.cshtml b/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/ListChildPagesOrderedByDate.cshtml index 896fdda614..b998d917a1 100644 --- a/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/ListChildPagesOrderedByDate.cshtml +++ b/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/ListChildPagesOrderedByDate.cshtml @@ -1,7 +1,8 @@ -@using Umbraco.Core -@using Umbraco.Core.Models.PublishedContent -@using Umbraco.Web.Routing -@inherits Umbraco.Web.Common.Macros.PartialViewMacroPage +@using Umbraco.Cms.Core +@using Umbraco.Cms.Core.Models.PublishedContent +@using Umbraco.Cms.Core.Routing +@using Umbraco.Extensions +@inherits Umbraco.Cms.Web.Common.Macros.PartialViewMacroPage @inject IPublishedValueFallback PublishedValueFallback @inject IPublishedUrlProvider PublishedUrlProvider @* diff --git a/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/ListChildPagesOrderedByName.cshtml b/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/ListChildPagesOrderedByName.cshtml index b80ff6ead7..ac66ece1ea 100644 --- a/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/ListChildPagesOrderedByName.cshtml +++ b/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/ListChildPagesOrderedByName.cshtml @@ -1,7 +1,8 @@ -@using Umbraco.Core -@using Umbraco.Core.Models.PublishedContent -@using Umbraco.Web.Routing -@inherits Umbraco.Web.Common.Macros.PartialViewMacroPage +@using Umbraco.Cms.Core +@using Umbraco.Cms.Core.Models.PublishedContent +@using Umbraco.Cms.Core.Routing +@using Umbraco.Extensions +@inherits Umbraco.Cms.Web.Common.Macros.PartialViewMacroPage @inject IPublishedValueFallback PublishedValueFallback @inject IPublishedUrlProvider PublishedUrlProvider @* diff --git a/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/ListChildPagesOrderedByProperty.cshtml b/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/ListChildPagesOrderedByProperty.cshtml index e2c7ae19df..f20253bc7f 100644 --- a/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/ListChildPagesOrderedByProperty.cshtml +++ b/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/ListChildPagesOrderedByProperty.cshtml @@ -1,7 +1,8 @@ -@using Umbraco.Core -@using Umbraco.Core.Models.PublishedContent -@using Umbraco.Web.Routing -@inherits Umbraco.Web.Common.Macros.PartialViewMacroPage +@using Umbraco.Cms.Core +@using Umbraco.Cms.Core.Models.PublishedContent +@using Umbraco.Cms.Core.Routing +@using Umbraco.Extensions +@inherits Umbraco.Cms.Web.Common.Macros.PartialViewMacroPage @inject IPublishedValueFallback PublishedValueFallback @inject IPublishedUrlProvider PublishedUrlProvider @* diff --git a/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/ListChildPagesWithDoctype.cshtml b/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/ListChildPagesWithDoctype.cshtml index 6aa3771fd3..1f78ae43a0 100644 --- a/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/ListChildPagesWithDoctype.cshtml +++ b/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/ListChildPagesWithDoctype.cshtml @@ -1,7 +1,8 @@ -@using Umbraco.Core -@using Umbraco.Core.Models.PublishedContent -@using Umbraco.Web.Routing -@inherits Umbraco.Web.Common.Macros.PartialViewMacroPage +@using Umbraco.Cms.Core +@using Umbraco.Cms.Core.Models.PublishedContent +@using Umbraco.Cms.Core.Routing +@using Umbraco.Extensions +@inherits Umbraco.Cms.Web.Common.Macros.PartialViewMacroPage @inject IVariationContextAccessor VariationContextAccessor @inject IPublishedValueFallback PublishedValueFallback @inject IPublishedUrlProvider PublishedUrlProvider diff --git a/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/ListDescendantsFromCurrentPage.cshtml b/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/ListDescendantsFromCurrentPage.cshtml index a891839cec..92caf9906d 100644 --- a/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/ListDescendantsFromCurrentPage.cshtml +++ b/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/ListDescendantsFromCurrentPage.cshtml @@ -1,7 +1,8 @@ -@using Umbraco.Core -@using Umbraco.Core.Models.PublishedContent -@using Umbraco.Web.Routing -@inherits Umbraco.Web.Common.Macros.PartialViewMacroPage +@using Umbraco.Cms.Core +@using Umbraco.Cms.Core.Models.PublishedContent +@using Umbraco.Cms.Core.Routing +@using Umbraco.Extensions +@inherits Umbraco.Cms.Web.Common.Macros.PartialViewMacroPage @inject IPublishedValueFallback PublishedValueFallback @inject IPublishedUrlProvider PublishedUrlProvider @* diff --git a/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/ListImagesFromMediaFolder.cshtml b/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/ListImagesFromMediaFolder.cshtml index 93bde0a1c4..b837cca787 100644 --- a/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/ListImagesFromMediaFolder.cshtml +++ b/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/ListImagesFromMediaFolder.cshtml @@ -1,7 +1,7 @@ -@using Umbraco.Core +@using Umbraco.Cms.Core.Routing +@using Umbraco.Extensions @using Umbraco.Web -@using Umbraco.Web.Routing -@inherits Umbraco.Web.Common.Macros.PartialViewMacroPage +@inherits Umbraco.Cms.Web.Common.Macros.PartialViewMacroPage @inject IPublishedContentQuery PublishedContentQuery @inject IPublishedUrlProvider PublishedUrlProvider @* diff --git a/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/Login.cshtml b/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/Login.cshtml index bd4c9e1e59..404f2a155e 100644 --- a/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/Login.cshtml +++ b/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/Login.cshtml @@ -1,8 +1,8 @@ @using Microsoft.AspNetCore.Http.Extensions -@using Umbraco.Core.Models.Security +@using Umbraco.Cms.Core.Models.Security +@using Umbraco.Cms.Web.Website.Controllers @using Umbraco.Extensions -@using Umbraco.Web.Website.Controllers -@inherits Umbraco.Web.Common.Macros.PartialViewMacroPage +@inherits Umbraco.Cms.Web.Common.Macros.PartialViewMacroPage @{ var loginModel = new LoginModel(); diff --git a/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/LoginStatus.cshtml b/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/LoginStatus.cshtml index 72f5e814c8..cd64033b48 100644 --- a/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/LoginStatus.cshtml +++ b/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/LoginStatus.cshtml @@ -1,8 +1,8 @@ -@using Umbraco.Core.Security -@using Umbraco.Core.Models.Security +@using Umbraco.Cms.Core.Models.Security +@using Umbraco.Cms.Core.Security +@using Umbraco.Cms.Web.Website.Controllers @using Umbraco.Extensions -@using Umbraco.Web.Website.Controllers -@inherits Umbraco.Web.Common.Macros.PartialViewMacroPage +@inherits Umbraco.Cms.Web.Common.Macros.PartialViewMacroPage @inject IUmbracoWebsiteSecurityAccessor UmbracoWebsiteSecurityAccessor @{ diff --git a/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/MultinodeTree-picker.cshtml b/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/MultinodeTree-picker.cshtml index c8f0d9c52f..43ef1a1e7a 100644 --- a/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/MultinodeTree-picker.cshtml +++ b/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/MultinodeTree-picker.cshtml @@ -1,7 +1,7 @@ -@using Umbraco.Core -@using Umbraco.Core.Models.PublishedContent -@using Umbraco.Web.Routing -@inherits Umbraco.Web.Common.Macros.PartialViewMacroPage +@using Umbraco.Cms.Core.Models.PublishedContent +@using Umbraco.Cms.Core.Routing +@using Umbraco.Extensions +@inherits Umbraco.Cms.Web.Common.Macros.PartialViewMacroPage @inject IPublishedValueFallback PublishedValueFallback @inject IPublishedUrlProvider PublishedUrlProvider @* diff --git a/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/Navigation.cshtml b/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/Navigation.cshtml index 5476a3af61..6e28bb88dd 100644 --- a/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/Navigation.cshtml +++ b/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/Navigation.cshtml @@ -1,7 +1,8 @@ -@using Umbraco.Core -@using Umbraco.Core.Models.PublishedContent -@using Umbraco.Web.Routing -@inherits Umbraco.Web.Common.Macros.PartialViewMacroPage +@using Umbraco.Cms.Core +@using Umbraco.Cms.Core.Models.PublishedContent +@using Umbraco.Cms.Core.Routing +@using Umbraco.Extensions +@inherits Umbraco.Cms.Web.Common.Macros.PartialViewMacroPage @inject IPublishedValueFallback PublishedValueFallback @inject IPublishedUrlProvider PublishedUrlProvider @* diff --git a/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/RegisterMember.cshtml b/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/RegisterMember.cshtml index 0876e64b08..2c860ca435 100644 --- a/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/RegisterMember.cshtml +++ b/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/RegisterMember.cshtml @@ -1,7 +1,7 @@ -@using Umbraco.Core.Security +@using Umbraco.Cms.Core.Security +@using Umbraco.Cms.Web.Website.Controllers @using Umbraco.Extensions -@using Umbraco.Web.Website.Controllers -@inherits Umbraco.Web.Common.Macros.PartialViewMacroPage +@inherits Umbraco.Cms.Web.Common.Macros.PartialViewMacroPage @inject IUmbracoWebsiteSecurityAccessor UmbracoWebsiteSecurityAccessor @{ diff --git a/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/SiteMap.cshtml b/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/SiteMap.cshtml index e6ad50d200..e914a3a027 100644 --- a/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/SiteMap.cshtml +++ b/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/SiteMap.cshtml @@ -1,7 +1,8 @@ -@using Umbraco.Core -@using Umbraco.Core.Models.PublishedContent -@using Umbraco.Web.Routing -@inherits Umbraco.Web.Common.Macros.PartialViewMacroPage +@using Umbraco.Cms.Core +@using Umbraco.Cms.Core.Models.PublishedContent +@using Umbraco.Cms.Core.Routing +@using Umbraco.Extensions +@inherits Umbraco.Cms.Web.Common.Macros.PartialViewMacroPage @inject IPublishedValueFallback PublishedValueFallback @inject IPublishedUrlProvider PublishedUrlProvider @* diff --git a/src/Umbraco.Web.UI.NetCore/umbraco/UmbracoBackOffice/AuthorizeUpgrade.cshtml b/src/Umbraco.Web.UI.NetCore/umbraco/UmbracoBackOffice/AuthorizeUpgrade.cshtml index 40ea7dba90..922d30654c 100644 --- a/src/Umbraco.Web.UI.NetCore/umbraco/UmbracoBackOffice/AuthorizeUpgrade.cshtml +++ b/src/Umbraco.Web.UI.NetCore/umbraco/UmbracoBackOffice/AuthorizeUpgrade.cshtml @@ -1,13 +1,13 @@ @using Microsoft.Extensions.Options; -@using Umbraco.Core +@using Umbraco.Cms.Core +@using Umbraco.Cms.Core.Configuration +@using Umbraco.Cms.Core.Configuration.Models +@using Umbraco.Cms.Core.Hosting +@using Umbraco.Cms.Core.WebAssets +@using Umbraco.Cms.Web.BackOffice.Controllers +@using Umbraco.Cms.Web.BackOffice.Security @using Umbraco.Web.WebAssets -@using Umbraco.Web.BackOffice.Security -@using Umbraco.Core.WebAssets -@using Umbraco.Core.Configuration -@using Umbraco.Core.Configuration.Models -@using Umbraco.Core.Hosting @using Umbraco.Extensions -@using Umbraco.Web.BackOffice.Controllers @inject BackOfficeServerVariables backOfficeServerVariables @inject IUmbracoVersion umbracoVersion @inject IHostingEnvironment hostingEnvironment diff --git a/src/Umbraco.Web.UI.NetCore/umbraco/UmbracoBackOffice/Default.cshtml b/src/Umbraco.Web.UI.NetCore/umbraco/UmbracoBackOffice/Default.cshtml index 2602b98852..d488e5295c 100644 --- a/src/Umbraco.Web.UI.NetCore/umbraco/UmbracoBackOffice/Default.cshtml +++ b/src/Umbraco.Web.UI.NetCore/umbraco/UmbracoBackOffice/Default.cshtml @@ -1,16 +1,16 @@ @using Microsoft.Extensions.Options; @using System.Globalization -@using Umbraco.Core +@using Umbraco.Cms.Core +@using Umbraco.Cms.Core.Configuration +@using Umbraco.Cms.Core.Configuration.Models +@using Umbraco.Cms.Core.Hosting +@using Umbraco.Cms.Core.Logging +@using Umbraco.Cms.Core.Services +@using Umbraco.Cms.Core.WebAssets +@using Umbraco.Cms.Web.BackOffice.Controllers +@using Umbraco.Cms.Web.BackOffice.Security @using Umbraco.Web.WebAssets -@using Umbraco.Web.BackOffice.Security -@using Umbraco.Core.WebAssets -@using Umbraco.Core.Configuration -@using Umbraco.Core.Configuration.Models -@using Umbraco.Core.Hosting @using Umbraco.Extensions -@using Umbraco.Core.Logging -@using Umbraco.Core.Services -@using Umbraco.Web.BackOffice.Controllers @inject BackOfficeServerVariables backOfficeServerVariables @inject IUmbracoVersion umbracoVersion @inject IHostingEnvironment hostingEnvironment diff --git a/src/Umbraco.Web.UI.NetCore/umbraco/UmbracoBackOffice/Preview.cshtml b/src/Umbraco.Web.UI.NetCore/umbraco/UmbracoBackOffice/Preview.cshtml index 382e0acce2..d2020a9182 100644 --- a/src/Umbraco.Web.UI.NetCore/umbraco/UmbracoBackOffice/Preview.cshtml +++ b/src/Umbraco.Web.UI.NetCore/umbraco/UmbracoBackOffice/Preview.cshtml @@ -1,13 +1,14 @@ @using Microsoft.Extensions.Options; +@using Umbraco.Cms.Core.Configuration +@using Umbraco.Cms.Core.Configuration.Models +@using Umbraco.Cms.Core.Hosting +@using Umbraco.Cms.Core.Logging +@using Umbraco.Cms.Core.Services +@using Umbraco.Cms.Core.WebAssets +@using Umbraco.Cms.Web.BackOffice.Controllers +@using Umbraco.Cms.Web.BackOffice.Security @using Umbraco.Web.WebAssets -@using Umbraco.Web.Common.Security -@using Umbraco.Core.WebAssets -@using Umbraco.Core.Configuration -@using Umbraco.Core.Configuration.Models -@using Umbraco.Core.Hosting @using Umbraco.Extensions -@using Umbraco.Core.Logging -@using Umbraco.Web.BackOffice.Controllers @inject IBackOfficeSignInManager SignInManager @inject BackOfficeServerVariables BackOfficeServerVariables @inject IUmbracoVersion UmbracoVersion @@ -16,9 +17,8 @@ @inject IRuntimeMinifier RuntimeMinifier @inject IProfilerHtml ProfilerHtml @inject ILocalizedTextService LocalizedTextService -@using Umbraco.Core.Services -@model Umbraco.Web.Editors.BackOfficePreviewModel +@model Umbraco.Cms.Core.Editors.BackOfficePreviewModel @{ var disableDevicePreview = Model.DisableDevicePreview.ToString().ToLowerInvariant(); diff --git a/src/Umbraco.Web.UI.NetCore/umbraco/UmbracoWebsite/NoNodes.cshtml b/src/Umbraco.Web.UI.NetCore/umbraco/UmbracoWebsite/NoNodes.cshtml index 2d397b0fbb..d790fd4bf7 100644 --- a/src/Umbraco.Web.UI.NetCore/umbraco/UmbracoWebsite/NoNodes.cshtml +++ b/src/Umbraco.Web.UI.NetCore/umbraco/UmbracoWebsite/NoNodes.cshtml @@ -1,4 +1,4 @@ -@model Umbraco.Web.Website.Models.NoNodesViewModel +@model Umbraco.Cms.Web.Website.Models.NoNodesViewModel diff --git a/src/Umbraco.Web.Website/ActionResults/RedirectToUmbracoPageResult.cs b/src/Umbraco.Web.Website/ActionResults/RedirectToUmbracoPageResult.cs index 8a106c0846..62d0dc7a10 100644 --- a/src/Umbraco.Web.Website/ActionResults/RedirectToUmbracoPageResult.cs +++ b/src/Umbraco.Web.Website/ActionResults/RedirectToUmbracoPageResult.cs @@ -1,18 +1,17 @@ using System; -using System.Collections.Specialized; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.ViewFeatures; using Microsoft.Extensions.DependencyInjection; -using Umbraco.Core; -using Umbraco.Core.IO; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Web.Routing; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Web; +using Umbraco.Extensions; -namespace Umbraco.Web.Website.ActionResults +namespace Umbraco.Cms.Web.Website.ActionResults { - /// /// Redirects to an Umbraco page by Id or Entity /// diff --git a/src/Umbraco.Web.Website/ActionResults/RedirectToUmbracoUrlResult.cs b/src/Umbraco.Web.Website/ActionResults/RedirectToUmbracoUrlResult.cs index 1c12a33714..4857c9c9a1 100644 --- a/src/Umbraco.Web.Website/ActionResults/RedirectToUmbracoUrlResult.cs +++ b/src/Umbraco.Web.Website/ActionResults/RedirectToUmbracoUrlResult.cs @@ -2,9 +2,9 @@ using System; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.ViewFeatures; -using Microsoft.Extensions.DependencyInjection; +using Umbraco.Cms.Core.Web; -namespace Umbraco.Web.Website.ActionResults +namespace Umbraco.Cms.Web.Website.ActionResults { /// /// Redirects to the current URL rendering an Umbraco page including it's query strings diff --git a/src/Umbraco.Web.Website/ActionResults/UmbracoPageResult.cs b/src/Umbraco.Web.Website/ActionResults/UmbracoPageResult.cs index 90478c3c89..8c98a177bc 100644 --- a/src/Umbraco.Web.Website/ActionResults/UmbracoPageResult.cs +++ b/src/Umbraco.Web.Website/ActionResults/UmbracoPageResult.cs @@ -5,13 +5,12 @@ using Microsoft.AspNetCore.Mvc.Abstractions; using Microsoft.AspNetCore.Mvc.Infrastructure; using Microsoft.AspNetCore.Mvc.ViewFeatures; using Microsoft.Extensions.DependencyInjection; -using Umbraco.Core.Logging; -using Umbraco.Web.Common.Routing; -using Umbraco.Web.Website.Controllers; -using Umbraco.Web.Website.Routing; -using static Umbraco.Core.Constants.Web.Routing; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Web.Common.Routing; +using Umbraco.Cms.Web.Website.Controllers; +using static Umbraco.Cms.Core.Constants.Web.Routing; -namespace Umbraco.Web.Website.ActionResults +namespace Umbraco.Cms.Web.Website.ActionResults { /// /// Used by posted forms to proxy the result to the page in which the current URL matches on diff --git a/src/Umbraco.Web.Website/Collections/SurfaceControllerTypeCollection.cs b/src/Umbraco.Web.Website/Collections/SurfaceControllerTypeCollection.cs index fa888dfe88..e77b11a3d8 100644 --- a/src/Umbraco.Web.Website/Collections/SurfaceControllerTypeCollection.cs +++ b/src/Umbraco.Web.Website/Collections/SurfaceControllerTypeCollection.cs @@ -1,8 +1,8 @@ using System; using System.Collections.Generic; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; -namespace Umbraco.Web.Website.Collections +namespace Umbraco.Cms.Web.Website.Collections { public class SurfaceControllerTypeCollection : BuilderCollectionBase { diff --git a/src/Umbraco.Web.Website/Collections/SurfaceControllerTypeCollectionBuilder.cs b/src/Umbraco.Web.Website/Collections/SurfaceControllerTypeCollectionBuilder.cs index 892184632d..17fea9077b 100644 --- a/src/Umbraco.Web.Website/Collections/SurfaceControllerTypeCollectionBuilder.cs +++ b/src/Umbraco.Web.Website/Collections/SurfaceControllerTypeCollectionBuilder.cs @@ -1,7 +1,7 @@ -using Umbraco.Core.Composing; -using Umbraco.Web.Website.Controllers; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Web.Website.Controllers; -namespace Umbraco.Web.Website.Collections +namespace Umbraco.Cms.Web.Website.Collections { public class SurfaceControllerTypeCollectionBuilder : TypeCollectionBuilderBase { diff --git a/src/Umbraco.Web.Website/Controllers/IUmbracoRenderingDefaults.cs b/src/Umbraco.Web.Website/Controllers/IUmbracoRenderingDefaults.cs index 507b8c4a04..6f4fdb0cb2 100644 --- a/src/Umbraco.Web.Website/Controllers/IUmbracoRenderingDefaults.cs +++ b/src/Umbraco.Web.Website/Controllers/IUmbracoRenderingDefaults.cs @@ -1,6 +1,6 @@ using System; -namespace Umbraco.Web.Website.Controllers +namespace Umbraco.Cms.Web.Website.Controllers { /// /// The defaults used for rendering Umbraco front-end pages diff --git a/src/Umbraco.Web.Website/Controllers/RenderNoContentController.cs b/src/Umbraco.Web.Website/Controllers/RenderNoContentController.cs index 0c55ab075b..2546531735 100644 --- a/src/Umbraco.Web.Website/Controllers/RenderNoContentController.cs +++ b/src/Umbraco.Web.Website/Controllers/RenderNoContentController.cs @@ -1,11 +1,12 @@ using System; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Options; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.IO; -using Umbraco.Web.Website.Models; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Web.Website.Models; -namespace Umbraco.Web.Website.Controllers +namespace Umbraco.Cms.Web.Website.Controllers { public class RenderNoContentController : Controller { diff --git a/src/Umbraco.Web.Website/Controllers/SurfaceController.cs b/src/Umbraco.Web.Website/Controllers/SurfaceController.cs index 3f83075f63..8a9772eab9 100644 --- a/src/Umbraco.Web.Website/Controllers/SurfaceController.cs +++ b/src/Umbraco.Web.Website/Controllers/SurfaceController.cs @@ -1,19 +1,18 @@ using System; -using System.Collections.Specialized; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Logging; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Web.Common.Controllers; +using Umbraco.Cms.Web.Common.Routing; +using Umbraco.Cms.Web.Website.ActionResults; using Umbraco.Core.Persistence; -using Umbraco.Core.Services; -using Umbraco.Web.Common.Controllers; -using Umbraco.Web.Common.Routing; -using Umbraco.Web.Routing; -using Umbraco.Web.Website.ActionResults; -namespace Umbraco.Web.Website.Controllers +namespace Umbraco.Cms.Web.Website.Controllers { /// /// Provides a base class for front-end add-in controllers. diff --git a/src/Umbraco.Web.Website/Controllers/UmbLoginController.cs b/src/Umbraco.Web.Website/Controllers/UmbLoginController.cs index 2ecc47fe10..a8b486c58c 100644 --- a/src/Umbraco.Web.Website/Controllers/UmbLoginController.cs +++ b/src/Umbraco.Web.Website/Controllers/UmbLoginController.cs @@ -1,16 +1,17 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Logging; -using Umbraco.Core.Models.Security; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Models.Security; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Web.Common.Filters; using Umbraco.Core.Persistence; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Web.Common.Filters; -using Umbraco.Web.Routing; +using Umbraco.Extensions; -namespace Umbraco.Web.Website.Controllers +namespace Umbraco.Cms.Web.Website.Controllers { public class UmbLoginController : SurfaceController { diff --git a/src/Umbraco.Web.Website/Controllers/UmbLoginStatusController.cs b/src/Umbraco.Web.Website/Controllers/UmbLoginStatusController.cs index e9bf164eb3..ffd681d65b 100644 --- a/src/Umbraco.Web.Website/Controllers/UmbLoginStatusController.cs +++ b/src/Umbraco.Web.Website/Controllers/UmbLoginStatusController.cs @@ -1,16 +1,17 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Logging; -using Umbraco.Core.Models.Security; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Models.Security; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Web.Common.Filters; using Umbraco.Core.Persistence; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Web.Common.Filters; -using Umbraco.Web.Routing; +using Umbraco.Extensions; -namespace Umbraco.Web.Website.Controllers +namespace Umbraco.Cms.Web.Website.Controllers { [UmbracoMemberAuthorize] public class UmbLoginStatusController : SurfaceController diff --git a/src/Umbraco.Web.Website/Controllers/UmbProfileController.cs b/src/Umbraco.Web.Website/Controllers/UmbProfileController.cs index cc23786c4b..72fb09b0eb 100644 --- a/src/Umbraco.Web.Website/Controllers/UmbProfileController.cs +++ b/src/Umbraco.Web.Website/Controllers/UmbProfileController.cs @@ -1,17 +1,18 @@ using System; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Logging; -using Umbraco.Core.Models.Security; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Models.Security; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Web.Common.Filters; using Umbraco.Core.Persistence; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Web.Common.Filters; -using Umbraco.Web.Routing; +using Umbraco.Extensions; -namespace Umbraco.Web.Website.Controllers +namespace Umbraco.Cms.Web.Website.Controllers { [UmbracoMemberAuthorize] public class UmbProfileController : SurfaceController diff --git a/src/Umbraco.Web.Website/Controllers/UmbRegisterController.cs b/src/Umbraco.Web.Website/Controllers/UmbRegisterController.cs index 9542a2bf75..0875d38227 100644 --- a/src/Umbraco.Web.Website/Controllers/UmbRegisterController.cs +++ b/src/Umbraco.Web.Website/Controllers/UmbRegisterController.cs @@ -1,17 +1,18 @@ using System; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Logging; -using Umbraco.Core.Models.Security; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Models.Security; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Web.Common.Filters; using Umbraco.Core.Persistence; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Web.Common.Filters; -using Umbraco.Web.Routing; +using Umbraco.Extensions; -namespace Umbraco.Web.Website.Controllers +namespace Umbraco.Cms.Web.Website.Controllers { public class UmbRegisterController : SurfaceController { diff --git a/src/Umbraco.Web.Website/Controllers/UmbracoRenderingDefaults.cs b/src/Umbraco.Web.Website/Controllers/UmbracoRenderingDefaults.cs index 65c27a3269..095f57b631 100644 --- a/src/Umbraco.Web.Website/Controllers/UmbracoRenderingDefaults.cs +++ b/src/Umbraco.Web.Website/Controllers/UmbracoRenderingDefaults.cs @@ -1,7 +1,7 @@ using System; -using Umbraco.Web.Common.Controllers; +using Umbraco.Cms.Web.Common.Controllers; -namespace Umbraco.Web.Website.Controllers +namespace Umbraco.Cms.Web.Website.Controllers { /// /// The defaults used for rendering Umbraco front-end pages diff --git a/src/Umbraco.Web.Website/DependencyInjection/UmbracoBuilderExtensions.cs b/src/Umbraco.Web.Website/DependencyInjection/UmbracoBuilderExtensions.cs index b1d21e87b9..a19800516f 100644 --- a/src/Umbraco.Web.Website/DependencyInjection/UmbracoBuilderExtensions.cs +++ b/src/Umbraco.Web.Website/DependencyInjection/UmbracoBuilderExtensions.cs @@ -1,17 +1,15 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; -using Umbraco.Core.DependencyInjection; -using Umbraco.Extensions; +using Umbraco.Cms.Core.DependencyInjection; +using Umbraco.Cms.Web.Common.Routing; +using Umbraco.Cms.Web.Website.Collections; +using Umbraco.Cms.Web.Website.Controllers; +using Umbraco.Cms.Web.Website.Routing; +using Umbraco.Cms.Web.Website.ViewEngines; using Umbraco.Infrastructure.DependencyInjection; -using Umbraco.ModelsBuilder.Embedded.DependencyInjection; -using Umbraco.Web.Common.Routing; -using Umbraco.Web.Website.Collections; -using Umbraco.Web.Website.Controllers; -using Umbraco.Web.Website.Routing; -using Umbraco.Web.Website.ViewEngines; -namespace Umbraco.Web.Website.DependencyInjection +namespace Umbraco.Extensions { /// /// extensions for umbraco front-end website diff --git a/src/Umbraco.Web.Website/Extensions/HtmlHelperRenderExtensions.cs b/src/Umbraco.Web.Website/Extensions/HtmlHelperRenderExtensions.cs index 1c0e417047..1502a51665 100644 --- a/src/Umbraco.Web.Website/Extensions/HtmlHelperRenderExtensions.cs +++ b/src/Umbraco.Web.Website/Extensions/HtmlHelperRenderExtensions.cs @@ -13,19 +13,18 @@ using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.AspNetCore.Mvc.ViewFeatures; using Microsoft.AspNetCore.Routing; using Microsoft.Extensions.DependencyInjection; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; -using Umbraco.Core.Logging; -using Umbraco.Web; -using Umbraco.Web.Common.Controllers; -using Umbraco.Web.Common.Mvc; -using Umbraco.Web.Common.Security; -using Umbraco.Web.Mvc; -using Umbraco.Web.Website.Collections; -using Umbraco.Web.Website.Controllers; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Core.Web.Mvc; +using Umbraco.Cms.Web.Common.Controllers; +using Umbraco.Cms.Web.Common.Mvc; +using Umbraco.Cms.Web.Common.Security; +using Umbraco.Cms.Web.Website.Collections; +using Umbraco.Cms.Web.Website.Controllers; namespace Umbraco.Extensions { diff --git a/src/Umbraco.Web.Website/Extensions/LinkGeneratorExtensions.cs b/src/Umbraco.Web.Website/Extensions/LinkGeneratorExtensions.cs index 86f90c5a97..217dbbf144 100644 --- a/src/Umbraco.Web.Website/Extensions/LinkGeneratorExtensions.cs +++ b/src/Umbraco.Web.Website/Extensions/LinkGeneratorExtensions.cs @@ -1,12 +1,11 @@ using System; using System.Collections.Generic; -using System.Dynamic; using System.Linq; using System.Linq.Expressions; using System.Reflection; using Microsoft.AspNetCore.Routing; -using Umbraco.Core; -using Umbraco.Web.Website.Controllers; +using Umbraco.Cms.Core; +using Umbraco.Cms.Web.Website.Controllers; namespace Umbraco.Extensions { diff --git a/src/Umbraco.Web.Website/Extensions/PublishedContentExtensions.cs b/src/Umbraco.Web.Website/Extensions/PublishedContentExtensions.cs index f6105665c4..20b21308d4 100644 --- a/src/Umbraco.Web.Website/Extensions/PublishedContentExtensions.cs +++ b/src/Umbraco.Web.Website/Extensions/PublishedContentExtensions.cs @@ -3,13 +3,15 @@ using System.Collections.Generic; using System.Web; using Examine; using Microsoft.AspNetCore.Html; -using Umbraco.Core; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Web; using Umbraco.Examine; -using Umbraco.Web.Routing; +using Umbraco.Web; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.Website.Extensions +namespace Umbraco.Extensions { public static class PublishedContentExtensions { @@ -99,8 +101,6 @@ namespace Umbraco.Web.Website.Extensions #region IsSomething: equality - public static bool IsEqual(this IPublishedContent content, IPublishedContent other) => content.Id == other.Id; - /// /// If the specified is equal to , the HTML encoded will be returned; otherwise, . /// @@ -124,16 +124,6 @@ namespace Umbraco.Web.Website.Extensions /// public static IHtmlContent IsEqual(this IPublishedContent content, IPublishedContent other, string valueIfTrue, string valueIfFalse) => new HtmlString(HttpUtility.HtmlEncode(content.IsEqual(other) ? valueIfTrue : valueIfFalse)); - /// - /// If the specified is not equal to , true will be returned; otherwise, the result will be false />. - /// - /// The content. - /// The other content. - /// - /// The result from checking whether the two published content items are not equal. - /// - public static bool IsNotEqual(this IPublishedContent content, IPublishedContent other) => content.IsEqual(other) == false; - /// /// If the specified is not equal to , the HTML encoded will be returned; otherwise, . /// diff --git a/src/Umbraco.Web.Website/Extensions/TypeLoaderExtensions.cs b/src/Umbraco.Web.Website/Extensions/TypeLoaderExtensions.cs index cdaa40ef6a..1964b1c560 100644 --- a/src/Umbraco.Web.Website/Extensions/TypeLoaderExtensions.cs +++ b/src/Umbraco.Web.Website/Extensions/TypeLoaderExtensions.cs @@ -1,8 +1,8 @@ using System; using System.Collections.Generic; -using Umbraco.Core.Composing; -using Umbraco.Web.Common.Controllers; -using Umbraco.Web.Website.Controllers; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Web.Common.Controllers; +using Umbraco.Cms.Web.Website.Controllers; namespace Umbraco.Extensions { diff --git a/src/Umbraco.Web.Website/Extensions/UmbracoWebsiteApplicationBuilderExtensions.cs b/src/Umbraco.Web.Website/Extensions/UmbracoWebsiteApplicationBuilderExtensions.cs index af7041011c..4f049abdac 100644 --- a/src/Umbraco.Web.Website/Extensions/UmbracoWebsiteApplicationBuilderExtensions.cs +++ b/src/Umbraco.Web.Website/Extensions/UmbracoWebsiteApplicationBuilderExtensions.cs @@ -1,7 +1,7 @@ using System; using Microsoft.AspNetCore.Builder; using Microsoft.Extensions.DependencyInjection; -using Umbraco.Web.Website.Routing; +using Umbraco.Cms.Web.Website.Routing; namespace Umbraco.Extensions { diff --git a/src/Umbraco.Web.Website/Models/NoNodesViewModel.cs b/src/Umbraco.Web.Website/Models/NoNodesViewModel.cs index 2a0be7dd2c..30d3138d84 100644 --- a/src/Umbraco.Web.Website/Models/NoNodesViewModel.cs +++ b/src/Umbraco.Web.Website/Models/NoNodesViewModel.cs @@ -1,4 +1,4 @@ -namespace Umbraco.Web.Website.Models +namespace Umbraco.Cms.Web.Website.Models { public class NoNodesViewModel { diff --git a/src/Umbraco.Web.Website/Routing/ControllerActionSearcher.cs b/src/Umbraco.Web.Website/Routing/ControllerActionSearcher.cs index 2af0e5362f..5c758a948c 100644 --- a/src/Umbraco.Web.Website/Routing/ControllerActionSearcher.cs +++ b/src/Umbraco.Web.Website/Routing/ControllerActionSearcher.cs @@ -5,11 +5,11 @@ using Microsoft.AspNetCore.Mvc.Controllers; using Microsoft.AspNetCore.Mvc.Infrastructure; using Microsoft.AspNetCore.Routing; using Microsoft.Extensions.Logging; -using Umbraco.Core.Composing; -using Umbraco.Web.Common.Controllers; -using static Umbraco.Core.Constants.Web.Routing; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Web.Common.Controllers; +using static Umbraco.Cms.Core.Constants.Web.Routing; -namespace Umbraco.Web.Website.Routing +namespace Umbraco.Cms.Web.Website.Routing { /// /// Used to find a controller/action in the current available routes diff --git a/src/Umbraco.Web.Website/Routing/FrontEndRoutes.cs b/src/Umbraco.Web.Website/Routing/FrontEndRoutes.cs index 67ce14e7aa..8f7fad9864 100644 --- a/src/Umbraco.Web.Website/Routing/FrontEndRoutes.cs +++ b/src/Umbraco.Web.Website/Routing/FrontEndRoutes.cs @@ -1,22 +1,17 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using Microsoft.AspNetCore.Routing; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Web.Common.Controllers; -using Umbraco.Web.Common.Extensions; -using Umbraco.Web.Common.Routing; -using Umbraco.Web.Mvc; -using Umbraco.Web.WebApi; -using Umbraco.Web.Website.Collections; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Web.Mvc; +using Umbraco.Cms.Web.Common.Controllers; +using Umbraco.Cms.Web.Common.Routing; +using Umbraco.Cms.Web.Website.Collections; +using Umbraco.Extensions; -namespace Umbraco.Web.Website.Routing +namespace Umbraco.Cms.Web.Website.Routing { /// /// Creates routes for surface controllers diff --git a/src/Umbraco.Web.Website/Routing/IControllerActionSearcher.cs b/src/Umbraco.Web.Website/Routing/IControllerActionSearcher.cs index 6236a2b8f0..b272b4afd3 100644 --- a/src/Umbraco.Web.Website/Routing/IControllerActionSearcher.cs +++ b/src/Umbraco.Web.Website/Routing/IControllerActionSearcher.cs @@ -1,7 +1,7 @@ using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc.Controllers; -namespace Umbraco.Web.Website.Routing +namespace Umbraco.Cms.Web.Website.Routing { public interface IControllerActionSearcher { diff --git a/src/Umbraco.Web.Website/Routing/IUmbracoRouteValuesFactory.cs b/src/Umbraco.Web.Website/Routing/IUmbracoRouteValuesFactory.cs index f584627e31..7e30773bf5 100644 --- a/src/Umbraco.Web.Website/Routing/IUmbracoRouteValuesFactory.cs +++ b/src/Umbraco.Web.Website/Routing/IUmbracoRouteValuesFactory.cs @@ -1,9 +1,8 @@ using Microsoft.AspNetCore.Http; -using Microsoft.AspNetCore.Routing; -using Umbraco.Web.Common.Routing; -using Umbraco.Web.Routing; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Web.Common.Routing; -namespace Umbraco.Web.Website.Routing +namespace Umbraco.Cms.Web.Website.Routing { /// /// Used to create diff --git a/src/Umbraco.Web.Website/Routing/UmbracoRouteValueTransformer.cs b/src/Umbraco.Web.Website/Routing/UmbracoRouteValueTransformer.cs index 7d0837b4eb..d0e5d4c72a 100644 --- a/src/Umbraco.Web.Website/Routing/UmbracoRouteValueTransformer.cs +++ b/src/Umbraco.Web.Website/Routing/UmbracoRouteValueTransformer.cs @@ -2,7 +2,6 @@ using System; using System.Collections.Generic; using System.Linq; using System.Net; -using System.Net.Http; using System.Threading.Tasks; using Microsoft.AspNetCore.DataProtection; using Microsoft.AspNetCore.Http; @@ -12,18 +11,20 @@ using Microsoft.AspNetCore.Routing; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using Microsoft.Extensions.Primitives; -using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Web.Common.Routing; +using Umbraco.Cms.Web.Common.Security; +using Umbraco.Cms.Web.Website.Controllers; using Umbraco.Extensions; -using Umbraco.Web.Common.Routing; -using Umbraco.Web.Common.Security; -using Umbraco.Web.Routing; -using Umbraco.Web.Website.Controllers; -using static Umbraco.Core.Constants.Web.Routing; -using RouteDirection = Umbraco.Web.Routing.RouteDirection; +using static Umbraco.Cms.Core.Constants.Web.Routing; +using RouteDirection = Umbraco.Cms.Core.Routing.RouteDirection; -namespace Umbraco.Web.Website.Routing +namespace Umbraco.Cms.Web.Website.Routing { /// /// The route value transformer for Umbraco front-end routes diff --git a/src/Umbraco.Web.Website/Routing/UmbracoRouteValuesFactory.cs b/src/Umbraco.Web.Website/Routing/UmbracoRouteValuesFactory.cs index 1e0beca333..f44890cf2f 100644 --- a/src/Umbraco.Web.Website/Routing/UmbracoRouteValuesFactory.cs +++ b/src/Umbraco.Web.Website/Routing/UmbracoRouteValuesFactory.cs @@ -1,19 +1,17 @@ using System; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc.Controllers; -using Microsoft.AspNetCore.Routing; -using Umbraco.Core; -using Umbraco.Core.Strings; +using Umbraco.Cms.Core.Features; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Web.Common.Controllers; +using Umbraco.Cms.Web.Common.Routing; +using Umbraco.Cms.Web.Website.Controllers; using Umbraco.Extensions; -using Umbraco.Web.Common.Controllers; -using Umbraco.Web.Common.Routing; -using Umbraco.Web.Features; -using Umbraco.Web.Routing; -using Umbraco.Web.Website.Controllers; -namespace Umbraco.Web.Website.Routing +namespace Umbraco.Cms.Web.Website.Routing { - /// /// Used to create /// @@ -144,7 +142,7 @@ namespace Umbraco.Web.Website.Routing && !_umbracoFeatures.Disabled.DisableTemplates && !hasHijackedRoute) { - Core.Models.PublishedContent.IPublishedContent content = request.PublishedContent; + IPublishedContent content = request.PublishedContent; // This is basically a 404 even if there is content found. // We then need to re-run this through the pipeline for the last diff --git a/src/Umbraco.Web.Website/Security/UmbracoWebsiteSecurity.cs b/src/Umbraco.Web.Website/Security/UmbracoWebsiteSecurity.cs index d110cf9661..c878730d90 100644 --- a/src/Umbraco.Web.Website/Security/UmbracoWebsiteSecurity.cs +++ b/src/Umbraco.Web.Website/Security/UmbracoWebsiteSecurity.cs @@ -5,15 +5,15 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Authentication.Cookies; using Microsoft.AspNetCore.Http; -using Umbraco.Core; -using Umbraco.Core.Models; -using Umbraco.Core.Models.Security; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; -using Umbraco.Web.Models; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.Security; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Constants = Umbraco.Cms.Core.Constants; -namespace Umbraco.Web.Website.Security +namespace Umbraco.Cms.Web.Website.Security { public class UmbracoWebsiteSecurity : IUmbracoWebsiteSecurity { diff --git a/src/Umbraco.Web.Website/Umbraco.Web.Website.csproj b/src/Umbraco.Web.Website/Umbraco.Web.Website.csproj index 4e898f349e..c3b5a6b1c4 100644 --- a/src/Umbraco.Web.Website/Umbraco.Web.Website.csproj +++ b/src/Umbraco.Web.Website/Umbraco.Web.Website.csproj @@ -3,6 +3,8 @@ net5.0 Library + latest + Umbraco.Cms.Web.Website diff --git a/src/Umbraco.Web.Website/ViewEngines/PluginRazorViewEngineOptionsSetup.cs b/src/Umbraco.Web.Website/ViewEngines/PluginRazorViewEngineOptionsSetup.cs index 3cb6d78113..fbf2a34023 100644 --- a/src/Umbraco.Web.Website/ViewEngines/PluginRazorViewEngineOptionsSetup.cs +++ b/src/Umbraco.Web.Website/ViewEngines/PluginRazorViewEngineOptionsSetup.cs @@ -3,8 +3,9 @@ using System.Collections.Generic; using System.Linq; using Microsoft.AspNetCore.Mvc.Razor; using Microsoft.Extensions.Options; +using Umbraco.Cms.Core; -namespace Umbraco.Web.Website.ViewEngines +namespace Umbraco.Cms.Web.Website.ViewEngines { /// /// Configure view engine locations for front-end rendering based on App_Plugins views @@ -32,12 +33,12 @@ namespace Umbraco.Web.Website.ViewEngines string[] umbViewLocations = new string[] { // area view locations for the plugin folder - string.Concat(Core.Constants.SystemDirectories.AppPlugins, "/{2}/Views/{1}/{0}.cshtml"), - string.Concat(Core.Constants.SystemDirectories.AppPlugins, "/{2}/Views/Shared/{0}.cshtml"), + string.Concat(Constants.SystemDirectories.AppPlugins, "/{2}/Views/{1}/{0}.cshtml"), + string.Concat(Constants.SystemDirectories.AppPlugins, "/{2}/Views/Shared/{0}.cshtml"), // will be used when we have partial view and child action macros - string.Concat(Core.Constants.SystemDirectories.AppPlugins, "/{2}/Views/Partials/{0}.cshtml"), - string.Concat(Core.Constants.SystemDirectories.AppPlugins, "/{2}/Views/MacroPartials/{0}.cshtml") + string.Concat(Constants.SystemDirectories.AppPlugins, "/{2}/Views/Partials/{0}.cshtml"), + string.Concat(Constants.SystemDirectories.AppPlugins, "/{2}/Views/MacroPartials/{0}.cshtml") }; viewLocations = umbViewLocations.Concat(viewLocations); diff --git a/src/Umbraco.Web.Website/ViewEngines/ProfilingViewEngine.cs b/src/Umbraco.Web.Website/ViewEngines/ProfilingViewEngine.cs index 070c3f4e65..abc46aacf1 100644 --- a/src/Umbraco.Web.Website/ViewEngines/ProfilingViewEngine.cs +++ b/src/Umbraco.Web.Website/ViewEngines/ProfilingViewEngine.cs @@ -1,9 +1,8 @@ - -using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.ViewEngines; -using Umbraco.Core.Logging; +using Umbraco.Cms.Core.Logging; -namespace Umbraco.Web.Website.ViewEngines +namespace Umbraco.Cms.Web.Website.ViewEngines { public class ProfilingViewEngine: IViewEngine { diff --git a/src/Umbraco.Web.Website/ViewEngines/ProfilingViewEngineWrapperMvcViewOptionsSetup.cs b/src/Umbraco.Web.Website/ViewEngines/ProfilingViewEngineWrapperMvcViewOptionsSetup.cs index 1510975f14..673b88208c 100644 --- a/src/Umbraco.Web.Website/ViewEngines/ProfilingViewEngineWrapperMvcViewOptionsSetup.cs +++ b/src/Umbraco.Web.Website/ViewEngines/ProfilingViewEngineWrapperMvcViewOptionsSetup.cs @@ -4,9 +4,9 @@ using System.Linq; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.ViewEngines; using Microsoft.Extensions.Options; -using Umbraco.Core.Logging; +using Umbraco.Cms.Core.Logging; -namespace Umbraco.Web.Website.ViewEngines +namespace Umbraco.Cms.Web.Website.ViewEngines { /// /// Wraps all view engines with a diff --git a/src/Umbraco.Web.Website/ViewEngines/RenderRazorViewEngineOptionsSetup.cs b/src/Umbraco.Web.Website/ViewEngines/RenderRazorViewEngineOptionsSetup.cs index 39009d44a1..602920dc11 100644 --- a/src/Umbraco.Web.Website/ViewEngines/RenderRazorViewEngineOptionsSetup.cs +++ b/src/Umbraco.Web.Website/ViewEngines/RenderRazorViewEngineOptionsSetup.cs @@ -4,7 +4,7 @@ using System.Linq; using Microsoft.AspNetCore.Mvc.Razor; using Microsoft.Extensions.Options; -namespace Umbraco.Web.Website.ViewEngines +namespace Umbraco.Cms.Web.Website.ViewEngines { /// /// Configure view engine locations for front-end rendering diff --git a/src/Umbraco.Web/AspNet/AspNetApplicationShutdownRegistry.cs b/src/Umbraco.Web/AspNet/AspNetApplicationShutdownRegistry.cs index dbd6e9e834..12aa79c1bd 100644 --- a/src/Umbraco.Web/AspNet/AspNetApplicationShutdownRegistry.cs +++ b/src/Umbraco.Web/AspNet/AspNetApplicationShutdownRegistry.cs @@ -1,8 +1,8 @@ using System; using System.Collections.Concurrent; using System.Web.Hosting; -using Umbraco.Core.Hosting; -using IRegisteredObject = Umbraco.Core.IRegisteredObject; +using Umbraco.Cms.Core.Hosting; +using IRegisteredObject = Umbraco.Cms.Core.IRegisteredObject; namespace Umbraco.Web.Hosting { diff --git a/src/Umbraco.Web/AspNet/AspNetBackOfficeInfo.cs b/src/Umbraco.Web/AspNet/AspNetBackOfficeInfo.cs index 88fc07c5fa..b7ea9b0d6d 100644 --- a/src/Umbraco.Web/AspNet/AspNetBackOfficeInfo.cs +++ b/src/Umbraco.Web/AspNet/AspNetBackOfficeInfo.cs @@ -1,11 +1,10 @@ using System.Web; -using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Configuration.UmbracoSettings; -using Umbraco.Core.IO; using Microsoft.Extensions.Logging; +using Microsoft.Extensions.Options; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.IO; +using Umbraco.Extensions; namespace Umbraco.Web { diff --git a/src/Umbraco.Web/AspNet/AspNetCookieManager.cs b/src/Umbraco.Web/AspNet/AspNetCookieManager.cs index 917647bbe0..7d1cad5763 100644 --- a/src/Umbraco.Web/AspNet/AspNetCookieManager.cs +++ b/src/Umbraco.Web/AspNet/AspNetCookieManager.cs @@ -1,4 +1,5 @@ using System.Web; +using Umbraco.Cms.Core.Web; namespace Umbraco.Web { diff --git a/src/Umbraco.Web/AspNet/AspNetHostingEnvironment.cs b/src/Umbraco.Web/AspNet/AspNetHostingEnvironment.cs index a58a5f3a14..d1ec9aa60d 100644 --- a/src/Umbraco.Web/AspNet/AspNetHostingEnvironment.cs +++ b/src/Umbraco.Web/AspNet/AspNetHostingEnvironment.cs @@ -4,10 +4,12 @@ using System.Reflection; using System.Web; using System.Web.Hosting; using Microsoft.Extensions.Options; -using Umbraco.Core; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web.Hosting { diff --git a/src/Umbraco.Web/AspNet/AspNetIpResolver.cs b/src/Umbraco.Web/AspNet/AspNetIpResolver.cs index 7eaca54663..5a14592aaf 100644 --- a/src/Umbraco.Web/AspNet/AspNetIpResolver.cs +++ b/src/Umbraco.Web/AspNet/AspNetIpResolver.cs @@ -1,6 +1,6 @@ using System.Web; +using Umbraco.Cms.Core.Net; using Umbraco.Core; -using Umbraco.Net; namespace Umbraco.Web { diff --git a/src/Umbraco.Web/AspNet/AspNetPasswordHasher.cs b/src/Umbraco.Web/AspNet/AspNetPasswordHasher.cs index 0f9ff1981c..7cdeef6e21 100644 --- a/src/Umbraco.Web/AspNet/AspNetPasswordHasher.cs +++ b/src/Umbraco.Web/AspNet/AspNetPasswordHasher.cs @@ -1,9 +1,9 @@ using Microsoft.AspNet.Identity; -using IPasswordHasher = Umbraco.Core.Security.IPasswordHasher; +using IPasswordHasher = Umbraco.Cms.Core.Security.IPasswordHasher; namespace Umbraco.Web { - public class AspNetPasswordHasher : IPasswordHasher + public class AspNetPasswordHasher : Cms.Core.Security.IPasswordHasher { private PasswordHasher _underlyingHasher; diff --git a/src/Umbraco.Web/AspNet/AspNetSessionManager.cs b/src/Umbraco.Web/AspNet/AspNetSessionManager.cs index 50fe70488b..349c8b1539 100644 --- a/src/Umbraco.Web/AspNet/AspNetSessionManager.cs +++ b/src/Umbraco.Web/AspNet/AspNetSessionManager.cs @@ -1,5 +1,6 @@ using System.Web; -using Umbraco.Net; +using Umbraco.Cms.Core.Net; +using Umbraco.Cms.Core.Web; namespace Umbraco.Web.AspNet { diff --git a/src/Umbraco.Web/AspNet/AspNetUmbracoApplicationLifetime.cs b/src/Umbraco.Web/AspNet/AspNetUmbracoApplicationLifetime.cs index 107c7e41c5..1b7261aae8 100644 --- a/src/Umbraco.Web/AspNet/AspNetUmbracoApplicationLifetime.cs +++ b/src/Umbraco.Web/AspNet/AspNetUmbracoApplicationLifetime.cs @@ -1,6 +1,6 @@ using System.Threading; using System.Web; -using Umbraco.Core.Hosting; +using Umbraco.Cms.Core.Hosting; namespace Umbraco.Web.AspNet { diff --git a/src/Umbraco.Web/AspNet/AspNetUserAgentProvider.cs b/src/Umbraco.Web/AspNet/AspNetUserAgentProvider.cs index bd37b62531..f17dcadd50 100644 --- a/src/Umbraco.Web/AspNet/AspNetUserAgentProvider.cs +++ b/src/Umbraco.Web/AspNet/AspNetUserAgentProvider.cs @@ -1,4 +1,4 @@ -using Umbraco.Net; +using Umbraco.Cms.Core.Net; namespace Umbraco.Web.AspNet { diff --git a/src/Umbraco.Web/AspNet/FrameworkMarchal.cs b/src/Umbraco.Web/AspNet/FrameworkMarchal.cs index c8cd8a5692..b53aa13e46 100644 --- a/src/Umbraco.Web/AspNet/FrameworkMarchal.cs +++ b/src/Umbraco.Web/AspNet/FrameworkMarchal.cs @@ -1,6 +1,6 @@ using System; using System.Runtime.InteropServices; -using Umbraco.Core.Diagnostics; +using Umbraco.Cms.Core.Diagnostics; namespace Umbraco.Web { diff --git a/src/Umbraco.Web/Composing/Current.cs b/src/Umbraco.Web/Composing/Current.cs index 19eedfc1c1..560d318e9f 100644 --- a/src/Umbraco.Web/Composing/Current.cs +++ b/src/Umbraco.Web/Composing/Current.cs @@ -1,33 +1,31 @@ using System; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Configuration; -using Umbraco.Core.Events; -using Umbraco.Core.HealthChecks; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; -using Umbraco.Core.Logging; -using Umbraco.Core.Mapping; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Actions; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Editors; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.HealthChecks; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Net; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Sync; +using Umbraco.Cms.Core.Templates; +using Umbraco.Cms.Core.Trees; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Core.WebAssets; using Umbraco.Core.Scoping; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Core.Sync; -using Umbraco.Core.Templates; -using Umbraco.Core.WebAssets; -using Umbraco.Net; -using Umbraco.Web.Actions; -using Umbraco.Web.Cache; -using Umbraco.Web.Editors; -using Umbraco.Web.Mvc; -using Umbraco.Web.PublishedCache; -using Umbraco.Web.Routing; using Umbraco.Web.Security; -using Umbraco.Web.Services; -using Umbraco.Web.Trees; -using Umbraco.Web.WebApi; + namespace Umbraco.Web.Composing { @@ -142,7 +140,7 @@ namespace Umbraco.Web.Composing #endregion - + #region Core Getters // proxy Core for convenience diff --git a/src/Umbraco.Web/HttpContextUmbracoContextAccessor.cs b/src/Umbraco.Web/HttpContextUmbracoContextAccessor.cs index 5a522b02c7..9171122b9c 100644 --- a/src/Umbraco.Web/HttpContextUmbracoContextAccessor.cs +++ b/src/Umbraco.Web/HttpContextUmbracoContextAccessor.cs @@ -1,4 +1,6 @@ using System; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Web; using Umbraco.Core.Cache; namespace Umbraco.Web diff --git a/src/Umbraco.Web/HttpCookieExtensions.cs b/src/Umbraco.Web/HttpCookieExtensions.cs index 7842755589..aecb124b48 100644 --- a/src/Umbraco.Web/HttpCookieExtensions.cs +++ b/src/Umbraco.Web/HttpCookieExtensions.cs @@ -1,12 +1,10 @@ using System; -using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Net.Http.Headers; using System.Web; -using Microsoft.Owin; -using Newtonsoft.Json; -using Umbraco.Core; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web { diff --git a/src/Umbraco.Web/HttpRequestExtensions.cs b/src/Umbraco.Web/HttpRequestExtensions.cs index e5a1ef39ff..183de2dbe5 100644 --- a/src/Umbraco.Web/HttpRequestExtensions.cs +++ b/src/Umbraco.Web/HttpRequestExtensions.cs @@ -1,8 +1,6 @@ -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Web; -using Umbraco.Core; +using System.Web; +using Umbraco.Cms.Core; +using Umbraco.Extensions; namespace Umbraco.Web { diff --git a/src/Umbraco.Web/Macros/MemberUserKeyProvider.cs b/src/Umbraco.Web/Macros/MemberUserKeyProvider.cs index cb57943bad..837e1d783d 100644 --- a/src/Umbraco.Web/Macros/MemberUserKeyProvider.cs +++ b/src/Umbraco.Web/Macros/MemberUserKeyProvider.cs @@ -1,3 +1,4 @@ +using Umbraco.Cms.Core.Security; using Umbraco.Core.Security; using Umbraco.Web.Security; diff --git a/src/Umbraco.Web/ModelStateExtensions.cs b/src/Umbraco.Web/ModelStateExtensions.cs index a1bc3d5906..7a2023715e 100644 --- a/src/Umbraco.Web/ModelStateExtensions.cs +++ b/src/Umbraco.Web/ModelStateExtensions.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Web.Mvc; -using Umbraco.Core; +using Umbraco.Extensions; namespace Umbraco.Web { diff --git a/src/Umbraco.Web/Models/Membership/UmbracoMembershipMember.cs b/src/Umbraco.Web/Models/Membership/UmbracoMembershipMember.cs index 2d9a197706..e85ac39b86 100644 --- a/src/Umbraco.Web/Models/Membership/UmbracoMembershipMember.cs +++ b/src/Umbraco.Web/Models/Membership/UmbracoMembershipMember.cs @@ -1,6 +1,6 @@ using System; using System.Web.Security; -using Umbraco.Core.Models.Membership; +using Umbraco.Cms.Core.Models.Membership; namespace Umbraco.Web.Models.Membership { @@ -33,7 +33,7 @@ namespace Umbraco.Web.Models.Membership if (member.Username != null) _userName = member.Username.Trim(); if (member.Email != null) - _email = member.Email.Trim(); + _email = member.Email.Trim(); _providerName = providerName; _providerUserKey = member.Key; _comment = member.Comments; diff --git a/src/Umbraco.Web/Mvc/EnsurePublishedContentRequestAttribute.cs b/src/Umbraco.Web/Mvc/EnsurePublishedContentRequestAttribute.cs new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/Umbraco.Web/Mvc/MemberAuthorizeAttribute.cs b/src/Umbraco.Web/Mvc/MemberAuthorizeAttribute.cs index a99e8c1df6..6395a0d193 100644 --- a/src/Umbraco.Web/Mvc/MemberAuthorizeAttribute.cs +++ b/src/Umbraco.Web/Mvc/MemberAuthorizeAttribute.cs @@ -1,10 +1,8 @@ using System.Collections.Generic; using System.Web; using System.Web.Mvc; +using Umbraco.Extensions; using AuthorizeAttribute = System.Web.Mvc.AuthorizeAttribute; -using Umbraco.Core; -using Umbraco.Web.Security; -using Umbraco.Core.Composing; using Current = Umbraco.Web.Composing.Current; namespace Umbraco.Web.Mvc diff --git a/src/Umbraco.Web/Mvc/PluginController.cs b/src/Umbraco.Web/Mvc/PluginController.cs index 59521255c9..977150e692 100644 --- a/src/Umbraco.Web/Mvc/PluginController.cs +++ b/src/Umbraco.Web/Mvc/PluginController.cs @@ -2,13 +2,14 @@ using System.Collections.Concurrent; using System.Web.Mvc; using Microsoft.Extensions.DependencyInjection; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Composing; -using Umbraco.Core.Logging; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Core.Web.Mvc; using Umbraco.Core.Persistence; -using Umbraco.Core.Services; -using Umbraco.Web.Security; +using Umbraco.Extensions; using Umbraco.Web.WebApi; using Current = Umbraco.Web.Composing.Current; diff --git a/src/Umbraco.Web/Mvc/RenderRouteHandler.cs b/src/Umbraco.Web/Mvc/RenderRouteHandler.cs index 2cd491b7a7..d48b92a340 100644 --- a/src/Umbraco.Web/Mvc/RenderRouteHandler.cs +++ b/src/Umbraco.Web/Mvc/RenderRouteHandler.cs @@ -5,8 +5,6 @@ using System.Web.Mvc; using System.Web.Routing; using Microsoft.Extensions.DependencyInjection; using Umbraco.Core; -using Umbraco.Core.Strings; -using Umbraco.Web.Features; using Umbraco.Web.Models; using Umbraco.Web.Routing; using Current = Umbraco.Web.Composing.Current; diff --git a/src/Umbraco.Web/Mvc/RouteDefinition.cs b/src/Umbraco.Web/Mvc/RouteDefinition.cs index 2977c49cb5..1f95fadf8e 100644 --- a/src/Umbraco.Web/Mvc/RouteDefinition.cs +++ b/src/Umbraco.Web/Mvc/RouteDefinition.cs @@ -1,4 +1,5 @@ using System; +using Umbraco.Cms.Core.Routing; using Umbraco.Web.Routing; namespace Umbraco.Web.Mvc diff --git a/src/Umbraco.Web/Mvc/SurfaceController.cs b/src/Umbraco.Web/Mvc/SurfaceController.cs index 0c6a64f6d2..bf331dcdbc 100644 --- a/src/Umbraco.Web/Mvc/SurfaceController.cs +++ b/src/Umbraco.Web/Mvc/SurfaceController.cs @@ -1,7 +1,8 @@ -using Umbraco.Core.Cache; -using Umbraco.Core.Logging; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Web; using Umbraco.Core.Persistence; -using Umbraco.Core.Services; namespace Umbraco.Web.Mvc { diff --git a/src/Umbraco.Web/Mvc/UmbracoVirtualNodeByIdRouteHandler.cs b/src/Umbraco.Web/Mvc/UmbracoVirtualNodeByIdRouteHandler.cs index ae38bb945d..88495f7999 100644 --- a/src/Umbraco.Web/Mvc/UmbracoVirtualNodeByIdRouteHandler.cs +++ b/src/Umbraco.Web/Mvc/UmbracoVirtualNodeByIdRouteHandler.cs @@ -1,5 +1,6 @@ using System.Web.Routing; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Web; namespace Umbraco.Web.Mvc { diff --git a/src/Umbraco.Web/Mvc/UmbracoVirtualNodeByUdiRouteHandler.cs b/src/Umbraco.Web/Mvc/UmbracoVirtualNodeByUdiRouteHandler.cs index 7aee823b9a..c74045c0d2 100644 --- a/src/Umbraco.Web/Mvc/UmbracoVirtualNodeByUdiRouteHandler.cs +++ b/src/Umbraco.Web/Mvc/UmbracoVirtualNodeByUdiRouteHandler.cs @@ -1,6 +1,8 @@ using System.Web.Routing; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Web; using Umbraco.Core; -using Umbraco.Core.Models.PublishedContent; namespace Umbraco.Web.Mvc { diff --git a/src/Umbraco.Web/Mvc/UmbracoVirtualNodeRouteHandler.cs b/src/Umbraco.Web/Mvc/UmbracoVirtualNodeRouteHandler.cs index 1ef111b32d..45f7f17fc9 100644 --- a/src/Umbraco.Web/Mvc/UmbracoVirtualNodeRouteHandler.cs +++ b/src/Umbraco.Web/Mvc/UmbracoVirtualNodeRouteHandler.cs @@ -3,8 +3,9 @@ using System.Web; using System.Web.Mvc; using System.Web.Routing; using Microsoft.Extensions.DependencyInjection; -using Umbraco.Core; -using Umbraco.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Web; using Umbraco.Web.Composing; using Umbraco.Web.Models; using Umbraco.Web.Routing; diff --git a/src/Umbraco.Web/Mvc/ViewDataDictionaryExtensions.cs b/src/Umbraco.Web/Mvc/ViewDataDictionaryExtensions.cs index 04b266691d..8178099b3e 100644 --- a/src/Umbraco.Web/Mvc/ViewDataDictionaryExtensions.cs +++ b/src/Umbraco.Web/Mvc/ViewDataDictionaryExtensions.cs @@ -1,5 +1,5 @@ using System.Web.Mvc; -using Umbraco.Core; +using Umbraco.Extensions; namespace Umbraco.Web.Mvc { diff --git a/src/Umbraco.Web/Runtime/AspNetUmbracoBootPermissionChecker.cs b/src/Umbraco.Web/Runtime/AspNetUmbracoBootPermissionChecker.cs index fdf8b53852..fda6bcfd74 100644 --- a/src/Umbraco.Web/Runtime/AspNetUmbracoBootPermissionChecker.cs +++ b/src/Umbraco.Web/Runtime/AspNetUmbracoBootPermissionChecker.cs @@ -1,4 +1,5 @@ using System.Web; +using Umbraco.Cms.Core.Runtime; using Umbraco.Core.Runtime; namespace Umbraco.Web.Runtime diff --git a/src/Umbraco.Web/Runtime/WebFinalComponent.cs b/src/Umbraco.Web/Runtime/WebFinalComponent.cs index 2ba78b2080..859e44a50d 100644 --- a/src/Umbraco.Web/Runtime/WebFinalComponent.cs +++ b/src/Umbraco.Web/Runtime/WebFinalComponent.cs @@ -1,6 +1,6 @@ using System; using System.Web.Http; -using Umbraco.Core.Composing; +using Umbraco.Cms.Core.Composing; namespace Umbraco.Web.Runtime { diff --git a/src/Umbraco.Web/Runtime/WebFinalComposer.cs b/src/Umbraco.Web/Runtime/WebFinalComposer.cs index 3f9fd2bbc4..2c2a2423e6 100644 --- a/src/Umbraco.Web/Runtime/WebFinalComposer.cs +++ b/src/Umbraco.Web/Runtime/WebFinalComposer.cs @@ -1,6 +1,5 @@ -using Umbraco.Core; -using Umbraco.Core.Composing; -using Umbraco.Core.Dictionary; +using Umbraco.Cms.Core.Composing; +using Umbraco.Core; namespace Umbraco.Web.Runtime { diff --git a/src/Umbraco.Web/Security/ActiveDirectoryBackOfficeUserPasswordChecker.cs b/src/Umbraco.Web/Security/ActiveDirectoryBackOfficeUserPasswordChecker.cs index 46b6540d73..c5197d2b04 100644 --- a/src/Umbraco.Web/Security/ActiveDirectoryBackOfficeUserPasswordChecker.cs +++ b/src/Umbraco.Web/Security/ActiveDirectoryBackOfficeUserPasswordChecker.cs @@ -2,7 +2,7 @@ using System; using System.DirectoryServices.AccountManagement; using System.Threading.Tasks; using Microsoft.Extensions.Options; -using Umbraco.Core.Configuration.Models; +using Umbraco.Cms.Core.Configuration.Models; using Umbraco.Core.Security; namespace Umbraco.Web.Security diff --git a/src/Umbraco.Web/Security/AuthenticationOptionsExtensions.cs b/src/Umbraco.Web/Security/AuthenticationOptionsExtensions.cs index bedc74d12c..4a902468f3 100644 --- a/src/Umbraco.Web/Security/AuthenticationOptionsExtensions.cs +++ b/src/Umbraco.Web/Security/AuthenticationOptionsExtensions.cs @@ -3,7 +3,6 @@ using Microsoft.Extensions.Logging; using Microsoft.Owin; using Microsoft.Owin.Security; using Umbraco.Core; -using Umbraco.Core.Composing; using Umbraco.Core.Security; using Current = Umbraco.Web.Composing.Current; diff --git a/src/Umbraco.Web/Security/BackofficeSecurity.cs b/src/Umbraco.Web/Security/BackofficeSecurity.cs index 839acba834..40feea229f 100644 --- a/src/Umbraco.Web/Security/BackofficeSecurity.cs +++ b/src/Umbraco.Web/Security/BackofficeSecurity.cs @@ -1,6 +1,8 @@ using System; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Security; using Umbraco.Core; -using Umbraco.Core.Models.Membership; using Umbraco.Core.Security; namespace Umbraco.Web.Security diff --git a/src/Umbraco.Web/Security/MembershipHelper.cs b/src/Umbraco.Web/Security/MembershipHelper.cs index 5cee61834e..961a8cd86d 100644 --- a/src/Umbraco.Web/Security/MembershipHelper.cs +++ b/src/Umbraco.Web/Security/MembershipHelper.cs @@ -4,17 +4,17 @@ using System.ComponentModel.DataAnnotations; using System.Linq; using System.Web.Security; using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Models; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Models.Security; -using Umbraco.Core.Services; -using Umbraco.Core.Strings; -using Umbraco.Web.Editors; -using Umbraco.Web.Models; -using Umbraco.Web.PublishedCache; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Models.Security; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Strings; +using Umbraco.Extensions; using Umbraco.Web.Security.Providers; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web.Security { diff --git a/src/Umbraco.Web/Security/MembershipProviderBase.cs b/src/Umbraco.Web/Security/MembershipProviderBase.cs index a62ef958c4..d664dc527e 100644 --- a/src/Umbraco.Web/Security/MembershipProviderBase.cs +++ b/src/Umbraco.Web/Security/MembershipProviderBase.cs @@ -4,15 +4,13 @@ using System.ComponentModel.DataAnnotations; using System.Configuration.Provider; using System.Text; using System.Text.RegularExpressions; -using System.Web; -using System.Web.Hosting; -using System.Web.Configuration; using System.Web.Security; using Microsoft.Extensions.Logging; -using Umbraco.Core; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Extensions; using Umbraco.Web.Composing; -using Umbraco.Core.Hosting; -using Umbraco.Core.Security; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web.Security { diff --git a/src/Umbraco.Web/Security/MembershipProviderExtensions.cs b/src/Umbraco.Web/Security/MembershipProviderExtensions.cs index 16add06faf..caf27dddf2 100644 --- a/src/Umbraco.Web/Security/MembershipProviderExtensions.cs +++ b/src/Umbraco.Web/Security/MembershipProviderExtensions.cs @@ -3,11 +3,12 @@ using System.Security.Principal; using System.Threading; using System.Web; using System.Web.Security; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Extensions; using Umbraco.Web.Composing; -using Umbraco.Core; -using Umbraco.Core.Models.Membership; using Umbraco.Web.Models.Membership; using Umbraco.Web.Security.Providers; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web.Security { diff --git a/src/Umbraco.Web/Security/Providers/MembersMembershipProvider.cs b/src/Umbraco.Web/Security/Providers/MembersMembershipProvider.cs index fa1ddae980..008d81623d 100644 --- a/src/Umbraco.Web/Security/Providers/MembersMembershipProvider.cs +++ b/src/Umbraco.Web/Security/Providers/MembersMembershipProvider.cs @@ -1,16 +1,17 @@ -using System.Collections.Specialized; +using System; +using System.Collections.Specialized; using System.Configuration.Provider; using System.Web.Security; -using Umbraco.Core; -using Umbraco.Core.Configuration; -using Umbraco.Core.Hosting; -using Umbraco.Core.Models; -using Umbraco.Core.Security; -using Umbraco.Core.Services; -using Umbraco.Core.Models.Membership; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Net; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; using Umbraco.Web.Composing; -using System; -using Umbraco.Net; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web.Security.Providers { diff --git a/src/Umbraco.Web/Security/Providers/MembersRoleProvider.cs b/src/Umbraco.Web/Security/Providers/MembersRoleProvider.cs index 89507a6c5b..4ebc82b426 100644 --- a/src/Umbraco.Web/Security/Providers/MembersRoleProvider.cs +++ b/src/Umbraco.Web/Security/Providers/MembersRoleProvider.cs @@ -2,6 +2,9 @@ using System.Configuration.Provider; using System.Linq; using System.Web.Security; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Services; using Umbraco.Core; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Querying; diff --git a/src/Umbraco.Web/Security/Providers/UmbracoMembershipProvider.cs b/src/Umbraco.Web/Security/Providers/UmbracoMembershipProvider.cs index 8a92226d7e..5c21e43b2a 100644 --- a/src/Umbraco.Web/Security/Providers/UmbracoMembershipProvider.cs +++ b/src/Umbraco.Web/Security/Providers/UmbracoMembershipProvider.cs @@ -6,19 +6,17 @@ using System.Text; using System.Web.Configuration; using System.Web.Security; using Microsoft.Extensions.Logging; -using Umbraco.Core; -using Umbraco.Core.Configuration; -using Umbraco.Core.Hosting; -using Umbraco.Core.Models.Membership; -using Umbraco.Net; -using Umbraco.Core.Persistence.Querying; -using Umbraco.Core.Services; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Models.Membership; +using Umbraco.Cms.Core.Net; +using Umbraco.Cms.Core.Persistence.Querying; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; using Umbraco.Web.Composing; namespace Umbraco.Web.Security.Providers { - - /// /// Abstract Membership Provider that users any implementation of IMembershipMemberService{TEntity} service /// diff --git a/src/Umbraco.Web/Security/PublicAccessChecker.cs b/src/Umbraco.Web/Security/PublicAccessChecker.cs index 039557de42..8ac0c4be8d 100644 --- a/src/Umbraco.Web/Security/PublicAccessChecker.cs +++ b/src/Umbraco.Web/Security/PublicAccessChecker.cs @@ -1,7 +1,10 @@ using System; -using Umbraco.Core; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Services; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Extensions; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web.Security { diff --git a/src/Umbraco.Web/Security/UmbracoMembershipProviderBase.cs b/src/Umbraco.Web/Security/UmbracoMembershipProviderBase.cs index d031a9f915..8b2a53ec93 100644 --- a/src/Umbraco.Web/Security/UmbracoMembershipProviderBase.cs +++ b/src/Umbraco.Web/Security/UmbracoMembershipProviderBase.cs @@ -1,6 +1,7 @@ using System.Text; using System.Web.Security; -using Umbraco.Core.Hosting; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Security; using Umbraco.Core.Security; namespace Umbraco.Web.Security diff --git a/src/Umbraco.Web/TypeLoaderExtensions.cs b/src/Umbraco.Web/TypeLoaderExtensions.cs index 8dac034fbf..0dcc726afc 100644 --- a/src/Umbraco.Web/TypeLoaderExtensions.cs +++ b/src/Umbraco.Web/TypeLoaderExtensions.cs @@ -1,8 +1,8 @@ using System; using System.Collections.Generic; +using Umbraco.Cms.Core.Composing; using Umbraco.Web.Mvc; using Umbraco.Web.WebApi; -using Umbraco.Core.Composing; namespace Umbraco.Web diff --git a/src/Umbraco.Web/UmbracoApplication.cs b/src/Umbraco.Web/UmbracoApplication.cs index 032ee9bb4f..7eb8a52f7a 100644 --- a/src/Umbraco.Web/UmbracoApplication.cs +++ b/src/Umbraco.Web/UmbracoApplication.cs @@ -4,13 +4,10 @@ using Microsoft.Extensions.Logging; using Umbraco.Core; using Umbraco.Core.Cache; using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; using Umbraco.Core.Logging; using Umbraco.Core.Runtime; using Umbraco.Web.Runtime; -using ConnectionStrings = Umbraco.Core.Configuration.Models.ConnectionStrings; +using ConnectionStrings = Umbraco.Cms.Core.Configuration.Models.ConnectionStrings; namespace Umbraco.Web { diff --git a/src/Umbraco.Web/UmbracoApplicationBase.cs b/src/Umbraco.Web/UmbracoApplicationBase.cs index 67e1c323d9..5f49a2ce40 100644 --- a/src/Umbraco.Web/UmbracoApplicationBase.cs +++ b/src/Umbraco.Web/UmbracoApplicationBase.cs @@ -8,24 +8,25 @@ using System.Web.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; -using Microsoft.Extensions.Logging.Abstractions; using Microsoft.Extensions.Options; using Serilog.Context; -using Umbraco.Core; -using Umbraco.Core.Cache; -using Umbraco.Core.Composing; -using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Core.IO; -using Umbraco.Core.Logging; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Configuration; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.IO; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Net; +using Umbraco.Cms.Core.Services; using Umbraco.Core.Logging.Serilog; using Umbraco.Core.Logging.Serilog.Enrichers; -using Umbraco.Net; +using Umbraco.Extensions; using Umbraco.Web.Hosting; -using ConnectionStrings = Umbraco.Core.Configuration.Models.ConnectionStrings; +using ConnectionStrings = Umbraco.Cms.Core.Configuration.Models.ConnectionStrings; using Current = Umbraco.Web.Composing.Current; -using GlobalSettings = Umbraco.Core.Configuration.Models.GlobalSettings; +using GlobalSettings = Umbraco.Cms.Core.Configuration.Models.GlobalSettings; using ILogger = Microsoft.Extensions.Logging.ILogger; namespace Umbraco.Web diff --git a/src/Umbraco.Web/UmbracoBuilderExtensions.cs b/src/Umbraco.Web/UmbracoBuilderExtensions.cs index d9eea6b5ea..fb47f76ecb 100644 --- a/src/Umbraco.Web/UmbracoBuilderExtensions.cs +++ b/src/Umbraco.Web/UmbracoBuilderExtensions.cs @@ -1,7 +1,8 @@ using System; using Microsoft.Extensions.DependencyInjection; -using Umbraco.Core.DependencyInjection; -using Umbraco.Web.Routing; +using Umbraco.Cms.Core.DependencyInjection; +using Umbraco.Cms.Core.Routing; +using Umbraco.Extensions; namespace Umbraco.Web { diff --git a/src/Umbraco.Web/UmbracoContext.cs b/src/Umbraco.Web/UmbracoContext.cs index 92a480bc45..66b0a31ca6 100644 --- a/src/Umbraco.Web/UmbracoContext.cs +++ b/src/Umbraco.Web/UmbracoContext.cs @@ -1,9 +1,14 @@ using System; using System.Web; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Web; using Umbraco.Core; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Core.Models.PublishedContent; using Umbraco.Core.Security; using Umbraco.Web.Composing; using Umbraco.Web.PublishedCache; diff --git a/src/Umbraco.Web/UmbracoContextFactory.cs b/src/Umbraco.Web/UmbracoContextFactory.cs index c65860e3e5..7aa827cc06 100644 --- a/src/Umbraco.Web/UmbracoContextFactory.cs +++ b/src/Umbraco.Web/UmbracoContextFactory.cs @@ -1,10 +1,15 @@ using System; using System.IO; using System.Text; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.PublishedCache; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Web; using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; -using Umbraco.Core.Hosting; -using Umbraco.Core.Models.PublishedContent; using Umbraco.Core.Services; using Umbraco.Web.PublishedCache; using Umbraco.Web.Security; diff --git a/src/Umbraco.Web/UmbracoDbProviderFactoryCreator.cs b/src/Umbraco.Web/UmbracoDbProviderFactoryCreator.cs index c27cac9f25..73f0f8028c 100644 --- a/src/Umbraco.Web/UmbracoDbProviderFactoryCreator.cs +++ b/src/Umbraco.Web/UmbracoDbProviderFactoryCreator.cs @@ -1,11 +1,12 @@ using System; using System.Data.Common; using System.Data.SqlServerCe; +using Umbraco.Cms.Persistence.SqlCe; using Umbraco.Core; using Umbraco.Core.Migrations.Install; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.SqlSyntax; -using Umbraco.Persistence.SqlCe; +using Constants = Umbraco.Cms.Core.Constants; namespace Umbraco.Web { diff --git a/src/Umbraco.Web/UmbracoHelper.cs b/src/Umbraco.Web/UmbracoHelper.cs index e026dadfa7..d396aee2f0 100644 --- a/src/Umbraco.Web/UmbracoHelper.cs +++ b/src/Umbraco.Web/UmbracoHelper.cs @@ -1,18 +1,19 @@ using System; using System.Collections.Generic; using System.Linq; +using System.Threading.Tasks; using System.Web; using System.Xml.XPath; -using Umbraco.Core; -using Umbraco.Core.Dictionary; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Templates; -using Umbraco.Core.Strings; -using Umbraco.Core.Xml; -using Umbraco.Web.Mvc; using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Dictionary; +using Umbraco.Cms.Core.Models.PublishedContent; +using Umbraco.Cms.Core.Strings; +using Umbraco.Cms.Core.Templates; +using Umbraco.Cms.Core.Xml; +using Umbraco.Extensions; +using Umbraco.Web.Mvc; using Umbraco.Web.Security; -using System.Threading.Tasks; namespace Umbraco.Web { diff --git a/src/Umbraco.Web/UmbracoHttpHandler.cs b/src/Umbraco.Web/UmbracoHttpHandler.cs index 213ff2cea9..b1ad230e66 100644 --- a/src/Umbraco.Web/UmbracoHttpHandler.cs +++ b/src/Umbraco.Web/UmbracoHttpHandler.cs @@ -1,6 +1,10 @@ using System.Web; using System.Web.Mvc; using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Web; using Umbraco.Core.Logging; using Umbraco.Core.Security; using Umbraco.Core.Services; diff --git a/src/Umbraco.Web/UmbracoWebService.cs b/src/Umbraco.Web/UmbracoWebService.cs index bd359b49c2..98e9b24379 100644 --- a/src/Umbraco.Web/UmbracoWebService.cs +++ b/src/Umbraco.Web/UmbracoWebService.cs @@ -1,7 +1,11 @@ using System.Web.Mvc; using System.Web.Services; using Microsoft.Extensions.Logging; -using Umbraco.Core.Configuration.Models; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Web; using Umbraco.Core.Logging; using Umbraco.Core.Security; using Umbraco.Core.Services; diff --git a/src/Umbraco.Web/UrlHelperExtensions.cs b/src/Umbraco.Web/UrlHelperExtensions.cs index d8910699f3..0a19f6a738 100644 --- a/src/Umbraco.Web/UrlHelperExtensions.cs +++ b/src/Umbraco.Web/UrlHelperExtensions.cs @@ -1,13 +1,14 @@ using System; -using System.Globalization; using System.Linq; using System.Linq.Expressions; using System.Web.Mvc; using System.Web.Routing; -using Umbraco.Core; +using Umbraco.Cms.Core; +using Umbraco.Extensions; using Umbraco.Web.Composing; using Umbraco.Web.Mvc; using Umbraco.Web.WebApi; +using ExpressionHelper = Umbraco.Cms.Core.ExpressionHelper; namespace Umbraco.Web { @@ -33,7 +34,7 @@ namespace Umbraco.Web public static string GetUmbracoApiServiceBaseUrl(this UrlHelper url, Expression> methodSelector) where T : UmbracoApiController { - var method = Core.ExpressionHelper.GetMethodInfo(methodSelector); + var method = ExpressionHelper.GetMethodInfo(methodSelector); if (method == null) { throw new MissingMethodException("Could not find the method " + methodSelector + " on type " + typeof(T) + " or the result "); @@ -44,12 +45,12 @@ namespace Umbraco.Web public static string GetUmbracoApiService(this UrlHelper url, Expression> methodSelector) where T : UmbracoApiController { - var method = Core.ExpressionHelper.GetMethodInfo(methodSelector); + var method = ExpressionHelper.GetMethodInfo(methodSelector); if (method == null) { throw new MissingMethodException("Could not find the method " + methodSelector + " on type " + typeof(T) + " or the result "); } - var parameters = Core.ExpressionHelper.GetMethodParams(methodSelector); + var parameters = ExpressionHelper.GetMethodParams(methodSelector); var routeVals = new RouteValueDictionary(parameters); return url.GetUmbracoApiService(method.Name, routeVals); } diff --git a/src/Umbraco.Web/UrlHelperRenderExtensions.cs b/src/Umbraco.Web/UrlHelperRenderExtensions.cs index 7201dd3080..63a59315a4 100644 --- a/src/Umbraco.Web/UrlHelperRenderExtensions.cs +++ b/src/Umbraco.Web/UrlHelperRenderExtensions.cs @@ -1,15 +1,10 @@ using System; using System.Collections.Generic; -using System.Linq; using System.Web; using System.Web.Mvc; -using Umbraco.Core; -using Umbraco.Core.Media; -using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.PropertyEditors.ValueConverters; +using Umbraco.Cms.Core; +using Umbraco.Extensions; using Umbraco.Web.Composing; -using Umbraco.Web.Models; -using Umbraco.Web.Mvc; namespace Umbraco.Web { diff --git a/src/Umbraco.Web/WebApi/Filters/FeatureAuthorizeAttribute.cs b/src/Umbraco.Web/WebApi/Filters/FeatureAuthorizeAttribute.cs index 148e8638eb..af5987757d 100644 --- a/src/Umbraco.Web/WebApi/Filters/FeatureAuthorizeAttribute.cs +++ b/src/Umbraco.Web/WebApi/Filters/FeatureAuthorizeAttribute.cs @@ -1,9 +1,9 @@ using System.Web.Http; using System.Web.Http.Controllers; using Umbraco.Web.Composing; -using Umbraco.Web.Features; using Umbraco.Core; using Microsoft.Extensions.DependencyInjection; +using Umbraco.Cms.Core.Features; namespace Umbraco.Web.WebApi.Filters { diff --git a/src/Umbraco.Web/WebApi/HttpActionContextExtensions.cs b/src/Umbraco.Web/WebApi/HttpActionContextExtensions.cs index 6601497a3f..21c783177d 100644 --- a/src/Umbraco.Web/WebApi/HttpActionContextExtensions.cs +++ b/src/Umbraco.Web/WebApi/HttpActionContextExtensions.cs @@ -8,7 +8,6 @@ using System.Web.Http.Controllers; using Microsoft.Extensions.DependencyInjection; using Newtonsoft.Json; using Umbraco.Web.Composing; -using Umbraco.Core.Hosting; namespace Umbraco.Web.WebApi { diff --git a/src/Umbraco.Web/WebApi/HttpRequestMessageExtensions.cs b/src/Umbraco.Web/WebApi/HttpRequestMessageExtensions.cs index 8fa387ec27..0c55db10a4 100644 --- a/src/Umbraco.Web/WebApi/HttpRequestMessageExtensions.cs +++ b/src/Umbraco.Web/WebApi/HttpRequestMessageExtensions.cs @@ -3,6 +3,7 @@ using System.Net; using System.Net.Http; using System.Web; using Microsoft.Owin; +using Umbraco.Cms.Core; using Umbraco.Core; namespace Umbraco.Web.WebApi diff --git a/src/Umbraco.Web/WebApi/MemberAuthorizeAttribute.cs b/src/Umbraco.Web/WebApi/MemberAuthorizeAttribute.cs index 6d4607cfba..d91f164cf2 100644 --- a/src/Umbraco.Web/WebApi/MemberAuthorizeAttribute.cs +++ b/src/Umbraco.Web/WebApi/MemberAuthorizeAttribute.cs @@ -1,8 +1,6 @@ using System.Collections.Generic; using System.Web.Http; -using Umbraco.Core; -using Umbraco.Web.Security; -using Umbraco.Core.Composing; +using Umbraco.Extensions; using Current = Umbraco.Web.Composing.Current; namespace Umbraco.Web.WebApi diff --git a/src/Umbraco.Web/WebApi/NamespaceHttpControllerSelector.cs b/src/Umbraco.Web/WebApi/NamespaceHttpControllerSelector.cs index b9539a0520..9269db01c3 100644 --- a/src/Umbraco.Web/WebApi/NamespaceHttpControllerSelector.cs +++ b/src/Umbraco.Web/WebApi/NamespaceHttpControllerSelector.cs @@ -7,7 +7,7 @@ using System.Net.Http; using System.Web.Http; using System.Web.Http.Controllers; using System.Web.Http.Dispatcher; -using static Umbraco.Core.Constants.Web.Routing; +using static Umbraco.Cms.Core.Constants.Web.Routing; namespace Umbraco.Web.WebApi { diff --git a/src/Umbraco.Web/WebApi/ParameterSwapControllerActionSelector.cs b/src/Umbraco.Web/WebApi/ParameterSwapControllerActionSelector.cs index 8145724bcc..9ae6786ca4 100644 --- a/src/Umbraco.Web/WebApi/ParameterSwapControllerActionSelector.cs +++ b/src/Umbraco.Web/WebApi/ParameterSwapControllerActionSelector.cs @@ -5,7 +5,8 @@ using System.Web; using System.Web.Http.Controllers; using Newtonsoft.Json; using Newtonsoft.Json.Linq; -using Umbraco.Core; +using Umbraco.Cms.Core; +using Umbraco.Extensions; namespace Umbraco.Web.WebApi { diff --git a/src/Umbraco.Web/WebApi/UmbracoApiController.cs b/src/Umbraco.Web/WebApi/UmbracoApiController.cs index b1d8c7fcfe..87c149be70 100644 --- a/src/Umbraco.Web/WebApi/UmbracoApiController.cs +++ b/src/Umbraco.Web/WebApi/UmbracoApiController.cs @@ -1,11 +1,17 @@ using System; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Composing; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Web; using Umbraco.Core; using Umbraco.Core.Cache; -using Umbraco.Core.Composing; using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; using Umbraco.Core.Logging; -using Umbraco.Core.Mapping; using Umbraco.Core.Persistence; using Umbraco.Core.Security; using Umbraco.Core.Services; diff --git a/src/Umbraco.Web/WebApi/UmbracoApiControllerBase.cs b/src/Umbraco.Web/WebApi/UmbracoApiControllerBase.cs index 035cee052e..bbb8d37195 100644 --- a/src/Umbraco.Web/WebApi/UmbracoApiControllerBase.cs +++ b/src/Umbraco.Web/WebApi/UmbracoApiControllerBase.cs @@ -3,15 +3,21 @@ using System.Web; using System.Web.Http; using Microsoft.Extensions.DependencyInjection; using Microsoft.Owin; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Features; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Web; using Umbraco.Core; using Umbraco.Core.Cache; using Umbraco.Web.Composing; -using Umbraco.Core.Configuration.Models; using Umbraco.Core.Logging; -using Umbraco.Core.Mapping; using Umbraco.Core.Persistence; using Umbraco.Core.Services; -using Umbraco.Web.Features; using Umbraco.Web.Routing; using Umbraco.Web.WebApi.Filters; using Umbraco.Core.Security; diff --git a/src/Umbraco.Web/WebApi/UmbracoApiControllerTypeCollectionBuilder.cs b/src/Umbraco.Web/WebApi/UmbracoApiControllerTypeCollectionBuilder.cs index 899b1af4d7..0e35f017c6 100644 --- a/src/Umbraco.Web/WebApi/UmbracoApiControllerTypeCollectionBuilder.cs +++ b/src/Umbraco.Web/WebApi/UmbracoApiControllerTypeCollectionBuilder.cs @@ -1,4 +1,5 @@ -using Umbraco.Core.Composing; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Composing; namespace Umbraco.Web.WebApi { diff --git a/src/Umbraco.Web/WebApi/UmbracoAuthorizeAttribute.cs b/src/Umbraco.Web/WebApi/UmbracoAuthorizeAttribute.cs index 168c55e71f..14d87f213e 100644 --- a/src/Umbraco.Web/WebApi/UmbracoAuthorizeAttribute.cs +++ b/src/Umbraco.Web/WebApi/UmbracoAuthorizeAttribute.cs @@ -1,5 +1,8 @@ using System; using System.Web.Http; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; using Umbraco.Core; using Umbraco.Core.Security; using Umbraco.Web.Composing; diff --git a/src/Umbraco.Web/WebApi/UmbracoAuthorizedApiController.cs b/src/Umbraco.Web/WebApi/UmbracoAuthorizedApiController.cs index 37e552d818..713b6ec9f4 100644 --- a/src/Umbraco.Web/WebApi/UmbracoAuthorizedApiController.cs +++ b/src/Umbraco.Web/WebApi/UmbracoAuthorizedApiController.cs @@ -1,13 +1,19 @@ -using Umbraco.Core; +using Umbraco.Cms.Core.Cache; +using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Logging; +using Umbraco.Cms.Core.Mapping; +using Umbraco.Cms.Core.Routing; +using Umbraco.Cms.Core.Security; +using Umbraco.Cms.Core.Services; +using Umbraco.Cms.Core.Web; +using Umbraco.Core; using Umbraco.Core.Cache; using Umbraco.Core.Configuration; -using Umbraco.Core.Configuration.Models; using Umbraco.Core.Logging; using Umbraco.Web.WebApi.Filters; using Umbraco.Core.Persistence; using Umbraco.Core.Services; using Umbraco.Web.Security; -using Umbraco.Core.Mapping; using Umbraco.Core.Security; using Umbraco.Web.Routing;