/** * {@inheritDoc} */ @Override public long getCurrentRevision() throws LdapException { synchronized ( store ) { return store.getCurrentRevision(); } }
/** * {@inheritDoc} */ @Override public Tag tag( String description ) throws Exception { return tag( store.getCurrentRevision(), description ); }
/** * {@inheritDoc} */ @Override public Tag tag() throws Exception { return tag( store.getCurrentRevision(), null ); }
/** * {@inheritDoc} */ @Override public Tag tag( long revision, String description ) throws Exception { if ( revision < 0 ) { throw new IllegalArgumentException( I18n.err( I18n.ERR_239 ) ); } if ( revision > store.getCurrentRevision() ) { throw new IllegalArgumentException( I18n.err( I18n.ERR_240 ) ); } if ( store instanceof TaggableChangeLogStore ) { latest = ( ( TaggableChangeLogStore ) store ).tag( revision ); return latest; } latest = new Tag( revision, description ); return latest; }
if ( revision >= changeLog.getChangeLogStore().getCurrentRevision() )