public void addPageMeta(PageMeta pageMeta) throws WingException { pageMeta.addMetadata("title").addContent(T_title); pageMeta.addTrailLink(contextPath + "/", T_dspace_home); pageMeta.addTrailLink(contextPath + "/admin/metadata-registry",T_metadata_registry_trail); pageMeta.addTrail().addContent(T_trail); }
@Override public void addPageMeta(PageMeta pageMeta) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException { pageMeta.addMetadata("title").addContent(T_title); pageMeta.addTrailLink(contextPath + "/",T_dspace_home); pageMeta.addTrailLink(null,T_trail); }
@Override public void addPageMeta(PageMeta pageMeta) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException { pageMeta.addMetadata("title").addContent("StaticPageTitle"); pageMeta.addTrail().addContent("StaticTrail"); }
Parser parser = new Parser(url); PageMeta pageMeta = new PageMeta(); pageMeta.setUrl(url); NodeList meta = parser.parse(new TagNameFilter("meta")); for (SimpleNodeIterator iterator = meta.elements(); iterator.hasMoreNodes(); ) { Tag tag = (Tag) iterator.nextNode(); if ("og:image".equals(tag.getAttribute("property"))) { pageMeta.setImageUrl(tag.getAttribute("content")); } if ("og:title".equals(tag.getAttribute("property"))) { pageMeta.setTitle(tag.getAttribute("content")); } if ("og:description".equals(tag.getAttribute("property"))) { pageMeta.setDescription(tag.getAttribute("content")); } }
/** * Add metadata about this page. * * @param element * (Required) The metadata element. * @return A new metadata */ public Metadata addMetadata(String element) throws WingException { return addMetadata(element, null, null, false); }
/** * Add a new trail to the page without a link or render attribute. * * @return a new trail */ public Trail addTrail() throws WingException { return addTrail(null,null); }
startElement(contentHandler, namespaces, E_PAGE_META, null); endElement(contentHandler, namespaces, E_PAGE_META);
protected Meta(WingContext context) throws WingException { // FIXME: don't statically assign authenticated status or // repositoryIdentifier. super(context); userMeta = new UserMeta(context); pageMeta = new PageMeta(context); repositoryMeta = new RepositoryMeta(context); }
&& this.pageMeta.mergeEqual(namespace, localName, qName, attributes))
/** * dispose */ public void dispose() { if (this.userMeta != null) { this.userMeta.dispose(); } if (this.pageMeta != null) { this.pageMeta.dispose(); } if (this.repositoryMeta != null) { this.repositoryMeta.dispose(); } this.userMeta = null; this.pageMeta = null; this.repositoryMeta = null; super.dispose(); } }
public void addPageMeta(PageMeta pageMeta) throws WingException { pageMeta.addMetadata("title").addContent(T_title); pageMeta.addTrailLink(contextPath + "/", T_dspace_home); pageMeta.addTrailLink(null,T_eperson_trail); }
public void addPageMeta(PageMeta pageMeta) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException { // Set the page title pageMeta.addMetadata("title").addContent(T_title); // This invokes magic popup transformation in XSL - "framing.popup" pageMeta.addMetadata("framing","popup").addContent("true"); }
/** * Add a new trail link to the page. * * @param target * (May be null) The Target URL for this trail item. * @param message * (Required) The textual contents of this trail item to be * translated */ public void addTrailLink(String target, Message message) throws WingException { Trail trail = addTrail(target, null); trail.addContent(message); }
public void addPageMeta(PageMeta pageMeta) throws WingException { pageMeta.addMetadata("title").addContent(T_title); pageMeta.addTrailLink(contextPath + "/", T_dspace_home); pageMeta.addTrailLink(contextPath + "/admin/item",T_item_trail); pageMeta.addTrail().addContent(T_trail); }
@Override public void addPageMeta(PageMeta pageMeta) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException { pageMeta.addMetadata("title").addContent(T_title); pageMeta.addTrailLink(contextPath + "/",T_dspace_home); pageMeta.addTrailLink(contextPath + "/submissions",T_trail); }
public void addPageMeta(PageMeta pageMeta) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException { super.addPageMeta(pageMeta); int collectionID = submission.getCollection().getID(); pageMeta.addMetadata("choice", "collection").addContent(String.valueOf(collectionID)); String jumpTo = submissionInfo.getJumpToField(); if (jumpTo != null) { pageMeta.addMetadata("page", "jumpTo").addContent(jumpTo); } }
public void addPageMeta(PageMeta pageMeta) throws WingException { pageMeta.addMetadata("title").addContent(T_title); pageMeta.addTrailLink(contextPath + "/", T_dspace_home); pageMeta.addTrailLink(contextPath + "/admin/authorize", T_authorize_trail); pageMeta.addTrail().addContent(T_policyList_trail); }
public void addPageMeta(PageMeta pageMeta) throws WingException { pageMeta.addMetadata("title").addContent(T_title); pageMeta.addTrailLink(contextPath + "/", T_dspace_home); pageMeta.addTrailLink(null, T_format_registry_trail); }
public void addPageMeta(PageMeta pageMeta) throws WingException { pageMeta.addMetadata("title").addContent(T_title); pageMeta.addTrailLink(contextPath + "/", T_dspace_home); pageMeta.addTrailLink(contextPath + "/admin/epeople",T_eperson_trail); pageMeta.addTrail().addContent(T_trail); }
public void addPageMeta(PageMeta pageMeta) throws SAXException, WingException, SQLException, IOException, AuthorizeException { pageMeta.addMetadata("title").addContent(T_title); pageMeta.addTrailLink(contextPath + "/",T_dspace_home); pageMeta.addTrailLink(contextPath + "/submissions",T_trail); }