Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 13 package info.magnolia.cms.exchange.simple; 14 15 import info.magnolia.cms.core.Content; 16 17 18 22 public class SerializableContentNode extends SerializableContent { 23 24 27 private static final long serialVersionUID = 222L; 28 29 private SerializableMetaData metaData; 30 31 private boolean recurse; 32 33 public SerializableContentNode(Content baseContentNode) { 34 this.makeSerializable(baseContentNode); 35 } 36 37 public SerializableContentNode(Content baseContentNode, boolean recurse) { 38 this.recurse = recurse; 39 this.makeSerializable(baseContentNode); 40 } 41 42 private void makeSerializable(Content baseContentNode) { 43 this.setName(baseContentNode.getName()); 44 this.metaData = new SerializableMetaData(baseContentNode.getMetaData()); 45 46 this.addNodeDataList(baseContentNode); 47 if (this.recurse) { 48 this.addContentNodeList(baseContentNode, true); 49 } 50 } 51 52 public SerializableMetaData getMetaData() { 53 return this.metaData; 54 } 55 } 56
| Popular Tags
|