Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Service
- public User saveOrUpdate(User user, Actor actor)
- throws UserException {
- try {
- if(!checkActorCanSaveOrUpdate(actor, user))
- throw new UserException("Actor cannot perform action");
- return dao.saveOrUpdate(user);
- }
- catch(SomeDaoException e) {
- erturn new UserException(e);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement