1 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 29 public interface VersionModel 30 { 31 34 public static final String NAMESPACE_URI = "http://www.alfresco.org/model/versionstore/1.0"; 35 36 39 public static final String STORE_PROTOCOL = VersionService.VERSION_STORE_PROTOCOL; 40 41 44 public static final String STORE_ID = "lightWeightVersionStore"; 45 46 47 public static final String PROP_VERSION_LABEL = "versionLabel"; 48 public static final String PROP_CREATED_DATE = ContentModel.PROP_CREATED.getLocalName(); 49 public static final String PROP_CREATOR = ContentModel.PROP_CREATOR.getLocalName(); 50 public static final String PROP_VERSION_TYPE = "versionType"; 51 public static final String PROP_VERSION_NUMBER = "versionNumber"; 52 public static final String PROP_FROZEN_NODE_ID = "frozenNodeId"; 53 public static final String PROP_FROZEN_NODE_TYPE = "frozenNodeType"; 54 public static final String PROP_FROZEN_NODE_STORE_PROTOCOL = "frozenNodeStoreProtocol"; 55 public static final String PROP_FROZEN_NODE_STORE_ID = "frozenNodeStoreId"; 56 public static final String PROP_FROZEN_ASPECTS = "frozenAspects"; 57 58 61 public static final String TYPE_VERSION_HISTORY = "versionHistory"; 62 public static final QName TYPE_QNAME_VERSION_HISTORY = QName.createQName(NAMESPACE_URI, TYPE_VERSION_HISTORY); 63 64 67 public static final String 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 74 public static final String TYPE_VERSION = "version"; 75 public static final QName TYPE_QNAME_VERSION = QName.createQName(NAMESPACE_URI, TYPE_VERSION); 76 77 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 92 public static final String 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 98 public static final String 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 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 106 public static final String TYPE_VERSIONED_PROPERTY = "versionedProperty"; 107 public static final QName TYPE_QNAME_VERSIONED_PROPERTY = QName.createQName(NAMESPACE_URI, TYPE_VERSIONED_PROPERTY); 108 109 112 public static final String PROP_QNAME = "qname"; 113 public static final String PROP_VALUE = "value"; 114 public static final String PROP_MULTI_VALUE = "multiValue"; 115 public static final String 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 124 public static final String 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 130 public static final String PROP_ASSOC_QNAME = "assocQName"; 131 public static final String PROP_ASSOC_TYPE_QNAME = "assocTypeQName"; 132 public static final String PROP_IS_PRIMARY = "isPrimary"; 133 public static final String 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 142 public static final String TYPE_VERSIONED_ASSOC = "versionedAssoc"; 143 public static final QName TYPE_QNAME_VERSIONED_ASSOC = QName.createQName(NAMESPACE_URI, TYPE_VERSIONED_ASSOC); 144 145 148 public static final String CHILD_VERSION_HISTORIES = "versionHistory"; 149 public static final String CHILD_VERSIONS = "version"; 150 public static final String CHILD_VERSIONED_ATTRIBUTES = "versionedAttributes"; 151 public static final String CHILD_VERSIONED_CHILD_ASSOCS = "versionedChildAssocs"; 152 public static final String CHILD_VERSIONED_ASSOCS = "versionedAssocs"; 153 public static final String 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 |