Interface ExportRuleSet

    • Method Detail

      • setDefaultPromotionName

        void setDefaultPromotionName()
        Sets the default name for a promotion ExportRuleSet Sets the default name for a promotion ExportRuleSet
      • getExportedItems

        RWIterable<com.redwood.scheduler.api.export.ExportedItem> getExportedItems()
        This method returns a RWIterable with all the items that this ExportRuleSet would export.
        Specified by:
        getExportedItems in interface ExportRuleSetComp
        Returns:
        Returns an RWIterable <ExportedItem> with all items that should be exported with this exportRuleSet. The items come from the list of items and the rules of this exportRuleSet.
      • getExports

        RWIterable<Export> getExports()
        Get an RWIterable over an ordered collection of Exports. If the collection is empty, an empty iterator will be returned, that is, this method will never return null. Export rule-set defining what to include in this export.
        Specified by:
        getExports in interface ExportRuleSetComp
        Returns:
        An RWIterable over an ordered collection of Export objects .
      • getExportRules

        RWIterable<ExportRule> getExportRules()
        Get an RWIterable over a collection of ExportRules, the collection will be ordered by UniqueId. If the collection is empty, an empty iterator will be returned, that is, this method will never return null. Set of ExportRules that make up the ExportRuleSet.
        Specified by:
        getExportRules in interface ExportRuleSetComp
        Returns:
        An RWIterable over a collection of ExportRule objects , the collection will be ordered by UniqueId.
      • getExportRuleByName

        ExportRule getExportRuleByName​(String name)
        Get the ExportRule by NameExportRuleSet.
        Parameters:
        name -
        Returns:
        the ExportRule, or null if it could not be found
      • checkCreatePrivilege

        RequiredPermission checkCreatePrivilege()
        Check whether or not the create action can be performed on this object.
        Returns:
        a RequiredPermission instance indicating whether the current user has the privilege. To check this, use isAllowed() on the returned permission.
      • checkViewPrivilege

        RequiredPermission checkViewPrivilege()
        Check whether or not the view action can be performed on this object.
        Returns:
        a RequiredPermission instance indicating whether the current user has the privilege. To check this, use isAllowed() on the returned permission.
      • checkEditPrivilege

        RequiredPermission checkEditPrivilege()
        Check whether or not the edit action can be performed on this object.
        Returns:
        a RequiredPermission instance indicating whether the current user has the privilege. To check this, use isAllowed() on the returned permission.
      • checkDeletePrivilege

        RequiredPermission checkDeletePrivilege()
        Check whether or not the delete action can be performed on this object.
        Returns:
        a RequiredPermission instance indicating whether the current user has the privilege. To check this, use isAllowed() on the returned permission.