This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1208 from zanata/ZNTA-1174-fix-connect-OpenID
fix(ZNTA-1174): add OpenID credentials, transactions not committed
- Loading branch information
Showing
99 changed files
with
595 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,8 +30,12 @@ | |
import javax.annotation.Nullable; | ||
import javax.enterprise.context.SessionScoped; | ||
import javax.annotation.PostConstruct; | ||
import javax.enterprise.inject.Model; | ||
import javax.faces.bean.ViewScoped; | ||
import javax.inject.Inject; | ||
import javax.inject.Named; | ||
|
||
import org.apache.deltaspike.jpa.api.transaction.Transactional; | ||
import org.zanata.dao.AccountDAO; | ||
import org.zanata.model.HAccount; | ||
import org.zanata.security.AuthenticationManager; | ||
|
@@ -50,7 +54,9 @@ | |
* href="mailto:[email protected]">[email protected]</a> | ||
*/ | ||
@Named("accountMergeAction") | ||
@javax.faces.bean.ViewScoped | ||
@ViewScoped | ||
@Model | ||
@Transactional | ||
public class AccountMergeAction implements Serializable { | ||
|
||
@SessionScoped | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,9 +23,12 @@ | |
import java.io.Serializable; | ||
import java.util.Collections; | ||
import java.util.List; | ||
import javax.enterprise.inject.Model; | ||
import javax.faces.bean.ViewScoped; | ||
import javax.inject.Inject; | ||
import javax.inject.Named; | ||
|
||
import org.apache.deltaspike.jpa.api.transaction.Transactional; | ||
import org.zanata.model.Activity; | ||
import org.zanata.model.HAccount; | ||
import org.zanata.security.annotations.Authenticated; | ||
|
@@ -36,9 +39,10 @@ | |
* @author Alex Eng <a href="mailto:[email protected]">[email protected]</a> | ||
*/ | ||
@Named("activityAction") | ||
@javax.faces.bean.ViewScoped | ||
|
||
@ViewScoped | ||
@CheckLoggedIn | ||
@Model | ||
@Transactional | ||
public class ActivityAction implements Serializable { | ||
private static final long serialVersionUID = 1L; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,8 +21,13 @@ | |
package org.zanata.action; | ||
|
||
import org.apache.commons.lang.StringUtils; | ||
|
||
import javax.enterprise.context.Dependent; | ||
import javax.enterprise.inject.Model; | ||
import javax.inject.Inject; | ||
import javax.inject.Named; | ||
|
||
import org.apache.deltaspike.jpa.api.transaction.Transactional; | ||
import org.zanata.ApplicationConfiguration; | ||
|
||
/** | ||
|
@@ -34,7 +39,9 @@ | |
* href="mailto:[email protected]">[email protected]</a> | ||
*/ | ||
@Named("applicationConfigurationAction") | ||
@javax.enterprise.context.Dependent | ||
@Dependent | ||
@Model | ||
@Transactional | ||
public class ApplicationConfigurationAction { | ||
@Inject | ||
private ApplicationConfiguration applicationConfiguration; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,9 +24,12 @@ | |
import java.io.Serializable; | ||
|
||
import javax.annotation.PostConstruct; | ||
import javax.enterprise.inject.Model; | ||
import javax.faces.bean.ViewScoped; | ||
import javax.inject.Inject; | ||
import javax.inject.Named; | ||
|
||
import org.apache.deltaspike.jpa.api.transaction.Transactional; | ||
import org.zanata.security.annotations.Authenticated; | ||
import org.zanata.security.annotations.CheckLoggedIn; | ||
import org.zanata.security.annotations.CheckPermission; | ||
|
@@ -54,9 +57,10 @@ | |
* @author Alex Eng <a href="mailto:[email protected]">[email protected]</a> | ||
*/ | ||
@Named("contactAdminAction") | ||
@javax.faces.bean.ViewScoped | ||
@ViewScoped | ||
@Model | ||
@Transactional | ||
@Slf4j | ||
|
||
public class ContactAdminAction implements Serializable { | ||
|
||
@Inject | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,8 @@ | |
import lombok.Setter; | ||
|
||
import lombok.extern.slf4j.Slf4j; | ||
|
||
import javax.enterprise.context.Dependent; | ||
import javax.inject.Inject; | ||
import javax.inject.Named; | ||
import org.zanata.async.AsyncTaskHandle; | ||
|
@@ -50,8 +52,7 @@ | |
* href="mailto:[email protected]">[email protected]</a> | ||
*/ | ||
|
||
@Named("copyTransManager") | ||
@javax.enterprise.context.Dependent | ||
@Dependent | ||
@Slf4j | ||
// TODO This class should be merged with the copy trans service (?) | ||
public class CopyTransManager implements Serializable { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,10 +22,14 @@ | |
|
||
import java.io.Serializable; | ||
import java.util.List; | ||
import javax.enterprise.inject.Model; | ||
import javax.faces.bean.ViewScoped; | ||
import javax.persistence.EntityManager; | ||
|
||
import javax.inject.Inject; | ||
import javax.inject.Named; | ||
|
||
import org.apache.deltaspike.jpa.api.transaction.Transactional; | ||
import org.zanata.i18n.Messages; | ||
import org.zanata.model.HCopyTransOptions; | ||
import org.zanata.service.impl.CopyTransOptionFactory; | ||
|
@@ -45,8 +49,9 @@ | |
* href="mailto:[email protected]">[email protected]</a> | ||
*/ | ||
@Named("copyTransOptionsModel") | ||
@javax.faces.bean.ViewScoped | ||
|
||
@ViewScoped | ||
@Model | ||
@Transactional | ||
public class CopyTransOptionsModel implements Serializable { | ||
private static final long serialVersionUID = 1L; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
import lombok.Getter; | ||
import lombok.extern.slf4j.Slf4j; | ||
|
||
import javax.enterprise.context.Dependent; | ||
import javax.inject.Inject; | ||
import javax.inject.Named; | ||
import org.zanata.async.AsyncTaskHandleManager; | ||
|
@@ -20,8 +21,7 @@ | |
* @author Alex Eng <a href="mailto:[email protected]">[email protected]</a> | ||
*/ | ||
|
||
@Named("copyVersionManager") | ||
@javax.enterprise.context.Dependent | ||
@Dependent | ||
@Slf4j | ||
public class CopyVersionManager implements Serializable { | ||
private static final long serialVersionUID = 3414395834255069870L; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.