jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tri...@apache.org
Subject svn commit: r795859 - in /jackrabbit/sandbox/tripod-JCR-2209: ./ jackrabbit-core/src/main/java/org/apache/jackrabbit/core/ jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/ jackrabbit-core/src/main/resources/org/apache/jackrabbit/core/n...
Date Mon, 20 Jul 2009 14:33:52 GMT
Author: tripod
Date: Mon Jul 20 14:33:51 2009
New Revision: 795859

URL: http://svn.apache.org/viewvc?rev=795859&view=rev
Log:
Merge lastest changes from trunk

Added:
    jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/InternalBaseline.java
      - copied unchanged from r795842, jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/InternalBaseline.java
    jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/InternalBaselineImpl.java
      - copied unchanged from r795842, jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/InternalBaselineImpl.java
    jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/InternalConfiguration.java
      - copied unchanged from r795842, jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/InternalConfiguration.java
    jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/InternalConfigurationImpl.java
      - copied unchanged from r795842, jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/InternalConfigurationImpl.java
Modified:
    jackrabbit/sandbox/tripod-JCR-2209/   (props changed)
    jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NodeImpl.java
    jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java
    jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/AbstractVersionManager.java
    jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/InternalActivity.java
    jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/InternalFrozenNode.java
    jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/VersionManager.java
    jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/VersionManagerImpl.java
    jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/XAVersionManager.java
    jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/resources/org/apache/jackrabbit/core/nodetype/builtin_nodetypes.cnd
    jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/name/NameConstants.java

Propchange: jackrabbit/sandbox/tripod-JCR-2209/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Mon Jul 20 14:33:51 2009
@@ -1 +1,2 @@
 /jackrabbit/branches/1.5:794012,794100,794102
+/jackrabbit/trunk:795441-795853

Modified: jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NodeImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NodeImpl.java?rev=795859&r1=795858&r2=795859&view=diff
==============================================================================
--- jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NodeImpl.java
(original)
+++ jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NodeImpl.java
Mon Jul 20 14:33:51 2009
@@ -89,7 +89,6 @@
 import org.apache.jackrabbit.core.state.NodeState;
 import org.apache.jackrabbit.core.state.PropertyState;
 import org.apache.jackrabbit.core.value.InternalValue;
-import org.apache.jackrabbit.core.JcrVersionManagerImpl;
 import org.apache.jackrabbit.spi.Name;
 import org.apache.jackrabbit.spi.Path;
 import org.apache.jackrabbit.spi.commons.conversion.MalformedPathException;

Modified: jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java?rev=795859&r1=795858&r2=795859&view=diff
==============================================================================
--- jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java
(original)
+++ jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java
Mon Jul 20 14:33:51 2009
@@ -141,6 +141,11 @@
     public static final NodeId ACTIVITIES_NODE_ID = NodeId.valueOf("deadbeef-face-babe-ac71-babecafebabe");
 
     /**
+     * hardcoded id of the "/jcr:system/jcr:versionStorage/jcr:configurations" node
+     */
+    public static final NodeId CONFIGURATIONS_NODE_ID = NodeId.valueOf("deadbeef-face-babe-c04f-babecafebabe");
+
+    /**
      * hardcoded id of the "/jcr:system/jcr:nodeTypes" node
      */
     public static final NodeId NODETYPES_NODE_ID = NodeId.valueOf("deadbeef-cafe-cafe-cafe-babecafebabe");
@@ -474,6 +479,7 @@
                 SYSTEM_ROOT_NODE_ID,
                 VERSION_STORAGE_NODE_ID,
                 ACTIVITIES_NODE_ID,
+                CONFIGURATIONS_NODE_ID,
                 cacheFactory,
                 ismLocking);
     }

Modified: jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/AbstractVersionManager.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/AbstractVersionManager.java?rev=795859&r1=795858&r2=795859&view=diff
==============================================================================
--- jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/AbstractVersionManager.java
(original)
+++ jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/AbstractVersionManager.java
Mon Jul 20 14:33:51 2009
@@ -21,11 +21,13 @@
 import javax.jcr.RepositoryException;
 import javax.jcr.Session;
 import javax.jcr.Value;
+import javax.jcr.UnsupportedRepositoryOperationException;
 import javax.jcr.version.VersionException;
 
-import org.apache.jackrabbit.core.id.NodeId;
 import org.apache.jackrabbit.core.NodeImpl;
 import org.apache.jackrabbit.core.value.InternalValue;
+import org.apache.jackrabbit.core.id.NodeId;
+import org.apache.jackrabbit.core.value.InternalValue;
 import org.apache.jackrabbit.core.nodetype.NodeTypeRegistry;
 import org.apache.jackrabbit.core.state.DefaultISMLocking;
 import org.apache.jackrabbit.core.state.ISMLocking.ReadLock;
@@ -74,6 +76,11 @@
     protected NodeStateEx activitiesRoot;
 
     /**
+     * Persistent root node of the configurations.
+     */
+    protected NodeStateEx configurationsRoot;
+
+    /**
      * the lock on this version manager
      */
     private final DefaultISMLocking rwLock = new DefaultISMLocking();
@@ -361,6 +368,7 @@
      * @param id the id of the node
      * @throws RepositoryException if an error occurs while reading from the
      *                             repository.
+     * @return the nodestate for the given id.
      */
     protected abstract NodeStateEx getNodeStateEx(NodeId id)
             throws RepositoryException;
@@ -437,6 +445,57 @@
     }
 
     /**
+     * Creates aew configuration node
+     * @param rootId the id of the root node of the workspace configuration
+     * @param baseline the optional baseline
+     * @return a node state of the created configuration
+     * @throws RepositoryException if an error occurs
+     */
+    NodeStateEx internalCreateConfiguration(NodeId rootId, InternalBaseline baseline)
+            throws RepositoryException {
+        if (baseline != null) {
+            // the exact behavior is not clarified yet.
+            // see http://jsr-283.dev.java.net/issues/show_bug.cgi?id=795
+            throw new UnsupportedRepositoryOperationException(
+                    "creating configurations based on a baseline not supported, yet");
+        }
+
+        WriteOperation ops = startWriteOperation();
+        try {
+            // If the parameter baseline is null, a new version history is created
+            // to store baselines of the new configuration, and the jcr:baseVersion
+            // of the new configuration references the root of the new version history.
+            NodeId configId = new NodeId();
+            NodeStateEx configParent = getParentNode(configurationsRoot,
+                    configId.toString(), NameConstants.REP_CONFIGURATIONS);
+            Name name = getName(configId.toString());
+            NodeStateEx config = configParent.addNode(name, NameConstants.NT_CONFIGURATION,
configId, true);
+            config.setPropertyValue(NameConstants.JCR_ROOT, InternalValue.create(rootId));
+
+            // now create the version history of the baseline
+            String uuid = new NodeId().toString();
+            NodeStateEx histParent = getParentNode(historyRoot, uuid, NameConstants.REP_VERSIONSTORAGE);
+            Name histName = getName(uuid);
+            NodeStateEx history =
+                InternalVersionHistoryImpl.create(this, histParent, histName, config.getState(),
null);
+            InternalVersionHistory vh = new InternalVersionHistoryImpl(this, history);
+
+            // and set the base version and history to the config
+            NodeId blId = vh.getRootVersion().getId();
+            config.setPropertyValue(NameConstants.JCR_BASEVERSION, InternalValue.create(blId));
+            config.setPropertyValue(NameConstants.JCR_VERSIONHISTORY, InternalValue.create(vh.getId()));
+            configParent.store();
+            ops.save();
+
+            return config;
+        } catch (ItemStateException e) {
+            throw new RepositoryException(e);
+        } finally {
+            ops.close();
+        }
+    }
+
+    /**
      * Removes the specified activity
      *
      * @param activity the acitvity to remove

Modified: jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/InternalActivity.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/InternalActivity.java?rev=795859&r1=795858&r2=795859&view=diff
==============================================================================
--- jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/InternalActivity.java
(original)
+++ jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/InternalActivity.java
Mon Jul 20 14:33:51 2009
@@ -33,7 +33,7 @@
      * @return the version
      * @throws RepositoryException if an error occurs
      */
-    public InternalVersion getLatestVersion(InternalVersionHistory history)
+    InternalVersion getLatestVersion(InternalVersionHistory history)
             throws RepositoryException;
 
     /**
@@ -44,6 +44,6 @@
      * @return the changeset
      * @throws RepositoryException if an error occurs
      */
-    public Map<NodeId, InternalVersion> getChangeSet() throws RepositoryException;
+    Map<NodeId, InternalVersion> getChangeSet() throws RepositoryException;
 
 }
\ No newline at end of file

Modified: jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/InternalFrozenNode.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/InternalFrozenNode.java?rev=795859&r1=795858&r2=795859&view=diff
==============================================================================
--- jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/InternalFrozenNode.java
(original)
+++ jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/InternalFrozenNode.java
Mon Jul 20 14:33:51 2009
@@ -70,7 +70,7 @@
 
     /**
      * Checks if this frozen node has the frozen version history
-     * @param id
+     * @param id if to check
      * @return <code>true</code> if this node has the history;
      *         <code>false</code> otherwise.
      */

Modified: jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/VersionManager.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/VersionManager.java?rev=795859&r1=795858&r2=795859&view=diff
==============================================================================
--- jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/VersionManager.java
(original)
+++ jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/VersionManager.java
Mon Jul 20 14:33:51 2009
@@ -158,6 +158,20 @@
     InternalVersion getHeadVersionOfNode(NodeId id) throws RepositoryException;
 
     /**
+     * Creates a new internal configuration that represents a configuration
+     * of the tree rooted at the node specified by <code>rootId</code>
+     * 
+     * @param session the session that creates the configuration
+     * @param rootId root id of the configuration
+     * @param baseline the baseline or <code>null</code>
+     * @return a new internal configuration
+     * @throws RepositoryException if an error occurs
+     */
+    InternalConfiguration createConfiguration(Session session, NodeId rootId,
+                                              InternalBaseline baseline)
+            throws RepositoryException;
+
+    /**
      * Creates a new activity
      * @param session the current session
      * @param title title of the new activity

Modified: jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/VersionManagerImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/VersionManagerImpl.java?rev=795859&r1=795858&r2=795859&view=diff
==============================================================================
--- jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/VersionManagerImpl.java
(original)
+++ jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/VersionManagerImpl.java
Mon Jul 20 14:33:51 2009
@@ -83,6 +83,11 @@
      */
     private static final Path ACTIVITIES_PATH;
 
+    /**
+     * The path to the configurations storage: /jcr:system/jcr:versionStorage/jcr:configurations
+     */
+    private static final Path CONFIGURATIONS_PATH;
+
     static {
         try {
             PathBuilder builder = new PathBuilder();
@@ -97,6 +102,13 @@
             builder.addLast(NameConstants.JCR_VERSIONSTORAGE);
             builder.addLast(NameConstants.JCR_ACTIVITIES);
             ACTIVITIES_PATH = builder.getPath();
+
+            builder = new PathBuilder();
+            builder.addRoot();
+            builder.addLast(NameConstants.JCR_SYSTEM);
+            builder.addLast(NameConstants.JCR_VERSIONSTORAGE);
+            builder.addLast(NameConstants.JCR_CONFIGURATIONS);
+            CONFIGURATIONS_PATH = builder.getPath();
         } catch (MalformedPathException e) {
             // will not happen. path is always valid
             throw new InternalError("Cannot initialize path");
@@ -131,12 +143,24 @@
     /**
      * Map of returned items. this is kept for invalidating
      */
+    @SuppressWarnings("unchecked")
     private final Map<ItemId, InternalVersionItem> versionItems =
             new ReferenceMap(ReferenceMap.HARD, ReferenceMap.WEAK);
 
     /**
-     * Creates a new version manager
+     * Creates a new internal version manager
      *
+     * @param pMgr underlying persistence manager
+     * @param fs workspace file system
+     * @param ntReg node type registry
+     * @param obsMgr observation manager
+     * @param rootParentId node id of the version storage parent (i.e. jcr:system)
+     * @param storageId node id of the version storage (i.e. jcr:versionStorage)
+     * @param activitiesId node id of the activities storage (i.e. jcr:activities)
+     * @param configurationsId node if of the configurations storage (i.e. jcr:configurations)
+     * @param cacheFactory item state cache factory
+     * @param ismLocking workspace item state locking
+     * @throws RepositoryException if an error occurs
      */
     public VersionManagerImpl(PersistenceManager pMgr, FileSystem fs,
                               NodeTypeRegistry ntReg,
@@ -144,6 +168,7 @@
                               NodeId rootParentId,
                               NodeId storageId,
                               NodeId activitiesId,
+                              NodeId configurationsId,
                               ItemStateCacheFactory cacheFactory,
                               ISMLocking ismLocking) throws RepositoryException {
         super(ntReg);
@@ -198,6 +223,32 @@
                 pMgr.store(cl);
             }
 
+            // check for jcr:configurations
+            if (!pMgr.exists(configurationsId)) {
+                NodeState root = pMgr.createNew(configurationsId);
+                root.setParentId(storageId);
+                root.setDefinitionId(ntReg.getEffectiveNodeType(NameConstants.REP_VERSIONSTORAGE).getApplicableChildNodeDef(
+                        NameConstants.JCR_CONFIGURATIONS, NameConstants.REP_CONFIGURATIONS,
ntReg).getId());
+                root.setNodeTypeName(NameConstants.REP_CONFIGURATIONS);
+                PropertyState pt = pMgr.createNew(new PropertyId(activitiesId, NameConstants.JCR_PRIMARYTYPE));
+                pt.setDefinitionId(ntReg.getEffectiveNodeType(NameConstants.REP_CONFIGURATIONS).getApplicablePropertyDef(
+                        NameConstants.JCR_PRIMARYTYPE, PropertyType.NAME, false).getId());
+                pt.setMultiValued(false);
+                pt.setType(PropertyType.NAME);
+                pt.setValues(new InternalValue[]{InternalValue.create(NameConstants.REP_CONFIGURATIONS)});
+                root.addPropertyName(pt.getName());
+
+                // add activities as child
+                NodeState historyState = pMgr.load(storageId);
+                historyState.addChildNodeEntry(NameConstants.JCR_CONFIGURATIONS, configurationsId);
+
+                ChangeLog cl = new ChangeLog();
+                cl.added(root);
+                cl.added(pt);
+                cl.modified(historyState);
+                pMgr.store(cl);
+            }
+
             sharedStateMgr = createItemStateManager(pMgr, storageId, ntReg, cacheFactory,
ismLocking);
 
             stateMgr = LocalItemStateManager.createInstance(sharedStateMgr, escFactory, cacheFactory);
@@ -209,6 +260,9 @@
             nodeState = (NodeState) stateMgr.getItemState(activitiesId);
             activitiesRoot =  new NodeStateEx(stateMgr, ntReg, nodeState, NameConstants.JCR_ACTIVITIES);
 
+            nodeState = (NodeState) stateMgr.getItemState(configurationsId);
+            configurationsRoot =  new NodeStateEx(stateMgr, ntReg, nodeState, NameConstants.JCR_CONFIGURATIONS);
+
             // create the virtual item state provider
             versProvider = new VersionItemStateProvider(
                     getHistoryRootId(), sharedStateMgr);
@@ -293,6 +347,22 @@
 
     /**
      * {@inheritDoc}
+     */
+    public InternalConfiguration createConfiguration(Session session,
+                                                     final NodeId rootId,
+                                                     final InternalBaseline baseline)
+            throws RepositoryException {
+        NodeStateEx state = (NodeStateEx)
+                escFactory.doSourced((SessionImpl) session, new SourcedTarget() {
+            public Object run() throws RepositoryException {
+                return internalCreateConfiguration(rootId, baseline);
+            }
+        });
+        return new InternalConfigurationImpl(this, state);
+    }
+
+    /**
+     * {@inheritDoc}
      * <p/>
      * This method must not be synchronized since it could cause deadlocks with
      * item-reading listeners in the observation thread.

Modified: jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/XAVersionManager.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/XAVersionManager.java?rev=795859&r1=795858&r2=795859&view=diff
==============================================================================
--- jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/XAVersionManager.java
(original)
+++ jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/XAVersionManager.java
Mon Jul 20 14:33:51 2009
@@ -164,15 +164,32 @@
      */
     public NodeId createActivity(Session session, String title)
             throws RepositoryException {
-
         if (isInXA()) {
             NodeStateEx state = internalCreateActivity(title);
             InternalActivityImpl activity =
                 new InternalActivityImpl(vMgr, state);
             xaItems.put(state.getNodeId(), activity);
             return state.getNodeId();
+        } else {
+            return vMgr.createActivity(session, title);
+        }
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    public InternalConfiguration createConfiguration(Session session,
+                                                     NodeId rootId,
+                                                     InternalBaseline baseline)
+            throws RepositoryException {
+        if (isInXA()) {
+            NodeStateEx state = internalCreateConfiguration(rootId, baseline);
+            InternalConfiguration config = new InternalConfigurationImpl(vMgr, state);
+            xaItems.put(state.getNodeId(), config);
+            return config;
+        } else {
+            return vMgr.createConfiguration(session, rootId, baseline);
         }
-        return vMgr.createActivity(session, title);
     }
 
     /**

Modified: jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/resources/org/apache/jackrabbit/core/nodetype/builtin_nodetypes.cnd
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/resources/org/apache/jackrabbit/core/nodetype/builtin_nodetypes.cnd?rev=795859&r1=795858&r2=795859&view=diff
==============================================================================
--- jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/resources/org/apache/jackrabbit/core/nodetype/builtin_nodetypes.cnd
(original)
+++ jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-core/src/main/resources/org/apache/jackrabbit/core/nodetype/builtin_nodetypes.cnd
Mon Jul 20 14:33:51 2009
@@ -269,7 +269,7 @@
  * and does not necessarily imply the use of the UUID syntax, or global uniqueness.
  * The identifier of a referenceable node must be a referenceable identifier.
  * Referenceable identifiers must fulfill a number of constraints beyond the
- * minimum required of standard identifiers (see ยค3.8.3 Referenceable Identifiers).
+ * minimum required of standard identifiers (see 3.8.3 Referenceable Identifiers).
  * A reference property is a property that holds the referenceable identifier of a
  * referenceable node and therefore serves as a pointer to that node. The two types
  * of reference properties, REFERENCE and WEAKREFERENCE differ in that the former
@@ -506,14 +506,19 @@
   + * (nt:versionHistory) = nt:versionHistory protected sns ABORT
   + * (rep:versionStorage) = rep:versionStorage protected sns ABORT
   + * (rep:activities) = rep:activities protected sns ABORT
+  + * (rep:configurations) = rep:configurations protected sns ABORT
 
 [rep:activities]
   + * (nt:activity) = nt:activity protected sns ABORT
   + * (rep:activities) = rep:activities protected sns ABORT
 
+[rep:configurations]
+  + * (nt:configuration) = nt:configuration protected sns ABORT
+  + * (rep:configurations) = rep:configurations protected sns ABORT
+
 // implementation note: because node references are not maintained within the
 // version storage, we store a bidirectional relationship between activities and
- // the respective versions
+// the respective versions
 [rep:VersionReference] mix
   - rep:versions (reference) protected multiple abort
   

Modified: jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/name/NameConstants.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/name/NameConstants.java?rev=795859&r1=795858&r2=795859&view=diff
==============================================================================
--- jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/name/NameConstants.java
(original)
+++ jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/name/NameConstants.java
Mon Jul 20 14:33:51 2009
@@ -283,6 +283,18 @@
      */
     public static final Name JCR_ACTIVITY_TITLE = FACTORY.create(Name.NS_JCR_URI, "activityTitle");
 
+    /**
+     * jcr:configurations
+     * @since 2.0
+     */
+    public static final Name JCR_CONFIGURATIONS = FACTORY.create(Name.NS_JCR_URI, "configurations");
+
+    /**
+     * jcr:configuration
+     * @since 2.0
+     */
+    public static final Name JCR_CONFIGURATION = FACTORY.create(Name.NS_JCR_URI, "configuration");
+
 
     //--------------------------------< node type related item name constants >
 
@@ -543,6 +555,12 @@
      */
     public static final Name NT_ACTIVITY = FACTORY.create(Name.NS_NT_URI, "activity");
 
+    /**
+     * nt:configuration
+     * @since 2.0
+     */
+    public static final Name NT_CONFIGURATION = FACTORY.create(Name.NS_NT_URI, "configuration");
+
     //--------------------------------------------------------------------------
     /**
      * rep:root
@@ -565,6 +583,11 @@
     public static final Name REP_ACTIVITIES = FACTORY.create(Name.NS_REP_URI, "activities");
 
     /**
+     * rep:activities
+     */
+    public static final Name REP_CONFIGURATIONS = FACTORY.create(Name.NS_REP_URI, "configurations");
+
+    /**
      * rep:versionReference
      */
     public static final Name REP_VERSION_REFERENCE = FACTORY.create(Name.NS_REP_URI, "VersionReference");



Mime
View raw message