コード例 #1
0
ファイル: PDP.java プロジェクト: ki1795/enterprise-java-xacml
 protected void loadConfigurations(ConfigElement config) throws XMLGeneralException {
   domain = (String) config.getAttributeValueByName(ATTR_DOMAINNAME);
   multiPoliciesCombineAlg = (URI) config.getAttributeValueByName(ATTR_MULTIPOLICYCOMBALG);
   supportMustBePresent = (Boolean) config.getAttributeValueByName(ATTR_MUSTBEPRESENT);
   // FIXME should we remove support inner expression option?
   supportInnerExpression = (Boolean) config.getAttributeValueByName(ATTR_INNEREXPRESSION);
   resolveReferencedPoliciesOnLoad = (Boolean) config.getAttributeValueByName(ATTR_RESOLVEPOLICY);
   dsConfig = (ConfigElement) config.getSingleXMLElementByType(ELEMTYPE_DATASTORE);
   ctxConfig = (ConfigElement) config.getSingleXMLElementByType(ELEMTYPE_CONTEXT_FACTORY);
   cacheConfig = (ConfigElement) config.getSingleXMLElementByName(ELEM_CACHE_MANAGER);
   policyResConfig = (ConfigElement) config.getSingleXMLElementByName(ELEM_POLICY_RESOLVER);
   attrRtrConfig = (ConfigElement) config.getSingleXMLElementByName(ELEM_ATTRIBUTE_FACTORY);
 }