Verschiedener Kleinkram Formatierung.

git-svn-id: https://svn.libreccm.org/ccm/trunk@491 8810af33-2d31-482b-a856-94f89814c4df
master
pb 2010-07-23 21:27:33 +00:00
parent 7c0ebbcb33
commit 4a6e3706b4
4 changed files with 45 additions and 4 deletions

View File

@ -305,6 +305,12 @@ public class URL {
params);
}
/**
* (private) Constructor.
*
* @param sreq
* @param params
*/
private URL(final HttpServletRequest sreq,
final ParameterMap params) {
final String dispatcherPrefix =
@ -322,7 +328,7 @@ public class URL {
}
/**
* <p>Produce a URL representation of the given request.</p>
* <p>Constructor, produce a URL representation of the given request.</p>
*
* @param sreq an <code>HttpServletRequest</code> from which to copy
*

View File

@ -0,0 +1,29 @@
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Package com.arsdigita.london.subsite</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
TODO write content
Konfiguration Filter Ausdruck in web.xml: OHNE ccm-prefix. also
<pre>
<filter>
<filter-name>subsite</filter-name>
<filter-class>com.arsdigita.london.subsite.SubsiteFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>subsite</filter-name>
<url-pattern>/*</url-pattern>
Falsch wäre:
<url-pattern>/ccm/*</url-pattern>
</filter-mapping>
</pre>
</body>
</html>

View File

@ -59,7 +59,7 @@ public abstract class ACSObjectCategoryPicker extends SimpleContainer {
private BigDecimalParameter m_root;
public ACSObjectCategoryPicker(BigDecimalParameter root,
StringParameter mode) {
StringParameter mode) {
m_form = getForm(root, mode);
m_root = root;
@ -68,7 +68,8 @@ public abstract class ACSObjectCategoryPicker extends SimpleContainer {
m_form.addCompletionListener(new ItemCategoryFormCompletion());
}
protected abstract ACSObjectCategoryForm getForm(BigDecimalParameter root, StringParameter mode);
protected abstract ACSObjectCategoryForm getForm(BigDecimalParameter root,
StringParameter mode);
protected abstract ACSObject getObject(PageState state);

View File

@ -19,6 +19,10 @@ import com.arsdigita.xml.Element;
/**
* Generate part of the category tree. Used by Assign Category authoring step.
*
* Class is directlyx used by JSP page(s), eg. load-cat.jsp
* (currently in ~/packages/content-section/www/admin, source in ccm-ldn-aplaws
* or corresponding integration module).
*
* @author Alan Pevec
*/
public class CategorySubtree extends SimpleComponent {
@ -51,7 +55,8 @@ public class CategorySubtree extends SimpleComponent {
String[] pathElements = StringUtils.split(node, "-");
Category root = (Category) DomainObjectFactory.newInstance(new OID(
Category.BASE_DATA_OBJECT_TYPE, new BigDecimal(pathElements[pathElements.length - 1])));
Category.BASE_DATA_OBJECT_TYPE,
new BigDecimal(pathElements[pathElements.length - 1])));
s_log.debug("generating subtree for cat " + root.getID());
TermWidget.generateSubtree(p, root);
}