congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Metadata
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.kie.guvnor/guvnor-core-services-backend

@Override
public List<String> categories() {
  return metadata.getCategories();
}
origin: org.kie.guvnor/guvnor-core-services-backend

@Override
public List<DiscussionRecord> discussion() {
  return metadata.getDiscussion();
}
origin: org.kie.guvnor/guvnor-core-services-backend

public Metadata build() {
  return new Metadata( path, checkinComment, lastContributor, creator,
             lastModified, dateCreated, subject, type,
             externalRelation, externalSource,
             description, categories, discussion, version );
}
origin: org.kie.guvnor/guvnor-metadata-widget

       readOnlyDate( metadata.getLastModified() ) );
addAttribute( MetadataConstants.INSTANCE.ModifiedByMetaData(),
       readOnlyText( metadata.getLastContributor() ) );
addAttribute( MetadataConstants.INSTANCE.NoteMetaData(),
       readOnlyText( metadata.getCheckinComment() ) );
         readOnlyDate( metadata.getDateCreated() ) );
       readOnlyText( metadata.getCreator() ) );
       readOnlyText( getClientTypeRegistry().resolve( metadata.getPath() ).getShortName() ) );
addAttribute( "URI:",
       readOnlyText( metadata.getPath().toURI() ) );
origin: org.kie.guvnor/guvnor-metadata-widget

/**
 * Appy the change (selected path to be added).
 */
public void addToCategory( final String category ) {
  data.addCategory( category );
  resetBox();
}
origin: org.kie.guvnor/guvnor-metadata-widget

  private void loadData( final Metadata metadata ) {
    text.setText( metadata.getDescription() );
    text.addChangeHandler( new ChangeHandler() {

      public void onChange( ChangeEvent event ) {
        metadata.setDescription( text.getText() );
        makeDirty();
      }
    } );
    if ( metadata.getDescription() == null || "".equals( metadata.getDescription() ) ) {
      text.setText( MetadataConstants.INSTANCE.documentationDefault() );
    }
  }
}
origin: org.kie.guvnor/guvnor-metadata-widget

  public void onClick( final ClickEvent sender ) {
    if ( Window.confirm( MetadataConstants.INSTANCE.EraseAllCommentsWarning() ) ) {
      metadata.eraseDiscussion();
      makeDirty();
      updateCommentList();
    }
  }
} );
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 void updateCommentList() {
  commentList.clear();
  for ( final DiscussionRecord dr : metadata.getDiscussion() ) {
    appendComment( dr );
  }
}
origin: org.kie.guvnor/guvnor-metadata-widget

private void loadData( final FlexTable list ) {
  for ( int i = 0; i < data.getCategories().size(); i++ ) {
    final int idx = i;
    final String categoryPath = data.getCategories().get( idx );
    list.setWidget( i, 0, new SmallLabel( categoryPath ) );
    if ( !readOnly ) {
      final Image del = Images.INSTANCE.Trash();
      del.setTitle( MetadataConstants.INSTANCE.RemoveThisCategory() );
      del.addClickHandler( new ClickHandler() {
        public void onClick( final ClickEvent event ) {
          removeCategory( idx );
        }
      } );
      list.setWidget( i, 1, del );
    }
  }
}
org.kie.guvnor.services.metadata.modelMetadata

Most used methods

  • getCategories
  • getDiscussion
  • <init>
  • addCategory
  • addDiscussion
  • eraseDiscussion
  • getCheckinComment
  • getCreator
  • getDateCreated
  • getDescription
  • getExternalRelation
  • getExternalSource
  • getExternalRelation,
  • getExternalSource,
  • getLastContributor,
  • getLastModified,
  • getPath,
  • getSubject,
  • getType,
  • getVersion,
  • removeCategory,
  • setDescription

Popular in Java

  • Making http post requests using okhttp
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (Timer)
  • requestLocationUpdates (LocationManager)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • JTable (javax.swing)
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now