Show or hide items in a folder based on custom rules in Apex

For security or other reasons, you may need to hide or filter files/folders displayed in the sFiles. See the article below on how you can leverage the Security Method feature to achieve this.

Title
Show or hide items in a folder based on custom rules in Apex
URL Name
Show-or-hide-items-in-a-folder-based-on-custom-rules-in-Apex
Article Body
Security