Kommentare hinzugefügt

git-svn-id: https://svn.libreccm.org/ccm/trunk@323 8810af33-2d31-482b-a856-94f89814c4df
master
quasi 2010-01-07 10:07:49 +00:00
parent a69ec0f811
commit f36bcfd0b6
1 changed files with 13 additions and 0 deletions

View File

@ -11,6 +11,14 @@ import com.arsdigita.domain.DomainObjectXMLRenderer;
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
*/
@ -21,6 +29,11 @@ public class ContentItemXMLRenderer extends DomainObjectXMLRenderer {
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,
final DomainObject obj,
final String path,