/** * Append an unnamed paragraph to the division * * @return A new unnamed paragraph. */ public Para addPara() throws WingException { return addPara(null, null); }
/** * Append a paragraph to the division and set the content of the paragraph. * * @param characters * (May be null) Untranslated character data to be included as * the contents of this para. */ public void addPara(String characters) throws WingException { Para para = this.addPara(); para.addContent(characters); }
/** * Append a paragraph to the division and set the content of the paragraph. * * @param message * (Required) Key to the i18n catalogue to translate the content * into the language preferred by the user. */ public void addPara(Message message) throws WingException { Para para = this.addPara(); para.addContent(message); }
public void addBody(Body body) throws WingException { Division invalid = body.addDivision("invalid-token","primary"); invalid.setHead(T_head); invalid.addPara(T_para1); Para example1 = invalid.addPara("invalid-token-examlpe","code"); example1.addContent(ConfigurationManager.getProperty("dspace.url") + "/register?token=ABCDEFGHIJK"); Para example2 = invalid.addPara("invalid-token-examlpe","code"); example2.addContent("LMNOP"); invalid.addPara(T_para2); Para example3 = invalid.addPara("valid-token-examlpe","code"); example3.addContent(ConfigurationManager.getProperty("dspace.url") + "/register?token=ABCDEFGHIJKLMNOP"); }
public void addBody(Body body) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException { Division div = body.addInteractiveDivision("submit-removed",contextPath+"/submit", Division.METHOD_POST,"primary submission"); div.setHead(T_head); div.addPara(T_info1); div.addPara().addXref(contextPath+"/submissions",T_go_submissions); }
@Override public void addBody(Body body) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException, ProcessingException { Division division = body.addDivision("staticpage"); division.setHead("StaticPageBodyHead"); division.addPara("StaticPageBodyPara"); } }
public void addBody(Body body) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException { Division feedback = body.addDivision("feedback-sent","primary"); feedback.setHead(T_head); feedback.addPara(T_para1); } }
public void addBody(Body body) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException { Division div = body.addInteractiveDivision("submit-complete",contextPath+"/handle/"+handle+"/submit", Division.METHOD_POST,"primary submission"); div.setHead(T_head); div.addPara(T_info1); div.addPara().addXref(contextPath+"/submissions",T_go_submission); div.addPara().addButton("submit_again").setValue(T_submit_again); div.addHidden("handle").setValue(handle); }
/** What to add at the end of the body */ @Override public void addBody(Body body) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException, ResourceNotFoundException { if (this.bodyEmpty) { Division notFound = body.addDivision("page-not-found","primary"); notFound.setHead(T_head); notFound.addPara(T_para1); notFound.addPara().addXref(contextPath + "/",T_go_home); throw new ResourceNotFoundException("Page cannot be found"); } }
public void addBody(Body body) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException { Division search = body.addInteractiveDivision("front-page-search",contextPath+"/discover",Division.METHOD_GET,"primary"); search.setHead(T_head); search.addPara(T_para1); Para fields = search.addPara(); fields.addText("query"); fields.addButton("submit").setValue(T_go); } }
public void addBody(Body body) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException { Division search = body.addInteractiveDivision("front-page-search",contextPath+"/search",Division.METHOD_GET,"primary"); search.setHead(T_head); search.addPara(T_para1); Para fields = search.addPara(); fields.addText("query"); fields.addButton("submit").setValue(T_go); } }
public void addBody(Body body) throws WingException, SQLException { String loginURL = contextPath+"/login"; String feedbackURL = contextPath+"/feedback"; Division main = body.addDivision("not-authorized","primary administrative"); main.setHead(T_head); Para para1 = main.addPara(); para1.addContent(T_para1a); para1.addXref(feedbackURL,T_para1b); para1.addContent(T_para1c); main.addPara().addXref(loginURL,T_para2); }
public void addBody(Body body) throws WingException { Division cannot = body.addDivision("register-cannot","primary"); cannot.setHead(T_head); EPersonUtils.registrationProgressList(cannot, 0); cannot.addPara(T_para1); }
public void addBody(Body body) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException { Request request = ObjectModelHelper.getRequest(objectModel); Division div = body.addDivision("failed_auth"); div.setHead(T_h1); div.addPara((Message)request.getSession().getAttribute(SESSION_ATTRIBUTE_NAME)); deRegisterErrorCode(request); }
public void addBody(Body body) throws SAXException, WingException, SQLException { // DIVISION: metadata-import Division div = body.addInteractiveDivision("metadata-import",contextPath + "/admin/metadataimport", Division.METHOD_MULTIPART,"primary administrative"); div.setHead(T_head1); Para file = div.addPara(); file.addFile("file"); Para actions = div.addPara(); Button button = actions.addButton("submit_upload"); button.setValue(T_submit_upload); div.addHidden("administrative-continue").setValue(knot.getId()); }
public void addBody(Body body) throws WingException, SQLException, AuthorizeException { String role = parameters.getParameter("role", null); int groupID = parameters.getParameterAsInteger("groupID", -1); Group toBeDeleted = Group.find(context, groupID); // DIVISION: main Division main = body.addInteractiveDivision("community-role-delete",contextPath+"/admin/community",Division.METHOD_POST,"primary administrative community"); main.setHead(T_main_head.parameterize(role)); main.addPara(T_main_para.parameterize(toBeDeleted.getName())); Para buttonList = main.addPara(); buttonList.addButton("submit_confirm").setValue(T_submit_confirm); buttonList.addButton("submit_cancel").setValue(T_submit_cancel); main.addHidden("administrative-continue").setValue(knot.getId()); } }
public void addBody(Body body) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException { Division contact = body.addDivision("contact","primary"); contact.setHead(T_head); String name = ConfigurationManager.getProperty("dspace.name"); contact.addPara(T_para1.parameterize(name)); List list = contact.addList("contact"); list.addLabel(T_feedback_label); list.addItem().addXref(contextPath+"/feedback",T_feedback_link); list.addLabel(T_email); String email = ConfigurationManager.getProperty("mail.admin"); list.addItem().addXref("mailto:"+email,email); } }