diff --git a/src/Umbraco.Core/Constants-Applications.cs b/src/Umbraco.Core/Constants-Applications.cs new file mode 100644 index 0000000000..dec9d2fb16 --- /dev/null +++ b/src/Umbraco.Core/Constants-Applications.cs @@ -0,0 +1,46 @@ +namespace Umbraco.Core +{ + public static partial class Constants + { + /// + /// Defines the alias identifiers for Umbraco's core application sections. + /// + public static class Applications + { + /// + /// Application alias for the content section. + /// + public const string Content = "content"; + + /// + /// Application alias for the developer section. + /// + public const string Developer = "developer"; + + /// + /// Application alias for the media section. + /// + public const string Media = "media"; + + /// + /// Application alias for the members section. + /// + public const string Members = "member"; + + /// + /// Application alias for the settings section. + /// + public const string Settings = "settings"; + + /// + /// Application alias for the translation section. + /// + public const string Translation = "translation"; + + /// + /// Application alias for the users section. + /// + public const string Users = "users"; + } + } +} \ No newline at end of file diff --git a/src/Umbraco.Core/Constants-Conventions.cs b/src/Umbraco.Core/Constants-Conventions.cs index 82e991b44a..2d32cda9fc 100644 --- a/src/Umbraco.Core/Constants-Conventions.cs +++ b/src/Umbraco.Core/Constants-Conventions.cs @@ -69,6 +69,27 @@ public const string Extension = "umbracoExtension"; } + /// + /// Defines the alias identifiers for Umbraco media types. + /// + public static class MediaTypes + { + /// + /// MediaType alias for a file. + /// + public const string File = "File"; + + /// + /// MediaType alias for a folder. + /// + public const string Folder = "Folder"; + + /// + /// MediaType alias for an image. + /// + public const string Image = "Image"; + } + /// /// Constants for Umbraco URLs/Querystrings. /// diff --git a/src/Umbraco.Core/Constants-ObjectTypes.cs b/src/Umbraco.Core/Constants-ObjectTypes.cs index 65f6507ed8..e11ba8d7ad 100644 --- a/src/Umbraco.Core/Constants-ObjectTypes.cs +++ b/src/Umbraco.Core/Constants-ObjectTypes.cs @@ -17,6 +17,11 @@ /// public const string ContentItemType = "7A333C54-6F43-40A4-86A2-18688DC7E532"; + /// + /// Guid for the Content Recycle Bin. + /// + public const string ContentRecycleBin = "01BB7FF2-24DC-4C0C-95A2-C24EF72BBAC8"; + /// /// Guid for a DataType object. /// @@ -37,6 +42,11 @@ /// public const string Media = "B796F64C-1F99-4FFB-B886-4BF4BC011A9C"; + /// + /// Guid for the Media Recycle Bin. + /// + public const string MediaRecycleBin = "CF3D8E34-1C1C-41e9-AE56-878B57B32113"; + /// /// Guid for a Media Type object. /// @@ -57,11 +67,6 @@ /// public const string MemberType = "9B5416FB-E72F-45A9-A07B-5A9A2709CE43"; - /// - /// Guid for the Recycle Bin. - /// - public const string RecycleBin = "01BB7FF2-24DC-4C0C-95A2-C24EF72BBAC8"; - /// /// Guid for a Stylesheet object. /// diff --git a/src/Umbraco.Core/Constants-System.cs b/src/Umbraco.Core/Constants-System.cs new file mode 100644 index 0000000000..db759e578e --- /dev/null +++ b/src/Umbraco.Core/Constants-System.cs @@ -0,0 +1,26 @@ +namespace Umbraco.Core +{ + public static partial class Constants + { + /// + /// Defines the identifiers for Umbraco system nodes. + /// + public static class System + { + /// + /// The integer identifier for global system root node. + /// + public const int Root = -1; + + /// + /// The integer identifier for content's recycle bin. + /// + public const int RecycleBinContent = -20; + + /// + /// The integer identifier for media's recycle bin. + /// + public const int RecycleBinMedia = -21; + } + } +} \ No newline at end of file diff --git a/src/Umbraco.Core/Constants.cs b/src/Umbraco.Core/Constants.cs index a54fb4164c..d7ef971d4c 100644 --- a/src/Umbraco.Core/Constants.cs +++ b/src/Umbraco.Core/Constants.cs @@ -1,5 +1,8 @@ namespace Umbraco.Core { + /// + /// Constants all the identifiers within the Umbraco core. + /// public static partial class Constants { // generic constants can go here diff --git a/src/Umbraco.Core/Umbraco.Core.csproj b/src/Umbraco.Core/Umbraco.Core.csproj index c4051b4c3e..edc730c879 100644 --- a/src/Umbraco.Core/Umbraco.Core.csproj +++ b/src/Umbraco.Core/Umbraco.Core.csproj @@ -741,13 +741,19 @@ + + Constants.cs + + + Constants.cs + Constants.cs Constants.cs - + Constants.cs