示例#1
0
  private boolean equals(Identifier a, Identifier b) {
    if ((NullChecker.isNullish(a.getId()))
        || (a.getOrganizationId() == null)
        || (NullChecker.isNullish(b.getId()))
        || (b.getOrganizationId() == null)) {
      return false;
    }

    return a.getId().contentEquals(b.getId())
        && a.getOrganizationId().contentEquals(b.getOrganizationId());
  }
 private String getUrl(NhinTargetSystemType target, String serviceName) {
   String url = null;
   try {
     url = ConnectionManagerCache.getEndpontURLFromNhinTarget(target, serviceName);
   } catch (ConnectionManagerException ex) {
     log.warn(
         "exception occurred accessing url from connection manager (getEndpontURLFromNhinTarget)",
         ex);
   }
   if (NullChecker.isNullish(url)) {
     try {
       url = ConnectionManagerCache.getLocalEndpointURLByServiceName(serviceName);
     } catch (ConnectionManagerException ex) {
       log.warn(
           "exception occurred accessing url from connection manager (getLocalEndpointURLByServiceName)",
           ex);
     }
   }
   return url;
 }
 private void isPropertyStringValid(String property) throws PropertyAccessException {
   if (NullChecker.isNullish(property)) {
     throw new PropertyAccessException("Invalid property name value: " + property);
   }
 }