if (policyRuleName != null)
{
// check if policy exists in cache
if (_policyCache.policyExists(policyRuleName))
{
SPLPolicy policyObject = _policyCache.getPolicy(policyRuleName);
List importStmtList = policyObject.getImportStmtList();
logger.exiting(sourceClass, Thread.currentThread().getName()
+ " " + "getPolicyInfo");
PolicyInfo pi = new PolicyInfoImpl(importStmtList);
return pi;
}
else if (_policyRepository.policyExists(policyRuleName))
{
String PolicyString = _policyRepository.getPolicyString(policyRuleName);
SPLPolicy internalPolicyObject = _policyParser.createInternalPolicyObject(policyRuleName, PolicyString);
_policyCache.insertPolicy(policyRuleName, internalPolicyObject);
List importStmtList = internalPolicyObject.getImportStmtList();
PolicyInfo pi = new PolicyInfoImpl(importStmtList);
logger.exiting(sourceClass, Thread.currentThread().getName()
+ " " + "getPolicyInfo");