Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2013
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.36 KB | None | 0 0
  1. dao class
  2.  
  3. void boolean saveOrUpdateUser (user, actor){ // actor is the person doing the action
  4.     boolean b = checkIfUserCanSaveOrUpdate(actor);
  5.     if (b){
  6.      return true
  7.     }else{
  8.         return false  //// well I wanted to return a USer object in case of succes. how to do that?
  9.     }
  10.  
  11. }
  12.  
  13. checkIfUserCanSaveOrUpdate(actor){
  14.     //dbquery here to check for priviliegs
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement