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 ResourceAttachedToPolicyEvent extends CoreEvent { 34 35 Resource resource; 36 Policy policy; 37 38 47 public ResourceAttachedToPolicyEvent(Object source, Resource resource, Policy policy, 48 SessionInfo session, int state) { 49 super(source, CoreEventConstants.RESOURCE_ATTACHED_TO_POLICY, resource, session, state); 50 this.resource = resource; 51 this.policy = policy; 52 addAttribute(CoreAttributeConstants.EVENT_ATTR_RESOURCE_NAME, resource.getResourceName()); 53 addAttribute(CoreAttributeConstants.EVENT_ATTR_POLICY_NAME, policy.getResourceName()); 54 } 55 56 62 public Policy getPolicy() { 63 return policy; 64 } 65 66 71 public Resource getResource() { 72 return resource; 73 } 74 } 75 | Popular Tags |