congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
ACLImpl.initEntriesMap
Code IndexAdd Tabnine to your IDE (free)

How to use
initEntriesMap
method
in
org.jboss.security.acl.ACLImpl

Best Java code snippets using org.jboss.security.acl.ACLImpl.initEntriesMap (Showing top 14 results out of 315)

origin: org.picketbox/picketbox-acl-impl

public Collection<? extends ACLEntry> getEntries()
{
 if (this.entriesMap == null)
   this.initEntriesMap();
 return Collections.unmodifiableCollection(this.entries);
}
origin: org.picketbox/picketbox

public ACLEntry getEntry(String identityOrRole)
{
 if (this.entriesMap == null)
   this.initEntriesMap();
 return this.entriesMap.get(identityOrRole);
}
origin: org.picketbox/picketbox

public Collection<? extends ACLEntry> getEntries()
{
 if (this.entriesMap == null)
   this.initEntriesMap();
 return Collections.unmodifiableCollection(this.entries);
}
origin: org.picketbox/picketbox-acl-impl

public ACLEntry getEntry(String identityOrRole)
{
 if (this.entriesMap == null)
   this.initEntriesMap();
 return this.entriesMap.get(identityOrRole);
}
origin: org.picketbox/picketbox

public boolean removeEntry(ACLEntry entry)
{
 if (this.entriesMap == null)
   this.initEntriesMap();
 this.entriesMap.remove(entry.getIdentityOrRole());
 return this.entries.remove(entry);
}
origin: org.picketbox/picketbox

public ACLEntry getEntry(Identity identity)
{
 if (this.entriesMap == null)
   this.initEntriesMap();
 return this.entriesMap.get(identity.getName());
}
origin: org.picketbox/picketbox-acl-impl

public ACLEntry getEntry(Identity identity)
{
 if (this.entriesMap == null)
   this.initEntriesMap();
 return this.entriesMap.get(identity.getName());
}
origin: org.picketbox/picketbox-acl-impl

public boolean removeEntry(ACLEntry entry)
{
 if (this.entriesMap == null)
   this.initEntriesMap();
 this.entriesMap.remove(entry.getIdentityOrRole());
 return this.entries.remove(entry);
}
origin: org.picketbox/picketbox

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();
}
origin: org.picketbox/picketbox-acl-impl

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();
}
origin: org.picketbox/picketbox

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;
}
origin: org.picketbox/picketbox-acl-impl

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;
}
origin: org.picketbox/picketbox

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;
}
origin: org.picketbox/picketbox-acl-impl

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;
}
org.jboss.security.aclACLImplinitEntriesMap

Javadoc

Initializes the entries map of this ACL instance.

Popular methods of ACLImpl

  • <init>
    Builds an instance of ACLImpl for the specified resource, and initialize it with the specified entr
  • getResourceAsString
    Obtains the stringfied representation of the resource associated with this ACL.
  • getACLId
    Obtains the persistent id of this ACLImpl.
  • setResource
    Sets the resource associated with this ACL.

Popular in Java

  • Parsing JSON documents to java classes using gson
  • requestLocationUpdates (LocationManager)
  • setRequestProperty (URLConnection)
  • findViewById (Activity)
  • Menu (java.awt)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now