Revision 6215
Added by ben leinfelder over 13 years ago
src/edu/ucsb/nceas/metacat/dataone/CNodeService.java | ||
---|---|---|
25 | 25 |
|
26 | 26 |
import java.io.InputStream; |
27 | 27 |
import java.util.Date; |
28 |
import java.util.List; |
|
29 | 28 |
|
30 | 29 |
import org.apache.log4j.Logger; |
31 | 30 |
import org.dataone.service.cn.CNAuthorization; |
... | ... | |
43 | 42 |
import org.dataone.service.exceptions.NotImplemented; |
44 | 43 |
import org.dataone.service.exceptions.ServiceFailure; |
45 | 44 |
import org.dataone.service.exceptions.UnsupportedType; |
46 |
import org.dataone.service.types.AccessPolicy; |
|
47 |
import org.dataone.service.types.AccessRule; |
|
48 | 45 |
import org.dataone.service.types.Checksum; |
49 |
import org.dataone.service.types.Event; |
|
50 | 46 |
import org.dataone.service.types.Identifier; |
51 |
import org.dataone.service.types.Log; |
|
52 | 47 |
import org.dataone.service.types.Node; |
53 | 48 |
import org.dataone.service.types.NodeList; |
54 | 49 |
import org.dataone.service.types.NodeReference; |
... | ... | |
225 | 220 |
|
226 | 221 |
return false; |
227 | 222 |
} |
228 |
|
|
229 |
/** |
|
230 |
* Return the object identified by the given object identifier |
|
231 |
* |
|
232 |
* @param session - the Session object containing the credentials for the Subject |
|
233 |
* @param pid - the object identifier for the given object |
|
234 |
* |
|
235 |
* @return inputStream - the input stream of the given object |
|
236 |
* |
|
237 |
* @throws InvalidToken |
|
238 |
* @throws ServiceFailure |
|
239 |
* @throws NotAuthorized |
|
240 |
* @throws InvalidRequest |
|
241 |
* @throws NotImplemented |
|
242 |
*/ |
|
243 |
@Override |
|
244 |
public InputStream get(Session session, Identifier pid) |
|
245 |
throws InvalidRequest, InvalidToken, ServiceFailure, NotAuthorized, |
|
246 |
NotFound, NotImplemented { |
|
247 |
|
|
248 |
return super.get(session, pid); |
|
249 |
} |
|
250 | 223 |
|
251 | 224 |
/** |
252 | 225 |
* Return a checksum of the object given the object identifier and the name |
Also available in: Unified diff
use shared get() method from superclass