Class AdminNotes

  • All Implemented Interfaces:
    JcmsConstants, JaliosConstants, java.io.Serializable

    public class AdminNotes
    extends java.lang.Object
    implements JcmsConstants, java.io.Serializable
    This class manage admin notes of JCMS.
    Since:
    jcms-5.5.0
    Version:
    $Revision: 107554 $
    Author:
    Olivier Jaquemet
    See Also:
    Serialized Form
    • Field Detail

      • channel

        protected transient Channel channel
      • propertiesFile

        protected transient java.io.File propertiesFile
      • properties

        protected transient JProperties properties
    • Method Detail

      • updateNote

        public void updateNote​(java.lang.String jsp,
                               java.lang.String text)
        Updates the note for the given jsp. The note is updated only if it differs from the last note of this JSP. The change is immediately store on disk.
        Parameters:
        jsp - the resource path of the jsp to which associate the note.
        text - of the note
      • get

        public java.lang.String get​(java.lang.String jsp)
        Parameters:
        jsp - the resource path of the jsp to which associate the note.
        Returns:
        the note associated with the given jsp, or empty string "" if no notes is available.
      • getInstance

        public static AdminNotes getInstance()
      • getNote

        public static void getNote​(java.lang.String jsp)
        Convenient static method to access singleton method get(String).
        See Also:
        get(String)