public Map<String,Set<String>> evaluate(Subject adminSubject,String realm,Subject subject,String resourceName,Map<String,Set<String>> environment) throws EntitlementException {
  SubjectAttributesManager sac=SubjectAttributesManager.getInstance(adminSubject,realm);
  Set<String> names=new HashSet<String>();
  if ((propertyValues == null) || propertyValues.isEmpty()) {
    names.add(propertyName);
  }
 else {
    names.addAll(propertyValues);
  }
  Map<String,Set<String>> values=sac.getUserAttributes(subject,names);
  Set<String> tmp=new HashSet<String>();
  if ((values != null) && !values.isEmpty()) {
    for (    String k : values.keySet()) {
      tmp.addAll(values.get(k));
    }
  }
  Map<String,Set<String>> results=new HashMap<String,Set<String>>();
  results.put(propertyName,tmp);
  return results;
}

public Map < String , Set < String > > evaluate ( Subject adminSubject , String realm , Subject subject , String resourceName , Map < String , Set < String > > environment ) throws EntitlementException { SubjectAttributesManager sac = SubjectAttributesManager . getInstance ( adminSubject , realm ) ; Set < String > names = new HashSet < String > ( ) ; if ( ( propertyValues == null ) || propertyValues . isEmpty ( ) ) { names . add ( propertyName ) ; } else { names . addAll ( propertyValues ) ; } Map < String , Set < String > > values = sac . getUserAttributes ( subject , names ) ; Set < String > tmp = new HashSet < String > ( ) ; if ( ( values != null ) && ! values . isEmpty ( ) ) { for ( String k : values . keySet ( ) ) { tmp . addAll ( values . get ( k ) ) ; } } Map < String , Set < String > > results = new HashMap < String , Set < String > > ( ) ; results . put ( propertyName , tmp ) ; return results ; }
returns resoruce attributes aplicable to the request
