Log.severe("No obligation with id: " + XACMLConstants.CatalogModeObligationId);
Log.severe(XACMLUtil.asXMLString(requestCtx));
return useDefaultMode();
}
Attribute catalogModeAssignment = obligation.getAssignments().iterator().next();
if (catalogModeAssignment == null
|| CatalogModeMap.containsKey(((StringAttribute) catalogModeAssignment
.getValue()).getValue()) == false) {
Log.severe("No valid catalog mode ");
Log.severe(XACMLUtil.asXMLString(requestCtx));
return useDefaultMode();
}
String catalogModeKey = ((StringAttribute) catalogModeAssignment.getValue()).getValue();
mode = CatalogModeMap.get(catalogModeKey);
return mode;
}
}