Hi All,
Using DFS service create content in specific loaction in the repository .
using this code i can able to create content in home cabinet ot the repository but how can i do in specific location
File file = new File("E:\\filepath"+fileName);
IObjectService objectService=ServiceFactory.getInstance().getService(IObjectService.class,
context,
serviceModule,
contextRoot);
ObjectIdentity objIdentity = new ObjectIdentity(repositoryName);
DataObject dataObject = new DataObject(objIdentity,"dm_document");
PropertySet properties = dataObject.getProperties();
properties.set("object_name", fileName);
FileContent fileContent = new FileContent();
fileContent.setLocalPath(file.getAbsolutePath());
dataObject.getContents().add(fileContent);
PropertyProfile propertyProfile = new PropertyProfile();
propertyProfile.setFilterMode(PropertyFilterMode.ALL);
OperationOptions operationOptions = new OperationOptions();
operationOptions.setProfile(propertyProfile);
DataPackage newFilePropertiesInfo = objectService.create(new DataPackage(dataObject), operationOptions);
Thanks,
damodar