Kommentare hinzugefügt
git-svn-id: https://svn.libreccm.org/ccm/trunk@323 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
a69ec0f811
commit
f36bcfd0b6
|
|
@ -11,6 +11,14 @@ import com.arsdigita.domain.DomainObjectXMLRenderer;
|
||||||
import com.arsdigita.xml.Element;
|
import com.arsdigita.xml.Element;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* This is a special ContentItemXMLRenderer for CMS to get a more transparent
|
||||||
|
* way to handle ContentBundles during XML output.
|
||||||
|
*
|
||||||
|
* The problem was to change RelatedLinks and therefore Link to always link to
|
||||||
|
* the corresponding ContentBundle instead of the content item. To get the
|
||||||
|
* corresponding content item during XML generation, I have to test for
|
||||||
|
* ContentBundle and negotiate the language version.
|
||||||
|
* This is not possible in com.arsdigita.ccm
|
||||||
*
|
*
|
||||||
* @author quasi
|
* @author quasi
|
||||||
*/
|
*/
|
||||||
|
|
@ -21,6 +29,11 @@ public class ContentItemXMLRenderer extends DomainObjectXMLRenderer {
|
||||||
super(root);
|
super(root);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// This method will be called by DomainObjectTraversal.walk()
|
||||||
|
// It's purpose is to test for ContentBundle objects and if found, replace
|
||||||
|
// that object with the negotiated version of the content item.
|
||||||
|
// Otherwise this methd will do nothing.
|
||||||
protected void walk(final DomainObjectTraversalAdapter adapter,
|
protected void walk(final DomainObjectTraversalAdapter adapter,
|
||||||
final DomainObject obj,
|
final DomainObject obj,
|
||||||
final String path,
|
final String path,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue