test_class.declarator: GLOBAL_CLIENT = SyncConstants.REST_CLIENT
test_class.modifier: private static final
test_class.original_string: private static final String GLOBAL_CLIENT = SyncConstants.REST_CLIENT;
test_class.type: String
test_class.var_name: GLOBAL_CLIENT
test_class.declarator: LOCATION_PREFERRED_CLIENT = SyncConstants.FHIR_CLIENT
test_class.modifier: private static final
test_class.original_string: private static final String LOCATION_PREFERRED_CLIENT = SyncConstants.FHIR_CLIENT;
test_class.type: String
test_class.var_name: LOCATION_PREFERRED_CLIENT
test_class.declarator: syncConfigurationServiceImpl
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private SyncConfigurationServiceImpl syncConfigurationServiceImpl;
test_class.type: SyncConfigurationServiceImpl
test_class.var_name: syncConfigurationServiceImpl
test_class.declarator: administrationService
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private AdministrationService administrationService;
test_class.type: AdministrationService
test_class.var_name: administrationService
test_class.file: api/src/test/java/org/openmrs/module/sync2/api/utils/SyncUtilsTest.java
test_class.identifier: SyncUtilsTest
test_case.body: @Test
      public void checkIfParamIsEventAction_shouldReturnFalseIfParamIsNotEventAction() {
          Assert.assertFalse(SyncUtils.checkIfParamIsEventAction("updated"));
          Assert.assertFalse(SyncUtils.checkIfParamIsEventAction("somethingElse"));
      }
test_case.class_method_signature: SyncUtilsTest.checkIfParamIsEventAction_shouldReturnFalseIfParamIsNotEventAction()
test_case.full_signature: @Test public void checkIfParamIsEventAction_shouldReturnFalseIfParamIsNotEventAction()
test_case.identifier: checkIfParamIsEventAction_shouldReturnFalseIfParamIsNotEventAction
test_case.invocations: assertFalse checkIfParamIsEventAction assertFalse checkIfParamIsEventAction
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void checkIfParamIsEventAction_shouldReturnFalseIfParamIsNotEventAction()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(SyncUtils.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(SyncUtils.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: ATOMFEED_TAG_VALUE_FIELD_NAME = "Category.term"
focal_class.modifier: private static final
focal_class.original_string: private static final String ATOMFEED_TAG_VALUE_FIELD_NAME = "Category.term";
focal_class.type: String
focal_class.var_name: ATOMFEED_TAG_VALUE_FIELD_NAME
focal_class.file: api/src/main/java/org/openmrs/module/sync2/api/utils/SyncUtils.java
focal_class.identifier: SyncUtils
focal_class.class_method_signature: SyncUtils.getLinks(String json)
focal_class.full_signature: public static Map<String, String> getLinks(String json)
focal_class.identifier: getLinks
focal_class.modifiers: public static
focal_class.parameters: (String json)
focal_class.return: Map<String, String>
focal_class.signature: Map<String, String> getLinks(String json)
focal_class.class_method_signature: SyncUtils.getParentBaseUrl(String clientName)
focal_class.full_signature: public static String getParentBaseUrl(String clientName)
focal_class.identifier: getParentBaseUrl
focal_class.modifiers: public static
focal_class.parameters: (String clientName)
focal_class.return: String
focal_class.signature: String getParentBaseUrl(String clientName)
focal_class.class_method_signature: SyncUtils.getSpecificClientAddress(String clientName)
focal_class.full_signature: public static String getSpecificClientAddress(String clientName)
focal_class.identifier: getSpecificClientAddress
focal_class.modifiers: public static
focal_class.parameters: (String clientName)
focal_class.return: String
focal_class.signature: String getSpecificClientAddress(String clientName)
focal_class.class_method_signature: SyncUtils.clientHasSpecificAddress(String clientName, OpenMRSSyncInstance instance)
focal_class.full_signature: public static boolean clientHasSpecificAddress(String clientName, OpenMRSSyncInstance instance)
focal_class.identifier: clientHasSpecificAddress
focal_class.modifiers: public static
focal_class.parameters: (String clientName, OpenMRSSyncInstance instance)
focal_class.return: boolean
focal_class.signature: boolean clientHasSpecificAddress(String clientName, OpenMRSSyncInstance instance)
focal_class.class_method_signature: SyncUtils.getLocalBaseUrl()
focal_class.full_signature: public static String getLocalBaseUrl()
focal_class.identifier: getLocalBaseUrl
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getLocalBaseUrl()
focal_class.class_method_signature: SyncUtils.getLocalInstanceId()
focal_class.full_signature: public static String getLocalInstanceId()
focal_class.identifier: getLocalInstanceId
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getLocalInstanceId()
focal_class.class_method_signature: SyncUtils.getPullUrl(Map<String, String> resourceLinks, String clientName, OpenMRSSyncInstance instance)
focal_class.full_signature: public static String getPullUrl(Map<String, String> resourceLinks, String clientName, OpenMRSSyncInstance instance)
focal_class.identifier: getPullUrl
focal_class.modifiers: public static
focal_class.parameters: (Map<String, String> resourceLinks, String clientName, OpenMRSSyncInstance instance)
focal_class.return: String
focal_class.signature: String getPullUrl(Map<String, String> resourceLinks, String clientName, OpenMRSSyncInstance instance)
focal_class.class_method_signature: SyncUtils.getPushUrl(Map<String, String> resourceLinks, String clientName, OpenMRSSyncInstance instance)
focal_class.full_signature: public static String getPushUrl(Map<String, String> resourceLinks, String clientName, OpenMRSSyncInstance instance)
focal_class.identifier: getPushUrl
focal_class.modifiers: public static
focal_class.parameters: (Map<String, String> resourceLinks, String clientName, OpenMRSSyncInstance instance)
focal_class.return: String
focal_class.signature: String getPushUrl(Map<String, String> resourceLinks, String clientName, OpenMRSSyncInstance instance)
focal_class.class_method_signature: SyncUtils.getClientSpecificLogin(String clientName)
focal_class.full_signature: public static String getClientSpecificLogin(String clientName)
focal_class.identifier: getClientSpecificLogin
focal_class.modifiers: public static
focal_class.parameters: (String clientName)
focal_class.return: String
focal_class.signature: String getClientSpecificLogin(String clientName)
focal_class.class_method_signature: SyncUtils.getClientSpecificPassword(String clientName)
focal_class.full_signature: public static String getClientSpecificPassword(String clientName)
focal_class.identifier: getClientSpecificPassword
focal_class.modifiers: public static
focal_class.parameters: (String clientName)
focal_class.return: String
focal_class.signature: String getClientSpecificPassword(String clientName)
focal_class.class_method_signature: SyncUtils.clientHasSpecificCridentials(String clientName, OpenMRSSyncInstance instance)
focal_class.full_signature: public static boolean clientHasSpecificCridentials(String clientName, OpenMRSSyncInstance instance)
focal_class.identifier: clientHasSpecificCridentials
focal_class.modifiers: public static
focal_class.parameters: (String clientName, OpenMRSSyncInstance instance)
focal_class.return: boolean
focal_class.signature: boolean clientHasSpecificCridentials(String clientName, OpenMRSSyncInstance instance)
focal_class.class_method_signature: SyncUtils.getClientLogin(String clientName, OpenMRSSyncInstance instance)
focal_class.full_signature: public static String getClientLogin(String clientName, OpenMRSSyncInstance instance)
focal_class.identifier: getClientLogin
focal_class.modifiers: public static
focal_class.parameters: (String clientName, OpenMRSSyncInstance instance)
focal_class.return: String
focal_class.signature: String getClientLogin(String clientName, OpenMRSSyncInstance instance)
focal_class.class_method_signature: SyncUtils.getClientPassword(String clientName, OpenMRSSyncInstance instance)
focal_class.full_signature: public static String getClientPassword(String clientName, OpenMRSSyncInstance instance)
focal_class.identifier: getClientPassword
focal_class.modifiers: public static
focal_class.parameters: (String clientName, OpenMRSSyncInstance instance)
focal_class.return: String
focal_class.signature: String getClientPassword(String clientName, OpenMRSSyncInstance instance)
focal_class.class_method_signature: SyncUtils.getValueOfAtomfeedEventTag(List tags, AtomfeedTagContent atomfeedTagContent)
focal_class.full_signature: public static String getValueOfAtomfeedEventTag(List tags, AtomfeedTagContent atomfeedTagContent)
focal_class.identifier: getValueOfAtomfeedEventTag
focal_class.modifiers: public static
focal_class.parameters: (List tags, AtomfeedTagContent atomfeedTagContent)
focal_class.return: String
focal_class.signature: String getValueOfAtomfeedEventTag(List tags, AtomfeedTagContent atomfeedTagContent)
focal_class.class_method_signature: SyncUtils.getFullUrl(String baseAddress, String path)
focal_class.full_signature: public static String getFullUrl(String baseAddress, String path)
focal_class.identifier: getFullUrl
focal_class.modifiers: public static
focal_class.parameters: (String baseAddress, String path)
focal_class.return: String
focal_class.signature: String getFullUrl(String baseAddress, String path)
focal_class.class_method_signature: SyncUtils.getPushPath(String pathWithId)
focal_class.full_signature: private static String getPushPath(String pathWithId)
focal_class.identifier: getPushPath
focal_class.modifiers: private static
focal_class.parameters: (String pathWithId)
focal_class.return: String
focal_class.signature: String getPushPath(String pathWithId)
focal_class.class_method_signature: SyncUtils.getTagValue(Object tag)
focal_class.full_signature: private static String getTagValue(Object tag)
focal_class.identifier: getTagValue
focal_class.modifiers: private static
focal_class.parameters: (Object tag)
focal_class.return: String
focal_class.signature: String getTagValue(Object tag)
focal_class.class_method_signature: SyncUtils.selectAppropriateClientName(Map<String, String> availableResourceLinks, String category,
  			SyncOperation operation)
focal_class.full_signature: public static String selectAppropriateClientName(Map<String, String> availableResourceLinks, String category,
  			SyncOperation operation)
focal_class.identifier: selectAppropriateClientName
focal_class.modifiers: public static
focal_class.parameters: (Map<String, String> availableResourceLinks, String category,
  			SyncOperation operation)
focal_class.return: String
focal_class.signature: String selectAppropriateClientName(Map<String, String> availableResourceLinks, String category,
  			SyncOperation operation)
focal_class.class_method_signature: SyncUtils.getFirstKey(Map<String, String> map)
focal_class.full_signature: private static String getFirstKey(Map<String, String> map)
focal_class.identifier: getFirstKey
focal_class.modifiers: private static
focal_class.parameters: (Map<String, String> map)
focal_class.return: String
focal_class.signature: String getFirstKey(Map<String, String> map)
focal_class.class_method_signature: SyncUtils.getClassPreferredClient(ClassConfiguration classConfiguration)
focal_class.full_signature: public static String getClassPreferredClient(ClassConfiguration classConfiguration)
focal_class.identifier: getClassPreferredClient
focal_class.modifiers: public static
focal_class.parameters: (ClassConfiguration classConfiguration)
focal_class.return: String
focal_class.signature: String getClassPreferredClient(ClassConfiguration classConfiguration)
focal_class.class_method_signature: SyncUtils.getGlobalPreferredClient()
focal_class.full_signature: public static String getGlobalPreferredClient()
focal_class.identifier: getGlobalPreferredClient
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getGlobalPreferredClient()
focal_class.class_method_signature: SyncUtils.extractUUIDFromResourceLinks(Map<String, String> resourceLinks, String category,
  			String preferredClient)
focal_class.full_signature: public static String extractUUIDFromResourceLinks(Map<String, String> resourceLinks, String category,
  			String preferredClient)
focal_class.identifier: extractUUIDFromResourceLinks
focal_class.modifiers: public static
focal_class.parameters: (Map<String, String> resourceLinks, String category,
  			String preferredClient)
focal_class.return: String
focal_class.signature: String extractUUIDFromResourceLinks(Map<String, String> resourceLinks, String category,
  			String preferredClient)
focal_class.class_method_signature: SyncUtils.compareLocalAndPulled(String clientName, String category, Object from, Object dest)
focal_class.full_signature: public static boolean compareLocalAndPulled(String clientName, String category, Object from, Object dest)
focal_class.identifier: compareLocalAndPulled
focal_class.modifiers: public static
focal_class.parameters: (String clientName, String category, Object from, Object dest)
focal_class.return: boolean
focal_class.signature: boolean compareLocalAndPulled(String clientName, String category, Object from, Object dest)
focal_class.class_method_signature: SyncUtils.prettySerialize(Map<T, T> map)
focal_class.full_signature: public static String prettySerialize(Map<T, T> map)
focal_class.identifier: prettySerialize
focal_class.modifiers: public static
focal_class.parameters: (Map<T, T> map)
focal_class.return: String
focal_class.signature: String prettySerialize(Map<T, T> map)
focal_class.class_method_signature: SyncUtils.serialize(T object)
focal_class.full_signature: public static String serialize(T object)
focal_class.identifier: serialize
focal_class.modifiers: public static
focal_class.parameters: (T object)
focal_class.return: String
focal_class.signature: String serialize(T object)
focal_class.class_method_signature: SyncUtils.deserialize(String object, Class<T> clazz)
focal_class.full_signature: public static T deserialize(String object, Class<T> clazz)
focal_class.identifier: deserialize
focal_class.modifiers: public static
focal_class.parameters: (String object, Class<T> clazz)
focal_class.return: T
focal_class.signature: T deserialize(String object, Class<T> clazz)
focal_class.class_method_signature: SyncUtils.deserializeJsonToStringsMap(String json)
focal_class.full_signature: public static Map<String, String> deserializeJsonToStringsMap(String json)
focal_class.identifier: deserializeJsonToStringsMap
focal_class.modifiers: public static
focal_class.parameters: (String json)
focal_class.return: Map<String, String>
focal_class.signature: Map<String, String> deserializeJsonToStringsMap(String json)
focal_class.class_method_signature: SyncUtils.checkIfParamIsFeedFilter(Object tag)
focal_class.full_signature: public static boolean checkIfParamIsFeedFilter(Object tag)
focal_class.identifier: checkIfParamIsFeedFilter
focal_class.modifiers: public static
focal_class.parameters: (Object tag)
focal_class.return: boolean
focal_class.signature: boolean checkIfParamIsFeedFilter(Object tag)
focal_class.class_method_signature: SyncUtils.checkIfParamIsEventAction(String actionName)
focal_class.full_signature: public static boolean checkIfParamIsEventAction(String actionName)
focal_class.identifier: checkIfParamIsEventAction
focal_class.modifiers: public static
focal_class.parameters: (String actionName)
focal_class.return: boolean
focal_class.signature: boolean checkIfParamIsEventAction(String actionName)
focal_class.class_method_signature: SyncUtils.getSyncConfigurationService()
focal_class.full_signature: public static SyncConfigurationService getSyncConfigurationService()
focal_class.identifier: getSyncConfigurationService
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: SyncConfigurationService
focal_class.signature: SyncConfigurationService getSyncConfigurationService()
focal_class.class_method_signature: SyncUtils.createDefaultGson()
focal_class.full_signature: public static Gson createDefaultGson()
focal_class.identifier: createDefaultGson
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Gson
focal_class.signature: Gson createDefaultGson()
focal_class.class_method_signature: SyncUtils.getMergeBehaviour()
focal_class.full_signature: public static MergeBehaviour getMergeBehaviour()
focal_class.identifier: getMergeBehaviour
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: MergeBehaviour
focal_class.signature: MergeBehaviour getMergeBehaviour()
focal_class.class_method_signature: SyncUtils.getEventHandlerName()
focal_class.full_signature: public static String getEventHandlerName()
focal_class.identifier: getEventHandlerName
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getEventHandlerName()
focal_class.class_method_signature: SyncUtils.parentInstanceUriIsEmpty()
focal_class.full_signature: public static boolean parentInstanceUriIsEmpty()
focal_class.identifier: parentInstanceUriIsEmpty
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean parentInstanceUriIsEmpty()
focal_class.class_method_signature: SyncUtils.isDeleteAction(String action)
focal_class.full_signature: public static boolean isDeleteAction(String action)
focal_class.identifier: isDeleteAction
focal_class.modifiers: public static
focal_class.parameters: (String action)
focal_class.return: boolean
focal_class.signature: boolean isDeleteAction(String action)
focal_class.class_method_signature: SyncUtils.isUpdateAction(String action)
focal_class.full_signature: public static boolean isUpdateAction(String action)
focal_class.identifier: isUpdateAction
focal_class.modifiers: public static
focal_class.parameters: (String action)
focal_class.return: boolean
focal_class.signature: boolean isUpdateAction(String action)
focal_class.class_method_signature: SyncUtils.isCreateAction(String action)
focal_class.full_signature: public static boolean isCreateAction(String action)
focal_class.identifier: isCreateAction
focal_class.modifiers: public static
focal_class.parameters: (String action)
focal_class.return: boolean
focal_class.signature: boolean isCreateAction(String action)
focal_class.class_method_signature: SyncUtils.isUnauthorizedException(Throwable e)
focal_class.full_signature: public static boolean isUnauthorizedException(Throwable e)
focal_class.identifier: isUnauthorizedException
focal_class.modifiers: public static
focal_class.parameters: (Throwable e)
focal_class.return: boolean
focal_class.signature: boolean isUnauthorizedException(Throwable e)
focal_class.class_method_signature: SyncUtils.isAuditMessageCategory(SyncCategory category)
focal_class.full_signature: public static boolean isAuditMessageCategory(SyncCategory category)
focal_class.identifier: isAuditMessageCategory
focal_class.modifiers: public static
focal_class.parameters: (SyncCategory category)
focal_class.return: boolean
focal_class.signature: boolean isAuditMessageCategory(SyncCategory category)
focal_method.body: public static boolean checkIfParamIsEventAction(String actionName) {
  		try {
  			EventAction.valueOf(actionName);
  		} catch (IllegalArgumentException ex) {
  			return false;
  		}
  		return true;
  	}
focal_method.class_method_signature: SyncUtils.checkIfParamIsEventAction(String actionName)
focal_method.full_signature: public static boolean checkIfParamIsEventAction(String actionName)
focal_method.identifier: checkIfParamIsEventAction
focal_method.invocations: valueOf
focal_method.modifiers: public static
focal_method.parameters: (String actionName)
focal_method.return: boolean
focal_method.signature: boolean checkIfParamIsEventAction(String actionName)