Package org.dspace.app.xmlui.wing

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


        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


                    Row itemRow = table.addRow();

                    java.util.List<PoolTask> pooltasks = PoolTask.find(context,wfi);
                    java.util.List<ClaimedTask> claimedtasks = ClaimedTask.find(context, wfi);

                    Message state = message("xmlui.XMLWorkflow.step.unknown");
                    for(PoolTask task: pooltasks){
                        Workflow wf = WorkflowFactory.getWorkflow(wfi.getCollection());
                        Step step = wf.getStep(task.getStepID());
                        state = message("xmlui.XMLWorkflow." + wf.getID() + "." + step.getId());
                    }
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(ownedWorkflowItemUrl, 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(ownedWorkflowItemUrl, displayTitle);
            }
            else
                {
                    row.addCell().addXref(ownedWorkflowItemUrl, T_untitled);
                }

            // Submitted too
            row.addCell().addXref(collectionUrl, 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 collectionUrl = contextPath + "/handle/" + pooled.getCollection().getHandle();
            String pooledItemUrl = contextPath + "/handle/" + pooled.getCollection().getHandle() + "/workflow?workflowID=" + workflowItemID;
            Metadatum[] 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

        for (WorkflowItem workflowItem : inprogressItems)
        {
          Metadatum[] titles = workflowItem.getItem().getDC("title", null, Item.ANY);
          String collectionName = workflowItem.getCollection().getMetadata("name");
          Message state = getWorkflowStateMessage(workflowItem);


          Row row = table.addRow();

          // Add the title column
View Full Code Here

        if(success)
        {  
            //@TODO: Ideally, all of this status information would be contained within a translatable I18N Message.
            // Unfortunately, there currently is no support for displaying Parameterized Messages in Notices
            // (See FlowResult.getMessage(), sitemap.xmap and NoticeTransformer)
            flowResult.setHeader(new Message("default", "Task: " + getUITaskName(taskName)));
            flowResult.setMessage(T_curate_success_notice);
            flowResult.setCharacters("STATUS: " + status + ", RESULT: " + result);
        }
        else
        {
            flowResult.setHeader(new Message("default", "Task: " + getUITaskName(taskName)));
            flowResult.setMessage(T_curate_fail_notice);
            flowResult.setCharacters("STATUS: Failure, RESULT: " + result);
           
        }
        flowResult.setContinue(true);
View Full Code Here

        if(status)
        {
            //@TODO: Ideally, all of this status information would be contained within a translatable I18N Message.
            // Unfortunately, there currently is no support for displaying Parameterized Messages in Notices
            // (See FlowResult.getMessage(), sitemap.xmap and NoticeTransformer)
            flowResult.setHeader(new Message("default", "Task: " + getUITaskName(taskName)));
            flowResult.setMessage(T_queue_success_notice);
            flowResult.setCharacters("RESULT: Object '" + objId + "' queued in '" + queueName + "' Queue")
        }
        else
        {
            flowResult.setHeader(new Message("default", "Task: " + getUITaskName(taskName)));
            flowResult.setMessage(T_queue_fail_notice);
            flowResult.setCharacters("RESULT: FAILED to queue Object '" + objId + "' in '" + queueName + "' Queue");
        }
        flowResult.setContinue(true);
        return flowResult;
View Full Code Here

                Metadatum[] titles = workflowItem.getItem().getDC("title", null, Item.ANY);
                String collectionName = workflowItem.getCollection().getMetadata("name");
                java.util.List<PoolTask> pooltasks = PoolTask.find(context,workflowItem);
                java.util.List<ClaimedTask> claimedtasks = ClaimedTask.find(context, workflowItem);

                Message state = message("xmlui.XMLWorkflow.step.unknown");
                for(PoolTask task: pooltasks){
                    Workflow wf = WorkflowFactory.getWorkflow(workflowItem.getCollection());
                    Step step = wf.getStep(task.getStepID());
                    state = message("xmlui.XMLWorkflow." + wf.getID() + "." + step.getId() + "." + task.getActionID());
                }
View Full Code Here

            DCPersonName dp = new DCPersonName(value);
            t1.setValue(dp.getLastName());
            t2.setValue(dp.getFirstNames());
            if (isFieldMessage(field, "help.last"))
            {
                Message m = getFieldMessage(field, "help.last");
                t1.setLabel(m);
                t1.setHelp(m);
            }
            else
            {
                String m = getFieldLabel(field, "help.last");
                t1.setLabel(m);
                t1.setHelp(m);
            }
            if (isFieldMessage(field, "help.first"))
            {
                Message m = getFieldMessage(field, "help.first");
                t2.setLabel(m);
                t2.setHelp(m);
            }
            else
            {
                String m = getFieldLabel(field, "help.first");
                t2.setLabel(m);
                t2.setHelp(m);
            }
        }
        else
        {
            t1.setValue(value);
            if (isFieldMessage(field, "help"))
            {
                Message m = getFieldMessage(field, "help");
                t1.setLabel(m);
                t1.setHelp(m);
            }
            else
            {
View Full Code Here

    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

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.