Interface ExportRuleItem

    • Method Detail

      • getExportObject

        SchedulerEntity getExportObject()
        Get the value for ExportObject. (The object that will be exported.) 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.
      • isExportContents

        boolean isExportContents()
        Get the value for ExportContents. (Set whether the items should be exported recursively. )
        Specified by:
        isExportContents in interface ExportRuleSetComponent
        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.
        See Also:
        isExportContents(), ExportRule.isExportContents()
      • setExportObject

        void setExportObject​(SchedulerEntity newExportObject)
        Set the value for ExportObject. (The object that will be exported.) This value is mandatory.
        Parameters:
        newExportObject - the new value for ExportObject. 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.
      • setExportContents

        void setExportContents​(boolean newExportContents)
        Set the value for ExportContents. (Set whether the items should be exported recursively. )
        Specified by:
        setExportContents in interface ExportRuleSetComponent
        Parameters:
        newExportContents - the new value for ExportContents.
        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.
        See Also:
        setExportContents(boolean), ExportRule.setExportContents(boolean)
      • getDescriptionTranslationKey

        String getDescriptionTranslationKey()
        a description that is useful for display purposes. This might need translating by being passed to SchedulerSession.translateField(String).
        Specified by:
        getDescriptionTranslationKey in interface ExportRuleSetComponent
        Returns:
        either a description of this component or a translation key for the description of this component.
      • getObjectDefinition

        ObjectDefinition getObjectDefinition()
        Get the ObjectDefinition.
        Returns:
        ObjectDefinition
        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.
      • getExportRuleSet

        ExportRuleSet getExportRuleSet()
        Get the ExportRuleSet.
        Specified by:
        getExportRuleSet in interface ExportRuleSetComponent
        Returns:
        ExportRuleSet
        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.
        See Also:
        getExportRuleSet(), ExportRule.getExportRuleSet()
      • setObjectDefinition

        void setObjectDefinition​(ObjectDefinition newObjectDefinition)
        Set the value for ObjectDefinition. This value is mandatory.
        Parameters:
        newObjectDefinition - is the object to set ObjectDefinition to. The ObjectDefinition for the ExportRuleItem If this is null, then the object cannot be persisted.