KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > repo > version > VersionModel


1 /*
2  * Copyright (C) 2005 Alfresco, Inc.
3  *
4  * Licensed under the Mozilla Public License version 1.1
5  * with a permitted attribution clause. You may obtain a
6  * copy of the License at
7  *
8  * http://www.alfresco.org/legal/license.txt
9  *
10  * Unless required by applicable law or agreed to in writing,
11  * software distributed under the License is distributed on an
12  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13  * either express or implied. See the License for the specific
14  * language governing permissions and limitations under the
15  * License.
16  */

17 package org.alfresco.repo.version;
18
19 import org.alfresco.model.ContentModel;
20 import org.alfresco.service.cmr.version.VersionService;
21 import org.alfresco.service.namespace.QName;
22
23 /**
24  * interface conating the constants used by the light weight
25  * version store implementation
26  *
27  * @author Roy Wetherall
28  */

29 public interface VersionModel
30 {
31     /**
32      * Namespace
33      */

34     public static final String JavaDoc NAMESPACE_URI = "http://www.alfresco.org/model/versionstore/1.0";
35     
36      /**
37      * The store protocol
38      */

39     public static final String JavaDoc STORE_PROTOCOL = VersionService.VERSION_STORE_PROTOCOL;
40     
41     /**
42      * The store id
43      */

44     public static final String JavaDoc STORE_ID = "lightWeightVersionStore";
45    
46     
47     public static final String JavaDoc PROP_VERSION_LABEL = "versionLabel";
48     public static final String JavaDoc PROP_CREATED_DATE = ContentModel.PROP_CREATED.getLocalName();
49     public static final String JavaDoc PROP_CREATOR = ContentModel.PROP_CREATOR.getLocalName();
50     public static final String JavaDoc PROP_VERSION_TYPE = "versionType";
51     public static final String JavaDoc PROP_VERSION_NUMBER = "versionNumber";
52     public static final String JavaDoc PROP_FROZEN_NODE_ID = "frozenNodeId";
53     public static final String JavaDoc PROP_FROZEN_NODE_TYPE = "frozenNodeType";
54     public static final String JavaDoc PROP_FROZEN_NODE_STORE_PROTOCOL = "frozenNodeStoreProtocol";
55     public static final String JavaDoc PROP_FROZEN_NODE_STORE_ID = "frozenNodeStoreId";
56     public static final String JavaDoc PROP_FROZEN_ASPECTS = "frozenAspects";
57     
58     /**
59      * Version history type
60      */

61     public static final String JavaDoc TYPE_VERSION_HISTORY = "versionHistory";
62     public static final QName TYPE_QNAME_VERSION_HISTORY = QName.createQName(NAMESPACE_URI, TYPE_VERSION_HISTORY);
63     
64     /**
65      * Version history properties and associations
66      */

67     public static final String JavaDoc PROP_VERSIONED_NODE_ID = "versionedNodeId";
68     public static final QName PROP_QNAME_VERSIONED_NODE_ID = QName.createQName(NAMESPACE_URI, PROP_VERSIONED_NODE_ID);
69     public static final QName ASSOC_ROOT_VERSION = QName.createQName(NAMESPACE_URI, "rootVersion");
70     
71     /**
72      * Verison type
73      */

74     public static final String JavaDoc TYPE_VERSION = "version";
75     public static final QName TYPE_QNAME_VERSION = QName.createQName(NAMESPACE_URI, TYPE_VERSION);
76     
77     /**
78      * Version type properties and associations
79      */

80     public static final QName PROP_QNAME_VERSION_LABEL = QName.createQName(NAMESPACE_URI, PROP_VERSION_LABEL);
81     public static final QName PROP_QNAME_VERSION_NUMBER = QName.createQName(NAMESPACE_URI, PROP_VERSION_NUMBER);
82     public static final QName PROP_QNAME_FROZEN_NODE_ID = QName.createQName(NAMESPACE_URI, PROP_FROZEN_NODE_ID);
83     public static final QName PROP_QNAME_FROZEN_NODE_TYPE = QName.createQName(NAMESPACE_URI, PROP_FROZEN_NODE_TYPE);
84     public static final QName PROP_QNAME_FROZEN_NODE_STORE_PROTOCOL = QName.createQName(NAMESPACE_URI, PROP_FROZEN_NODE_STORE_PROTOCOL);
85     public static final QName PROP_QNAME_FROZEN_NODE_STORE_ID = QName.createQName(NAMESPACE_URI, PROP_FROZEN_NODE_STORE_ID);
86     public static final QName PROP_QNAME_FROZEN_ASPECTS = QName.createQName(NAMESPACE_URI, PROP_FROZEN_ASPECTS);
87     public static final QName ASSOC_SUCCESSOR = QName.createQName(NAMESPACE_URI, "successor");
88     
89     /**
90      * Version Meta Data Value type
91      */

92     public static final String JavaDoc TYPE_VERSION_META_DATA_VALUE = "versionMetaDataValue";
93     public static final QName TYPE_QNAME_VERSION_META_DATA_VALUE = QName.createQName(NAMESPACE_URI, TYPE_VERSION_META_DATA_VALUE);
94     
95     /**
96      * Version Meta Data Value attributes
97      */

98     public static final String JavaDoc PROP_META_DATA_NAME = "metaDataName";
99     public static final QName PROP_QNAME_META_DATA_NAME = QName.createQName(NAMESPACE_URI, PROP_META_DATA_NAME);
100     public static final String JavaDoc PROP_META_DATA_VALUE = "metaDataValue";
101     public static final QName PROP_QNAME_META_DATA_VALUE = QName.createQName(NAMESPACE_URI, PROP_META_DATA_VALUE);
102     
103     /**
104      * Versioned attribute type
105      */

106     public static final String JavaDoc TYPE_VERSIONED_PROPERTY = "versionedProperty";
107     public static final QName TYPE_QNAME_VERSIONED_PROPERTY = QName.createQName(NAMESPACE_URI, TYPE_VERSIONED_PROPERTY);
108     
109     /**
110      * Versioned attribute properties
111      */

112     public static final String JavaDoc PROP_QNAME = "qname";
113     public static final String JavaDoc PROP_VALUE = "value";
114     public static final String JavaDoc PROP_MULTI_VALUE = "multiValue";
115     public static final String JavaDoc PROP_IS_MULTI_VALUE = "isMultiValue";
116     public static final QName PROP_QNAME_QNAME = QName.createQName(NAMESPACE_URI, PROP_QNAME);
117     public static final QName PROP_QNAME_VALUE = QName.createQName(NAMESPACE_URI, PROP_VALUE);
118     public static final QName PROP_QNAME_MULTI_VALUE = QName.createQName(NAMESPACE_URI, PROP_MULTI_VALUE);
119     public static final QName PROP_QNAME_IS_MULTI_VALUE = QName.createQName(NAMESPACE_URI, PROP_IS_MULTI_VALUE);
120     
121     /**
122      * Versioned child assoc type
123      */

124     public static final String JavaDoc TYPE_VERSIONED_CHILD_ASSOC = "versionedChildAssoc";
125     public static final QName TYPE_QNAME_VERSIONED_CHILD_ASSOC = QName.createQName(NAMESPACE_URI, TYPE_VERSIONED_CHILD_ASSOC);
126     
127     /**
128      * Versioned child assoc properties
129      */

130     public static final String JavaDoc PROP_ASSOC_QNAME = "assocQName";
131     public static final String JavaDoc PROP_ASSOC_TYPE_QNAME = "assocTypeQName";
132     public static final String JavaDoc PROP_IS_PRIMARY = "isPrimary";
133     public static final String JavaDoc PROP_NTH_SIBLING = "nthSibling";
134     public static final QName PROP_QNAME_ASSOC_QNAME = QName.createQName(NAMESPACE_URI, PROP_ASSOC_QNAME);
135     public static final QName PROP_QNAME_ASSOC_TYPE_QNAME = QName.createQName(NAMESPACE_URI, PROP_ASSOC_TYPE_QNAME);
136     public static final QName PROP_QNAME_IS_PRIMARY = QName.createQName(NAMESPACE_URI, PROP_IS_PRIMARY);
137     public static final QName PROP_QNAME_NTH_SIBLING = QName.createQName(NAMESPACE_URI, PROP_NTH_SIBLING);
138     
139     /**
140      * Versioned assoc type
141      */

142     public static final String JavaDoc TYPE_VERSIONED_ASSOC = "versionedAssoc";
143     public static final QName TYPE_QNAME_VERSIONED_ASSOC = QName.createQName(NAMESPACE_URI, TYPE_VERSIONED_ASSOC);
144     
145     /**
146      * Child relationship names
147      */

148     public static final String JavaDoc CHILD_VERSION_HISTORIES = "versionHistory";
149     public static final String JavaDoc CHILD_VERSIONS = "version";
150     public static final String JavaDoc CHILD_VERSIONED_ATTRIBUTES = "versionedAttributes";
151     public static final String JavaDoc CHILD_VERSIONED_CHILD_ASSOCS = "versionedChildAssocs";
152     public static final String JavaDoc CHILD_VERSIONED_ASSOCS = "versionedAssocs";
153     public static final String JavaDoc CHILD_VERSION_META_DATA = "versionMetaData";
154     
155     public static final QName CHILD_QNAME_VERSION_HISTORIES = QName.createQName(NAMESPACE_URI, CHILD_VERSION_HISTORIES);
156     public static final QName CHILD_QNAME_VERSIONS = QName.createQName(NAMESPACE_URI, CHILD_VERSIONS);
157     public static final QName CHILD_QNAME_VERSIONED_ATTRIBUTES = QName.createQName(NAMESPACE_URI, CHILD_VERSIONED_ATTRIBUTES);
158     public static final QName CHILD_QNAME_VERSIONED_CHILD_ASSOCS = QName.createQName(NAMESPACE_URI, CHILD_VERSIONED_CHILD_ASSOCS);
159     public static final QName CHILD_QNAME_VERSIONED_ASSOCS = QName.createQName(NAMESPACE_URI, CHILD_VERSIONED_ASSOCS);
160     public static final QName CHILD_QNAME_VERSION_META_DATA = QName.createQName(NAMESPACE_URI, CHILD_VERSION_META_DATA);
161 }
162
Popular Tags