throws ActionException {
identity.checkLoggedIn();
log.debug("get translation history for text flow id {}",
action.getTransUnitId());
HLocale hLocale;
try {
hLocale =
localeServiceImpl.validateLocaleByProjectIteration(action
.getWorkspaceId().getLocaleId(), action
.getWorkspaceId().getProjectIterationId()
.getProjectSlug(), action.getWorkspaceId()
.getProjectIterationId().getIterationSlug());
} catch (ZanataServiceException e) {
throw new ActionException(e);
}
HTextFlow hTextFlow =
textFlowDAO.findById(action.getTransUnitId().getId(), false);
HTextFlowTarget hTextFlowTarget =
hTextFlow.getTargets().get(hLocale.getId());
Map<Integer, HTextFlowTargetHistory> history = Maps.newHashMap();
TransHistoryItem latest = null;
if (hTextFlowTarget != null) {
String lastModifiedBy =
nameOrEmptyString(hTextFlowTarget.getLastModifiedBy());