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


       
        for (WorkflowItem workflowItem : inprogressItems)
        {
          DCValue[] 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

            {
              Collection collection = (Collection) pop;
              String name = collection.getMetadata("name");
              if (name == null || name.length() == 0)
                {
                    pageMeta.addTrailLink(target, new Message("default", "xmlui.general.untitled"));
                }
              else
                {
                    pageMeta.addTrailLink(target, name);
                }
            }
            else if (pop instanceof Community)
            {
              Community community = (Community) pop;
              String name = community.getMetadata("name");
              if (name == null || name.length() == 0)
                {
                    pageMeta.addTrailLink(target, new Message("default", "xmlui.general.untitled"));
                }
              else
                {
                    pageMeta.addTrailLink(target, name);
                }
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

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.