Class CrawledModelRecord

  • All Implemented Interfaces:
    Serializable
    Direct Known Subclasses:
    Change

    public class CrawledModelRecord
    extends de.unirostock.sems.morre.client.dataholder.CrawledModel
    See Also:
    Serialized Form
    • Constructor Detail

      • CrawledModelRecord

        public CrawledModelRecord​(de.unirostock.sems.morre.client.dataholder.CrawledModel model)
        Creates a new CrawledModelRecord based on a simple CrawledModel Dataholder.
        Parameters:
        model - the model
      • CrawledModelRecord

        public CrawledModelRecord​(String fileId,
                                  String versionId,
                                  Date versionDate,
                                  Date crawledDate)
    • Method Detail

      • extendDataholder

        public static CrawledModelRecord extendDataholder​(de.unirostock.sems.morre.client.dataholder.CrawledModel model)
      • isAvailable

        public boolean isAvailable()
        Checks if the model dataholder is valid.
        Returns:
        true, if is available
      • getMeta

        public String getMeta​(String metaField)
        Returns the value of a meta field or null.
        Parameters:
        metaField - the meta field
        Returns:
        the meta
      • setMeta

        public void setMeta​(String metaField,
                            String value)
        Sets the value of a meta field and overrides the previous value.
        Parameters:
        metaField - the meta field
        value - the value
      • getVersionDate

        public Date getVersionDate()
        Returns the parsed VersionDate if it is set, or null.
        Returns:
        the version date
      • setVersionDate

        public void setVersionDate​(Date versionDate)
        Sets the VersionDate in the Meta Field.
        Parameters:
        versionDate - the version date
      • getCrawledDate

        public Date getCrawledDate()
        Returns the parsed CrawledDate if it is set, or null.
        Returns:
        the crawled date
      • setCrawledDate

        public void setCrawledDate​(Date crawledDate)
        Sets the CrawledDate in the Meta Field.
        Parameters:
        crawledDate - the crawled date
      • addParent

        public void addParent​(String parentFileId,
                              String parentVersionId)
        Adds a parent to this model.
        Parameters:
        parentFileId - the parent file id
        parentVersionId - the parent version id
      • addParent

        public void addParent​(String parentVersionId)
        Adds a parent to this model with the same fileId.
        Parameters:
        parentVersionId - the parent version id