public class UserDao extends DBConnector
Modifier and Type | Field and Description |
---|---|
static String |
EMAILCOLUMN |
static org.apache.log4j.Logger |
logger |
static String |
NAMECOLUMN |
ARCHIVE_STATUS_TABLE_NAME, CERTIFICATION_STATUS_TABLE_NAME, ISO_BASIC, NSSDCA_STATUS_TABLE_NAME
Constructor and Description |
---|
UserDao() |
Modifier and Type | Method and Description |
---|---|
List<User> |
getProductRoleUsers(String log_identifer,
String tableName)
Product instrument/investigation/node Role Query – Query the product, instrument/investigation/node_reference, role and user tables for a list of users with the instrument/investigation/node role for a product.
|
List<User> |
getUserRole(String email)
User Role Query - Query the user and role tables for a list of roles for a given user.
|
List<User> |
getUsers()
User Query – Query the user table for a list of users.
|
int |
insertUser(User user) |
User |
updateUser(User user) |
getConnection
public static org.apache.log4j.Logger logger
public static final String NAMECOLUMN
public static final String EMAILCOLUMN
public UserDao() throws ClassNotFoundException, SQLException
ClassNotFoundException
SQLException
public List<User> getUsers()
public List<User> getUserRole(String email)
role
- public List<User> getProductRoleUsers(String log_identifer, String tableName)
log_identifer
- type
- public int insertUser(User user)
user
- Copyright © 2019. All rights reserved.