本文整理了Java中org.guvnor.common.services.shared.metadata.model.Metadata.getDiscussion()
方法的一些代码示例,展示了Metadata.getDiscussion()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Metadata.getDiscussion()
方法的具体详情如下:
包路径:org.guvnor.common.services.shared.metadata.model.Metadata
类名称:Metadata
方法名:getDiscussion
暂无
代码示例来源:origin: kiegroup/appformer
@Override
public List<DiscussionRecord> discussion() {
return metadata.getDiscussion();
}
代码示例来源:origin: org.guvnor/guvnor-services-backend
@Override
public List<DiscussionRecord> discussion() {
return metadata.getDiscussion();
}
代码示例来源:origin: org.kie.workbench.services/kie-wb-common-services-backend
protected void fireMetadataSocialEvents(final Path path,
final Metadata currentMetadata,
final Metadata newMetadata) {
List<DiscussionRecord> newDiscussion = newMetadata != null ? newMetadata.getDiscussion() : null;
List<DiscussionRecord> currentDiscussion = currentMetadata != null ? currentMetadata.getDiscussion() : null;
if (newDiscussion != null && newDiscussion.size() > 0) {
for (DiscussionRecord newRecord : newDiscussion) {
if (newRecord != null && (currentDiscussion == null || !currentDiscussion.contains(newRecord))) {
commentAddedEvent.fire(new CommentAddedEvent(newRecord.getAuthor(),
path, newRecord.getNote(),
newRecord.getTimestamp()));
}
}
}
}
}
代码示例来源:origin: org.kie.workbench.widgets/kie-wb-common-ui
public void setContent( Metadata metadata ) {
view.clear();
this.metadata = metadata;
for ( DiscussionRecord record : metadata.getDiscussion() ) {
view.addRow( record );
}
view.scrollToBottom();
}
代码示例来源:origin: org.kie.workbench.widgets/kie-wb-common-ui
@Override
public void callback( Long timestamp ) {
DiscussionRecord record = new DiscussionRecord( timestamp, identity.getIdentifier(), comment );
metadata.getDiscussion().add( record );
view.addRow( record );
view.clearCommentBox();
view.scrollToBottom();
}
} ).getTimestamp();
代码示例来源:origin: kiegroup/appformer
@Test
public void testSimple() throws Exception {
Metadata metadata = service.create();
assertNotNull(metadata);
assertNotNull(metadata.getTags());
assertNotNull(metadata.getDiscussion());
assertNotNull(metadata.getVersion());
}
代码示例来源:origin: org.guvnor/guvnor-services-backend
@Test
public void testSimple() throws Exception {
Metadata metadata = service.create();
assertNotNull(metadata);
assertNotNull(metadata.getTags());
assertNotNull(metadata.getDiscussion());
assertNotNull(metadata.getVersion());
}
代码示例来源:origin: org.uberfire/uberfire-services-backend
@Test
public void testSimple() throws Exception {
Metadata metadata = service.create();
assertNotNull(metadata);
assertNotNull(metadata.getTags());
assertNotNull(metadata.getDiscussion());
assertNotNull(metadata.getVersion());
}
内容来源于网络,如有侵权,请联系作者删除!