Hi,

There are some changes in the site default hierarchy so a repository removal is needed if you update.

All creatable items in the system should now be considered as document types: so we have Domain, WorkspaceRoot, Workspace, SectionRoot and Section document types. There is some logic held by the roots so they are not supposed to be modified (until a better system is found).

This is not the case yet but all document related actions (creation, edition in particular) should now be done by the document actions bean. If you need to perform specific operations at creation or edition time, consider using event listeners like in NXDublinCore.

You can now remove document types in your specific extension, you just have to state:
<type id="SomeType" remove="true"/>
If you'd like to make this feature available in another extension, please keep the same syntax for consistency. You can also change an existing type parameters, the new definition will be merged with the existing one.

Seam events specific to documents are now sent with additional information. For instance, the EventNames.DOCUMENT_CHANGED and EventNames.DOCUMENT_SELECTION_CHANGED events are sent together with the document model. So you can add it as a parameter to methods reacting to it, for instance in org.nuxeo.ecm.ui.web.action.TypeTool:

@Observer( { EventNames.CONTENT_ROOT_SELECTION_CHANGED,
        EventNames.DOCUMENT_SELECTION_CHANGED })
public void populateTypesList(DocumentModel model) {
...
}

Don't hesitate to report bugs related to my changes...

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

Reply via email to