Interface ExportRule

    • Method Detail

      • getFilterObjectType

        ObjectDefinition getFilterObjectType()
        Get the value for FilterObjectType. (This is the object type for the objects to be filtered by this rule. Note that setting a new object type will create a QueryFilter if there no QueryFilter was set. All conditions that were already specified will be removed if the object type is changed. )
        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:
        ExportRuleItem.isExportContents(), isExportContents()
      • getFilter

        QueryFilter getFilter()
        Get the value for Filter. (Which query-filter this rule uses to select objects for export.)
        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.
      • setFilterObjectType

        void setFilterObjectType​(ObjectDefinition newFilterObjectType)
        Set the value for FilterObjectType. (This is the object type for the objects to be filtered by this rule. Note that setting a new object type will create a QueryFilter if there no QueryFilter was set. All conditions that were already specified will be removed if the object type is changed. ) This value is optional.
        Parameters:
        newFilterObjectType - the new value for FilterObjectType.
        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:
        ExportRuleItem.setExportContents(boolean), 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.
      • 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:
        ExportRuleItem.getExportRuleSet(), getExportRuleSet()