Lines Matching defs:resource
122 * usertokenidstr (key) ---> resource names (value)
123 * resource name (key) ---> arraylist of two elements (value)
126 * resource.
509 String resource = null;
529 resource = getResourceName(permission);
530 pd = getResultFromCache(tokenIdStr, resource, envParams);
538 pd = pe.getPolicyDecision(token, resource,
541 putResultIntoCache(tokenIdStr, resource,
575 " resource=" + resource +
583 * Returns a policy decision given a resource and the user's token,
584 * for the resource from the delegation cache.
586 * @param resource resource for which results are sought.
591 private PolicyDecision getResultFromCache(String tokenIdStr, String resource, Map envParams)
593 if (resource != null) {
596 List<Object> al = items.get(resource);
630 * @param resource resource for which results are being put in cache.
636 private void putResultIntoCache(String tokenIdStr, String resource, Map envParams, PolicyDecision pd)
638 if (resource != null) {
648 items.put(resource, al);
891 String resource = null;
898 // now try to get resource and action names
903 resource = rule.getResourceName();
905 // parse the resource to get information
907 if (resource.startsWith(PREFIX)) {
909 resource.substring(PREFIX.length());
959 * gets a resource string based on a delegation permission object
960 * @param perm <code>DelegationPermission</code> from which resource
962 * @return resource name