Kerio.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <?php
  2. namespace ThurData\Servers\KerioEmail\App\Enums;
  3. /**
  4. *
  5. * Created by PhpStorm.
  6. * User: ThurData
  7. * Date: 09.09.19
  8. * Time: 14:10
  9. * Class Kerio
  10. */
  11. class Kerio
  12. {
  13. /**
  14. * attribute statuses
  15. */
  16. const ATTR_ENABLED = 'TRUE';
  17. const ATTR_DISABLED = 'FALSE';
  18. const ENABLED = 'enabled';
  19. const DISABLED = 'disabled';
  20. const ENABLED_AS_INT = 1;
  21. /**
  22. * connection ports
  23. */
  24. const SECURE_PORT = 7071;
  25. const PORT = 7072;
  26. /**
  27. *
  28. */
  29. const CLIENT_PORT = 8443;
  30. /**
  31. * Kerio statuses
  32. */
  33. const STATUS_ACCEPT = 'ACCEPT';
  34. const STATUS_APPROVAL = 'APPROVAL';
  35. const STATUS_REJECT = 'REJECT';
  36. const ACC_STATUS_ACTIVE = 'active';
  37. const ACC_STATUS_LOCKED = 'locked';
  38. const ACC_STATUS_MAINTENANCE = 'maintenance';
  39. const ACC_STATUS_CLOSED = 'closed';
  40. const ACC_STATUS_LOCKOUT = 'lockout';
  41. const ACC_STATUS_PENDING = 'pending';
  42. const ACC_STATUS_SUSPEND = 'suspended';
  43. const RES_TYPE_LOCATION = 'Location';
  44. const RES_TYPE_EQUIPMENT = 'Equipment';
  45. const DEFAULT_LOGIN_LINK = 'https://kerio-server';
  46. const BASE_ACCOUNT_CONFIG = [
  47. 'kerioFeatureMailEnabled',
  48. 'kerioFeatureCalendarEnabled',
  49. 'kerioFeatureBriefcasesEnabled',
  50. 'kerioFeatureContactsEnabled',
  51. 'kerioFeatureTasksEnabled',
  52. 'kerioFeatureOptionsEnabled',
  53. 'kerioFeatureTaggingEnabled',
  54. 'kerioFeatureChangePasswordEnabled',
  55. 'kerioFeatureManageZimlets',
  56. 'kerioFeatureGalEnabled',
  57. 'kerioFeatureWebClientOfflineAccessEnabled',
  58. 'kerioFeatureImportFolderEnabled',
  59. 'kerioDumpsterEnabled',
  60. 'kerioFeatureSharingEnabled',
  61. 'kerioFeatureSkinChangeEnabled',
  62. 'kerioFeatureHtmlComposeEnabled',
  63. 'kerioFeatureMAPIConnectorEnabled',
  64. 'kerioFeatureTouchClientEnabled',
  65. 'kerioFeatureGalAutoCompleteEnabled',
  66. 'kerioFeatureExportFolderEnabled',
  67. 'kerioDumpsterPurgeEnabled',
  68. 'kerioFeatureMailPriorityEnabled',
  69. 'kerioImapEnabled',
  70. 'kerioFeatureImapDataSourceEnabled',
  71. 'kerioFeatureMailSendLaterEnabled',
  72. 'kerioFeatureFiltersEnabled',
  73. 'kerioFeatureNewMailNotificationEnabled',
  74. 'kerioFeatureReadReceiptsEnabled',
  75. 'kerioFeatureFlaggingEnabled',
  76. 'kerioPop3Enabled',
  77. 'kerioFeaturePop3DataSourceEnabled',
  78. 'kerioFeatureConversationsEnabled',
  79. 'kerioFeatureOutOfOfficeReplyEnabled',
  80. 'kerioFeatureIdentitiesEnabled',
  81. 'kerioFeatureDistributionListFolderEnabled',
  82. 'kerioFeatureGroupCalendarEnabled',
  83. 'kerioFeatureCalendarReminderDeviceEmailEnabled',
  84. 'kerioFeatureAdvancedSearchEnabled',
  85. 'kerioFeatureInitialSearchPreferenceEnabled',
  86. 'kerioFeatureSavedSearchesEnabled',
  87. 'kerioFeaturePeopleSearchEnabled',
  88. 'kerioFeatureSMIMEEnabled',
  89. 'kerioFeatureEwsEnabled'
  90. ];
  91. }