comparison artifacts/src/main/java/org/dive4elements/river/artifacts/HYKArtifact.java @ 8202:e4606eae8ea5

sed src/**/*.java 's/logger/log/g'
author Sascha L. Teichmann <teichmann@intevation.de>
date Fri, 05 Sep 2014 12:58:17 +0200
parents 8d5ca5175038
children 0a5239a1e46e
comparison
equal deleted inserted replaced
8201:4b8c5a08de04 8202:e4606eae8ea5
38 public static final String HYK_ID = "hyk_artifact.data.id"; 38 public static final String HYK_ID = "hyk_artifact.data.id";
39 39
40 /** Name of data item keeping the km of cs master. */ 40 /** Name of data item keeping the km of cs master. */
41 public static final String HYK_KM = "hyk_artifact.data.km"; 41 public static final String HYK_KM = "hyk_artifact.data.km";
42 42
43 /** Own logger. */ 43 /** Own log. */
44 private static final Logger logger = 44 private static final Logger log =
45 Logger.getLogger(HYKArtifact.class); 45 Logger.getLogger(HYKArtifact.class);
46 46
47 static { 47 static {
48 // TODO: Move to configuration. 48 // TODO: Move to configuration.
49 FacetActivity.Registry.getInstance() 49 FacetActivity.Registry.getInstance()
65 Object context, 65 Object context,
66 CallMeta callMeta, 66 CallMeta callMeta,
67 Document data, 67 Document data,
68 List<Class> loadFacets) 68 List<Class> loadFacets)
69 { 69 {
70 logger.info("HYKArtifact.setup"); 70 log.info("HYKArtifact.setup");
71 71
72 String ids = getDatacageIDValue(data); 72 String ids = getDatacageIDValue(data);
73 73
74 logger.info("HYKArtifact.setup: id is " + ids); 74 log.info("HYKArtifact.setup: id is " + ids);
75 75
76 addStringData(HYK_ID, ids); 76 addStringData(HYK_ID, ids);
77 77
78 super.setup(identifier, factory, context, callMeta, data, loadFacets); 78 super.setup(identifier, factory, context, callMeta, data, loadFacets);
79 } 79 }
111 protected void initialize( 111 protected void initialize(
112 Artifact artifact, 112 Artifact artifact,
113 Object context, 113 Object context,
114 CallMeta callMeta) 114 CallMeta callMeta)
115 { 115 {
116 logger.debug("HYKArtifact.initialize"); 116 log.debug("HYKArtifact.initialize");
117 importData((D4EArtifact)artifact, "river"); 117 importData((D4EArtifact)artifact, "river");
118 118
119 List<Facet> fs = new ArrayList<Facet>(); 119 List<Facet> fs = new ArrayList<Facet>();
120 120
121 DefaultState state = (DefaultState) getCurrentState(context); 121 DefaultState state = (DefaultState) getCurrentState(context);
122 state.computeInit(this, hash(), context, callMeta, fs); 122 state.computeInit(this, hash(), context, callMeta, fs);
123 if (!fs.isEmpty()) { 123 if (!fs.isEmpty()) {
124 logger.debug("Facets to add in HYKArtifact.initialize ."); 124 log.debug("Facets to add in HYKArtifact.initialize .");
125 addFacets(getCurrentStateId(), fs); 125 addFacets(getCurrentStateId(), fs);
126 } 126 }
127 else { 127 else {
128 logger.debug("No facets to add in HYKArtifact.initialize (" 128 log.debug("No facets to add in HYKArtifact.initialize ("
129 + state.getID() + ")."); 129 + state.getID() + ").");
130 } 130 }
131 } 131 }
132 } 132 }
133 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 133 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org