Package org.dspace.app.xmlui.wing

Examples of org.dspace.app.xmlui.wing.Message


    public static void registrationProgressList(Division form, int step) throws WingException
    {
        List progress = form.addList("registration-progress",
                List.TYPE_PROGRESS);

        new Message("default","xmlui.EPerson.EPersonUtils.register_verify_email");
       
        progress.addItem("register-verify-email", render(step, 1)).addContent(
                new Message("default","xmlui.EPerson.EPersonUtils.register_verify_email"));

        progress.addItem("register-create-profile", render(step, 2)).addContent(
                new Message("default","xmlui.EPerson.EPersonUtils.register_create_profile"));

        progress.addItem("register-finished", render(step, 3)).addContent(
                new Message("default","xmlui.EPerson.EPersonUtils.register_finished"));
    }
View Full Code Here


        List progress = form.addList("forgot-password-progress",
                List.TYPE_PROGRESS);

        progress.addItem("forgot-verify-email", render(step, 1)).addContent(
                new Message("default","xmlui.EPerson.EPersonUtils.forgot_verify_email"));

        progress.addItem("forgot-reset-passowrd", render(step, 2)).addContent(
                new Message("default","xmlui.EPerson.EPersonUtils.forgot_reset_password"));

        progress.addItem("forgot-finished", render(step, 3)).addContent(
                new Message("default","xmlui.EPerson.EPersonUtils.forgot_finished"));
    }
View Full Code Here

   
    if (result.getErrors() == null || result.getErrors().isEmpty()) {
      result.setOutcome(true);
      // On a successful test we still want to stay in the loop, not continue out of it
      //result.setContinue(true);
      result.setMessage(new Message("default","Harvesting settings are valid."));
    }
    else {
      result.setOutcome(false);
      result.setContinue(false);
      // don't really need a message when the errors are highlighted already
View Full Code Here

    role.delete();
    context.commit();
 
    result.setContinue(true);
    result.setOutcome(true);
    result.setMessage(new Message("default","The role was successfully deleted."));
    return result;
  }
View Full Code Here

    // Commit the changes
    context.commit();
   
    result.setContinue(true);
    result.setOutcome(true);
    result.setMessage(new Message("default","All new items submitted to this collection will default to anonymous read."));
    return result;
  }
View Full Code Here

   
    context.commit();
   
    result.setContinue(true);
    result.setOutcome(true);
    result.setMessage(new Message("default","The collection was successfully deleted."));
   
    return result;
  }
View Full Code Here

    newCollection.update();
        context.commit();
        // success
        result.setContinue(true);
        result.setOutcome(true);
        result.setMessage(new Message("default","The collection was successfully created."));
        result.setParameter("collectionID", newCollection.getID());
   
    return result;
  }
View Full Code Here

    newCommunity.update();
        context.commit();
        // success
        result.setContinue(true);
        result.setOutcome(true);
        result.setMessage(new Message("default","The community was successfully created."));
        result.setParameter("communityID", newCommunity.getID());
   
    return result;
  }
View Full Code Here

    community.delete();
    context.commit();
   
    result.setContinue(true);
    result.setOutcome(true);
    result.setMessage(new Message("default","The community was successfully deleted."));
   
    return result;
  }
View Full Code Here

            String collectionName = owned.getCollection().getMetadata("name");
            EPerson submitter = owned.getSubmitter();
            String submitterName = submitter.getFullName();
            String submitterEmail = submitter.getEmail();
           
            Message state = getWorkflowStateMessage(owned);

            Row row = table.addRow();
           
            CheckBox remove = row.addCell().addCheckBox("workflowID");
            remove.setLabel("selected");
            remove.addOption(workflowItemID);
           
            // The task description
            row.addCell().addXref(url,state);

            // The item description
            if (titles != null && titles.length > 0)
            {
              String displayTitle = titles[0].value;
              if (displayTitle.length() > 50)
                displayTitle = displayTitle.substring(0,50)+ " ...";
              row.addCell().addXref(url,displayTitle);
            }
            else
              row.addCell().addXref(url,T_untitled);

            // Submitted too
            row.addCell().addXref(url,collectionName);

            // Submitted by
            Cell cell = row.addCell();
            cell.addContent(T_email);
            cell.addXref("mailto:"+submitterEmail,submitterName);
          }
         
          Row row = table.addRow();
         row.addCell(0,5).addButton("submit_return_tasks").setValue(T_w_submit_return);
         
        }
        else
        {
          Row row = table.addRow();
          row.addCell(0,5).addHighlight("italic").addContent(T_w_info2);
        }
      
       
       
       
        // Tasks in the pool
        table = workflow.addTable("workflow-tasks",pooledItems.size()+2,5);
        table.setHead(T_w_head3);
       
        header = table.addRow(Row.ROLE_HEADER);
        header.addCellContent(T_w_column1);
        header.addCellContent(T_w_column2);
        header.addCellContent(T_w_column3);
        header.addCellContent(T_w_column4);
        header.addCellContent(T_w_column5);
       
        if (pooledItems.size() > 0)
        {

          for (WorkflowItem pooled : pooledItems)
          {
            int workflowItemID = pooled.getID();
            String url = contextPath+"/handle/"+pooled.getCollection().getHandle()+"/workflow?workflowID="+workflowItemID;
            DCValue[] titles = pooled.getItem().getDC("title", null, Item.ANY);
            String collectionName = pooled.getCollection().getMetadata("name");
            EPerson submitter = pooled.getSubmitter();
            String submitterName = submitter.getFullName();
            String submitterEmail = submitter.getEmail();

            Message state = getWorkflowStateMessage(pooled);
           
           
            Row row = table.addRow();
           
            CheckBox remove = row.addCell().addCheckBox("workflowID");
View Full Code Here

TOP

Related Classes of org.dspace.app.xmlui.wing.Message

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.