Package org.eclipse.emf.cdo.security.util

## Class SecurityValidator

- java.lang.Object
- - org.eclipse.emf.ecore.util.EObjectValidator
  - - org.eclipse.emf.cdo.security.util.SecurityValidator

- All Implemented Interfaces:
    `org.eclipse.emf.ecore.EValidator`

      public class SecurityValidator
      extends org.eclipse.emf.ecore.util.EObjectValidator

  The Validator for the model.
  Since:
    4.3
  See Also:
    `SecurityPackage`
  Generated

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from class org.eclipse.emf.ecore.util.EObjectValidator

      `org.eclipse.emf.ecore.util.EObjectValidator.DynamicEClassValidator, org.eclipse.emf.ecore.util.EObjectValidator.DynamicEDataTypeValidator`

    - ### Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.EValidator

      `org.eclipse.emf.ecore.EValidator.Descriptor, org.eclipse.emf.ecore.EValidator.PatternMatcher, org.eclipse.emf.ecore.EValidator.Registry, org.eclipse.emf.ecore.EValidator.SubstitutionLabelProvider, org.eclipse.emf.ecore.EValidator.ValidationDelegate`

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `protected static int` | `DIAGNOSTIC_CODE_COUNT` | A constant with a fixed name that can be used as the base value for additional hand written constants in a derived class.
    `static java.lang.String` | `DIAGNOSTIC_SOURCE` | A constant for the `source` of diagnostic `codes` from this package.
    `static SecurityValidator` | `INSTANCE` | The cached model package

    - ### Fields inherited from class org.eclipse.emf.ecore.util.EObjectValidator

      `DATA_VALUE__FRACTION_DIGITS_IN_RANGE, DATA_VALUE__LENGTH_IN_RANGE, DATA_VALUE__MATCHES_PATTERN, DATA_VALUE__TOTAL_DIGITS_IN_RANGE, DATA_VALUE__TYPE_CORRECT, DATA_VALUE__VALUE_IN_ENUMERATION, DATA_VALUE__VALUE_IN_RANGE, EOBJECT__EVERY_BIDIRECTIONAL_REFERENCE_IS_PAIRED, EOBJECT__EVERY_DATA_VALUE_CONFORMS, EOBJECT__EVERY_KEY_UNIQUE, EOBJECT__EVERY_MAP_ENTRY_UNIQUE, EOBJECT__EVERY_MULTIPCITY_CONFORMS, EOBJECT__EVERY_PROXY_RESOLVES, EOBJECT__EVERY_REFERENCE_IS_CONTAINED, EOBJECT__NO_CIRCULAR_CONTAINMENT, EOBJECT__UNIQUE_ID, ROOT_OBJECT`

    - ### Fields inherited from interface org.eclipse.emf.ecore.EValidator

      `MARKER, RELATED_URIS_ATTRIBUTE, URI_ATTRIBUTE`

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `SecurityValidator()` | Creates an instance of the switch.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `protected <T> T` | `getContextByClassKey​(java.util.Map<java.lang.Object,​java.lang.Object> context, java.lang.Class<T> key, T defaultValue)` |
    `protected org.eclipse.emf.ecore.EPackage` | `getEPackage()` | Returns the package of this validator switch.
    `org.eclipse.emf.common.util.ResourceLocator` | `getResourceLocator()` | Returns the resource locator that will be used to fetch messages for this validator's diagnostics.
    `protected CDORevisionProvider` | `getRevisionProvider​(Realm realm, java.util.Map<java.lang.Object,​java.lang.Object> context)` |
    `protected CDOBranchPoint` | `getSecurityContext​(Realm realm, java.util.Map<java.lang.Object,​java.lang.Object> context)` |
    `protected boolean` | `validate​(int classifierID, java.lang.Object value, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)` | Calls `validateXXX` for the corresponding classifier of the model.
    `boolean` | `validateAccess​(Access access, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)`
    `boolean` | `validateAccessObject​(Access accessObject, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)`
    `boolean` | `validateAndFilter​(AndFilter andFilter, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)`
    `boolean` | `validateAssignee​(Assignee assignee, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)`
    `boolean` | `validateClassFilter​(ClassFilter classFilter, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)`
    `boolean` | `validateClassPermission​(ClassPermission classPermission, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)`
    `boolean` | `validateCombinedFilter​(CombinedFilter combinedFilter, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)`
    `boolean` | `validateDirectory​(Directory directory, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)`
    `boolean` | `validateExpressionFilter​(ExpressionFilter expressionFilter, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)`
    `boolean` | `validateFilterPermission​(FilterPermission filterPermission, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)`
    `boolean` | `validateGroup​(Group group, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)`
    `boolean` | `validateGroup_AcyclicInheritance​(Group group, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)` | Validates the AcyclicInheritance constraint of 'Group'.
    `boolean` | `validateLinkedFilter​(LinkedFilter linkedFilter, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)`
    `boolean` | `validateNotFilter​(NotFilter notFilter, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)`
    `boolean` | `validateObjectFilter​(ObjectFilter objectFilter, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)`
    `boolean` | `validateObjectPermission​(ObjectPermission objectPermission, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)`
    `boolean` | `validateOrFilter​(OrFilter orFilter, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)`
    `boolean` | `validatePackageFilter​(PackageFilter packageFilter, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)`
    `boolean` | `validatePackagePermission​(PackagePermission packagePermission, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)`
    `boolean` | `validatePatternStyle​(PatternStyle patternStyle, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)`
    `boolean` | `validatePermission​(Permission permission, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)`
    `boolean` | `validatePermissionFilter​(PermissionFilter permissionFilter, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)`
    `boolean` | `validateRealm​(Realm realm, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)`
    `boolean` | `validateRealm_HasAdministrator​(Realm realm, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)` | Validates the HasAdministrator constraint of 'Realm'.
    `boolean` | `validateResourceFilter​(ResourceFilter resourceFilter, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)`
    `boolean` | `validateResourcePermission​(ResourcePermission resourcePermission, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)`
    `boolean` | `validateRole​(Role role, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)`
    `boolean` | `validateSecurityElement​(SecurityElement securityElement, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)`
    `boolean` | `validateSecurityItem​(SecurityItem securityItem, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)`
    `boolean` | `validateUser​(User user, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)`
    `boolean` | `validateUserPassword​(UserPassword userPassword, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)` | No user, not even the Administrator, is permitted to read the properties of a `UserPassword`, so this validation is a no-op.
    `boolean` | `validateUserPasswordGen​(UserPassword userPassword, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)`

    - ### Methods inherited from class org.eclipse.emf.ecore.util.EObjectValidator

      `createBadDataValueDiagnostic, createDiagnostic, getAvailableChoices, getEcoreResourceLocator, getEcoreString, getFeatureLabel, getObjectLabel, getRootEValidator, getString, getValidationDelegateRegistry, getValueLabel, isEcoreString, reportConstraintDelegateException, reportConstraintDelegateException, reportConstraintDelegateNotFound, reportConstraintDelegateNotFound, reportConstraintDelegateViolation, reportConstraintDelegateViolation, reportDataValuePatternViolation, reportDataValueTypeViolation, reportEnumerationViolation, reportFractionDigitsViolation, reportInvariantDelegateException, reportInvariantDelegateNotFound, reportInvariantDelegateViolation, reportMaxLengthViolation, reportMaxViolation, reportMinLengthViolation, reportMinViolation, reportTotalDigitsViolation, validate, validate, validate, validate, validate, validate, validate_BidirectionalReferenceIsPaired, validate_DataValueConforms, validate_EveryBidirectionalReferenceIsPaired, validate_EveryDataValueConforms, validate_EveryDefaultConstraint, validate_EveryKeyUnique, validate_EveryMapEntryUnique, validate_EveryMultiplicityConforms, validate_EveryProxyResolves, validate_EveryReferenceIsContained, validate_KeyUnique, validate_MapEntryUnique, validate_MultiplicityConforms, validate_NoCircularContainment, validate_UniqueID, validatePattern, wrapEnumerationValues`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### INSTANCE

          public static final SecurityValidator INSTANCE

      The cached model package
      Generated

    - #### DIAGNOSTIC_SOURCE

          public static final java.lang.String DIAGNOSTIC_SOURCE

      A constant for the `source` of diagnostic `codes` from this package.
      See Also:
        `Diagnostic.getSource()`, `Diagnostic.getCode()`, Constant Field Values
      Generated

    - #### DIAGNOSTIC_CODE_COUNT

          protected static final int DIAGNOSTIC_CODE_COUNT

      A constant with a fixed name that can be used as the base value for additional hand written constants in a derived class.
      See Also:
        Constant Field Values
      Generated

  - ### Constructor Detail

    - #### SecurityValidator

          public SecurityValidator()

      Creates an instance of the switch.
      Generated

  - ### Method Detail

    - #### getEPackage

          protected org.eclipse.emf.ecore.EPackage getEPackage()

      Returns the package of this validator switch.
      Overrides:
        `getEPackage` in class `org.eclipse.emf.ecore.util.EObjectValidator`
      Generated

    - #### validate

          protected boolean validate​(int classifierID,
                                     java.lang.Object value,
                                     org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                     java.util.Map<java.lang.Object,​java.lang.Object> context)

      Calls `validateXXX` for the corresponding classifier of the model.
      Overrides:
        `validate` in class `org.eclipse.emf.ecore.util.EObjectValidator`
      Generated

    - #### validateSecurityElement

          public boolean validateSecurityElement​(SecurityElement securityElement,
                                                 org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                                 java.util.Map<java.lang.Object,​java.lang.Object> context)

      Generated

    - #### validateSecurityItem

          public boolean validateSecurityItem​(SecurityItem securityItem,
                                              org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                              java.util.Map<java.lang.Object,​java.lang.Object> context)

      Generated

    - #### validateRealm

          public boolean validateRealm​(Realm realm,
                                       org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                       java.util.Map<java.lang.Object,​java.lang.Object> context)

      Generated

    - #### validateRealm_HasAdministrator

          public boolean validateRealm_HasAdministrator​(Realm realm,
                                                        org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                                        java.util.Map<java.lang.Object,​java.lang.Object> context)

      Validates the HasAdministrator constraint of 'Realm'.
      Generated
        NOT

    - #### getContextByClassKey

          protected <T> T getContextByClassKey​(java.util.Map<java.lang.Object,​java.lang.Object> context,
                                               java.lang.Class<T> key,
                                               T defaultValue)

    - #### getRevisionProvider

          protected CDORevisionProvider getRevisionProvider​(Realm realm,
                                                            java.util.Map<java.lang.Object,​java.lang.Object> context)

    - #### getSecurityContext

          protected CDOBranchPoint getSecurityContext​(Realm realm,
                                                      java.util.Map<java.lang.Object,​java.lang.Object> context)

    - #### validateDirectory

          public boolean validateDirectory​(Directory directory,
                                           org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                           java.util.Map<java.lang.Object,​java.lang.Object> context)

      Generated

    - #### validateRole

          public boolean validateRole​(Role role,
                                      org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                      java.util.Map<java.lang.Object,​java.lang.Object> context)

      Generated

    - #### validateAssignee

          public boolean validateAssignee​(Assignee assignee,
                                          org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                          java.util.Map<java.lang.Object,​java.lang.Object> context)

      Generated

    - #### validateGroup

          public boolean validateGroup​(Group group,
                                       org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                       java.util.Map<java.lang.Object,​java.lang.Object> context)

      Generated

    - #### validateGroup_AcyclicInheritance

          public boolean validateGroup_AcyclicInheritance​(Group group,
                                                          org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                                          java.util.Map<java.lang.Object,​java.lang.Object> context)

      Validates the AcyclicInheritance constraint of 'Group'.
      Generated
        NOT

    - #### validateUser

          public boolean validateUser​(User user,
                                      org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                      java.util.Map<java.lang.Object,​java.lang.Object> context)

      Generated

    - #### validateUserPasswordGen

          public boolean validateUserPasswordGen​(UserPassword userPassword,
                                                 org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                                 java.util.Map<java.lang.Object,​java.lang.Object> context)

      Generated

    - #### validateUserPassword

          public boolean validateUserPassword​(UserPassword userPassword,
                                              org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                              java.util.Map<java.lang.Object,​java.lang.Object> context)

      No user, not even the Administrator, is permitted to read the properties of a `UserPassword`, so this validation is a no-op.

    - #### validatePermission

          public boolean validatePermission​(Permission permission,
                                            org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                            java.util.Map<java.lang.Object,​java.lang.Object> context)

      Generated

    - #### validateClassPermission

          public boolean validateClassPermission​(ClassPermission classPermission,
                                                 org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                                 java.util.Map<java.lang.Object,​java.lang.Object> context)

      Generated

    - #### validatePackagePermission

          public boolean validatePackagePermission​(PackagePermission packagePermission,
                                                   org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                                   java.util.Map<java.lang.Object,​java.lang.Object> context)

      Generated

    - #### validateResourcePermission

          public boolean validateResourcePermission​(ResourcePermission resourcePermission,
                                                    org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                                    java.util.Map<java.lang.Object,​java.lang.Object> context)

      Generated

    - #### validateObjectPermission

          public boolean validateObjectPermission​(ObjectPermission objectPermission,
                                                  org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                                  java.util.Map<java.lang.Object,​java.lang.Object> context)

      Generated

    - #### validateFilterPermission

          public boolean validateFilterPermission​(FilterPermission filterPermission,
                                                  org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                                  java.util.Map<java.lang.Object,​java.lang.Object> context)

      Generated

    - #### validatePermissionFilter

          public boolean validatePermissionFilter​(PermissionFilter permissionFilter,
                                                  org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                                  java.util.Map<java.lang.Object,​java.lang.Object> context)

      Generated

    - #### validateLinkedFilter

          public boolean validateLinkedFilter​(LinkedFilter linkedFilter,
                                              org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                              java.util.Map<java.lang.Object,​java.lang.Object> context)

      Generated

    - #### validatePackageFilter

          public boolean validatePackageFilter​(PackageFilter packageFilter,
                                               org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                               java.util.Map<java.lang.Object,​java.lang.Object> context)

      Generated

    - #### validateClassFilter

          public boolean validateClassFilter​(ClassFilter classFilter,
                                             org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                             java.util.Map<java.lang.Object,​java.lang.Object> context)

      Generated

    - #### validateResourceFilter

          public boolean validateResourceFilter​(ResourceFilter resourceFilter,
                                                org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                                java.util.Map<java.lang.Object,​java.lang.Object> context)

      Generated

    - #### validateObjectFilter

          public boolean validateObjectFilter​(ObjectFilter objectFilter,
                                              org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                              java.util.Map<java.lang.Object,​java.lang.Object> context)

      Generated

    - #### validateExpressionFilter

          public boolean validateExpressionFilter​(ExpressionFilter expressionFilter,
                                                  org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                                  java.util.Map<java.lang.Object,​java.lang.Object> context)

      Generated

    - #### validateCombinedFilter

          public boolean validateCombinedFilter​(CombinedFilter combinedFilter,
                                                org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                                java.util.Map<java.lang.Object,​java.lang.Object> context)

      Generated

    - #### validateNotFilter

          public boolean validateNotFilter​(NotFilter notFilter,
                                           org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                           java.util.Map<java.lang.Object,​java.lang.Object> context)

      Generated

    - #### validateAndFilter

          public boolean validateAndFilter​(AndFilter andFilter,
                                           org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                           java.util.Map<java.lang.Object,​java.lang.Object> context)

      Generated

    - #### validateOrFilter

          public boolean validateOrFilter​(OrFilter orFilter,
                                          org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                          java.util.Map<java.lang.Object,​java.lang.Object> context)

      Generated

    - #### validatePatternStyle

          public boolean validatePatternStyle​(PatternStyle patternStyle,
                                              org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                              java.util.Map<java.lang.Object,​java.lang.Object> context)

      Generated

    - #### validateAccess

          public boolean validateAccess​(Access access,
                                        org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                        java.util.Map<java.lang.Object,​java.lang.Object> context)

      Generated

    - #### validateAccessObject

          public boolean validateAccessObject​(Access accessObject,
                                              org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                              java.util.Map<java.lang.Object,​java.lang.Object> context)

      Generated

    - #### getResourceLocator

          public org.eclipse.emf.common.util.ResourceLocator getResourceLocator()

      Returns the resource locator that will be used to fetch messages for this validator's diagnostics.
      Overrides:
        `getResourceLocator` in class `org.eclipse.emf.ecore.util.EObjectValidator`
      Generated
        NOT