|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IAdminUserDAO
AdminUserDAO Interface
| Method Summary | |
|---|---|
int |
checkAccessCodeAlreadyInUse(java.lang.String strAccessCode)
Checks the availibility of an access code |
int |
checkEmailAlreadyInUse(java.lang.String strEmail)
Checks the availibility of an email |
boolean |
checkRoleAttributed(java.lang.String strRoleKey)
Checks wether the role is in use or not |
int |
countUserPasswordHistoryFromDate(java.sql.Timestamp minDate,
int nUserId)
Get the number of password change done by a user since the given date. |
void |
delete(int nUserId)
Delete an user |
void |
deleteAllDelegatedRightsForUser(int nUserId,
int nUserLevel)
Deletes rights delegated by user ie rights with level < userlevel |
void |
deleteAllOwnRightsForUser(int nUserId,
int nUserLevel)
Deletes all rights owned by user ie rights with level >= userlevel |
void |
deleteAllRightsForUser(int nUserId)
Delete all rights owned by an user |
void |
deleteAllRolesForUser(int nUserId)
Remove all rights from an user |
void |
deleteRightForUser(int nUserId,
java.lang.String strIdRight)
Remove a right for an user |
void |
deleteRoleForUser(int nUserId,
java.lang.String strRoleKey)
Remove role for an user |
java.util.List<java.lang.Integer> |
findAllExpiredUserId()
Get the list of id of user with the expired status. |
java.util.List<java.lang.Integer> |
getIdUsersToSendFirstAlert(java.sql.Timestamp alertMaxDate)
Get the list of id of users that need to receive their first alert |
java.util.List<java.lang.Integer> |
getIdUsersToSendOtherAlert(java.sql.Timestamp alertMaxDate,
java.sql.Timestamp timeBetweenAlerts,
int maxNumberAlerts)
Get the list of id of users that need to receive their first alert |
java.util.List<java.lang.Integer> |
getIdUsersWithExpiredLifeTimeList(java.sql.Timestamp currentTimestamp)
Get the list of id of users that have an expired time life but not the expired status |
boolean |
hasRight(int nUserId,
java.lang.String strIdRight)
Check if the user has the given right |
boolean |
hasRole(int nUserId,
java.lang.String strRoleKey)
Check if the user has the role |
void |
insert(AdminUser user)
Insert a new record in the table. |
void |
insert(LuteceDefaultAdminUser user)
Insert a new record in the table. |
void |
insertNewPasswordInHistory(java.lang.String strPassword,
int nUserId)
Log a password change in the password history |
void |
insertRightsListForUser(int nUserId,
java.lang.String strRightId)
Add a right to an user |
void |
insertRolesListForUser(int nUserId,
java.lang.String strRoleKey)
Gives a role to an user |
AdminUser |
load(int nUserId)
Load an AdminUser |
LuteceDefaultAdminUser |
loadDefaultAdminUser(int nUserId)
Load a default AdminUser |
int |
newPrimaryKey()
Generates a new primary key |
void |
removeAllPasswordHistoryForUser(int nUserId)
Remove every password saved in the password history for a user. |
java.util.Map<java.lang.String,java.lang.Boolean> |
selectAnonymizationStatusUserStaticField()
Get a map of anonymization status of a user field. |
java.util.Map<java.lang.String,Right> |
selectRightsListForUser(int nUserId)
Get the right list associated to a given user id |
java.util.Map<java.lang.String,AdminRole> |
selectRolesListForUser(int nUserId)
Get the role list associated to a given user id |
AdminUser |
selectUserByAccessCode(java.lang.String strUserAccessCode)
Get an user by its access code (login) |
java.util.Collection<AdminUser> |
selectUserList()
Gets the collection of all AdminUsers |
java.util.List<java.lang.String> |
selectUserPasswordHistory(int nUserID)
Gets the history of password of the given user |
java.util.Collection<AdminUser> |
selectUsersByFilter(AdminUserFilter auFilter)
Select users by filter |
java.util.Collection<AdminUser> |
selectUsersByLevel(int nIdLevel)
Select all user that own a given level |
java.util.Collection<AdminUser> |
selectUsersByRight(java.lang.String strIdRight)
Get all users having a given right |
java.util.Collection<AdminUser> |
selectUsersByRole(java.lang.String strRoleKey)
Gets a collection of AdminUser that share a given role |
void |
store(AdminUser user)
Update AdminUser data |
void |
store(LuteceDefaultAdminUser user)
Update AdminUser data |
void |
storeUsersRole(java.lang.String strOldRoleKey,
AdminRole role)
Update role key if role key name has change |
void |
updateAnonymizationStatusUserStaticField(java.lang.String strFieldName,
boolean bAnonymizeFiled)
Update the anonymization status of a user field. |
void |
updateNbAlert(java.util.List<java.lang.Integer> listIdUser)
Increment the number of alert send to users by 1 |
void |
updateUserExpirationDate(int nIdUser,
java.sql.Timestamp newExpirationDate)
Update the admin user expiration date with the new values. |
void |
updateUserStatus(java.util.List<java.lang.Integer> listIdUser,
int nNewStatus)
Update status of a list of user accounts |
| Method Detail |
|---|
int checkAccessCodeAlreadyInUse(java.lang.String strAccessCode)
strAccessCode - The access code
int checkEmailAlreadyInUse(java.lang.String strEmail)
strEmail - The email
boolean checkRoleAttributed(java.lang.String strRoleKey)
strRoleKey - the role key to check
void delete(int nUserId)
nUserId - the user id
void deleteAllDelegatedRightsForUser(int nUserId,
int nUserLevel)
nUserId - the user idnUserLevel - the user level
void deleteAllOwnRightsForUser(int nUserId,
int nUserLevel)
nUserId - the user idnUserLevel - the user levelvoid deleteAllRightsForUser(int nUserId)
nUserId - the user idvoid deleteAllRolesForUser(int nUserId)
nUserId - the user idvoid insert(AdminUser user)
user - The AdminUservoid insert(LuteceDefaultAdminUser user)
user - The AdminUser
void insertRightsListForUser(int nUserId,
java.lang.String strRightId)
nUserId - the user idstrRightId - the right id
void insertRolesListForUser(int nUserId,
java.lang.String strRoleKey)
nUserId - the user idstrRoleKey - the key roleAdminUser load(int nUserId)
nUserId - the user id
LuteceDefaultAdminUser loadDefaultAdminUser(int nUserId)
nUserId - the user id
int newPrimaryKey()
java.util.Map<java.lang.String,Right> selectRightsListForUser(int nUserId)
nUserId - the id of the user to retrieve rights
java.util.Map<java.lang.String,AdminRole> selectRolesListForUser(int nUserId)
nUserId - the id of the user to retrieve roles
AdminUser selectUserByAccessCode(java.lang.String strUserAccessCode)
strUserAccessCode - the login
java.util.Collection<AdminUser> selectUserList()
java.util.Collection<AdminUser> selectUsersByRole(java.lang.String strRoleKey)
strRoleKey - The role key
void store(AdminUser user)
user - The AdminUservoid store(LuteceDefaultAdminUser user)
user - The AdminUserjava.util.Collection<AdminUser> selectUsersByLevel(int nIdLevel)
nIdLevel - The level
void storeUsersRole(java.lang.String strOldRoleKey,
AdminRole role)
strOldRoleKey - The old role key namerole - The new role
boolean hasRole(int nUserId,
java.lang.String strRoleKey)
nUserId - The ID of the userstrRoleKey - The role Key
void deleteRoleForUser(int nUserId,
java.lang.String strRoleKey)
nUserId - The ID of the userstrRoleKey - The role keyjava.util.Collection<AdminUser> selectUsersByFilter(AdminUserFilter auFilter)
auFilter - the filter
java.util.Collection<AdminUser> selectUsersByRight(java.lang.String strIdRight)
strIdRight - The ID right
boolean hasRight(int nUserId,
java.lang.String strIdRight)
nUserId - The ID of the userstrIdRight - The ID right
void deleteRightForUser(int nUserId,
java.lang.String strIdRight)
nUserId - The user IDstrIdRight - The right IDjava.util.List<java.lang.String> selectUserPasswordHistory(int nUserID)
nUserID - Id of the user
int countUserPasswordHistoryFromDate(java.sql.Timestamp minDate,
int nUserId)
minDate - Minimum date to consider.nUserId - Id of the user
void insertNewPasswordInHistory(java.lang.String strPassword,
int nUserId)
strPassword - New password of the usernUserId - Id of the uservoid removeAllPasswordHistoryForUser(int nUserId)
nUserId - Id of the userjava.util.Map<java.lang.String,java.lang.Boolean> selectAnonymizationStatusUserStaticField()
void updateAnonymizationStatusUserStaticField(java.lang.String strFieldName,
boolean bAnonymizeFiled)
strFieldName - Name of the field to updatebAnonymizeFiled - True if the field should be anonymize, false
otherwisejava.util.List<java.lang.Integer> findAllExpiredUserId()
java.util.List<java.lang.Integer> getIdUsersWithExpiredLifeTimeList(java.sql.Timestamp currentTimestamp)
currentTimestamp - Timestamp describing the current time.
java.util.List<java.lang.Integer> getIdUsersToSendFirstAlert(java.sql.Timestamp alertMaxDate)
alertMaxDate - The maximum date to send alerts.
java.util.List<java.lang.Integer> getIdUsersToSendOtherAlert(java.sql.Timestamp alertMaxDate,
java.sql.Timestamp timeBetweenAlerts,
int maxNumberAlerts)
alertMaxDate - The maximum date to send alerts.timeBetweenAlerts - Timestamp describing the time between two
alerts.maxNumberAlerts - Maximum number of alerts to send to a user
void updateUserStatus(java.util.List<java.lang.Integer> listIdUser,
int nNewStatus)
listIdUser - List of user accounts to updatenNewStatus - New status of the uservoid updateNbAlert(java.util.List<java.lang.Integer> listIdUser)
listIdUser - The list of users to update
void updateUserExpirationDate(int nIdUser,
java.sql.Timestamp newExpirationDate)
nIdUser - Id of the admin user to updatenewExpirationDate - Id of the user to update
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||