@Override public String toString() { return String.valueOf(getValue()); } /**
@Override public UserInfo getUserInfo(UserID inId, boolean inUseCache) throws ConnectionException { RpcClient.UserInfoRequest request = RpcClient.UserInfoRequest.newBuilder().setSessionId(sessionId.getValue()).setId(inId.getValue()).build(); try { RpcClient.UserInfoResponse response = clientService.getUserInfo(controller, request); String userData = response.getUserInfo().getUserdata(); Properties props = new Properties(); if(userData != null) { props = Util.propertiesFromString(userData); } UserInfo userInfo = new UserInfo(response.getUserInfo().getName(), new UserID(response.getUserInfo().getId()), response.getUserInfo().getActive(), response.getUserInfo().getSuperuser(), props); return userInfo; } catch (ServiceException e) { throw new ConnectionException(e, Messages.ERROR_REMOTE_EXECUTION); } } /* (non-Javadoc)
/** * Constructor. * * @param report * execution report to adapt */ public ExecutionReportAdapter(ExecutionReport report) { mReport = report; /* * Use viewer id since the viewer is the originator, the one the * position is associated with. */ UserID viewer = mReport.getViewerID(); mKey = PositionKeyFactory.createKey(report.getInstrument(), mReport .getAccount(), viewer == null ? null : viewer.toString()); }