Search in sources :

Example 26 with SymbolicLink

use of com.agiletec.plugins.jacms.aps.system.services.content.model.SymbolicLink in project entando-core by entando.

the class LinkResolverManager method convertToURL.

protected String convertToURL(String symbolicString, String contentId, RequestContext reqCtx) {
    String url = null;
    SymbolicLink symbolicLink = new SymbolicLink();
    if (symbolicLink.setSymbolicDestination(symbolicString)) {
        url = this.resolveLink(symbolicLink, contentId, reqCtx);
    }
    return url;
}
Also used : SymbolicLink(com.agiletec.plugins.jacms.aps.system.services.content.model.SymbolicLink)

Example 27 with SymbolicLink

use of com.agiletec.plugins.jacms.aps.system.services.content.model.SymbolicLink in project entando-core by entando.

the class ContentWrapper method getContentOnPageLink.

/**
 * Restituisce un URL simbolico che punta al contenuto stesso su una pagina specficata
 * (link di tipo SymbolicLink.CONTENT_ON_PAGE_TYPE).
 * @param pageCode Il codice della pagina su cui visualizzare il contenuto.
 * @return Un URL simbolico da utilizzare come href in un tag <a>
 */
public String getContentOnPageLink(String pageCode) {
    SymbolicLink symbLink = new SymbolicLink();
    symbLink.setDestinationToContentOnPage(this.getId(), pageCode);
    return symbLink.getSymbolicDestination();
}
Also used : SymbolicLink(com.agiletec.plugins.jacms.aps.system.services.content.model.SymbolicLink)

Aggregations

SymbolicLink (com.agiletec.plugins.jacms.aps.system.services.content.model.SymbolicLink)27 LinkAttribute (com.agiletec.plugins.jacms.aps.system.services.content.model.extraAttribute.LinkAttribute)9 Content (com.agiletec.plugins.jacms.aps.system.services.content.model.Content)6 Lang (com.agiletec.aps.system.services.lang.Lang)3 CmsAttributeReference (com.agiletec.plugins.jacms.aps.system.services.content.model.CmsAttributeReference)3 SymbolicLinkValidator (com.agiletec.plugins.jacms.aps.system.services.content.model.extraAttribute.util.SymbolicLinkValidator)3 ArrayList (java.util.ArrayList)3 AttributeFieldError (com.agiletec.aps.system.common.entity.model.AttributeFieldError)2 MonoListAttribute (com.agiletec.aps.system.common.entity.model.attribute.MonoListAttribute)2 AttributeTracer (com.agiletec.aps.system.common.entity.model.AttributeTracer)1 FieldError (com.agiletec.aps.system.common.entity.model.FieldError)1 AttributeInterface (com.agiletec.aps.system.common.entity.model.attribute.AttributeInterface)1 IPageManager (com.agiletec.aps.system.services.page.IPageManager)1 IReferenceableAttribute (com.agiletec.plugins.jacms.aps.system.services.content.model.extraAttribute.IReferenceableAttribute)1 ActionSupport (com.opensymphony.xwork2.ActionSupport)1