Verschiedener Kleinkram Formatierung.
git-svn-id: https://svn.libreccm.org/ccm/trunk@491 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
7c0ebbcb33
commit
4a6e3706b4
|
|
@ -305,6 +305,12 @@ public class URL {
|
||||||
params);
|
params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (private) Constructor.
|
||||||
|
*
|
||||||
|
* @param sreq
|
||||||
|
* @param params
|
||||||
|
*/
|
||||||
private URL(final HttpServletRequest sreq,
|
private URL(final HttpServletRequest sreq,
|
||||||
final ParameterMap params) {
|
final ParameterMap params) {
|
||||||
final String dispatcherPrefix =
|
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
|
* @param sreq an <code>HttpServletRequest</code> from which to copy
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
@ -59,7 +59,7 @@ public abstract class ACSObjectCategoryPicker extends SimpleContainer {
|
||||||
private BigDecimalParameter m_root;
|
private BigDecimalParameter m_root;
|
||||||
|
|
||||||
public ACSObjectCategoryPicker(BigDecimalParameter root,
|
public ACSObjectCategoryPicker(BigDecimalParameter root,
|
||||||
StringParameter mode) {
|
StringParameter mode) {
|
||||||
|
|
||||||
m_form = getForm(root, mode);
|
m_form = getForm(root, mode);
|
||||||
m_root = root;
|
m_root = root;
|
||||||
|
|
@ -68,7 +68,8 @@ public abstract class ACSObjectCategoryPicker extends SimpleContainer {
|
||||||
m_form.addCompletionListener(new ItemCategoryFormCompletion());
|
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);
|
protected abstract ACSObject getObject(PageState state);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,10 @@ import com.arsdigita.xml.Element;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generate part of the category tree. Used by Assign Category authoring step.
|
* 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
|
* @author Alan Pevec
|
||||||
*/
|
*/
|
||||||
|
|
@ -51,7 +55,8 @@ public class CategorySubtree extends SimpleComponent {
|
||||||
String[] pathElements = StringUtils.split(node, "-");
|
String[] pathElements = StringUtils.split(node, "-");
|
||||||
|
|
||||||
Category root = (Category) DomainObjectFactory.newInstance(new OID(
|
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());
|
s_log.debug("generating subtree for cat " + root.getID());
|
||||||
TermWidget.generateSubtree(p, root);
|
TermWidget.generateSubtree(p, root);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue