Requirement:
I have a requirement, where i need to archive some of the nt:file
nodes in the repository, which can be recovered at some later stage.
These nt:file
nodes once archived, should not be visible if searched in the repository.
But, once recovered, they should become searchable.
Approach:
Move the folders to be archived under a folder e.g Temp
under the same workspace
. And once the user tries to recover the node, it should be moved back to where it existed. Does it seem like a right approach?
- If someone has already implemented such a functionality, one can share their experience and approaches, or
- What are the possible options i have to implement such functionality?
Moving those nodes under a specific /archive folder sounds good to me.
You can then use access control to make them invisible to users, and implement services to move things in and out of the archive in a controlled way.
To allow users to un-archive the documents, you could leave a "shadow" node behind when moving to archive, with enough information to let authorized users un-archive documents.