| | |
| | | public ConditionResult hasSubordinates(DN entryDN) |
| | | throws DirectoryException |
| | | { |
| | | long ret = numSubordinates(entryDN); |
| | | long ret = numSubordinates(entryDN, false); |
| | | if(ret < 0) |
| | | { |
| | | return ConditionResult.UNDEFINED; |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | public long numSubordinates(DN entryDN) |
| | | public long numSubordinates(DN entryDN, boolean subtree) |
| | | throws DirectoryException |
| | | { |
| | | // If the requested entry was null, then return undefined. |
| | |
| | | // the number of monitor providers. |
| | | if (entryDN.equals(baseMonitorDN)) |
| | | { |
| | | // This backend is only 1 level deep so the count is the same for |
| | | // subtree and immediate subordinates. |
| | | return DirectoryServer.getMonitorProviders().size(); |
| | | } |
| | | |