/** * Constructor that accepts the <code>Realm</code>s to consult during an authorization check. Immediately calls * {@link #setRealms setRealms(realms)}. * * @param realms the realms to consult during an authorization check. */ public ModularRealmAuthorizer(Collection<Realm> realms) { setRealms(realms); }
/** * First calls <code>super.afterRealmsSet()</code> and then sets these same <code>Realm</code> objects on this * instance's wrapped {@link Authorizer Authorizer}. * <p/> * The setting of realms the Authorizer will only occur if it is an instance of * {@link org.apache.shiro.authz.ModularRealmAuthorizer ModularRealmAuthorizer}, that is: * <pre> * if ( this.authorizer instanceof ModularRealmAuthorizer ) { * ((ModularRealmAuthorizer)this.authorizer).setRealms(realms); * }</pre> */ protected void afterRealmsSet() { super.afterRealmsSet(); if (this.authorizer instanceof ModularRealmAuthorizer) { ((ModularRealmAuthorizer) this.authorizer).setRealms(getRealms()); } }
/** * Constructor that accepts the <code>Realm</code>s to consult during an authorization check. Immediately calls * {@link #setRealms setRealms(realms)}. * * @param realms the realms to consult during an authorization check. */ public ModularRealmAuthorizer(Collection<Realm> realms) { setRealms(realms); }
/** * First calls <code>super.afterRealmsSet()</code> and then sets these same <code>Realm</code> objects on this * instance's wrapped {@link Authorizer Authorizer}. * <p/> * The setting of realms the Authorizer will only occur if it is an instance of * {@link org.apache.shiro.authz.ModularRealmAuthorizer ModularRealmAuthorizer}, that is: * <pre> * if ( this.authorizer instanceof ModularRealmAuthorizer ) { * ((ModularRealmAuthorizer)this.authorizer).setRealms(realms); * }</pre> */ protected void afterRealmsSet() { super.afterRealmsSet(); if (this.authorizer instanceof ModularRealmAuthorizer) { ((ModularRealmAuthorizer) this.authorizer).setRealms(getRealms()); } }
/** * Constructor that accepts the <code>Realm</code>s to consult during an authorization check. Immediately calls * {@link #setRealms setRealms(realms)}. * * @param realms the realms to consult during an authorization check. */ public ModularRealmAuthorizer(Collection<Realm> realms) { setRealms(realms); }
/** * First calls <code>super.afterRealmsSet()</code> and then sets these same <code>Realm</code> objects on this * instance's wrapped {@link Authorizer Authorizer}. * <p/> * The setting of realms the Authorizer will only occur if it is an instance of * {@link org.apache.shiro.authz.ModularRealmAuthorizer ModularRealmAuthorizer}, that is: * <pre> * if ( this.authorizer instanceof ModularRealmAuthorizer ) { * ((ModularRealmAuthorizer)this.authorizer).setRealms(realms); * }</pre> */ protected void afterRealmsSet() { super.afterRealmsSet(); if (this.authorizer instanceof ModularRealmAuthorizer) { ((ModularRealmAuthorizer) this.authorizer).setRealms(getRealms()); } }