public Collection<? extends ACLEntry> getEntries() { if (this.entriesMap == null) this.initEntriesMap(); return Collections.unmodifiableCollection(this.entries); }
public ACLEntry getEntry(String identityOrRole) { if (this.entriesMap == null) this.initEntriesMap(); return this.entriesMap.get(identityOrRole); }
public Collection<? extends ACLEntry> getEntries() { if (this.entriesMap == null) this.initEntriesMap(); return Collections.unmodifiableCollection(this.entries); }
public ACLEntry getEntry(String identityOrRole) { if (this.entriesMap == null) this.initEntriesMap(); return this.entriesMap.get(identityOrRole); }
public boolean removeEntry(ACLEntry entry) { if (this.entriesMap == null) this.initEntriesMap(); this.entriesMap.remove(entry.getIdentityOrRole()); return this.entries.remove(entry); }
public ACLEntry getEntry(Identity identity) { if (this.entriesMap == null) this.initEntriesMap(); return this.entriesMap.get(identity.getName()); }
public ACLEntry getEntry(Identity identity) { if (this.entriesMap == null) this.initEntriesMap(); return this.entriesMap.get(identity.getName()); }
public boolean removeEntry(ACLEntry entry) { if (this.entriesMap == null) this.initEntriesMap(); this.entriesMap.remove(entry.getIdentityOrRole()); return this.entries.remove(entry); }
public ACLImpl(String resourceString, Collection<ACLEntry> entries) { this.resourceAsString = resourceString; this.entries = new ArrayList<ACLEntryImpl>(); if (entries != null) { for (ACLEntry entry : entries) { ACLEntryImpl entryImpl = (ACLEntryImpl) entry; entryImpl.setAcl(this); this.entries.add(entryImpl); } } this.initEntriesMap(); }
public ACLImpl(String resourceString, Collection<ACLEntry> entries) { this.resourceAsString = resourceString; this.entries = new ArrayList<ACLEntryImpl>(); if (entries != null) { for (ACLEntry entry : entries) { ACLEntryImpl entryImpl = (ACLEntryImpl) entry; entryImpl.setAcl(this); this.entries.add(entryImpl); } } this.initEntriesMap(); }
public boolean isGranted(ACLPermission permission, Identity identity) { if (this.entriesMap == null) this.initEntriesMap(); // lookup the entry corresponding to the specified identity. ACLEntry entry = this.entriesMap.get(identity.getName()); if (entry != null) { // check the permission associated with the identity. return entry.checkPermission(permission); } return false; }
public boolean isGranted(ACLPermission permission, Identity identity) { if (this.entriesMap == null) this.initEntriesMap(); // lookup the entry corresponding to the specified identity. ACLEntry entry = this.entriesMap.get(identity.getName()); if (entry != null) { // check the permission associated with the identity. return entry.checkPermission(permission); } return false; }
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 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; }