Class AbstractResourceTag

  • All Implemented Interfaces:
    jakarta.servlet.jsp.tagext.IterationTag, jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag, Serializable
    Direct Known Subclasses:
    CmsFileTag, CmsImageTag

    public abstract class AbstractResourceTag
    extends net.anotheria.tags.BaseTagSupport
    Abstract resource TAG.
    Author:
    h3ll
    See Also:
    Serialized Form
    • Constructor Detail

      • AbstractResourceTag

        public AbstractResourceTag()
    • Method Detail

      • getLog

        protected static org.slf4j.Logger getLog()
        Returns Logger instance.
        Returns:
        Logger
      • setSelectPropertyName

        public void setSelectPropertyName​(String aSelectPropertyName)
      • getPropertyValue

        public String getPropertyValue()
      • setPropertyValue

        public void setPropertyValue​(String propertyValue)
      • isAddContextPath

        public boolean isAddContextPath()
      • setAddContextPath

        public void setAddContextPath​(boolean addContextPath)
      • setResultPropertyName

        public void setResultPropertyName​(String aResultPropertyName)
      • getSelectPropertyName

        public String getSelectPropertyName()
      • getResultPropertyName

        public String getResultPropertyName()
      • doEndTag

        public int doEndTag()
                     throws jakarta.servlet.jsp.JspException
        Specified by:
        doEndTag in interface jakarta.servlet.jsp.tagext.Tag
        Overrides:
        doEndTag in class jakarta.servlet.jsp.tagext.TagSupport
        Throws:
        jakarta.servlet.jsp.JspException
      • getTitleFromDocument

        protected abstract String getTitleFromDocument​(net.anotheria.asg.data.DataObject document)
        Returns document title - if available.
        Parameters:
        document - DataObject
        Returns:
        string property
      • getAliasFromDocument

        protected abstract String getAliasFromDocument​(net.anotheria.asg.data.DataObject document)
        Returns alias title - if available.
        Parameters:
        document - DataObject
        Returns:
        string property
      • getAltFromDocument

        protected abstract String getAltFromDocument​(net.anotheria.asg.data.DataObject document)
        Returns alt attribute value - if available.
        Parameters:
        document - DataObject instance
        Returns:
        String property
      • getResourcePath

        protected abstract String getResourcePath()
        Return resource path.
        Returns:
        resource path
      • getDocument

        protected abstract net.anotheria.asg.data.DataObject getDocument()
                                                                  throws jakarta.servlet.jsp.JspException
        Return DataObject according to incoming AbstractResourceTag.ReadPropertyType.
        Returns:
        DataObject
        Throws:
        jakarta.servlet.jsp.JspException - on errors