09-23-2014 04:13 AM
CMLCreate create = new CMLCreate();
create.setParent(destinationFolder);
create.setAssociationType(Constants.ASSOC_CONTAINS);
if (isFolder) {
//it`s a link of folder type
create.setType("{http://www.alfresco.org/model/application/1.0}folderlink");
}else{
create.setType("{http://www.alfresco.org/model/application/1.0}filelink");
}
create.setProperty(prop);
create.setChildName("Childname");
CML cml = new CML();
cml.setCreate(new CMLCreate[] { create });
WebServiceFactory.setEndpointAddress("http://140.92.25.160:80/alfresco/api");
AuthenticationUtils.startSession("admin","admin");
RepositoryServiceSoapBindingStub repositoryServiceSoapBindingStub =
WebServiceFactory.getRepositoryService();
result = repositoryServiceSoapBindingStub.update(cml);
if(result.length > 0 ){
isSuccess = true;
}
AuthenticationUtils.endSession();
}
09-23-2014 05:16 AM
09-23-2014 06:01 AM
09-23-2014 10:43 AM
http://localhost:8080/alfresco/soapapi
?09-24-2014 03:38 AM
09-28-2014 10:52 PM
09-28-2014 11:14 PM
09-29-2014 11:55 PM
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.