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:
    EValidator

      public class SecurityValidator
      extends 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

      `EObjectValidator.DynamicEClassValidator, EObjectValidator.DynamicEDataTypeValidator`

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

      `EValidator.Descriptor, EValidator.PatternMatcher, EValidator.Registry, EValidator.SubstitutionLabelProvider, EValidator.ValidationDelegate`

  - ### Field Summary

    Fields
    Modifier and Type | Field and 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 and Description
    `SecurityValidator()` Creates an instance of the switch.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected <T> T` | `getContextByClassKey(java.util.Map<java.lang.Object,java.lang.Object> context, java.lang.Class<T> key, T defaultValue)`
    `protected EPackage` | `getEPackage()` Returns the package of this validator switch.
    `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, 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, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)`
    `boolean` | `validateAccessObject(Access accessObject, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)`
    `boolean` | `validateAndFilter(AndFilter andFilter, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)`
    `boolean` | `validateAssignee(Assignee assignee, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)`
    `boolean` | `validateClassFilter(ClassFilter classFilter, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)`
    `boolean` | `validateClassPermission(ClassPermission classPermission, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)`
    `boolean` | `validateCombinedFilter(CombinedFilter combinedFilter, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)`
    `boolean` | `validateDirectory(Directory directory, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)`
    `boolean` | `validateExpressionFilter(ExpressionFilter expressionFilter, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)`
    `boolean` | `validateFilterPermission(FilterPermission filterPermission, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)`
    `boolean` | `validateGroup_AcyclicInheritance(Group group, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)` Validates the AcyclicInheritance constraint of 'Group'.
    `boolean` | `validateGroup(Group group, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)`
    `boolean` | `validateLinkedFilter(LinkedFilter linkedFilter, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)`
    `boolean` | `validateNotFilter(NotFilter notFilter, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)`
    `boolean` | `validateObjectFilter(ObjectFilter objectFilter, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)`
    `boolean` | `validateObjectPermission(ObjectPermission objectPermission, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)`
    `boolean` | `validateOrFilter(OrFilter orFilter, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)`
    `boolean` | `validatePackageFilter(PackageFilter packageFilter, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)`
    `boolean` | `validatePackagePermission(PackagePermission packagePermission, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)`
    `boolean` | `validatePatternStyle(PatternStyle patternStyle, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)`
    `boolean` | `validatePermission(Permission permission, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)`
    `boolean` | `validatePermissionFilter(PermissionFilter permissionFilter, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)`
    `boolean` | `validateRealm_HasAdministrator(Realm realm, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)` Validates the HasAdministrator constraint of 'Realm'.
    `boolean` | `validateRealm(Realm realm, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)`
    `boolean` | `validateResourceFilter(ResourceFilter resourceFilter, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)`
    `boolean` | `validateResourcePermission(ResourcePermission resourcePermission, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)`
    `boolean` | `validateRole(Role role, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)`
    `boolean` | `validateSecurityElement(SecurityElement securityElement, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)`
    `boolean` | `validateSecurityItem(SecurityItem securityItem, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)`
    `boolean` | `validateUser(User user, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)`
    `boolean` | `validateUserPassword(UserPassword userPassword, 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, 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_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, validate, validate, validate, validate, validate, validate, 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 EPackage getEPackage()

      Returns the package of this validator switch.
      Overrides:
        `getEPackage` in class `EObjectValidator`
      Generated

    - #### validate

          protected boolean validate(int classifierID,
                                     java.lang.Object value,
                                     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 `EObjectValidator`
      Generated

    - #### validateSecurityElement

          public boolean validateSecurityElement(SecurityElement securityElement,
                                                 DiagnosticChain diagnostics,
                                                 java.util.Map<java.lang.Object,java.lang.Object> context)

      Generated

    - #### validateSecurityItem

          public boolean validateSecurityItem(SecurityItem securityItem,
                                              DiagnosticChain diagnostics,
                                              java.util.Map<java.lang.Object,java.lang.Object> context)

      Generated

    - #### validateRealm

          public boolean validateRealm(Realm realm,
                                       DiagnosticChain diagnostics,
                                       java.util.Map<java.lang.Object,java.lang.Object> context)

      Generated

    - #### validateRealm_HasAdministrator

          public boolean validateRealm_HasAdministrator(Realm realm,
                                                        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,
                                           DiagnosticChain diagnostics,
                                           java.util.Map<java.lang.Object,java.lang.Object> context)

      Generated

    - #### validateRole

          public boolean validateRole(Role role,
                                      DiagnosticChain diagnostics,
                                      java.util.Map<java.lang.Object,java.lang.Object> context)

      Generated

    - #### validateAssignee

          public boolean validateAssignee(Assignee assignee,
                                          DiagnosticChain diagnostics,
                                          java.util.Map<java.lang.Object,java.lang.Object> context)

      Generated

    - #### validateGroup

          public boolean validateGroup(Group group,
                                       DiagnosticChain diagnostics,
                                       java.util.Map<java.lang.Object,java.lang.Object> context)

      Generated

    - #### validateGroup_AcyclicInheritance

          public boolean validateGroup_AcyclicInheritance(Group group,
                                                          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,
                                      DiagnosticChain diagnostics,
                                      java.util.Map<java.lang.Object,java.lang.Object> context)

      Generated

    - #### validateUserPasswordGen

          public boolean validateUserPasswordGen(UserPassword userPassword,
                                                 DiagnosticChain diagnostics,
                                                 java.util.Map<java.lang.Object,java.lang.Object> context)

      Generated

    - #### validateUserPassword

          public boolean validateUserPassword(UserPassword userPassword,
                                              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,
                                            DiagnosticChain diagnostics,
                                            java.util.Map<java.lang.Object,java.lang.Object> context)

      Generated

    - #### validateClassPermission

          public boolean validateClassPermission(ClassPermission classPermission,
                                                 DiagnosticChain diagnostics,
                                                 java.util.Map<java.lang.Object,java.lang.Object> context)

      Generated

    - #### validatePackagePermission

          public boolean validatePackagePermission(PackagePermission packagePermission,
                                                   DiagnosticChain diagnostics,
                                                   java.util.Map<java.lang.Object,java.lang.Object> context)

      Generated

    - #### validateResourcePermission

          public boolean validateResourcePermission(ResourcePermission resourcePermission,
                                                    DiagnosticChain diagnostics,
                                                    java.util.Map<java.lang.Object,java.lang.Object> context)

      Generated

    - #### validateObjectPermission

          public boolean validateObjectPermission(ObjectPermission objectPermission,
                                                  DiagnosticChain diagnostics,
                                                  java.util.Map<java.lang.Object,java.lang.Object> context)

      Generated

    - #### validateFilterPermission

          public boolean validateFilterPermission(FilterPermission filterPermission,
                                                  DiagnosticChain diagnostics,
                                                  java.util.Map<java.lang.Object,java.lang.Object> context)

      Generated

    - #### validatePermissionFilter

          public boolean validatePermissionFilter(PermissionFilter permissionFilter,
                                                  DiagnosticChain diagnostics,
                                                  java.util.Map<java.lang.Object,java.lang.Object> context)

      Generated

    - #### validateLinkedFilter

          public boolean validateLinkedFilter(LinkedFilter linkedFilter,
                                              DiagnosticChain diagnostics,
                                              java.util.Map<java.lang.Object,java.lang.Object> context)

      Generated

    - #### validatePackageFilter

          public boolean validatePackageFilter(PackageFilter packageFilter,
                                               DiagnosticChain diagnostics,
                                               java.util.Map<java.lang.Object,java.lang.Object> context)

      Generated

    - #### validateClassFilter

          public boolean validateClassFilter(ClassFilter classFilter,
                                             DiagnosticChain diagnostics,
                                             java.util.Map<java.lang.Object,java.lang.Object> context)

      Generated

    - #### validateResourceFilter

          public boolean validateResourceFilter(ResourceFilter resourceFilter,
                                                DiagnosticChain diagnostics,
                                                java.util.Map<java.lang.Object,java.lang.Object> context)

      Generated

    - #### validateObjectFilter

          public boolean validateObjectFilter(ObjectFilter objectFilter,
                                              DiagnosticChain diagnostics,
                                              java.util.Map<java.lang.Object,java.lang.Object> context)

      Generated

    - #### validateExpressionFilter

          public boolean validateExpressionFilter(ExpressionFilter expressionFilter,
                                                  DiagnosticChain diagnostics,
                                                  java.util.Map<java.lang.Object,java.lang.Object> context)

      Generated

    - #### validateCombinedFilter

          public boolean validateCombinedFilter(CombinedFilter combinedFilter,
                                                DiagnosticChain diagnostics,
                                                java.util.Map<java.lang.Object,java.lang.Object> context)

      Generated

    - #### validateNotFilter

          public boolean validateNotFilter(NotFilter notFilter,
                                           DiagnosticChain diagnostics,
                                           java.util.Map<java.lang.Object,java.lang.Object> context)

      Generated

    - #### validateAndFilter

          public boolean validateAndFilter(AndFilter andFilter,
                                           DiagnosticChain diagnostics,
                                           java.util.Map<java.lang.Object,java.lang.Object> context)

      Generated

    - #### validateOrFilter

          public boolean validateOrFilter(OrFilter orFilter,
                                          DiagnosticChain diagnostics,
                                          java.util.Map<java.lang.Object,java.lang.Object> context)

      Generated

    - #### validatePatternStyle

          public boolean validatePatternStyle(PatternStyle patternStyle,
                                              DiagnosticChain diagnostics,
                                              java.util.Map<java.lang.Object,java.lang.Object> context)

      Generated

    - #### validateAccess

          public boolean validateAccess(Access access,
                                        DiagnosticChain diagnostics,
                                        java.util.Map<java.lang.Object,java.lang.Object> context)

      Generated

    - #### validateAccessObject

          public boolean validateAccessObject(Access accessObject,
                                              DiagnosticChain diagnostics,
                                              java.util.Map<java.lang.Object,java.lang.Object> context)

      Generated

    - #### getResourceLocator

          public ResourceLocator getResourceLocator()

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

Copyright (c) 2004-2019 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html