808182838485868788899091
try { LoginContext login = ApplicationCallbackHandler.login("audituser1", "user1"); try { AuditHome home = getAuditEJB(); home.create(id); } finally { if (login != null) login.logout();
102103104105106107108109110111112113
try { LoginContext login = ApplicationCallbackHandler.login("audituser2", "user2"); try { AuditHome home = getAuditEJB(); Audit audit = home.findByPrimaryKey(id); audit.setStringValue(stringValue); } finally { if (login != null)
125126127128129130131132133134135136
try { LoginContext login = ApplicationCallbackHandler.login("old-client-login", "audituser2", "user2"); try { AuditHome home = getAuditEJB(); Audit audit = home.findByPrimaryKey(id); audit.setStringValue(stringValue); } finally { if (login != null)
148149150151152153154155156157158159
try { LoginContext login = ApplicationCallbackHandler.login("audituser1", "user1"); try { AuditHome home = getAuditChangedNamesEJB(); home.create(id); } finally { if (login != null) login.logout();
170171172173174175176177178179180181
try { LoginContext login = ApplicationCallbackHandler.login("audituser2", "user2"); try { AuditHome home = getAuditChangedNamesEJB(); Audit audit = home.findByPrimaryKey(id); audit.setStringValue(stringValue); } finally { if (login != null)