Class AssetNote

    • Field Detail

      • noteBean

        protected Note noteBean
    • Constructor Detail

      • AssetNote

        public AssetNote​(Note noteBean)
        Bean constructor
        Parameters:
        noteBean - bean containing the properties
      • AssetNote

        public AssetNote​(AssetDescriptor parentAsset,
                         Note noteBean)
        Bean constructor with parent asset
        Parameters:
        parentAsset - descriptor for parent asset
        noteBean - bean containing the properties
      • AssetNote

        public AssetNote​(AssetDescriptor parentAsset,
                         AssetNote templateNote)
        Copy/clone constructor.
        Parameters:
        parentAsset - descriptor for parent asset
        templateNote - note to copy
    • Method Detail

      • getNoteBean

        protected Note getNoteBean()
        Return the bean with all of the properties.
        Returns:
        note bean
      • getText

        public String getText()
        Return the text of the note.
        Returns:
        String text
      • getLastUpdate

        public Date getLastUpdate()
        Return the last time a change was made to this note.
        Returns:
        Date last update
      • getUser

        public String getUser()
        Return the user id of the person who created the note. Null means the user id is not known.
        Returns:
        String liking user
      • toString

        public String toString()
        Standard toString method.
        Overrides:
        toString in class AssetReferenceable
        Returns:
        print out of variables in a JSON-style
      • equals

        public boolean equals​(Object objectToCompare)
        Compare the values of the supplied object with those stored in the current object.
        Overrides:
        equals in class AssetReferenceable
        Parameters:
        objectToCompare - supplied object
        Returns:
        boolean result of comparison