Class SecurityValidator
java.lang.Object
org.eclipse.emf.ecore.util.EObjectValidator
org.eclipse.emf.cdo.security.util.SecurityValidator
- All Implemented Interfaces:
EValidator
The Validator for the model.
- Since:
- 4.3
- See Also:
- 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
Modifier and TypeFieldDescriptionprotected static final int
A constant with a fixed name that can be used as the base value for additional hand written constants in a derived class.static final String
static final SecurityValidator
The cached model packageFields 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected <T> T
getContextByClassKey
(Map<Object, Object> context, Class<T> key, T defaultValue) protected EPackage
Returns the package of this validator switch.Returns the resource locator that will be used to fetch messages for this validator's diagnostics.protected CDORevisionProvider
getRevisionProvider
(Realm realm, Map<Object, Object> context) protected CDOBranchPoint
getSecurityContext
(Realm realm, Map<Object, Object> context) protected boolean
CallsvalidateXXX
for the corresponding classifier of the model.boolean
validateAccess
(Access access, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateAccessObject
(Access accessObject, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateAndFilter
(AndFilter andFilter, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateAssignee
(Assignee assignee, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateClassFilter
(ClassFilter classFilter, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateClassPermission
(ClassPermission classPermission, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateCombinedFilter
(CombinedFilter combinedFilter, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateDirectory
(Directory directory, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateExpressionFilter
(ExpressionFilter expressionFilter, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateFilterPermission
(FilterPermission filterPermission, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateGroup
(Group group, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateGroup_AcyclicInheritance
(Group group, DiagnosticChain diagnostics, Map<Object, Object> context) Validates the AcyclicInheritance constraint of 'Group'.boolean
validateLinkedFilter
(LinkedFilter linkedFilter, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateNotFilter
(NotFilter notFilter, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateObjectFilter
(ObjectFilter objectFilter, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateObjectPermission
(ObjectPermission objectPermission, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateOrFilter
(OrFilter orFilter, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validatePackageFilter
(PackageFilter packageFilter, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validatePackagePermission
(PackagePermission packagePermission, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validatePatternStyle
(PatternStyle patternStyle, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validatePermission
(Permission permission, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validatePermissionFilter
(PermissionFilter permissionFilter, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateRealm
(Realm realm, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateRealm_HasAdministrator
(Realm realm, DiagnosticChain diagnostics, Map<Object, Object> context) Validates the HasAdministrator constraint of 'Realm'.boolean
validateResourceFilter
(ResourceFilter resourceFilter, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateResourcePermission
(ResourcePermission resourcePermission, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateRole
(Role role, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateSecurityElement
(SecurityElement securityElement, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateSecurityItem
(SecurityItem securityItem, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateUser
(User user, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateUserPassword
(UserPassword userPassword, DiagnosticChain diagnostics, Map<Object, Object> context) No user, not even the Administrator, is permitted to read the properties of aUserPassword
, so this validation is a no-op.boolean
validateUserPasswordGen
(UserPassword userPassword, DiagnosticChain diagnostics, Map<Object, 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
-
Field Details
-
INSTANCE
The cached model package- Generated
-
DIAGNOSTIC_SOURCE
- See Also:
- Generated
-
DIAGNOSTIC_CODE_COUNT
protected static final int DIAGNOSTIC_CODE_COUNTA constant with a fixed name that can be used as the base value for additional hand written constants in a derived class.- See Also:
- Generated
-
-
Constructor Details
-
SecurityValidator
public SecurityValidator()Creates an instance of the switch.- Generated
-
-
Method Details
-
getEPackage
Returns the package of this validator switch.- Overrides:
getEPackage
in classEObjectValidator
- Generated
-
validate
protected boolean validate(int classifierID, Object value, DiagnosticChain diagnostics, Map<Object, Object> context) CallsvalidateXXX
for the corresponding classifier of the model.- Overrides:
validate
in classEObjectValidator
- Generated
-
validateSecurityElement
public boolean validateSecurityElement(SecurityElement securityElement, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated
-
validateSecurityItem
public boolean validateSecurityItem(SecurityItem securityItem, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated
-
validateRealm
- Generated
-
validateRealm_HasAdministrator
public boolean validateRealm_HasAdministrator(Realm realm, DiagnosticChain diagnostics, Map<Object, Object> context) Validates the HasAdministrator constraint of 'Realm'.- Generated
- NOT
-
getContextByClassKey
-
getRevisionProvider
-
getSecurityContext
-
validateDirectory
public boolean validateDirectory(Directory directory, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated
-
validateRole
- Generated
-
validateAssignee
public boolean validateAssignee(Assignee assignee, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated
-
validateGroup
- Generated
-
validateGroup_AcyclicInheritance
public boolean validateGroup_AcyclicInheritance(Group group, DiagnosticChain diagnostics, Map<Object, Object> context) Validates the AcyclicInheritance constraint of 'Group'.- Generated
- NOT
-
validateUser
- Generated
-
validateUserPasswordGen
public boolean validateUserPasswordGen(UserPassword userPassword, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated
-
validateUserPassword
public boolean validateUserPassword(UserPassword userPassword, DiagnosticChain diagnostics, Map<Object, Object> context) No user, not even the Administrator, is permitted to read the properties of aUserPassword
, so this validation is a no-op. -
validatePermission
public boolean validatePermission(Permission permission, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated
-
validateClassPermission
public boolean validateClassPermission(ClassPermission classPermission, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated
-
validatePackagePermission
public boolean validatePackagePermission(PackagePermission packagePermission, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated
-
validateResourcePermission
public boolean validateResourcePermission(ResourcePermission resourcePermission, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated
-
validateObjectPermission
public boolean validateObjectPermission(ObjectPermission objectPermission, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated
-
validateFilterPermission
public boolean validateFilterPermission(FilterPermission filterPermission, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated
-
validatePermissionFilter
public boolean validatePermissionFilter(PermissionFilter permissionFilter, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated
-
validateLinkedFilter
public boolean validateLinkedFilter(LinkedFilter linkedFilter, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated
-
validatePackageFilter
public boolean validatePackageFilter(PackageFilter packageFilter, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated
-
validateClassFilter
public boolean validateClassFilter(ClassFilter classFilter, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated
-
validateResourceFilter
public boolean validateResourceFilter(ResourceFilter resourceFilter, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated
-
validateObjectFilter
public boolean validateObjectFilter(ObjectFilter objectFilter, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated
-
validateExpressionFilter
public boolean validateExpressionFilter(ExpressionFilter expressionFilter, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated
-
validateCombinedFilter
public boolean validateCombinedFilter(CombinedFilter combinedFilter, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated
-
validateNotFilter
public boolean validateNotFilter(NotFilter notFilter, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated
-
validateAndFilter
public boolean validateAndFilter(AndFilter andFilter, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated
-
validateOrFilter
public boolean validateOrFilter(OrFilter orFilter, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated
-
validatePatternStyle
public boolean validatePatternStyle(PatternStyle patternStyle, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated
-
validateAccess
public boolean validateAccess(Access access, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated
-
validateAccessObject
public boolean validateAccessObject(Access accessObject, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated
-
getResourceLocator
Returns the resource locator that will be used to fetch messages for this validator's diagnostics.- Overrides:
getResourceLocator
in classEObjectValidator
- Generated
- NOT
-