Download Diffusion 5.5 User Guide - Documentation
Transcript
Note: Where there notation c.p.d is used in class or package names, it indicates
com.pushtechnology.diffusion.
Procedure
1. Define the metadata structure.
a) Import c.p.d.client.Diffusion and the following classes from the
c.p.d.client.content.metadata package:
• MetadataFactory
• MContent
• MRecord
• MField
• MString
• MIntegerString
• MDecimalString
• MCustomString
b) Use the Diffusion.metadata method to get a MetadataFactory.
private final MetadataFactory factory =
Diffusion.metadata();
c) Use the methods on the MetadataFactory to specify the content, record, and field
definitions that make up the metadata structure.
For example, the following code uses a content builder to create content metadata with
a single record type that can occur zero to n times.
public MContent createContentRepeating() {
return
factory.contentBuilder("Content").
add(
factory.record(
"Rec1",
factory.string("A"),
factory.string("B")),
0,
-1).
build();
}
For more information, see Java Unified API documentation.
2. Create a record topic and apply the metadata definition to it.
a) Import the TopicControl feature, Session class, and RecordTopicDetails class.
import
com.pushtechnology.diffusion.client.features.control.topics.TopicContr
import com.pushtechnology.diffusion.client.session.Session;
import
com.pushtechnology.diffusion.client.topics.details.RecordTopicDetails;
b) Create a Session instance and use it to get the TopicControl feature.
final Session session = Diffusion.sessions().open("ws://
diffusion.example.com:80");
final TopicControl tc =
session.feature(TopicControl.class);
Diffusion | 223
Related documents
Diffusion 5.1 User Guide - Documentation
User Guide - Documentation
Netgear 782S Quick Start Guide
PRIMECLUSTER Reliant Monitor Services (RMS) with
RTI Routing Service - Community RTI Connext Users
NaviPlan User Manual: Business Administration
Sirius User Guide.book
Supply and Delivery of RS and GIS Laboratory Setup
Chapter 1 Introduction to EverBEEN
Netgear 782S Quick Start Guide
DNP 3.0 LAN/WAN Master (OPC) User`s Manual
HornetQ User Guide - for use with JBoss Enterprise
spring-boot-referenc..
User Manual - barcode
US English
PBPB User Manual - KIT Solutions Support Site
User manual - STMicroelectronics
IX-T01 WiFi - SnelWebshop
LittleDog Robot 1.0 - Computational Learning and Motor Control Lab
Stemming Selector 4 User Guide