source: trunk/greenstone3-extensions/gs3build/src/org/greenstone/gsdl3/gs3build/doctypes/DocumentIDFactory.java@ 12188

Last change on this file since 12188 was 12188, checked in by kjdon, 18 years ago

Initial revision

  • Property svn:keywords set to Author Date Id Revision
File size: 517 bytes
Line 
1package org.greenstone.gsdl3.gs3build.doctypes;
2
3import org.greenstone.gsdl3.gs3build.CollectionManager;
4
5public class DocumentIDFactory implements DocumentIDFactoryInterface
6{ private CollectionManager collection;
7
8 public DocumentIDFactory(CollectionManager collection)
9 { this.collection = collection;
10 }
11
12 public DocumentID getNewDocumentID(DocumentInterface document)
13 { DocumentID id;
14
15 String idString = this.collection.getNextDocumentID();
16 id = new DocumentID(idString);
17
18 return id;
19 }
20}
Note: See TracBrowser for help on using the repository browser.