comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java @ 1137:073c36bb94ed

Minor cosmetics flys-artifacts/trunk@2658 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 07 Sep 2011 07:37:22 +0000
parents ea80e652f033
children 28154920e0b3
comparison
equal deleted inserted replaced
1136:8da5f5a9ed3c 1137:073c36bb94ed
711 } 711 }
712 catch (IllegalArgumentException iae) { } 712 catch (IllegalArgumentException iae) { }
713 713
714 return new ArrayList<Output>(); 714 return new ArrayList<Output>();
715 } 715 }
716
716 717
717 protected List<Output> getOutputForState(DefaultState state) { 718 protected List<Output> getOutputForState(DefaultState state) {
718 List<Output> list = state.getOutputs(); 719 List<Output> list = state.getOutputs();
719 if (list == null || list.size() == 0) { 720 if (list == null || list.size() == 0) {
720 logger.debug("-> No output modes for this state."); 721 logger.debug("-> No output modes for this state.");
826 } 827 }
827 828
828 return compute(context, hash, current, type, generateFacets); 829 return compute(context, hash, current, type, generateFacets);
829 } 830 }
830 831
832
833 /**
834 * @param key key of state
835 * @param state state
836 * @param type Type of compute
837 * @param generateFacets Whether new facets shall be generated.
838 */
831 public Object compute( 839 public Object compute(
832 CallContext context, 840 CallContext context,
833 String key, 841 String key,
834 DefaultState state, 842 DefaultState state,
835 ComputeType type, 843 ComputeType type,
836 boolean generateFacets 844 boolean generateFacets
837 ) { 845 ) {
838 String stateID = state.getID(); 846 String stateID = state.getID();
839 847
840 List<Facet> fs = generateFacets ? new ArrayList<Facet>() : null; 848 List<Facet> fs = (generateFacets) ? new ArrayList<Facet>() : null;
841 849
842 try { 850 try {
843 Cache cache = CacheFactory.getCache(COMPUTING_CACHE); 851 Cache cache = CacheFactory.getCache(COMPUTING_CACHE);
844 852
845 Object old = null; 853 Object old = null;

http://dive4elements.wald.intevation.org