Package edu.uga.galileo.voci.model

Examples of edu.uga.galileo.voci.model.WorkflowManager.canEdit()


              goToList = true;
            }
          } else {
            // this is an existing item
            // first make sure that the user can edit it
            if (!workflowManager.canEdit(user,
                command.getProject(), command.getCommand(),
                itemId)) {
              errors.add("You don't have permission to edit "
                  + "the requested item.");
              goToList = true;
View Full Code Here


      String[] vals = command.getOther().get(0).split("\\|");
      AuditLogManager alm = new AuditLogManager();
      int itemId = -1;
      try {
        itemId = Integer.parseInt(vals[2]);
        if (!workflowManager.canEdit(user, command.getProject(),
            command.getCommand(), itemId)) {
          errors.add("You don't have permission to edit "
              + "the requested item.");
          goToList = true;
        } else {
View Full Code Here

    if ((item != null)
        && (!command.isViewCommand())
        && (errors.size() == 0)
        && (fieldMessages.size() == 0)
        && (!goToList)
        && (!workflowManager.canEdit(user, command.getProject(),
            command.getCommand(), item.getItemId()))) {
      errors.add("You don't have permission to "
          + "work on the requested content.");
      goToList = true;
    }
View Full Code Here

            errors.add("Empty community couldn't be constructed.");
            goToList = true;
          }
        } else {
          // this is an existing community
          if (!workflowManager.canEdit(user, command.getProject(),
              command.getCommand(), communityId)) {
            errors.add("You don't have permission to edit "
                + "the requested community.");
            goToList = true;
          } else {
View Full Code Here

    // user is deleting a community
    try {
      int communityId = Integer.parseInt(command.getOther().get(0));
      // first check permissions
      if (!workflowManager.canEdit(user, command.getProject(), command
          .getCommand(), communityId)) {
        errors.add("You don't have permission to delete "
            + "the requested community.");
      } else {
        try {
View Full Code Here

    String[] vals = command.getOther().get(0).split("\\|");
    AuditLogManager alm = new AuditLogManager();
    int communityId = -1;
    try {
      communityId = Integer.parseInt(vals[2]);
      if (!workflowManager.canEdit(user, command.getProject(), command
          .getCommand(), communityId)) {
        errors.add("You don't have permission to edit "
            + "the requested community.");
        goToList = true;
      } else {
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.