01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/citations/tags/sakai_2-4-1/citations-osid/web2bridge/src/java/edu/indiana/lib/osid/component/id/IdManager.java $
03: * $Id: IdManager.java 22658 2007-03-15 13:24:38Z jimeng@umich.edu $
04: ***********************************************************************************
05: *
06: * Copyright (c) 2003, 2004, 2005, 2006 The Sakai Foundation.
07: *
08: * Licensed under the Educational Community License, Version 1.0 (the "License");
09: * you may not use this file except in compliance with the License.
10: * You may obtain a copy of the License at
11: *
12: * http://www.opensource.org/licenses/ecl1.php
13: *
14: * Unless required by applicable law or agreed to in writing, software
15: * distributed under the License is distributed on an "AS IS" BASIS,
16: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17: * See the License for the specific language governing permissions and
18: * limitations under the License.
19: *
20: **********************************************************************************/package edu.indiana.lib.osid.component.id;
21:
22: /**
23: *
24: * @inheritDoc
25: *
26: */
27: public class IdManager implements org.osid.id.IdManager {
28: org.osid.OsidContext context = null;
29:
30: java.util.Properties configuration = null;
31:
32: public org.osid.OsidContext getOsidContext()
33: throws org.osid.id.IdException {
34: return null;
35: }
36:
37: public void assignOsidContext(org.osid.OsidContext context)
38: throws org.osid.id.IdException {
39: // Nothing to see here folks
40: }
41:
42: public void assignConfiguration(java.util.Properties configuration)
43: throws org.osid.id.IdException {
44: // Nothing to see here folks
45: }
46:
47: private void log(String entry) throws org.osid.id.IdException {
48: System.out.println(entry);
49: }
50:
51: public org.osid.shared.Id createId() throws org.osid.id.IdException {
52: try {
53: return new Id();
54: } catch (org.osid.shared.SharedException sex) {
55: throw new org.osid.id.IdException(sex.getMessage());
56: }
57: }
58:
59: public org.osid.shared.Id getId(String idString)
60: throws org.osid.id.IdException {
61: if (idString == null) {
62: throw new org.osid.id.IdException(
63: org.osid.id.IdException.NULL_ARGUMENT);
64: }
65: try {
66: return new Id(idString);
67: } catch (org.osid.shared.SharedException sex) {
68: throw new org.osid.id.IdException(sex.getMessage());
69: }
70: }
71:
72: public void osidVersion_2_0() throws org.osid.id.IdException {
73: }
74: }
75:
76: /**************************************************************************************************************************************************************************************************************************************************************
77: * $Footer: $
78: *************************************************************************************************************************************************************************************************************************************************************/
|