You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by sa...@apache.org on 2012/04/26 16:32:35 UTC

svn commit: r1330871 - in /ofbiz/trunk/framework/jcr/src/org/ofbiz/jcr: access/jackrabbit/JackrabbitRepositoryAccessor.java orm/OfbizRepositoryMapping.java orm/jackrabbit/file/JackrabbitHierarchyNode.java

Author: sascharodekamp
Date: Thu Apr 26 14:32:34 2012
New Revision: 1330871

URL: http://svn.apache.org/viewvc?rev=1330871&view=rev
Log:
Remove wrong fields in the hierarchy node which could not processed in a file context.

Modified:
    ofbiz/trunk/framework/jcr/src/org/ofbiz/jcr/access/jackrabbit/JackrabbitRepositoryAccessor.java
    ofbiz/trunk/framework/jcr/src/org/ofbiz/jcr/orm/OfbizRepositoryMapping.java
    ofbiz/trunk/framework/jcr/src/org/ofbiz/jcr/orm/jackrabbit/file/JackrabbitHierarchyNode.java

Modified: ofbiz/trunk/framework/jcr/src/org/ofbiz/jcr/access/jackrabbit/JackrabbitRepositoryAccessor.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/jcr/src/org/ofbiz/jcr/access/jackrabbit/JackrabbitRepositoryAccessor.java?rev=1330871&r1=1330870&r2=1330871&view=diff
==============================================================================
--- ofbiz/trunk/framework/jcr/src/org/ofbiz/jcr/access/jackrabbit/JackrabbitRepositoryAccessor.java (original)
+++ ofbiz/trunk/framework/jcr/src/org/ofbiz/jcr/access/jackrabbit/JackrabbitRepositoryAccessor.java Thu Apr 26 14:32:34 2012
@@ -99,8 +99,6 @@ public class JackrabbitRepositoryAccesso
      */
     @Override
     public void storeContentObject(OfbizRepositoryMapping orm) throws ObjectContentManagerException, ItemExistsException {
-        orm.setPartyThatCreatedTheContent(this.getPartyId());
-
         ContentWriter contentWriter = new ContentWriterJackrabbit(this.ocm);
         contentWriter.storeContentObject(orm);
     }
@@ -114,8 +112,6 @@ public class JackrabbitRepositoryAccesso
      */
     @Override
     public void updateContentObject(OfbizRepositoryMapping orm) throws ObjectContentManagerException {
-        orm.setLastUpdatedParty(this.getPartyId());
-
         ContentWriter contentWriter = new ContentWriterJackrabbit(this.ocm);
         contentWriter.updateContentObject(orm);
     }

Modified: ofbiz/trunk/framework/jcr/src/org/ofbiz/jcr/orm/OfbizRepositoryMapping.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/jcr/src/org/ofbiz/jcr/orm/OfbizRepositoryMapping.java?rev=1330871&r1=1330870&r2=1330871&view=diff
==============================================================================
--- ofbiz/trunk/framework/jcr/src/org/ofbiz/jcr/orm/OfbizRepositoryMapping.java (original)
+++ ofbiz/trunk/framework/jcr/src/org/ofbiz/jcr/orm/OfbizRepositoryMapping.java Thu Apr 26 14:32:34 2012
@@ -28,32 +28,4 @@ public interface OfbizRepositoryMapping 
      * @param version
      */
     public void setVersion(String version);
-
-    /**
-     * Set the party ID of the user which created the content
-     *
-     * @param partyId
-     */
-    public void setPartyThatCreatedTheContent(String partyId);
-
-    /**
-     * Returns the party ID of the user which created the content
-     *
-     * @return
-     */
-    public String getPartyThatCreatedTheContent();
-
-    /**
-     * Set the party ID of the user which modifies the content last
-     *
-     * @param partyId
-     */
-    public void setLastUpdatedParty(String partyId);
-
-    /**
-     * Returns the party ID of the user which modifies the content last
-     *
-     * @return
-     */
-    public String getLastUpdatedParty();
 }
\ No newline at end of file

Modified: ofbiz/trunk/framework/jcr/src/org/ofbiz/jcr/orm/jackrabbit/file/JackrabbitHierarchyNode.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/jcr/src/org/ofbiz/jcr/orm/jackrabbit/file/JackrabbitHierarchyNode.java?rev=1330871&r1=1330870&r2=1330871&view=diff
==============================================================================
--- ofbiz/trunk/framework/jcr/src/org/ofbiz/jcr/orm/jackrabbit/file/JackrabbitHierarchyNode.java (original)
+++ ofbiz/trunk/framework/jcr/src/org/ofbiz/jcr/orm/jackrabbit/file/JackrabbitHierarchyNode.java Thu Apr 26 14:32:34 2012
@@ -14,10 +14,6 @@ public class JackrabbitHierarchyNode imp
     private String version;
     @Field(jcrName = "jcr:created")
     private Calendar creationDate;
-    @Field
-    private String lastUpdatedParty;
-    @Field
-    private String partyThatCreatedTheContent;
 
     public String getPath() {
         return path;
@@ -46,20 +42,4 @@ public class JackrabbitHierarchyNode imp
         this.version = version;
     }
 
-    public void setPartyThatCreatedTheContent(String partyId) {
-        this.partyThatCreatedTheContent = partyId;
-    }
-
-    public String getPartyThatCreatedTheContent() {
-        return this.partyThatCreatedTheContent;
-    }
-
-    public void setLastUpdatedParty(String partyId) {
-        this.lastUpdatedParty = partyId;
-    }
-
-    public String getLastUpdatedParty() {
-        return this.lastUpdatedParty;
-    }
-
 }