Interface SchedulerEntityAction

    • Method Detail

      • isEnabled

        boolean isEnabled()
        Get the value for Enabled. (Whether this action is currently enabled or not.)
        Returns:
        the field
        Throws:
        com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException - This will be thrown if this method is called while the object is not attached to a session.
      • getSource

        String getSource()
        Get the value for Source. (Source code for the action.) This value is mandatory, and therefore will not be null if this object has been retrieved from the database.
        Returns:
        the field
        Throws:
        com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException - This will be thrown if this method is called while the object is not attached to a session.
      • getStubSource

        String getStubSource()
        Get the value for StubSource. (The source for the stub of the action.) This value is mandatory, and therefore will not be null if this object has been retrieved from the database.
        Returns:
        the field
        Throws:
        com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException - This will be thrown if this method is called while the object is not attached to a session.
      • setEnabled

        void setEnabled​(boolean newEnabled)
        Set the value for Enabled. (Whether this action is currently enabled or not.)
        Parameters:
        newEnabled - the new value for Enabled.
        Throws:
        com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException - This will be thrown if this method is called while the object is not attached to a session.
      • setSource

        void setSource​(String newSource)
        Set the value for Source. (Source code for the action.) This value is mandatory.
        Parameters:
        newSource - the new value for Source. If this is null, then the object cannot be persisted.
        Throws:
        com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException - This will be thrown if this method is called while the object is not attached to a session.
      • getActionSubject

        Subject getActionSubject()
        Get the ActionSubject.
        Returns:
        ActionSubject
        Throws:
        com.redwood.scheduler.api.exception.ObjectDeletedException - If this method is called when the object has been marked for deletion.
        com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException - If this method is called when the object has been removed from it's session.
      • setActionSubject

        void setActionSubject​(Subject newActionSubject)
        Set the value for ActionSubject. This value is optional.
        Parameters:
        newActionSubject - is the object to set ActionSubject to. Who does this action execute as?