/** * This returns the id of the exact version node (as opposed to the "main" node). * Note that each asset has only one UUID the whole time, but there are also UUIDs * for each item in the history. * So while the main UUID version remains constant, the version UUIDs change on each * checkin, which is what this method provides. */ public String getVersionSnapshotUUID() { try { if ( isHistoricalVersion() ) { return this.node.getIdentifier(); } else { throw new RulesRepositoryException( "This is the current version of the asset." ); } } catch ( RepositoryException e ) { throw new RulesRepositoryException(e); } }
/** * This returns the id of the exact version node (as opposed to the "main" node). * Note that each asset has only one UUID the whole time, but there are also UUIDs * for each item in the history. * So while the main UUID version remains constant, the version UUIDs change on each * checkin, which is what this method provides. */ public String getVersionSnapshotUUID() { try { if ( isHistoricalVersion() ) { return this.node.getIdentifier(); } else { throw new RulesRepositoryException( "This is the current version of the asset." ); } } catch ( RepositoryException e ) { throw new RulesRepositoryException(e); } }