Class ScheduledPersistedActionImpl

    • Constructor Detail

      • ScheduledPersistedActionImpl

        protected ScheduledPersistedActionImpl​(Action action)
    • Method Detail

      • getPersistedAtNodeRef

        protected org.alfresco.service.cmr.repository.NodeRef getPersistedAtNodeRef()
        Get the persisted nodeRef for this schedule
      • setPersistedAtNodeRef

        protected void setPersistedAtNodeRef​(org.alfresco.service.cmr.repository.NodeRef nodeRef)
        Record where this schedule is persisted
      • setScheduleLastExecutedAt

        public void setScheduleLastExecutedAt​(java.util.Date executedAt)
        Record when the scheduled action was last run
      • getScheduleStart

        public java.util.Date getScheduleStart()
        Get the first date that the action should be run on or after, or null if it should start shortly after each startup.
        Specified by:
        getScheduleStart in interface SchedulableAction
      • setScheduleStart

        public void setScheduleStart​(java.util.Date startDate)
        Sets the first date that the action should be run on or after. Set to null if the action should be run shortly after each startup.
        Specified by:
        setScheduleStart in interface SchedulableAction
      • getScheduleEnd

        protected java.util.Date getScheduleEnd()
        Not yet publicly available - get the date after which the action should no longer be run.
      • setScheduleEnd

        protected void setScheduleEnd​(java.util.Date endDate)
        Not yet publicly available - set the date after which the action should no longer be run.
      • setScheduleIntervalCount

        public void setScheduleIntervalCount​(java.lang.Integer count)
        Sets how many periods should be waited between each execution, or null if it shouldn't be repeated.
        Specified by:
        setScheduleIntervalCount in interface SchedulableAction
      • getScheduleInterval

        public java.lang.String getScheduleInterval()
        Returns the interval in a form like 1Day (1 day) or 2Hour (2 hours), or null if a period+count hasn't been set
        Specified by:
        getScheduleInterval in interface ScheduledPersistedAction
      • asTrigger

        public org.quartz.Trigger asTrigger()
        Returns a Quartz trigger definition based on the current scheduling details. May only be called once this object has been persisted