Actions
Task #502
closedCheck XML revision - jaxb
Start date:
06/12/2017
Due date:
% Done:
100%
Estimated time:
Owner:
Description
Add better import for notifications + scrips.
- jaxb
Updated by Ondřej Kopr almost 7 years ago
- Status changed from New to In Progress
- % Done changed from 0 to 90
- add better loading for notification template (via JAXBContext and Unmarshaller),
- create new entity IdmNotificationTemplateType in package eu.bcvsolutions.idm.core.model.jaxb,
- behavior is the same as it was,
- generate XSD (IdmNotificationTemplate.xsd) from IdmNotificationTemplateType, this file is saved in core notification,
- add newly generated XSD schema to all core templates.
XSD generate code:
SchemaOutputResolver sor = new SchemaOutputResolver() { @Override public Result createOutput(String namespaceUri, String suggestedFileName) throws IOException { File file = new File(suggestedFileName); StreamResult result = new StreamResult(file);file.getAbsolutePath() result.setSystemId(file.toURI().toURL().toString()); return result; } };
Updated by Ondřej Kopr almost 7 years ago
- Status changed from In Progress to Needs feedback
- Assignee changed from Ondřej Kopr to Vít Švanda
Please Vitek could you make a review?
Commit:
https://github.com/bcvsolutions/CzechIdMng/commit/af905e2ec77d2ad70bb3a757e745c18bba906648
Updated by Vít Švanda almost 7 years ago
- Status changed from Needs feedback to In Progress
- Assignee changed from Vít Švanda to Ondřej Kopr
Looks good.
Issues:- Xml templates in core are unvalidate. Some have wrong order of element (versus XSD). Some have wrong format ("xsi:noNamespaceSchemaLocation="IdmNotificationTemplate.xsd" >>").
- Xml templates in acc are not modified.
Tip: try validate in eclipse.
Updated by Ondřej Kopr almost 7 years ago
- Status changed from In Progress to Needs feedback
- Assignee changed from Ondřej Kopr to Vít Švanda
Sorry my bad, i have xml validation turn off because WF. I fixed xml validation and add xsd into acc.
commit:
https://github.com/bcvsolutions/CzechIdMng/commit/e09899f4be10e58c4c2fd5406e1759c9d8f25170
Please try xml validation thanks.
Updated by Vít Švanda almost 7 years ago
- Status changed from Needs feedback to Resolved
- Assignee changed from Vít Švanda to Ondřej Kopr
- Target version changed from Diamond (7.4.0) to Citrine (7.3.0)
- % Done changed from 90 to 100
Now looks very nice.
Updated by Ondřej Kopr almost 7 years ago
- Status changed from Resolved to Closed
Actions