/** * Check if a syntax is used by an AT or a MR */ private List<SchemaObject> checkInUse( String oid ) { List<SchemaObject> dependees = new ArrayList<>(); for ( AttributeType attributeType : schemaManager.getAttributeTypeRegistry() ) { if ( oid.equals( attributeType.getSyntax().getOid() ) ) { dependees.add( attributeType ); } } for ( MatchingRule matchingRule : schemaManager.getMatchingRuleRegistry() ) { if ( oid.equals( matchingRule.getSyntax().getOid() ) ) { dependees.add( matchingRule ); } } return dependees; }
/** * Delete the MR references (using and usedBy) : * MR -> C * MR -> N * MR -> S * * @param matchingRule The MatchinRule refere ce to delete */ public void delCrossReferences( MatchingRule matchingRule ) { if ( matchingRule.getLdapComparator() != null ) { delReference( matchingRule, matchingRule.getLdapComparator() ); } if ( matchingRule.getNormalizer() != null ) { delReference( matchingRule, matchingRule.getNormalizer() ); } if ( matchingRule.getSyntax() != null ) { delReference( matchingRule, matchingRule.getSyntax() ); } }
/** * Delete the MR references (using and usedBy) : * MR -> C * MR -> N * MR -> S * * @param matchingRule The MatchinRule refere ce to delete */ public void delCrossReferences( MatchingRule matchingRule ) { if ( matchingRule.getLdapComparator() != null ) { delReference( matchingRule, matchingRule.getLdapComparator() ); } if ( matchingRule.getNormalizer() != null ) { delReference( matchingRule, matchingRule.getNormalizer() ); } if ( matchingRule.getSyntax() != null ) { delReference( matchingRule, matchingRule.getSyntax() ); } }
/** * Delete the MR references (using and usedBy) : * MR -> C * MR -> N * MR -> S * * @param matchingRule The MatchinRule refere ce to delete */ public void delCrossReferences( MatchingRule matchingRule ) { if ( matchingRule.getLdapComparator() != null ) { delReference( matchingRule, matchingRule.getLdapComparator() ); } if ( matchingRule.getNormalizer() != null ) { delReference( matchingRule, matchingRule.getNormalizer() ); } if ( matchingRule.getSyntax() != null ) { delReference( matchingRule, matchingRule.getSyntax() ); } }
if ( attributeType.getEquality().getSyntax().isHumanReadable() )
if ( attributeType.getEquality().getSyntax().isHumanReadable() )
if ( attributeType.getEquality().getSyntax().isHumanReadable() )
comp.setSchemaManager( schemaManager ); if ( mr.getSyntax().isHumanReadable() )