Class ImportSource

    • Constructor Detail

      • ImportSource

        public ImportSource()
        Create an empty site
        Since:
        jcms-5.7.2
      • ImportSource

        public ImportSource​(java.lang.String id,
                            JProperties prop)
        Create a site from properties
        Parameters:
        id - the site's id
        prop - the properties
        Since:
        jcms-5.7.2
    • Method Detail

      • importData

        public ImportStatus importData()
        Import data from this site.
        Returns:
        an ImportStatus that contains information about this import.
        Since:
        jcms-5.7.2
      • resetLastImportDate

        public void resetLastImportDate()
        Reset the last import date. The next import will be a full-import.
        Since:
        jcms-5.7.2
      • getHost

        public java.lang.String getHost()
        Returns the host bound to the URL
        Returns:
        the host bound to the URL (or an empty String if there is no valid host for this ImportSource)
        Since:
        jcms-5.7.2
      • getNextImportDate

        public java.util.Date getNextImportDate()
        Returns the next import date.
        Returns:
        the next import date.
        Since:
        jcms-5.7.2
      • getLastImportDate

        public java.util.Date getLastImportDate()
        Returns the last import date.
        Returns:
        the last import date.
        Since:
        jcms-5.7.2
      • getLastImportStatus

        public ImportStatus getLastImportStatus()
        Returns the last import status (since JCMS last restart).
        Returns:
        the last import status.
        Since:
        jcms-5.7.2
      • setLastImportStatus

        public void setLastImportStatus​(ImportStatus status)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getName

        public java.lang.String getName()
        Returns:
        the name
        Since:
        jcms-5.7.2
      • setName

        public void setName​(java.lang.String name)
        Parameters:
        name - the name to set
        Since:
        jcms-5.7.2
      • getUrl

        public java.lang.String getUrl()
        Returns:
        the url
        Since:
        jcms-5.7.2
      • setUrl

        public void setUrl​(java.lang.String url)
        Parameters:
        url - the url to set
        Since:
        jcms-5.7.2
      • getScheduleCron

        public java.lang.String getScheduleCron()
        Returns:
        the scheduleCron
        Since:
        jcms-5.7.2
      • setScheduleCron

        public void setScheduleCron​(java.lang.String scheduleCron)
        Parameters:
        scheduleCron - the scheduleCron to set
        Since:
        jcms-5.7.2
      • getScheduleFrequency

        public int getScheduleFrequency()
        Returns:
        the scheduleFrequency
        Since:
        jcms-5.7.2
      • setScheduleFrequency

        public void setScheduleFrequency​(int scheduleFrequency)
        Parameters:
        scheduleFrequency - the scheduleFrequency to set
        Since:
        jcms-5.7.2
      • isScheduleEnabled

        public boolean isScheduleEnabled()
        Returns:
        true if isScheduleEnabled
        Since:
        jcms-5.7.2
      • setScheduleEnabled

        public void setScheduleEnabled​(boolean isScheduleEnabled)
        Parameters:
        isScheduleEnabled - the isScheduleEnabled to set
        Since:
        jcms-5.7.2
      • getId

        public java.lang.String getId()
        Returns:
        the id
        Since:
        jcms-5.7.2
      • setId

        public void setId​(java.lang.String id)
        Parameters:
        id - the id to set
        Since:
        jcms-5.7.2
      • getImportOptions

        public ImportOptions getImportOptions()
        Returns the ImportOptions.
        Returns:
        the ImportOptions.
        Since:
        jcms-5.7.3
      • setImportOptions

        public void setImportOptions​(ImportOptions importOptions)
        Set the ImportOptions
        Parameters:
        importOptions - the ImportOptions to set.
        Since:
        jcms-5.7.3