1 package com.sslexplorer.policyframework; 2 3 import com.sslexplorer.properties.PropertyProfileResourceType; 4 import com.sslexplorer.security.AuthenticationSchemeResourceType; 5 6 11 public interface PolicyConstants { 12 13 17 public final static String EVERYONE_POLICY_NAME = "Everyone"; 18 19 23 public final static int PERM_CREATE_AND_ASSIGN_ID = 1; 24 25 29 public final static int PERM_EDIT_AND_ASSIGN_ID = 2; 30 31 35 public final static int PERM_ASSIGN_ID = 3; 36 37 40 public final static int PERM_EDIT_ID = 4; 41 42 45 public final static int PERM_CREATE_ID = 5; 46 47 50 public final static int PERM_DELETE_ID = 6; 51 52 55 public final static int PERM_COPY_ID = 7; 56 57 60 public final static int PERM_NEST_ID = 8; 61 62 66 public static final int PERM_CHANGE_ID = 9; 67 68 72 public static final int PERM_VIEW_ID = 10; 73 74 77 public static final int PERM_PERFORM_ID = 11; 78 79 82 public static final int PERM_UPDATE_ID = 12; 83 84 87 public static final int PERM_INSTALL_ID = 13; 88 89 93 public static final int PERM_MAINTAIN_ID = 14; 94 95 98 public static final int PERM_USE_ID = 15; 99 100 103 public static final int PERM_CONTROL_ID = 16; 104 105 108 public static final int PERM_SEND_ID = 17; 109 110 113 public static final int PERM_SHUTDOWN_ID = 18; 114 115 118 public static final int PERM_RESTART_ID = 19; 119 120 123 public static final int PERM_CLEAR_ID = 20; 124 125 129 public final static Permission PERM_CREATE_EDIT_AND_ASSIGN = new Permission(PERM_CREATE_AND_ASSIGN_ID, "policyframework"); 130 131 135 public final static Permission PERM_EDIT_AND_ASSIGN = new Permission(PERM_EDIT_AND_ASSIGN_ID, "policyframework"); 136 137 140 public final static Permission PERM_CREATE = new Permission(PERM_CREATE_ID, "policyframework"); 141 142 145 public final static Permission PERM_EDIT = new Permission(PERM_EDIT_ID, "policyframework"); 146 147 150 public final static Permission PERM_NEST = new Permission(PERM_NEST_ID, "policyframework"); 151 152 155 public final static Permission PERM_DELETE = new Permission(PERM_DELETE_ID, "policyframework"); 156 159 public final static Permission PERM_COPY = new Permission(PERM_COPY_ID, "policyframework"); 160 161 165 public final static Permission PERM_CHANGE = new Permission(PERM_CHANGE_ID, "policyframework"); 166 167 171 public final static Permission PERM_VIEW = new Permission(PERM_VIEW_ID, "policyframework"); 172 173 176 public final static Permission PERM_PERFORM = new Permission(PERM_PERFORM_ID, "policyframework"); 177 178 181 public final static Permission PERM_INSTALL = new Permission(PERM_INSTALL_ID, "policyframework"); 182 183 186 public final static Permission PERM_UPDATE = new Permission(PERM_UPDATE_ID, "policyframework"); 187 188 191 public static final Permission PERM_MAINTAIN = new Permission(PERM_MAINTAIN_ID, "policyframework"); 192 193 196 public static final Permission PERM_USE = new Permission(PERM_USE_ID, "policyframework"); 197 198 201 public static final Permission PERM_CONTROL = new Permission(PERM_CONTROL_ID, "policyframework"); 202 203 206 public static final Permission PERM_SEND = new Permission(PERM_SEND_ID, "policyframework"); 207 208 211 public static final Permission PERM_SHUTDOWN = new Permission(PERM_SHUTDOWN_ID, "policyframework"); 212 213 216 public static final Permission PERM_RESTART = new Permission(PERM_RESTART_ID, "policyframework"); 217 218 221 public static final Permission PERM_ASSIGN = new Permission(PERM_ASSIGN_ID, "policyframework"); 222 223 226 public static final Permission PERM_CLEAR = new Permission(PERM_CLEAR_ID, "policyframework"); 227 228 231 232 235 public final static String DELEGATION_CLASS = "delegation"; 236 237 240 public final static String SYSTEM_CLASS = "system"; 241 242 245 public final static String PERSONAL_CLASS = "personal"; 246 247 250 251 254 public final static int PROFILE_RESOURCE_TYPE_ID = 1; 255 256 259 public final static int POLICY_RESOURCE_TYPE_ID = 5; 260 261 264 public final static int ACCESS_RIGHTS_RESOURCE_TYPE_ID = 6; 265 266 269 public static final ResourceType PROFILE_RESOURCE_TYPE = new PropertyProfileResourceType(PROFILE_RESOURCE_TYPE_ID, 270 DELEGATION_CLASS); 271 272 275 public static final ResourceType POLICY_RESOURCE_TYPE = new PolicyResourceType(); 276 277 280 public static final ResourceType ACCESS_RIGHTS_RESOURCE_TYPE = new AccessRightsResourceType(); 281 282 284 285 288 public final static int SERVICE_CONTROL_RESOURCE_TYPE_ID = 1000; 290 293 public final static int SYSTEM_CONFIGURATION_RESOURCE_TYPE_ID = 1001; 295 298 public final static int KEYSTORE_RESOURCE_TYPE_ID = 1002; 300 303 public final static int AUTHENTICATION_SCHEMES_RESOURCE_TYPE_ID = 1003; 304 305 308 public final static int ACCOUNTS_AND_GROUPS_RESOURCE_TYPE_ID = 1004; 309 310 313 public final static int IP_RESTRICTIONS_RESOURCE_TYPE_ID = 1006; 314 315 318 public final static int EXTENSIONS_RESOURCE_TYPE_ID = 1007; 320 323 public final static int MESSAGE_QUEUE_RESOURCE_TYPE_ID = 1008; 324 325 328 public final static int STATUS_TYPE_RESOURCE_TYPE_ID = 1009; 329 330 333 public final static int REPLACEMENTS_RESOURCE_TYPE_ID = 1010; 334 335 338 public final static int ATTRIBUTE_DEFINITIONS_RESOURCE_TYPE_ID = 1011; 339 340 343 public final static int REALM_RESOURCE_TYPE_ID = 1012; 344 345 348 public final static ResourceType SERVICE_CONTROL_RESOURCE_TYPE = new DefaultResourceType(SERVICE_CONTROL_RESOURCE_TYPE_ID, 349 "policyframework", SYSTEM_CLASS); 350 351 354 public static final ResourceType SYSTEM_CONFIGURATION_RESOURCE_TYPE = new DefaultResourceType( 355 SYSTEM_CONFIGURATION_RESOURCE_TYPE_ID, "policyframework", SYSTEM_CLASS); 356 357 360 public static final ResourceType KEYSTORE_RESOURCE_TYPE = new DefaultResourceType(KEYSTORE_RESOURCE_TYPE_ID, "policyframework", 361 SYSTEM_CLASS); 362 363 366 public static final ResourceType AUTHENTICATION_SCHEMES_RESOURCE_TYPE = new AuthenticationSchemeResourceType(); 367 368 371 public static final ResourceType ACCOUNTS_AND_GROUPS_RESOURCE_TYPE = new DefaultResourceType(ACCOUNTS_AND_GROUPS_RESOURCE_TYPE_ID, "policyframework", 372 SYSTEM_CLASS); 373 374 377 public static final ResourceType IP_RESTRICTIONS_RESOURCE_TYPE = new DefaultResourceType(IP_RESTRICTIONS_RESOURCE_TYPE_ID, 378 "policyframework", SYSTEM_CLASS); 379 380 383 public static final ResourceType EXTENSIONS_RESOURCE_TYPE = new DefaultResourceType(EXTENSIONS_RESOURCE_TYPE_ID, 384 "policyframework", SYSTEM_CLASS); 385 386 389 public static final ResourceType MESSAGE_QUEUE_RESOURCE_TYPE = new DefaultResourceType(MESSAGE_QUEUE_RESOURCE_TYPE_ID, 390 "policyframework", SYSTEM_CLASS); 391 392 395 public static final ResourceType STATUS_TYPE_RESOURCE_TYPE = new DefaultResourceType(STATUS_TYPE_RESOURCE_TYPE_ID, 396 "policyframework", SYSTEM_CLASS); 397 398 401 public static final ResourceType REPLACEMENTS_RESOURCE_TYPE = new DefaultResourceType(REPLACEMENTS_RESOURCE_TYPE_ID, 402 "policyframework", SYSTEM_CLASS); 403 404 407 public static final ResourceType ATTRIBUTE_DEFINITIONS_RESOURCE_TYPE = new DefaultResourceType(ATTRIBUTE_DEFINITIONS_RESOURCE_TYPE_ID, 408 "policyframework", SYSTEM_CLASS); 409 410 413 public static final ResourceType REALMS_RESOURCE_TYPE = new DefaultResourceType(REALM_RESOURCE_TYPE_ID, 414 "realms", SYSTEM_CLASS); 415 416 419 public final static int PERSONAL_PROFILE_RESOURCE_TYPE_ID = 2001; 420 421 424 public final static int PASSWORD_RESOURCE_TYPE_ID = 2002; 425 426 429 public final static int PERSONAL_DETAILS_RESOURCE_TYPE_ID = 2003; 430 431 434 public final static int AGENT_RESOURCE_TYPE_ID = 2004; 435 436 439 public final static int FAVORITES_RESOURCE_TYPE_ID = 2005; 440 441 444 public final static int ATTRIBUTES_RESOURCE_TYPE_ID = 2006; 445 446 449 public final static int LANGUAGE_RESOURCE_TYPE_ID = 2007; 450 451 454 public static final ResourceType PERSONAL_PROFILE_RESOURCE_TYPE = new PropertyProfileResourceType( 455 PERSONAL_PROFILE_RESOURCE_TYPE_ID, PERSONAL_CLASS); 456 457 460 public static final ResourceType PASSWORD_RESOURCE_TYPE = new DefaultResourceType(PASSWORD_RESOURCE_TYPE_ID, "policyframework", 461 PERSONAL_CLASS); 462 463 466 public static final ResourceType PERSONAL_DETAILS_RESOURCE_TYPE = new DefaultResourceType(PERSONAL_DETAILS_RESOURCE_TYPE_ID, 467 "policyframework", PERSONAL_CLASS); 468 469 472 public static final ResourceType AGENT_RESOURCE_TYPE = new DefaultResourceType(AGENT_RESOURCE_TYPE_ID, 473 "policyframework", PERSONAL_CLASS); 474 475 478 public static final ResourceType FAVORITES_RESOURCE_TYPE = new DefaultResourceType(FAVORITES_RESOURCE_TYPE_ID, 479 "policyframework", PERSONAL_CLASS); 480 481 484 public static final ResourceType ATTRIBUTES_RESOURCE_TYPE = new DefaultResourceType(ATTRIBUTES_RESOURCE_TYPE_ID, 485 "policyframework", PERSONAL_CLASS); 486 487 490 public static final ResourceType LANGUAGE_RESOURCE_TYPE = new DefaultResourceType(LANGUAGE_RESOURCE_TYPE_ID, 491 "policyframework", PERSONAL_CLASS); 492 } 493 | Popular Tags |