diff --git a/ccm-auth-http/doc/standalone-conf/README b/ccm-auth-http/doc/standalone-conf/README index 71fd0a1a3..ad4c31653 100644 --- a/ccm-auth-http/doc/standalone-conf/README +++ b/ccm-auth-http/doc/standalone-conf/README @@ -10,7 +10,7 @@ modifications are necessary: 2. move the files in this dir to WEB-INF/ 3. change src/com/ad/auth/http/HTTPAuth.java method getServletContext() as back to "/files" -4. edit __ccm__/.../xsl/index.xsl according the comment +4. edit themes__ccm__/.../xsl/index.xsl according the comment Running it in its own webapplication context nevertheless is not suggestive. diff --git a/ccm-bundle/bundles/demo/cfg/web-sci.xml b/ccm-bundle/bundles/demo/cfg/web-sci.xml index 55290512c..80b7470b2 100644 --- a/ccm-bundle/bundles/demo/cfg/web-sci.xml +++ b/ccm-bundle/bundles/demo/cfg/web-sci.xml @@ -334,7 +334,7 @@ portlet-type-xsl - /__ccm__/servlet/portlet-type/* + /themes/servlet/portlet-type/* @@ -410,7 +410,7 @@ reg - /__ccm__/null/reg/* + /themes/null/reg/* @@ -420,7 +420,7 @@ legacy-adapter - /__ccm__/servlet/legacy-adapter/* + /themes/servlet/legacy-adapter/* @@ -455,22 +455,22 @@ content-section - /__ccm__/servlet/content-section/* + /themes/servlet/content-section/* content-item-xsl - /__ccm__/servlet/content-item/* + /themes/servlet/content-item/* content-type-xsl - /__ccm__/servlet/content-type/* + /themes/servlet/content-type/* template-xsl - /__ccm__/servlet/template/* + /themes/servlet/template/* diff --git a/ccm-bundle/bundles/devel/cfg/web-sci.xml b/ccm-bundle/bundles/devel/cfg/web-sci.xml index dc01134c3..af99c77aa 100644 --- a/ccm-bundle/bundles/devel/cfg/web-sci.xml +++ b/ccm-bundle/bundles/devel/cfg/web-sci.xml @@ -334,7 +334,7 @@ portlet-type-xsl - /__ccm__/servlet/portlet-type/* + /themes/servlet/portlet-type/* @@ -410,7 +410,7 @@ reg - /__ccm__/null/reg/* + /themes/null/reg/* @@ -420,7 +420,7 @@ legacy-adapter - /__ccm__/servlet/legacy-adapter/* + /themes/servlet/legacy-adapter/* @@ -455,22 +455,22 @@ content-section - /__ccm__/servlet/content-section/* + /themes/servlet/content-section/* content-item-xsl - /__ccm__/servlet/content-item/* + /themes/servlet/content-item/* content-type-xsl - /__ccm__/servlet/content-type/* + /themes/servlet/content-type/* template-xsl - /__ccm__/servlet/template/* + /themes/servlet/template/* diff --git a/ccm-bundle/src/WEB-INF/resources/librecms-stylesheet-paths.txt b/ccm-bundle/src/WEB-INF/resources/librecms-stylesheet-paths.txt index df964c308..45183ff38 100644 --- a/ccm-bundle/src/WEB-INF/resources/librecms-stylesheet-paths.txt +++ b/ccm-bundle/src/WEB-INF/resources/librecms-stylesheet-paths.txt @@ -4,11 +4,11 @@ # the full story. # Output type is for things such as text/javascript -http://::host::/resource/::webapp::/__ccm__/apps/::application::/xsl/::url::-::outputtype::-::locale::.xsl -http://::host::/resource/::webapp::/__ccm__/apps/::application::/xsl/::url::-::outputtype::.xsl +http://::host::/resource/::webapp::/themes/heirloom/apps/::application::/xsl/::url::-::outputtype::-::locale::.xsl +http://::host::/resource/::webapp::/themes/heirloom/apps/::application::/xsl/::url::-::outputtype::.xsl # Grabs custom item xsl for CMS -http://::host::/__ccm__/servlet/content-item/index.xsl?oid=::item_template_oid::&delegated=::item_delegated_url:: +http://::host::/themes/servlet/content-item/index.xsl?oid=::item_template_oid::&delegated=::item_delegated_url:: # added by Quasimodo # Theme with single entry point (e.g Mandalay) @@ -37,8 +37,8 @@ http://::host::/resource/ROOT/__ccm__/themes/aplaws-generic/::application::-::ur http://::host::/resource/ROOT/__ccm__/themes/aplaws-generic/::application::-::url::.xsl # Global default, from application's own web app -http://::host::/resource/::webapp::/__ccm__/apps/::application::/xsl/::url::-::locale::.xsl -http://::host::/resource/::webapp::/__ccm__/apps/::application::/xsl/::url::.xsl +http://::host::/resource/::webapp::/themes/heirloom/apps/::application::/xsl/::url::-::locale::.xsl +http://::host::/resource/::webapp::/themes/heirloom/apps/::application::/xsl/::url::.xsl # Global default, from application's own web app - relocated version >= 6.6.1 http://::host::/resource/ROOT/themes/heirloom/apps/::application::/xsl/::url::-::locale::.xsl diff --git a/ccm-bundle/web/themes/static/aplaws-generic/admin-index.xsl b/ccm-bundle/web/themes/static/aplaws-generic/admin-index.xsl index fa0b5ad35..86bc861d2 100644 --- a/ccm-bundle/web/themes/static/aplaws-generic/admin-index.xsl +++ b/ccm-bundle/web/themes/static/aplaws-generic/admin-index.xsl @@ -4,7 +4,7 @@ xmlns:aplaws="http://www.arsdigita.com/aplaws/1.0" version="1.0"> diff --git a/ccm-bundle/web/themes/static/aplaws-generic/atoz-admin.xsl.NotUsedForNow b/ccm-bundle/web/themes/static/aplaws-generic/atoz-admin.xsl.NotUsedForNow index c5ca40b98..f93dc8a51 100644 --- a/ccm-bundle/web/themes/static/aplaws-generic/atoz-admin.xsl.NotUsedForNow +++ b/ccm-bundle/web/themes/static/aplaws-generic/atoz-admin.xsl.NotUsedForNow @@ -5,11 +5,11 @@ version="1.0"> - + diff --git a/ccm-bundle/web/themes/static/aplaws-generic/atoz-index.xsl.NotUsedForNow b/ccm-bundle/web/themes/static/aplaws-generic/atoz-index.xsl.NotUsedForNow index c8351bdd8..5b4d689da 100644 --- a/ccm-bundle/web/themes/static/aplaws-generic/atoz-index.xsl.NotUsedForNow +++ b/ccm-bundle/web/themes/static/aplaws-generic/atoz-index.xsl.NotUsedForNow @@ -12,12 +12,12 @@ version="1.0"> - + diff --git a/ccm-bundle/web/themes/static/aplaws-generic/css/wysiwyg.css b/ccm-bundle/web/themes/static/aplaws-generic/css/wysiwyg.css index 2b9fd37ca..2806df3c4 100644 --- a/ccm-bundle/web/themes/static/aplaws-generic/css/wysiwyg.css +++ b/ccm-bundle/web/themes/static/aplaws-generic/css/wysiwyg.css @@ -13,5 +13,5 @@ color: #6F3 !important; .dark { color: #336 !important; -font-style: bold !important; +font-weight: bold !important; } diff --git a/ccm-bundle/web/themes/static/aplaws-generic/forum-example/categorised-forum/forum-categories.xsl b/ccm-bundle/web/themes/static/aplaws-generic/forum-example/categorised-forum/forum-categories.xsl index 1d6994b9b..5c8293890 100644 --- a/ccm-bundle/web/themes/static/aplaws-generic/forum-example/categorised-forum/forum-categories.xsl +++ b/ccm-bundle/web/themes/static/aplaws-generic/forum-example/categorised-forum/forum-categories.xsl @@ -9,13 +9,13 @@ version="1.0"> - - + + diff --git a/ccm-bundle/web/themes/static/aplaws-generic/lib/head.xsl b/ccm-bundle/web/themes/static/aplaws-generic/lib/head.xsl index 2cb038b97..74c7e90c3 100644 --- a/ccm-bundle/web/themes/static/aplaws-generic/lib/head.xsl +++ b/ccm-bundle/web/themes/static/aplaws-generic/lib/head.xsl @@ -26,7 +26,7 @@ diff --git a/ccm-bundle/web/themes/static/aplaws-generic/navigation-admin.xsl b/ccm-bundle/web/themes/static/aplaws-generic/navigation-admin.xsl index 6233f0d7a..ce8f82af0 100644 --- a/ccm-bundle/web/themes/static/aplaws-generic/navigation-admin.xsl +++ b/ccm-bundle/web/themes/static/aplaws-generic/navigation-admin.xsl @@ -4,7 +4,7 @@ xmlns:aplaws="http://www.arsdigita.com/aplaws/1.0" version="1.0"> - + diff --git a/ccm-bundle/web/themes/static/aplaws-generic/portal-workspace-index.xsl b/ccm-bundle/web/themes/static/aplaws-generic/portal-workspace-index.xsl index dc71550d2..e95f5a4e1 100644 --- a/ccm-bundle/web/themes/static/aplaws-generic/portal-workspace-index.xsl +++ b/ccm-bundle/web/themes/static/aplaws-generic/portal-workspace-index.xsl @@ -11,7 +11,7 @@ exclude-result-prefixes="xsl bebop aplaws ui cms nav search portal" version="1.0"> - + diff --git a/ccm-bundle/web/themes/static/aplaws-generic/portal-workspace-portal-admin.xsl b/ccm-bundle/web/themes/static/aplaws-generic/portal-workspace-portal-admin.xsl index 10f65c812..39445320e 100644 --- a/ccm-bundle/web/themes/static/aplaws-generic/portal-workspace-portal-admin.xsl +++ b/ccm-bundle/web/themes/static/aplaws-generic/portal-workspace-portal-admin.xsl @@ -4,7 +4,7 @@ xmlns:aplaws="http://www.arsdigita.com/aplaws/1.0" version="1.0"> - + diff --git a/ccm-bundle/web/themes/static/aplaws-generic/search-admin.xsl b/ccm-bundle/web/themes/static/aplaws-generic/search-admin.xsl index 06891ba23..9dbf624ce 100644 --- a/ccm-bundle/web/themes/static/aplaws-generic/search-admin.xsl +++ b/ccm-bundle/web/themes/static/aplaws-generic/search-admin.xsl @@ -12,10 +12,10 @@ version="1.0"> - + diff --git a/ccm-bundle/web/themes/static/aplaws-generic/search-index.xsl b/ccm-bundle/web/themes/static/aplaws-generic/search-index.xsl index 11e9e9d3d..e99b1915f 100644 --- a/ccm-bundle/web/themes/static/aplaws-generic/search-index.xsl +++ b/ccm-bundle/web/themes/static/aplaws-generic/search-index.xsl @@ -16,12 +16,12 @@ - + diff --git a/ccm-bundle/web/themes/static/aplaws-generic/shortcuts-index.xsl b/ccm-bundle/web/themes/static/aplaws-generic/shortcuts-index.xsl index e55ae29e9..5eed7c16a 100644 --- a/ccm-bundle/web/themes/static/aplaws-generic/shortcuts-index.xsl +++ b/ccm-bundle/web/themes/static/aplaws-generic/shortcuts-index.xsl @@ -5,7 +5,7 @@ version="1.0"> diff --git a/ccm-bundle/web/themes/static/aplaws-generic/subsite-index.xsl b/ccm-bundle/web/themes/static/aplaws-generic/subsite-index.xsl index 1a894e0f5..ecc001850 100644 --- a/ccm-bundle/web/themes/static/aplaws-generic/subsite-index.xsl +++ b/ccm-bundle/web/themes/static/aplaws-generic/subsite-index.xsl @@ -5,7 +5,7 @@ version="1.0"> diff --git a/ccm-bundle/web/themes/static/aplaws-generic/terms-index.css b/ccm-bundle/web/themes/static/aplaws-generic/terms-index.css index 44cf9f315..fad9728a2 100644 --- a/ccm-bundle/web/themes/static/aplaws-generic/terms-index.css +++ b/ccm-bundle/web/themes/static/aplaws-generic/terms-index.css @@ -1,6 +1,6 @@ @import url(../../heirloom/css/acs-master.css); /* Following import is valid if terms is executed in its own */ /* web application context (ccm-ldn-terms) */ -/* @import url(/ccm-ldn-terms/__ccm__/apps/terms/xsl/index.css); */ +/* @import url(/ccm-ldn-terms/themes/heirloom/apps/terms/xsl/index.css); */ /* import if installed in the main (common) web context */ @import url(../../heirloom/apps/terms/xsl/index.css); diff --git a/ccm-bundle/web/themes/static/aplaws-generic/theme-index.xsl b/ccm-bundle/web/themes/static/aplaws-generic/theme-index.xsl index 3f85303aa..ffa4f5003 100644 --- a/ccm-bundle/web/themes/static/aplaws-generic/theme-index.xsl +++ b/ccm-bundle/web/themes/static/aplaws-generic/theme-index.xsl @@ -5,7 +5,7 @@ version="1.0"> diff --git a/ccm-bundle/web/themes/static/aplaws-generic/types/ContentTypes.xsl b/ccm-bundle/web/themes/static/aplaws-generic/types/ContentTypes.xsl index c859b5697..3a2c402c5 100644 --- a/ccm-bundle/web/themes/static/aplaws-generic/types/ContentTypes.xsl +++ b/ccm-bundle/web/themes/static/aplaws-generic/types/ContentTypes.xsl @@ -10,7 +10,7 @@ - + diff --git a/ccm-cms-assets-notes/src/com/arsdigita/cms/contentassets/NotesInitializer.java b/ccm-cms-assets-notes/src/com/arsdigita/cms/contentassets/NotesInitializer.java index 5ae542b48..a97193b3f 100755 --- a/ccm-cms-assets-notes/src/com/arsdigita/cms/contentassets/NotesInitializer.java +++ b/ccm-cms-assets-notes/src/com/arsdigita/cms/contentassets/NotesInitializer.java @@ -72,10 +72,13 @@ public class NotesInitializer extends ContentAssetInitializer { public void init( DomainInitEvent ev ) { super.init( ev ); - ContentType.registerXSLFile( null, "/themes/heirloom/assets/notes/xsl/index.xsl" ); - DomainObjectTraversal.registerAdapter( Note.BASE_DATA_OBJECT_TYPE, - new SimpleDomainObjectTraversalAdapter(), - SimpleXMLGenerator.ADAPTER_CONTEXT ); + ContentType.registerXSLFile( + null, + "/themes/heirloom/contentassets/notes/xsl/index.xsl" ); + DomainObjectTraversal.registerAdapter( + Note.BASE_DATA_OBJECT_TYPE, + new SimpleDomainObjectTraversalAdapter(), + SimpleXMLGenerator.ADAPTER_CONTEXT ); SimpleEditStep.addAdditionalDisplayComponent(new NotesSummary()); } } diff --git a/ccm-cms-assets-notes/web/themes/heirloom/assets/notes/xsl/index.xsl b/ccm-cms-assets-notes/web/themes/heirloom/contentassets/notes/xsl/index.xsl similarity index 100% rename from ccm-cms-assets-notes/web/themes/heirloom/assets/notes/xsl/index.xsl rename to ccm-cms-assets-notes/web/themes/heirloom/contentassets/notes/xsl/index.xsl diff --git a/ccm-cms-publicpersonalprofile/web/static/content-types/com/arsdigita/cms/contenttypes/PublicPersonalProfile.xsl b/ccm-cms-publicpersonalprofile/web/themes/heirloom/contenttypes/PublicPersonalProfile.xsl similarity index 100% rename from ccm-cms-publicpersonalprofile/web/static/content-types/com/arsdigita/cms/contenttypes/PublicPersonalProfile.xsl rename to ccm-cms-publicpersonalprofile/web/themes/heirloom/contenttypes/PublicPersonalProfile.xsl diff --git a/ccm-cms-types-address/src/com/arsdigita/cms/contenttypes/AddressInitializer.java b/ccm-cms-types-address/src/com/arsdigita/cms/contenttypes/AddressInitializer.java index e5f87991c..55e535909 100755 --- a/ccm-cms-types-address/src/com/arsdigita/cms/contenttypes/AddressInitializer.java +++ b/ccm-cms-types-address/src/com/arsdigita/cms/contenttypes/AddressInitializer.java @@ -3,22 +3,45 @@ package com.arsdigita.cms.contenttypes; import org.apache.log4j.Logger; /** - * The CMS initializer + * Executes at each system startup and initializes the Address content type. + * + * Defines the content type specific properties and just uses the super class + * methods to register the content type with the (transient) content type store + * (map). This is done by runtimeRuntime startup method which runs the init() + * methods of all initializers (this one just using the parent implementation). * + * @version $Id: AddressInitializer.java 1596 2007-07-10 16:25:57Z p_boy $ */ public class AddressInitializer extends ContentTypeInitializer { + /** Private Logger instance for debugging purpose. */ private static final Logger s_log = Logger.getLogger(AddressInitializer.class); + /** + * Constructor, sets the PDL manifest file and object type string. + */ public AddressInitializer() { super("ccm-cms-types-address.pdl.mf", - Address.BASE_DATA_OBJECT_TYPE); + Address.BASE_DATA_OBJECT_TYPE); } + /** + * Retrieve location of this content type's internal default theme + * stylesheet(s) which concomitantly serve as a fallback if a custom theme + * is engaged. + * + * Custom themes usually will provide their own stylesheet(s) and their own + * access method, but may not support every content type. + * + * Overwrites parent method with AgendaItem specific value for use by the + * parent class worker methods. + * + * @return String array of XSL stylesheet files of the internal default theme + */ @Override public String[] getStylesheets() { return new String[]{ - "/static/content-types/com/arsdigita/cms/contenttypes/Address.xsl" + "/themes/heirloom/contenttypes/Address.xsl" }; } } diff --git a/ccm-cms-types-address/web/static/content-types/com/arsdigita/cms/contenttypes/Address.xsl b/ccm-cms-types-address/web/themes/heirloom/contenttypes/Address.xsl similarity index 100% rename from ccm-cms-types-address/web/static/content-types/com/arsdigita/cms/contenttypes/Address.xsl rename to ccm-cms-types-address/web/themes/heirloom/contenttypes/Address.xsl diff --git a/ccm-cms-types-agenda/src/com/arsdigita/cms/contenttypes/AgendaInitializer.java b/ccm-cms-types-agenda/src/com/arsdigita/cms/contenttypes/AgendaInitializer.java index fd023a906..38e1a6329 100755 --- a/ccm-cms-types-agenda/src/com/arsdigita/cms/contenttypes/AgendaInitializer.java +++ b/ccm-cms-types-agenda/src/com/arsdigita/cms/contenttypes/AgendaInitializer.java @@ -21,35 +21,56 @@ package com.arsdigita.cms.contenttypes; import org.apache.log4j.Logger; /** - * Initializes the Agenda content type. + * Executes at each system startup and initializes the Agenda content type. + * * Defines the content type specific properties and just uses the super class * methods to register the content type with the (transient) content type store - * (map). + * (map). This is done by runtimeRuntime startup method which runs the init() + * methods of all initializers (this one just using the parent implementation). * * @author Rafael H. Schloming <rhs@mit.edu> * @version $Revision: #8 $ $Date: 2004/08/17 $ * @version $Id: AgendaInitializer.java 1596 2007-07-10 16:25:57Z p_boy $ - **/ - + */ public class AgendaInitializer extends ContentTypeInitializer { + /** Private Logger instance for debugging purpose. */ private static final Logger s_log = Logger.getLogger(AgendaInitializer.class); /** - * Constructor + * Constructor, sets the PDL manifest file and object type string. */ public AgendaInitializer() { super("ccm-cms-types-agenda.pdl.mf", Agenda.BASE_DATA_OBJECT_TYPE); } + /** + * Retrieves fully qualified traversal adapter file name. + * @return + */ + @Override public String getTraversalXML() { return "/WEB-INF/traversal-adapters/com/arsdigita/cms/contenttypes/Agenda.xml"; } + /** + * Retrieve location of this content type's internal default theme + * stylesheet(s) which concomitantly serve as a fallback if a custom theme + * is engaged. + * + * Custom themes usually will provide their own stylesheet(s) and their own + * access method, but may not support every content type. + * + * Overwrites parent method with AgendaItem specific value for use by the + * parent class worker methods. + * + * @return String array of XSL stylesheet files of the internal default theme + */ + @Override public String[] getStylesheets() { return new String[] { - "/static/content-types/com/arsdigita/cms/contenttypes/Agenda.xsl" }; + INTERNAL_THEME_TYPES_DIR + "Agenda.xsl" }; } } diff --git a/ccm-cms-types-agenda/web/static/content-types/com/arsdigita/cms/contenttypes/Agenda.xsl b/ccm-cms-types-agenda/web/themes/heirloom/contenttypes/Agenda.xsl similarity index 100% rename from ccm-cms-types-agenda/web/static/content-types/com/arsdigita/cms/contenttypes/Agenda.xsl rename to ccm-cms-types-agenda/web/themes/heirloom/contenttypes/Agenda.xsl diff --git a/ccm-cms-types-article/src/com/arsdigita/cms/contenttypes/ArticleInitializer.java b/ccm-cms-types-article/src/com/arsdigita/cms/contenttypes/ArticleInitializer.java index 5215e1420..155a0e7a9 100755 --- a/ccm-cms-types-article/src/com/arsdigita/cms/contenttypes/ArticleInitializer.java +++ b/ccm-cms-types-article/src/com/arsdigita/cms/contenttypes/ArticleInitializer.java @@ -21,7 +21,8 @@ package com.arsdigita.cms.contenttypes; import org.apache.log4j.Logger; /** - * Initializes the GenericArticle content type. + * Executes at each system startup and initializes the Article content type. + * * Defines the content type specific properties and just uses the super class * methods to register the content type with the (transient) content type store * (map). This is done by runtimeRuntime startup method which runs the init() @@ -32,15 +33,32 @@ import org.apache.log4j.Logger; */ public class ArticleInitializer extends ContentTypeInitializer { + /** Private Logger instance for debugging purpose. */ private static final Logger s_log = Logger.getLogger(ArticleInitializer.class); - public ArticleInitializer() { - super("ccm-cms-types-article.pdl.mf", GenericArticle.BASE_DATA_OBJECT_TYPE); + /** + * Constructor, sets the PDL manifest file and object type string. + */ + public ArticleInitializer() { + super("ccm-cms-types-article.pdl.mf", Article.BASE_DATA_OBJECT_TYPE); } + /** + * Retrieve location of this content type's internal default theme + * stylesheet(s) which concomitantly serve as a fallback if a custom theme + * is engaged. + * + * Custom themes usually will provide their own stylesheet(s) and their own + * access method, but may not support every content type. + * + * Overwrites parent method with AgendaItem specific value for use by the + * parent class worker methods. + * + * @return String array of XSL stylesheet files of the internal default theme + */ @Override public String[] getStylesheets() { return new String[] - { "/static/content-types/com/arsdigita/cms/contenttypes/Article.xsl" }; + { "/themes/heirloom/contenttypes/Article.xsl" }; } } diff --git a/ccm-cms-types-article/web/static/content-types/com/arsdigita/cms/contenttypes/Article.xsl b/ccm-cms-types-article/web/themes/heirloom/contenttypes/Article.xsl similarity index 100% rename from ccm-cms-types-article/web/static/content-types/com/arsdigita/cms/contenttypes/Article.xsl rename to ccm-cms-types-article/web/themes/heirloom/contenttypes/Article.xsl diff --git a/ccm-cms-types-bookmark/src/com/arsdigita/cms/contenttypes/BookmarkInitializer.java b/ccm-cms-types-bookmark/src/com/arsdigita/cms/contenttypes/BookmarkInitializer.java index a811b57c8..af96bdd56 100755 --- a/ccm-cms-types-bookmark/src/com/arsdigita/cms/contenttypes/BookmarkInitializer.java +++ b/ccm-cms-types-bookmark/src/com/arsdigita/cms/contenttypes/BookmarkInitializer.java @@ -21,25 +21,46 @@ package com.arsdigita.cms.contenttypes; import org.apache.log4j.Logger; /** - * Initializes the Bookmark content type. + * Executes at each system startup and initializes the Bookmark content type. + * * Defines the content type specific properties and just uses the super class * methods to register the content type with the (transient) content type store - * (map). + * (map). This is done by runtimeRuntime startup method which runs the init() + * methods of all initializers (this one just using the parent implementation). * * @author Justin Ross <jross@redhat.com> * @version $Id: BookmarkInitializer.java 757 2005-09-02 14:12:21Z sskracic $ */ public class BookmarkInitializer extends ContentTypeInitializer { + /** Private Logger instance for debugging purpose. */ private static final Logger s_log = Logger.getLogger(BookmarkInitializer.class); + /** + * Constructor, sets the PDL manifest file and object type string. + */ public BookmarkInitializer() { super("ccm-cms-types-bookmark.pdl.mf", Bookmark.BASE_DATA_OBJECT_TYPE); } + + /** + * Retrieves location of this content type's internal default theme + * stylesheet(s) which concomitantly serve as a fallback if a custom theme + * is engaged. + * + * Custom themes usually will provide their own stylesheet(s) and their own + * access method, but may not support every content type. + * + * Overwrites parent method with AgendaItem specific value for use by the + * parent class worker methods. + * + * @return String array of XSL stylesheet files of the internal default theme + */ + @Override public String[] getStylesheets() { return new String[] { - "/static/content-types/com/arsdigita/cms/contenttypes/Bookmark.xsl" + INTERNAL_THEME_TYPES_DIR + "Bookmark.xsl" }; } diff --git a/ccm-cms-types-bookmark/web/static/content-types/com/arsdigita/cms/contenttypes/Bookmark.xsl b/ccm-cms-types-bookmark/web/themes/heirloom/contenttypes/Bookmark.xsl similarity index 100% rename from ccm-cms-types-bookmark/web/static/content-types/com/arsdigita/cms/contenttypes/Bookmark.xsl rename to ccm-cms-types-bookmark/web/themes/heirloom/contenttypes/Bookmark.xsl diff --git a/ccm-cms-types-contact/src/com/arsdigita/cms/contenttypes/ContactInitializer.java b/ccm-cms-types-contact/src/com/arsdigita/cms/contenttypes/ContactInitializer.java index 4981c21b1..83b1b1923 100755 --- a/ccm-cms-types-contact/src/com/arsdigita/cms/contenttypes/ContactInitializer.java +++ b/ccm-cms-types-contact/src/com/arsdigita/cms/contenttypes/ContactInitializer.java @@ -4,28 +4,56 @@ package com.arsdigita.cms.contenttypes; import org.apache.log4j.Logger; /** + * Executes at each system startup and initializes the Agenda content type. + * + * Defines the content type specific properties and just uses the super class + * methods to register the content type with the (transient) content type store + * (map). This is done by runtimeRuntime startup method which runs the init() + * methods of all initializers (this one just using the parent implementation). * * @author Sören Bernstein; + * @version $Id: ContactInitializer.java 1596 2007-07-10 16:25:57Z p_boy $ */ public class ContactInitializer extends ContentTypeInitializer { + /** Private Logger instance for debugging purpose. */ private static final Logger s_log = Logger.getLogger(ContactInitializer.class); + /** + * Constructor, sets the PDL manifest file and object type string. + */ public ContactInitializer() { super("ccm-cms-types-contact.pdl.mf", - Contact.BASE_DATA_OBJECT_TYPE); - } - - @Override - public String[] getStylesheets() { - return new String[] { - "/static/content-types/com/arsdigita/cms/contenttypes/Contact.xsl" - }; + Contact.BASE_DATA_OBJECT_TYPE); } + /** + * Retrieves fully qualified traversal adapter file name. + * @return + */ @Override public String getTraversalXML() { return "/WEB-INF/traversal-adapters/com/arsdigita/cms/contenttypes/Contact.xml"; } + /** + * Retrieve location of this content type's internal default theme + * stylesheet(s) which concomitantly serve as a fallback if a custom theme + * is engaged. + * + * Custom themes usually will provide their own stylesheet(s) and their own + * access method, but may not support every content type. + * + * Overwrites parent method with AgendaItem specific value for use by the + * parent class worker methods. + * + * @return String array of XSL stylesheet files of the internal default theme + */ + @Override + public String[] getStylesheets() { + return new String[] { + INTERNAL_THEME_TYPES_DIR + "Contact.xsl" + }; + } + } diff --git a/ccm-cms-types-contact/web/static/content-types/com/arsdigita/cms/contenttypes/Contact.xsl b/ccm-cms-types-contact/web/themes/heirloom/contenttypes/Contact.xsl similarity index 100% rename from ccm-cms-types-contact/web/static/content-types/com/arsdigita/cms/contenttypes/Contact.xsl rename to ccm-cms-types-contact/web/themes/heirloom/contenttypes/Contact.xsl diff --git a/ccm-cms-types-event/src/com/arsdigita/cms/contenttypes/EventInitializer.java b/ccm-cms-types-event/src/com/arsdigita/cms/contenttypes/EventInitializer.java index d6cf43afa..92c61b6b7 100755 --- a/ccm-cms-types-event/src/com/arsdigita/cms/contenttypes/EventInitializer.java +++ b/ccm-cms-types-event/src/com/arsdigita/cms/contenttypes/EventInitializer.java @@ -21,28 +21,52 @@ package com.arsdigita.cms.contenttypes; import org.apache.log4j.Logger; /** - * Initializes the Event content type. + * Executes at each system startup and initializes the Event content type. + * * Defines the content type specific properties and just uses the super class * methods to register the content type with the (transient) content type store - * (map). + * (map). This is done by runtimeRuntime startup method which runs the init() + * methods of all initializers (this one just using the parent implementation). * * @author Rafael H. Schloming <rhs@mit.edu> * @version $Revision: #7 $ $Date: 2004/08/17 $ * @version $Id: EventInitializer.java 1595 2007-07-10 16:14:44Z p_boy $ - **/ - + */ public class EventInitializer extends ContentTypeInitializer { + /** Private Logger instance for debugging purpose. */ private static final Logger s_log = Logger.getLogger(EventInitializer.class); + /** + * Constructor, sets the PDL manifest file and object type string. + */ public EventInitializer() { super("ccm-cms-types-event.pdl.mf", Event.BASE_DATA_OBJECT_TYPE); } + /** + * Retrieve location of this content type's internal default theme + * stylesheet(s) which concomitantly serve as a fallback if a custom theme + * is engaged. + * + * Custom themes usually will provide their own stylesheet(s) and their own + * access method, but may not support every content type. + * + * Overwrites parent method with AgendaItem specific value for use by the + * parent class worker methods. + * + * @return String array of XSL stylesheet files of the internal default theme + */ + @Override public String[] getStylesheets() { - return new String[] { "/static/content-types/com/arsdigita/cms/contenttypes/Event.xsl" }; + return new String[] { INTERNAL_THEME_TYPES_DIR + "Event.xsl" }; } + /** + * Retrieves fully qualified traversal adapter file name. + * @return + */ + @Override public String getTraversalXML() { return "/WEB-INF/traversal-adapters/com/arsdigita/cms/contenttypes/Event.xml"; } diff --git a/ccm-cms-types-event/web/static/content-types/com/arsdigita/cms/contenttypes/Event.xsl b/ccm-cms-types-event/web/themes/heirloom/contenttypes/Event.xsl similarity index 100% rename from ccm-cms-types-event/web/static/content-types/com/arsdigita/cms/contenttypes/Event.xsl rename to ccm-cms-types-event/web/themes/heirloom/contenttypes/Event.xsl diff --git a/ccm-cms-types-faqitem/src/com/arsdigita/cms/contenttypes/FAQItemInitializer.java b/ccm-cms-types-faqitem/src/com/arsdigita/cms/contenttypes/FAQItemInitializer.java index e32cc263b..563d5d119 100755 --- a/ccm-cms-types-faqitem/src/com/arsdigita/cms/contenttypes/FAQItemInitializer.java +++ b/ccm-cms-types-faqitem/src/com/arsdigita/cms/contenttypes/FAQItemInitializer.java @@ -21,17 +21,19 @@ package com.arsdigita.cms.contenttypes; import org.apache.log4j.Logger; /** - * Initializer class to initialize ContentType FAQ. + * Executes at each system startup and initializes the FAQ content type. * * Defines the content type specific properties and just uses the super class * methods to register the content type with the (transient) content type store - * (map). + * (map). This is done by runtimeRuntime startup method which runs the init() + * methods of all initializers (this one just using the parent implementation). * * @author Justin Ross <jross@redhat.com> * @version $Id: FAQItemInitializer.java 757 2005-09-02 14:12:21Z sskracic $ */ public class FAQItemInitializer extends ContentTypeInitializer { + /** Private Logger instance for debugging purpose. */ private static final Logger s_log = Logger.getLogger(FAQItemInitializer.class); /** @@ -43,12 +45,22 @@ public class FAQItemInitializer extends ContentTypeInitializer { } /** - * Retrieve location of the assoziated stylesheet. - * @return + * Retrieve location of this content type's internal default theme + * stylesheet(s) which concomitantly serve as a fallback if a custom theme + * is engaged. + * + * Custom themes usually will provide their own stylesheet(s) and their own + * access method, but may not support every content type. + * + * Overwrites parent method with AgendaItem specific value for use by the + * parent class worker methods. + * + * @return String array of XSL stylesheet files of the internal default theme */ + @Override public String[] getStylesheets() { return new String[] { - "/static/content-types/com/arsdigita/cms/contenttypes/FAQItem.xsl" + INTERNAL_THEME_TYPES_DIR + "FAQItem.xsl" }; } diff --git a/ccm-cms-types-faqitem/web/static/content-types/com/arsdigita/cms/contenttypes/FAQItem.xsl b/ccm-cms-types-faqitem/web/themes/heirloom/contenttypes/FAQItem.xsl similarity index 100% rename from ccm-cms-types-faqitem/web/static/content-types/com/arsdigita/cms/contenttypes/FAQItem.xsl rename to ccm-cms-types-faqitem/web/themes/heirloom/contenttypes/FAQItem.xsl diff --git a/ccm-cms-types-filestorageitem/src/com/arsdigita/cms/contenttypes/FileStorageItemInitializer.java b/ccm-cms-types-filestorageitem/src/com/arsdigita/cms/contenttypes/FileStorageItemInitializer.java index 2121d6bd2..f6ba7da46 100755 --- a/ccm-cms-types-filestorageitem/src/com/arsdigita/cms/contenttypes/FileStorageItemInitializer.java +++ b/ccm-cms-types-filestorageitem/src/com/arsdigita/cms/contenttypes/FileStorageItemInitializer.java @@ -21,17 +21,20 @@ package com.arsdigita.cms.contenttypes; import org.apache.log4j.Logger; /** - * Initializes the File Storage Item content type. + * Executes at each system startup and initializes the File Storage Item (FSI) + * content type. * * Defines the content type specific properties and just uses the super class * methods to register the content type with the (transient) content type store - * (map). + * (map). This is done by runtimeRuntime startup method which runs the init() + * methods of all initializers (this one just using the parent implementation). * * @author Justin Ross <jross@redhat.com> * @version $Id: FileStorageItemInitializer.java 287 2005-02-22 00:29:02Z sskracic $ */ public class FileStorageItemInitializer extends ContentTypeInitializer { + /** Private Logger instance for debugging purpose. */ private static final Logger s_log = Logger.getLogger(FileStorageItemInitializer.class); @@ -44,22 +47,32 @@ public class FileStorageItemInitializer extends ContentTypeInitializer { } /** - * Retrieve location of traversal adapter - * @return + * Retrieves fully qualified traversal adapter file name. + * @return */ + @Override public String getTraversalXML() { return "WEB-INF/traversal-adapters/com/arsdigita/" + "cms/contenttypes/FileStorageItem.xml"; } /** - * Retrieve location of this content types stylesheet. - * @return + * Retrieve location of this content type's internal default theme + * stylesheet(s) which concomitantly serve as a fallback if a custom theme + * is engaged. + * + * Custom themes usually will provide their own stylesheet(s) and their own + * access method, but may not support every content type. + * + * Overwrites parent method with AgendaItem specific value for use by the + * parent class worker methods. + * + * @return String array of XSL stylesheet files of the internal default theme */ + @Override public String[] getStylesheets() { return new String[] { - "/static/content-types/com/arsdigita/" + - "cms/contenttypes/FileStorageItem.xsl" + INTERNAL_THEME_TYPES_DIR + "FileStorageItem.xsl" }; } } diff --git a/ccm-cms-types-filestorageitem/web/static/content-types/com/arsdigita/cms/contenttypes/FileStorageItem.xsl b/ccm-cms-types-filestorageitem/web/themes/heirloom/contenttypes/FileStorageItem.xsl similarity index 100% rename from ccm-cms-types-filestorageitem/web/static/content-types/com/arsdigita/cms/contenttypes/FileStorageItem.xsl rename to ccm-cms-types-filestorageitem/web/themes/heirloom/contenttypes/FileStorageItem.xsl diff --git a/ccm-cms-types-formitem/src/com/arsdigita/cms/formbuilder/FormItemInitializer.java b/ccm-cms-types-formitem/src/com/arsdigita/cms/formbuilder/FormItemInitializer.java index d0f595e35..deb946850 100755 --- a/ccm-cms-types-formitem/src/com/arsdigita/cms/formbuilder/FormItemInitializer.java +++ b/ccm-cms-types-formitem/src/com/arsdigita/cms/formbuilder/FormItemInitializer.java @@ -23,11 +23,12 @@ import com.arsdigita.cms.contenttypes.ContentTypeInitializer; import org.apache.log4j.Logger; /** - * Initializes the Form Item content type. + * Executes at each system startup and initializes the Form Item content type. * * Defines the content type specific properties and just uses the super class * methods to register the content type with the (transient) content type store - * (map). + * (map). This is done by runtimeRuntime startup method which runs the init() + * methods of all initializers (this one just using the parent implementation). * * @author Rafael H. Schloming <rhs@mit.edu> * @version $Revision: #6 $ $Date: 2004/08/17 $ @@ -35,6 +36,7 @@ import org.apache.log4j.Logger; public class FormItemInitializer extends ContentTypeInitializer { + /** Private Logger instance for debugging purpose. */ private static final Logger s_log = Logger.getLogger(FormItemInitializer.class); @@ -47,23 +49,32 @@ public class FormItemInitializer extends ContentTypeInitializer { } /** - * Retrieve location of traversal adapter + * Retrieves fully qualified traversal adapter file name. * @return */ + @Override public String getTraversalXML() { return "WEB-INF/traversal-adapters/com/arsdigita/" + "cms/formbuilder/FormItem.xml"; } /** - * Retrieve location of this content types stylesheet. Overwrites parent - * method with FormItem specific value. - * @return + * Retrieve location of this content type's internal default theme + * stylesheet(s) which concomitantly serve as a fallback if a custom theme + * is engaged. + * + * Custom themes usually will provide their own stylesheet(s) and their own + * access method, but may not support every content type. + * + * Overwrites parent method with AgendaItem specific value for use by the + * parent class worker methods. + * + * @return String array of XSL stylesheet files of the internal default theme */ + @Override public String[] getStylesheets() { return new String[] { - "/static/content-types/com/arsdigita/" + - "cms/contenttypes/FormItem.xsl" + INTERNAL_THEME_TYPES_DIR + "FormItem.xsl" }; } } diff --git a/ccm-cms-types-formitem/web/static/content-types/com/arsdigita/cms/contenttypes/FormItem.xsl b/ccm-cms-types-formitem/web/themes/heirloom/contenttypes/FormItem.xsl similarity index 100% rename from ccm-cms-types-formitem/web/static/content-types/com/arsdigita/cms/contenttypes/FormItem.xsl rename to ccm-cms-types-formitem/web/themes/heirloom/contenttypes/FormItem.xsl diff --git a/ccm-cms-types-formsectionitem/src/com/arsdigita/cms/formbuilder/FormSectionItemInitializer.java b/ccm-cms-types-formsectionitem/src/com/arsdigita/cms/formbuilder/FormSectionItemInitializer.java index 4c47de43c..e8a25fb15 100755 --- a/ccm-cms-types-formsectionitem/src/com/arsdigita/cms/formbuilder/FormSectionItemInitializer.java +++ b/ccm-cms-types-formsectionitem/src/com/arsdigita/cms/formbuilder/FormSectionItemInitializer.java @@ -16,6 +16,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ + package com.arsdigita.cms.formbuilder; import com.arsdigita.cms.contenttypes.ContentTypeInitializer; @@ -23,17 +24,20 @@ import com.arsdigita.cms.contenttypes.ContentTypeInitializer; import org.apache.log4j.Logger; /** - * Initializes the Form Section Item content type. + * Executes at each system startup and initializes the Form Section Item + * content type. * * Defines the content type specific properties and just uses the super class * methods to register the content type with the (transient) content type store - * (map). + * (map). This is done by runtimeRuntime startup method which runs the init() + * methods of all initializers (this one just using the parent implementation). * * @author Rafael H. Schloming <rhs@mit.edu> * @version $Revision: #6 $ $Date: 2004/08/17 $ - **/ + */ public class FormSectionItemInitializer extends ContentTypeInitializer { + /** Private Logger instance for debugging purpose. */ private static final Logger s_log = Logger.getLogger(FormSectionItemInitializer.class); @@ -46,22 +50,32 @@ public class FormSectionItemInitializer extends ContentTypeInitializer { } /** - * Retrieve location of traversal adapter + * Retrieves fully qualified traversal adapter file name. * @return */ + @Override public String getTraversalXML() { return "WEB-INF/traversal-adapters/com/arsdigita/" + "cms/formbuilder/FormSectionItem.xml"; } /** - * Retrieve location of this content types stylesheet. - * @return + * Retrieve location of this content type's internal default theme + * stylesheet(s) which concomitantly serve as a fallback if a custom theme + * is engaged. + * + * Custom themes usually will provide their own stylesheet(s) and their own + * access method, but may not support every content type. + * + * Overwrites parent method with AgendaItem specific value for use by the + * parent class worker methods. + * + * @return String array of XSL stylesheet files of the internal default theme */ + @Override public String[] getStylesheets() { return new String[] { - "/static/content-types/com/arsdigita/cms/" + - "contenttypes/FormSectionItem.xsl" + INTERNAL_THEME_TYPES_DIR + "FormSectionItem.xsl" }; } } diff --git a/ccm-cms-types-formsectionitem/web/static/content-types/com/arsdigita/cms/contenttypes/FormSectionItem.xsl b/ccm-cms-types-formsectionitem/web/themes/heirloom/contenttypes/FormSectionItem.xsl similarity index 100% rename from ccm-cms-types-formsectionitem/web/static/content-types/com/arsdigita/cms/contenttypes/FormSectionItem.xsl rename to ccm-cms-types-formsectionitem/web/themes/heirloom/contenttypes/FormSectionItem.xsl diff --git a/ccm-cms-types-glossaryitem/src/com/arsdigita/cms/contenttypes/GlossaryItemInitializer.java b/ccm-cms-types-glossaryitem/src/com/arsdigita/cms/contenttypes/GlossaryItemInitializer.java index 31bf6dbd0..4e1d1402d 100755 --- a/ccm-cms-types-glossaryitem/src/com/arsdigita/cms/contenttypes/GlossaryItemInitializer.java +++ b/ccm-cms-types-glossaryitem/src/com/arsdigita/cms/contenttypes/GlossaryItemInitializer.java @@ -16,13 +16,14 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ + package com.arsdigita.cms.contenttypes; import org.apache.log4j.Logger; /** - * Initializes the Form Item content type. + * Executes at each system startup and initializes the Glossary Item content type. * * Defines the content type specific properties and just uses the super class * methods to register the content type with the (transient) content type store @@ -34,6 +35,7 @@ import org.apache.log4j.Logger; */ public class GlossaryItemInitializer extends ContentTypeInitializer { + /** Private Logger instance for debugging purpose. */ private static final Logger s_log = Logger.getLogger(GlossaryItemInitializer.class); /** @@ -45,16 +47,23 @@ public class GlossaryItemInitializer extends ContentTypeInitializer { } /** - * Retrieve location of this content types stylesheet. Overwrites parent - * method with FormItem specific value for use by the parent class worker - * methods. - * @return + * Retrieve location of this content type's internal default theme + * stylesheet(s) which concomitantly serve as a fallback if a custom theme + * is engaged. + * + * Custom themes usually will provide their own stylesheet(s) and their own + * access method, but may not support every content type. + * + * Overwrites parent method with AgendaItem specific value for use by the + * parent class worker methods. + * + * @return String array of XSL stylesheet files of the internal default theme */ @Override public String[] getStylesheets() { return new String[] { // "/static/content-types/com/arsdigita/cms/contenttypes/GlossaryItem.xsl" - "/themes/heirloom/contenttypes/GlossaryItem.xsl" + INTERNAL_THEME_TYPES_DIR + "GlossaryItem.xsl" }; } } diff --git a/ccm-cms-types-htmlform/src/com/arsdigita/cms/contenttypes/HTMLFormInitializer.java b/ccm-cms-types-htmlform/src/com/arsdigita/cms/contenttypes/HTMLFormInitializer.java index 0c346d91e..959a6fa6f 100755 --- a/ccm-cms-types-htmlform/src/com/arsdigita/cms/contenttypes/HTMLFormInitializer.java +++ b/ccm-cms-types-htmlform/src/com/arsdigita/cms/contenttypes/HTMLFormInitializer.java @@ -17,22 +17,44 @@ package com.arsdigita.cms.contenttypes; /** - * The HTMLForm initializer. + * Executes at each system startup and initializes the HTMLForm content type. + * + * Defines the content type specific properties and just uses the super class + * methods to register the content type with the (transient) content type store + * (map). This is done by runtimeRuntime startup method which runs the init() + * methods of all initializers (this one just using the parent implementation). + * * * @author Justin Ross <jross@redhat.com> * @version $Id: com/arsdigita/cms/contenttypes/HTMLFormInitializer.java#2 $ */ public class HTMLFormInitializer extends ContentTypeInitializer { + /** + * Constructor, sets the PDL manifest file and object type string. + */ public HTMLFormInitializer() { super("ccm-cms-types-htmlform.pdl.mf", HTMLForm.BASE_DATA_OBJECT_TYPE); } + /** + * Retrieve location of this content type's internal default theme + * stylesheet(s) which concomitantly serve as a fallback if a custom theme + * is engaged. + * + * Custom themes usually will provide their own stylesheet(s) and their own + * access method, but may not support every content type. + * + * Overwrites parent method with AgendaItem specific value for use by the + * parent class worker methods. + * + * @return String array of XSL stylesheet files of the internal default theme + */ @Override public String[] getStylesheets() { return new String[] { // "/static/content-types/com/arsdigita/cms/contenttypes/HTMLForm.xsl" }; - "/themes/heirloom/contenttypes/HTMLForm.xsl" }; + INTERNAL_THEME_TYPES_DIR + "HTMLForm.xsl" }; } } diff --git a/ccm-cms-types-image/src/com/arsdigita/cms/contenttypes/ImageInitializer.java b/ccm-cms-types-image/src/com/arsdigita/cms/contenttypes/ImageInitializer.java index 278b31ed7..78414b8d5 100755 --- a/ccm-cms-types-image/src/com/arsdigita/cms/contenttypes/ImageInitializer.java +++ b/ccm-cms-types-image/src/com/arsdigita/cms/contenttypes/ImageInitializer.java @@ -16,35 +16,59 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ + package com.arsdigita.cms.contenttypes; import org.apache.log4j.Logger; /** - * Initializes the image content type. + * Executes at each system startup and initializes the Image content type. + * * Defines the content type specific properties and just uses the super class * methods to register the content type with the (transient) content type store - * (map). + * (map). This is done by runtimeRuntime startup method which runs the init() + * methods of all initializers (this one just using the parent implementation). * * @author Sören Bernstein (sbernstein@zes.uni-bremen.de); */ public class ImageInitializer extends ContentTypeInitializer { + /** Private Logger instance for debugging purpose. */ private static final Logger s_log = Logger.getLogger(ImageInitializer.class); + /** + * Constructor, sets the PDL manifest file and object type string. + */ public ImageInitializer() { super("ccm-cms-types-image.pdl.mf", Image.BASE_DATA_OBJECT_TYPE); } + /** + * Retrieves fully qualified traversal adapter file name. + * @return + */ @Override public String getTraversalXML() { return "/WEB-INF/traversal-adapters/com/arsdigita/cms/contenttypes/Image.xml"; } + /** + * Retrieve location of this content type's internal default theme + * stylesheet(s) which concomitantly serve as a fallback if a custom theme + * is engaged. + * + * Custom themes usually will provide their own stylesheet(s) and their own + * access method, but may not support every content type. + * + * Overwrites parent method with AgendaItem specific value for use by the + * parent class worker methods. + * + * @return String array of XSL stylesheet files of the internal default theme + */ @Override public String[] getStylesheets() { return new String[] { - "/static/content-types/com/arsdigita/cms/contenttypes/Image.xsl" }; + INTERNAL_THEME_TYPES_DIR + "Image.xsl" }; } } diff --git a/ccm-cms-types-image/web/static/content-types/com/arsdigita/cms/contenttypes/Image.xsl b/ccm-cms-types-image/web/themes/heirloom/contenttypes/Image.xsl similarity index 100% rename from ccm-cms-types-image/web/static/content-types/com/arsdigita/cms/contenttypes/Image.xsl rename to ccm-cms-types-image/web/themes/heirloom/contenttypes/Image.xsl diff --git a/ccm-cms-types-member/src/com/arsdigita/cms/contenttypes/MemberInitializer.java b/ccm-cms-types-member/src/com/arsdigita/cms/contenttypes/MemberInitializer.java index 9c1cbfba5..cbd3a775e 100644 --- a/ccm-cms-types-member/src/com/arsdigita/cms/contenttypes/MemberInitializer.java +++ b/ccm-cms-types-member/src/com/arsdigita/cms/contenttypes/MemberInitializer.java @@ -16,6 +16,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ + package com.arsdigita.cms.contenttypes; import com.arsdigita.cms.contenttypes.ContentTypeInitializer; @@ -27,22 +28,49 @@ import com.arsdigita.runtime.DomainInitEvent; import org.apache.log4j.Logger; /** + * Executes at each system startup and initializes the Member content type. + * + * Defines the content type specific properties and just uses the super class + * methods to register the content type with the (transient) content type store + * (map). This is done by runtimeRuntime startup method which runs the init() + * methods of all initializers (this one just using the parent implementation). * * @author Jens Pelzetter */ public class MemberInitializer extends ContentTypeInitializer { + /** Private Logger instance for debugging purpose. */ private static final Logger s_log = Logger.getLogger(MemberInitializer.class); + /** + * Constructor, sets the PDL manifest file and object type string. + */ public MemberInitializer() { super("ccm-cms-types-member.pdl.mf", Member.BASE_DATA_OBJECT_TYPE); } + /** + * Retrieve location of this content type's internal default theme + * stylesheet(s) which concomitantly serve as a fallback if a custom theme + * is engaged. + * + * Custom themes usually will provide their own stylesheet(s) and their own + * access method, but may not support every content type. + * + * Overwrites parent method with AgendaItem specific value for use by the + * parent class worker methods. + * + * @return String array of XSL stylesheet files of the internal default theme + */ @Override public String[] getStylesheets() { - return new String[]{"/static/content-types/com/arsdigita/cms/contenttypes/Member.xsl"}; + return new String[]{INTERNAL_THEME_TYPES_DIR + "Member.xsl"}; } + /** + * Retrieves fully qualified traversal adapter file name. + * @return + */ @Override public String getTraversalXML() { return "/WEB-INF/traversal-adapters/com/arsdigita/cms/contenttypes/Member.xml"; diff --git a/ccm-cms-types-member/web/static/content-types/com/arsdigita/cms/contenttypes/Member.xsl b/ccm-cms-types-member/web/themes/heirloom/contenttypes/Member.xsl similarity index 100% rename from ccm-cms-types-member/web/static/content-types/com/arsdigita/cms/contenttypes/Member.xsl rename to ccm-cms-types-member/web/themes/heirloom/contenttypes/Member.xsl diff --git a/ccm-cms-types-mparticle/src/com/arsdigita/cms/contenttypes/MultiPartArticleInitializer.java b/ccm-cms-types-mparticle/src/com/arsdigita/cms/contenttypes/MultiPartArticleInitializer.java index fc68a8879..ab1976cf7 100755 --- a/ccm-cms-types-mparticle/src/com/arsdigita/cms/contenttypes/MultiPartArticleInitializer.java +++ b/ccm-cms-types-mparticle/src/com/arsdigita/cms/contenttypes/MultiPartArticleInitializer.java @@ -20,43 +20,73 @@ package com.arsdigita.cms.contenttypes; import com.arsdigita.cms.CMSConfig; import com.arsdigita.cms.contenttypes.ui.mparticle.ArticleSectionPanel; -//Unused import -// import com.arsdigita.cms.search.ContentPageMetadataProvider; import com.arsdigita.kernel.URLService; import com.arsdigita.runtime.DomainInitEvent; import com.arsdigita.search.MetadataProviderRegistry; +import org.apache.log4j.Logger; + /** - * The MultiPartArticle initializer. + * Executes at each system startup and initializes the MultiPartArticle + * content type. + * + * Defines the content type specific properties and just uses the super class + * methods to register the content type with the (transient) content type store + * (map). This is done by runtimeRuntime startup method which runs the init() + * methods of all initializers (this one just using the parent implementation). + * * * @author Justin Ross <jross@redhat.com> * @version $Id: MultiPartArticleInitializer.java 2212 2011-06-22 08:39:04Z pboy $ */ public class MultiPartArticleInitializer extends ContentTypeInitializer { + /** Private Logger instance for debugging purpose. */ + private static final Logger s_log = Logger.getLogger( + MultiPartArticleInitializer.class); + /** - * MultiPartArticleInitializer Constructor + * Constructor, sets the PDL manifest file and object type string. */ public MultiPartArticleInitializer() { super("ccm-cms-types-mparticle.pdl.mf", MultiPartArticle.BASE_DATA_OBJECT_TYPE); } + /** + * Retrieves fully qualified traversal adapter file name. + * @return + */ @Override public String getTraversalXML() { return "WEB-INF/traversal-adapters/com/arsdigita/cms/contenttypes/MultiPartArticle.xml"; } + /** + * Retrieve location of this content type's internal default theme + * stylesheet(s) which concomitantly serve as a fallback if a custom theme + * is engaged. + * + * Custom themes usually will provide their own stylesheet(s) and their own + * access method, but may not support every content type. + * + * Overwrites parent method with AgendaItem specific value for use by the + * parent class worker methods. + * + * @return String array of XSL stylesheet files of the internal default theme + */ @Override public String[] getStylesheets() { return new String [] { - "/static/content-types/com/arsdigita/cms/contenttypes/MultiPartArticle.xsl", - "/static/content-types/com/arsdigita/cms/contenttypes/ArticleSection.xsl" + INTERNAL_THEME_TYPES_DIR + "MultiPartArticle.xsl", + INTERNAL_THEME_TYPES_DIR + "ArticleSection.xsl" }; } - // Previously used LegacyInitEvent, allthough no legacy init functionality - // is used here. Wondering. + /** + * + * @param evt + */ @Override public void init(DomainInitEvent evt) { super.init(evt); diff --git a/ccm-cms-types-mparticle/web/static/content-types/com/arsdigita/cms/contenttypes/ArticleSection.xsl b/ccm-cms-types-mparticle/web/themes/heirloom/contenttypes/ArticleSection.xsl similarity index 100% rename from ccm-cms-types-mparticle/web/static/content-types/com/arsdigita/cms/contenttypes/ArticleSection.xsl rename to ccm-cms-types-mparticle/web/themes/heirloom/contenttypes/ArticleSection.xsl diff --git a/ccm-cms-types-mparticle/web/static/content-types/com/arsdigita/cms/contenttypes/MultiPartArticle.xsl b/ccm-cms-types-mparticle/web/themes/heirloom/contenttypes/MultiPartArticle.xsl similarity index 100% rename from ccm-cms-types-mparticle/web/static/content-types/com/arsdigita/cms/contenttypes/MultiPartArticle.xsl rename to ccm-cms-types-mparticle/web/themes/heirloom/contenttypes/MultiPartArticle.xsl diff --git a/ccm-cms-types-newsitem/src/com/arsdigita/cms/contenttypes/NewsItemInitializer.java b/ccm-cms-types-newsitem/src/com/arsdigita/cms/contenttypes/NewsItemInitializer.java index 22d00453b..0ef1aad73 100755 --- a/ccm-cms-types-newsitem/src/com/arsdigita/cms/contenttypes/NewsItemInitializer.java +++ b/ccm-cms-types-newsitem/src/com/arsdigita/cms/contenttypes/NewsItemInitializer.java @@ -16,37 +16,62 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ + package com.arsdigita.cms.contenttypes; import org.apache.log4j.Logger; /** - * Initializes the NewsItem content type. + * Executes at each system startup and initializes the NewsItem content type. + * * Defines the content type specific properties and just uses the super class * methods to register the content type with the (transient) content type store - * (map). + * (map). This is done by runtimeRuntime startup method which runs the init() + * methods of all initializers (this one just using the parent implementation). * * @author Rafael H. Schloming <rhs@mit.edu> * @version $Revision: #7 $ $Date: 2004/08/17 $ * @version $Id: NewsItemInitializer.java 1594 2007-07-10 10:56:11Z p_boy $ - **/ - + */ public class NewsItemInitializer extends ContentTypeInitializer { + /** Private Logger instance for debugging purpose. */ private static final Logger s_log = Logger.getLogger(NewsItemInitializer.class); + /** + * Constructor, sets the PDL manifest file and object type string. + */ public NewsItemInitializer() { super("ccm-cms-types-newsitem.pdl.mf", NewsItem.BASE_DATA_OBJECT_TYPE); } + /** + * Retrieves fully qualified traversal adapter file name. + * @return + */ + @Override public String getTraversalXML() { return "/WEB-INF/traversal-adapters/com/arsdigita/cms/contenttypes/NewsItem.xml"; } + /** + * Retrieve location of this content type's internal default theme + * stylesheet(s) which concomitantly serve as a fallback if a custom theme + * is engaged. + * + * Custom themes usually will provide their own stylesheet(s) and their own + * access method, but may not support every content type. + * + * Overwrites parent method with AgendaItem specific value for use by the + * parent class worker methods. + * + * @return String array of XSL stylesheet files of the internal default theme + */ + @Override public String[] getStylesheets() { return new String[] - { "/static/content-types/com/arsdigita/cms/contenttypes/NewsItem.xsl" }; + { INTERNAL_THEME_TYPES_DIR + "NewsItem.xsl" }; } } diff --git a/ccm-cms-types-newsitem/web/static/content-types/com/arsdigita/cms/contenttypes/NewsItem.xsl b/ccm-cms-types-newsitem/web/themes/heirloom/contenttypes/NewsItem.xsl similarity index 100% rename from ccm-cms-types-newsitem/web/static/content-types/com/arsdigita/cms/contenttypes/NewsItem.xsl rename to ccm-cms-types-newsitem/web/themes/heirloom/contenttypes/NewsItem.xsl diff --git a/ccm-cms-types-person/src/com/arsdigita/cms/contenttypes/PersonInitializer.java b/ccm-cms-types-person/src/com/arsdigita/cms/contenttypes/PersonInitializer.java index 8651469da..3e22c65e5 100644 --- a/ccm-cms-types-person/src/com/arsdigita/cms/contenttypes/PersonInitializer.java +++ b/ccm-cms-types-person/src/com/arsdigita/cms/contenttypes/PersonInitializer.java @@ -17,6 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ + package com.arsdigita.cms.contenttypes; import com.arsdigita.cms.contenttypes.ContentTypeInitializer; @@ -25,25 +26,54 @@ import com.arsdigita.domain.DomainObjectFactory; import com.arsdigita.domain.DomainObjectInstantiator; import com.arsdigita.persistence.DataObject; import com.arsdigita.runtime.DomainInitEvent; + import org.apache.log4j.Logger; /** + * Executes at each system startup and initializes the Person content type. + * + * Defines the content type specific properties and just uses the super class + * methods to register the content type with the (transient) content type store + * (map). This is done by runtimeRuntime startup method which runs the init() + * methods of all initializers (this one just using the parent implementation). * * @author Jens Pelzetter + * @version $Id$ */ public class PersonInitializer extends ContentTypeInitializer { + /** Private Logger instance for debugging purpose. */ private static final Logger s_log = Logger.getLogger(PersonInitializer.class); + /** + * Constructor, sets the PDL manifest file and object type string. + */ public PersonInitializer() { super("ccm-cms-types-person.pdl.mf", Person.BASE_DATA_OBJECT_TYPE); } + /** + * Retrieve location of this content type's internal default theme + * stylesheet(s) which concomitantly serve as a fallback if a custom theme + * is engaged. + * + * Custom themes usually will provide their own stylesheet(s) and their own + * access method, but may not support every content type. + * + * Overwrites parent method with AgendaItem specific value for use by the + * parent class worker methods. + * + * @return String array of XSL stylesheet files of the internal default theme + */ @Override public String[] getStylesheets() { - return new String[]{"/static/content-types/com/arsdigita/cms/contenttypes/Person.xsl"}; + return new String[]{INTERNAL_THEME_TYPES_DIR + "Person.xsl"}; } + /** + * Retrieves fully qualified traversal adapter file name. + * @return + */ @Override public String getTraversalXML() { return "/WEB-INF/traversal-adapters/com/arsdigita/cms/contenttypes/Person.xml"; diff --git a/ccm-cms-types-person/web/static/content-types/com/arsdigita/cms/contenttypes/Person.xsl b/ccm-cms-types-person/web/themes/heirloom/contenttypes/Person.xsl similarity index 100% rename from ccm-cms-types-person/web/static/content-types/com/arsdigita/cms/contenttypes/Person.xsl rename to ccm-cms-types-person/web/themes/heirloom/contenttypes/Person.xsl diff --git a/ccm-cms-types-simpleaddress/pdl/com/arsdigita/content-types/SimpleAddress.pdl b/ccm-cms-types-simpleaddress/pdl/com/arsdigita/content-types/SimpleAddress.pdl index 0c6c7d1b1..6906481b6 100755 --- a/ccm-cms-types-simpleaddress/pdl/com/arsdigita/content-types/SimpleAddress.pdl +++ b/ccm-cms-types-simpleaddress/pdl/com/arsdigita/content-types/SimpleAddress.pdl @@ -17,6 +17,7 @@ // // $Id: SimpleAddress.pdl 1597 2007-07-10 16:27:26Z p_boy $ // $DateTime: 2004/08/17 23:15:09 $ + model com.arsdigita.cms.contenttypes; import com.arsdigita.cms.ContentPage; diff --git a/ccm-cms-types-simpleaddress/src/com/arsdigita/cms/contenttypes/SimpleAddressInitializer.java b/ccm-cms-types-simpleaddress/src/com/arsdigita/cms/contenttypes/SimpleAddressInitializer.java index 05ad74027..3204306b5 100755 --- a/ccm-cms-types-simpleaddress/src/com/arsdigita/cms/contenttypes/SimpleAddressInitializer.java +++ b/ccm-cms-types-simpleaddress/src/com/arsdigita/cms/contenttypes/SimpleAddressInitializer.java @@ -16,6 +16,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ + package com.arsdigita.cms.contenttypes; import com.arsdigita.domain.DomainObject; @@ -26,7 +27,13 @@ import com.arsdigita.runtime.DomainInitEvent; import org.apache.log4j.Logger; /** - * Initializes the SimpleAddress content type. + * Executes at each system startup and initializes the SimpleAddress + * content type. + * + * Defines the content type specific properties and just uses the super class + * methods to register the content type with the (transient) content type store + * (map). This is done by runtimeRuntime startup method which runs the init() + * methods of all initializers (this one just using the parent implementation). * * @author Justin Ross <jross@redhat.com> * @version $Id: SimpleAddressInitializer.java 1597 2007-07-10 16:27:26Z p_boy $ @@ -37,7 +44,7 @@ public class SimpleAddressInitializer extends ContentTypeInitializer { private static final Logger s_log = Logger.getLogger(SimpleAddressInitializer.class); /** - * Constructor + * Constructor, sets the PDL manifest file and object type string. */ public SimpleAddressInitializer() { super("ccm-cms-types-simpleaddress.pdl.mf", @@ -45,7 +52,7 @@ public class SimpleAddressInitializer extends ContentTypeInitializer { } /** - * Initializer + * Domain Initializer * @param evt */ @Override @@ -70,15 +77,21 @@ public class SimpleAddressInitializer extends ContentTypeInitializer { } /** - * Provides location of the stylesheets assoziated with this content type. - * (As of 6.6.x it is really used to locate the content type stylesheet, - * in distinction from locating application stylesheets.) - * @return + * Retrieve location of this content type's internal default theme + * stylesheet(s) which concomitantly serve as a fallback if a custom theme + * is engaged. + * + * Custom themes usually will provide their own stylesheet(s) and their own + * access method, but may not support every content type. + * + * Overwrites parent method with AgendaItem specific value for use by the + * parent class worker methods. + * + * @return String array of XSL stylesheet files of the internal default theme */ @Override public String[] getStylesheets() { return new String[] { - // "/static/content-types/com/arsdigita/cms/contenttypes/SimpleAddress.xsl" }; - "/themes/heirloom/contenttypes/SimpleAddress.xsl" }; + INTERNAL_THEME_TYPES_DIR + "SimpleAddress.xsl" }; } } diff --git a/ccm-cms-types-simpleaddress/web/themes/heirloom/contenttypes/SimpleAddress.xsl b/ccm-cms-types-simpleaddress/web/themes/heirloom/contenttypes/SimpleAddress.xsl index 125cdbddc..2cf13d8f8 100755 --- a/ccm-cms-types-simpleaddress/web/themes/heirloom/contenttypes/SimpleAddress.xsl +++ b/ccm-cms-types-simpleaddress/web/themes/heirloom/contenttypes/SimpleAddress.xsl @@ -72,8 +72,8 @@ - +

Address diff --git a/ccm-cms-types-siteproxy/src/com/arsdigita/cms/contenttypes/SiteProxyInitializer.java b/ccm-cms-types-siteproxy/src/com/arsdigita/cms/contenttypes/SiteProxyInitializer.java index de25e4e66..a1b0a27ae 100755 --- a/ccm-cms-types-siteproxy/src/com/arsdigita/cms/contenttypes/SiteProxyInitializer.java +++ b/ccm-cms-types-siteproxy/src/com/arsdigita/cms/contenttypes/SiteProxyInitializer.java @@ -16,13 +16,14 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ + package com.arsdigita.cms.contenttypes; import org.apache.log4j.Logger; /** - * Initializes the SiteProxy content type. - * + * Executes at each system startup and initializes the SiteProxy content type. + * * Defines the content type specific properties and just uses the super class * methods to register the content type with the (transient) content type store * (map). This is done by runtimeRuntime startup method which runs the init() @@ -33,6 +34,7 @@ import org.apache.log4j.Logger; */ public class SiteProxyInitializer extends ContentTypeInitializer { + /** Private Logger instance for debugging purpose. */ private static final Logger s_log = Logger.getLogger(SiteProxyInitializer.class); /** @@ -45,15 +47,22 @@ public class SiteProxyInitializer extends ContentTypeInitializer { } /** - * Retrieve location of this content types stylesheet. Overwrites parent - * method with FormItem specific value for use by the parent class worker - * methods. - * + * Retrieve location of this content type's internal default theme + * stylesheet(s) which concomitantly serve as a fallback if a custom theme + * is engaged. + * + * Custom themes usually will provide their own stylesheet(s) and their own + * access method, but may not support every content type. + * + * Overwrites parent method with AgendaItem specific value for use by the + * parent class worker methods. + * * @return complete path info string */ + @Override public String[] getStylesheets() { return new String[] { - "/static/content-types/com/arsdigita/cms/contenttypes/SiteProxy.xsl" + INTERNAL_THEME_TYPES_DIR + "SiteProxy.xsl" }; } } diff --git a/ccm-cms-types-siteproxy/web/static/content-types/com/arsdigita/cms/contenttypes/SiteProxy.xsl b/ccm-cms-types-siteproxy/web/themes/heirloom/contenttypes/SiteProxy.xsl similarity index 100% rename from ccm-cms-types-siteproxy/web/static/content-types/com/arsdigita/cms/contenttypes/SiteProxy.xsl rename to ccm-cms-types-siteproxy/web/themes/heirloom/contenttypes/SiteProxy.xsl diff --git a/ccm-cms-types-survey/src/com/arsdigita/cms/contenttypes/SurveyInitializer.java b/ccm-cms-types-survey/src/com/arsdigita/cms/contenttypes/SurveyInitializer.java index a63fc5a03..4139f25cb 100755 --- a/ccm-cms-types-survey/src/com/arsdigita/cms/contenttypes/SurveyInitializer.java +++ b/ccm-cms-types-survey/src/com/arsdigita/cms/contenttypes/SurveyInitializer.java @@ -1,32 +1,80 @@ +/* + * Copyright (C) 2010 Sören Bernstein 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.cms.contenttypes; import com.arsdigita.formbuilder.util.FormbuilderSetup; import com.arsdigita.runtime.DomainInitEvent; + import java.util.Arrays; import java.util.List; + import org.apache.log4j.Logger; /** + * Executes at each system startup and initializes the Survey content type. + * + * Defines the content type specific properties and just uses the super class + * methods to register the content type with the (transient) content type store + * (map). This is done by runtimeRuntime startup method which runs the init() + * methods of all initializers (this one just using the parent implementation). * * @author Sören Bernstein; * @version $Id: SurveyInitializer.java $ */ public class SurveyInitializer extends ContentTypeInitializer { + /** Private Logger instance for debugging purpose. */ private static final Logger s_log = Logger.getLogger(SurveyInitializer.class); + /** + * Constructor, sets the PDL manifest file and object type string. + */ public SurveyInitializer() { super("ccm-cms-types-survey.pdl.mf", Survey.BASE_DATA_OBJECT_TYPE); } + /** + * Retrieve location of this content type's internal default theme + * stylesheet(s) which concomitantly serve as a fallback if a custom theme + * is engaged. + * + * Custom themes usually will provide their own stylesheet(s) and their own + * access method, but may not support every content type. + * + * Overwrites parent method with AgendaItem specific value for use by the + * parent class worker methods. + * + * @return String array of XSL stylesheet files of the internal default theme + */ @Override public String[] getStylesheets() { return new String[]{ - "/static/content-types/com/arsdigita/cms/contenttypes/Survey.xsl" + INTERNAL_THEME_TYPES_DIR + "Survey.xsl" }; } + /** + * Retrieves fully qualified traversal adapter file name. + * @return + */ @Override public String getTraversalXML() { return "/WEB-INF/traversal-adapters/com/arsdigita/cms/contenttypes/Survey.xml"; diff --git a/ccm-cms-types-survey/web/static/content-types/com/arsdigita/cms/contenttypes/Survey.xsl b/ccm-cms-types-survey/web/themes/heirloom/contenttypes/Survey.xsl similarity index 100% rename from ccm-cms-types-survey/web/static/content-types/com/arsdigita/cms/contenttypes/Survey.xsl rename to ccm-cms-types-survey/web/themes/heirloom/contenttypes/Survey.xsl diff --git a/ccm-cms/etc/servlet-mappings.xml b/ccm-cms/etc/servlet-mappings.xml index 5aba4d603..03b613b28 100755 --- a/ccm-cms/etc/servlet-mappings.xml +++ b/ccm-cms/etc/servlet-mappings.xml @@ -1,5 +1,5 @@ content-section - /__ccm__/servlet/content-section/* + /themes/servlet/content-section/* diff --git a/ccm-cms/src/WEB-INF/resources/cms-stylesheet-paths.txt b/ccm-cms/src/WEB-INF/resources/cms-stylesheet-paths.txt index 09aea144d..e32a755fe 100755 --- a/ccm-cms/src/WEB-INF/resources/cms-stylesheet-paths.txt +++ b/ccm-cms/src/WEB-INF/resources/cms-stylesheet-paths.txt @@ -4,11 +4,11 @@ # the full story. # Grabs custom item xsl for CMS -http://::host::/__ccm__/servlet/content-item/index.xsl?oid=::item_template_oid::&delegated=::item_delegated_url:: +http://::host::/themes/servlet/content-item/index.xsl?oid=::item_template_oid::&delegated=::item_delegated_url:: -http://::host::/resource/::webapps::/__ccm__/apps/::application::/xsl/::url::-::outputtype::-::locale::.xsl -http://::host::/resource/::webapps::/__ccm__/apps/::application::/xsl/::url::-::outputtype::.xsl +http://::host::/resource/::webapps::/themes/heirloom/apps/::application::/xsl/::url::-::outputtype::-::locale::.xsl +http://::host::/resource/::webapps::/themes/heirloom/apps/::application::/xsl/::url::-::outputtype::.xsl -http://::host::/resource/::webapps::/__ccm__/apps/::application::/xsl/::url::-::locale::.xsl -http://::host::/resource/::webapps::/__ccm__/apps/::application::/xsl/::url::.xsl +http://::host::/resource/::webapps::/themes/heirloom/apps/::application::/xsl/::url::-::locale::.xsl +http://::host::/resource/::webapps::/themes/heirloom/apps/::application::/xsl/::url::.xsl diff --git a/ccm-cms/src/com/arsdigita/cms/CMS.java b/ccm-cms/src/com/arsdigita/cms/CMS.java index b8aebc065..666e7b652 100755 --- a/ccm-cms/src/com/arsdigita/cms/CMS.java +++ b/ccm-cms/src/com/arsdigita/cms/CMS.java @@ -33,6 +33,7 @@ import org.apache.log4j.Logger; */ public abstract class CMS { + /** Private Logger instance for debugging purpose. */ private static final Logger s_log = Logger.getLogger(CMS.class); /** The CMS XML namespace. */ diff --git a/ccm-cms/src/com/arsdigita/cms/CMSConfig.java b/ccm-cms/src/com/arsdigita/cms/CMSConfig.java index e84cc9a78..599240674 100755 --- a/ccm-cms/src/com/arsdigita/cms/CMSConfig.java +++ b/ccm-cms/src/com/arsdigita/cms/CMSConfig.java @@ -94,6 +94,7 @@ import org.apache.log4j.Logger; */ public final class CMSConfig extends AbstractConfig { + /** Private Logger instance for debugging purpose. */ private static final Logger s_log = Logger.getLogger(CMSConfig.class); /** Private Object to hold one's own instance to return to users. */ private static CMSConfig s_config; diff --git a/ccm-cms/src/com/arsdigita/cms/contentsection/ContentSectionConfig.java b/ccm-cms/src/com/arsdigita/cms/contentsection/ContentSectionConfig.java index 94312b4fe..2df8f3ea6 100644 --- a/ccm-cms/src/com/arsdigita/cms/contentsection/ContentSectionConfig.java +++ b/ccm-cms/src/com/arsdigita/cms/contentsection/ContentSectionConfig.java @@ -42,7 +42,7 @@ import org.apache.log4j.Logger; */ public final class ContentSectionConfig extends AbstractConfig { - /** Private Logger instance. */ + /** Private Logger instance for debugging purpose. */ private static final Logger s_log = Logger.getLogger(ContentSectionConfig.class); diff --git a/ccm-cms/src/com/arsdigita/cms/contenttypes/ContentTypeInitializer.java b/ccm-cms/src/com/arsdigita/cms/contenttypes/ContentTypeInitializer.java index f0c8fa0b3..12ff8d5d7 100755 --- a/ccm-cms/src/com/arsdigita/cms/contenttypes/ContentTypeInitializer.java +++ b/ccm-cms/src/com/arsdigita/cms/contenttypes/ContentTypeInitializer.java @@ -59,6 +59,11 @@ public abstract class ContentTypeInitializer extends CompoundInitializer { private final String m_objectType; /** Just a placeholder in abstract method */ public static final String[] EMPTY_ARRAY = new String[0]; + /** Directory holding the internal base theme */ + public static final String INTERNAL_THEME_DIR = "/themes/heirloom/"; + /** Directory holding the internal base theme */ + public static final String INTERNAL_THEME_TYPES_DIR = INTERNAL_THEME_DIR + + "contenttypes/"; /** * Constructor, sets specific manifest file and object type. @@ -177,21 +182,18 @@ public abstract class ContentTypeInitializer extends CompoundInitializer { } /** - * Retrieves a list of style sheets assoziated with a content type. + * Retrieves location of a content type's internal default theme + * stylesheet(s) which concomitantly serve as a fallback if a custom theme + * is engaged. + * + * Custom themes usually will provide their own stylesheet(s) and their own + * access method, but may not support every content type. + * * Has to be overwritten by each specific content types initializer to * provide the correct location of its stylesheets. * * @return List (array) of fully qualified file names (relative to docuemnt / * context root) to content types style sheets. - * //@deprecated without replacement. - * Since a long time {@link com.arsdigita.templating.PatternStylesheetResolver - * PatternStylesheetResolver} is used to locate stylesheets based on a - * file patterns. Not used anymore (pb 2011.01.20) - * - * Correction: - * As of 6.6.x it is really used to locate the content type stylesheet, - * in distinction from location of applications stylesheets. - * */ public String[] getStylesheets() { return EMPTY_ARRAY; diff --git a/ccm-cms/src/com/arsdigita/cms/dispatcher/ContentItemXSLServlet.java b/ccm-cms/src/com/arsdigita/cms/dispatcher/ContentItemXSLServlet.java index f17a4b1fd..c9f6becd9 100755 --- a/ccm-cms/src/com/arsdigita/cms/dispatcher/ContentItemXSLServlet.java +++ b/ccm-cms/src/com/arsdigita/cms/dispatcher/ContentItemXSLServlet.java @@ -80,7 +80,7 @@ public class ContentItemXSLServlet extends BaseServlet { HttpResourceLocator loc = new HttpResourceLocator( Web.getConfig().getHost(), Web.getConfig().getDispatcherContextPath(), - "/__ccm__/servlet/template", + "/themes/servlet/template", "/index.xsl", params); diff --git a/ccm-cms/src/com/arsdigita/cms/dispatcher/ContentTypeXSLServlet.java b/ccm-cms/src/com/arsdigita/cms/dispatcher/ContentTypeXSLServlet.java index 8adbc42a4..86bdf2362 100755 --- a/ccm-cms/src/com/arsdigita/cms/dispatcher/ContentTypeXSLServlet.java +++ b/ccm-cms/src/com/arsdigita/cms/dispatcher/ContentTypeXSLServlet.java @@ -45,6 +45,7 @@ public class ContentTypeXSLServlet extends BaseServlet { private static final Logger s_log = Logger.getLogger(ContentTypeXSLServlet.class); + @Override protected void doService(HttpServletRequest sreq, HttpServletResponse sresp) throws ServletException, IOException { diff --git a/ccm-cms/web/themes/heirloom/packages/cms/xsl/cms-item.xsl b/ccm-cms/web/themes/heirloom/packages/cms/xsl/cms-item.xsl index 73badae43..94d804470 100755 --- a/ccm-cms/web/themes/heirloom/packages/cms/xsl/cms-item.xsl +++ b/ccm-cms/web/themes/heirloom/packages/cms/xsl/cms-item.xsl @@ -11,7 +11,7 @@ - + diff --git a/ccm-core/bin/ccm-run b/ccm-core/bin/ccm-run index dfc1f9c0a..463c7c6fe 100644 --- a/ccm-core/bin/ccm-run +++ b/ccm-core/bin/ccm-run @@ -57,9 +57,9 @@ then exit 1 fi -if [ ! -d ${CCM_HOME_DIR}/__ccm__ ] +if [ ! -d ${CCM_HOME_DIR}/templates ] then - echo "Error: CCM_HOME_DIR path is invalid \(no __ccm__ directory in CCM_HOME_DIR\)." + echo "Error: CCM_HOME_DIR path is invalid \(no templates directory in CCM_HOME_DIR\)." exit 1 fi diff --git a/ccm-core/src/WEB-INF/resources/stylesheet-paths.txt b/ccm-core/src/WEB-INF/resources/stylesheet-paths.txt index a4a098fc1..2e93054b8 100755 --- a/ccm-core/src/WEB-INF/resources/stylesheet-paths.txt +++ b/ccm-core/src/WEB-INF/resources/stylesheet-paths.txt @@ -3,8 +3,8 @@ # "PatternStylesheetResolver". Please read the Javadoc for that file for # the full story. -http://::host::/resource/::webapps::/__ccm__/apps/::application::/xsl/::url::-::outputtype::-::locale::.xsl -http://::host::/resource/::webapps::/__ccm__/apps/::application::/xsl/::url::-::outputtype::.xsl +http://::host::/resource/::webapps::/themes/heirloom/apps/::application::/xsl/::url::-::outputtype::-::locale::.xsl +http://::host::/resource/::webapps::/themes/heirloom/apps/::application::/xsl/::url::-::outputtype::.xsl -http://::host::/resource/::webapps::/__ccm__/apps/::application::/xsl/::url::-::locale::.xsl -http://::host::/resource/::webapps::/__ccm__/apps/::application::/xsl/::url::.xsl +http://::host::/resource/::webapps::/themes/heirloom/apps/::application::/xsl/::url::-::locale::.xsl +http://::host::/resource/::webapps::/themes/heirloom/apps/::application::/xsl/::url::.xsl diff --git a/ccm-core/src/com/arsdigita/web/ContextRegistrationServlet.java b/ccm-core/src/com/arsdigita/web/ContextRegistrationServlet.java index 18e0f061d..b714240da 100755 --- a/ccm-core/src/com/arsdigita/web/ContextRegistrationServlet.java +++ b/ccm-core/src/com/arsdigita/web/ContextRegistrationServlet.java @@ -46,7 +46,7 @@ import javax.servlet.ServletException; * * <servlet-mapping> * <servlet-name>reg</servlet-name> - * <url-pattern>/__ccm__/null/reg/*</url-pattern> + * <url-pattern>/templates/null/reg/*</url-pattern> * </servlet-mapping> * *

diff --git a/ccm-core/src/com/arsdigita/web/LegacyAdapterServlet.java b/ccm-core/src/com/arsdigita/web/LegacyAdapterServlet.java index a3de134c5..c2bf3de7a 100755 --- a/ccm-core/src/com/arsdigita/web/LegacyAdapterServlet.java +++ b/ccm-core/src/com/arsdigita/web/LegacyAdapterServlet.java @@ -50,7 +50,7 @@ import org.apache.log4j.Logger; * * <servlet-mapping> * <servlet-name>legacy-adapter</servlet-name> - * <url-pattern>/__ccm__/servlet/legacy-adapter/*</url-pattern> + * <url-pattern>/themes/servlet/legacy-adapter/*</url-pattern> * </servlet-mapping> * * diff --git a/ccm-core/src/com/arsdigita/web/URL.java b/ccm-core/src/com/arsdigita/web/URL.java index e5fab9105..971a011fc 100755 --- a/ccm-core/src/com/arsdigita/web/URL.java +++ b/ccm-core/src/com/arsdigita/web/URL.java @@ -133,13 +133,18 @@ import org.apache.log4j.Logger; public class URL { private static final Logger s_log = Logger.getLogger(URL.class); + /** + * @deprecated + */ private static final String INTERNAL_DIR = "/__ccm__"; /** * The standard location for JSP files. + * @deprecated */ public static final String JSP_DIR = INTERNAL_DIR + "/jsp"; /** * The standard location for static files. + * @deprecated */ public static final String STATIC_DIR = INTERNAL_DIR + "/static"; /** @@ -147,12 +152,14 @@ public class URL { * No longer in use. */ // public static final String XSL_DIR = INTERNAL_DIR + "/xsl"; + + + public static final String THEMES_DIR = "/themes"; + /** * The standard location for servlets. */ - public static final String SERVLET_DIR = INTERNAL_DIR + "/servlet"; - - public static final String THEMES_DIR = "/themes"; + public static final String SERVLET_DIR = THEMES_DIR + "/servlet"; public static final String INTERNAL_THEME_DIR = THEMES_DIR + "/heirloom"; diff --git a/ccm-core/src/com/arsdigita/web/Web.java b/ccm-core/src/com/arsdigita/web/Web.java index 0150b9101..626259620 100755 --- a/ccm-core/src/com/arsdigita/web/Web.java +++ b/ccm-core/src/com/arsdigita/web/Web.java @@ -178,13 +178,13 @@ public class Web { * to search for the second component 'path'. So, if the * 'resource' is: *

-     *  /myproj,ccm-cms,ROOT/__ccm__/apps/content-section/index.sl
+     *  /myproj,ccm-cms,ROOT/themes/heirloom/apps/content-section/index.sl
      * 
* then this method will look for resources at *
-     *  /myproj/__ccm__/apps/content-section/index.sl
-     *  /ccm-cms/__ccm__/apps/content-section/index.sl
-     *  /ROOT/__ccm__/apps/content-section/index.sl
+     *  /myproj/themes/heirloom/apps/content-section/index.sl
+     *  /ccm-cms/themes/heirloom/apps/content-section/index.sl
+     *  /ROOT/themes/heirloom/apps/content-section/index.sl
      * 
* @param resource the resource name * @return the URL for the resource, or null @@ -201,12 +201,12 @@ public class Web { * webapp resource. The first argument is a list of * webapp paths to search through for the path. So * if the webapps param is { 'myproj', 'ccm-cms', 'ROOT' } - * and the path parma is '/__ccm__/apps/content-section/index.xsl' + * and the path parma is '/themes/heirloom/apps/content-section/index.xsl' * then the paths that are searched are: *
-     *  /myproj/__ccm__/apps/content-section/index.sl
-     *  /ccm-cms/__ccm__/apps/content-section/index.sl
-     *  /ROOT/__ccm__/apps/content-section/index.sl
+     *  /myproj/themes/heirloom/apps/content-section/index.sl
+     *  /ccm-cms/themes/heirloom/apps/content-section/index.sl
+     *  /ROOT/themes/heirloom/apps/content-section/index.sl
      * 
* @param webapps the list of webapps * @param path the resource path diff --git a/ccm-core/web/WEB-INF/web.ccm-core.xml b/ccm-core/web/WEB-INF/web.ccm-core.xml index af8a3ca8b..076a33871 100644 --- a/ccm-core/web/WEB-INF/web.ccm-core.xml +++ b/ccm-core/web/WEB-INF/web.ccm-core.xml @@ -148,7 +148,7 @@ reg - /__ccm__/null/reg/* + /themes/null/reg/* @@ -158,7 +158,7 @@ legacy-adapter - /__ccm__/servlet/legacy-adapter/* + /themes/servlet/legacy-adapter/* @@ -195,22 +195,22 @@ content-section - /__ccm__/servlet/content-section/* + /themes/servlet/content-section/* content-item-xsl - /__ccm__/servlet/content-item/* + /themes/servlet/content-item/* content-type-xsl - /__ccm__/servlet/content-type/* + /themes/servlet/content-type/* template-xsl - /__ccm__/servlet/template/* + /themes/servlet/template/* diff --git a/ccm-formbuilder-pdf/doc/formbuilder-pdf-standalone/README b/ccm-formbuilder-pdf/doc/formbuilder-pdf-standalone/README index cd4df68c2..234a06d48 100644 --- a/ccm-formbuilder-pdf/doc/formbuilder-pdf-standalone/README +++ b/ccm-formbuilder-pdf/doc/formbuilder-pdf-standalone/README @@ -8,7 +8,7 @@ If shortcuts should be installed as its own web context again following modifications are necessary: 1. remove webapp="xxx" from application.xml 2. move the files in this dir to WEB-INF/ -3. edit __ccm__/.../xsl/index.xsl according the comment +3. edit themes/.../xsl/index.xsl according the comment xsl dir hab been moved from root dir (not CCM compliant practice) into package/ccm-formbuilder-pdf/xsl/main.xsl diff --git a/ccm-forum-categorised/src/com/arsdigita/forum/categorised/CategorySubtreePageBuilder.java b/ccm-forum-categorised/src/com/arsdigita/forum/categorised/CategorySubtreePageBuilder.java index aeedf2c4f..870cccab3 100644 --- a/ccm-forum-categorised/src/com/arsdigita/forum/categorised/CategorySubtreePageBuilder.java +++ b/ccm-forum-categorised/src/com/arsdigita/forum/categorised/CategorySubtreePageBuilder.java @@ -22,8 +22,9 @@ public class CategorySubtreePageBuilder implements PageBuilder { // // the title of the page is important because we use the xsl in ccm-ldn-aplaws - // web/__ccm__/themes/aplaws/category-step.xsl that refers to it. This - // matches the page defined in ccm-ldn-aplaws/web/packages/content-section/www/admin/load-cat.jsp + // web/themes/static/aplaws/category-step.xsl that refers to it. This + // matches the page defined in + // ccm-ldn-aplaws/web/packages/content-section/www/admin/load-cat.jsp Page page = new EmptyPage(); page.setTitle("childCategories"); diff --git a/ccm-forum/doc/forum-standalone/README b/ccm-forum/doc/forum-standalone/README index 52a3aaad1..eb58a2445 100644 --- a/ccm-forum/doc/forum-standalone/README +++ b/ccm-forum/doc/forum-standalone/README @@ -10,8 +10,8 @@ modifications are necessary: 2. move the files in this dir to WEB-INF/ 3. change src/com/ad/london/forum/Forum.java method getServletContext() as back to "/files" -4. edit __ccm__/.../xsl/index.xsl according the comment -5. edit in ccm-ldn-aplaws /web/__ccm__/themes/aplaws/forum* +4. edit themes/.../xsl/index.xsl according the comment +5. edit in ccm-ldn-aplaws /web/themes/static/aplaws/forum* according to the comment diff --git a/ccm-forum/doc/new-features.txt b/ccm-forum/doc/new-features.txt index a6b86d341..51cecfa67 100644 --- a/ccm-forum/doc/new-features.txt +++ b/ccm-forum/doc/new-features.txt @@ -59,7 +59,7 @@ information entered up to that point. On our site we live with this small risk but mitigate it by restarting servers at unsociable hours where possible. I have put examle theme files in -ccm-ldn-aplaws/web/__ccm__/themes/aplaws/forum-example: forum-index.xsl, +ccm-ldn-aplaws/web/themes/static/aplaws/forum-example: forum-index.xsl, forum-index.css and the contents of images/forum To have a look at a forum using these files, copy the xsl and css to the top diff --git a/ccm-forum/etc/servlet-mappings.xml b/ccm-forum/etc/servlet-mappings.xml index 4186a7f67..3071658fc 100755 --- a/ccm-forum/etc/servlet-mappings.xml +++ b/ccm-forum/etc/servlet-mappings.xml @@ -1,4 +1,4 @@ ForumServlet - /__ccm__/servlet/forum/* + /themes/servlet/forum/* diff --git a/ccm-ldn-aplaws/bundles/custom/cfg/web.xml b/ccm-ldn-aplaws/bundles/custom/cfg/web.xml index 3206417dc..4bbeef61a 100755 --- a/ccm-ldn-aplaws/bundles/custom/cfg/web.xml +++ b/ccm-ldn-aplaws/bundles/custom/cfg/web.xml @@ -351,7 +351,7 @@ portlet-type-xsl - /__ccm__/servlet/portlet-type/* + /themes/servlet/portlet-type/* @@ -427,7 +427,7 @@ reg - /__ccm__/null/reg/* + /themes/null/reg/* @@ -437,7 +437,7 @@ legacy-adapter - /__ccm__/servlet/legacy-adapter/* + /themes/servlet/legacy-adapter/* @@ -472,22 +472,22 @@ content-section - /__ccm__/servlet/content-section/* + /themes/servlet/content-section/* content-item-xsl - /__ccm__/servlet/content-item/* + /themes/servlet/content-item/* content-type-xsl - /__ccm__/servlet/content-type/* + /themes/servlet/content-type/* template-xsl - /__ccm__/servlet/template/* + /themes/servlet/template/* diff --git a/ccm-ldn-aplaws/bundles/demo/cfg/web.xml b/ccm-ldn-aplaws/bundles/demo/cfg/web.xml index 977c09f54..ea98f8a28 100755 --- a/ccm-ldn-aplaws/bundles/demo/cfg/web.xml +++ b/ccm-ldn-aplaws/bundles/demo/cfg/web.xml @@ -329,7 +329,7 @@ portlet-type-xsl - /__ccm__/servlet/portlet-type/* + /themes/servlet/portlet-type/* @@ -405,7 +405,7 @@ reg - /__ccm__/null/reg/* + /themes/null/reg/* @@ -415,7 +415,7 @@ legacy-adapter - /__ccm__/servlet/legacy-adapter/* + /themes/servlet/legacy-adapter/* @@ -450,22 +450,22 @@ content-section - /__ccm__/servlet/content-section/* + /themes/servlet/content-section/* content-item-xsl - /__ccm__/servlet/content-item/* + /themes/servlet/content-item/* content-type-xsl - /__ccm__/servlet/content-type/* + /themes/servlet/content-type/* template-xsl - /__ccm__/servlet/template/* + /themes/servlet/template/* diff --git a/ccm-ldn-aplaws/bundles/devel/cfg/web.xml b/ccm-ldn-aplaws/bundles/devel/cfg/web.xml index c58b8d905..509bcaced 100755 --- a/ccm-ldn-aplaws/bundles/devel/cfg/web.xml +++ b/ccm-ldn-aplaws/bundles/devel/cfg/web.xml @@ -351,7 +351,7 @@ portlet-type-xsl - /__ccm__/servlet/portlet-type/* + /themes/servlet/portlet-type/* @@ -427,7 +427,7 @@ reg - /__ccm__/null/reg/* + /themes/null/reg/* @@ -437,7 +437,7 @@ legacy-adapter - /__ccm__/servlet/legacy-adapter/* + /themes/servlet/legacy-adapter/* @@ -472,22 +472,22 @@ content-section - /__ccm__/servlet/content-section/* + /themes/servlet/content-section/* content-item-xsl - /__ccm__/servlet/content-item/* + /themes/servlet/content-item/* content-type-xsl - /__ccm__/servlet/content-type/* + /themes/servlet/content-type/* template-xsl - /__ccm__/servlet/template/* + /themes/servlet/template/* diff --git a/ccm-ldn-aplaws/bundles/extended/cfg/web.xml b/ccm-ldn-aplaws/bundles/extended/cfg/web.xml index dd57af3d3..d8642e5c7 100755 --- a/ccm-ldn-aplaws/bundles/extended/cfg/web.xml +++ b/ccm-ldn-aplaws/bundles/extended/cfg/web.xml @@ -351,7 +351,7 @@ portlet-type-xsl - /__ccm__/servlet/portlet-type/* + /themes/servlet/portlet-type/* @@ -427,7 +427,7 @@ reg - /__ccm__/null/reg/* + /themes/null/reg/* @@ -437,7 +437,7 @@ legacy-adapter - /__ccm__/servlet/legacy-adapter/* + /themes/servlet/legacy-adapter/* @@ -472,22 +472,22 @@ content-section - /__ccm__/servlet/content-section/* + /themes/servlet/content-section/* content-item-xsl - /__ccm__/servlet/content-item/* + /themes/servlet/content-item/* content-type-xsl - /__ccm__/servlet/content-type/* + /themes/servlet/content-type/* template-xsl - /__ccm__/servlet/template/* + /themes/servlet/template/* diff --git a/ccm-ldn-aplaws/bundles/standard/cfg/web.xml b/ccm-ldn-aplaws/bundles/standard/cfg/web.xml index 5e92afe9b..52bfcb18f 100755 --- a/ccm-ldn-aplaws/bundles/standard/cfg/web.xml +++ b/ccm-ldn-aplaws/bundles/standard/cfg/web.xml @@ -351,7 +351,7 @@ portlet-type-xsl - /__ccm__/servlet/portlet-type/* + /themes/servlet/portlet-type/* @@ -427,7 +427,7 @@ reg - /__ccm__/null/reg/* + /themes/null/reg/* @@ -437,7 +437,7 @@ legacy-adapter - /__ccm__/servlet/legacy-adapter/* + /themes/servlet/legacy-adapter/* @@ -472,22 +472,22 @@ content-section - /__ccm__/servlet/content-section/* + /themes/servlet/content-section/* content-item-xsl - /__ccm__/servlet/content-item/* + /themes/servlet/content-item/* content-type-xsl - /__ccm__/servlet/content-type/* + /themes/servlet/content-type/* template-xsl - /__ccm__/servlet/template/* + /themes/servlet/template/* diff --git a/ccm-ldn-aplaws/src/WEB-INF/resources/aplaws-stylesheet-paths.txt b/ccm-ldn-aplaws/src/WEB-INF/resources/aplaws-stylesheet-paths.txt index 0ef0e6736..2f8fb9a59 100755 --- a/ccm-ldn-aplaws/src/WEB-INF/resources/aplaws-stylesheet-paths.txt +++ b/ccm-ldn-aplaws/src/WEB-INF/resources/aplaws-stylesheet-paths.txt @@ -4,11 +4,11 @@ # the full story. # Output type is for things such as text/javascript -http://::host::/resource/::webapp::/__ccm__/apps/::application::/xsl/::url::-::outputtype::-::locale::.xsl -http://::host::/resource/::webapp::/__ccm__/apps/::application::/xsl/::url::-::outputtype::.xsl +http://::host::/resource/::webapp::/themes/heirloom/apps/::application::/xsl/::url::-::outputtype::-::locale::.xsl +http://::host::/resource/::webapp::/themes/heirloom/apps/::application::/xsl/::url::-::outputtype::.xsl # Grabs custom item xsl for CMS -http://::host::/__ccm__/servlet/content-item/index.xsl?oid=::item_template_oid::&delegated=::item_delegated_url:: +http://::host::/themes/servlet/content-item/index.xsl?oid=::item_template_oid::&delegated=::item_delegated_url:: # added by Quasimodo # Theme with single entry point (e.g Mandalay) @@ -37,8 +37,8 @@ http://::host::/resource/ROOT/__ccm__/themes/aplaws/::application::-::url::-::lo http://::host::/resource/ROOT/__ccm__/themes/aplaws/::application::-::url::.xsl # Global default, from application's own web app -http://::host::/resource/::webapp::/__ccm__/apps/::application::/xsl/::url::-::locale::.xsl -http://::host::/resource/::webapp::/__ccm__/apps/::application::/xsl/::url::.xsl +http://::host::/resource/::webapp::/themes/heirloom/apps/::application::/xsl/::url::-::locale::.xsl +http://::host::/resource/::webapp::/themes/heirloom/apps/::application::/xsl/::url::.xsl # Global default, from application's own web app - relocated version >= 6.6.1 http://::host::/resource/ROOT/themes/heirloom/apps/::application::/xsl/::url::-::locale::.xsl diff --git a/ccm-ldn-aplaws/web/WEB-INF/web.xml-aplaws b/ccm-ldn-aplaws/web/WEB-INF/web.xml-aplaws index 030b48d29..575317dd7 100755 --- a/ccm-ldn-aplaws/web/WEB-INF/web.xml-aplaws +++ b/ccm-ldn-aplaws/web/WEB-INF/web.xml-aplaws @@ -355,7 +355,7 @@ portlet-type-xsl - /__ccm__/servlet/portlet-type/* + /themes/servlet/portlet-type/* @@ -431,7 +431,7 @@ reg - /__ccm__/null/reg/* + /themes/null/reg/* @@ -441,7 +441,7 @@ legacy-adapter - /__ccm__/servlet/legacy-adapter/* + /themes/servlet/legacy-adapter/* @@ -476,22 +476,22 @@ content-section - /__ccm__/servlet/content-section/* + /themes/servlet/content-section/* content-item-xsl - /__ccm__/servlet/content-item/* + /themes/servlet/content-item/* content-type-xsl - /__ccm__/servlet/content-type/* + /themes/servlet/content-type/* template-xsl - /__ccm__/servlet/template/* + /themes/servlet/template/* diff --git a/ccm-ldn-aplaws/web/themes/static/aplaws/admin-index.xsl b/ccm-ldn-aplaws/web/themes/static/aplaws/admin-index.xsl index fa0b5ad35..86bc861d2 100644 --- a/ccm-ldn-aplaws/web/themes/static/aplaws/admin-index.xsl +++ b/ccm-ldn-aplaws/web/themes/static/aplaws/admin-index.xsl @@ -4,7 +4,7 @@ xmlns:aplaws="http://www.arsdigita.com/aplaws/1.0" version="1.0"> diff --git a/ccm-ldn-aplaws/web/themes/static/aplaws/atoz-admin.xsl b/ccm-ldn-aplaws/web/themes/static/aplaws/atoz-admin.xsl index c5ca40b98..f93dc8a51 100644 --- a/ccm-ldn-aplaws/web/themes/static/aplaws/atoz-admin.xsl +++ b/ccm-ldn-aplaws/web/themes/static/aplaws/atoz-admin.xsl @@ -5,11 +5,11 @@ version="1.0"> - + diff --git a/ccm-ldn-aplaws/web/themes/static/aplaws/atoz-index.xsl b/ccm-ldn-aplaws/web/themes/static/aplaws/atoz-index.xsl index 55e315629..b9dbe3aff 100644 --- a/ccm-ldn-aplaws/web/themes/static/aplaws/atoz-index.xsl +++ b/ccm-ldn-aplaws/web/themes/static/aplaws/atoz-index.xsl @@ -12,12 +12,12 @@ version="1.0"> - + diff --git a/ccm-ldn-aplaws/web/themes/static/aplaws/css/wysiwyg.css b/ccm-ldn-aplaws/web/themes/static/aplaws/css/wysiwyg.css index 2b9fd37ca..2806df3c4 100644 --- a/ccm-ldn-aplaws/web/themes/static/aplaws/css/wysiwyg.css +++ b/ccm-ldn-aplaws/web/themes/static/aplaws/css/wysiwyg.css @@ -13,5 +13,5 @@ color: #6F3 !important; .dark { color: #336 !important; -font-style: bold !important; +font-weight: bold !important; } diff --git a/ccm-ldn-aplaws/web/themes/static/aplaws/lib/head.xsl b/ccm-ldn-aplaws/web/themes/static/aplaws/lib/head.xsl index 2cb038b97..74c7e90c3 100644 --- a/ccm-ldn-aplaws/web/themes/static/aplaws/lib/head.xsl +++ b/ccm-ldn-aplaws/web/themes/static/aplaws/lib/head.xsl @@ -26,7 +26,7 @@ diff --git a/ccm-ldn-aplaws/web/themes/static/aplaws/navigation-admin.xsl b/ccm-ldn-aplaws/web/themes/static/aplaws/navigation-admin.xsl index 6233f0d7a..ce8f82af0 100644 --- a/ccm-ldn-aplaws/web/themes/static/aplaws/navigation-admin.xsl +++ b/ccm-ldn-aplaws/web/themes/static/aplaws/navigation-admin.xsl @@ -4,7 +4,7 @@ xmlns:aplaws="http://www.arsdigita.com/aplaws/1.0" version="1.0"> - + diff --git a/ccm-ldn-aplaws/web/themes/static/aplaws/portal-workspace-index.xsl b/ccm-ldn-aplaws/web/themes/static/aplaws/portal-workspace-index.xsl index dc71550d2..e95f5a4e1 100644 --- a/ccm-ldn-aplaws/web/themes/static/aplaws/portal-workspace-index.xsl +++ b/ccm-ldn-aplaws/web/themes/static/aplaws/portal-workspace-index.xsl @@ -11,7 +11,7 @@ exclude-result-prefixes="xsl bebop aplaws ui cms nav search portal" version="1.0"> - + diff --git a/ccm-ldn-aplaws/web/themes/static/aplaws/portal-workspace-portal-admin.xsl b/ccm-ldn-aplaws/web/themes/static/aplaws/portal-workspace-portal-admin.xsl index 10f65c812..39445320e 100644 --- a/ccm-ldn-aplaws/web/themes/static/aplaws/portal-workspace-portal-admin.xsl +++ b/ccm-ldn-aplaws/web/themes/static/aplaws/portal-workspace-portal-admin.xsl @@ -4,7 +4,7 @@ xmlns:aplaws="http://www.arsdigita.com/aplaws/1.0" version="1.0"> - + diff --git a/ccm-ldn-aplaws/web/themes/static/aplaws/search-admin.xsl b/ccm-ldn-aplaws/web/themes/static/aplaws/search-admin.xsl index 06891ba23..9dbf624ce 100644 --- a/ccm-ldn-aplaws/web/themes/static/aplaws/search-admin.xsl +++ b/ccm-ldn-aplaws/web/themes/static/aplaws/search-admin.xsl @@ -12,10 +12,10 @@ version="1.0"> - + diff --git a/ccm-ldn-aplaws/web/themes/static/aplaws/search-index.xsl b/ccm-ldn-aplaws/web/themes/static/aplaws/search-index.xsl index 11e9e9d3d..e99b1915f 100644 --- a/ccm-ldn-aplaws/web/themes/static/aplaws/search-index.xsl +++ b/ccm-ldn-aplaws/web/themes/static/aplaws/search-index.xsl @@ -16,12 +16,12 @@ - + diff --git a/ccm-ldn-aplaws/web/themes/static/aplaws/shortcuts-index.xsl b/ccm-ldn-aplaws/web/themes/static/aplaws/shortcuts-index.xsl index e55ae29e9..5eed7c16a 100644 --- a/ccm-ldn-aplaws/web/themes/static/aplaws/shortcuts-index.xsl +++ b/ccm-ldn-aplaws/web/themes/static/aplaws/shortcuts-index.xsl @@ -5,7 +5,7 @@ version="1.0"> diff --git a/ccm-ldn-aplaws/web/themes/static/aplaws/subsite-index.xsl b/ccm-ldn-aplaws/web/themes/static/aplaws/subsite-index.xsl index 1a894e0f5..ecc001850 100644 --- a/ccm-ldn-aplaws/web/themes/static/aplaws/subsite-index.xsl +++ b/ccm-ldn-aplaws/web/themes/static/aplaws/subsite-index.xsl @@ -5,7 +5,7 @@ version="1.0"> diff --git a/ccm-ldn-aplaws/web/themes/static/aplaws/terms-index.css b/ccm-ldn-aplaws/web/themes/static/aplaws/terms-index.css index 44cf9f315..fad9728a2 100644 --- a/ccm-ldn-aplaws/web/themes/static/aplaws/terms-index.css +++ b/ccm-ldn-aplaws/web/themes/static/aplaws/terms-index.css @@ -1,6 +1,6 @@ @import url(../../heirloom/css/acs-master.css); /* Following import is valid if terms is executed in its own */ /* web application context (ccm-ldn-terms) */ -/* @import url(/ccm-ldn-terms/__ccm__/apps/terms/xsl/index.css); */ +/* @import url(/ccm-ldn-terms/themes/heirloom/apps/terms/xsl/index.css); */ /* import if installed in the main (common) web context */ @import url(../../heirloom/apps/terms/xsl/index.css); diff --git a/ccm-ldn-aplaws/web/themes/static/aplaws/theme-index.xsl b/ccm-ldn-aplaws/web/themes/static/aplaws/theme-index.xsl index 3f85303aa..ffa4f5003 100644 --- a/ccm-ldn-aplaws/web/themes/static/aplaws/theme-index.xsl +++ b/ccm-ldn-aplaws/web/themes/static/aplaws/theme-index.xsl @@ -5,7 +5,7 @@ version="1.0"> diff --git a/ccm-ldn-aplaws/web/themes/static/aplaws/types/ContentTypes.xsl b/ccm-ldn-aplaws/web/themes/static/aplaws/types/ContentTypes.xsl index e40daef38..8b3c97dfe 100644 --- a/ccm-ldn-aplaws/web/themes/static/aplaws/types/ContentTypes.xsl +++ b/ccm-ldn-aplaws/web/themes/static/aplaws/types/ContentTypes.xsl @@ -10,7 +10,7 @@ - + diff --git a/ccm-ldn-atoz/doc/atoz-standalone/README b/ccm-ldn-atoz/doc/atoz-standalone/README index 266de3f1a..419e67274 100644 --- a/ccm-ldn-atoz/doc/atoz-standalone/README +++ b/ccm-ldn-atoz/doc/atoz-standalone/README @@ -10,8 +10,8 @@ modifications are necessary: 2. move the files in this dir to WEB-INF/ 3. change src/com/ad/london/atoz/AtoZ.java method getServletContext() as back to "/files" -4. edit __ccm__/.../xsl/index.xsl according the comment -5. edit in ccm-ldn-aplaws /web/__ccm__/themes/aplaws/atoz.xml +4. edit themes/.../xsl/index.xsl according the comment +5. edit in ccm-ldn-aplaws /web/themes/static/aplaws/atoz.xml according to the comment diff --git a/ccm-ldn-atoz/web/themes/heirloom/apps/atoz/xsl/index.xsl b/ccm-ldn-atoz/web/themes/heirloom/apps/atoz/xsl/index.xsl index f5d83f748..34a0f1381 100755 --- a/ccm-ldn-atoz/web/themes/heirloom/apps/atoz/xsl/index.xsl +++ b/ccm-ldn-atoz/web/themes/heirloom/apps/atoz/xsl/index.xsl @@ -12,6 +12,7 @@ + @@ -20,7 +21,7 @@ - + @@ -231,7 +232,7 @@