Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add configuration option to block deletion of non-empty folders #1

Open
jpotts opened this issue Feb 2, 2017 · 2 comments
Open

Add configuration option to block deletion of non-empty folders #1

jpotts opened this issue Feb 2, 2017 · 2 comments

Comments

@jpotts
Copy link
Owner

jpotts commented Feb 2, 2017

If you set an expiration date on a folder, the action will delete it when it expires, even if the folder contains children. This is how the add-on was designed, but there may be use cases where that is not preferred. Maybe we need a configuration option, either on a global basis or a folder-by-folder basis (a new property on the expirable aspect) that will only allow the delete if the folder is empty.

@martins07
Copy link

Hi Jeff, I hope you are well. I recommended your development and download the two amps you give in the Git. Install them very well, create a business rule and I get your option, BUT, do not find the option in the folder to add the expiration date. My alfresco is 5.1 201606 community. I hope you can help me and I thank you for sharing this development YOURS. Thank you very much.

@jpotts
Copy link
Owner Author

jpotts commented Mar 11, 2017

@martins07 Your comment does not seem relevant to this issue, but I will try to help you. If you use this code as-is, the expiration date is not editable. It will also not show up when the form is in edit mode. It only shows up in view mode. The expiration date property is meant to be set using a rule. If you have added the cxme:expirable aspect to a document or to a folder, you should see a property that displays whatever you set in the cxme:expirationDate property. If you would like that property to be editable, change the Share config in this file.

If you have further questions or comments please create a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants