Class TrashcanPatch

java.lang.Object
org.alfresco.repo.admin.patch.AbstractPatch
fr.becpg.repo.admin.patch.AbstractBeCPGPatch
fr.becpg.repo.admin.patch.TrashcanPatch
All Implemented Interfaces:
org.alfresco.repo.admin.patch.Patch, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationEventPublisherAware

public class TrashcanPatch extends AbstractBeCPGPatch

TrashcanPatch class.

Author:
matthieu
  • Field Details

    • logger

      private static final org.apache.commons.logging.Log logger
    • MSG_SUCCESS

      private static final String MSG_SUCCESS
      See Also:
    • keepPeriod

      private Duration keepPeriod
  • Constructor Details

    • TrashcanPatch

      public TrashcanPatch()
  • Method Details

    • setKeepPeriod

      public void setKeepPeriod(String keepPeriod)

      Setter for the field keepPeriod.

      Parameters:
      keepPeriod - a String object
    • applyInternal

      protected String applyInternal() throws Exception
      Specified by:
      applyInternal in class org.alfresco.repo.admin.patch.AbstractPatch
      Throws:
      Exception
    • olderThanDaysToKeep

      private boolean olderThanDaysToKeep(org.alfresco.service.cmr.repository.NodeRef node)