Package com.jalios.jcms.jnews
Class JNewsManager
- java.lang.Object
-
- com.jalios.jcms.jnews.JNewsManager
-
- All Implemented Interfaces:
JPropertiesListener
public class JNewsManager extends java.lang.Object implements JPropertiesListener
A class managing JNews
-
-
Field Summary
Fields Modifier and Type Field Description static int
SIZEOFSTYLECSS
static int
SIZEOFSTYLECSSHEADLINES
-
Fields inherited from interface com.jalios.util.JPropertiesListener
REVISION
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAbstract(Publication pub, java.util.Locale locale, boolean raw)
Returns the abstract of a publication.static JNewsManager
getInstance()
void
propertiesChange(JProperties properties)
Invoked after properties have been modified in JCMS and save on disk.
-
-
-
Field Detail
-
SIZEOFSTYLECSS
public static final int SIZEOFSTYLECSS
- See Also:
- Constant Field Values
-
SIZEOFSTYLECSSHEADLINES
public static final int SIZEOFSTYLECSSHEADLINES
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
orchannel.getProperty
.- Specified by:
propertiesChange
in interfaceJPropertiesListener
- Parameters:
properties
- the properties which have been submitted to change
-
getAbstract
public java.lang.String getAbstract(Publication pub, java.util.Locale locale, boolean raw)
Returns the abstract of a publication.- Parameters:
pub
- A publicationlocale
- A specific geographical regionraw
- mode raw text if true- Returns:
- the field value.
-
-