p[0] = new Property("h", "DAV:", "type", "standarddocument");should be
p[0] = new Property("h", "http://hippo.nl/cms/1.0:", "type",
"standarddocument");2009/2/18 Fabiano Izzo <[email protected]> > Hi all, > I'm using the hippo repository java adapter to upload an hippo document > inside the webdav repository. > I upload the doc successfully, I can see the document from the cms console > and, through DAVExplorer, I can see the metadata inserted (ex.: > tag=type;namespace=DAV:;Value=standarddocument). > The problem is that from the cms console the workflow actions associated to > that document are not visible and I can't see document information like type > or order. > > Here the code I'm using: > > ... > WebdavConfig webdavConfig = new WebdavConfig(new > FileInputStream("webdav.properties")); > WebdavService webdavService = new WebdavServiceImpl(webdavConfig); > > DocumentPath rootFolder = webdavService.getBasePath(); > DocumentPath newPath = rootFolder.createRelativePath("PROVA1"); > > int repositoryResponseCode1 = webdavService.executeMkCol(newPath); > > InputStream is = new FileInputStream("prova.xml"); > DocumentPath documentTarget = > webdavService.getBasePath().createRelativePath("PROVA1/" + "prova.xml"); > int repositoryResponseCode2 = webdavService.executePut(documentTarget, is); > Property[] p = new Property[1]; > p[0] = new Property("h", "DAV:", "type", "standarddocument"); > int proppatchResult = webdavService.executePropPatch(documentTarget, null, > p); > > Thread.sleep(7000); > ... > > webdav.properties file: > > hippo.client.username = root > hippo.client.password = password > # > hippo.client.protocol = http > hippo.client.host = localhost > hippo.client.port = 60000 > hippo.client.realm = default realm > # hippo.client.namespace = default > hippo.client.filespath = /files/default.preview/content/repository > > > Any suggestion? > > Thanks in advance, > > Fabiano. > > > > -- > ------------------------------------------------------------------------ > > Fabiano Izzo > > everett Italia ? > TRUSTED TO *KNOW* > > Head Office > > Via Torino, 2 - 20123 Milano - Italia > Tel: +39 02 72546847 > Fax: +39 02 72546418 > > > > Technology Centre > > Via Federico Fellini, 2 G2/1 - 65010 Spoltore (PE) - Italia > Tel: +39 085 2120342 > Fax: +39 085 2120342 > > e-mail: [email protected] <mailto:[email protected]> > Web: http://www.everett.it > > ******************************************** > Hippocms-dev: Hippo CMS development public mailinglist > > Searchable archives can be found at: > MarkMail: http://hippocms-dev.markmail.org > Nabble: http://www.nabble.com/Hippo-CMS-f26633.html > > -- Jasha Joachimsthal [email protected] - [email protected] www.onehippo.com Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466 San Francisco - Hippo USA Inc. 101 H Street, suite Q Petaluma CA 94952-5100 +1 (707) 773-4646 ******************************************** Hippocms-dev: Hippo CMS development public mailinglist Searchable archives can be found at: MarkMail: http://hippocms-dev.markmail.org Nabble: http://www.nabble.com/Hippo-CMS-f26633.html
