Facilitates flagging content for expiration. Includes an aspect, an action, and a scheduled job.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
expirable-content-repo
expirable-content-share
integration-tests
src/test
.gitignore
LICENSE
alfresco-expirable-content.iml
debug.bat
debug.sh
pom.xml
readme.md
run.bat
run.sh

readme.md

Alfresco Expirable Content

This add-on gives you the ability to add an expiration date to content. When the expiration date is in the past, the content is deleted.

The expiration date is displayed but is not editable in the Share UI. That's because this property is intended to be set by a workflow, folder rule, script or some other API. If you let anyone edit that property, someone who ordinarily might not be able to delete a document could delete something simply by adjusting the expiration date.

The add-on comes with a scheduled job that will run periodically to delete expired content. By default, the job runs every 5 minutes. To change that, set the following in alfresco-global.properties:

```
com.conexiam.expirable.jobs.deleteExpiredContent.cronexpression=0 0/5 * * * ?
com.conexiam.expirable.jobs.deleteExpiredContent.cronstartdelay=240000
```

Any time the action runs it will write a report that lists what was deleted. The report can be found in Data Dictionary/Expirable Content Reports. That folder will be created automatically when the server starts up for the first time after the module is installed.

Manual Installation

Building this project creates two AMPs. One for the repo tier and one for the Share tier.

Copy the AMPs to the server into their respective "amps" and "amps_share" directories, then use the MMT to install them. For many installations this means switching to Alfresco Home then running bin/apply_amps.sh.