Examples of BundleActionMessage


Examples of com.adito.core.BundleActionMessage

      NetworkPlace resource = fileSystemForm.getNetworkPlace();

      // check access for the attributes on the NetworkPlace.
      if (resource.isNoDelete() && NO_DELETE.contains(fileSystemForm.getActionTarget())) {
        ActionMessages msgs = getErrors(request);
        msgs.add(Globals.ERROR_KEY, new BundleActionMessage(NetworkPlacePlugin.MESSAGE_RESOURCES_KEY, "vfs.noDelete.error"));
        saveMessages(request, msgs);
        return mapping.getInputForward();
      }
    }

    try {
      if(fileSystemForm.getLaunchSession().isTracked()) {
        LaunchSession.AccessRight accessRight = fileSystemForm.getLaunchSession().checkAccessRights(null, actualSession);
        if (accessRight == LaunchSession.USER_ACCESS || isSuperUser(request)) {
          fileSystemForm.setReadWrite();
        } else if (accessRight == LaunchSession.MANAGEMENT_ACCESS) {
          ActionMessages warnings = getWarnings(request);
          warnings.add(Constants.REQ_ATTR_WARNINGS, new BundleActionMessage(NetworkPlacePlugin.MESSAGE_RESOURCES_KEY, "vfs.manageOnly.warning"));
          saveWarnings(request, warnings);
        }
      }
      return null;
    } catch (Exception e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.