Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dao class
- void boolean saveOrUpdateUser (user, actor){ // actor is the person doing the action
- boolean b = checkIfUserCanSaveOrUpdate(actor);
- if (b){
- return true
- }else{
- return false //// well I wanted to return a USer object in case of succes. how to do that?
- }
- }
- checkIfUserCanSaveOrUpdate(actor){
- //dbquery here to check for priviliegs
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement