*
* @return a reference to the constructed {@code ApplicationPolicy} object.
*/
public ApplicationPolicy getApplicationPolicy()
{
ApplicationPolicy policy = new ApplicationPolicy(this.name);
policy.setBaseApplicationPolicyName(this.parentPolicy);
if (this.authenticationPolicy != null)
policy.setAuthenticationInfo(this.authenticationPolicy.getPolicyInfo(this.name));
if (this.authorizationPolicy != null)
policy.setAuthorizationInfo(this.authorizationPolicy.getPolicyInfo(this.name));
if (this.aclPolicy != null)
policy.setAclInfo(this.aclPolicy.getPolicyInfo(this.name));
if (this.roleMappingPolicy != null)
{
Map<String,MappingInfo> infosByType = this.roleMappingPolicy.getMappingInfoByType(this.name);
for(String type : infosByType.keySet())
policy.setMappingInfo(type, infosByType.get(type));
}
if (this.mappingPolicy != null)
{
Map<String,MappingInfo> infosByType = this.mappingPolicy.getMappingInfoByType(this.name);
for(String type : infosByType.keySet())
policy.setMappingInfo(type, infosByType.get(type));
}
if (this.auditPolicy != null)
policy.setAuditInfo(this.auditPolicy.getPolicyInfo(this.name));
if (this.identityTrustPolicy != null)
policy.setIdentityTrustInfo(this.identityTrustPolicy.getPolicyInfo(this.name));
return policy;
}