|
com.im.df.api 5.9 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IJCUserDetailsService
The service for IJC user table administration.
| Method Summary | |
|---|---|
UserDetails |
addUser(String username,
String password,
boolean enabled,
GrantedAuthority[] authorities,
DFEnvironmentRW env)
Add a new user to the system. |
void |
createTables(DFEnvironmentRW env)
Creates the database tables, deleting any that might have been present. |
void |
deleteTables(DFEnvironmentRW env)
Delete the database tables |
void |
deleteUser(String username,
DFEnvironmentRW env)
Delete this user Can be called only when tablesExist() is true |
List<UserDetails> |
getAllUsers()
Get a list of all users in the system. |
Map<GrantedAuthority,String> |
getAuthorities()
Get the valid authorities that are understood by the application. |
DFLockable |
getLockable()
Get special lockable for this capability. |
UserDetails |
loadUserByUsername(String username)
Redefined from UserDetalsSevice interface so that security and transaction can be annotated. |
boolean |
tablesExist()
Do all the database tables exist. |
UserDetails |
updateAuthorities(String username,
GrantedAuthority[] authorities,
DFEnvironmentRW env)
Replaces current authorities with the specified ones. |
UserDetails |
updateEnabled(String username,
boolean enabled,
DFEnvironmentRW env)
Change the enabled status of this user Can be called only when tablesExist() is true |
UserDetails |
updatePassword(String username,
String password,
DFEnvironmentRW env)
Update the password for this user Can be called only when tablesExist() is true |
| Method Detail |
|---|
DFLockable getLockable()
Map<GrantedAuthority,String> getAuthorities()
@Secured(value="ROLE_ADMIN") @Transactional(readOnly=true) boolean tablesExist()
@Secured(value="ROLE_ADMIN") @Transactional void createTables(DFEnvironmentRW env)
@Secured(value="ROLE_ADMIN") @Transactional void deleteTables(DFEnvironmentRW env)
@Secured(value="ROLE_ADMIN")
@Transactional
UserDetails addUser(String username,
String password,
boolean enabled,
GrantedAuthority[] authorities,
DFEnvironmentRW env)
username - The username to updatepassword - The passwordenabled - True to enable, false to disableauthorities - This user's granted authorities
@Secured(value="ROLE_ADMIN")
@Transactional
void deleteUser(String username,
DFEnvironmentRW env)
username - The username to update
@Secured(value="ROLE_ADMIN")
@Transactional
UserDetails updatePassword(String username,
String password,
DFEnvironmentRW env)
username - The username to updatepassword - The new passwordenv - The environment
@Secured(value="ROLE_ADMIN")
@Transactional
UserDetails updateEnabled(String username,
boolean enabled,
DFEnvironmentRW env)
username - The username to updateenabled - True to enable, false to disable
@Secured(value="ROLE_ADMIN")
@Transactional
UserDetails updateAuthorities(String username,
GrantedAuthority[] authorities,
DFEnvironmentRW env)
username - The username to updateauthorities - The new authorities.@Secured(value="ROLE_ADMIN") @Transactional(readOnly=true) List<UserDetails> getAllUsers()
@Secured(value="ROLE_ADMIN")
@Transactional(readOnly=true)
UserDetails loadUserByUsername(String username)
throws UsernameNotFoundException,
DataAccessException
loadUserByUsername in interface UserDetailsServiceUsernameNotFoundException
DataAccessException
|
com.im.df.api 5.9 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||