[Ils-source] r1440 - in branches/1.6: src/com/resolutions/ils webapp/WEB-INF/lib
scribe at crosswire.org
scribe at crosswire.org
Mon Apr 11 15:23:30 MST 2016
Author: scribe
Date: 2016-04-11 15:23:30 -0700 (Mon, 11 Apr 2016)
New Revision: 1440
Modified:
branches/1.6/src/com/resolutions/ils/ILSSession.java
branches/1.6/webapp/WEB-INF/lib/ils.jar
Log:
added caching of current user profile in ilssession
Modified: branches/1.6/src/com/resolutions/ils/ILSSession.java
===================================================================
--- branches/1.6/src/com/resolutions/ils/ILSSession.java 2016-04-08 06:11:35 UTC (rev 1439)
+++ branches/1.6/src/com/resolutions/ils/ILSSession.java 2016-04-11 22:23:30 UTC (rev 1440)
@@ -50,7 +50,12 @@
return Company.getCompany(this);
}
+ public void setCachedCurrentUserProfile(UserProfile val) {
+ cachedCurrentUserProfile = val;
+ }
+ private UserProfile cachedCurrentUserProfile = null;
public UserProfile getCurrentUserProfile() {
+ if (cachedCurrentUserProfile != null && currentUserID == cachedCurrentUserProfile.getUserProfileID()) return cachedCurrentUserProfile;
return (currentUserID == -1) ? new UserProfile() : UserProfile.getUserProfile(this, currentUserID);
}
Modified: branches/1.6/webapp/WEB-INF/lib/ils.jar
===================================================================
(Binary files differ)
More information about the Ils-source
mailing list