Project

General

Profile

« Previous | Next » 

Revision 6099

-remove system metadata guid -> local id mapping (there is no document for system metadata now)
-include system metadata elements when replicating data objects (TODO: transfer all system metadata structures with the docinfo request).
TODO: remove docid+rev from the systemMetadata table definition

View differences:

IdentifierManagerTest.java
207 207
        }
208 208
    }
209 209
    
210
    /**
211
     * test createSystemMetadataMapping and getSystemMetadataId
212
     */
213
    public void testCreateSystemMetadataMapping()
214
    {
215
        ph("testCreateSystemMetadataMapping");
216
        try
217
        {
218
            IdentifierManager im = IdentifierManager.getInstance();
219
            String docid = "test." + new Date().getTime() + ".1";
220
            String guid = "guid:" + docid;
221
            im.createSystemMetadataMapping(guid, docid);
222
            String docid2 = im.getSystemMetadataLocalId(guid);
223
            assertTrue(docid2.equals(docid));
224
        } catch (McdbDocNotFoundException e) {
225
          e.printStackTrace();
226
          fail("createSystemMetadataMapping failed to create proper localId from guid: " + e.getMessage());
227
        }
228
    }
229 210
    
230 211
    /**
231 212
     * test the local id creation

Also available in: Unified diff