From 67c7b90ded412e1e06dfd5e36d9c18efb72242a5 Mon Sep 17 00:00:00 2001 From: jensp Date: Wed, 19 Jun 2013 15:26:58 +0000 Subject: [PATCH] - Admin Form for the PublicPersonalProfile App integrated into new applications admin pane - Added missing license headers in ccm-cms-publicpersonalprofile - Fixed name of the PublicPersonalProfiles App: The BASE_DATA_OBJECT_TYPE was PublicPersonalProfile instead of PublicPersonalProfiles. Also the app table is renamed to publicpersonalprofiles. Attention: Database-Upgrade 6.6.4-6.6.5 required! git-svn-id: https://svn.libreccm.org/ccm/trunk@2220 8810af33-2d31-482b-a856-94f89814c4df --- ccm-cms-publicpersonalprofile/application.xml | 2 +- .../PublicPersonalProfile.pdl | 4 +- .../upgrade/6.6.4-6.6.5/fix_app_name.sql | 24 +++++++ .../upgrade/oracle-se-6.6.4-6.6.5.sql | 26 +++++++ .../upgrade/postgres-6.6.4-6.6.5.sql | 29 ++++++++ ...a.ui.admin.applications.ApplicationManager | 1 + .../src/ccm-cms-publicpersonalprofile.upgrade | 3 + .../PublicPersonalProfileBundle.java | 18 +++++ ...ublicPersonalProfileExtraXmlGenerator.java | 18 +++++ .../PublicPersonalProfileLoader.java | 3 +- .../PublicPersonalProfileNavItem.java | 18 +++++ ...ublicPersonalProfileNavItemCollection.java | 18 +++++ .../PublicPersonalProfileXmlUtil.java | 7 +- .../ui/PublicPersonalProfileCreate.java | 18 +++++ .../ui/PublicPersonalProfileMiscEditForm.java | 18 +++++ .../ui/PublicPersonalProfileMiscStep.java | 18 +++++ ...ublicPersonalProfileNavigationAddForm.java | 18 +++++ ...onalProfileNavigationGeneratedAddForm.java | 18 +++++ .../PublicPersonalProfileNavigationStep.java | 18 +++++ .../PublicPersonalProfileNavigationTable.java | 18 +++++ ...PublicPersonalProfilePositionEditForm.java | 18 +++++ .../ui/PublicPersonalProfilePositionStep.java | 18 +++++ .../PublicPersonalProfilePropertiesStep.java | 18 +++++ .../ui/PublicPersonalProfilePropertyForm.java | 18 +++++ ...sonalProfileResearchInterestsEditForm.java | 18 +++++ ...cPersonalProfileResearchInterestsStep.java | 18 ++++- .../PublicPersonalProfileResources.properties | 1 + ...blicPersonalProfileResources_de.properties | 1 + .../ContentGenerator.java | 18 +++++ .../ExampleGenerator.java | 18 +++++ .../PublicPersonalProfileAppManager.java | 40 +++++++++++ .../PublicPersonalProfileConfig.java | 18 +++++ .../PublicPersonalProfileXmlGenerator.java | 18 +++++ .../PublicPersonalProfiles.java | 20 +++++- .../PublicPersonalProfilesAdminPanel.java | 62 ++++++++++++++++ .../PublicPersonalProfilesInitializer.java | 18 +++++ .../PublicPersonalProfilesLoader.java | 18 +++++ .../PublicPersonalProfilesServlet.java | 18 +++++ .../PublicPersonalProfileNavItemsAddForm.java | 18 +++++ .../PublicPersonalProfileNavItemsTable.java | 18 +++++ .../com/arsdigita/ui/admin/AdminServlet.java | 4 +- .../admin/ApplicationsAdministrationTab.java | 71 +++++++++++-------- .../ApplicationInfoPropertySheetModel.java | 3 +- .../MultiInstanceApplicationPane.java | 5 +- 44 files changed, 728 insertions(+), 46 deletions(-) create mode 100644 ccm-cms-publicpersonalprofile/sql/ccm-cms-publicpersonalprofile/default/upgrade/6.6.4-6.6.5/fix_app_name.sql create mode 100644 ccm-cms-publicpersonalprofile/sql/ccm-cms-publicpersonalprofile/upgrade/oracle-se-6.6.4-6.6.5.sql create mode 100644 ccm-cms-publicpersonalprofile/sql/ccm-cms-publicpersonalprofile/upgrade/postgres-6.6.4-6.6.5.sql create mode 100644 ccm-cms-publicpersonalprofile/src/META-INF/services/com.arsdigita.ui.admin.applications.ApplicationManager create mode 100644 ccm-cms-publicpersonalprofile/src/com/arsdigita/cms/publicpersonalprofile/PublicPersonalProfileAppManager.java create mode 100644 ccm-cms-publicpersonalprofile/src/com/arsdigita/cms/publicpersonalprofile/PublicPersonalProfilesAdminPanel.java diff --git a/ccm-cms-publicpersonalprofile/application.xml b/ccm-cms-publicpersonalprofile/application.xml index 117b63c50..9fd514503 100644 --- a/ccm-cms-publicpersonalprofile/application.xml +++ b/ccm-cms-publicpersonalprofile/application.xml @@ -2,7 +2,7 @@ diff --git a/ccm-cms-publicpersonalprofile/pdl/com/arsdigita/publicpersonalprofile/PublicPersonalProfile.pdl b/ccm-cms-publicpersonalprofile/pdl/com/arsdigita/publicpersonalprofile/PublicPersonalProfile.pdl index 743d14351..c26553451 100644 --- a/ccm-cms-publicpersonalprofile/pdl/com/arsdigita/publicpersonalprofile/PublicPersonalProfile.pdl +++ b/ccm-cms-publicpersonalprofile/pdl/com/arsdigita/publicpersonalprofile/PublicPersonalProfile.pdl @@ -2,8 +2,8 @@ model com.arsdigita.cms.publicpersonalprofile; import com.arsdigita.web.Application; -object type PublicPersonalProfile extends Application { - reference key (publicpersonalprofile.application_id); +object type PublicPersonalProfiles extends Application { + reference key (publicpersonalprofiles.application_id); } // Subquery for AbstractObjectList used as a filter diff --git a/ccm-cms-publicpersonalprofile/sql/ccm-cms-publicpersonalprofile/default/upgrade/6.6.4-6.6.5/fix_app_name.sql b/ccm-cms-publicpersonalprofile/sql/ccm-cms-publicpersonalprofile/default/upgrade/6.6.4-6.6.5/fix_app_name.sql new file mode 100644 index 000000000..dfdbde09c --- /dev/null +++ b/ccm-cms-publicpersonalprofile/sql/ccm-cms-publicpersonalprofile/default/upgrade/6.6.4-6.6.5/fix_app_name.sql @@ -0,0 +1,24 @@ +-- +-- Copyright (C) 2013 Jens Pelzetter All Rights Reserved. +-- +-- This library is free software; you can redistribute it and/or +-- modify it under the terms of the GNU Lesser General Public License +-- as published by the Free Software Foundation; either version 2.1 of +-- the License, or (at your option) any later version. +-- +-- This library is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +-- Lesser General Public License for more details. +-- +-- You should have received a copy of the GNU Lesser General Public +-- License along with this library; if not, write to the Free Software +-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +-- +-- $Id$ + +UPDATE application_types +SET object_type = 'com.arsdigita.cms.publicpersonalprofile.PublicPersonalProfiles' +WHERE object_type = 'com.arsdigita.cms.publicpersonalprofile.PublicPersonalProfile'; + +ALTER TABLE publicpersonalprofile RENAME TO publicpersonalprofiles; \ No newline at end of file diff --git a/ccm-cms-publicpersonalprofile/sql/ccm-cms-publicpersonalprofile/upgrade/oracle-se-6.6.4-6.6.5.sql b/ccm-cms-publicpersonalprofile/sql/ccm-cms-publicpersonalprofile/upgrade/oracle-se-6.6.4-6.6.5.sql new file mode 100644 index 000000000..24a6deacf --- /dev/null +++ b/ccm-cms-publicpersonalprofile/sql/ccm-cms-publicpersonalprofile/upgrade/oracle-se-6.6.4-6.6.5.sql @@ -0,0 +1,26 @@ +-- +-- Copyright (C) 2013 Jens Pelzetter All Rights Reserved. +-- +-- This library is free software; you can redistribute it and/or +-- modify it under the terms of the GNU Lesser General Public License +-- as published by the Free Software Foundation; either version 2.1 of +-- the License, or (at your option) any later version. +-- +-- This library is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +-- Lesser General Public License for more details. +-- +-- You should have received a copy of the GNU Lesser General Public +-- License along with this library; if not, write to the Free Software +-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +-- +-- $Id$ + +-- This update is only applicable for the internal development tree at +-- University of Bremen ! Don't use for the APLAWS main trunk on +-- fedorahosted! + +PROMPT ScientificCMS PublicPersonalProfile 6.6.4 -> 6.6.5 Upgrade Script (Oracle) + +@@ ../default/upgrade/6.6.3-6.6.4/fix_app_name.sql diff --git a/ccm-cms-publicpersonalprofile/sql/ccm-cms-publicpersonalprofile/upgrade/postgres-6.6.4-6.6.5.sql b/ccm-cms-publicpersonalprofile/sql/ccm-cms-publicpersonalprofile/upgrade/postgres-6.6.4-6.6.5.sql new file mode 100644 index 000000000..2ae3d6b0a --- /dev/null +++ b/ccm-cms-publicpersonalprofile/sql/ccm-cms-publicpersonalprofile/upgrade/postgres-6.6.4-6.6.5.sql @@ -0,0 +1,29 @@ +-- +-- Copyright (C) 2013 Jens Pelzetter All Rights Reserved. +-- +-- This library is free software; you can redistribute it and/or +-- modify it under the terms of the GNU Lesser General Public License +-- as published by the Free Software Foundation; either version 2.1 of +-- the License, or (at your option) any later version. +-- +-- This library is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +-- Lesser General Public License for more details. +-- +-- You should have received a copy of the GNU Lesser General Public +-- License along with this library; if not, write to the Free Software +-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +-- +-- $Id$ + +-- This update is only applicable for the internal development tree at +-- University of Bremen ! Don't use for the APLAWS main trunk on +-- fedorahosted! +\echo ScientificCMS PublicPersonalProfile 6.6.4 -> 6.6.5 Upgrade Script (PostgreSQL) + +begin; + +\i ../default/upgrade/6.6.4-6.6.5/fix_app_name.sql + +commit; diff --git a/ccm-cms-publicpersonalprofile/src/META-INF/services/com.arsdigita.ui.admin.applications.ApplicationManager b/ccm-cms-publicpersonalprofile/src/META-INF/services/com.arsdigita.ui.admin.applications.ApplicationManager new file mode 100644 index 000000000..49af06a10 --- /dev/null +++ b/ccm-cms-publicpersonalprofile/src/META-INF/services/com.arsdigita.ui.admin.applications.ApplicationManager @@ -0,0 +1 @@ +com.arsdigita.cms.publicpersonalprofile.PublicPersonalProfileAppManager \ No newline at end of file diff --git a/ccm-cms-publicpersonalprofile/src/ccm-cms-publicpersonalprofile.upgrade b/ccm-cms-publicpersonalprofile/src/ccm-cms-publicpersonalprofile.upgrade index cf3a13c13..93eb65be2 100644 --- a/ccm-cms-publicpersonalprofile/src/ccm-cms-publicpersonalprofile.upgrade +++ b/ccm-cms-publicpersonalprofile/src/ccm-cms-publicpersonalprofile.upgrade @@ -9,5 +9,8 @@