12-14-2009 06:43 AM
public String createFolder(String folderPath, final String folderId,final String folderName) {
final ParentReference parentReference = new ParentReference(STORE,null,folderPath,Constants.ASSOC_CONTAINS,getChildName(folderName));
final String newId = (null == folderId) ? "-1" : folderId;
CMLCreate create = new CMLCreate(newId, parentReference, null, null, null, Constants.TYPE_FOLDER, createDefaultProperties(folderName));
//create content manipulation language
CML cml = new CML();
//set content to create
cml.setCreate(new CMLCreate[]{create});
UpdateResult[] result;
try {
result = WebServiceFactory.getRepositoryService().update(cml);
folderPath = result[0].getDestination().getPath();
} catch (RepositoryFault e) {
e.printStackTrace();
} catch (RemoteException e) {
e.printStackTrace();
}
return folderPath;
}
12-14-2009 07:40 AM
serviceRegistry.getPermissionService().setInheritParentPermissions(folderRef, inheritPermissions);
12-14-2009 07:48 AM
12-14-2009 08:44 AM
01-19-2010 04:36 PM
Reference nodeReference = new Reference(SPACES_STORE, nodeUuid, null);
Predicate nodes = new Predicate(new Reference[]{reference});
WebServiceFactory.getAccessControlService().setInheritPermission(predicate, true);
Hope this helps.
01-26-2010 09:52 AM
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.