if (!(((User) vboToSessionMap.get(key).getAttribute("user"))
.getUserId() == (((User) session.getAttribute("user")))
.getUserId())) {
Logger.debug("another user has the lock");
HttpSession otherSession = vboToSessionMap.get(key);
User otherUser = (User) otherSession.getAttribute("user");
throw new ContentLockedException(
"The requested content is locked to user "
+ otherUser.getUserName()
+ " ("
+ (((otherUser.getFirstName() == null) || (otherUser
.getFirstName().trim().length() == 0)) ? "NoFirstName"
: otherUser.getFirstName())
+ " "
+ (((otherUser.getLastName() == null) || (otherUser
.getLastName().trim().length() == 0)) ? "NoLastName"
: otherUser.getLastName())
+ " ... "
+ (((otherUser.getEmail() == null) || (otherUser
.getEmail().trim().length() == 0)) ? "NoEmail"
: otherUser.getEmail())
+ "/"
+ (((otherUser.getPhone() == null) || (otherUser
.getPhone().trim().length() == 0)) ? "NoPhone"
: otherUser.getPhone()) + ")");
} else {
Logger.debug("user already has lock");
}
} else {
Logger.debug("adding lock");