# Conflicts: # build/Modules/Umbraco.Build/Get-UmbracoBuildEnv.ps1 # build/NuSpecs/UmbracoCms.Core.nuspec # build/NuSpecs/UmbracoCms.nuspec # build/NuSpecs/tools/Readme.txt # src/Umbraco.Core/Configuration/UmbracoConfig.cs # src/Umbraco.Core/Configuration/UmbracoSettings/ContentElement.cs # src/Umbraco.Core/Configuration/UmbracoSettings/IContentSection.cs # src/Umbraco.Core/Constants-Conventions.cs # src/Umbraco.Core/Constants-System.cs # src/Umbraco.Core/IO/MediaFileSystem.cs # src/Umbraco.Core/Media/Exif/ImageFile.cs # src/Umbraco.Core/Models/Property.cs # src/Umbraco.Core/Models/PropertyTagBehavior.cs # src/Umbraco.Core/Models/PropertyTags.cs # src/Umbraco.Core/Persistence/Migrations/Upgrades/TargetVersionSevenTwelveZero/SetDefaultTagsStorageType.cs # src/Umbraco.Core/Persistence/Repositories/AuditRepository.cs # src/Umbraco.Core/Persistence/Repositories/UserRepository.cs # src/Umbraco.Core/Persistence/Repositories/VersionableRepositoryBase.cs # src/Umbraco.Core/Security/AuthenticationExtensions.cs # src/Umbraco.Core/Security/BackOfficeCookieAuthenticationProvider.cs # src/Umbraco.Core/Services/Implement/PackagingService.cs # src/Umbraco.Core/Services/ServerRegistrationService.cs # src/Umbraco.Core/StringExtensions.cs # src/Umbraco.Core/packages.config # src/Umbraco.Tests/ApplicationUrlHelperTests.cs # src/Umbraco.Tests/Persistence/Repositories/AuditRepositoryTest.cs # src/Umbraco.Tests/Persistence/Repositories/UserRepositoryTest.cs # src/Umbraco.Tests/Web/TemplateUtilitiesTests.cs # src/Umbraco.Tests/packages.config # src/Umbraco.Web.UI.Client/package.json # src/Umbraco.Web.UI.Client/src/common/directives/components/content/umbcontentnodeinfo.directive.js # src/Umbraco.Web.UI.Client/src/common/directives/components/imaging/umbimagegravity.directive.js # src/Umbraco.Web.UI.Client/src/common/directives/components/tree/umbtreeitem.directive.js # src/Umbraco.Web.UI.Client/src/common/resources/log.resource.js # src/Umbraco.Web.UI.Client/src/common/services/user.service.js # src/Umbraco.Web.UI.Client/src/less/belle.less # src/Umbraco.Web.UI.Client/src/less/components/card.less # src/Umbraco.Web.UI.Client/src/less/navs.less # src/Umbraco.Web.UI.Client/src/less/panel.less # src/Umbraco.Web.UI.Client/src/less/property-editors.less # src/Umbraco.Web.UI.Client/src/less/tree.less # src/Umbraco.Web.UI.Client/src/views/common/dialogs/login.controller.js # src/Umbraco.Web.UI.Client/src/views/common/dialogs/login.html # src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/mediapicker/mediapicker.controller.js # src/Umbraco.Web.UI.Client/src/views/common/overlays/iconpicker/iconpicker.controller.js # src/Umbraco.Web.UI.Client/src/views/common/overlays/iconpicker/iconpicker.html # src/Umbraco.Web.UI.Client/src/views/common/overlays/linkpicker/linkpicker.controller.js # src/Umbraco.Web.UI.Client/src/views/common/overlays/mediaPicker/mediapicker.html # src/Umbraco.Web.UI.Client/src/views/components/content/umb-content-node-info.html # src/Umbraco.Web.UI.Client/src/views/components/notifications/umb-notifications.html # src/Umbraco.Web.UI.Client/src/views/components/umb-color-swatches.html # src/Umbraco.Web.UI.Client/src/views/components/umb-table.html # src/Umbraco.Web.UI.Client/src/views/propertyeditors/colorpicker/colorpicker.html # src/Umbraco.Web.UI.Client/src/views/propertyeditors/contentpicker/contentpicker.controller.js # src/Umbraco.Web.UI.Client/src/views/propertyeditors/fileupload/fileupload.controller.js # src/Umbraco.Web.UI.Client/src/views/propertyeditors/imagecropper/imagecropper.html # src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.controller.js # src/Umbraco.Web.UI.Client/src/views/propertyeditors/mediapicker/mediapicker.html # src/Umbraco.Web.UI.Client/src/views/propertyeditors/rte/rte.controller.js # src/Umbraco.Web.UI.Client/src/views/propertyeditors/textarea/textarea.html # src/Umbraco.Web.UI/Umbraco/config/lang/en.xml # src/Umbraco.Web.UI/Umbraco/config/lang/en_us.xml # src/Umbraco.Web.UI/config/umbracoSettings.Release.config # src/Umbraco.Web.UI/packages.config # src/Umbraco.Web.UI/web.Template.Debug.config # src/Umbraco.Web.UI/web.Template.config # src/Umbraco.Web/Editors/AuthenticationController.cs # src/Umbraco.Web/Editors/BackOfficeController.cs # src/Umbraco.Web/Editors/CanvasDesignerController.cs # src/Umbraco.Web/Editors/ContentController.cs # src/Umbraco.Web/Editors/DashboardController.cs # src/Umbraco.Web/Editors/LogController.cs # src/Umbraco.Web/Editors/MediaController.cs # src/Umbraco.Web/Install/InstallHelper.cs # src/Umbraco.Web/Install/InstallSteps/NewInstallStep.cs # src/Umbraco.Web/Media/EmbedProviders/AbstractOEmbedProvider.cs # src/Umbraco.Web/Models/Mapping/DataTypeModelMapper.cs # src/Umbraco.Web/Models/Mapping/PreValueDisplayResolver.cs # src/Umbraco.Web/Mvc/MasterControllerFactory.cs # src/Umbraco.Web/PropertyEditors/FileUploadPropertyValueEditor.cs # src/Umbraco.Web/PropertyEditors/ImageCropperPropertyValueEditor.cs # src/Umbraco.Web/PropertyEditors/TextAreaPropertyEditor.cs # src/Umbraco.Web/PropertyEditors/ValueConverters/MultiNodeTreePickerPropertyConverter.cs # src/Umbraco.Web/PublishedCache/MemberPublishedContent.cs # src/Umbraco.Web/Routing/RedirectTrackingEventHandler.cs # src/Umbraco.Web/Scheduling/HealthCheckNotifier.cs # src/Umbraco.Web/Scheduling/KeepAlive.cs # src/Umbraco.Web/Scheduling/LogScrubber.cs # src/Umbraco.Web/Scheduling/ScheduledPublishing.cs # src/Umbraco.Web/Scheduling/ScheduledTasks.cs # src/Umbraco.Web/Scheduling/Scheduler.cs # src/Umbraco.Web/Templates/TemplateUtilities.cs # src/Umbraco.Web/Trees/DataTypeTreeController.cs # src/Umbraco.Web/UmbracoModule.cs # src/Umbraco.Web/_Legacy/Packager/Installer.cs # src/Umbraco.Web/packages.config # src/Umbraco.Web/umbraco.presentation/keepAliveService.cs # src/Umbraco.Web/umbraco.presentation/umbraco/dashboard/FeedProxy.aspx.cs # src/umbraco.businesslogic/IO/IOHelper.cs # src/umbraco.cms/packages.config # src/umbraco.cms/umbraco.cms.csproj # src/umbraco.controls/packages.config # src/umbraco.controls/umbraco.controls.csproj # src/umbraco.editorControls/packages.config # src/umbraco.editorControls/umbraco.editorControls.csproj
344 lines
14 KiB
C#
344 lines
14 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Umbraco.Core.Models;
|
|
|
|
namespace Umbraco.Core
|
|
{
|
|
public static partial class Constants
|
|
{
|
|
/// <summary>
|
|
/// Defines the identifiers for property-type alias conventions that are used within the Umbraco core.
|
|
/// </summary>
|
|
public static class Conventions
|
|
{
|
|
internal static class PermissionCategories
|
|
{
|
|
public const string ContentCategory = "content";
|
|
public const string AdministrationCategory = "administration";
|
|
public const string StructureCategory = "structure";
|
|
public const string OtherCategory = "other";
|
|
}
|
|
|
|
public static class PublicAccess
|
|
{
|
|
public const string MemberUsernameRuleType = "MemberUsername";
|
|
public const string MemberRoleRuleType = "MemberRole";
|
|
}
|
|
|
|
|
|
public static class DataTypes
|
|
{
|
|
public const string ListViewPrefix = "List View - ";
|
|
}
|
|
|
|
/// <summary>
|
|
/// Constants for Umbraco Content property aliases.
|
|
/// </summary>
|
|
public static class Content
|
|
{
|
|
/// <summary>
|
|
/// Property alias for the Content's Url (internal) redirect.
|
|
/// </summary>
|
|
public const string InternalRedirectId = "umbracoInternalRedirectId";
|
|
|
|
/// <summary>
|
|
/// Property alias for the Content's navigational hide, (not actually used in core code).
|
|
/// </summary>
|
|
public const string NaviHide = "umbracoNaviHide";
|
|
|
|
/// <summary>
|
|
/// Property alias for the Content's Url redirect.
|
|
/// </summary>
|
|
public const string Redirect = "umbracoRedirect";
|
|
|
|
/// <summary>
|
|
/// Property alias for the Content's Url alias.
|
|
/// </summary>
|
|
public const string UrlAlias = "umbracoUrlAlias";
|
|
|
|
/// <summary>
|
|
/// Property alias for the Content's Url name.
|
|
/// </summary>
|
|
public const string UrlName = "umbracoUrlName";
|
|
}
|
|
|
|
/// <summary>
|
|
/// Constants for Umbraco Media property aliases.
|
|
/// </summary>
|
|
public static class Media
|
|
{
|
|
/// <summary>
|
|
/// Property alias for the Media's file name.
|
|
/// </summary>
|
|
public const string File = "umbracoFile";
|
|
|
|
/// <summary>
|
|
/// Property alias for the Media's width.
|
|
/// </summary>
|
|
public const string Width = "umbracoWidth";
|
|
|
|
/// <summary>
|
|
/// Property alias for the Media's height.
|
|
/// </summary>
|
|
public const string Height = "umbracoHeight";
|
|
|
|
/// <summary>
|
|
/// Property alias for the Media's file size (in bytes).
|
|
/// </summary>
|
|
public const string Bytes = "umbracoBytes";
|
|
|
|
/// <summary>
|
|
/// Property alias for the Media's file extension.
|
|
/// </summary>
|
|
public const string Extension = "umbracoExtension";
|
|
|
|
/// <summary>
|
|
/// The default height/width of an image file if the size can't be determined from the metadata
|
|
/// </summary>
|
|
public const int DefaultSize = 200;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Defines the alias identifiers for Umbraco media types.
|
|
/// </summary>
|
|
public static class MediaTypes
|
|
{
|
|
/// <summary>
|
|
/// MediaType alias for a file.
|
|
/// </summary>
|
|
public const string File = "File";
|
|
|
|
/// <summary>
|
|
/// MediaType alias for a folder.
|
|
/// </summary>
|
|
public const string Folder = "Folder";
|
|
|
|
/// <summary>
|
|
/// MediaType alias for an image.
|
|
/// </summary>
|
|
public const string Image = "Image";
|
|
|
|
/// <summary>
|
|
/// MediaType alias indicating allowing auto-selection.
|
|
/// </summary>
|
|
public const string AutoSelect = "umbracoAutoSelect";
|
|
}
|
|
|
|
/// <summary>
|
|
/// Constants for Umbraco Member property aliases.
|
|
/// </summary>
|
|
public static class Member
|
|
{
|
|
/// <summary>
|
|
/// if a role starts with __umbracoRole we won't show it as it's an internal role used for public access
|
|
/// </summary>
|
|
public static readonly string InternalRolePrefix = "__umbracoRole";
|
|
|
|
public static readonly string UmbracoMemberProviderName = "UmbracoMembershipProvider";
|
|
|
|
public static readonly string UmbracoRoleProviderName = "UmbracoRoleProvider";
|
|
|
|
/// <summary>
|
|
/// Property alias for a Members Password Question
|
|
/// </summary>
|
|
public const string PasswordQuestion = "umbracoMemberPasswordRetrievalQuestion";
|
|
|
|
public const string PasswordQuestionLabel = "Password Question";
|
|
|
|
/// <summary>
|
|
/// Property alias for Members Password Answer
|
|
/// </summary>
|
|
public const string PasswordAnswer = "umbracoMemberPasswordRetrievalAnswer";
|
|
|
|
public const string PasswordAnswerLabel = "Password Answer";
|
|
|
|
/// <summary>
|
|
/// Property alias for the Comments on a Member
|
|
/// </summary>
|
|
public const string Comments = "umbracoMemberComments";
|
|
|
|
public const string CommentsLabel = "Comments";
|
|
|
|
/// <summary>
|
|
/// Property alias for the Approved boolean of a Member
|
|
/// </summary>
|
|
public const string IsApproved = "umbracoMemberApproved";
|
|
|
|
public const string IsApprovedLabel = "Is Approved";
|
|
|
|
/// <summary>
|
|
/// Property alias for the Locked out boolean of a Member
|
|
/// </summary>
|
|
public const string IsLockedOut = "umbracoMemberLockedOut";
|
|
|
|
public const string IsLockedOutLabel = "Is Locked Out";
|
|
|
|
/// <summary>
|
|
/// Property alias for the last date the Member logged in
|
|
/// </summary>
|
|
public const string LastLoginDate = "umbracoMemberLastLogin";
|
|
|
|
public const string LastLoginDateLabel = "Last Login Date";
|
|
|
|
/// <summary>
|
|
/// Property alias for the last date a Member changed its password
|
|
/// </summary>
|
|
public const string LastPasswordChangeDate = "umbracoMemberLastPasswordChangeDate";
|
|
|
|
public const string LastPasswordChangeDateLabel = "Last Password Change Date";
|
|
|
|
/// <summary>
|
|
/// Property alias for the last date a Member was locked out
|
|
/// </summary>
|
|
public const string LastLockoutDate = "umbracoMemberLastLockoutDate";
|
|
|
|
public const string LastLockoutDateLabel = "Last Lockout Date";
|
|
|
|
/// <summary>
|
|
/// Property alias for the number of failed login attemps
|
|
/// </summary>
|
|
public const string FailedPasswordAttempts = "umbracoMemberFailedPasswordAttempts";
|
|
|
|
public const string FailedPasswordAttemptsLabel = "Failed Password Attempts";
|
|
|
|
/// <summary>
|
|
/// Group name to put the membership properties on
|
|
/// </summary>
|
|
internal const string StandardPropertiesGroupName = "Membership";
|
|
|
|
public static Dictionary<string, PropertyType> GetStandardPropertyTypeStubs()
|
|
{
|
|
return new Dictionary<string, PropertyType>
|
|
{
|
|
{
|
|
Comments,
|
|
new PropertyType(PropertyEditors.Aliases.TextArea, ValueStorageType.Ntext, true, Comments)
|
|
{
|
|
Name = CommentsLabel
|
|
}
|
|
},
|
|
{
|
|
FailedPasswordAttempts,
|
|
new PropertyType(PropertyEditors.Aliases.NoEdit, ValueStorageType.Integer, true, FailedPasswordAttempts)
|
|
{
|
|
Name = FailedPasswordAttemptsLabel
|
|
}
|
|
},
|
|
{
|
|
IsApproved,
|
|
new PropertyType(PropertyEditors.Aliases.Boolean, ValueStorageType.Integer, true, IsApproved)
|
|
{
|
|
Name = IsApprovedLabel
|
|
}
|
|
},
|
|
{
|
|
IsLockedOut,
|
|
new PropertyType(PropertyEditors.Aliases.Boolean, ValueStorageType.Integer, true, IsLockedOut)
|
|
{
|
|
Name = IsLockedOutLabel
|
|
}
|
|
},
|
|
{
|
|
LastLockoutDate,
|
|
new PropertyType(PropertyEditors.Aliases.NoEdit, ValueStorageType.Date, true, LastLockoutDate)
|
|
{
|
|
Name = LastLockoutDateLabel
|
|
}
|
|
},
|
|
{
|
|
LastLoginDate,
|
|
new PropertyType(PropertyEditors.Aliases.NoEdit, ValueStorageType.Date, true, LastLoginDate)
|
|
{
|
|
Name = LastLoginDateLabel
|
|
}
|
|
},
|
|
{
|
|
LastPasswordChangeDate,
|
|
new PropertyType(PropertyEditors.Aliases.NoEdit, ValueStorageType.Date, true, LastPasswordChangeDate)
|
|
{
|
|
Name = LastPasswordChangeDateLabel
|
|
}
|
|
},
|
|
{
|
|
PasswordAnswer,
|
|
new PropertyType(PropertyEditors.Aliases.NoEdit, ValueStorageType.Nvarchar, true, PasswordAnswer)
|
|
{
|
|
Name = PasswordAnswerLabel
|
|
}
|
|
},
|
|
{
|
|
PasswordQuestion,
|
|
new PropertyType(PropertyEditors.Aliases.NoEdit, ValueStorageType.Nvarchar, true, PasswordQuestion)
|
|
{
|
|
Name = PasswordQuestionLabel
|
|
}
|
|
}
|
|
};
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Defines the alias identifiers for Umbraco member types.
|
|
/// </summary>
|
|
public static class MemberTypes
|
|
{
|
|
/// <summary>
|
|
/// MemberType alias for default member type.
|
|
/// </summary>
|
|
public const string DefaultAlias = "Member";
|
|
|
|
public const string SystemDefaultProtectType = "_umbracoSystemDefaultProtectType";
|
|
|
|
public const string AllMembersListId = "all-members";
|
|
}
|
|
|
|
/// <summary>
|
|
/// Constants for Umbraco URLs/Querystrings.
|
|
/// </summary>
|
|
public static class Url
|
|
{
|
|
/// <summary>
|
|
/// Querystring parameter name used for Umbraco's alternative template functionality.
|
|
/// </summary>
|
|
public const string AltTemplate = "altTemplate";
|
|
}
|
|
|
|
/// <summary>
|
|
/// Defines the alias identifiers for built-in Umbraco relation types.
|
|
/// </summary>
|
|
public static class RelationTypes
|
|
{
|
|
/// <summary>
|
|
/// ContentType name for default relation type "Relate Document On Copy".
|
|
/// </summary>
|
|
public const string RelateDocumentOnCopyName = "Relate Document On Copy";
|
|
|
|
/// <summary>
|
|
/// ContentType alias for default relation type "Relate Document On Copy".
|
|
/// </summary>
|
|
public const string RelateDocumentOnCopyAlias = "relateDocumentOnCopy";
|
|
|
|
/// <summary>
|
|
/// ContentType name for default relation type "Relate Parent Document On Delete".
|
|
/// </summary>
|
|
public const string RelateParentDocumentOnDeleteName = "Relate Parent Document On Delete";
|
|
|
|
/// <summary>
|
|
/// ContentType alias for default relation type "Relate Parent Document On Delete".
|
|
/// </summary>
|
|
public const string RelateParentDocumentOnDeleteAlias = "relateParentDocumentOnDelete";
|
|
|
|
/// <summary>
|
|
/// ContentType name for default relation type "Relate Parent Media Folder On Delete".
|
|
/// </summary>
|
|
public const string RelateParentMediaFolderOnDeleteName = "Relate Parent Media Folder On Delete";
|
|
|
|
/// <summary>
|
|
/// ContentType alias for default relation type "Relate Parent Media Folder On Delete".
|
|
/// </summary>
|
|
public const string RelateParentMediaFolderOnDeleteAlias = "relateParentMediaFolderOnDelete";
|
|
}
|
|
}
|
|
}
|
|
}
|