KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > jcr > impl > core > nodetype > nt > VersionHistory


1 /*
2  * Copyright 2001-2003 The eXo platform SARL All rights reserved.
3  * Please look at license.txt in info directory for more license detail.
4  */

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 /**
15  * Created y the eXo platform team
16  * User: Benjamin Mestrallet
17  * Date: 31 juil. 2004
18  */

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 JavaDoc[] types = {"nt:version"};
28     String JavaDoc[] 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