I am looking for a custom policy implementation for an item to expire in a custom list (and not in a document library).
This policy should be editable on an element by element basis and calculate the expiration date based on user rules, such as: number of hits, expiration time, or any aggregation of these two rules above. Due to this granularity, I cannot use the default expiration policy model (or implement a custom one), as well as the default check in my expiration policy.
Since the items are arranged in folders and subfolders, I would like to apply policies hierarchically (similar to the OOTB permission model).
My solution would be to create custom content types for folders and items to include a column that will contain serialized rules, while access to this βruleβ will be manually synchronized from code. The user form Infopath will be used to edit the attached rules for each entry in the list (whether it is a folder or an item), and this data will be used by a special page of the application to provide access to the item or not (based on an additional field element, it also does the actual work for each item). Although Iβm not quite sure that the above solution will be approved (company policy may forbid me to edit the Global.asax file for the synchronization file for the synchronization scheme), I wonder if anyone can come up with a better architecture for this requirement?
source share