1 5 6 package org.exoplatform.services.jcr.impl.core.nodetype.nt; 7 8 9 import javax.jcr.nodetype.*; 10 import javax.jcr.version.OnParentVersionAction; 11 import org.exoplatform.services.jcr.impl.core.nodetype.NodeDefImpl; 12 import org.exoplatform.services.jcr.impl.core.nodetype.NodeTypeImpl; 13 14 19 public class VersionHistory extends NodeTypeImpl { 20 21 public VersionHistory() { 22 this.name = "nt:versionHistory"; 23 this.mixin = false; 24 this.declaredSupertypes = new javax.jcr.nodetype.NodeType[1]; 25 this.declaredSupertypes[0] = new Base(); 26 this.declaredNodeDefs = new NodeDef[2]; 27 String [] types = {"nt:version"}; 28 String [] mixinTypes = {"mix:referenceable"}; 29 this.declaredNodeDefs[0] = new NodeDefImpl("jcr:rootVersion", types, "nt:verson", 30 mixinTypes, mixinTypes, 31 true, true, OnParentVersionAction.ABORT, true, false, 32 false); 33 this.declaredNodeDefs[1] = new NodeDefImpl(null, types, "nt:version", 34 mixinTypes, mixinTypes, 35 false, false, OnParentVersionAction.ABORT, true, false, 36 false); 37 } 38 } 39 | Popular Tags |