json - Spring security 4. Architect structure for user management page -
spring security uses userdetailsmanager manage users & authorities. want use same implementation jdbcuserdetailsmanager manage user page admin (user crud, managing groups, pagination). unfortunately there no implementation paging, manage groups , on.
so i've got issues:
- user crud because of json convertation rest.
- group crud because of json convertation rest.
- user paging because of userdetailsmanager has no correspond implementation.
- group paging - no implementation.
- user json pojo (for create\update operations used userdetails has implementations inetorgperson, person, user but... i've got json convertation issue, can not mark classes @jsonignore).
- user pojo json (for read operation can not remove data important fields (for example: password)).
all of issues have few solution ways:
- 1.1. create 1 more user object similar user, add expected json annotations or in rest controller create builder build user object input parameter map (builder pattern think ugly way manage if implemented once) 1.2. add spring-datajpa repository (duplicates security part of jdbcuserdetailsmanager) or extend jdbcuserdetailsmanager , add unimplemented part manage users, groups...
- solution same 1.
- if 1. implemeted using spring-data-jpa - no problems, other case needs implement correspond factory builders provide paging in dynamic way.
- solution same 3.
- solved on 1., 2. steps.
- solved on 1., 2. steps.
which solution way should follow (implement managers spring-data-jpa based additional pojos or expand functionality jdbcuserdetailsmanager) ?
describing situation, think i'll implement solution using spring-data-jpa , pojo-entities have crud , json manipulating abilities. way seems better saving implementation time, , code more cleaner support generation.
if mistook in choice, let me know please. please let me know if issues solved in spring (sorry did not find solutions described issues). believe wants other solution architecture - discuss or consider clever ideas.
Comments
Post a Comment