EnterWorkspace event = new EnterWorkspace(editorClientId, person);
workspace.publish(event);
HLocale locale =
localeServiceImpl.getByLocaleId(workspaceId.getLocaleId());
HProject project =
projectDAO.getBySlug(workspaceId.getProjectIterationId()
.getProjectSlug());
HProjectIteration projectIteration =
projectIterationDAO.getBySlug(workspaceId
.getProjectIterationId().getProjectSlug(), workspaceId
.getProjectIterationId().getIterationSlug());
boolean isProjectActive =
isProjectIterationActive(project.getStatus(),
projectIteration.getStatus());
boolean hasWriteAccess = hasWritePermission(project, locale);
boolean hasGlossaryUpdateAccess = hasGlossaryUpdatePermission();
boolean requireReview = projectIteration.getRequireTranslationReview();
boolean hasReviewAccess = hasReviewerPermission(locale, project);