Examples of contenturl()


Examples of de.innovationgate.wgpublisher.webtml.utils.TMLContext.contenturl()

            String hrefPattern = "href=\"";
            int hrefStart = text.indexOf(hrefPattern, from);
            if (hrefStart != -1 && hrefStart < tagEnd) {
              // href attribute found behind wgakey-attribute
              int hrefEnd = text.indexOf("\"", hrefStart + hrefPattern.length());
              text = text.substring(0, hrefStart + hrefPattern.length()) + targetContext.contenturl(null, null) + text.substring(hrefEnd);
            } else {
              hrefStart = text.lastIndexOf(hrefPattern, from);
              if (hrefStart != -1 && hrefStart > tagStart) {
                // href attribute found before wgakey-attribute
                int hrefEnd = text.indexOf("\"", hrefStart + hrefPattern.length());
View Full Code Here

Examples of de.innovationgate.wgpublisher.webtml.utils.TMLContext.contenturl()

            } else {
              hrefStart = text.lastIndexOf(hrefPattern, from);
              if (hrefStart != -1 && hrefStart > tagStart) {
                // href attribute found before wgakey-attribute
                int hrefEnd = text.indexOf("\"", hrefStart + hrefPattern.length());
                text = text.substring(0, hrefStart + hrefPattern.length()) + targetContext.contenturl(null, null) + text.substring(hrefEnd);               
              }
            }
          }
        } 
      } catch (Exception e) {
View Full Code Here

Examples of de.innovationgate.wgpublisher.webtml.utils.TMLContext.contenturl()

        // If current doc is a remote doc we try a "roundtrip" to see which doc in the current
        // db represents the link target in the source database (B00004D92)
        if (context.db().getBooleanAttribute(WGACore.DBATTRIB_USEREMOTECS, false) && context.content().hasItem("remote_info")) {
            TMLContext remoteTargetContext = traceRemoteDocument(context, contentKey);
            if (remoteTargetContext != null) {
                return remoteTargetContext.contenturl(null, null);
            }
        }
        else {
            String contextExpr = (dbKey != null ? "db:" + dbKey + "/" : "") + "docid:" + contentKey;
            TMLContext targetContext = context.context(contextExpr, false);
View Full Code Here

Examples of de.innovationgate.wgpublisher.webtml.utils.TMLContext.contenturl()

        }
        else {
            String contextExpr = (dbKey != null ? "db:" + dbKey + "/" : "") + "docid:" + contentKey;
            TMLContext targetContext = context.context(contextExpr, false);
            if (targetContext != null) {
                return targetContext.contenturl(null, null);
            }
        }
       
        return createFallBackContentURL(context, dbKey, contentKey);
       
View Full Code Here

Examples of de.innovationgate.wgpublisher.webtml.utils.TMLContext.contenturl()

       

        String contextExpr = (dbKey != null ? "db:" + dbKey + "/" : "") + "name:" + uniqueName;
        TMLContext targetContext = context.context(contextExpr, false);
        if (targetContext != null) {
            return targetContext.contenturl(null, null);
        }
       
        return createFallBackContentURL(context, dbKey, uniqueName);
                           
    }
View Full Code Here

Examples of de.innovationgate.wgpublisher.webtml.utils.TMLContext.contenturl()

    try {
            TMLContext context = this.getTMLContext();
            WGContent content = context.content()
           
            // Build link body
            String contentURL = context.contenturl(this.getMedium(), this.getLayout());
            String imageBaseURL = context.contenturl(this.getMedium(), this.getLayout(), true);
            String linkBody = null;
            String moEventAttributes = "";
           
           
View Full Code Here

Examples of de.innovationgate.wgpublisher.webtml.utils.TMLContext.contenturl()

            TMLContext context = this.getTMLContext();
            WGContent content = context.content()
           
            // Build link body
            String contentURL = context.contenturl(this.getMedium(), this.getLayout());
            String imageBaseURL = context.contenturl(this.getMedium(), this.getLayout(), true);
            String linkBody = null;
            String moEventAttributes = "";
           
           
            linkBody = content.getTitle();
View Full Code Here

Examples of de.innovationgate.wgpublisher.webtml.utils.TMLContext.contenturl()

                    WGContent.VIRTUALLINKTYPE_UNIQUENAME.equals(context.content().getVirtualLinkType())) {
                List elements = WGUtils.deserializeCollection(context.content().getVirtualLink(), "/");
                String docID = (String) elements.get(elements.size() - 1);
                TMLContext targetContext = context.context("docid:" + docID, false);
                if (targetContext != null) {
                    completeUrl = targetContext.contenturl(mediaKey, layoutKey);
                }
                else {
                    completeUrl = WGPDispatcher.buildVirtualLink(context.content(), context.getrequest(), mediaKey, layoutKey);
                }
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.