public class UsersProfileDao extends BaseDao
Modifier and Type | Class and Description |
---|---|
private class |
UsersProfileDao.UsersProfilesRowMapper |
Modifier and Type | Field and Description |
---|---|
private static java.util.List<UsersProfileVO> |
currentProfileList |
org.apache.commons.logging.Log |
LOG |
private static java.lang.String |
PROFILES_DELETE |
private static java.lang.String |
PROFILES_INSERT |
private static java.lang.String |
PROFILES_SELECT |
private static java.lang.String |
PROFILES_UPDATE |
private static java.lang.String |
SELECT_DATA_POINT_PERMISSIONS |
private static java.lang.String |
SELECT_DATA_SOURCE_PERMISSIONS |
private static java.lang.String |
SELECT_VIEW_PERMISSIONS |
private static java.lang.String |
SELECT_WATCHLIST_PERMISSIONS |
private UserDao |
userDao |
private static java.lang.String |
USERS_PROFILES_SELECT |
private static java.lang.String |
USERS_PROFILES_USERS_SELECT |
private ViewDao |
viewDao |
private WatchListDao |
watchlistDao |
Constructor and Description |
---|
UsersProfileDao() |
boolToChar, charToBool, deleteInChunks, doInsert, doInsert, doInsert, doInsertLong, doInsertLong, doInsertLong, generateUniqueXid, getGeneratedKeyName, getPreparedStatementCreator, isXidUnique
batchUpdate, createDelimitedList, createDelimitedList, createDelimitedList, createIntValuePairs, createKeyValuePairs, dbEncodeSearchString, getInt, getTransactionManager, getTransactionTemplate, now, query, query, query, query, query, query, queryForList, queryForList, queryForObject, queryForObject, queryForObject, setInt
public org.apache.commons.logging.Log LOG
private static java.util.List<UsersProfileVO> currentProfileList
private static final java.lang.String PROFILES_SELECT
private static final java.lang.String PROFILES_INSERT
private static final java.lang.String PROFILES_UPDATE
private static final java.lang.String PROFILES_DELETE
private WatchListDao watchlistDao
private ViewDao viewDao
private UserDao userDao
private static final java.lang.String SELECT_DATA_SOURCE_PERMISSIONS
private static final java.lang.String SELECT_DATA_POINT_PERMISSIONS
private static final java.lang.String SELECT_WATCHLIST_PERMISSIONS
private static final java.lang.String SELECT_VIEW_PERMISSIONS
private static final java.lang.String USERS_PROFILES_SELECT
private static final java.lang.String USERS_PROFILES_USERS_SELECT
public java.util.List<UsersProfileVO> getUsersProfiles()
public UsersProfileVO getUserProfileByName(java.lang.String name)
public UsersProfileVO getUserProfileById(int id)
public UsersProfileVO getUserProfileByXid(java.lang.String xid)
public void saveUsersProfile(UsersProfileVO profile) throws DAOException
DAOException
private boolean profileExistsWithThatName(UsersProfileVO profile)
public void saveUsersProfileWithoutNameConstraint(UsersProfileVO profile) throws DAOException
DAOException
private void updateProfile(UsersProfileVO profile)
public java.util.List<java.lang.Integer> getUserIdsFromProfile(int profileId)
public void updateUsersProfile(UsersProfileVO profile)
private void insertProfile(UsersProfileVO profile)
private void populateUserProfilePermissions(UsersProfileVO profile)
private void populateUsers(UsersProfileVO profile)
private void populateWatchlists(UsersProfileVO profile)
private void populateDatapoints(UsersProfileVO profile)
private void populateDataSources(UsersProfileVO profile)
private void populateViews(UsersProfileVO profile)
private void populateUserProfilePermissions(java.util.List<UsersProfileVO> profiles)
private void saveRelationalData(UsersProfileVO usersProfile)
public UsersProfileVO getUserProfileByUserId(int userid)
public void grantUserAdminProfile(User user)
public void resetUserProfile(User user)
public void setWatchlistDao(WatchListDao dao)
public void setViewDao(ViewDao dao)
public boolean userProfileExists(java.lang.String xid)
public void deleteUserProfile(int usersProfileId)