From dc0c1ceb6ae85d6b7b7845300b67f296f3a6b8b4 Mon Sep 17 00:00:00 2001 From: pb Date: Thu, 12 May 2011 23:49:19 +0000 Subject: [PATCH] =?UTF-8?q?Erster=20Teil=20Umstellung=20cms-workspace=20un?= =?UTF-8?q?d=20cms-service=20auf=20new=20application=20type.=20Functional?= =?UTF-8?q?=20noch=20unver=C3=A4ndert.=20Release=20um=201=20erh=C3=B6ht.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.libreccm.org/ccm/trunk@906 8810af33-2d31-482b-a856-94f89814c4df --- ccm-cms/application.xml | 2 +- ccm-cms/pdl/com/arsdigita/cms/Service.pdl | 27 ++++ ccm-cms/pdl/com/arsdigita/cms/Workspace.pdl | 27 ++++ ccm-cms/src/ccm-cms.upgrade | 8 +- ccm-cms/src/com/arsdigita/cms/Loader.java | 60 +++++---- ccm-cms/src/com/arsdigita/cms/Service.java | 44 ++++++- ccm-cms/src/com/arsdigita/cms/Workspace.java | 49 +++++++- .../AddNewStyleApplicationEntries.java | 117 ++++++++++++++++++ .../src/com/arsdigita/web/Application.java | 29 +++-- .../com/arsdigita/web/ApplicationSetup.java | 32 ++--- .../com/arsdigita/web/ApplicationType.java | 41 ++++-- .../com/arsdigita/portalworkspace/Loader.java | 10 -- 12 files changed, 364 insertions(+), 82 deletions(-) create mode 100644 ccm-cms/pdl/com/arsdigita/cms/Service.pdl create mode 100644 ccm-cms/pdl/com/arsdigita/cms/Workspace.pdl create mode 100644 ccm-cms/src/com/arsdigita/cms/upgrade/AddNewStyleApplicationEntries.java diff --git a/ccm-cms/application.xml b/ccm-cms/application.xml index 0491f9bf2..e64975da0 100755 --- a/ccm-cms/application.xml +++ b/ccm-cms/application.xml @@ -2,7 +2,7 @@ diff --git a/ccm-cms/pdl/com/arsdigita/cms/Service.pdl b/ccm-cms/pdl/com/arsdigita/cms/Service.pdl new file mode 100644 index 000000000..54d7efa0e --- /dev/null +++ b/ccm-cms/pdl/com/arsdigita/cms/Service.pdl @@ -0,0 +1,27 @@ +// +// 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 +// +// $Id: Service.pdl pboy $ +model com.arsdigita.cms; + +import com.arsdigita.kernel.*; +import com.arsdigita.web.Application; + +object type Service extends Application { + // nothing to persist yet + // reference key (cms_service.service_id); +} diff --git a/ccm-cms/pdl/com/arsdigita/cms/Workspace.pdl b/ccm-cms/pdl/com/arsdigita/cms/Workspace.pdl new file mode 100644 index 000000000..545e0fe54 --- /dev/null +++ b/ccm-cms/pdl/com/arsdigita/cms/Workspace.pdl @@ -0,0 +1,27 @@ +// +// 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 +// +// $Id: Workspace.pdl pboy $ +model com.arsdigita.cms; + +import com.arsdigita.kernel.*; +import com.arsdigita.web.Application; + +object type Workspace extends Application { + // nothing to persist yet + // reference key (cms_workspace.workspace_id); +} diff --git a/ccm-cms/src/ccm-cms.upgrade b/ccm-cms/src/ccm-cms.upgrade index 9c6fee834..573e4fe5c 100755 --- a/ccm-cms/src/ccm-cms.upgrade +++ b/ccm-cms/src/ccm-cms.upgrade @@ -38,10 +38,14 @@ -