/** * <p> * Initializes the entries map of this {@code ACL} instance. * </p> */ private void initEntriesMap() { this.entriesMap = new HashMap<String, ACLEntry>(); for (ACLEntry entry : this.entries) this.entriesMap.put(entry.getIdentityOrRole(), entry); }
/** * <p> * Initializes the entries map of this {@code ACL} instance. * </p> */ private void initEntriesMap() { this.entriesMap = new HashMap<String, ACLEntry>(); for (ACLEntry entry : this.entries) this.entriesMap.put(entry.getIdentityOrRole(), entry); }
public boolean removeEntry(ACLEntry entry) { if (this.entriesMap == null) this.initEntriesMap(); this.entriesMap.remove(entry.getIdentityOrRole()); return this.entries.remove(entry); }
public boolean addEntry(ACLEntry entry) { if (this.entriesMap == null) this.initEntriesMap(); // don't add a null entry or an entry that already existSELECT * FROM ACL_ENTRYs. if (entry == null || this.entriesMap.get(entry.getIdentityOrRole()) != null) return false; this.entries.add((ACLEntryImpl) entry); ((ACLEntryImpl) entry).setAcl(this); this.entriesMap.put(entry.getIdentityOrRole(), entry); return true; }
public boolean removeEntry(ACLEntry entry) { if (this.entriesMap == null) this.initEntriesMap(); this.entriesMap.remove(entry.getIdentityOrRole()); return this.entries.remove(entry); }
public boolean addEntry(ACLEntry entry) { if (this.entriesMap == null) this.initEntriesMap(); // don't add a null entry or an entry that already existSELECT * FROM ACL_ENTRYs. if (entry == null || this.entriesMap.get(entry.getIdentityOrRole()) != null) return false; this.entries.add((ACLEntryImpl) entry); ((ACLEntryImpl) entry).setAcl(this); this.entriesMap.put(entry.getIdentityOrRole(), entry); return true; }