Package net.baguajie.exceptions

Examples of net.baguajie.exceptions.UnauthorizedOperationException


        new Sort(new Order(Direction.DESC, "createdAt")));
    types.clear();
    types.add(ActivityType.COMMENT.name());
    User signInUser = sessionUtil.getSignInUser(session);
    if(signInUser==null){
      throw new UnauthorizedOperationException();
    }
    Iterable<Activity> acts = activityRepository
        .findByBasedOnInAndTypeInAndOwnerNot(ids, types,
            signInUser.getId(),pageable);
    model.addAttribute("activities", toActVos(acts));
View Full Code Here


      HttpSession session){
    if(!ajaxUtil.isAjaxRequest(request)){
      throw new ResourceNotFoundException();
    }
    if(signInUser==null){
      throw new UnauthorizedOperationException();
    }
    User target = userRepository.findOne(targetId);
    if(target==null){
      throw new RuntimeException("Invalid user id : " + targetId);
    }
View Full Code Here

TOP

Related Classes of net.baguajie.exceptions.UnauthorizedOperationException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.