|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IAdminUserDAO
AdminUserDAO Interface
| Method Summary | |
|---|---|
boolean |
checkAccessCodeAlreadyInUse(java.lang.String strAccessCode)
Checks the availibility of an access code |
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 |
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> |
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 |
| Method Detail |
|---|
boolean checkAccessCodeAlreadyInUse(java.lang.String strAccessCode)
strAccessCode - The access code
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 AdminUser
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||