throw new IllegalStateException("Policy Registration passed is null"); this.callerRunAs = ejbResource.getCallerRunAsIdentity(); this.ejbName = ejbResource.getEjbName(); this.ejbMethod = ejbResource.getEjbMethod();
this.ejbName = ejbResource.getEjbName(); this.methodInterface = ejbResource.getEjbMethodInterface(); RunAs runAs = ejbResource.getCallerRunAsIdentity(); if (runAs instanceof RunAsIdentity) this.callerRunAs = RunAsIdentity.class.cast(runAs);
this.roleRefCheck = (Boolean)map.get(ResourceKeys.ROLEREF_PERM_CHECK); this.callerRunAs = ejbResource.getCallerRunAsIdentity(); this.ejbMethod = ejbResource.getEjbMethod(); this.ejbName = ejbResource.getEjbName();
this.roleRefCheck = (Boolean)map.get(ResourceKeys.ROLEREF_PERM_CHECK); this.callerRunAs = ejbResource.getCallerRunAsIdentity(); this.ejbMethod = ejbResource.getEjbMethod(); this.ejbName = ejbResource.getEjbName();
throw PicketBoxMessages.MESSAGES.invalidNullProperty(ResourceKeys.POLICY_REGISTRATION); this.callerRunAs = ejbResource.getCallerRunAsIdentity(); this.ejbName = ejbResource.getEjbName(); this.ejbMethod = ejbResource.getEjbMethod();
/** * Validate that the EJBResource has all the parameters to make a decision * @param ejbResource */ private void validateEJBResource( EJBResource ejbResource ) throws MissingArgumentsException { if( ejbResource.getEjbName() == null ) throw PicketBoxMessages.MESSAGES.invalidNullArgument("ejbName"); if( ejbResource.getEjbMethod() == null ) throw PicketBoxMessages.MESSAGES.invalidNullArgument("ejbMethod"); if( ejbResource.getCodeSource() == null ) throw PicketBoxMessages.MESSAGES.invalidNullArgument("ejbCodeSource"); if( ejbResource.getPolicyContextID() == null ) throw PicketBoxMessages.MESSAGES.invalidNullArgument("contextID"); if( ejbResource.getCallerSubject() == null && ejbResource.getCallerRunAsIdentity() == null) throw new MissingArgumentsException(PicketBoxMessages.MESSAGES.missingCallerInfoMessage()); }