Class JNewsManager

java.lang.Object
com.jalios.jcms.jnews.JNewsManager
All Implemented Interfaces:
JPropertiesListener

public class JNewsManager extends Object implements JPropertiesListener
A class managing JNews
  • Field Details

  • Method Details

    • getInstance

      public static JNewsManager getInstance()
    • propertiesChange

      public void propertiesChange(JProperties properties)
      Description copied from interface: JPropertiesListener
      Invoked after properties have been modified in JCMS and save on disk.

      You cannot alter the value received in parameters.

      Note that properties parameter may be null, a limited set of site properties, or all site properties.

      To check that a property has been modified, reload the "current" property instead using channel.getProperties or channel.getProperty.

      Specified by:
      propertiesChange in interface JPropertiesListener
      Parameters:
      properties - the properties which have been submitted to change
    • getAbstract

      public String getAbstract(Publication pub, Locale locale, boolean raw)
      Returns the abstract of a publication.
      Parameters:
      pub - A publication
      locale - A specific geographical region
      raw - mode raw text if true
      Returns:
      the field value.