Bug 49146 - CoreProperties.(get|set)Keywords missing
Summary: CoreProperties.(get|set)Keywords missing
Alias: None
Product: POI
Classification: Unclassified
Component: XWPF (show other bugs)
Version: 3.7-dev
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
Depends on:
Reported: 2010-04-17 12:34 UTC by Antoni Mylka
Modified: 2010-04-20 06:28 UTC (History)
0 users

The patch that adds the (get|set)Keywords method, and a unit test (4.30 KB, application/octet-stream)
2010-04-17 12:34 UTC, Antoni Mylka
A test document which contains keywords. (13.07 KB, application/octet-stream)
2010-04-17 12:35 UTC, Antoni Mylka

Note You need to log in before you can comment on or make changes to this bug.
Description Antoni Mylka 2010-04-17 12:34:16 UTC
Created attachment 25320 [details]
The patch that adds the (get|set)Keywords method, and a unit test

The methods that get and set the keywords property in the POI XML document metadata are missing. The required functionality is there in PackagePropertiesPart, but not in POIXMLDocument.CoreProperties.

The attached patch adds it, together with a unit test. The test file is to be put in test-cases/document. This issue is relevant to all POIXMLDocuments (word, excel and powerpoint). Didn't know where exactly should the junit test class and the docx file be put to fit the conventions best.
Comment 1 Antoni Mylka 2010-04-17 12:35:13 UTC
Created attachment 25321 [details]
A test document which contains keywords.
Comment 2 Yegor Kozlov 2010-04-20 06:28:34 UTC
Applied in r935860