To compare and publish a document, it must have a required realizes relationship between the class definition of the version and the ISPFAuthPublishableDocumentVersion interface definition. With this interface on the class, the compare and publish snapshot methods are available if the conditions on the methods are met.