Revision 6175
Added by Chris Jones over 13 years ago
src/edu/ucsb/nceas/metacat/dataone/D1NodeService.java | ||
---|---|---|
114 | 114 |
|
115 | 115 |
return null; |
116 | 116 |
} |
117 |
|
|
118 |
/** |
|
119 |
* Return a checksum of the object given the object identifier and the name |
|
120 |
* of the checksum algorithm (the default being SHA-1) |
|
121 |
* |
|
122 |
* @param session - the Session object containing the credentials for the Subject |
|
123 |
* @param pid - the object identifier for the given object |
|
124 |
* @param algorithm - the name of the checksum algorithm to be used |
|
125 |
* @return |
|
126 |
* @throws InvalidToken |
|
127 |
* @throws ServiceFailure |
|
128 |
* @throws NotAuthorized |
|
129 |
* @throws NotFound |
|
130 |
* @throws InvalidRequest |
|
131 |
* @throws NotImplemented |
|
132 |
*/ |
|
133 |
/* TODO: CNRead and MNRead have different getChecksum() signatures. Reconcile this first. |
|
134 |
public Checksum getChecksum(Session session, Identifier pid, String algorithm) |
|
135 |
throws InvalidToken, ServiceFailure, NotAuthorized, NotFound, |
|
136 |
InvalidRequest, NotImplemented { |
|
137 |
|
|
138 |
return null; |
|
139 |
|
|
140 |
} |
|
141 |
*/ |
|
142 | 117 |
|
143 | 118 |
/* End methods common to CNRead and MNRead APIs */ |
144 | 119 |
|
Also available in: Unified diff
getChecksum() is intentionally different on the CN vs MN, so I'm removing it as a common method.