[ 
https://jira.nuxeo.org/browse/NXP-6094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Florent Guillaume updated NXP-6094:
-----------------------------------

      Description: 
On a DocumentModel it is now possible to add any registered facet (see NXP-6085 
for facet registration):

  doc.addFacet(facetName);

The doc must be saved for this to take persistent effect.

If this facet is associated to one or several schemas, the properties they 
define are now accessible on the document.
Facets can also be removed.

      Impact type: [API added]
    Upgrade notes: 
New APIs:
  DocumentModel.getSchemas()
  DocumentModel.getFacets()
  DocumentModel.addFacet(String facet)
  DocumentModel.removeFacet(String facet)

Extended APIs to check instance facets and their schemas:
  DocumentModel.hasSchema(String schema)
  DocumentModel.hasFacet(String facet)

Deprecated APIs:
  DocumentModel.getDeclaredSchemas()
  DocumentModel.getDeclaredFacets()


> Implement per-document facets in core
> -------------------------------------
>
>                 Key: NXP-6094
>                 URL: https://jira.nuxeo.org/browse/NXP-6094
>             Project: Nuxeo Enterprise Platform
>          Issue Type: Sub-task
>          Components: Core
>            Reporter: Florent Guillaume
>            Assignee: Florent Guillaume
>            Priority: Major
>             Fix For: 5.4.1
>
>
> On a DocumentModel it is now possible to add any registered facet (see 
> NXP-6085 for facet registration):
>   doc.addFacet(facetName);
> The doc must be saved for this to take persistent effect.
> If this facet is associated to one or several schemas, the properties they 
> define are now accessible on the document.
> Facets can also be removed.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to