07-12-2007 03:19 AM
07-13-2007 04:45 AM
File testFile = somefile;
// Put the content onto the server
String contentData = ContentUtils.putContent(testFile);
// Create the parent reference
ParentReference parentRef = new ParentReference();
parentRef.setStore(BaseWebServiceSystemTest.store); parentRef.setUuid(BaseWebServiceSystemTest.rootReference.getUuid());
parentRef.setAssociationType(Constants.ASSOC_CHILDREN);
parentRef.setChildName(Constants.ASSOC_CHILDREN);
String myFile = "test.jpg";
// Create the content
NamedValue[] properties = new NamedValue[]
{
Utils.createNamedValue(Constants.PROP_NAME, myFile),
Utils.createNamedValue(Constants.PROP_CONTENT, contentData)
};
CMLCreate create = new CMLCreate("1", parentRef, null, null, null, Constants.TYPE_CONTENT, properties);
CML cml = new CML();
cml.setCreate(new CMLCreate[]{create});
UpdateResult[] result = this.repositoryService.update(cml);
07-13-2007 07:05 AM
07-13-2007 01:23 PM
04-03-2008 03:46 AM
….
// Put the content onto the server
String contentData = ContentUtils.putContent(testFile);
// Create the parent reference
ParentReference parentRef = new ParentReference();
parentRef.setStore(STORE);
parentRef.setUuid(id);
parentRef.setAssociationType(Constants.ASSOC_CHILDREN);
parentRef.setChildName(Constants.ASSOC_CHILDREN);
String myFile = fichero.getName();
// Create the content
NamedValue[] properties = new NamedValue[]
{
Utils.createNamedValue(Constants.PROP_NAME, myFile),
Utils.createNamedValue(Constants.PROP_CONTENT, contentData)
};
CMLCreate create = new CMLCreate("1", parentRef, null, null, null, Constants.TYPE_CONTENT, properties);
CML cml = new CML();
cml.setCreate(new CMLCreate[]{create});
UpdateResult[] result = this.repositoryService.update(cml);
….
UpdateResult[] result = this.repositoryService.update(cml);it's throws a exception:Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.