Class DispositionScheduleService


  • @Service
    public class DispositionScheduleService
    extends BaseAPI
    Service for different disposition schedule actions
    Since:
    2.6.2
    Author:
    jcule, cagache
    • Constructor Detail

      • DispositionScheduleService

        public DispositionScheduleService()
    • Method Detail

      • addRetainAfterPeriodStep

        public void addRetainAfterPeriodStep​(String categoryName,
                                             String period)
        Helper method for adding a retain after period step
        Parameters:
        categoryName - the category in whose schedule the step will be added
        period - for what period the item will be retained
      • addCutOffImmediatelyStep

        public void addCutOffImmediatelyStep​(String categoryName)
        Helper method for adding a cut off immediately after created date step
        Parameters:
        categoryName - the category in whose schedule the step will be added
      • addCutOffAfterPeriodStep

        public void addCutOffAfterPeriodStep​(String categoryName,
                                             String period,
                                             RetentionPeriodProperty periodProperty)
        Helper method for adding a cut off after period step
        Parameters:
        categoryName - the category in whose schedule the step will be added
        period - the period that needs to pass from periodProperty for cut off to be available
        periodProperty - the property of the dispositioned item that is used to calculate the "as of" period
      • addDestroyWithGhostingImmediatelyAfterCutOff

        public void addDestroyWithGhostingImmediatelyAfterCutOff​(String categoryName)
        Helper method for adding a destroy step with ghosting immediately after CUT OFF date
        Parameters:
        categoryName - the category in whose schedule the step will be added
      • addDestroyWithGhostingAfterPeriodStep

        public void addDestroyWithGhostingAfterPeriodStep​(String categoryName,
                                                          String period,
                                                          RetentionPeriodProperty periodProperty)
        Helper method for adding a destroy step with ghosting after period
        Parameters:
        categoryName - the category in whose schedule the step will be added
        period - the period that needs to pass for destroy to be available
        periodProperty - the property of the dispositioned item that is used to calculate the "as of" period
      • addDestroyWithoutGhostingAfterPeriodStep

        public void addDestroyWithoutGhostingAfterPeriodStep​(String categoryName,
                                                             String period,
                                                             RetentionPeriodProperty periodProperty)
        Helper method for adding a destroy step without ghosting after period
        Parameters:
        categoryName - the category in whose schedule the step will be added
        period - the period that needs to pass for destroy to be available
        periodProperty - the property of the dispositioned item that is used to calculate the "as of" period
      • addCutOffAfterEventStep

        public void addCutOffAfterEventStep​(String categoryName,
                                            String events)
        Helper method for adding a cut off after an event occurs step
        Parameters:
        categoryName - the category in whose schedule the step will be added
        events - the events that need to occur for cut off to be available
      • addTransferAfterEventStep

        public void addTransferAfterEventStep​(String categoryName,
                                              String location,
                                              String events)
        Helper method for adding a transfer after an event occurs step
        Parameters:
        categoryName - the category in whose schedule the step will be added
        location - the transfer location
        events - the events that need to occur for transfer to be available
      • addAccessionStep

        public void addAccessionStep​(String categoryName,
                                     Boolean timeOrEvent,
                                     String events,
                                     String period,
                                     RetentionPeriodProperty periodProperty,
                                     Boolean combineConditions)
        Helper method for adding an accession step
        Parameters:
        timeOrEvent -
        events -
        period -
        periodProperty -
        combineConditions -
      • createCategoryRetentionSchedule

        public void createCategoryRetentionSchedule​(org.alfresco.utility.model.UserModel user,
                                                    String categoryName,
                                                    Boolean appliedToRecords)
        Helper method to create retention schedule with general fields for the given category as user and apply it to the records/ record folders
        Parameters:
        user - the user who creates the retention schedule
        categoryName - the category on which is created the retention schedule
        appliedToRecords - true if is applied on records, false if is applied on folders
      • createCategoryRetentionSchedule

        public void createCategoryRetentionSchedule​(String categoryName,
                                                    Boolean appliedToRecords)
        Helper method to create retention schedule with general fields for the given category as admin and apply it to the records/record folders
        Parameters:
        categoryName - the category on which is created the retention schedule
        appliedToRecords - true if is applied on records, false if is applied on folders