TSK-59 implement comments from holger - toLowerCase only for setters not for getters and change useContainerManagedTransactions to useManagedTransactions
This commit is contained in:
parent
f3f46e1ed5
commit
37bb8535a3
|
@ -34,14 +34,14 @@ public class TaskanaEngineConfiguration {
|
|||
public TaskanaEngineConfiguration() {
|
||||
}
|
||||
|
||||
public TaskanaEngineConfiguration(DataSource dataSource, boolean useContainerManagedTransactions)
|
||||
public TaskanaEngineConfiguration(DataSource dataSource, boolean useManagedTransactions)
|
||||
throws SQLException {
|
||||
this(dataSource, useContainerManagedTransactions, true);
|
||||
this(dataSource, useManagedTransactions, true);
|
||||
}
|
||||
|
||||
public TaskanaEngineConfiguration(DataSource dataSource, boolean useContainerManagedTransactions,
|
||||
public TaskanaEngineConfiguration(DataSource dataSource, boolean useManagedTransactions,
|
||||
boolean securityEnabled) throws SQLException {
|
||||
this.useManagedTransactions = useContainerManagedTransactions;
|
||||
this.useManagedTransactions = useManagedTransactions;
|
||||
|
||||
if (dataSource != null) {
|
||||
this.dataSource = dataSource;
|
||||
|
|
|
@ -242,10 +242,10 @@ public class TaskanaEngineImpl implements TaskanaEngine {
|
|||
/**
|
||||
* creates the MyBatis transaction factory.
|
||||
*
|
||||
* @param useContainerManagedTransactions
|
||||
* @param useManagedTransactions
|
||||
*/
|
||||
private void createTransactionFactory(boolean useContainerManagedTransactions) {
|
||||
if (useContainerManagedTransactions) {
|
||||
private void createTransactionFactory(boolean useManagedTransactions) {
|
||||
if (useManagedTransactions) {
|
||||
this.transactionFactory = new ManagedTransactionFactory();
|
||||
} else {
|
||||
this.transactionFactory = new JdbcTransactionFactory();
|
||||
|
|
|
@ -41,11 +41,7 @@ public class WorkbasketAccessItem {
|
|||
}
|
||||
|
||||
public String getAccessId() {
|
||||
if (TaskanaEngineConfiguration.shouldUseLowerCaseForAccessIds()) {
|
||||
return accessId != null ? accessId.toLowerCase() : null;
|
||||
} else {
|
||||
return accessId;
|
||||
}
|
||||
return accessId;
|
||||
}
|
||||
|
||||
public void setAccessId(String accessId) {
|
||||
|
|
Loading…
Reference in New Issue