You can create in your DAO a method like findByTCMURI
to search for your publish action based on the page tcm uri. The code would be something like this:
public PublishAction findByTCMURI(String tcmURI) throws StorageException {
StringBuilder queryBuilder = new StringBuilder();
queryBuilder.append("from PublishAction pa where pa.tcmuri = :tcmuri");
Map<String, Object> queryParams = new HashMap<String, Object>();
queryParams.put("tcmuri", tcmURI);
return executeQuerySingleResult(queryBuilder.toString(), queryParams);
}
Should do the trick. Hope this helps.