comparison artifact-database/src/main/java/de/intevation/artifactdatabase/ArtifactDatabaseImpl.java @ 294:b530e83acf2e

Adapted the signature of Hook.execute() which now retrieves a Document as third parameter. artifacts/trunk@2333 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 14 Jul 2011 14:41:00 +0000
parents a367a0d011af
children 694d818e99b2
comparison
equal deleted inserted replaced
293:a367a0d011af 294:b530e83acf2e
786 Artifact art = artifact.getArtifact(); 786 Artifact art = artifact.getArtifact();
787 Document res = art.advance(target, cc); 787 Document res = art.advance(target, cc);
788 788
789 if (postAdvanceHooks != null) { 789 if (postAdvanceHooks != null) {
790 for (Hook hook: postAdvanceHooks) { 790 for (Hook hook: postAdvanceHooks) {
791 hook.execute(art, cc); 791 hook.execute(art, cc, res);
792 } 792 }
793 } 793 }
794 794
795 return res; 795 return res;
796 } 796 }
819 Artifact art = artifact.getArtifact(); 819 Artifact art = artifact.getArtifact();
820 Document res = art.feed(data, cc); 820 Document res = art.feed(data, cc);
821 821
822 if (postFeedHooks != null) { 822 if (postFeedHooks != null) {
823 for (Hook hook: postFeedHooks) { 823 for (Hook hook: postFeedHooks) {
824 hook.execute(art, cc); 824 hook.execute(art, cc, res);
825 } 825 }
826 } 826 }
827 827
828 return res; 828 return res;
829 } 829 }

http://dive4elements.wald.intevation.org