| | |
| | | * Gets the name of the acl. |
| | | * @return the name of the acl as a String |
| | | */ |
| | | @Override |
| | | public String getName() { |
| | | return "OpenDS"; |
| | | } |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public boolean checkReadPermission(InetAddress address) { |
| | | if (this.allManagers) { |
| | | return true; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public boolean checkReadPermission(InetAddress address, String community) { |
| | | if ((this.checkReadPermission(address)) && |
| | | (this.checkCommunity(community))) { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public boolean checkCommunity(String community) { |
| | | return this.communities.equals(community); |
| | | } |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public boolean checkWritePermission(InetAddress address) { |
| | | // WRITE Access are always denied |
| | | return false; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public boolean checkWritePermission(InetAddress address, String community) { |
| | | // WRITE Access are always denied |
| | | return false; |
| | |
| | | * {@inheritDoc} |
| | | * @return the list of traps destinations |
| | | */ |
| | | @Override |
| | | public Enumeration getTrapDestinations() { |
| | | Vector<InetAddress> tempDests = new Vector<InetAddress>(); |
| | | for (String dest : this.trapsDestinations) { |
| | |
| | | * {@inheritDoc} |
| | | * @return the list of communities |
| | | */ |
| | | @Override |
| | | public Enumeration getTrapCommunities(InetAddress address) { |
| | | Vector<String> trapCommunities = new Vector<String>(); |
| | | trapCommunities.add(this.trapsCommunity); |
| | |
| | | * {@inheritDoc} |
| | | * @return an empty enumeration |
| | | */ |
| | | @Override |
| | | public Enumeration getInformDestinations() { |
| | | Vector<String> informDests = new Vector<String>(); |
| | | return informDests.elements(); |
| | |
| | | * {@inheritDoc} |
| | | * @return an empty enumeration |
| | | */ |
| | | @Override |
| | | public Enumeration getInformCommunities(InetAddress address) { |
| | | Vector<String> informCommunities = new Vector<String>(); |
| | | return informCommunities.elements(); |