Package org.guvnor.structure.repositories.impl

Examples of org.guvnor.structure.repositories.impl.PortableVersionRecord


                    .withDescription( dcoreView.readAttributes().descriptions().size() > 0 ? dcoreView.readAttributes().descriptions().get( 0 ) : null )
                    .withCategories( otherMetaView.readAttributes().categories() )
                    .withDiscussion( discussView.readAttributes().discussion() )
                    .withVersion( new ArrayList<VersionRecord>( versionAttributeView.readAttributes().history().records().size() ) {{
                        for ( final VersionRecord record : versionAttributeView.readAttributes().history().records() ) {
                            add( new PortableVersionRecord( record.id(), record.author(), record.email(), record.comment(), record.date(), record.uri() ) );
                        }
                    }} )
                    .build();

        } catch ( Exception e ) {
View Full Code Here


                                                                                VersionAttributeView.class ).readAttributes().history().records();

            final List<VersionRecord> result = new ArrayList<VersionRecord>( records.size() );

            for ( final VersionRecord record : records ) {
                result.add( new PortableVersionRecord( record.id(), record.author(), record.email(), record.comment(),
                                                       record.date(), record.uri() ) );
            }

            return result;
View Full Code Here

        Collections.reverse( records );

        List<VersionRecord> result = new ArrayList<VersionRecord>( endIndex - startIndex );
        for ( VersionRecord record : records.subList( startIndex, endIndex ) ) {
            result.add( new PortableVersionRecord( record.id(), record.author(), record.email(), record.comment(), record.date(), record.uri() ) );
        }

        return result;
    }
View Full Code Here

        Collections.reverse( records );

        List<VersionRecord> result = new ArrayList<VersionRecord>( endIndex - startIndex );
        for ( VersionRecord record : records.subList( startIndex, endIndex ) ) {
            result.add( new PortableVersionRecord( record.id(), record.author(), record.email(), record.comment(), record.date(), record.uri() ) );
        }

        return result;
    }
View Full Code Here

                                                                                VersionAttributeView.class ).readAttributes().history().records();

            final List<VersionRecord> result = new ArrayList<VersionRecord>( records.size() );

            for ( final VersionRecord record : records ) {
                result.add( new PortableVersionRecord( record.id(), record.author(), record.email(), record.comment(),
                                                       record.date(), record.uri() ) );
            }

            return result;
View Full Code Here

        Collections.reverse( records );

        return new RepositoryInfo( alias, ouName, repo.getRoot(), repo.getPublicURIs(), new ArrayList<VersionRecord>( HISTORY_PAGE_SIZE ) {{
            int size = 0;
            for ( final VersionRecord record : records ) {
                add( new PortableVersionRecord( record.id(), record.author(), record.email(), record.comment(), record.date(), record.uri() ) );
                size++;
                if ( size > HISTORY_PAGE_SIZE ) {
                    break;
                }
            }
View Full Code Here

        final List<VersionRecord> result = new ArrayList<VersionRecord>( HISTORY_PAGE_SIZE );

        int size = 0;

        for ( final VersionRecord record : records.subList( startIndex, records.size() > startIndex + HISTORY_PAGE_SIZE ? startIndex + HISTORY_PAGE_SIZE : records.size() ) ) {
            result.add( new PortableVersionRecord( record.id(), record.author(), record.email(), record.comment(), record.date(), record.uri() ) );
            size++;
            if ( size > HISTORY_PAGE_SIZE ) {
                break;
            }
        }
View Full Code Here

TOP

Related Classes of org.guvnor.structure.repositories.impl.PortableVersionRecord

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.