|
||||||||||
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 |
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 |
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 |
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 |
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.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 |
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 idvoid deleteAllDelegatedRightsForUser(int nUserId, int nUserLevel)
nUserId
- the user idnUserLevel
- the user levelvoid 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 AdminUservoid insertRightsListForUser(int nUserId, java.lang.String strRightId)
nUserId
- the user idstrRightId
- the right idvoid 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 roleboolean 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 ID
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |