Show
Ignore:
Timestamp:
06/28/06 14:24:15 (2 years ago)
Author:
cbosdonnat
Message:

Adapted to Funambol 3.0 beta 4 api

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Apogee/trunk/sync/org.nuxeo.sync.jcr.client/build/build.xml

    r45977 r46805  
    2828        <mkdir dir="${prj.output}/bin"/> 
    2929         
    30         <javac classpathref="client.class.path" 
    31             srcdir="${prj.src}" 
    32             destdir="${prj.output}/bin" /> 
    33          
    3430        <ant dir="../org.nuxeo.sync.jcr.extensions/build/"  
    3531            target="localhandler.deliver" inheritall="false"> 
     
    3733            <property name="dest" value="../../org.nuxeo.sync.jcr.client/lib"/> 
    3834        </ant> 
     35         
     36        <javac classpathref="client.class.path" 
     37            srcdir="${prj.src}" 
     38            destdir="${prj.output}/bin" /> 
    3939         
    4040    </target> 
  • Apogee/trunk/sync/org.nuxeo.sync.jcr.client/config/spds/sources/SyncSource.properties

    r45977 r46805  
    1 # 
    2 #Mon May 29 13:06:04 CEST 2006 
    31jcrpassword=password 
    42name=jackrabbit_foo 
     
    86type=text/plain 
    97jcrhandler=org.nuxeo.sync.jcr.extensions.LocalHandler 
    10 last=1148900761212 
    118jcrusername=username 
  • Apogee/trunk/sync/org.nuxeo.sync.jcr.extensions/build/build.xml

    r46160 r46805  
    6868         
    6969        <copy todir="${dest}" file="${prj.output}/LocalHandler.jar" /> 
     70         
     71        <copy todir="${dest}"> 
     72            <fileset dir="${prj}/lib"> 
     73                <include name="*.jar"/> 
     74            </fileset> 
     75        </copy> 
    7076         
    7177        <!-- Cleans the output --> 
  • Apogee/trunk/sync/org.nuxeo.sync.jcr/src/java/org/nuxeo/sync/jcr/source/JCRSyncSource.java

    r46798 r46805  
    358358                    syncItemKey); 
    359359             
    360             syncItem.setState(getSyncItemStateFromId(syncItemKey)); 
     360            // TODO remove 
     361            // syncItem.setState(getSyncItemStateFromId(syncItemKey)); 
    361362            syncItem.setContent(JCRHelper.getNodeContent(__session,  
    362363                    syncItemKey.getKeyAsString())); 
     
    364365         
    365366        return syncItem; 
    366     } 
    367  
    368     /* 
    369      *  (non-Javadoc) 
    370      * @see com.funambol.framework.engine.source.SyncSource#removeSyncItem(com.funambol.framework.engine.SyncItemKey, java.sql.Timestamp) 
    371      */ 
    372     public void removeSyncItem(SyncItemKey syncItemKey, Timestamp time) 
    373             throws SyncSourceException { 
    374  
    375         log.info("[JCRSyncSource] removeSyncItem(" + 
    376                            principal    + 
    377                            " , "        + 
    378                            syncItemKey  + 
    379                            " , "        + 
    380                            time         + 
    381                            ")"); 
    382          
    383367    } 
    384368 
     
    425409 
    426410        try { 
    427              
    428             ; 
    429              
    430411            JCRHelper.addContentAsNode(__session,  
    431412                    syncItem.getKey().getKeyAsString(),  
     
    450431 
    451432        return new SyncItemKey[0]; 
    452     } 
    453  
    454     /* 
    455      *  (non-Javadoc) 
    456      * @see com.funambol.framework.engine.source.SyncSource#getSyncItemStateFromId(com.funambol.framework.engine.SyncItemKey) 
    457      */ 
    458     public char getSyncItemStateFromId(SyncItemKey key) throws SyncSourceException { 
    459          
    460         // TODO 
    461  
    462         return 'N'; 
    463     } 
    464  
    465     /* 
    466      *  (non-Javadoc) 
    467      * @see com.funambol.framework.engine.source.SyncSource#mergeSyncItems(com.funambol.framework.engine.SyncItemKey, com.funambol.framework.engine.SyncItem) 
    468      */ 
    469     public boolean mergeSyncItems(SyncItemKey syncItemKey, SyncItem syncItem) 
    470             throws SyncSourceException { 
    471  
    472         // TODO 
    473         return false; 
    474     } 
    475  
    476     /* 
    477      *  (non-Javadoc) 
    478      * @see com.funambol.framework.engine.source.SyncSource#isSyncItemInFilterClause(com.funambol.framework.engine.SyncItem) 
    479      */ 
    480     public boolean isSyncItemInFilterClause(SyncItem syncItem) 
    481             throws SyncSourceException { 
    482         // All the workspace items are in the clause. 
    483         return true; 
    484     } 
    485  
    486     /* 
    487      *  (non-Javadoc) 
    488      * @see com.funambol.framework.engine.source.SyncSource#isSyncItemInFilterClause(com.funambol.framework.engine.SyncItemKey) 
    489      */ 
    490     public boolean isSyncItemInFilterClause(SyncItemKey syncItemKey) 
    491             throws SyncSourceException { 
    492          
    493         // All the workspace items are in the clause. 
    494         return true; 
    495433    } 
    496434