I'm trying to access the publication data (PUBLICATION_PATH) by its publicationId in a java class with the deployer API, but I'm not able to find any class or method to map the Publication object.
With odata seems too complicated to such a little need, and I'm not sure I can access de odata webservice.
" ... new Publication(pubId); " creates an empty publication.
Is there a way to access de persistence model of the database? My solution is in the following class/method:
JPAPublicationDAO.findById(int publicationId)
In the public API the only class of JPA is "JPAQueryDAO". So I don't know if it's possible to access JPAPublicationDAO.
Does anyone knows how can I do it?