Package de.iritgo.aktera.permissions

Examples of de.iritgo.aktera.permissions.PermissionException


    {
      int userId = request.getParameterAsInt("userId", - 1);

      if (! UserTools.currentUserIsInGroup(request, "manager") && UserTools.getCurrentUserId(request) != userId)
      {
        throw new PermissionException("Permission denied to edit com device function keys of user " + userId);
      }

      return userId;
    }
View Full Code Here


    {
      int userId = request.getParameterAsInt("userId", - 1);

      if (! UserTools.currentUserIsInGroup(request, "manager") && UserTools.getCurrentUserId(request) != userId)
      {
        throw new PermissionException("Permission denied to edit com device function keys of user " + userId);
      }

      try
      {
        Persistent user = pf.create("keel.user");
View Full Code Here

    {
      int userId = NumberTools.toInt(request.getParameter("userId"), UserTools.getCurrentUserId(request));

      if (! UserTools.currentUserIsInGroup(request, "manager") && UserTools.getCurrentUserId(request) != userId)
      {
        throw new PermissionException("Permission denied to edit com device function keys of user " + userId);
      }

      try
      {
        Persistent user = pf.create("keel.user");
View Full Code Here

    {
      int userId = NumberTools.toInt(request.getParameter("userId"), UserTools.getCurrentUserId(request));

      if (! UserTools.currentUserIsInGroup(request, "manager") && UserTools.getCurrentUserId(request) != userId)
      {
        throw new PermissionException("Permission denied to edit com device function keys of user " + userId);
      }

      try
      {
        Persistent user = pf.create("keel.user");
View Full Code Here

    {
      int userId = request.getParameterAsInt("userId", - 1);

      if (! UserTools.currentUserIsInGroup(request, "manager") && UserTools.getCurrentUserId(request) != userId)
      {
        throw new PermissionException("Permission denied to edit com device function keys of user " + userId);
      }

      return userId;
    }
View Full Code Here

    if (! StringTools.isTrimEmpty(request.getParameter("userId")))
    {
      int userId = request.getParameterAsInt("userId", - 1);
      if (! UserTools.currentUserIsInGroup(request, "manager") && UserTools.getCurrentUserId(request) != userId)
      {
        throw new PermissionException("Permission denied to edit com device function keys of user " + userId);
      }
      UserDAO userDAO = (UserDAO) SpringTools.getBean(UserDAO.ID);
      return userDAO.findUserById(userId).getName();
    }
    return UserTools.getCurrentUserName(request);
View Full Code Here

    {
      int userId = request.getParameterAsInt("userId", - 1);

      if (! UserTools.currentUserIsInGroup(request, "manager") && UserTools.getCurrentUserId(request) != userId)
      {
        throw new PermissionException("Permission denied to edit com device function keys of user " + userId);
      }

      return userId;
    }
View Full Code Here

TOP

Related Classes of de.iritgo.aktera.permissions.PermissionException

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.