Skip to content

Instantly share code, notes, and snippets.

@nelsonsilva
Created September 9, 2012 00:08
Show Gist options
  • Save nelsonsilva/3681415 to your computer and use it in GitHub Desktop.
Save nelsonsilva/3681415 to your computer and use it in GitHub Desktop.
Using the default domain for document management and social collaboration in Nuxeo
<?xml version="1.0"?>
<component name="pt.inevo.social.mix" version="1.0">
<require>org.nuxeo.ecm.platform.types</require>
<require>org.nuxeo.ecm.social.workspace.types</require>
<require>org.nuxeo.ecm.social.workspace.service.SocialWorkspaceService.contrib</require>
<extension target="org.nuxeo.ecm.platform.types.TypeService" point="types">
<!-- from nuxeo-platform-webapp-base-5.6-RC1.jar /OSGI-INF/ecm-types-contrib.xml -->
<type id="Domain">
<label>Domain</label>
<icon>/icons/domain.gif</icon>
<bigIcon>/icons/domain.gif</bigIcon>
<category>SuperDocument</category>
<description>Domain.description</description>
<default-view>view_documents</default-view>
<create-view>create_domain</create-view>
<views>
<view id="user_dashboard" value="user_dashboard"/>
<view id="opensocial_dashboard" value="opensocial_dashboard"/>
</views>
<subtypes>
<type hidden="create">WorkspaceRoot</type>
<type hidden="create">SectionRoot</type>
<type hidden="create">TemplateRoot</type>
<type>SocialWorkspace</type>
</subtypes>
<layouts mode="any">
<layout>heading</layout>
</layouts>
<layouts mode="edit">
<layout>heading</layout>
<layout>dublincore</layout>
</layouts>
<contentViews category="content">
<contentView>document_content</contentView>
</contentViews>
<contentViews category="trash_content">
<contentView showInExportView="false">
document_trash_content
</contentView>
</contentViews>
</type>
</extension>
<extension point="filters" target="org.nuxeo.ecm.platform.actions.ActionService">
<filter append="true" id="create">
<rule grant="true">
<permission>AddChildren</permission>
<type>Domain</type>
<condition>
#{typeManager.getAllowedSubTypes(document.getType(), document).size() &gt; 0}
</condition>
</rule>
</filter>
</extension>
<extension point="socialWorkspaceContainer" target="org.nuxeo.ecm.social.workspace.service.SocialWorkspaceService">
<socialWorkspaceContainer path="/default-domain" />
</extension>
</component>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment