Revision 6518
Added by ben leinfelder over 12 years ago
MNodeService.java | ||
---|---|---|
267 | 267 |
} catch (McdbDocNotFoundException e) { |
268 | 268 |
throw new InvalidRequest("1202", "The object with the provided " + "identifier was not found."); |
269 | 269 |
} |
270 |
|
|
271 |
// set the submitter to match the certificate |
|
272 |
sysmeta.setSubmitter(subject); |
|
270 | 273 |
|
271 | 274 |
// does the subject have WRITE ( == update) priveleges on the pid? |
272 | 275 |
allowed = isAuthorized(session, pid, Permission.WRITE); |
... | ... | |
335 | 338 |
public Identifier create(Session session, Identifier pid, InputStream object, SystemMetadata sysmeta) throws InvalidToken, ServiceFailure, NotAuthorized, |
336 | 339 |
IdentifierNotUnique, UnsupportedType, InsufficientResources, InvalidSystemMetadata, NotImplemented, InvalidRequest { |
337 | 340 |
|
341 |
// set the submitter to match the certificate |
|
342 |
sysmeta.setSubmitter(session.getSubject()); |
|
343 |
// call the shared impl |
|
338 | 344 |
return super.create(session, pid, object, sysmeta); |
339 | 345 |
} |
340 | 346 |
|
Also available in: Unified diff
set sysmeta submitter based on the subject given in the certificate