Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan D. Brooks2011-08-03 20:50:37 +0000
committerRyan D. Brooks2011-08-03 20:50:37 +0000
commit7440ebb1c2357b91471a90741d0ecb54efbdfd3e (patch)
tree60490b5130870b9ea97b3891f8fd6f96a8a5cf84 /plugins
parent0783b58cce6c815a3bda232b3ff703e33ff74253 (diff)
downloadorg.eclipse.osee-7440ebb1c2357b91471a90741d0ecb54efbdfd3e.tar.gz
org.eclipse.osee-7440ebb1c2357b91471a90741d0ecb54efbdfd3e.tar.xz
org.eclipse.osee-7440ebb1c2357b91471a90741d0ecb54efbdfd3e.zip
refinement: Default newly created user tokens to active instead of inactive
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.osee.framework.core.server/src/org/eclipse/osee/framework/core/server/UserDataStore.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/org.eclipse.osee.framework.core.server/src/org/eclipse/osee/framework/core/server/UserDataStore.java b/plugins/org.eclipse.osee.framework.core.server/src/org/eclipse/osee/framework/core/server/UserDataStore.java
index 757f340ac76..b1b4762e73a 100644
--- a/plugins/org.eclipse.osee.framework.core.server/src/org/eclipse/osee/framework/core/server/UserDataStore.java
+++ b/plugins/org.eclipse.osee.framework.core.server/src/org/eclipse/osee/framework/core/server/UserDataStore.java
@@ -22,7 +22,7 @@ import org.eclipse.osee.framework.logging.OseeLog;
/**
* @author Roberto E. Escobar
*/
-public class UserDataStore {
+public final class UserDataStore {
private static final String LOAD_OSEE_USER =
"select oa.value as user_id from osee_attribute_type oat, osee_attribute oa, osee_txs txs where oat.name = 'User Id' and oat.attr_type_id = oa.attr_type_id and oa.gamma_id = txs.gamma_id and txs.tx_current = 1 and oa.value = ?";
@@ -38,7 +38,7 @@ public class UserDataStore {
chStmt.runPreparedQuery(LOAD_OSEE_USER, userId);
if (chStmt.next()) {
// Only need the userId all other fields will be loaded by the client
- toReturn = TokenFactory.createUserToken(null, "-", "-", chStmt.getString("user_id"), false, false, false);
+ toReturn = TokenFactory.createUserToken(null, "-", "-", chStmt.getString("user_id"), true, false, false);
}
} catch (OseeCoreException ex) {
OseeLog.logf(ServerActivator.class, Level.SEVERE, ex, "Unable to find userId [%s] in OSEE database.", userId);

Back to the top