/** * Creates a new instance of AbstractOperationContext. * * @param session The session to use * @param dn The associated Dn */ public AbstractOperationContext( CoreSession session, Dn dn ) { this.dn = dn; this.session = session; // The flag is set to ignore, so that the revert operation can act on // the entries, even if they are referrals. ignoreReferral(); }
/** * Set the ignoreRefferal flag for the current operationContext. * * @param opContext The current operationContext * @param ignoreReferral The flag */ private void setReferralHandling( AbstractOperationContext opContext, boolean ignoreReferral ) { if ( ignoreReferral ) { opContext.ignoreReferral(); } else { opContext.throwReferral(); } }