Verzeichnisstruktur im web Tree korrigiert.

git-svn-id: https://svn.libreccm.org/ccm/trunk@2016 8810af33-2d31-482b-a856-94f89814c4df
master
pb 2012-12-30 10:00:25 +00:00
parent b06fca1e50
commit aa2a964ddf
2 changed files with 51 additions and 10 deletions

View File

@ -1,9 +1,34 @@
/*
* Copyright (C) 2010-2013 University of Bremen 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; package com.arsdigita.cms.contenttypes;
// import com.arsdigita.runtime.LegacyInitEvent;
import org.apache.log4j.Logger; import org.apache.log4j.Logger;
/** /**
* Runtime initialization for the ResearchNetwork's content type, executes
* at each system startup.
*
* Just uses the super class methods.
*
* 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 <jens@jp-digital.de> * @author Jens Pelzetter <jens@jp-digital.de>
*/ */
@ -11,22 +36,38 @@ public class ResearchNetworkInitializer extends ContentTypeInitializer {
private static final Logger s_log = Logger.getLogger(ResearchNetworkInitializer.class); private static final Logger s_log = Logger.getLogger(ResearchNetworkInitializer.class);
/**
* Constructor, just sets the PDL manifest file and object type string.
*/
public ResearchNetworkInitializer() { public ResearchNetworkInitializer() {
super("ccm-cms-types-researchnetwork.pdl.mf", ResearchNetwork.BASE_DATA_OBJECT_TYPE); super("ccm-cms-types-researchnetwork.pdl.mf", ResearchNetwork.BASE_DATA_OBJECT_TYPE);
} }
@Override
public String[] getStylesheets() {
return new String[] { "/static/content-types/com/arsdigita/cms/contenttypes/ResearchNetwork.xsl" };
}
/**
* Retrieves fully qualified traversal adapter file name.
* @return
*/
@Override @Override
public String getTraversalXML() { public String getTraversalXML() {
return "/WEB-INF/traversal-adapters/com/arsdigita/cms/contenttypes/ResearchNetwork.xml"; return "/WEB-INF/traversal-adapters/com/arsdigita/cms/contenttypes/ResearchNetwork.xml";
} }
// @Override /**
// public void init(LegacyInitEvent evt) { * Retrieve location of this content type's internal default theme
// super.init(evt); * 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 + "ResearchNetwork.xsl" };
}
} }