1 5 6 package org.exoplatform.services.jcr.impl.core.nodetype.nt; 7 8 9 import javax.jcr.PropertyType; 10 import javax.jcr.nodetype.NodeDef; 11 import javax.jcr.version.OnParentVersionAction; 12 import org.exoplatform.services.jcr.impl.core.nodetype.NodeDefImpl; 13 import org.exoplatform.services.jcr.impl.core.nodetype.NodeTypeImpl; 14 import org.exoplatform.services.jcr.impl.core.nodetype.PropertyDefImpl; 15 16 21 public class Version extends NodeTypeImpl { 22 26 public Version() { 27 this.name = "nt:version"; 28 this.mixin = false; 29 this.declaredSupertypes = new javax.jcr.nodetype.NodeType[1]; 30 this.declaredSupertypes[0] = new Base(); 31 this.declaredPropertyDefs = new javax.jcr.nodetype.PropertyDef[7]; 32 this.declaredPropertyDefs[0] = new PropertyDefImpl("jcr:versionLabels", null, PropertyType.STRING, 33 null, null, true, false, 34 OnParentVersionAction.ABORT, true, false, true); 35 this.declaredPropertyDefs[1] = new PropertyDefImpl("jcr:versionDate", null, PropertyType.DATE, 36 null, null, true, true, 37 OnParentVersionAction.ABORT, true, false, false); 38 this.declaredPropertyDefs[2] = new PropertyDefImpl("jcr:successors", null, PropertyType.REFERENCE, 39 "nt:version", null, true, false, 40 OnParentVersionAction.ABORT, true, false, true); 41 this.declaredPropertyDefs[3] = new PropertyDefImpl("jcr:forzenPrimaryType", null, PropertyType.STRING, 42 null, null, true, true, 43 OnParentVersionAction.ABORT, true, false, false); 44 this.declaredPropertyDefs[4] = new PropertyDefImpl("jcr:forzenMixinTypes", null, PropertyType.STRING, 45 null, null, false, false, 46 OnParentVersionAction.ABORT, true, false, true); 47 this.declaredPropertyDefs[5] = new PropertyDefImpl("jcr:frozenUUID", null, PropertyType.STRING, 48 null, null, true, true, 49 OnParentVersionAction.ABORT, true, false, false); 50 this.declaredPropertyDefs[6] = new PropertyDefImpl(null, null, PropertyType.UNDEFINED, 51 null, null, false, false, 52 OnParentVersionAction.ABORT, true, false, true); 53 this.declaredNodeDefs = new NodeDef[1]; 54 this.declaredNodeDefs[0] = new NodeDefImpl(null, null, null, 55 null, null, 56 false, false, OnParentVersionAction.ABORT, false, false, 57 true); 58 } 59 } 60 | Popular Tags |