Package org.guvnor.common.services.shared.metadata.model

Examples of org.guvnor.common.services.shared.metadata.model.DiscussionRecord


            for ( final String attribute : attributes ) {
                checkNotEmpty( "attribute", attribute );

                if ( attribute.equals( "*" ) || attribute.equals( DiscussionView.DISCUSS ) ) {
                    for ( int i = 0; i < attrs.discussion().size(); i++ ) {
                        final DiscussionRecord record = attrs.discussion().get( i );
                        put( buildAttrName( DiscussionView.TIMESTAMP, i ), record.getTimestamp() );
                        put( buildAttrName( DiscussionView.AUTHOR, i ), record.getAuthor() );
                        put( buildAttrName( DiscussionView.NOTE, i ), record.getNote() );
                    }
                }
                if ( attribute.equals( "*" ) ) {
                    break;
                }
View Full Code Here


        for ( int i = 0; i < timestamps.size(); i++ ) {
            final Long ts = timestamps.get( i );
            final String author = authors.get( i );
            final String note = notes.get( i );
            result.add( new DiscussionRecord( ts, author, note ) );
        }

        Collections.sort( result, new Comparator<DiscussionRecord>() {
            @Override
            public int compare( final DiscussionRecord o1,
View Full Code Here

TOP

Related Classes of org.guvnor.common.services.shared.metadata.model.DiscussionRecord

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.