You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Robert Munteanu (JIRA)" <ji...@apache.org> on 2017/10/16 10:36:00 UTC

[jira] [Resolved] (OAK-6834) Make TypeEditor publically accessible and allow pluggable constraint violation handling

     [ https://issues.apache.org/jira/browse/OAK-6834?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Munteanu resolved OAK-6834.
----------------------------------
    Resolution: Fixed

Fixed in [r1812280|https://svn.apache.org/r1812280]

> Make TypeEditor publically accessible and allow pluggable constraint violation handling
> ---------------------------------------------------------------------------------------
>
>                 Key: OAK-6834
>                 URL: https://issues.apache.org/jira/browse/OAK-6834
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: core
>            Reporter: Robert Munteanu
>            Assignee: Robert Munteanu
>             Fix For: 1.8, 1.7.10
>
>
> For OAK-6580 we need to validate node types at mount time. The logic to perform the validation is properly encapsulated in the {{org.apache.jackrabbit.oak.plugins.nodetype.TypeEditor}} class. There are two issues which we need to work around: 
> - the type is not accessible
> - the constraint violation handling is not pluggable - it either fails or log a WARN
> My proposal is to:
> - make the TypeEditor public and add a factory method for accesing it
> - add a {{ConstraintViolationCallback}} interface which must be passed in to the TypeEditor



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)