From 5dcbb5e07043829e5449383eb3a274b3750ba4ea Mon Sep 17 00:00:00 2001 From: pb Date: Fri, 15 Feb 2008 16:04:19 +0000 Subject: [PATCH] ccm-core & ccm-cms incorporating MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit r1637 | chrisg23 | 2007-09-17 12:14:27 +0200 (Mo, 17 Sep 2007) Sourceforge patch 1796099 - allow URL Generators to be registered for specific content types. Requires upgrade script to be run: ccm-run ccm-cms --from-version 6.5.2 --to-version 6.5.3! ------------------------------------------------------------------------ r1638 | chrisg23 | 2007-09-17 13:48:34 +0200 (Mo, 17 Sep 2007) Sourceforge patch 1796156 - allow notes to be shown on basic properties authoring step ------------------------------------------------------------------------ r1639 | chrisg23 | 2007-09-17 15:20:13 +0200 (Mo, 17 Sep 2007) Sourceforge patch 1781131 - workaround to bypass query filtering bug if permission filtering folder contents ------------------------------------------------------------------------ r1641 | chrisg23 | 2007-09-17 15:46:27 +0200 (Mo, 17 Sep 2007) | 1 line GeƤnderte Pfade: M /trunk/ccm-core/src/com/arsdigita/notification/Notification.java Sourceforge patch 1714842 - if message delete has been specified for a notification, only delete it when the last referring notification is deleted (several notification records may refer to the same message) ------------------------------------------------------------------------ r1642 | chrisg23 | 2007-09-17 16:05:26 +0200 (Mo, 17 Sep 2007) | 1 line Sourceforge patch 1727634 - retain specified ordering when paging through folder contents (previously every time you changed to a new page it reverted to default name ordering) ------------------------------------------------------------------------ r1643 | chrisg23 | 2007-09-17 16:19:06 +0200 (Mo, 17 Sep 2007) | 1 line Sourceforge patch 1783195 - IMPORTANT BUGFIX - if you use fixed length lifecycles with expiry notifications then you are probably affected by this - notifications are not created and sent if you have relied on the default end date set by the lifecycle, only if you explicitly entered a date on the publish form. To fix the timebomb of items that are due to expire without notification, there is a command line program in package uk.gov.westsussex.wsgfl.jobs called CreateMissingNotificationPhases. Package is in ccm-wsx-wsgfl-custom module in contrib area of the repository. To use this, it is best to copy the job class and the accompanying pdl file query-missing-notification-phases to your own custom application, or else install ccm-wsx-wsgfl-custom but strip away everything except those 2 files and the initialiser - removing all bits of the initialiser except the data init. Do not add ccm-wsx-wsgfl-custom to your instance as it is, at it overrides some files in the default Aplaws installation git-svn-id: https://svn.libreccm.org/ccm/trunk@13 8810af33-2d31-482b-a856-94f89814c4df --- ccm-cms/application.xml | 6 +- .../com/arsdigita/content-section/CMSTask.pdl | 2 + .../cms_task_url_generators_upgrade.sql | 6 ++ .../ccm-cms/upgrade/oracle-se-6.5.2-6.5.3.sql | 24 ++++++++ .../ccm-cms/upgrade/postgres-6.5.2-6.5.3.sql | 26 +++++++++ ccm-cms/src/ccm-cms.upgrade | 3 + ccm-cms/src/com/arsdigita/cms/Folder.java | 31 ++++++++-- .../authoring/AdditionalDisplayComponent.java | 34 +++++++++++ .../cms/ui/authoring/SimpleEditStep.java | 31 ++++++++++ .../cms/ui/folder/FolderBrowser.java | 58 ++++++++++++------- .../ui/lifecycle/ItemLifecycleSelectForm.java | 27 ++++++--- .../com/arsdigita/cms/workflow/CMSTask.java | 22 ++++--- .../arsdigita/cms/workflow/CMSTaskType.java | 22 +++++-- .../cms/workflow/TaskEventURLGenerator.java | 42 +------------- .../com/arsdigita/bebop/PropertyEditor.java | 13 +++++ ccm-core/src/com/arsdigita/bebop/Table.java | 8 +-- .../arsdigita/bebop/table/TableHeader.java | 3 + .../arsdigita/notification/Notification.java | 13 +++++ 18 files changed, 278 insertions(+), 93 deletions(-) create mode 100644 ccm-cms/sql/ccm-cms/default/upgrade/6.5.2-6.5.3/cms_task_url_generators_upgrade.sql create mode 100644 ccm-cms/sql/ccm-cms/upgrade/oracle-se-6.5.2-6.5.3.sql create mode 100644 ccm-cms/sql/ccm-cms/upgrade/postgres-6.5.2-6.5.3.sql create mode 100644 ccm-cms/src/com/arsdigita/cms/ui/authoring/AdditionalDisplayComponent.java diff --git a/ccm-cms/application.xml b/ccm-cms/application.xml index 77cb943c4..69b3bb78b 100755 --- a/ccm-cms/application.xml +++ b/ccm-cms/application.xml @@ -2,11 +2,11 @@ - + diff --git a/ccm-cms/pdl/com/arsdigita/content-section/CMSTask.pdl b/ccm-cms/pdl/com/arsdigita/content-section/CMSTask.pdl index f407f85f5..1742f8618 100755 --- a/ccm-cms/pdl/com/arsdigita/content-section/CMSTask.pdl +++ b/ccm-cms/pdl/com/arsdigita/content-section/CMSTask.pdl @@ -16,6 +16,7 @@ model com.arsdigita.cms.workflow; import com.arsdigita.workflow.simple.*; import com.arsdigita.kernel.ACSObject; +import com.arsdigita.cms.ContentType; object type CMSTask extends UserTask { composite CMSTaskType [1..1] taskType = join cms_tasks.task_type_id to cms_task_types.task_type_id; @@ -36,6 +37,7 @@ object type CMSTaskType { object type TaskEventURLGenerator { Integer [1..1] generatorID = cms_task_url_generators.generator_id INTEGER; String [1..1] event = cms_task_url_generators.event VARCHAR(100); + ContentType [0..1] contentType = join cms_task_url_generators.content_type to content_types.type_id; String [1..1] urlGeneratorClass = cms_task_url_generators.classname VARCHAR(128); object key (generatorID); diff --git a/ccm-cms/sql/ccm-cms/default/upgrade/6.5.2-6.5.3/cms_task_url_generators_upgrade.sql b/ccm-cms/sql/ccm-cms/default/upgrade/6.5.2-6.5.3/cms_task_url_generators_upgrade.sql new file mode 100644 index 000000000..9b6ee115b --- /dev/null +++ b/ccm-cms/sql/ccm-cms/default/upgrade/6.5.2-6.5.3/cms_task_url_generators_upgrade.sql @@ -0,0 +1,6 @@ +alter table CMS_TASK_URL_GENERATORS +add (content_type INTEGER); + +alter table cms_task_url_generators add + constraint cms_tas_url_gen_con_ty_f_lz1y5 foreign key (content_type) + references content_types(type_id); diff --git a/ccm-cms/sql/ccm-cms/upgrade/oracle-se-6.5.2-6.5.3.sql b/ccm-cms/sql/ccm-cms/upgrade/oracle-se-6.5.2-6.5.3.sql new file mode 100644 index 000000000..b1c8ecce5 --- /dev/null +++ b/ccm-cms/sql/ccm-cms/upgrade/oracle-se-6.5.2-6.5.3.sql @@ -0,0 +1,24 @@ +-- +-- Copyright (C) 2007 Chris Gilbert. 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.5.2-6.5.3.sql 293 2005-02-22 15:10:39Z cgilbert $ +-- $DateTime: 2004/08/16 18:10:38 $ + +PROMPT Red Hat Enterprise CMS 6.5.2 -> 6.5.3 Upgrade Script (Oracle) + +@@ ../default/upgrade/6.5.2-6.5.3/cms_task_url_generators_upgrade.sql + diff --git a/ccm-cms/sql/ccm-cms/upgrade/postgres-6.5.2-6.5.3.sql b/ccm-cms/sql/ccm-cms/upgrade/postgres-6.5.2-6.5.3.sql new file mode 100644 index 000000000..af0f9a142 --- /dev/null +++ b/ccm-cms/sql/ccm-cms/upgrade/postgres-6.5.2-6.5.3.sql @@ -0,0 +1,26 @@ +-- +-- Copyright (C) 2007 Chris Gilbert 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: 2004/08/17 23:15:09 $ + +\echo Red Hat Enterprise CMS 6.5.2 -> 6.5.3 Upgrade Script (PostgreSQL) + +begin; + +\i ../default/upgrade/6.5.2-6.5.3/cms_task_url_generators_upgrade.sql + +commit; diff --git a/ccm-cms/src/ccm-cms.upgrade b/ccm-cms/src/ccm-cms.upgrade index e58af8441..f0ed7874b 100755 --- a/ccm-cms/src/ccm-cms.upgrade +++ b/ccm-cms/src/ccm-cms.upgrade @@ -29,5 +29,8 @@