1 19 20 package com.sslexplorer.policyframework; 21 22 import com.sslexplorer.core.CoreAttributeConstants; 23 import com.sslexplorer.core.CoreEvent; 24 import com.sslexplorer.core.CoreEventConstants; 25 import com.sslexplorer.security.SessionInfo; 26 27 33 public class ResourceDetachedFromPolicyEvent extends CoreEvent { 34 35 36 Resource resource; 37 Policy policy; 38 39 48 public ResourceDetachedFromPolicyEvent(Object source, Resource resource, Policy policy, 49 SessionInfo session, int state) { 50 super(source, CoreEventConstants.RESOURCE_DETACHED_FROM_POLICY, resource, session, state); 51 this.resource = resource; 52 this.policy = policy; 53 addAttribute(CoreAttributeConstants.EVENT_ATTR_RESOURCE_NAME, resource.getResourceName()); 54 addAttribute(CoreAttributeConstants.EVENT_ATTR_POLICY_NAME, policy.getResourceName()); 55 } 56 57 63 public Policy getPolicy() { 64 return policy; 65 } 66 67 72 public Resource getResource() { 73 return resource; 74 } 75 } 76 | Popular Tags |