use of org.obiba.shiro.realm.ObibaRealm.Subject in project mica2 by obiba.
the class UserProfileService method getProfile.
public synchronized Subject getProfile(@NotNull String username, boolean cached) {
if (!cached)
return getProfile(username);
ObibaRealm.Subject profile = subjectCache.getIfPresent(username);
if (profile == null) {
profile = getProfile(username);
subjectCache.put(username, profile);
}
return profile;
}
Aggregations