public class User 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 |
---|
User() |
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.
|
String |
getReference() |
String |
getType() |
String |
getUserEmail() |
String |
getUserName() |
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.
|
void |
insertUser(String email,
String name) |
void |
setReference(String reference) |
void |
setType(String type) |
void |
setUserEmail(String userEmail) |
void |
setUserName(String userName) |
void |
updateUser(String email,
String name) |
getConnection
public static org.apache.log4j.Logger logger
public static final String NAMECOLUMN
public static final String EMAILCOLUMN
public User() throws ClassNotFoundException, SQLException
ClassNotFoundException
SQLException
public String getType()
public void setType(String type)
type,
- the type to setpublic String getReference()
public void setReference(String reference)
reference,
- the reference to setpublic String getUserName()
public void setUserName(String userName)
userName
- public String getUserEmail()
public void setUserEmail(String userEmail)
userEmail
- public List<User> getUsers()
public List<User> getUserRole(String email)
role
- public List<User> getProductRoleUsers(String log_identifer, String tableName)
log_identifer
- type
- Copyright © 2010–2018 Planetary Data System. All rights reserved.