Tabnine Logo
ACLImpl.getResourceAsString
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.jboss.security/jbosssx-bare

public void deRegisterPolicy(String contextID, String type)
{
 if (PolicyRegistration.XACML.equalsIgnoreCase(type))
 {
   this.contextIdToXACMLPolicy.remove(contextID);
   if (trace)
    log.trace("DeRegistered policy for contextId:" + contextID + ":type=" + type);
 }
 else if (PolicyRegistration.ACL.equalsIgnoreCase(type))
 {
   Set<ACL> acls = this.contextIDToACLs.remove(contextID);
   if (acls != null)
   {
    for (ACL acl : acls)
    {
      ACLImpl impl = (ACLImpl) acl;
      this.configuredACLs.remove(impl.getResourceAsString());
    }
   }
   if (trace)
    log.trace("Deregistered ACLs for contextId:" + contextID);
 }
}
origin: org.picketbox/picketbox-acl-impl

@SuppressWarnings("unchecked")
public Collection<ACL> getACLs()
{
 Collection<ACL> acls = null;
 EntityManager entityManager = this.managerFactory.createEntityManager();
 try
 {
   acls = entityManager.createQuery("SELECT a FROM ACLImpl a").getResultList();
   if (acls != null && this.resourceFactory != null)
   {
    for (ACL acl : acls)
    {
      ACLImpl impl = (ACLImpl) acl;
      String[] resourceName = impl.getResourceAsString().split(":");
      impl.setResource(this.resourceFactory.instantiateResource(resourceName[0], resourceName[1]));
    }
   }
 }
 finally
 {
   entityManager.close();
 }
 return acls;
}
origin: org.picketbox/picketbox

@SuppressWarnings("unchecked")
public Collection<ACL> getACLs()
{
 Collection<ACL> acls = null;
 EntityManager entityManager = this.managerFactory.createEntityManager();
 try
 {
   acls = entityManager.createQuery("SELECT a FROM ACLImpl a").getResultList();
   if (acls != null && this.resourceFactory != null)
   {
    for (ACL acl : acls)
    {
      ACLImpl impl = (ACLImpl) acl;
      String[] resourceName = impl.getResourceAsString().split(":");
      impl.setResource(this.resourceFactory.instantiateResource(resourceName[0], resourceName[1]));
    }
   }
 }
 finally
 {
   entityManager.close();
 }
 return acls;
}
origin: org.jboss.security/jbosssx-bare

  log.trace("Registering ACL for resource " + impl.getResourceAsString());
this.configuredACLs.put(impl.getResourceAsString(), acl);
org.jboss.security.aclACLImplgetResourceAsString

Javadoc

Obtains the stringfied representation of the resource associated with this ACL.

Popular methods of ACLImpl

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

Popular in Java

  • Reactive rest calls using spring rest template
  • addToBackStack (FragmentTransaction)
  • scheduleAtFixedRate (Timer)
  • setContentView (Activity)
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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