Changeset 8171 for mauRepo/revitalizationProject
- Timestamp:
- 20/03/12 14:26:52 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
mauRepo/revitalizationProject/branches/MEDIN/dpws/src/main/java/ndg/services/discovery/basic/DiscoveryDictionaryDPWS.java
r8170 r8171 63 63 public final static String SPATIAL_OPERATOR_DOESNOTOVERLAP = "DoesNotOverlap"; 64 64 65 private static List<ListNames> listNames = new ArrayList<ListNames>(); 66 67 public static void refreshListNames() { 68 try { 69 synchronized (listNames) { 70 DiscoveryDictionaryDPWS.listNames.clear(); 71 DiscoveryDictionaryDPWS.listNames.addAll(EJBBeanFactory.getDiscoveryService().getAllNamesList()); 72 } 73 } catch (NdgExecutionException e) { 74 75 } 76 } 77 78 private static ListNames getListNames(String masterLabel) { 79 if (CollectionUtils.isEmpty(listNames)) { 80 refreshListNames(); 81 } 65 private static ListNames getListNames(String masterLabel) throws NdgExecutionException { 66 List<ListNames> listNames = EJBBeanFactory.getDiscoveryService().getAllNamesList(); 82 67 for (ListNames listNamesElement : listNames) { 83 68 if (listNamesElement.getLabel().equals(masterLabel)) { … … 88 73 } 89 74 90 private static ListNamesItem getListNameItem(String masterLabel, String label) {75 private static ListNamesItem getListNameItem(String masterLabel, String label) throws NdgExecutionException { 91 76 ListNames masterList = getListNames(masterLabel); 92 77 ListNamesItem defaultListNamesItem = null; … … 115 100 * @param label the reference label 116 101 * @return the proper TermTarget or the default value 117 * */ 118 public static ListNamesItem getTermType(String label) { 102 * @throws NdgExecutionException 103 * */ 104 public static ListNamesItem getTermType(String label) throws NdgExecutionException { 119 105 return getListNameItem("TermTargetList", label); 120 106 } … … 124 110 * @param label the reference label 125 111 * @return the proper MetadataFormat or the default value 126 * */ 127 public static ListNamesItem getMetadataFormat(String label) { 112 * @throws NdgExecutionException 113 * */ 114 public static ListNamesItem getMetadataFormat(String label) throws NdgExecutionException { 128 115 return getListNameItem("MetadataFormatList", label); 129 116 } … … 133 120 * @param label the reference label 134 121 * @return the proper OriginalFormat or the default value 135 * */ 136 public static ListNamesItem getOriginalFormat(String label) { 122 * @throws NdgExecutionException 123 * */ 124 public static ListNamesItem getOriginalFormat(String label) throws NdgExecutionException { 137 125 return getListNameItem("OriginalFormatList", label); 138 126 } … … 142 130 * @param label the reference label 143 131 * @return the proper SpatialReferenceSystem or the default value 144 * */ 145 public static ListNamesItem getSpatialReferenceSystem(String label) { 132 * @throws NdgExecutionException 133 * */ 134 public static ListNamesItem getSpatialReferenceSystem(String label) throws NdgExecutionException { 146 135 return getListNameItem("SpatialReferenceSystemList", label); 147 136 } … … 151 140 * @param label the reference label 152 141 * @return the proper SpatialOperator or the default value 153 * */ 154 public static ListNamesItem getSpatialOperator(String label) { 142 * @throws NdgExecutionException 143 * */ 144 public static ListNamesItem getSpatialOperator(String label) throws NdgExecutionException { 155 145 return getListNameItem("SpatialOperatorList", label); 156 146 } … … 160 150 * @param label the reference label 161 151 * @return the proper RecordDetail or the default value 162 * */ 163 public static ListNamesItem getRecordDetails(String label){ 152 * @throws NdgExecutionException 153 * */ 154 public static ListNamesItem getRecordDetails(String label) throws NdgExecutionException{ 164 155 return getListNameItem("RecordDetailsList", label); 165 156 } … … 169 160 * @param label the reference label 170 161 * @return the proper DateRangeTarget or the default value 171 * */ 172 public static ListNamesItem getDateRangeTarget(String label) { 162 * @throws NdgExecutionException 163 * */ 164 public static ListNamesItem getDateRangeTarget(String label) throws NdgExecutionException { 173 165 return getListNameItem("DateRangeTargetList", label); 174 166 } … … 178 170 * @param label the reference label 179 171 * @return the proper TemporalOperator or the default value 180 * */ 181 public static ListNamesItem getTemporalOperator(String label) { 172 * @throws NdgExecutionException 173 * */ 174 public static ListNamesItem getTemporalOperator(String label) throws NdgExecutionException { 182 175 return getListNameItem("TemporalOperatorList", label); 183 176 } … … 187 180 * @param label the reference label 188 181 * @return the proper OrderByField or the default value 189 * */ 190 public static ListNamesItem getOrderByField(String label){ 182 * @throws NdgExecutionException 183 * */ 184 public static ListNamesItem getOrderByField(String label) throws NdgExecutionException{ 191 185 return getListNameItem("OrderByFieldList", label); 192 186 } … … 196 190 * @param label the reference label 197 191 * @return the proper OrderDirection or the default value 198 * */ 199 public static ListNamesItem getOrderDirection(String label){ 192 * @throws NdgExecutionException 193 * */ 194 public static ListNamesItem getOrderDirection(String label) throws NdgExecutionException{ 200 195 return getListNameItem("OrderDirectionList", label) ; 201 196 } … … 205 200 * @param label the reference label 206 201 * @return the proper Scope or the default value 207 * */ 208 public static ListNamesItem getScope(String label){ 202 * @throws NdgExecutionException 203 * */ 204 public static ListNamesItem getScope(String label) throws NdgExecutionException{ 209 205 return getListNameItem("ScopeList", label) ; 210 206 }
Note: See TracChangeset
for help on using the changeset viewer.