diff --git a/ccm-ldn-types-councillor/application.xml b/ccm-ldn-types-councillor/application.xml index 7d65aa9b0..984b0a4d3 100644 --- a/ccm-ldn-types-councillor/application.xml +++ b/ccm-ldn-types-councillor/application.xml @@ -1,16 +1,16 @@ - + - + @@ -26,7 +26,9 @@ - The Address Content Type for the Red Hat CCM CMS. + The Councillor Content Type for APLAWS+. + + It's a refactoring of the Coventry contribution's Councillor content type. diff --git a/ccm-ldn-types-councillor/application_person.xml b/ccm-ldn-types-councillor/application_person.xml deleted file mode 100644 index e818b6f7d..000000000 --- a/ccm-ldn-types-councillor/application_person.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - The Address Content Type for the Red Hat CCM CMS. - - - diff --git a/ccm-ldn-types-councillor/pdl/com/arsdigita/london/contenttypes/Councillor.pdl b/ccm-ldn-types-councillor/pdl/com/arsdigita/cms/contenttypes/ldn/Councillor.pdl similarity index 81% rename from ccm-ldn-types-councillor/pdl/com/arsdigita/london/contenttypes/Councillor.pdl rename to ccm-ldn-types-councillor/pdl/com/arsdigita/cms/contenttypes/ldn/Councillor.pdl index a982f24a4..c602ed99a 100644 --- a/ccm-ldn-types-councillor/pdl/com/arsdigita/london/contenttypes/Councillor.pdl +++ b/ccm-ldn-types-councillor/pdl/com/arsdigita/cms/contenttypes/ldn/Councillor.pdl @@ -16,12 +16,14 @@ model com.arsdigita.coventry.cms.contenttypes; -import com.arsdigita.cms.TextPage; -import com.arsdigita.coventry.cms.contenttypes.Person; +// import com.arsdigita.cms.TextPage; Had been merged into ContentPage +import com.arsdigita.cms.ContentPage; +//import com.arsdigita.coventry.cms.contenttypes.Person; +import com.arsdigita.cms.contenttypes.ldn.Person; // object type to hold extended attributes of event content type -object type Councillor extends com.arsdigita.coventry.cms.contenttypes.Person { +object type Councillor extends com.arsdigita.cms.contenttypes.ldn.Person { String [0..1] position = cov_councillors.position VARCHAR(4000); String [0..1] politicalParty = cov_councillors.political_party VARCHAR(1000); String [0..1] ward = cov_councillors.ward VARCHAR(1000); diff --git a/ccm-ldn-types-councillor/pdl/com/arsdigita/london/contenttypes/Person.pdl b/ccm-ldn-types-councillor/pdl/com/arsdigita/cms/contenttypes/ldn/Person.pdl similarity index 89% rename from ccm-ldn-types-councillor/pdl/com/arsdigita/london/contenttypes/Person.pdl rename to ccm-ldn-types-councillor/pdl/com/arsdigita/cms/contenttypes/ldn/Person.pdl index d45bc6ef9..1dd7c2400 100644 --- a/ccm-ldn-types-councillor/pdl/com/arsdigita/london/contenttypes/Person.pdl +++ b/ccm-ldn-types-councillor/pdl/com/arsdigita/cms/contenttypes/ldn/Person.pdl @@ -16,11 +16,12 @@ model com.arsdigita.coventry.cms.contenttypes; -import com.arsdigita.cms.TextPage; +// import com.arsdigita.cms.TextPage; +import com.arsdigita.cms.ContentPage; // object type to hold extended attributes of event content type -object type Person extends TextPage { +object type Person extends ContentPage { String [0..1] description = cov_persons.description VARCHAR(4000); String [0..1] contactDetails = cov_persons.contact_details VARCHAR(4000); reference key (cov_persons.item_id); diff --git a/ccm-ldn-types-councillor/src/WEB-INF/content-types/com/arsdigita/cms/contenttypes/ldn/Councillor.xml b/ccm-ldn-types-councillor/src/WEB-INF/content-types/com/arsdigita/cms/contenttypes/ldn/Councillor.xml index 3bfc3ea72..ab16c98d3 100644 --- a/ccm-ldn-types-councillor/src/WEB-INF/content-types/com/arsdigita/cms/contenttypes/ldn/Councillor.xml +++ b/ccm-ldn-types-councillor/src/WEB-INF/content-types/com/arsdigita/cms/contenttypes/ldn/Councillor.xml @@ -2,8 +2,8 @@ + objectType="com.arsdigita.cms.contenttypes.ldn.Councillor" + classname="com.arsdigita.cms.contenttypes.ldn.Councillor"> diff --git a/ccm-ldn-types-councillor/src/WEB-INF/content-types/com/arsdigita/cms/contenttypes/ldn/Person.xml b/ccm-ldn-types-councillor/src/WEB-INF/content-types/com/arsdigita/cms/contenttypes/ldn/Person.xml index ef5b12d09..30ac346ed 100644 --- a/ccm-ldn-types-councillor/src/WEB-INF/content-types/com/arsdigita/cms/contenttypes/ldn/Person.xml +++ b/ccm-ldn-types-councillor/src/WEB-INF/content-types/com/arsdigita/cms/contenttypes/ldn/Person.xml @@ -2,8 +2,8 @@ + objectType="com.arsdigita.cms.contenttypes.ldn.Person" + classname="com.arsdigita.cms.contenttypes.ldn.Person"> diff --git a/ccm-ldn-types-councillor/src/WEB-INF/traversal-adapters/com/arsdigita/cms/contenttypes/ldn/Councillor.xml b/ccm-ldn-types-councillor/src/WEB-INF/traversal-adapters/com/arsdigita/cms/contenttypes/ldn/Councillor.xml index 8ae90dc9d..730c6b3b1 100644 --- a/ccm-ldn-types-councillor/src/WEB-INF/traversal-adapters/com/arsdigita/cms/contenttypes/ldn/Councillor.xml +++ b/ccm-ldn-types-councillor/src/WEB-INF/traversal-adapters/com/arsdigita/cms/contenttypes/ldn/Councillor.xml @@ -1,8 +1,12 @@ - + - + diff --git a/ccm-ldn-types-councillor/src/com/arsdigita/cms/contenttypes/ldn/CouncillorLoader.java b/ccm-ldn-types-councillor/src/com/arsdigita/cms/contenttypes/ldn/CouncillorLoader.java index 9c791e90f..048ff14e1 100644 --- a/ccm-ldn-types-councillor/src/com/arsdigita/cms/contenttypes/ldn/CouncillorLoader.java +++ b/ccm-ldn-types-councillor/src/com/arsdigita/cms/contenttypes/ldn/CouncillorLoader.java @@ -15,23 +15,20 @@ package com.arsdigita.cms.contenttypes.ldn; +import com.arsdigita.cms.contenttypes.AbstractContentTypeLoader; + /** * Loader. * * @author Justin Ross <jross@redhat.com> - * @version $Id: CouncillorLoader.java 1489 2007-03-19 11:39:58Z apevec $ */ public class CouncillorLoader extends AbstractContentTypeLoader { - public final static String versionId = - "$Id: CouncillorLoader.java 1489 2007-03-19 11:39:58Z apevec $" + - "$Author: apevec $" + - "$DateTime: 2003/12/19 16:20:50 $"; - private static final String[] TYPES = { - "/WEB-INF/content-types/com/arsdigita/coventry/cms/contenttypes/Councillor.xml" + "/WEB-INF/content-types/com/arsdigita/cms/contenttypes/ldn/Councillor.xml" }; + @Override public String[] getTypes() { return TYPES; }