From 097623478b3b150d4ea675c275cb74710106cb30 Mon Sep 17 00:00:00 2001 From: Sanjay Dalal Date: Thu, 9 Jul 2009 18:50:38 +0000 Subject: [PATCH] CSPACE-272 created an extensible document type to store relations. table is created in db. layout config still has problems so relation creation using nuxeo webapp (for testing purposes) is not yet working. A relation A relation/3rdparty A relation/3rdparty/pom.xml A relation/3rdparty/build.xml A relation/3rdparty/nuxeo-platform-cs-relation A relation/3rdparty/nuxeo-platform-cs-relation/src A relation/3rdparty/nuxeo-platform-cs-relation/src/test A relation/3rdparty/nuxeo-platform-cs-relation/src/main A relation/3rdparty/nuxeo-platform-cs-relation/src/main/java A relation/3rdparty/nuxeo-platform-cs-relation/src/main/resources A relation/3rdparty/nuxeo-platform-cs-relation/src/main/resources/META-INF A relation/3rdparty/nuxeo-platform-cs-relation/src/main/resources/META-INF/MANIFEST.MF A relation/3rdparty/nuxeo-platform-cs-relation/src/main/resources/schemas A relation/3rdparty/nuxeo-platform-cs-relation/src/main/resources/schemas/relation.xsd A relation/3rdparty/nuxeo-platform-cs-relation/src/main/resources/OSGI-INF A relation/3rdparty/nuxeo-platform-cs-relation/src/main/resources/OSGI-INF/deployment-fragment.xml A relation/3rdparty/nuxeo-platform-cs-relation/src/main/resources/OSGI-INF/ecm-types-contrib.xml A relation/3rdparty/nuxeo-platform-cs-relation/src/main/resources/OSGI-INF/core-types-contrib.xml A relation/3rdparty/nuxeo-platform-cs-relation/src/main/resources/OSGI-INF/layouts-contrib.xml A relation/3rdparty/nuxeo-platform-cs-relation/pom.xml A relation/3rdparty/nuxeo-platform-cs-relation/build.xml A relation/pom.xml A relation/build.xml --- services/relation/3rdparty/build.xml | 126 ++++++ .../nuxeo-platform-cs-relation/build.xml | 128 ++++++ .../nuxeo-platform-cs-relation/pom.xml | 35 ++ .../src/main/resources/META-INF/MANIFEST.MF | 22 + .../resources/OSGI-INF/core-types-contrib.xml | 28 ++ .../OSGI-INF/deployment-fragment.xml | 408 ++++++++++++++++++ .../resources/OSGI-INF/ecm-types-contrib.xml | 43 ++ .../resources/OSGI-INF/layouts-contrib.xml | 104 +++++ .../src/main/resources/schemas/relation.xsd | 71 +++ services/relation/3rdparty/pom.xml | 24 ++ services/relation/build.xml | 121 ++++++ services/relation/pom.xml | 59 +++ 12 files changed, 1169 insertions(+) create mode 100644 services/relation/3rdparty/build.xml create mode 100644 services/relation/3rdparty/nuxeo-platform-cs-relation/build.xml create mode 100644 services/relation/3rdparty/nuxeo-platform-cs-relation/pom.xml create mode 100644 services/relation/3rdparty/nuxeo-platform-cs-relation/src/main/resources/META-INF/MANIFEST.MF create mode 100644 services/relation/3rdparty/nuxeo-platform-cs-relation/src/main/resources/OSGI-INF/core-types-contrib.xml create mode 100644 services/relation/3rdparty/nuxeo-platform-cs-relation/src/main/resources/OSGI-INF/deployment-fragment.xml create mode 100644 services/relation/3rdparty/nuxeo-platform-cs-relation/src/main/resources/OSGI-INF/ecm-types-contrib.xml create mode 100644 services/relation/3rdparty/nuxeo-platform-cs-relation/src/main/resources/OSGI-INF/layouts-contrib.xml create mode 100644 services/relation/3rdparty/nuxeo-platform-cs-relation/src/main/resources/schemas/relation.xsd create mode 100644 services/relation/3rdparty/pom.xml create mode 100644 services/relation/build.xml create mode 100644 services/relation/pom.xml diff --git a/services/relation/3rdparty/build.xml b/services/relation/3rdparty/build.xml new file mode 100644 index 000000000..09f98b5cd --- /dev/null +++ b/services/relation/3rdparty/build.xml @@ -0,0 +1,126 @@ + + + + collectionspace authentication service + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/services/relation/3rdparty/nuxeo-platform-cs-relation/build.xml b/services/relation/3rdparty/nuxeo-platform-cs-relation/build.xml new file mode 100644 index 000000000..9a1d5745c --- /dev/null +++ b/services/relation/3rdparty/nuxeo-platform-cs-relation/build.xml @@ -0,0 +1,128 @@ + + + + relationhip nuxeo document type + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/services/relation/3rdparty/nuxeo-platform-cs-relation/pom.xml b/services/relation/3rdparty/nuxeo-platform-cs-relation/pom.xml new file mode 100644 index 000000000..09536d9a5 --- /dev/null +++ b/services/relation/3rdparty/nuxeo-platform-cs-relation/pom.xml @@ -0,0 +1,35 @@ + + 4.0.0 + + + org.nuxeo.ecm.platform + nuxeo-platform-parent + 5.2-SNAPSHOT + + + nuxeo-platform-cs-relation + jar + nuxeo-platform-cs-relation + + CollectionSpace relation Nuxeo document type + + + 5.2-SNAPSHOT + 1.5-SNAPSHOT + + + + org.nuxeo.ecm.core + nuxeo-core-schema + ${nuxeo.version.1.5} + + + org.nuxeo.ecm.platform + nuxeo-platform-types-core + ${nuxeo.version.5.2} + + + + diff --git a/services/relation/3rdparty/nuxeo-platform-cs-relation/src/main/resources/META-INF/MANIFEST.MF b/services/relation/3rdparty/nuxeo-platform-cs-relation/src/main/resources/META-INF/MANIFEST.MF new file mode 100644 index 000000000..bb28362a3 --- /dev/null +++ b/services/relation/3rdparty/nuxeo-platform-cs-relation/src/main/resources/META-INF/MANIFEST.MF @@ -0,0 +1,22 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 1 +Bundle-Name: nuxeo-platform-cs-relation +Bundle-SymbolicName: org.collectionspace.relation;singleton:=true +Bundle-Version: 1.0.0 +Bundle-Localization: plugin +Bundle-Vendor: Nuxeo +Require-Bundle: org.nuxeo.runtime, + org.nuxeo.ecm.core.api, + org.nuxeo.ecm.core, + org.nuxeo.ecm.core.api, + org.nuxeo.ecm.platform.types.api, + org.nuxeo.ecm.platform.versioning.api, + org.nuxeo.ecm.platform.ui, + org.nuxeo.ecm.platform.forms.layout.client, + org.nuxeo.ecm.platform.publishing.api, + org.nuxeo.ecm.platform.ws +Provide-Package: org.collectionspace.relation +Nuxeo-Component: OSGI-INF/core-types-contrib.xml, + OSGI-INF/ecm-types-contrib.xml, + OSGI-INF/layouts-contrib.xml + diff --git a/services/relation/3rdparty/nuxeo-platform-cs-relation/src/main/resources/OSGI-INF/core-types-contrib.xml b/services/relation/3rdparty/nuxeo-platform-cs-relation/src/main/resources/OSGI-INF/core-types-contrib.xml new file mode 100644 index 000000000..990052e4a --- /dev/null +++ b/services/relation/3rdparty/nuxeo-platform-cs-relation/src/main/resources/OSGI-INF/core-types-contrib.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + diff --git a/services/relation/3rdparty/nuxeo-platform-cs-relation/src/main/resources/OSGI-INF/deployment-fragment.xml b/services/relation/3rdparty/nuxeo-platform-cs-relation/src/main/resources/OSGI-INF/deployment-fragment.xml new file mode 100644 index 000000000..88b94ffd1 --- /dev/null +++ b/services/relation/3rdparty/nuxeo-platform-cs-relation/src/main/resources/OSGI-INF/deployment-fragment.xml @@ -0,0 +1,408 @@ + + + + + + ${bundle.fileName} + + + + + nuxeo.war + /nuxeo + + + + + + + + + + + + Seam Context Filter + /ws/FileManageWS + + + + Seam Context Filter + /DocumentManagerWS + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #{currentServerLocation.name}/#{currentTabAction.label} + + + + Create new document in #{currentDocument.name} + + + + Create new document in #{currentDocument.name} + + + + breadcrumb=command.user_dashboard + + + + breadcrumb=command.manageMembers + + + + breadcrumb=command.manageMembers + + + + breadcrumb=title.vocabularies + + + + breadcrumb=command.advancedSearch + + + + + + en + en_GB + en_US + fr + de + es + it + ar + ru + ja + vn + + + messages + + + + config/addWorkspace.jpdl.xml + + + + + + generic_error_page + /generic_error_page.xhtml + + + + + generic_message_page + /generic_message_page.xhtml + + + + + home + /nxstartup.xhtml + + + + + user_login + /login.xhtml + + + + + user_logout + /logout.xhtml + + + + + view_servers + /view_servers.xhtml + + + + + + + view_domains + /view_domains.xhtml + + + + + select_document_type + /select_document_type.xhtml + + + + + create_document + /create_document.xhtml + + + + + edit_document + /edit_document.xhtml + + + + + view_documents + /view_documents.xhtml + + + + + create_file + /create_file.xhtml + + + + + create_workspace_wizard + /createWorkspaceWizard.xhtml + + + + + send_email + /document_email.xhtml + + + + + + view_workspaces + /view_workspaces.xhtml + + + + + + create_domain + /create_domain.xhtml + + + + + + edit_domain + /edit_domain.xhtml + + + + + + create_workspace + /create_workspace.xhtml + + + + + + edit_workspace + /edit_workspace.xhtml + + + + + + + members_management + /members_management.xhtml + + + + + view_users + /view_users.xhtml + + + + + view_many_users + /view_many_users.xhtml + + + + + edit_user + /edit_user.xhtml + + + + + edit_user_password + /edit_user_password.xhtml + + + + + view_user + /view_user.xhtml + + + + + create_user + /create_user.xhtml + + + + + view_groups + /view_groups.xhtml + + + + + view_group + /view_group.xhtml + + + + + edit_group + /edit_group.xhtml + + + + + create_group + /create_group.xhtml + + + + + view_vocabularies + /view_vocabularies.xhtml + + + + + view_vocabulary + /view_vocabulary.xhtml + + + + + + + search_form + /search/search_form.xhtml + + + + + search_results_nxql + /search/search_results_nxql.xhtml + + + + + search_results_advanced + + /search/search_results_advanced.xhtml + + + + + + search_results_simple + /search/search_results_simple.xhtml + + + + + + + clipboard + /incl/clipboard.xhtml + + + + + user_dashboard + /user_dashboard.xhtml + + + + + select_workspace_template + /select_workspace_template.xhtml + + + + + pdf_generation_error + /pdf_generation_error.xhtml + + + + + mass_edit + /massedit_documents.xhtml + + + + + mass_edit_confirm + /massedit_documents_preview.xhtml + + + + + + diff --git a/services/relation/3rdparty/nuxeo-platform-cs-relation/src/main/resources/OSGI-INF/ecm-types-contrib.xml b/services/relation/3rdparty/nuxeo-platform-cs-relation/src/main/resources/OSGI-INF/ecm-types-contrib.xml new file mode 100644 index 000000000..73a5d8016 --- /dev/null +++ b/services/relation/3rdparty/nuxeo-platform-cs-relation/src/main/resources/OSGI-INF/ecm-types-contrib.xml @@ -0,0 +1,43 @@ + + + + + + + + view_documents + + + heading + relation + + + + + + Relation + + + + + + Relation + + + + + diff --git a/services/relation/3rdparty/nuxeo-platform-cs-relation/src/main/resources/OSGI-INF/layouts-contrib.xml b/services/relation/3rdparty/nuxeo-platform-cs-relation/src/main/resources/OSGI-INF/layouts-contrib.xml new file mode 100644 index 000000000..c3d2f1073 --- /dev/null +++ b/services/relation/3rdparty/nuxeo-platform-cs-relation/src/main/resources/OSGI-INF/layouts-contrib.xml @@ -0,0 +1,104 @@ + + + + + + + + + + + + + + relationtype + + + + + + relation:relationtype + + + + /widgets/complex_widget_template.xhtml + + + + + + + + + + true + + relation:document-id-1 + + + javax.faces.convert.CharacterConverter + dataInputText + + + + + + + + true + + relation:document-type-1 + + + dataInputText + + + + + + + + true + + relation:document-id-2 + + + dataInputText + + + + + + + + true + + relation:document-type-2 + + + dataInputText + + + + + + + + + + diff --git a/services/relation/3rdparty/nuxeo-platform-cs-relation/src/main/resources/schemas/relation.xsd b/services/relation/3rdparty/nuxeo-platform-cs-relation/src/main/resources/schemas/relation.xsd new file mode 100644 index 000000000..8aaca970f --- /dev/null +++ b/services/relation/3rdparty/nuxeo-platform-cs-relation/src/main/resources/schemas/relation.xsd @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/services/relation/3rdparty/pom.xml b/services/relation/3rdparty/pom.xml new file mode 100644 index 000000000..d8c41e45f --- /dev/null +++ b/services/relation/3rdparty/pom.xml @@ -0,0 +1,24 @@ + + + 4.0.0 + + + org.collectionspace.services.relation + org.collectionspace.services + 1.0 + + + org.collectionspace.services.relation.3rdparty + pom + services.relation.3rdparty + + 3rd party build for relation service + + + + nuxeo-platform-cs-relation + + + diff --git a/services/relation/build.xml b/services/relation/build.xml new file mode 100644 index 000000000..62bf0d23b --- /dev/null +++ b/services/relation/build.xml @@ -0,0 +1,121 @@ + + + + relationship service + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/services/relation/pom.xml b/services/relation/pom.xml new file mode 100644 index 000000000..b7f154db5 --- /dev/null +++ b/services/relation/pom.xml @@ -0,0 +1,59 @@ + + + + org.collectionspace.services.main + org.collectionspace.services + 1.0 + + 4.0.0 + org.collectionspace.services + 1.0 + org.collectionspace.services.relation + pom + services.relation + + + 5.2-SNAPSHOT + 1.5-SNAPSHOT + + + + 3rdparty + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + + 1.5 + 1.5 + + + + org.apache.maven.plugins + maven-site-plugin + + /usr/bin/unzip -o > err.txt + + + + org.apache.maven.plugins + maven-war-plugin + 2.0.1 + + WEB-INF/lib/*.jar + + + true + + + + + + + + + -- 2.47.3