Codota Logo
DiscussionRecord
Code IndexAdd Codota to your IDE (free)

How to use
DiscussionRecord
in
org.kie.guvnor.services.metadata.model

Best Java code snippets using org.kie.guvnor.services.metadata.model.DiscussionRecord (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: org.kie.guvnor/guvnor-core-services-backend

  @Override
  public int compare( final DiscussionRecord o1,
            final DiscussionRecord o2 ) {
    return o1.getTimestamp().compareTo( o2.getTimestamp() );
  }
} );
origin: org.kie.guvnor/guvnor-core-services-backend

public static Map<String, Object> toMap( final DiscussionAttributes attrs,
                     final String... attributes ) {
  return new HashMap<String, Object>() {{
    for ( final String attribute : attributes ) {
      checkNotEmpty( "attribute", attribute );
      if ( attribute.equals( "*" ) || attribute.equals( DISCUSS ) ) {
        for ( int i = 0; i < attrs.discussion().size(); i++ ) {
          final DiscussionRecord record = attrs.discussion().get( i );
          put( buildAttrName( TIMESTAMP, i ), record.getTimestamp() );
          put( buildAttrName( AUTHOR, i ), record.getAuthor() );
          put( buildAttrName( NOTE, i ), record.getNote() );
        }
      }
      if ( attribute.equals( "*" ) ) {
        break;
      }
    }
  }};
}
origin: org.kie.guvnor/guvnor-metadata-widget

  public void callback( final Long timestamp ) {
    showNewCommentButton();
    metadata.addDiscussion( new DiscussionRecord( timestamp, identity.getName(), text ) );
    makeDirty();
    updateCommentList();
  }
}, AppConfigService.class ).getTimestamp();
origin: org.kie.guvnor/guvnor-metadata-widget

private Widget appendComment( final DiscussionRecord r ) {
  final SmallLabel hrd = new SmallLabel( MetadataConstants.INSTANCE.smallCommentBy0On1Small( r.getAuthor(), new Date( r.getTimestamp() ) ) );
  hrd.addStyleName( "discussion-header" );
  commentList.add( hrd );
  final String[] parts = r.getNote().split( "\n" );
  if ( parts.length > 0 ) {
    final StringBuilder txtBuilder = new StringBuilder();
    for ( int i = 0; i < parts.length; i++ ) {
      txtBuilder.append( parts[ i ] );
      if ( i != parts.length - 1 ) {
        txtBuilder.append( "<br/>" );
      }
    }
    final HTML hth = new HTML( txtBuilder.toString() );
    hth.setStyleName( "form-field" );
    commentList.add( hth );
  } else {
    final Label lbl = new Label( r.getNote() );
    lbl.setStyleName( "form-field" );
    commentList.add( lbl );
  }
  commentList.add( new HTML( "<br/>" ) );
  return hrd;
}
origin: org.kie.guvnor/guvnor-core-services-backend

final String author = authors.get( i );
final String note = notes.get( i );
result.add( new DiscussionRecord( ts, author, note ) );
org.kie.guvnor.services.metadata.modelDiscussionRecord

Javadoc

This is a discussion record item.

Most used methods

  • <init>
  • getAuthor
  • getNote
  • getTimestamp

Popular in Java

  • Making http post requests using okhttp
  • setRequestProperty (URLConnection)
  • addToBackStack (FragmentTransaction)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Path (java.nio.file)
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • JButton (javax.swing)
  • JComboBox (javax.swing)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now