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 @@ + + +