Mercurial > dive4elements > framework
comparison artifact-database/src/main/java/de/intevation/artifactdatabase/ProxyArtifact.java @ 81:e9c80fdfee13
Set new identifiers on artifacts after an artifact import.
artifacts/trunk@809 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 19 Mar 2010 14:57:23 +0000 |
parents | 48d1a9a082c2 |
children | efe752c4f8b2 |
comparison
equal
deleted
inserted
replaced
80:8447467cef86 | 81:e9c80fdfee13 |
---|---|
33 return proxied; | 33 return proxied; |
34 } | 34 } |
35 | 35 |
36 public void setProxied(Artifact proxied) { | 36 public void setProxied(Artifact proxied) { |
37 this.proxied = proxied; | 37 this.proxied = proxied; |
38 } | |
39 | |
40 public void setIdentifier(String identifier) { | |
41 this.identifier = identifier; | |
42 | |
43 if (proxied != null) | |
44 proxied.setIdentifier(identifier); | |
38 } | 45 } |
39 | 46 |
40 protected void checkReplacement(CallContext callContext) { | 47 protected void checkReplacement(CallContext callContext) { |
41 Object replacement = callContext.getContextValue(REPLACE_PROXY); | 48 Object replacement = callContext.getContextValue(REPLACE_PROXY); |
42 if (replacement instanceof Artifact) { | 49 if (replacement instanceof Artifact) { |