| | |
| | | } |
| | | |
| | | /** Finds the appropriate DIT structure rule for an entry. */ |
| | | private DITStructureRule getDITStructureRule(Entry entry) |
| | | { |
| | | private DITStructureRule getDITStructureRule(Entry entry) { |
| | | ObjectClass oc = entry.getStructuralObjectClass(); |
| | | if (oc == null) { |
| | | return null; |
| | | } |
| | | List<NameForm> listForms = DirectoryServer.getNameForm(oc); |
| | | NameForm nameForm = null; |
| | | DITStructureRule ditRule = null; |
| | |
| | | @Override |
| | | public boolean hasValue(Entry entry, VirtualAttributeRule rule) |
| | | { |
| | | //A structural object class is always present in an entry. |
| | | return true; |
| | | return entry.getStructuralObjectClass() != null; |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |