/** * {@inheritDoc} */ @Override public Tag getLatest() throws LdapException { if ( latest != null ) { return latest; } if ( store instanceof TaggableChangeLogStore ) { latest = ( ( TaggableChangeLogStore ) store ).getLatest(); return latest; } return 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; }