@Test public void testGetMappedOmsAccessCode() { assertEquals("100", OmsCodeToMetsMapping.getMappedOmsAccessCode("ACR_OPA")); assertEquals("200", OmsCodeToMetsMapping.getMappedOmsAccessCode("ACR_OSR")); assertEquals("300", OmsCodeToMetsMapping.getMappedOmsAccessCode("ACR_ONS")); assertEquals("400", OmsCodeToMetsMapping.getMappedOmsAccessCode("ACR_RES")); assertEquals("400", OmsCodeToMetsMapping.getMappedOmsAccessCode("ACR_RES")); assertNull(OmsCodeToMetsMapping.getMappedOmsAccessCode("Some Junk")); assertNull(OmsCodeToMetsMapping.getMappedOmsAccessCode(null)); }
public static String getMappedOmsAccessCode(String omsAccessCodeId) { if (omsObjectAccessRestrictionMap.containsKey(omsAccessCodeId) == false) return null; return String.valueOf(omsObjectAccessRestrictionMap.get(omsAccessCodeId)); }
OmsCodeToMetsMapping { public static String getMappedOmsAccessCode(String omsAccessCodeId) { if (omsObjectAccessRestrictionMap.containsKey(omsAccessCodeId) == false) return null; return String.valueOf(omsObjectAccessRestrictionMap.get(omsAccessCodeId)); } }
OmsCodeToMetsMapping { public static String getMappedOmsAccessCode(String omsAccessCodeId) { if (omsObjectAccessRestrictionMap.containsKey(omsAccessCodeId) == false) return null; return String.valueOf(omsObjectAccessRestrictionMap.get(omsAccessCodeId)); }  }
OmsCodeToMetsMapping { public static String getMappedOmsAccessCode(String omsAccessCodeId) { if (omsObjectAccessRestrictionMap.containsKey(omsAccessCodeId) == false) return null; return String.valueOf(omsObjectAccessRestrictionMap.get(omsAccessCodeId)); }  static ObjectTypeCodeMapping getObjectTypeCodeMapping(String omsTypeCode); static String getMappedOmsAccessCode(String omsAccessCodeId); static void setDNX_OPEN_ACCESS(String omsCode); static void setOmsAccessRestrictionCode(String omsAccessCodeId, String omsCode); }
OmsCodeToMetsMapping { public static String getMappedOmsAccessCode(String omsAccessCodeId) { if (omsObjectAccessRestrictionMap.containsKey(omsAccessCodeId) == false) return null; return String.valueOf(omsObjectAccessRestrictionMap.get(omsAccessCodeId)); }  static ObjectTypeCodeMapping getObjectTypeCodeMapping(String omsTypeCode); static String getMappedOmsAccessCode(String omsAccessCodeId); static void setDNX_OPEN_ACCESS(String omsCode); static void setOmsAccessRestrictionCode(String omsAccessCodeId, String omsCode); static final String OT_IMG; static final String OT_MON; static final String OT_SER; static final String OT_SND; static final String OT_TXT; static final String OT_VID; static final String OT_WWW; static final String OT_NULL; static final String UnpublishedIE; }