Project

General

Profile

Actions

Task #502

closed

Check XML revision - jaxb

Added by Ondřej Kopr almost 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Ondřej Kopr
Category:
Notification
Target version:
Start date:
06/12/2017
Due date:
% Done:

100%

Estimated time:
Owner:

Description

Add better import for notifications + scrips.

  • jaxb
Actions #1

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;
    }
};

Actions #2

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
Actions #3

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.

Actions #4

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.

Actions #5

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.

Actions #6

Updated by Ondřej Kopr almost 7 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF