public Job put(Job job) { expectNotNull("job", job); AccessControlContext acContext = AccessController.getContext(); Subject caller = Subject.getSubject(acContext); String ownerID = null; if (caller != null) ownerID = identityManager.toOwnerString(caller); job.setOwnerID(ownerID); if (job.getID() == null) JobPersistenceUtil.assignID(job, idGenerator.getID()); Job keep = JobPersistenceUtil.deepCopy(job); if (ownerID != null) keep.ownerSubject = caller; synchronized(jobs) { jobs.put(keep.getID(), keep); } return job; }
ret.setOwnerID(identManager.toOwnerString(s));
job.setOwnerID( identManager.toOwnerString(owner) ); prof.checkpoint("IdentityManager.toOwnerString"); return job;