Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2013
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.32 KB | None | 0 0
  1.  
  2. // Service
  3.  
  4. public User saveOrUpdate(User user, Actor actor)
  5. throws UserException {
  6.   try {
  7.     if(!checkActorCanSaveOrUpdate(actor, user))
  8.       throw new UserException("Actor cannot perform action");
  9.  
  10.     return dao.saveOrUpdate(user);
  11.   }
  12.   catch(SomeDaoException e) {
  13.     erturn new UserException(e);
  14.   }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement