From 7d84a5dbfe36c8277debcb0fd5f7985aa167f1f6 Mon Sep 17 00:00:00 2001 From: jensp Date: Tue, 11 Feb 2014 11:00:44 +0000 Subject: [PATCH] Some ajustments for the admin.css. git-svn-id: https://svn.libreccm.org/ccm/trunk@2515 8810af33-2d31-482b-a856-94f89814c4df --- 1 | 45 +++++++ .../src/com/arsdigita/auth/http/Loader.java | 5 +- .../cms/ui/authoring/BasicItemForm.java | 11 +- .../com/arsdigita/bebop/AbstractPortlet.java | 122 +++++++++--------- .../src/com/arsdigita/bebop/BaseLink.java | 105 ++++++++------- .../persistence/PooledConnectionSource.java | 1 - .../web/CCMApplicationContextListener.java | 80 ++++++------ .../{ie-hacks.css => public-ie-hacks.css} | 0 .../css/print/{style.css => public.css} | 0 .../web/themes/mandalay/css/screen/admin.css | 88 ++++++------- .../{ie-hacks.css => public-ie-hacks.css} | 0 .../css/screen/{style.css => public.css} | 0 .../mandalay/includes/bebop/bebopList.xsl | 114 ++++++++-------- .../themes/mandalay/layout/content-center.xml | 2 - .../themes/mandalay/settings/css-files.xml | 8 +- tools-ng/common/xsl/build-template.xsl | 12 +- 16 files changed, 312 insertions(+), 281 deletions(-) create mode 100644 1 rename ccm-sci-bundle/web/themes/mandalay/css/print/{ie-hacks.css => public-ie-hacks.css} (100%) rename ccm-sci-bundle/web/themes/mandalay/css/print/{style.css => public.css} (100%) rename ccm-sci-bundle/web/themes/mandalay/css/screen/{ie-hacks.css => public-ie-hacks.css} (100%) rename ccm-sci-bundle/web/themes/mandalay/css/screen/{style.css => public.css} (100%) diff --git a/1 b/1 new file mode 100644 index 000000000..669f94d06 --- /dev/null +++ b/1 @@ -0,0 +1,45 @@ +Buildfile: /home/jensp/pwi/openccm/ccm/trunk/build.xml + [echo] Project base directory is /home/jensp/pwi/openccm/ccm/trunk + [echo] web.xml file requested: web-sci.xml + +start: + [java] Listening for transport dt_socket at address: 8000 + [java] 02.02.2013 19:32:21 org.apache.catalina.core.AprLifecycleListener init + [java] INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /opt/sun-jdk-1.6.0.38/jre/lib/amd64/server:/opt/sun-jdk-1.6.0.38/jre/lib/amd64:/opt/sun-jdk-1.6.0.38/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib + [java] 02.02.2013 19:32:21 org.apache.coyote.http11.Http11Protocol init + [java] INFO: Initializing Coyote HTTP/1.1 on http-8080 + [java] 02.02.2013 19:32:21 org.apache.catalina.startup.Catalina load + [java] INFO: Initialization processed in 424 ms + [java] 02.02.2013 19:32:21 org.apache.catalina.core.StandardService start + [java] INFO: Starting service Catalina + [java] 02.02.2013 19:32:21 org.apache.catalina.core.StandardEngine start + [java] INFO: Starting Servlet Engine: Apache Tomcat/6.0.32 + [java] 02.02.2013 19:32:21 org.apache.catalina.startup.HostConfig deployDescriptor + [java] INFO: Deploying configuration descriptor manager.xml + [java] 02.02.2013 19:32:21 org.apache.catalina.startup.HostConfig deployDescriptor + [java] INFO: Deploying configuration descriptor host-manager.xml + [java] 02.02.2013 19:32:21 org.apache.catalina.startup.HostConfig deployDirectory + [java] INFO: Deploying web application directory docs + [java] 02.02.2013 19:32:21 org.apache.catalina.startup.HostConfig deployDirectory + [java] INFO: Deploying web application directory examples + [java] 02.02.2013 19:32:21 org.apache.catalina.core.ApplicationContext log + [java] INFO: ContextListener: contextInitialized() + [java] 02.02.2013 19:32:21 org.apache.catalina.core.ApplicationContext log + [java] INFO: SessionListener: contextInitialized() + [java] 02.02.2013 19:32:21 org.apache.catalina.startup.HostConfig deployDirectory + [java] INFO: Deploying web application directory ROOT + [java] 2013-02-02 19:32:21,965 [ main] INFO web.CCMApplicationContextListener - Starting CCM Application. + [java] 2013-02-02 19:32:21,965 [ main] INFO web.CCMApplicationContextListener - Logging context parameter is: WEB-INF/conf/log4j.properties + [java] 2013-02-02 19:32:21,967 [ main] INFO web.CCMApplicationContextListener - BaseDir set to: /home/jensp/pwi/openccm/ccm/trunk/runtime/apache-tomcat-6.0.32/webapps/ROOT/ + [java] com/arsdigita/content-section/ContentSection.pdl: line 117, column 37 [warning]: table already has primary key: com/arsdigita/content-section/ContentSection.pdl: line 43, column 38 + [java] com/arsdigita/notification/Notification.pdl: line 37, column 10 [warning]: table already has primary key: com/arsdigita/notification/Notification.pdl: line 35, column 4 + [java] com/arsdigita/notification/Notification.pdl: line 38, column 10 [warning]: table already has primary key: com/arsdigita/notification/Notification.pdl: line 35, column 4 + [java] + [java] 02.02.2013 19:32:26 org.apache.coyote.http11.Http11Protocol start + [java] INFO: Starting Coyote HTTP/1.1 on http-8080 + [java] 02.02.2013 19:32:26 org.apache.jk.common.ChannelSocket init + [java] INFO: JK: ajp13 listening on /0.0.0.0:8009 + [java] 02.02.2013 19:32:26 org.apache.jk.server.JkMain start + [java] INFO: Jk running ID=0 time=0/12 config=null + [java] 02.02.2013 19:32:26 org.apache.catalina.startup.Catalina start + [java] INFO: Server startup in 5266 ms diff --git a/ccm-auth-http/src/com/arsdigita/auth/http/Loader.java b/ccm-auth-http/src/com/arsdigita/auth/http/Loader.java index 061c70640..3ee819d61 100755 --- a/ccm-auth-http/src/com/arsdigita/auth/http/Loader.java +++ b/ccm-auth-http/src/com/arsdigita/auth/http/Loader.java @@ -138,7 +138,8 @@ public class Loader extends PackageLoader { /** * - * @return + * @return The email address of the administrator, as configured by + * {@link #setupAdministrator()}. */ private String getAdminEmail() { return (String) get(m_adminEmail); @@ -146,7 +147,7 @@ public class Loader extends PackageLoader { /** * - * @return + * @return The identifier of the administrator as configured by {@link #setupAdministrator()}. */ private String getAdminIdentifier() { return (String) get(m_adminIdent); diff --git a/ccm-cms/src/com/arsdigita/cms/ui/authoring/BasicItemForm.java b/ccm-cms/src/com/arsdigita/cms/ui/authoring/BasicItemForm.java index e09a499b5..c2062fd7b 100755 --- a/ccm-cms/src/com/arsdigita/cms/ui/authoring/BasicItemForm.java +++ b/ccm-cms/src/com/arsdigita/cms/ui/authoring/BasicItemForm.java @@ -177,7 +177,7 @@ public abstract class BasicItemForm extends FormSection // This can nowbe done by overwriting the getTitleLabel() method. // (jensp 2011-01-28) add(new Label(getTitleLabel())); - TextField titleWidget = new TextField(new TrimmedStringParameter(TITLE)); + final TextField titleWidget = new TextField(new TrimmedStringParameter(TITLE)); titleWidget.addValidationListener(new NotNullValidationListener()); titleWidget.setOnFocus("if (this.form." + NAME + ".value == '') { " + " defaulting = true; this.form." + NAME @@ -185,6 +185,7 @@ public abstract class BasicItemForm extends FormSection titleWidget.setOnKeyUp( "if (defaulting) { this.form." + NAME + ".value = urlize(this.value) }"); + titleWidget.setLabel(getTitleLabel()); titleWidget.setHint(getTitleHint()); add(titleWidget); @@ -193,7 +194,7 @@ public abstract class BasicItemForm extends FormSection // This can now be accomplished by overwriting the getNameLabel() method. // (jensp 2011-01-28) add(new Label(getNameLabel())); - TextField nameWidget = new TextField(new TrimmedStringParameter(NAME)); + final TextField nameWidget = new TextField(new TrimmedStringParameter(NAME)); nameWidget.addValidationListener(new NameValidationListener()); nameWidget.setMaxLength(190); nameWidget.setOnFocus("defaulting = false"); @@ -431,11 +432,11 @@ public abstract class BasicItemForm extends FormSection } /** - * Provides the text for the unser hint providing some detailed information + * Provides the text for the user hint providing some detailed information * how to use this widget. * * This method can be overwritten to adjust the text for some content types. - * {@link getTitleLabel()} + * {@link #getTitleLabel()} * * @return */ @@ -459,7 +460,7 @@ public abstract class BasicItemForm extends FormSection * how to use this widget. * * This method can be overwritten to adjust the text for some content types. - * {@link getNameLabel()} + * {@link #getNameLabel()} * * @return */ diff --git a/ccm-core/src/com/arsdigita/bebop/AbstractPortlet.java b/ccm-core/src/com/arsdigita/bebop/AbstractPortlet.java index a8b131d9f..fc4bc87ee 100755 --- a/ccm-core/src/com/arsdigita/bebop/AbstractPortlet.java +++ b/ccm-core/src/com/arsdigita/bebop/AbstractPortlet.java @@ -19,29 +19,28 @@ package com.arsdigita.bebop; import com.arsdigita.xml.Element; -import com.arsdigita.bebop.util.BebopConstants; // This interface contains the XML element name of this class // in a constant which is used when generating XML import com.arsdigita.bebop.util.BebopConstants; /** - * An abstract implementation of {@link Portlet} that captures - * default behavior for portlets defined by users of the {@link + * An abstract implementation of {@link Portlet} that captures default behavior for portlets defined + * by users of the {@link * com.arsdigita.bebop.portal.Portal} component. * - *

The {@link #generateXML} method in this class provides a default - * XML dressing around a Portlet. This dressing is used by Portal's - * stylesheet rules to generate a title and frame around each Portlet. - * Programmers looking to implement a Portlet should extend this class - * and override {@link #generateBodyXML}.

+ *

+ * The {@link #generateXML} method in this class provides a default XML dressing around a Portlet. + * This dressing is used by Portal's stylesheet rules to generate a title and frame around each + * Portlet. Programmers looking to implement a Portlet should extend this class and override + * {@link #generateBodyXML}.

* * @see com.arsdigita.bebop.portal.Portal * @see com.arsdigita.bebop.portal.PortalModel * @see com.arsdigita.bebop.portal.PortalModelBuilder * @see Portlet - * @author Justin Ross - * @author James Parsons + * @author Justin Ross + * @author James Parsons * @version $Id: AbstractPortlet.java 287 2005-02-22 00:29:02Z sskracic $ */ public abstract class AbstractPortlet implements Portlet, BebopConstants { @@ -62,11 +61,10 @@ public abstract class AbstractPortlet implements Portlet, BebopConstants { public static final String NARROW_PROFILE = "narrow"; /** - * An implementation of {@link Portlet#generateXML} that provides - * a default Portlet mini-schema. Portlet implementers - * cannot override this method, as it is meant to give - * the Portal stylesheet something to grab on to. If you really - * want to go your own way, implement Portlet instead of extending + * An implementation of {@link Portlet#generateXML} that provides a default Portlet mini-schema. + * Portlet implementers + * cannot override this method, as it is meant to give the Portal stylesheet something + * to grab on to. If you really want to go your own way, implement Portlet instead of extending * AbstractPortlet. * *
@@ -75,17 +73,18 @@ public abstract class AbstractPortlet implements Portlet, BebopConstants {
      * </bebop:portlet>
      * 
* - * @param pageState the PageState representing the current - * request - * @param parentElement the Element to which to attach the XML - * that this method produces - * @pre pageState != null - * @pre parentElement != null + * @param pageState The PageState representing the current request. Must not be + * null. + * @param parentElement The Element to which to attach the XML that this method produces. Must + * not be null. + * + * */ - public final void generateXML(PageState pageState, - Element parentElement) { - Element portletElement = parentElement.newChildElement(BEBOP_PORTLET, - Component.BEBOP_XML_NS); + @Override + public final void generateXML(final PageState pageState, + final Element parentElement) { + final Element portletElement = parentElement.newChildElement(BEBOP_PORTLET, + Component.BEBOP_XML_NS); portletElement.addAttribute("title", getTitle()); portletElement.addAttribute("cellNumber", Integer.toString(getCellNumber())); @@ -97,43 +96,40 @@ public abstract class AbstractPortlet implements Portlet, BebopConstants { } /** - * Generates XML for the body (not the frame) of this Portlet. It's - * the primary intention of this class that programmers override - * this particular method. + * Generates XML for the body (not the frame) of this Portlet. It's the primary intention of + * this class that programmers override this particular method. * - * @param pageState the PageState representing the current request - * @param parentElement the Element to which to attach the XML - * that this method produces - * @pre pageState != null - * @pre parentElement != null + * @param pageState The PageState representing the current request. Must not be + * null. + * @param parentElement The Element to which to attach the XML that this method produces. Must + * not be null. */ protected abstract void generateBodyXML(PageState pageState, Element parentElement); /** - * Gets the cell number of this portlet. A cell is one of several - * distinct regions, often columns, in a portal's layout. + * Gets the cell number of this portlet. A cell is one of several distinct regions, often + * columns, in a portal's layout. * - * @return the cell number of this portlet, or 1 if - * the cell number is not set. + * @return The cell number of this portlet, or 1 if the cell number is not set. */ public final int getCellNumber() { return m_cellNumber; } /** - * Sets the cell number of this portlet. A cell is one of several - * distinct regions, often columns, in a portal's layout. + * Sets the cell number of this portlet. A cell is one of several distinct regions, often + * columns, in a portal's layout. * - * @param cellNumber the cell number of this portlet + * @param cellNumber The cell number of this portlet */ - public final void setCellNumber(int cellNumber) { + public final void setCellNumber(final int cellNumber) { m_cellNumber = cellNumber; } /** - * Gets the sort key of this portlet. The sort key is used to - * order the portlets in a given cell. + * Gets the sort key of this portlet. The sort key is used to order the portlets in a given + * cell. * * @return the sort key of this portlet, or 0 if the sort key is not set. */ @@ -142,22 +138,21 @@ public abstract class AbstractPortlet implements Portlet, BebopConstants { } /** - * Sets the sort key of this portlet. The sort key is used to - * order the portlets in a given cell. + * Sets the sort key of this portlet. The sort key is used to order the portlets in a given + * cell. * * @param sortKey the sort key of this portlet */ - public final void setSortKey(int sortKey) { + public final void setSortKey(final int sortKey) { m_sortKey = sortKey; } /** - * Gets the profile of this portlet, which describes the form - * factor of this portlet. There are two profiles, wide - * and narrow. + * Gets the profile of this portlet, which describes the form factor of this portlet. There are + * two profiles, wide and narrow. + * + * @return the profile of this portlet, or an empty string if the profile is not set. * - * @return the profile of this portlet, or an empty string if the - * profile is not set. * @post return != null */ public final String getProfile() { @@ -165,24 +160,23 @@ public abstract class AbstractPortlet implements Portlet, BebopConstants { } /** - * Sets the profile of this portlet. Profile describes the form - * factor of this portlet. There are two profiles, wide - * and narrow. Use {@link #WIDE_PROFILE} or {@link + * Sets the profile of this portlet. Profile describes the form factor of this portlet. There + * are two profiles, wide and narrow. Use {@link #WIDE_PROFILE} or {@link * #NARROW_PROFILE} to specify the profile type. * - * @param profile the profile of this portlet - * @pre profile != null + * @param profile The profile of this portlet. Must not be null. + * */ - public final void setProfile(String profile) { + public final void setProfile(final String profile) { m_profile = profile; } /** * Gets the title of this portlet. * - * @return the title of this portlet, or an empty string - * if the title is not set. - * @post return != null + * @return The title of this portlet, or an empty string if the title is not set. This method + * never returns null. + * */ public final String getTitle() { return m_title; @@ -190,11 +184,11 @@ public abstract class AbstractPortlet implements Portlet, BebopConstants { /** * Sets the title of this portlet. - * - * @return the title of this portlet. - * @post return != null + * + * @param title The (new) title of this portlet. */ - public final void setTitle(String title) { + public final void setTitle(final String title) { m_title = title; } + } diff --git a/ccm-core/src/com/arsdigita/bebop/BaseLink.java b/ccm-core/src/com/arsdigita/bebop/BaseLink.java index 5209292e1..c1f61735d 100755 --- a/ccm-core/src/com/arsdigita/bebop/BaseLink.java +++ b/ccm-core/src/com/arsdigita/bebop/BaseLink.java @@ -99,7 +99,7 @@ public abstract class BaseLink extends TextStylable * @param child label component, text, image, etc. * @param url */ - public BaseLink(Component child, String url) { + public BaseLink(final Component child, final String url) { super(); m_url = url; m_child = child; @@ -111,7 +111,7 @@ public abstract class BaseLink extends TextStylable * @param label as text * @param url */ - public BaseLink(String label, String url) { + public BaseLink(final String label, final String url) { this(new Label(label), url); } @@ -119,12 +119,12 @@ public abstract class BaseLink extends TextStylable * Constructor. * * @param child - * @param l + * @param listener */ - public BaseLink(Component child, PrintListener l) { + public BaseLink(final Component child, final PrintListener listener) { this(child, ""); try { - addPrintListener(l); + addPrintListener(listener); } catch (TooManyListenersException e) { // Can't happen throw new UncheckedWrapperException("Too many listeners: " + e.getMessage(), e); @@ -135,24 +135,24 @@ public abstract class BaseLink extends TextStylable * Constructor. * * @param label - * @param l + * @param listener */ - public BaseLink(String label, PrintListener l) { - this(new Label(label), l); + public BaseLink(final String label, final PrintListener listener) { + this(new Label(label), listener); } /** * Constructor. * - * @param l + * @param listener */ - public BaseLink(PrintListener l) { - this("", l); + public BaseLink(final PrintListener listener) { + this("", listener); } @Override public Object clone() throws CloneNotSupportedException { - BaseLink result = (BaseLink) super.clone(); + final BaseLink result = (BaseLink) super.clone(); result.m_printListener = null; return result; } @@ -162,12 +162,12 @@ public abstract class BaseLink extends TextStylable * Since the PrintListener is expected to modify the * target of the PrintEvent, only one print listener can be * set for a link. - * @param listener the print listener + * @param listener The print listener. Must not null. * @throws IllegalArgumentException if listener is null. * @throws TooManyListenersException if a print listener has previously been * added. - * @pre listener != null */ - public void addPrintListener(PrintListener listener) + */ + public void addPrintListener(final PrintListener listener) throws IllegalStateException, TooManyListenersException { if (listener == null) { throw new IllegalArgumentException("Argument listener can not be null"); @@ -183,14 +183,12 @@ public abstract class BaseLink extends TextStylable * listener is not the listener that was added with {@link #addPrintListener * addPrintListener}, an IllegalArgumentException will be thrown. * - * @param listener the listener that was previously added with - * addPrintListener - * @throws IllegalArgumentException if - * listener is not the currently registered print listener or - * is - * null. @pre listener != null + * @param listener The listener that was previously added with addPrintListener. + * Must not be null. + * @throws IllegalArgumentException if listener is not the currently registered + * print listener or is null. */ - public void removePrintListener(PrintListener listener) + public void removePrintListener(final PrintListener listener) throws IllegalArgumentException { if (listener == null) { throw new IllegalArgumentException("listener can not be null"); @@ -201,7 +199,7 @@ public abstract class BaseLink extends TextStylable m_printListener = null; } - protected BaseLink firePrintEvent(PageState state) { + protected BaseLink firePrintEvent(final PageState state) { BaseLink l = this; if (m_printListener != null) { try { @@ -219,7 +217,7 @@ public abstract class BaseLink extends TextStylable return m_child; } - public void setChild(Component child) { + public void setChild(final Component child) { Assert.isUnlocked(this); m_child = child; } @@ -228,7 +226,7 @@ public abstract class BaseLink extends TextStylable return m_url; } - public final void setTarget(String url) { + public final void setTarget(final String url) { Assert.isUnlocked(this); m_url = url; @@ -237,14 +235,14 @@ public abstract class BaseLink extends TextStylable /** * Sets the type of link this link represents. * - * @param t the type of link + * @param type the type of link */ - protected void setTypeAttr(String t) { + protected void setTypeAttr(final String type) { Assert.isUnlocked(this); - setAttribute(TYPE_ATTR, t); + setAttribute(TYPE_ATTR, type); } - protected abstract void generateURL(PageState state, Element parent); + protected abstract void generateURL(final PageState state, final Element parent); /** *

Generates a DOM fragment: @@ -253,17 +251,21 @@ public abstract class BaseLink extends TextStylable * * The href attribute contains the target the link * should point to. The type attribute is used to - * give more finegrained control over which kind of link this element + * give more fine grained control over which kind of link this element * represents. The types are link for a * Link, control for a {@link ControlLink}, * and toggle for a {@link ToggleLink}. There may be * additional attributes depending on what type of link this link * represents. + * + * @param state The current {@link PageState}. + * @param parent The XML element to attach the XML to. + * * @see ControlLink#generateXML * @see ToggleLink#generateXML */ @Override - public void generateXML(PageState state, Element parent) { + public void generateXML(final PageState state, final Element parent) { if (isVisible(state)) { BaseLink target = firePrintEvent(state); Element link = parent.newChildElement("bebop:link", BEBOP_XML_NS); @@ -278,7 +280,7 @@ public abstract class BaseLink extends TextStylable } } - private String getAbsoluteUrl(PageState ps, String sUrl) { + private String getAbsoluteUrl(final PageState state, final String sUrl) { String sReturn = ""; if ((sUrl.indexOf(":") != -1) || sUrl.indexOf("/") == 0) { @@ -290,7 +292,7 @@ public abstract class BaseLink extends TextStylable //get the current URL String sThisURL = ""; try { - sThisURL = ps.stateAsURL(); + sThisURL = state.stateAsURL(); } catch (java.io.IOException ioe) { //ignore } @@ -308,18 +310,23 @@ public abstract class BaseLink extends TextStylable return sReturn; } - //sets up no-JavaScript fallback HTML - protected void setupNoJavascriptURL(PageState ps, Element link) { + /** + * Sets up no-JavaScript fallback HTML + * + * @param state The current {@link PageState}. + * @param link The link element. + */ + protected void setupNoJavascriptURL(final PageState state, final Element link) { String sURL = null; if (m_sConfirmMsg.length() > 0 || (m_confirmMsg != null && m_confirmMsg.localize().toString().length() > 0)) { //if we want the confirm link, create the link - String sOkUrl = getAbsoluteUrl(ps, link.getAttribute(HREF)); + String sOkUrl = getAbsoluteUrl(state, link.getAttribute(HREF)); String sCancelUrl = null; try { - sCancelUrl = ps.stateAsURL(); + sCancelUrl = state.stateAsURL(); } catch (java.io.IOException e) { Assert.fail("Could not get current page state as URL"); } @@ -349,10 +356,10 @@ public abstract class BaseLink extends TextStylable * more attributes than the ones {@link #generateXML generateXML} * produces by default. * - * @param state the current request - * @param link the XML element representing this link + * @param state The current request + * @param link The XML element representing this link */ - protected void generateExtraXMLAttributes(PageState state, Element link) { + protected void generateExtraXMLAttributes(final PageState state, final Element link) { } /** @@ -360,12 +367,12 @@ public abstract class BaseLink extends TextStylable * protection for this link. Not for confirmation messages; Should call * setConfirmation for that. * - * @param value - * @pre value.toLowerCase().startsWith("return confirm(") == false + * @param value The confirmation link. To not use the value {@code return confirm(} with this + * method. * * @see #setConfirmation */ - public void setOnClick(String value) { + public void setOnClick(final String value) { //should not use this method to set confirmation messages--should //use setConfirmation() instead, or else the javascript will break if (value != null) { @@ -389,12 +396,10 @@ public abstract class BaseLink extends TextStylable * Subsequent calls to setOnClick will undo the effect of this method. * * @param message the confirmation message presented to the user. This - * message cannot have an apostrophe or back slash - * - * @pre message.indexOf("'") == -1 && message.indexOf("\\") == -1 + * message cannot have an apostrophe or back slash. * */ - public void setConfirmation(String message) { + public void setConfirmation(final String message) { //make sure that the message doesn't have any apostrophe's //or back slashes @@ -411,7 +416,7 @@ public abstract class BaseLink extends TextStylable * Set a GlobalizedMessage as confirmation message * @param msg */ - public void setConfirmation(GlobalizedMessage msg) { + public void setConfirmation(final GlobalizedMessage msg) { m_confirmMsg = msg; } @@ -421,7 +426,7 @@ public abstract class BaseLink extends TextStylable * @param state PageState * @param link Parent element */ - private void exportConfirmAttributes(PageState state, Element link) { + private void exportConfirmAttributes(final PageState state, final Element link) { // If a confirmation message is set if (m_sConfirmMsg.length() > 0 || m_confirmMsg != null) { @@ -445,7 +450,7 @@ public abstract class BaseLink extends TextStylable } } - public final void setNoJavascriptTarget(String sURL) { + public final void setNoJavascriptTarget(final String sURL) { Assert.isUnlocked(this); m_noJavascriptURL = sURL; } diff --git a/ccm-core/src/com/arsdigita/persistence/PooledConnectionSource.java b/ccm-core/src/com/arsdigita/persistence/PooledConnectionSource.java index 52ee478eb..ff0f8ede2 100755 --- a/ccm-core/src/com/arsdigita/persistence/PooledConnectionSource.java +++ b/ccm-core/src/com/arsdigita/persistence/PooledConnectionSource.java @@ -127,7 +127,6 @@ public class PooledConnectionSource implements ConnectionSource { * cause problems (memory etc.) with PostgreSQL. */ try { - result.setAutoCommit(false); } catch (SQLException ex) { s_log.warn("Failed to set autocommit to false"); diff --git a/ccm-core/src/com/arsdigita/web/CCMApplicationContextListener.java b/ccm-core/src/com/arsdigita/web/CCMApplicationContextListener.java index 81fb20992..5558a66de 100644 --- a/ccm-core/src/com/arsdigita/web/CCMApplicationContextListener.java +++ b/ccm-core/src/com/arsdigita/web/CCMApplicationContextListener.java @@ -16,7 +16,6 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ - package com.arsdigita.web; import com.arsdigita.runtime.CCMResourceManager; @@ -35,62 +34,59 @@ import org.apache.log4j.LogManager; import org.apache.log4j.PropertyConfigurator; /** - * Web application lifecycle listener, used to perform central initialization - * tasks at CCM startup in a servlet container / web application server, - * expecially setting the runtime context (file locations) and (in the future) - * the database connection. + * Web application lifecycle listener, used to perform central initialisation tasks at CCM startup + * in a Servlet container / web application server, expecially setting the runtime context (file + * locations) and (in the future) the database connection. * - * The methods of this classes are by definition only invoked by the servlet - * container / web application server, not by any servlet or java class of - * the application itself! Invokation is managed by the deployment descriptor. + * The methods of this classes are by definition only invoked by the Servlet container / web + * application server, not by any Servlet or java class of the application itself! Invocation is + * managed by the deployment descriptor. * * Note! Don't forget to configure it in web.xml deployment descriptor! - * - * - * com.arsdigita.runtime.CCMApplicationContextListener - * - * - * According to the 2.3 specification these tags must be placed after the filter - * tags and before the servlet tags! + * + * + * com.arsdigita.runtime.CCMApplicationContextListener + * + * + * According to the 2.3 specification these tags must be placed after the filter tags and before the + * Servlet tags! * * @author pboy - * @version $Id: $ + * @version $Id: $ */ - public class CCMApplicationContextListener implements ServletContextListener { private static Logger s_log = Logger.getLogger(CCMApplicationContextListener.class); - private static Runtime runtime ; + private static Runtime runtime; /** - * Used to initialize classes at startup of the application, most of which - * needs to be plain java objects (because they are also used by command - * line interface - installation, configuration, maintenance). + * Used to initialise classes at startup of the application, most of which needs to be plain + * java objects (because they are also used by command line interface - installation, + * configuration, maintenance). * - * Here we provide one of the two supported ways to bring up the CCM - * application. This handles the startup inside a servlet container. The - * command line utilities handle the startup there. Both initialize the same - * set of classes needed for CCM operations + * Here we provide one of the two supported ways to bring up the CCM application. This handles + * the startup inside a Servlet container. The command line utilities handle the startup there. + * Both initialise the same set of classes needed for CCM operations * * @param applicationStartEvent */ + @Override public void contextInitialized(ServletContextEvent applicationStartEvent) { /** * Fully qualified path name to application base in the servers file system */ - String m_appBase ; + String m_appBase; /** * Log4J config file name including path relative to application base */ - String m_log4j ; + String m_log4j; // s_log.setLevel( INFO ); s_log.info("Starting CCM Application."); - ServletContext sc = applicationStartEvent.getServletContext(); m_appBase = sc.getRealPath("/"); @@ -98,12 +94,10 @@ public class CCMApplicationContextListener implements ServletContextListener { m_log4j = sc.getInitParameter("log4j-conf-file"); s_log.info("Logging context parameter is: " + m_log4j); // if the log4j-init-file is not set, then no point in trying - if(m_log4j != null) { - PropertyConfigurator.configure(m_appBase+m_log4j); - } - else { - PropertyConfigurator.configure(m_appBase+ - "WEB-INF/conf/log4j.properties"); + if (m_log4j != null) { + PropertyConfigurator.configure(m_appBase + m_log4j); + } else { + PropertyConfigurator.configure(m_appBase + "WEB-INF/conf/log4j.properties"); } // The classes ResourceManager and CCMResourceManager handle a @@ -111,7 +105,7 @@ public class CCMApplicationContextListener implements ServletContextListener { // ToDo: integrate both into a single class, e.g. CCMResourceManager // to simplify and clean-up of the code! CCMResourceManager.setBaseDirectory(m_appBase); - s_log.info("BaseDir set to: " + m_appBase ); + s_log.info("BaseDir set to: " + m_appBase); // Setup the XML factory configuration FactoriesSetup.setupFactories(); @@ -120,15 +114,14 @@ public class CCMApplicationContextListener implements ServletContextListener { // domain coupling machinary // Runtime runtime = new Runtime(); runtime = new Runtime(); - if ( !runtime.hasRun() ) { - runtime.startup( new ContextInitEvent(applicationStartEvent)); + if (!runtime.hasRun()) { + runtime.startup(new ContextInitEvent(applicationStartEvent)); } - } /** - * - * + * + * * @param applicationEndEvent */ public void contextDestroyed(ServletContextEvent applicationEndEvent) { @@ -136,12 +129,13 @@ public class CCMApplicationContextListener implements ServletContextListener { // Central shutdown procedure, used to clean up any runtime resources. // Runtime runtime = new Runtime(); - if ( runtime.hasRun() ) { + if (runtime.hasRun()) { s_log.info("hasRun() returned true, shutdown procedure started."); - runtime.shutdown( new ContextCloseEvent(applicationEndEvent)); + runtime.shutdown(new ContextCloseEvent(applicationEndEvent)); } s_log.info("CCM Application shut down."); LogManager.shutdown(); } -} \ No newline at end of file + +} diff --git a/ccm-sci-bundle/web/themes/mandalay/css/print/ie-hacks.css b/ccm-sci-bundle/web/themes/mandalay/css/print/public-ie-hacks.css similarity index 100% rename from ccm-sci-bundle/web/themes/mandalay/css/print/ie-hacks.css rename to ccm-sci-bundle/web/themes/mandalay/css/print/public-ie-hacks.css diff --git a/ccm-sci-bundle/web/themes/mandalay/css/print/style.css b/ccm-sci-bundle/web/themes/mandalay/css/print/public.css similarity index 100% rename from ccm-sci-bundle/web/themes/mandalay/css/print/style.css rename to ccm-sci-bundle/web/themes/mandalay/css/print/public.css diff --git a/ccm-sci-bundle/web/themes/mandalay/css/screen/admin.css b/ccm-sci-bundle/web/themes/mandalay/css/screen/admin.css index 479e711c8..1ead98f7c 100644 --- a/ccm-sci-bundle/web/themes/mandalay/css/screen/admin.css +++ b/ccm-sci-bundle/web/themes/mandalay/css/screen/admin.css @@ -213,99 +213,99 @@ div#bebopTabbedPane span:before { } div#bebopTabbedPane span.browse:before { - content: url('../../../images/cms/browse.png'); + content: url('../../images/cms/browse.png'); } div#bebopTabbedPane span.browse.current:before { - content: url('../../../images/cms/browse-current.png'); + content: url('../../images/cms/browse-current.png'); } div#bebopTabbedPane span.search:before { - content: url('../../../images/cms/search.png'); + content: url('../../images/cms/search.png'); } div#bebopTabbedPane span.search.current:before { - content: url('../../../images/cms/search-current.png'); + content: url('../../images/cms/search-current.png'); } div#bebopTabbedPane span.images:before { - content: url('../../../images/cms/images.png'); + content: url('../../images/cms/images.png'); } div#bebopTabbedPane span.images.current:before { - content: url('../../../images/cms/images-current.png'); + content: url('../../images/cms/images-current.png'); } div#bebopTabbedPane span.roles:before { - content: url('../../../images/cms/roles.png'); + content: url('../../images/cms/roles.png'); } div#bebopTabbedPane span.roles.current:before { - content: url('../../../images/cms/roles-current.png'); + content: url('../../images/cms/roles-current.png'); } div#bebopTabbedPane span.workflows:before { - content: url('../../../images/cms/workflows.png'); + content: url('../../images/cms/workflows.png'); } div#bebopTabbedPane span.workflows.current:before { - content: url('../../../images/cms/workflows-current.png'); + content: url('../../images/cms/workflows-current.png'); } div#bebopTabbedPane span.lifecycles:before { - content: url('../../../images/cms/lifecycles.png'); + content: url('../../images/cms/lifecycles.png'); } div#bebopTabbedPane span.lifecycles.current:before { - content: url('../../../images/cms/lifecycles-current.png'); + content: url('../../images/cms/lifecycles-current.png'); } div#bebopTabbedPane span.categories:before { - content: url('../../../images/cms/categories.png'); + content: url('../../images/cms/categories.png'); } div#bebopTabbedPane span.categories.current:before { - content: url('../../../images/cms/categories-current.png'); + content: url('../../images/cms/categories-current.png'); } div#bebopTabbedPane span.content_types:before { - content: url('../../../images/cms/contenttypes.png'); + content: url('../../images/cms/contenttypes.png'); } div#bebopTabbedPane span.content_types.current:before { - content: url('../../../images/cms/contenttypes-current.png'); + content: url('../../images/cms/contenttypes-current.png'); } div#bebopTabbedPane span.user_admin:before { - content: url('../../../images/cms/admin.png'); + content: url('../../images/cms/admin.png'); } div#bebopTabbedPane span.user_admin.current:before { - content: url('../../../images/cms/admin-current.png'); + content: url('../../images/cms/admin-current.png'); } div#bebopTabbedPane span.cse:before { - content: url('../../../images/cms/cse.png'); + content: url('../../images/cms/cse.png'); } div#bebopTabbedPane span.cse.current:before { - content: url('../../../images/cms/cse-current.png'); + content: url('../../images/cms/cse-current.png'); } div#bebopTabbedPane span.reports:before { - content: url('../../../images/cms/reports.png'); + content: url('../../images/cms/reports.png'); } div#bebopTabbedPane span.reports.current:before { - content: url('../../../images/cms/reports-current.png'); + content: url('../../images/cms/reports-current.png'); } div#bebopTabbedPane span.taskssections:before { - content: url('../../../images/cms/taskssections.png'); + content: url('../../images/cms/taskssections.png'); } div#bebopTabbedPane span.taskssections.current:before { - content: url('../../../images/cms/taskssections-current.png'); + content: url('../../images/cms/taskssections-current.png'); } /*------Bebop ContextBar----- */ @@ -341,7 +341,7 @@ div.bebopContextBar span.bebopContextBarSeperator { margin-left: 5px; border-left: 1px solid #a4a4a4; color: transparent; - background-image:url('../../../images/scrumb.png'); + background-image:url('../../images/scrumb.png'); background-repeat:no-repeat; background-position: center; } @@ -841,23 +841,23 @@ div.cmsGlobalNavigation > span :before { } span.cmsGlobalNavigationContentCenter :before { - content:url('../../../images/cms/contentcenter.png'); + content:url('../../images/cms/contentcenter.png'); } span.cmsGlobalNavigationWorkspace :before { - content:url('../../../images/cms/home.png'); + content:url('../../images/cms/home.png'); } span.cmsGlobalNavigationSignOut :before, span.logout :before { - content:url('../../../images/cms/lock.png'); + content:url('../../images/cms/lock.png'); } span.cmsGlobalNavigationHelp :before { - content:url('../../../images/cms/help.png'); + content:url('../../images/cms/help.png'); } span.cmsPreview :before { - content:url('../../../images/cms/preview.png'); + content:url('../../images/cms/preview.png'); } @@ -972,7 +972,7 @@ div .bebopBody ul li{ } h3.bebopSegmentHeader{ - margin-bottom:0em; + margin-bottom:0.15em; margin-top: 15px; } @@ -1020,37 +1020,37 @@ div.actionGroupSubject tr{ } span.action:before { - content:url('../../../images/bebop/action.png'); + content:url('../../images/bebop/action.png'); padding-right: 0.3em; } span.action.add:before { - content:url('../../../images/bebop/action-add.png'); + content:url('../../images/bebop/action-add.png'); padding-right: 0.3em; } span.action.delete:before { - content:url('../../../images/bebop/action-delete.png'); + content:url('../../images/bebop/action-delete.png'); padding-right: 0.3em; } span.action.edit:before { - content:url('../../../images/bebop/action-edit.png'); + content:url('../../images/bebop/action-edit.png'); padding-right: 0.3em; } span.action.return:before { - content:url('../../../images/bebop/action-return.png'); + content:url('../../images/bebop/action-return.png'); padding-right: 0.3em; } span.action.up:before { - content:url('../../../images/bebop/action-up.png'); + content:url('../../images/bebop/action-up.png'); padding-right: 0.3em; } span.action.down:before { - content:url('../../../images/bebop/action-down.png'); + content:url('../../images/bebop/action-down.png'); padding-right: 0.3em; } @@ -1084,10 +1084,6 @@ div.cmsSummaryBody { border-bottom: 1px solid rgba(102, 102, 102, 0.5); } -div.cmsSummarySection ul { - text-indent: -2.5em; -} - span.cmsCurrentRevision { font-style:italic; font-weight:bold; @@ -1317,6 +1313,10 @@ input#draft_search:active { background-color: #ffffff; } +#left li span:before{ + content: '\2794'; +} + #center { margin: 0.3em; overflow: hidden; @@ -1344,10 +1344,6 @@ input#draft_search:active { font-family: Verdana, Helvetica, Arial, sans-serif; } -#content #contentInner { - margin: 1em; -} - /*momentan für die Inhalt von Content*/ #content br{ margin-top: 10px; diff --git a/ccm-sci-bundle/web/themes/mandalay/css/screen/ie-hacks.css b/ccm-sci-bundle/web/themes/mandalay/css/screen/public-ie-hacks.css similarity index 100% rename from ccm-sci-bundle/web/themes/mandalay/css/screen/ie-hacks.css rename to ccm-sci-bundle/web/themes/mandalay/css/screen/public-ie-hacks.css diff --git a/ccm-sci-bundle/web/themes/mandalay/css/screen/style.css b/ccm-sci-bundle/web/themes/mandalay/css/screen/public.css similarity index 100% rename from ccm-sci-bundle/web/themes/mandalay/css/screen/style.css rename to ccm-sci-bundle/web/themes/mandalay/css/screen/public.css diff --git a/ccm-sci-bundle/web/themes/mandalay/includes/bebop/bebopList.xsl b/ccm-sci-bundle/web/themes/mandalay/includes/bebop/bebopList.xsl index 86a5d58de..a90a52179 100644 --- a/ccm-sci-bundle/web/themes/mandalay/includes/bebop/bebopList.xsl +++ b/ccm-sci-bundle/web/themes/mandalay/includes/bebop/bebopList.xsl @@ -29,70 +29,70 @@ --> + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:bebop="http://www.arsdigita.com/bebop/1.0" + xmlns:cms="http://www.arsdigita.com/cms/1.0" + xmlns:nav="http://ccm.redhat.com/navigation" + xmlns:mandalay="http://mandalay.quasiweb.de" + exclude-result-prefixes="xsl bebop cms nav mandalay" + version="1.0"> - - - - + + + + - - - - - -

- - - - - + + + + + + + + +
    + + +
+
+
- + - - - -
- - -
-
+ + + +
+ + +
+
- - - -
  • - -
  • -
    + + + +
  • + +
  • +
    - - - - - - - + + + + + + + - - - - - + + + + + > - - + + diff --git a/ccm-sci-bundle/web/themes/mandalay/layout/content-center.xml b/ccm-sci-bundle/web/themes/mandalay/layout/content-center.xml index 5600cb4a9..76c48e360 100644 --- a/ccm-sci-bundle/web/themes/mandalay/layout/content-center.xml +++ b/ccm-sci-bundle/web/themes/mandalay/layout/content-center.xml @@ -90,9 +90,7 @@
    -
    -
    diff --git a/ccm-sci-bundle/web/themes/mandalay/settings/css-files.xml b/ccm-sci-bundle/web/themes/mandalay/settings/css-files.xml index 5d71f061a..5af9697cf 100644 --- a/ccm-sci-bundle/web/themes/mandalay/settings/css-files.xml +++ b/ccm-sci-bundle/web/themes/mandalay/settings/css-files.xml @@ -24,11 +24,11 @@ --> - style.css - style.css + public.css + public.css - ie-hacks.css - ie-hacks.css + public-ie-hacks.css + public-ie-hacks.css diff --git a/tools-ng/common/xsl/build-template.xsl b/tools-ng/common/xsl/build-template.xsl index af99ad702..19a313529 100755 --- a/tools-ng/common/xsl/build-template.xsl +++ b/tools-ng/common/xsl/build-template.xsl @@ -2016,23 +2016,21 @@ description="Generates the combined API documentation"> + access="private"> - +