Esempio n. 1
0
 @Override
 public String createNewChatRoom(String user) throws OKMException {
   updateSessionManager();
   try {
     String actualUser = getThreadLocalRequest().getRemoteUser();
     return manager.createNewChatRoom(actualUser, user);
   } catch (PrincipalAdapterException e) {
     log.error(e.getMessage(), e);
     throw new OKMException(
         ErrorCode.get(ErrorCode.ORIGIN_OKMChatService, ErrorCode.CAUSE_PrincipalAdapter),
         e.getMessage());
   }
 }