PageRenderTime 12ms CodeModel.GetById 1ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

/Source/FIMPSConstants.cs

#
C# | 102 lines | 71 code | 28 blank | 3 comment | 0 complexity | c95e34ed30768d8e9cd707dcadc96845 MD5 | raw file
  1using System;
  2using System.Collections.Generic;
  3using System.Linq;
  4using System.Text;
  5
  6namespace Quest.FIMPowerShellSnapin
  7{
  8    public class Constants
  9    {
 10        public class Nouns
 11        {
 12            public const string FIMSession = "FIMSession";
 13            public const string FIMResource = "FIMResource";
 14        }
 15
 16        public const int DefaultResultSetSize = 1000; /*!!! this seems low, consider revising*/
 17        public const string AttributeSpecialValueAll = "ALL";
 18
 19        /// <summary>
 20        /// Message strings used by the Powershell cmdlet classes
 21        /// </summary>
 22        public class Messages
 23        {
 24            public const String Error_AttributeMissing =
 25                "The specified attribute \"{0}\" does not exist for this object.";
 26
 27            public const String Error_IllegalOpForSVA =
 28                "Operation is not supported for attribute \"{0}\" because it is single valued.";
 29
 30            public const String Error_IllegalOpForMVA =
 31                "Operation is not supported for attribute \"{0}\" because it is multivalued.";
 32
 33            public const String Error_FailedCast =
 34                "Unable to convert to type \"{0}\" the following value: \"{1}\".";
 35
 36            public const String InternalError_FailedCastFromServer =
 37                "Internal error. Unable to convert to type \"{0}\" the following value received from FIM server: \"{1}\".";
 38
 39            public const String Error_MultipleValuesForSvaFromServer =
 40                "Failed to understand FIM server response. Single valued attribute \"{0}\" seems to have multiple values.";
 41
 42            public const String Error_EmptyGetResponse =
 43                "Failed to get resources information from FIM server. The response is empty.";
 44
 45            public const String Error_GettingResourceAttributesFromIlmSchema =
 46                "Unable to determine attributes bound to Resource from the FIM schema.";
 47
 48            public const String Error_NoResultWhenPullingOneObject =
 49                "Unable to receive some resources. Their representation is too large.";
 50
 51            public const String Error_UnexpectedEndOfEnumeration =
 52                "The ILM server unexpectedly finished transferring requested objects. Not all objects are received.";
 53
 54            public const String InternalError_EnumContextInvalid =
 55                "Internal error. Enumeration context unexpectedly became invalid.";
 56
 57            public const String ErrorValNotFoundOnAttr =
 58                "One or more values are not present on {0}.";
 59
 60            public const String ErrorDictKeyNotString =
 61                "Unable to process hashtable parameter \"{0}\". Hashtable keys must be strings.";
 62
 63            public const String ErrorObtainingIlmSchema =
 64                "Unable to obtain FIM schema from the server.";
 65
 66            public const String ConfirmCaption = "Confirm";
 67
 68            public const String ConfirmNew =
 69                "Are you sure you want to create a new object{0}?";
 70
 71            public const String ConfirmRemove =
 72                "Are you sure you want to remove object{0}?";
 73
 74            public const String ConfirmSet =
 75                "Are you sure you want to modify object{0}?";
 76
 77            public const String VerboseNew =
 78                "Creating a new object{0}.";
 79
 80            public const String VerboseRemove =
 81                "Removing object{0}.";
 82
 83            public const String VerboseSet =
 84                "Modifying object{0}.";
 85
 86            public const String ObjectDetailsDisplayName =
 87                " \"{0}\"";
 88
 89            public const String ObjectDetailsID =
 90                " with ID {0}";
 91
 92            public const String ObjectDetailsDisplayNameAndID =
 93                " \"{0}\" (ID {1})";
 94
 95            public const String ErrorNoObjectId =
 96                "Specified FIMResource instance does not have an ObjectID value.";
 97
 98            public const String InternalError_UnknownParameterSet =
 99                "Internal error. Unexpected parameter set name.";
100        }
101    }
102}