Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Fix some compilation errors after migration
Browse files Browse the repository at this point in the history
  • Loading branch information
seanf committed Jul 9, 2015
1 parent 17ae8ea commit 176dedf
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 73 deletions.
Expand Up @@ -182,7 +182,7 @@ public static void persistApplicationConfig(String key,

Event<ConfigurationChanged> event =
ServiceLocator.instance().getInstance(Event.class);
event.fireAfterSuccess(new ConfigurationChanged(key));
event.fire(new ConfigurationChanged(key));
}

private boolean isConfigKeyValid(String configKey) {
Expand Down

This file was deleted.

Expand Up @@ -50,9 +50,8 @@
import static org.jboss.seam.ScopeType.SESSION;
import static org.jboss.seam.annotations.Install.APPLICATION;

@Named("org.jboss.seam.security.identity")
@Named("zanataIdentity")
@javax.enterprise.context.SessionScoped
@Install(precedence = APPLICATION)
@BypassInterceptors
/* TODO [CDI] Remove @PostConstruct from startup method and make it accept (@Observes @Initialized ServletContext context) */
public class ZanataIdentity extends Identity {
Expand Down
Expand Up @@ -110,8 +110,7 @@ public class DocumentServiceImpl implements DocumentService {
@Inject
private ApplicationConfiguration applicationConfiguration;

@Inject(value = JpaIdentityStore.AUTHENTICATED_USER, scope = ScopeType.SESSION,
required = false)
@Inject
private HAccount authenticatedAccount;

@Inject
Expand Down Expand Up @@ -204,7 +203,7 @@ public HDocument saveDocument(String projectSlug, String iterationSlug,

long actorId = authenticatedAccount.getPerson().getId();
if (changed) {
documentUploadedEvent.fireAfterSuccess(new DocumentUploadedEvent(
documentUploadedEvent.fire(new DocumentUploadedEvent(
actorId, document.getId(), true, hLocale.getLocaleId()));
clearStatsCacheForUpdatedDocument(document);
}
Expand Down
Expand Up @@ -129,8 +129,7 @@ public class TranslationServiceImpl implements TranslationService {
@Inject
private ValidationService validationServiceImpl;

@Inject(value = JpaIdentityStore.AUTHENTICATED_USER, scope = ScopeType.SESSION,
required = false)
@Inject
private HAccount authenticatedAccount;

@Inject
Expand Down Expand Up @@ -321,7 +320,7 @@ private void signalPostTranslateEvent(Long actorId,
// new DocumentId(document.getId(), document.getDocId()), hasError,
// hTextFlowTarget.getLastChanged(),
// hTextFlowTarget.getLastModifiedBy().getAccount().getUsername());
textFlowTargetStateEvent.fireAfterSuccess(
textFlowTargetStateEvent.fire(
new TextFlowTargetStateEvent(actorId, versionId,
documentId, textFlow.getId(), hTextFlowTarget
.getLocale().getLocaleId(), hTextFlowTarget
Expand Down
Expand Up @@ -51,9 +51,6 @@
*/
@org.apache.deltaspike.core.api.scope.ViewAccessScoped /* TODO [CDI] check this: migrated from ScopeType.CONVERSATION */
@Named("jsfMessages")
@Install(precedence = APPLICATION,
classDependencies = "javax.faces.context.FacesContext")

@BypassInterceptors
public class FacesMessages {

Expand Down
Expand Up @@ -175,7 +175,7 @@ private void prepareTransUnitUpdatedEvent(int previousVersionNum,
"unknown", -1),
TransUnitUpdated.UpdateType.NonEditorSave);
}
textFlowTargetUpdatedEvent.fireAfterSuccess(
textFlowTargetUpdatedEvent.fire(
new TextFlowTargetUpdatedEvent(workspaceOptional.get(),
target.getId(), updated));
}
Expand Down
Expand Up @@ -33,6 +33,9 @@
import org.zanata.webtrans.shared.model.ValidationAction.*;
import org.zanata.webtrans.shared.rpc.*;

import javax.inject.Inject;
import javax.inject.Named;

/**
*
* @author Alex Eng <a href="mailto:aeng@redhat.com">aeng@redhat.com</a>
Expand Down
Expand Up @@ -43,6 +43,8 @@

import javax.enterprise.event.Observes;
import javax.enterprise.event.TransactionPhase;
import javax.inject.Inject;
import javax.inject.Named;

/**
* @author Alex Eng <a href="mailto:aeng@redhat.com">aeng@redhat.com</a>
Expand Down

0 comments on commit 176dedf

Please sign in to comment.