Current situation: there is a storage extension for pages (class MyPage extends JPAPageDAO implements PageDAO, from com.tridion.storage.dao.PageDAO and com.tridion.storage.persistence.JPAPageDAO)
I am trying to see if it is possible to get some of my logic from storage extension into templates ( I have there some things I could definitely implement in other places ) .
In the storage extension I have override for create and remove methods, and I have manged to move some of that logic to templates, identifying create and remove based on transaction.Instruction.ResolveInstruction.Purpose (Publish for create and Unpublish for remove)
I am having difficulties understanding Purpose RePublish and method update.
- Is there a way for me to determine if update (in the storage extension) will be called from Tridion templates during publishing (I presume not, but it never hurts to check).
- Also, during publishing, when is Purpose set to Republish?