From 1f88a7bd250e9446a7de46860b6cd0e3ef2ab506 Mon Sep 17 00:00:00 2001 From: pb Date: Sat, 14 Apr 2012 23:22:50 +0000 Subject: [PATCH] Weitere Umbauten AtoZ. git-svn-id: https://svn.libreccm.org/ccm/trunk@1593 8810af33-2d31-482b-a856-94f89814c4df --- ccm-atoz-siteproxy/application.xml | 40 ++++++++++++++ .../atoz/siteproxy}/AtoZSiteProxyProvider.pdl | 2 +- .../ccm-atoz-siteproxy/oracle-se-create.sql | 3 ++ .../ccm-atoz-siteproxy/postgres-create.sql | 4 ++ .../siteproxy/AtoZSiteProxyGenerator.java | 4 +- .../arsdigita/atoz/siteproxy/Initializer.java | 51 ++++++++++++++++++ ccm-atoz/application.xml | 10 ++-- .../doc/atoz-standalone/README | 0 .../doc/atoz-standalone/bebop-define.tld | 0 .../doc/atoz-standalone/bebop-show.tld | 0 .../doc/atoz-standalone/web.xml | 0 {ccm-ldn-atoz => ccm-atoz}/doc/atoz.xsd | 0 .../upgrade/oracle-se-1.0.0-1.0.1.sql | 2 +- .../upgrade/oracle-se-1.0.2-1.0.3.sql | 2 +- .../oracle-se}/add-item_provider.sql | 0 .../oracle-se}/add-item_provider_alias.sql | 0 .../ccm-atoz/upgrade/postgres-1.0.0-1.0.1.sql | 2 +- .../ccm-atoz/upgrade/postgres-1.0.2-1.0.3.sql | 2 +- .../postgres}/add-item_provider.sql | 0 .../postgres}/add-item_provider_alias.sql | 0 .../src/WEB-INF/resources/atoz-adapters.xml | 8 +-- ccm-atoz/src/ccm-atoz.config | 5 ++ .../src/{ccm-ldn-atoz.load => ccm-atoz.load} | 10 ++-- ccm-atoz/src/ccm-atoz.upgrade | 22 ++++++++ ccm-atoz/src/ccm-ldn-atoz.config | 5 -- ccm-atoz/src/ccm-ldn-atoz.upgrade | 18 ------- ccm-atoz/src/com/arsdigita/atoz/AddAtoZ.java | 39 ++++++++++++-- ccm-atoz/src/com/arsdigita/atoz/AtoZ.java | 49 +++++++++++++---- .../com/arsdigita/atoz/AtoZAtomicEntry.java | 4 ++ .../com/arsdigita/atoz/AtoZCategoryAlias.java | 4 +- .../arsdigita/atoz/AtoZCategoryGenerator.java | 10 ++-- .../arsdigita/atoz/AtoZCategoryProvider.java | 42 +++++++++++---- .../src/com/arsdigita/atoz/AtoZConfig.java | 26 +++------ .../src/com/arsdigita/atoz/AtoZEntry.java | 2 - ...or.java => AtoZGeneratorAbstractImpl.java} | 4 +- .../com/arsdigita/atoz/AtoZItemGenerator.java | 8 +-- .../com/arsdigita/atoz/AtoZItemProvider.java | 10 ++-- .../src/com/arsdigita/atoz/AtoZProvider.java | 5 +- .../com/arsdigita/atoz/AtoZProviderType.java | 4 ++ .../src/com/arsdigita/atoz/Initializer.java | 47 ++++++++-------- ccm-atoz/src/com/arsdigita/atoz/Loader.java | 4 +- .../src/com/arsdigita/atoz/ui/AtoZPane.java | 16 ++++-- .../arsdigita/atoz/ui/admin/AdminPane.java | 3 +- .../atoz/ui/admin/CategoryProviderAdmin.java | 4 ++ .../ui/admin/CategoryProviderAliasForm.java | 14 +++++ .../ui/admin/CategoryProviderAliasList.java | 4 +- .../ui/admin/CategoryProviderBlackList.java | 6 +++ .../ui/admin/CategoryProviderBlockForm.java | 14 +++++ .../atoz/ui/admin/ProviderCreateForm.java | 2 +- ccm-atoz/src/overview.html | 17 ++++-- .../web/WEB-INF/web.ccm-atoz.xml | 8 +-- .../web/templates/ccm-atoz/admin/index.jsp | 0 .../web/templates/ccm-atoz/admin/load-cat.jsp | 0 .../web/templates/ccm-atoz/index.jsp | 0 .../themes/heirloom/apps/atoz/lib/atoz.css | 0 .../heirloom/apps/atoz/lib/category-widget.js | 0 .../themes/heirloom/apps/atoz/lib/table.css | 0 .../themes/heirloom/apps/atoz/xsl/index.xsl | 0 .../london}/atoz/terms/DomainProvider.pdl | 2 +- .../london/atoz/terms/DomainGenerator.java | 27 ++++++++-- .../london/atoz/terms/DomainProvider.java | 8 ++- .../london/atoz/terms/Initializer.java | 53 +++++++++++++++++++ .../atoz/ui/terms/DomainProviderAdmin.java | 6 +++ .../atoz/ui/terms/DomainProviderForm.java | 22 ++++++++ 64 files changed, 506 insertions(+), 148 deletions(-) create mode 100755 ccm-atoz-siteproxy/application.xml rename {ccm-atoz/pdl/com/arsdigita/atoz => ccm-atoz-siteproxy/pdl/com/arsdigita/atoz/siteproxy}/AtoZSiteProxyProvider.pdl (98%) create mode 100755 ccm-atoz-siteproxy/sql/ccm-atoz-siteproxy/oracle-se-create.sql create mode 100755 ccm-atoz-siteproxy/sql/ccm-atoz-siteproxy/postgres-create.sql create mode 100644 ccm-atoz-siteproxy/src/com/arsdigita/atoz/siteproxy/Initializer.java rename {ccm-ldn-atoz => ccm-atoz}/doc/atoz-standalone/README (100%) rename {ccm-ldn-atoz => ccm-atoz}/doc/atoz-standalone/bebop-define.tld (100%) rename {ccm-ldn-atoz => ccm-atoz}/doc/atoz-standalone/bebop-show.tld (100%) rename {ccm-ldn-atoz => ccm-atoz}/doc/atoz-standalone/web.xml (100%) rename {ccm-ldn-atoz => ccm-atoz}/doc/atoz.xsd (100%) rename ccm-atoz/sql/ccm-atoz/{oracle-se/upgrade => upgrade/oracle-se}/add-item_provider.sql (100%) rename ccm-atoz/sql/ccm-atoz/{oracle-se/upgrade => upgrade/oracle-se}/add-item_provider_alias.sql (100%) rename ccm-atoz/sql/ccm-atoz/{postgres/upgrade => upgrade/postgres}/add-item_provider.sql (100%) rename ccm-atoz/sql/ccm-atoz/{postgres/upgrade => upgrade/postgres}/add-item_provider_alias.sql (100%) create mode 100755 ccm-atoz/src/ccm-atoz.config rename ccm-atoz/src/{ccm-ldn-atoz.load => ccm-atoz.load} (70%) create mode 100755 ccm-atoz/src/ccm-atoz.upgrade delete mode 100755 ccm-atoz/src/ccm-ldn-atoz.config delete mode 100755 ccm-atoz/src/ccm-ldn-atoz.upgrade rename ccm-atoz/src/com/arsdigita/atoz/{AbstractAtoZGenerator.java => AtoZGeneratorAbstractImpl.java} (89%) rename ccm-ldn-atoz/web/WEB-INF/web.ccm-ldn-atoz.xml => ccm-atoz/web/WEB-INF/web.ccm-atoz.xml (75%) rename {ccm-ldn-atoz => ccm-atoz}/web/templates/ccm-atoz/admin/index.jsp (100%) rename {ccm-ldn-atoz => ccm-atoz}/web/templates/ccm-atoz/admin/load-cat.jsp (100%) rename {ccm-ldn-atoz => ccm-atoz}/web/templates/ccm-atoz/index.jsp (100%) rename {ccm-ldn-atoz => ccm-atoz}/web/themes/heirloom/apps/atoz/lib/atoz.css (100%) rename {ccm-ldn-atoz => ccm-atoz}/web/themes/heirloom/apps/atoz/lib/category-widget.js (100%) rename {ccm-ldn-atoz => ccm-atoz}/web/themes/heirloom/apps/atoz/lib/table.css (100%) rename {ccm-ldn-atoz => ccm-atoz}/web/themes/heirloom/apps/atoz/xsl/index.xsl (100%) rename {ccm-atoz/pdl/com/arsdigita => ccm-ldn-atoz/pdl/com/arsdigita/london}/atoz/terms/DomainProvider.pdl (95%) create mode 100644 ccm-ldn-atoz/src/com/arsdigita/london/atoz/terms/Initializer.java diff --git a/ccm-atoz-siteproxy/application.xml b/ccm-atoz-siteproxy/application.xml new file mode 100755 index 000000000..b713a8c32 --- /dev/null +++ b/ccm-atoz-siteproxy/application.xml @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + The ccm-atoz package enables a site to present all it's content in + alphabetical order as an additional service to it's users. Usually the + theme provides a link to the page as part of its static elements. + + By default the application presents the A-Z list at ~/ccm/atoz/. + + An administration interface is provided at ~/ccm/atoz/admin/. Here you + can configure the content to be listed by selecting an appropriate + content provider. + + + diff --git a/ccm-atoz/pdl/com/arsdigita/atoz/AtoZSiteProxyProvider.pdl b/ccm-atoz-siteproxy/pdl/com/arsdigita/atoz/siteproxy/AtoZSiteProxyProvider.pdl similarity index 98% rename from ccm-atoz/pdl/com/arsdigita/atoz/AtoZSiteProxyProvider.pdl rename to ccm-atoz-siteproxy/pdl/com/arsdigita/atoz/siteproxy/AtoZSiteProxyProvider.pdl index 0afc87e94..afe12daa6 100755 --- a/ccm-atoz/pdl/com/arsdigita/atoz/AtoZSiteProxyProvider.pdl +++ b/ccm-atoz-siteproxy/pdl/com/arsdigita/atoz/siteproxy/AtoZSiteProxyProvider.pdl @@ -15,7 +15,7 @@ // License along with this library; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -model com.arsdigita.london.atoz; +model com.arsdigita.atoz; import com.arsdigita.categorization.Category; diff --git a/ccm-atoz-siteproxy/sql/ccm-atoz-siteproxy/oracle-se-create.sql b/ccm-atoz-siteproxy/sql/ccm-atoz-siteproxy/oracle-se-create.sql new file mode 100755 index 000000000..c3961626c --- /dev/null +++ b/ccm-atoz-siteproxy/sql/ccm-atoz-siteproxy/oracle-se-create.sql @@ -0,0 +1,3 @@ +@ ddl/oracle-se/create.sql +@ ddl/oracle-se/deferred.sql + diff --git a/ccm-atoz-siteproxy/sql/ccm-atoz-siteproxy/postgres-create.sql b/ccm-atoz-siteproxy/sql/ccm-atoz-siteproxy/postgres-create.sql new file mode 100755 index 000000000..38209a696 --- /dev/null +++ b/ccm-atoz-siteproxy/sql/ccm-atoz-siteproxy/postgres-create.sql @@ -0,0 +1,4 @@ +begin; +\i ddl/postgres/create.sql +\i ddl/postgres/deferred.sql +end; diff --git a/ccm-atoz-siteproxy/src/com/arsdigita/atoz/siteproxy/AtoZSiteProxyGenerator.java b/ccm-atoz-siteproxy/src/com/arsdigita/atoz/siteproxy/AtoZSiteProxyGenerator.java index 5cbe26eaa..1d0577677 100755 --- a/ccm-atoz-siteproxy/src/com/arsdigita/atoz/siteproxy/AtoZSiteProxyGenerator.java +++ b/ccm-atoz-siteproxy/src/com/arsdigita/atoz/siteproxy/AtoZSiteProxyGenerator.java @@ -17,7 +17,7 @@ */ package com.arsdigita.atoz.siteproxy; -import com.arsdigita.atoz.AbstractAtoZGenerator; +import com.arsdigita.atoz.AtoZGeneratorAbstractImpl; import com.arsdigita.atoz.AtoZAtomicEntry; import com.arsdigita.atoz.AtoZCompoundEntry; import com.arsdigita.atoz.AtoZEntry; @@ -37,7 +37,7 @@ import com.arsdigita.web.URL; import com.arsdigita.web.Web; import com.arsdigita.xml.Element; -public class AtoZSiteProxyGenerator extends AbstractAtoZGenerator { +public class AtoZSiteProxyGenerator extends AtoZGeneratorAbstractImpl { /** * Compound Entry for mathched Categories diff --git a/ccm-atoz-siteproxy/src/com/arsdigita/atoz/siteproxy/Initializer.java b/ccm-atoz-siteproxy/src/com/arsdigita/atoz/siteproxy/Initializer.java new file mode 100644 index 000000000..44187cd82 --- /dev/null +++ b/ccm-atoz-siteproxy/src/com/arsdigita/atoz/siteproxy/Initializer.java @@ -0,0 +1,51 @@ +/* + * Copyright (C) 2012 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 + */ + +package com.arsdigita.atoz.siteproxy; + +import com.arsdigita.atoz.AtoZ; +import com.arsdigita.atoz.AtoZProviderType; +import com.arsdigita.atoz.siteproxy.ui.admin.SiteProxyProviderAdmin; +import com.arsdigita.atoz.siteproxy.ui.admin.SiteProxyProviderForm; +import com.arsdigita.runtime.CompoundInitializer; +import com.arsdigita.runtime.DomainInitEvent; + +/** + * + * @author pb + */ +public class Initializer extends CompoundInitializer { + + /** + * + * @param evt + */ + @Override + public void init(DomainInitEvent evt) { + super.init(evt); + + AtoZ.registerProviderType( + new AtoZProviderType("SiteProxy Provider", + "Provides a SiteProxy A-Z", + AtoZSiteProxyProvider.class, + SiteProxyProviderForm.class, + SiteProxyProviderAdmin.class)); + + } + +} diff --git a/ccm-atoz/application.xml b/ccm-atoz/application.xml index 18fbaf154..41c980215 100755 --- a/ccm-atoz/application.xml +++ b/ccm-atoz/application.xml @@ -1,8 +1,8 @@ @@ -14,14 +14,18 @@ + + + - The ccm-ldn-atoz package enables a site to present all it's content in + The ccm-atoz package enables a site to present all it's content in alphabetical order as an additional service to it's users. Usually the theme provides a link to the page as part of its static elements. diff --git a/ccm-ldn-atoz/doc/atoz-standalone/README b/ccm-atoz/doc/atoz-standalone/README similarity index 100% rename from ccm-ldn-atoz/doc/atoz-standalone/README rename to ccm-atoz/doc/atoz-standalone/README diff --git a/ccm-ldn-atoz/doc/atoz-standalone/bebop-define.tld b/ccm-atoz/doc/atoz-standalone/bebop-define.tld similarity index 100% rename from ccm-ldn-atoz/doc/atoz-standalone/bebop-define.tld rename to ccm-atoz/doc/atoz-standalone/bebop-define.tld diff --git a/ccm-ldn-atoz/doc/atoz-standalone/bebop-show.tld b/ccm-atoz/doc/atoz-standalone/bebop-show.tld similarity index 100% rename from ccm-ldn-atoz/doc/atoz-standalone/bebop-show.tld rename to ccm-atoz/doc/atoz-standalone/bebop-show.tld diff --git a/ccm-ldn-atoz/doc/atoz-standalone/web.xml b/ccm-atoz/doc/atoz-standalone/web.xml similarity index 100% rename from ccm-ldn-atoz/doc/atoz-standalone/web.xml rename to ccm-atoz/doc/atoz-standalone/web.xml diff --git a/ccm-ldn-atoz/doc/atoz.xsd b/ccm-atoz/doc/atoz.xsd similarity index 100% rename from ccm-ldn-atoz/doc/atoz.xsd rename to ccm-atoz/doc/atoz.xsd diff --git a/ccm-atoz/sql/ccm-atoz/upgrade/oracle-se-1.0.0-1.0.1.sql b/ccm-atoz/sql/ccm-atoz/upgrade/oracle-se-1.0.0-1.0.1.sql index e64c2b21f..727d9935d 100755 --- a/ccm-atoz/sql/ccm-atoz/upgrade/oracle-se-1.0.0-1.0.1.sql +++ b/ccm-atoz/sql/ccm-atoz/upgrade/oracle-se-1.0.0-1.0.1.sql @@ -1 +1 @@ -@@ ../oracle-se/upgrade/add-item_provider.sql +@@ oracle-se/add-item_provider.sql diff --git a/ccm-atoz/sql/ccm-atoz/upgrade/oracle-se-1.0.2-1.0.3.sql b/ccm-atoz/sql/ccm-atoz/upgrade/oracle-se-1.0.2-1.0.3.sql index 8787edf8d..90c13ee56 100755 --- a/ccm-atoz/sql/ccm-atoz/upgrade/oracle-se-1.0.2-1.0.3.sql +++ b/ccm-atoz/sql/ccm-atoz/upgrade/oracle-se-1.0.2-1.0.3.sql @@ -1 +1 @@ -@@ ../oracle-se/upgrade/add-item_provider_alias.sql +@@ oracle-se/add-item_provider_alias.sql diff --git a/ccm-atoz/sql/ccm-atoz/oracle-se/upgrade/add-item_provider.sql b/ccm-atoz/sql/ccm-atoz/upgrade/oracle-se/add-item_provider.sql similarity index 100% rename from ccm-atoz/sql/ccm-atoz/oracle-se/upgrade/add-item_provider.sql rename to ccm-atoz/sql/ccm-atoz/upgrade/oracle-se/add-item_provider.sql diff --git a/ccm-atoz/sql/ccm-atoz/oracle-se/upgrade/add-item_provider_alias.sql b/ccm-atoz/sql/ccm-atoz/upgrade/oracle-se/add-item_provider_alias.sql similarity index 100% rename from ccm-atoz/sql/ccm-atoz/oracle-se/upgrade/add-item_provider_alias.sql rename to ccm-atoz/sql/ccm-atoz/upgrade/oracle-se/add-item_provider_alias.sql diff --git a/ccm-atoz/sql/ccm-atoz/upgrade/postgres-1.0.0-1.0.1.sql b/ccm-atoz/sql/ccm-atoz/upgrade/postgres-1.0.0-1.0.1.sql index 5b6ac730e..b30b645e3 100755 --- a/ccm-atoz/sql/ccm-atoz/upgrade/postgres-1.0.0-1.0.1.sql +++ b/ccm-atoz/sql/ccm-atoz/upgrade/postgres-1.0.0-1.0.1.sql @@ -1,3 +1,3 @@ begin; -\i ../postgres/upgrade/add-item_provider.sql +\i postgres/add-item_provider.sql commit; diff --git a/ccm-atoz/sql/ccm-atoz/upgrade/postgres-1.0.2-1.0.3.sql b/ccm-atoz/sql/ccm-atoz/upgrade/postgres-1.0.2-1.0.3.sql index e67d8ec46..0b34319c2 100755 --- a/ccm-atoz/sql/ccm-atoz/upgrade/postgres-1.0.2-1.0.3.sql +++ b/ccm-atoz/sql/ccm-atoz/upgrade/postgres-1.0.2-1.0.3.sql @@ -1,3 +1,3 @@ begin; -\i ../postgres/upgrade/add-item_provider_alias.sql +\i postgres/add-item_provider_alias.sql commit; diff --git a/ccm-atoz/sql/ccm-atoz/postgres/upgrade/add-item_provider.sql b/ccm-atoz/sql/ccm-atoz/upgrade/postgres/add-item_provider.sql similarity index 100% rename from ccm-atoz/sql/ccm-atoz/postgres/upgrade/add-item_provider.sql rename to ccm-atoz/sql/ccm-atoz/upgrade/postgres/add-item_provider.sql diff --git a/ccm-atoz/sql/ccm-atoz/postgres/upgrade/add-item_provider_alias.sql b/ccm-atoz/sql/ccm-atoz/upgrade/postgres/add-item_provider_alias.sql similarity index 100% rename from ccm-atoz/sql/ccm-atoz/postgres/upgrade/add-item_provider_alias.sql rename to ccm-atoz/sql/ccm-atoz/upgrade/postgres/add-item_provider_alias.sql diff --git a/ccm-atoz/src/WEB-INF/resources/atoz-adapters.xml b/ccm-atoz/src/WEB-INF/resources/atoz-adapters.xml index 429fe0928..917b4a87e 100755 --- a/ccm-atoz/src/WEB-INF/resources/atoz-adapters.xml +++ b/ccm-atoz/src/WEB-INF/resources/atoz-adapters.xml @@ -4,8 +4,8 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://rhea.redhat.com/schemas/waf/xml-renderer-rules xml-renderer-rules.xsd"> - - + + @@ -14,9 +14,9 @@ - + - + diff --git a/ccm-atoz/src/ccm-atoz.config b/ccm-atoz/src/ccm-atoz.config new file mode 100755 index 000000000..1c35d0e33 --- /dev/null +++ b/ccm-atoz/src/ccm-atoz.config @@ -0,0 +1,5 @@ + + + + diff --git a/ccm-atoz/src/ccm-ldn-atoz.load b/ccm-atoz/src/ccm-atoz.load similarity index 70% rename from ccm-atoz/src/ccm-ldn-atoz.load rename to ccm-atoz/src/ccm-atoz.load index 5a5c61b25..3d3de4fbc 100755 --- a/ccm-atoz/src/ccm-ldn-atoz.load +++ b/ccm-atoz/src/ccm-atoz.load @@ -1,4 +1,5 @@ +
@@ -6,12 +7,15 @@ +
- + + - - + + + diff --git a/ccm-atoz/src/ccm-atoz.upgrade b/ccm-atoz/src/ccm-atoz.upgrade new file mode 100755 index 000000000..71f6dc794 --- /dev/null +++ b/ccm-atoz/src/ccm-atoz.upgrade @@ -0,0 +1,22 @@ + + +