From cb5e7b81306a7ed455caa4f5a4fd309fc8284b06 Mon Sep 17 00:00:00 2001 From: pb Date: Wed, 4 May 2011 14:53:25 +0000 Subject: [PATCH] Umstellung core portal auf legacy free application type. Update script enthalten! git-svn-id: https://svn.libreccm.org/ccm/trunk@894 8810af33-2d31-482b-a856-94f89814c4df --- ccm-core/application.xml | 4 +- .../6.6.2-6.6.3/remove_legacy_portal.sql | 22 ++++++++++ .../upgrade/oracle-se-6.6.2-6.6.3.sql | 25 ++++++++++++ .../ccm-core/upgrade/postgres-6.6.2-6.6.3.sql | 29 ++++++++++++++ ccm-core/src/ccm-core.upgrade | 5 ++- .../com/arsdigita/kernel/ResourceType.java | 27 ++++++++++--- .../src/com/arsdigita/loader/CoreLoader.java | 10 ++++- .../src/com/arsdigita/portal/PortletType.java | 40 +++++++++++++------ .../ui/DefaultWorkspaceSelectionModel.java | 2 +- 9 files changed, 141 insertions(+), 23 deletions(-) create mode 100644 ccm-core/sql/ccm-core/default/upgrade/6.6.2-6.6.3/remove_legacy_portal.sql create mode 100644 ccm-core/sql/ccm-core/upgrade/oracle-se-6.6.2-6.6.3.sql create mode 100644 ccm-core/sql/ccm-core/upgrade/postgres-6.6.2-6.6.3.sql diff --git a/ccm-core/application.xml b/ccm-core/application.xml index 6cc6a9fe2..96134a03f 100755 --- a/ccm-core/application.xml +++ b/ccm-core/application.xml @@ -2,8 +2,8 @@ diff --git a/ccm-core/sql/ccm-core/default/upgrade/6.6.2-6.6.3/remove_legacy_portal.sql b/ccm-core/sql/ccm-core/default/upgrade/6.6.2-6.6.3/remove_legacy_portal.sql new file mode 100644 index 000000000..e47fc0557 --- /dev/null +++ b/ccm-core/sql/ccm-core/default/upgrade/6.6.2-6.6.3/remove_legacy_portal.sql @@ -0,0 +1,22 @@ +-- +-- 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: remove_legacy_portal.sql pboy $ + +-- delete core portals legacy entry in apm_package_types +-- there es no entry in acs_objects! + +delete from apm_package_types + where package_key like 'portal' ; \ No newline at end of file diff --git a/ccm-core/sql/ccm-core/upgrade/oracle-se-6.6.2-6.6.3.sql b/ccm-core/sql/ccm-core/upgrade/oracle-se-6.6.2-6.6.3.sql new file mode 100644 index 000000000..f29d5d6fb --- /dev/null +++ b/ccm-core/sql/ccm-core/upgrade/oracle-se-6.6.2-6.6.3.sql @@ -0,0 +1,25 @@ +-- +-- Copyright (C) 2008 Peter Boy 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: oracle-se-6.6.2-6.6.3.sql 293 2011-01-07 15:10:39Z pboy $ + +PROMPT Red Hat Enterprise CORE 6.6.1 -> 6.6.2 Upgrade Script (Oracle) + +-- delete core portals entry in apm_package_types +-- there es no entry in acs_objects! + +@@ ../default/upgrade/6.6.2-6.6.3/remove_legacy_portal.sql diff --git a/ccm-core/sql/ccm-core/upgrade/postgres-6.6.2-6.6.3.sql b/ccm-core/sql/ccm-core/upgrade/postgres-6.6.2-6.6.3.sql new file mode 100644 index 000000000..ee3a9f707 --- /dev/null +++ b/ccm-core/sql/ccm-core/upgrade/postgres-6.6.2-6.6.3.sql @@ -0,0 +1,29 @@ +-- +-- Copyright (C) 2011 Peter Boy 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 +-- +-- $DateTime: 2011/05/10 23:15:09 $ + +\echo Red Hat Enterprise CORE 6.6.2 -> 6.6.3 Upgrade Script (PostgreSQL) + +-- delete core portals entry in apm_package_types +-- there es no entry in acs_objects! + +begin; + +\i ../default/upgrade/6.6.2-6.6.3/remove_legacy_portal.sql + +commit; diff --git a/ccm-core/src/ccm-core.upgrade b/ccm-core/src/ccm-core.upgrade index 1805e7fc3..7d783752c 100755 --- a/ccm-core/src/ccm-core.upgrade +++ b/ccm-core/src/ccm-core.upgrade @@ -38,6 +38,9 @@