PageRenderTime 83ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 0ms

/Source/FIMPSConstants.cs

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