diff --git a/.classpath b/.classpath
index 9dc0d94b11..e0ca138f62 100644
--- a/.classpath
+++ b/.classpath
@@ -9,5 +9,6 @@
+
diff --git a/.externalToolBuilders/JibX.launch b/.externalToolBuilders/JibX.launch
index 7849a631a2..186d90d901 100644
--- a/.externalToolBuilders/JibX.launch
+++ b/.externalToolBuilders/JibX.launch
@@ -1,34 +1,34 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/.project b/.project
index 8e3892e2f1..ec6d5cbc97 100644
--- a/.project
+++ b/.project
@@ -1,28 +1,27 @@
-
-
- Repository
- JavaCC Nature
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- org.eclipse.ui.externaltools.ExternalToolBuilder
- auto,full,incremental,
-
-
- LaunchConfigHandle
- <project>/.externalToolBuilders/JibX.launch
-
-
-
-
-
- org.eclipse.jdt.core.javanature
- rk.eclipse.javacc.javaccnature
-
-
+
+
+ Repository
+ JavaCC Nature
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+ org.eclipse.ui.externaltools.ExternalToolBuilder
+
+
+ LaunchConfigHandle
+ <project>/.externalToolBuilders/JibX.launch
+
+
+
+
+
+ org.eclipse.jdt.core.javanature
+ rk.eclipse.javacc.javaccnature
+
+
diff --git a/config/alfresco/messages/dictionary-messages.properties b/config/alfresco/messages/dictionary-messages.properties
deleted file mode 100644
index 7d397c4c5c..0000000000
--- a/config/alfresco/messages/dictionary-messages.properties
+++ /dev/null
@@ -1,51 +0,0 @@
-# Dictionary-related messages
-
-d_dictionary.model.err.no_model=Model ''{0}'' does not exist
-d_dictionary.model.err.type_not_found=Failed to create anonymous type as specified type {0} not found
-d_dictionary.model.err.aspect_not_found=Failed to create anonymous type as specified aspect {0} not found
-
-d_dictionary.constraint.err.cyclic_ref=Constraint ''{0}'' is part of a cyclic reference of constraints
-d_dictionary.constraint.err.type_and_ref=Constraint ''{0}'' cannot have a 'type' and be a 'reference' attribute
-d_dictionary.constraint.err.type_or_ref=Constraint ''{0}'' cannot have a 'type' and be a 'reference' attribute
-d_dictionary.constraint.err.ref_not_found=Constraint reference ''{0}'' not found on constraint ''{1}''
-d_dictionary.constraint.err.anon_needs_property=Anonymous constraints can only be declared within the context of a property
-d_dictionary.constraint.err.invalid_type=Constraint type ''{0}'' on constraint ''{1}'' is not a well-known type or a valid Constraint implementation
-d_dictionary.constraint.err.property_simple_and_list="Constraint ''{0}'' has both a simple and list value for property ''{1}''
-d_dictionary.constraint.err.construct_failure=Failed to construct an instance of type ''{0}'' for constraint ''{1}''
-d_dictionary.constraint.err.property_mismatch=Property mismatch setting property ''{0}'' on constraint ''{1}''
-d_dictionary.constraint.err.reserved_property=Property ''{0}'' is reserved and can't be set on constraint ''{1}''.
-d_dictionary.constraint.err.property_not_set=Property ''{0}'' has not been set on constraint ''{1}''
-d_dictionary.constraint.err.evaluate_exception=Exception during evaluation of constraint ''{0}'': {1}
-
-d_dictionary.property.err.property_type_not_specified=Property type of property ''{0}'' must be specified
-d_dictionary.property.err.property_type_not_found=Property type ''{0}'' of property ''{1}'' is not found
-d_dictionary.property.err.single_valued_content=Content properties must be single-valued
-d_dictionary.property.err.duplicate_constraint_on_property=Found duplicate constraint definition ''{0}'' within property ''{1}''
-d_dictionary.property.err.cannot_relax_mandatory=Cannot relax mandatory attribute of property ''{0}
-d_dictionary.property.err.cannot_relax_mandatory_enforcement=Cannot relax mandatory attribute enforcement of property ''{0}
-
-d_dictionary.constraint.registered.not_registered=There is no constraint registered by name ''{0}''.
-
-d_dictionary.constraint.regex.no_match=Value ''{0}'' does not match regular expression: {1}
-d_dictionary.constraint.regex.match=Value ''{0}'' matches regular expression: {1}
-d_dictionary.constraint.regex.error.cm\:filename=Value ''{0}'' is not valid as a file name. This property must be a valid file name.
-
-d_dictionary.constraint.numeric_range.invalid_min_value=Invalid 'minValue' property: {0}
-d_dictionary.constraint.numeric_range.invalid_max_value=Invalid 'maxValue' property: {0}
-d_dictionary.constraint.numeric_range.non_numeric=Property value could not be converted to a double: {0}
-d_dictionary.constraint.numeric_range.out_of_range=Numeric value ''{0}'' is not in range [{1}; {2}]
-
-d_dictionary.constraint.string_length.invalid_min_length=Invalid 'minLength' property: {0}
-d_dictionary.constraint.string_length.invalid_max_length=Invalid 'maxLength' property: {0}
-d_dictionary.constraint.string_length.non_string=Property value could not be converted to a String: {0}
-d_dictionary.constraint.string_length.invalid_length=String length of ''{0}'' is not in range [{1}; {2}]
-
-d_dictionary.constraint.list_of_values.no_values=The list of allowed values is empty
-d_dictionary.constraint.list_of_values.non_string=Property value could not be converted to a String: {0}
-d_dictionary.constraint.list_of_values.invalid_value=The value is not an allowed value: {0}
-
-d_dictionary.constraint.user_name.invalid_user_name=The value ''{0}'' is not an allowed user name: it is an authority of type: {1}
-d_dictionary.constraint.user_name.non_string=Property value could not be converted to a String: {0}
-
-d_dictionary.constraint.authority_name.invalid_authority_name=The value ''{0}'' is not an allowed authority name: it is an authority of type: {1}
-d_dictionary.constraint.authority_name.non_string=Property value could not be converted to a String: {0}
\ No newline at end of file
diff --git a/config/alfresco/messages/dictionary-model.properties b/config/alfresco/messages/dictionary-model.properties
deleted file mode 100644
index 79ffd2954e..0000000000
--- a/config/alfresco/messages/dictionary-model.properties
+++ /dev/null
@@ -1,34 +0,0 @@
-# Display labels for Dictionary Model
-
-d_dictionary.description=Alfresco Dictionary Model
-
-d_dictionary.datatype.d_any.title=Any
-d_dictionary.datatype.d_any.description=Any
-d_dictionary.datatype.d_text.title=Text
-d_dictionary.datatype.d_text.description=Text
-d_dictionary.datatype.d_content.title=Content
-d_dictionary.datatype.d_content.description=Content
-d_dictionary.datatype.d_int.title=Integer
-d_dictionary.datatype.d_int.description=Integer
-d_dictionary.datatype.d_long.title=Long
-d_dictionary.datatype.d_long.description=Long
-d_dictionary.datatype.d_float.title=Float
-d_dictionary.datatype.d_float.description=Float
-d_dictionary.datatype.d_double.title=Double
-d_dictionary.datatype.d_double.description=Double
-d_dictionary.datatype.d_date.title=Date
-d_dictionary.datatype.d_date.description=Date
-d_dictionary.datatype.d_datetime.title=Date and Time
-d_dictionary.datatype.d_datetime.description=Date and Time
-d_dictionary.datatype.d_boolean.title=Boolean
-d_dictionary.datatype.d_boolean.description=Boolean
-d_dictionary.datatype.d_qname.title=Qualified Name
-d_dictionary.datatype.d_qname.description=Qualified Name
-d_dictionary.datatype.d_guid.title=Unique Identifier
-d_dictionary.datatype.d_guid.description=Unique Identifier
-d_dictionary.datatype.d_category.title=Category
-d_dictionary.datatype.d_category.description=Category
-d_dictionary.datatype.d_noderef.title=Reference
-d_dictionary.datatype.d_noderef.description=Reference
-d_dictionary.datatype.d_path.title=Path
-d_dictionary.datatype.d_path.description=Path
diff --git a/config/alfresco/model/dictionaryModel.xml b/config/alfresco/model/dictionaryModel.xml
deleted file mode 100644
index e870393d6c..0000000000
--- a/config/alfresco/model/dictionaryModel.xml
+++ /dev/null
@@ -1,126 +0,0 @@
-
-
- Alfresco Dictionary Model
- Alfresco
- 2005-09-29
- 1.0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- org.alfresco.repo.search.impl.lucene.analysis.AlfrescoStandardAnalyser
- java.lang.Object
-
-
-
- org.alfresco.repo.search.impl.lucene.analysis.AlfrescoStandardAnalyser
- java.lang.String
-
-
-
- org.alfresco.repo.search.impl.lucene.analysis.AlfrescoStandardAnalyser
- org.alfresco.service.cmr.repository.MLText
-
-
-
- org.alfresco.repo.search.impl.lucene.analysis.AlfrescoStandardAnalyser
- org.alfresco.service.cmr.repository.ContentData
-
-
-
- org.alfresco.repo.search.impl.lucene.analysis.IntegerAnalyser
- java.lang.Integer
-
-
-
- org.alfresco.repo.search.impl.lucene.analysis.LongAnalyser
- java.lang.Long
-
-
-
- org.alfresco.repo.search.impl.lucene.analysis.FloatAnalyser
- java.lang.Float
-
-
-
- org.alfresco.repo.search.impl.lucene.analysis.DoubleAnalyser
- java.lang.Double
-
-
-
- org.alfresco.repo.search.impl.lucene.analysis.DateAnalyser
- java.util.Date
-
-
-
- org.alfresco.repo.search.impl.lucene.analysis.DateTimeAnalyser
- java.util.Date
-
-
-
- org.alfresco.repo.search.impl.lucene.analysis.AlfrescoStandardAnalyser
- java.lang.Boolean
-
-
-
- org.alfresco.repo.search.impl.lucene.analysis.AlfrescoStandardAnalyser
- org.alfresco.service.namespace.QName
-
-
-
- org.alfresco.repo.search.impl.lucene.analysis.AlfrescoStandardAnalyser
- org.alfresco.service.cmr.repository.NodeRef
-
-
-
- org.alfresco.repo.search.impl.lucene.analysis.AlfrescoStandardAnalyser
- org.alfresco.service.cmr.repository.ChildAssociationRef
-
-
-
- org.alfresco.repo.search.impl.lucene.analysis.AlfrescoStandardAnalyser
- org.alfresco.service.cmr.repository.AssociationRef
-
-
-
- org.alfresco.repo.search.impl.lucene.analysis.AlfrescoStandardAnalyser
- org.alfresco.service.cmr.repository.Path
-
-
-
- org.alfresco.repo.search.impl.lucene.analysis.AlfrescoStandardAnalyser
- org.alfresco.service.cmr.repository.NodeRef
-
-
-
- org.alfresco.repo.search.impl.lucene.analysis.VerbatimAnalyser
- java.util.Locale
-
-
-
- org.alfresco.repo.search.impl.lucene.analysis.VerbatimAnalyser
- org.alfresco.util.VersionNumber
-
-
-
- org.alfresco.repo.search.impl.lucene.analysis.VerbatimAnalyser
- org.alfresco.service.cmr.repository.Period
-
-
-
-
-
-
-
-
diff --git a/source/java/org/alfresco/model/ContentModel.java b/source/java/org/alfresco/model/ContentModel.java
deleted file mode 100644
index 1bb945ba7a..0000000000
--- a/source/java/org/alfresco/model/ContentModel.java
+++ /dev/null
@@ -1,322 +0,0 @@
-/*
- * Copyright (C) 2005-2010 Alfresco Software Limited.
- *
- * This file is part of Alfresco
- *
- * Alfresco is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * Alfresco is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with Alfresco. If not, see .
- */
-package org.alfresco.model;
-
-import org.alfresco.service.namespace.NamespaceService;
-import org.alfresco.service.namespace.QName;
-
-
-/**
- * Content Model Constants
- */
-public interface ContentModel
-{
- //
- // System Model Definitions
- //
-
- // base type constants
- static final QName TYPE_BASE = QName.createQName(NamespaceService.SYSTEM_MODEL_1_0_URI, "base");
- static final QName ASPECT_REFERENCEABLE = QName.createQName(NamespaceService.SYSTEM_MODEL_1_0_URI, "referenceable");
- static final QName PROP_STORE_PROTOCOL = QName.createQName(NamespaceService.SYSTEM_MODEL_1_0_URI, "store-protocol");
- static final QName PROP_STORE_IDENTIFIER = QName.createQName(NamespaceService.SYSTEM_MODEL_1_0_URI, "store-identifier");
- static final QName PROP_NODE_UUID = QName.createQName(NamespaceService.SYSTEM_MODEL_1_0_URI, "node-uuid");
- static final QName PROP_NODE_DBID = QName.createQName(NamespaceService.SYSTEM_MODEL_1_0_URI, "node-dbid");
-
- // tag for incomplete nodes
- static final QName ASPECT_INCOMPLETE = QName.createQName(NamespaceService.SYSTEM_MODEL_1_0_URI, "incomplete");
-
- // tag for temporary nodes
- static final QName ASPECT_TEMPORARY = QName.createQName(NamespaceService.SYSTEM_MODEL_1_0_URI, "temporary");
-
- // tag for nodes being formed (CIFS)
- static final QName ASPECT_NO_CONTENT = QName.createQName(NamespaceService.SYSTEM_MODEL_1_0_URI, "noContent");
-
- // tag for localized nodes
- static final QName ASPECT_LOCALIZED = QName.createQName(NamespaceService.SYSTEM_MODEL_1_0_URI, "localized");
- static final QName PROP_LOCALE = QName.createQName(NamespaceService.SYSTEM_MODEL_1_0_URI, "locale");
-
- // archived nodes aspect constants
- static final QName ASPECT_ARCHIVED = QName.createQName(NamespaceService.SYSTEM_MODEL_1_0_URI, "archived");
- static final QName PROP_ARCHIVED_ORIGINAL_PARENT_ASSOC = QName.createQName(NamespaceService.SYSTEM_MODEL_1_0_URI, "archivedOriginalParentAssoc");
- static final QName PROP_ARCHIVED_BY = QName.createQName(NamespaceService.SYSTEM_MODEL_1_0_URI, "archivedBy");
- static final QName PROP_ARCHIVED_DATE = QName.createQName(NamespaceService.SYSTEM_MODEL_1_0_URI, "archivedDate");
- static final QName PROP_ARCHIVED_ORIGINAL_OWNER = QName.createQName(NamespaceService.SYSTEM_MODEL_1_0_URI, "archivedOriginalOwner");
- static final QName ASPECT_ARCHIVED_ASSOCS = QName.createQName(NamespaceService.SYSTEM_MODEL_1_0_URI, "archived-assocs");
- static final QName PROP_ARCHIVED_PARENT_ASSOCS = QName.createQName(NamespaceService.SYSTEM_MODEL_1_0_URI, "archivedParentAssocs");
- static final QName PROP_ARCHIVED_CHILD_ASSOCS = QName.createQName(NamespaceService.SYSTEM_MODEL_1_0_URI, "archivedChildAssocs");
- static final QName PROP_ARCHIVED_SOURCE_ASSOCS = QName.createQName(NamespaceService.SYSTEM_MODEL_1_0_URI, "archivedSourceAssocs");
- static final QName PROP_ARCHIVED_TARGET_ASSOCS = QName.createQName(NamespaceService.SYSTEM_MODEL_1_0_URI, "archivedTargetAssocs");
-
- // referenceable aspect constants
- static final QName TYPE_REFERENCE = QName.createQName(NamespaceService.SYSTEM_MODEL_1_0_URI, "reference");
- static final QName PROP_REFERENCE = QName.createQName(NamespaceService.SYSTEM_MODEL_1_0_URI, "reference");
-
- // container type constants
- static final QName TYPE_CONTAINER = QName.createQName(NamespaceService.SYSTEM_MODEL_1_0_URI, "container");
- /** child association type supported by {@link #TYPE_CONTAINER} */
- static final QName ASSOC_CHILDREN =QName.createQName(NamespaceService.SYSTEM_MODEL_1_0_URI, "children");
-
- // roots
- static final QName ASPECT_ROOT = QName.createQName(NamespaceService.SYSTEM_MODEL_1_0_URI, "aspect_root");
- static final QName TYPE_STOREROOT = QName.createQName(NamespaceService.SYSTEM_MODEL_1_0_URI, "store_root");
-
- // descriptor properties
- static final QName PROP_SYS_NAME = QName.createQName(NamespaceService.SYSTEM_MODEL_1_0_URI, "name");
- static final QName PROP_SYS_VERSION_MAJOR = QName.createQName(NamespaceService.SYSTEM_MODEL_1_0_URI, "versionMajor");
- static final QName PROP_SYS_VERSION_MINOR = QName.createQName(NamespaceService.SYSTEM_MODEL_1_0_URI, "versionMinor");
- static final QName PROP_SYS_VERSION_REVISION = QName.createQName(NamespaceService.SYSTEM_MODEL_1_0_URI, "versionRevision");
- static final QName PROP_SYS_VERSION_LABEL = QName.createQName(NamespaceService.SYSTEM_MODEL_1_0_URI, "versionLabel");
- static final QName PROP_SYS_VERSION_BUILD = QName.createQName(NamespaceService.SYSTEM_MODEL_1_0_URI, "versionBuild");
- static final QName PROP_SYS_VERSION_SCHEMA = QName.createQName(NamespaceService.SYSTEM_MODEL_1_0_URI, "versionSchema");
- static final QName PROP_SYS_VERSION_EDITION = QName.createQName(NamespaceService.SYSTEM_MODEL_1_0_URI, "versionEdition");
- static final QName PROP_SYS_VERSION_PROPERTIES = QName.createQName(NamespaceService.SYSTEM_MODEL_1_0_URI, "versionProperties");
-
- //
- // Content Model Definitions
- //
-
- // content management type constants
- static final QName TYPE_CMOBJECT = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "cmobject");
- static final QName PROP_NAME = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "name");
-
- // copy aspect constants
- static final QName ASPECT_COPIEDFROM = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "copiedfrom");
- static final QName PROP_COPY_REFERENCE = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "source");
-
- // working copy aspect contants
- static final QName ASPECT_WORKING_COPY = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "workingcopy");
- static final QName PROP_WORKING_COPY_OWNER = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "workingCopyOwner");
- static final QName PROP_WORKING_COPY_MODE = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "workingCopyMode");
-
- // content type and aspect constants
- static final QName TYPE_CONTENT = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "content");
- static final QName PROP_CONTENT = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "content");
-
- // title aspect
- static final QName ASPECT_TITLED = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "titled");
- static final QName PROP_TITLE = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "title");
- static final QName PROP_DESCRIPTION = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "description");
-
- // auditable aspect
- static final QName ASPECT_AUDITABLE = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "auditable");
- static final QName PROP_CREATED = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "created");
- static final QName PROP_CREATOR = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "creator");
- static final QName PROP_MODIFIED = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "modified");
- static final QName PROP_MODIFIER = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "modifier");
- static final QName PROP_ACCESSED = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "accessed");
-
- // author aspect
- static final QName ASPECT_AUTHOR = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "author");
- static final QName PROP_AUTHOR = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "author");
-
- // categories
- static final QName TYPE_CATEGORYROOT = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "category_root");
- static final QName ASPECT_CLASSIFIABLE = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "classifiable");
- //static final QName ASPECT_CATEGORISATION = QName.createQName(NamespaceService.ALFRESCO_URI, "aspect_categorisation");
- static final QName ASPECT_GEN_CLASSIFIABLE = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "generalclassifiable");
- static final QName TYPE_CATEGORY = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "category");
- static final QName PROP_CATEGORIES = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "categories");
- static final QName ASSOC_CATEGORIES = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "categories");
- static final QName ASSOC_SUBCATEGORIES = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "subcategories");
-
- // tags - a subsection of categories
- static final QName ASPECT_TAGGABLE = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "taggable");
- static final QName PROP_TAGS = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "taggable");
-
- // tagscope aspect
- static final QName ASPECT_TAGSCOPE = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "tagscope");
- static final QName PROP_TAGSCOPE_CACHE = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "tagScopeCache");
-
- // lock aspect
- public final static QName ASPECT_LOCKABLE = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "lockable");
- public final static QName PROP_LOCK_OWNER = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "lockOwner");
- public final static QName PROP_LOCK_TYPE = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "lockType");
- public final static QName PROP_EXPIRY_DATE = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "expiryDate");
-
- // version aspect
- static final QName ASPECT_VERSIONABLE = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "versionable");
- static final QName PROP_VERSION_LABEL = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "versionLabel");
- static final QName PROP_INITIAL_VERSION = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "initialVersion");
- static final QName PROP_AUTO_VERSION = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "autoVersion");
- static final QName PROP_AUTO_VERSION_PROPS = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "autoVersionOnUpdateProps");
-
- // folders
- static final QName TYPE_SYSTEM_FOLDER = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "systemfolder");
- static final QName TYPE_FOLDER = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "folder");
- /** child association type supported by {@link #TYPE_FOLDER} */
- static final QName ASSOC_CONTAINS = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "contains");
-
- // person
- static final QName TYPE_PERSON = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "person");
- static final QName PROP_USERNAME = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "userName");
- static final QName PROP_HOMEFOLDER = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "homeFolder");
- static final QName PROP_FIRSTNAME = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "firstName");
- static final QName PROP_LASTNAME = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "lastName");
- static final QName PROP_EMAIL = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "email");
- static final QName PROP_ORGID = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "organizationId");
- static final QName PROP_HOME_FOLDER_PROVIDER = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "homeFolderProvider");
- static final QName PROP_DEFAULT_HOME_FOLDER_PATH = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "defaultHomeFolderPath");
- static final QName PROP_PRESENCEPROVIDER = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "presenceProvider");
- static final QName PROP_PRESENCEUSERNAME = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "presenceUsername");
- static final QName PROP_ORGANIZATION = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "organization");
- static final QName PROP_JOBTITLE = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "jobtitle");
- static final QName PROP_LOCATION = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "location");
- static final QName PROP_PERSONDESC = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "persondescription");
- static final QName PROP_TELEPHONE = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "telephone");
- static final QName PROP_MOBILE = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "mobile");
- static final QName PROP_COMPANYADDRESS1 = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "companyaddress1");
- static final QName PROP_COMPANYADDRESS2 = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "companyaddress2");
- static final QName PROP_COMPANYADDRESS3 = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "companyaddress3");
- static final QName PROP_COMPANYPOSTCODE = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "companypostcode");
- static final QName PROP_COMPANYTELEPHONE = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "companytelephone");
- static final QName PROP_COMPANYFAX = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "companyfax");
- static final QName PROP_COMPANYEMAIL = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "companyemail");
- static final QName PROP_SKYPE = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "skype");
- static final QName PROP_GOOGLEUSERNAME = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "googleusername");
- static final QName PROP_INSTANTMSG = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "instantmsg");
-
- static final QName PROP_SIZE_CURRENT = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "sizeCurrent");
- static final QName PROP_SIZE_QUOTA = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "sizeQuota");
-
- static final QName ASSOC_AVATAR = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "avatar");
-
- // Authority
- static final QName TYPE_AUTHORITY = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "authority");
-
- static final QName TYPE_AUTHORITY_CONTAINER = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "authorityContainer");
- static final QName PROP_AUTHORITY_NAME = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "authorityName");
- static final QName PROP_AUTHORITY_DISPLAY_NAME = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "authorityDisplayName");
-
- static final QName ASSOC_MEMBER = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "member");
-
- // Zone
- static final QName TYPE_ZONE = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "zone");
- static final QName ASSOC_IN_ZONE = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "inZone");
-
- // Ownable aspect
- static final QName ASPECT_OWNABLE = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "ownable");
- static final QName PROP_OWNER = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "owner");
-
- // Templatable aspect
- static final QName ASPECT_TEMPLATABLE = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "templatable");
- static final QName PROP_TEMPLATE = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "template");
-
- // Webscriptable aspect
- static final QName ASPECT_WEBSCRIPTABLE = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "webscriptable");
- static final QName PROP_WEBSCRIPT = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "webscript");
-
- // Dictionary model
- static final QName TYPE_DICTIONARY_MODEL = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "dictionaryModel");
- static final QName PROP_MODEL_NAME = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "modelName");
- static final QName PROP_MODEL_DESCRIPTION = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "modelDescription");
- static final QName PROP_MODEL_AUTHOR = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "modelAuthor");
- static final QName PROP_MODEL_PUBLISHED_DATE = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "modelPublishedDate");
- static final QName PROP_MODEL_VERSION = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "modelVersion");
- static final QName PROP_MODEL_ACTIVE = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "modelActive");
-
- // referencing aspect
- static final QName ASPECT_REFERENCING = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "referencing");
- static final QName ASSOC_REFERENCES = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "references");
-
- // link object
- static final QName TYPE_LINK = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "link");
- static final QName PROP_LINK_DESTINATION = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "destination");
-
- // attachable aspect
- static final QName ASPECT_ATTACHABLE = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "attachable");
- static final QName ASSOC_ATTACHMENTS = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "attachments");
-
- // email aspect
- static final QName ASPECT_MAILED = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "emailed");
- static final QName PROP_SENTDATE = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "sentdate");
- static final QName PROP_ORIGINATOR = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "originator");
- static final QName PROP_ADDRESSEE = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "addressee");
- static final QName PROP_ADDRESSEES = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "addressees");
- static final QName PROP_SUBJECT = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "subjectline");
-
- // countable aspect
- static final QName ASPECT_COUNTABLE = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "countable");
- static final QName PROP_HITS = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "hits");
- static final QName PROP_COUNTER = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "counter");
-
- // References Node Aspect.
- static final QName ASPECT_REFERENCES_NODE = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "referencesnode");
- static final QName PROP_NODE_REF = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "noderef");
-
- // Multilingual Type
- static final QName TYPE_MULTILINGUAL_CONTAINER = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "mlContainer");
- static final QName ASSOC_MULTILINGUAL_CHILD = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "mlChild");
- static final QName ASPECT_MULTILINGUAL_DOCUMENT = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "mlDocument");
- static final QName ASPECT_MULTILINGUAL_EMPTY_TRANSLATION = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "mlEmptyTranslation");
-
- // Thumbnail Type
- static final QName TYPE_THUMBNAIL = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "thumbnail");
- static final QName PROP_THUMBNAIL_NAME = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "thumbnailName");
- static final QName PROP_CONTENT_PROPERTY_NAME = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "contentPropertyName");
- static final QName PROP_AUTOMATIC_UPDATE = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "automaticUpdate");
-
- // Thumbnailed Aspect
- /**
- * This aspect type has been deprecated.
- * From Alfresco 3.3 the {@link RenditionModel#ASPECT_RENDITIONED rn:renditioned}
- * (which is a child of cm:thumbnailed) should be used instead.
- */
- @Deprecated
- static final QName ASPECT_THUMBNAILED = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "thumbnailed");
- /**
- * This association type has been deprecated.
- * From Alfresco 3.3 this association no longer exists and has been replaced with
- * {@link RenditionModel#ASSOC_RENDITION rn:rendition} association. From Alfresco
- * 3.3 onwards {@link QNamePatch a patch} is executed at startup which renames
- * the cm:thumbnails QName to rn:rendition in the database.
- *
- * This field has been updated to point to that association and references to this
- * field should be updated to use the new field.
- */
- @Deprecated
- static final QName ASSOC_THUMBNAILS = RenditionModel.ASSOC_RENDITION;
-
- // StoreSelector Aspect
- static final QName ASPECT_STORE_SELECTOR = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "storeSelector");
- static final QName PROP_STORE_NAME = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "storeName");
-
- // Preference Aspect
- static final QName ASPECT_PREFERENCES = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "preferences");
- static final QName PROP_PREFERENCE_VALUES = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "preferenceValues");
- static final QName ASSOC_PREFERENCE_IMAGE = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "preferenceImage");
-
- //
- // User Model Definitions
- //
-
- static final String USER_MODEL_URI = "http://www.alfresco.org/model/user/1.0";
- static final String USER_MODEL_PREFIX = "usr";
-
- static final QName TYPE_USER = QName.createQName(USER_MODEL_URI, "user");
- static final QName PROP_USER_USERNAME = QName.createQName(USER_MODEL_URI, "username");
- static final QName PROP_PASSWORD = QName.createQName(USER_MODEL_URI, "password");
- static final QName PROP_ENABLED = QName.createQName(USER_MODEL_URI, "enabled");
- static final QName PROP_ACCOUNT_EXPIRES = QName.createQName(USER_MODEL_URI, "accountExpires");
- static final QName PROP_ACCOUNT_EXPIRY_DATE = QName.createQName(USER_MODEL_URI, "accountExpiryDate");
- static final QName PROP_CREDENTIALS_EXPIRE = QName.createQName(USER_MODEL_URI, "credentialsExpire");
- static final QName PROP_CREDENTIALS_EXPIRY_DATE = QName.createQName(USER_MODEL_URI, "credentialsExpiryDate");
- static final QName PROP_ACCOUNT_LOCKED = QName.createQName(USER_MODEL_URI, "accountLocked");
- static final QName PROP_SALT = QName.createQName(USER_MODEL_URI, "salt");
-}
diff --git a/source/java/org/alfresco/model/RenditionModel.java b/source/java/org/alfresco/model/RenditionModel.java
deleted file mode 100644
index 02f18041ea..0000000000
--- a/source/java/org/alfresco/model/RenditionModel.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Copyright (C) 2005-2010 Alfresco Software Limited.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
-
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
-
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-
- * As a special exception to the terms and conditions of version 2.0 of
- * the GPL, you may redistribute this Program in connection with Free/Libre
- * and Open Source Software ("FLOSS") applications as described in Alfresco's
- * FLOSS exception. You should have received a copy of the text describing
- * the FLOSS exception, and it is also available here:
- * http://www.alfresco.com/legal/licensing"
- */
-package org.alfresco.model;
-
-import org.alfresco.service.namespace.NamespaceService;
-import org.alfresco.service.namespace.QName;
-
-/**
- * Rendition Model Constants
- */
-public interface RenditionModel
-{
- static final QName ASPECT_RENDITION = QName.createQName(NamespaceService.RENDITION_MODEL_1_0_URI, "rendition");
- static final QName ASPECT_HIDDEN_RENDITION = QName.createQName(NamespaceService.RENDITION_MODEL_1_0_URI, "hiddenRendition");
- static final QName ASPECT_VISIBLE_RENDITION = QName.createQName(NamespaceService.RENDITION_MODEL_1_0_URI, "visibleRendition");
-
- static final QName ASPECT_RENDITIONED = QName.createQName(NamespaceService.RENDITION_MODEL_1_0_URI, "renditioned");
- static final QName ASSOC_RENDITION = QName.createQName(NamespaceService.RENDITION_MODEL_1_0_URI, "rendition");
-}
diff --git a/source/java/org/alfresco/repo/cache/MemoryCache.java b/source/java/org/alfresco/repo/cache/MemoryCache.java
deleted file mode 100644
index f074ba46e8..0000000000
--- a/source/java/org/alfresco/repo/cache/MemoryCache.java
+++ /dev/null
@@ -1,72 +0,0 @@
-/*
- * Copyright (C) 2005-2010 Alfresco Software Limited.
- *
- * This file is part of Alfresco
- *
- * Alfresco is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * Alfresco is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with Alfresco. If not, see .
- */
-package org.alfresco.repo.cache;
-
-import java.io.Serializable;
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.Map;
-
-/**
- * A cache backed by a simple HashMap.
- *
- * Note: This cache is not transaction- or thread-safe. Use it for single-threaded tests only.
- *
- * @author Derek Hulley
- * @since 3.2
- */
-public class MemoryCache implements SimpleCache
-{
- private Map map;
-
- public MemoryCache()
- {
- map = new HashMap(15);
- }
-
- public boolean contains(K key)
- {
- return map.containsKey(key);
- }
-
- public Collection getKeys()
- {
- return map.keySet();
- }
-
- public V get(K key)
- {
- return map.get(key);
- }
-
- public void put(K key, V value)
- {
- map.put(key, value);
- }
-
- public void remove(K key)
- {
- map.remove(key);
- }
-
- public void clear()
- {
- map.clear();
- }
-}
diff --git a/source/java/org/alfresco/repo/cache/SimpleCache.java b/source/java/org/alfresco/repo/cache/SimpleCache.java
deleted file mode 100644
index 409836df15..0000000000
--- a/source/java/org/alfresco/repo/cache/SimpleCache.java
+++ /dev/null
@@ -1,76 +0,0 @@
-/*
- * Copyright (C) 2005-2010 Alfresco Software Limited.
- *
- * This file is part of Alfresco
- *
- * Alfresco is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * Alfresco is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with Alfresco. If not, see .
- */
-package org.alfresco.repo.cache;
-
-import java.io.Serializable;
-import java.util.Collection;
-
-/**
- * Basic caching interface.
- *
- * All implementations must be thread-safe. Additionally, the use of the
- * Serializable for both keys and values ensures that the underlying
- * cache implementations can support both clustered caches as well as persistent
- * caches.
- *
- * All implementations must support null values. It therefore follows
- * that
- *
- * (simpleCache.contains(key) == true) does not imply (simpleCache.get(key) != null)
- *
- *
- * @author Derek Hulley
- */
-public interface SimpleCache
-{
- /**
- * @param key the cache key to check up on
- * @return Returns true if there is a cache entry,
- * regardless of whether the value itself is null
- */
- public boolean contains(K key);
-
- public Collection getKeys();
-
- /**
- * @param key
- * @return Returns the value associated with the key. It will be null
- * if the value is null or if the cache doesn't have an entry.
- */
- public V get(K key);
-
- /**
- * @param key the key against which to store the value
- * @param value the value to store. null is allowed.
- */
- public void put(K key, V value);
-
- /**
- * Removes the cache entry whether or not the value stored against it is null.
- *
- * @param key the key value to remove
- */
- public void remove(K key);
-
- public void clear();
-}
diff --git a/source/java/org/alfresco/repo/content/AbstractContentAccessor.java b/source/java/org/alfresco/repo/content/AbstractContentAccessor.java
index 79087c0708..251488c733 100644
--- a/source/java/org/alfresco/repo/content/AbstractContentAccessor.java
+++ b/source/java/org/alfresco/repo/content/AbstractContentAccessor.java
@@ -61,9 +61,6 @@ public abstract class AbstractContentAccessor implements ContentAccessor
private StackTraceElement[] traceLoggerChannelAssignTrace;
- /** when set, ensures that listeners are executed within a transaction */
- private RetryingTransactionHelper transactionHelper;
-
private String contentUrl;
private String mimetype;
private String encoding;
@@ -126,11 +123,6 @@ public abstract class AbstractContentAccessor implements ContentAccessor
return property;
}
- public void setRetryingTransactionHelper(RetryingTransactionHelper helper)
- {
- this.transactionHelper = helper;
- }
-
/**
* Derived classes can call this method to ensure that necessary trace logging is performed
* when the IO Channel is opened.
@@ -263,33 +255,12 @@ public abstract class AbstractContentAccessor implements ContentAccessor
// nothing to do
return;
}
- RetryingTransactionCallback