Class AbstractWebPage

    • Constructor Detail

      • AbstractWebPage

        public AbstractWebPage()
    • Method Detail

      • getUrl

        public abstract java.lang.String getUrl()
      • getUrlToShot

        public abstract java.lang.String getUrlToShot()
      • setUrlToShot

        public abstract void setUrlToShot​(java.lang.String v)
      • getDataImage

        public java.lang.String getDataImage()
        Use the URL to shot if any, else the URL.
        Overrides:
        getDataImage in class Publication
        Returns:
        a data image of this publication based on the image contains in its wiki or wysiwyg fields.
        Since:
        jcms-9.0.2
        See Also:
        Publication.getDataImage()
      • getThumbnail

        protected java.io.File getThumbnail​(java.net.URL url,
                                            int maxWidth,
                                            int maxHeight)
        Parameters:
        url - the URL to use for thumbnail (either a page to "shoot", or already an image)
        maxWidth - the maximum width of the thumbnail to generate
        maxHeight - the maximum height of the thumbnail to generate
        Returns:
        a thumbnail File, saved on disk. See ThumbnailTag.createThumbnail(FileDocument, File, URL, ImageFormat, int, int)
        Since:
        jcms-9.0.2
      • getDataIcon

        public java.lang.String getDataIcon()
        Description copied from class: Data
        Returns source information for the icon associated to this Data, either a relative path or sprite classes name.

        If this method behavior has not been overriden by subclass, the default icon can be declared using property types.{Type}.icon, where {Type} is the short class name of the type concerned.

        • Either by specifying a relative image path :
          types.Article.icon: images/jalios/icon/abstract.gif 
        • or else by using a sprite icon :
          types.Article.icon: ss_sprite ss_date
        Overrides:
        getDataIcon in class Publication
        Returns:
        a relative path (eg images/jalios/icon/abstract.gif) or sprite classes name (eg ss_sprite ss_date).
        See Also:
        Data.getDataIconHtml(String)
      • getDataIconCSS

        public java.lang.String getDataIconCSS()
        Description copied from class: Data
        Returns the CSS for the data icon.
        Overrides:
        getDataIconCSS in class Data
        Returns:
        the CSS for the data icon.
      • checkWrite

        public ControllerStatus checkWrite​(int op,
                                           Member mbr,
                                           boolean checkIntegrity,
                                           java.util.Map context)
        Description copied from class: Publication
        Checks if the given write operation can be performed
        Overrides:
        checkWrite in class Publication
        Parameters:
        op - the operation (OP_CREATE, OP_UPDATE, ...)
        mbr - the member which requests the write operation
        checkIntegrity - if true, requires the constraints integrity to be checked
        context - a map which contains context parameters (may be null)
        Returns:
        a ControllerStatus
      • performBeforeWrite

        protected void performBeforeWrite​(int op,
                                          Member mbr,
                                          java.util.Map context)
        Description copied from class: Data
        Called to perform some action before the write.
        Overrides:
        performBeforeWrite in class Publication
        Parameters:
        op - the operation (OP_CREATE, OP_UPDATE, ...)
        mbr - the member which requests the write operation
        context - a map which contains context parameters (may be null)