public ODataUserSynchronizer(SynchronizerConf sc) throws IOException, ODataException {
  super(sc);
  String urilit=sc.getConfig("service_uri");
  serviceUser=sc.getConfig("service_username");
  servicePass=sc.getConfig("service_password");
  if (urilit == null || urilit.isEmpty()) {
    throw new IllegalStateException("`service_uri` is not set");
  }
  try {
    client=new ODataClient(urilit,serviceUser,servicePass);
  }
 catch (  URISyntaxException e) {
    throw new IllegalStateException("`service_uri` is malformed");
  }
  String skip=sc.getConfig("skip");
  if (skip != null && !skip.isEmpty()) {
    this.skip=Integer.parseInt(skip);
  }
 else {
    this.skip=0;
  }
  String page_size=sc.getConfig("page_size");
  if (page_size != null && !page_size.isEmpty()) {
    pageSize=Integer.decode(page_size);
  }
 else {
    pageSize=500;
  }
  String cfgForce=sc.getConfig("force");
  if (cfgForce != null && !cfgForce.isEmpty()) {
    force=Boolean.parseBoolean(cfgForce);
  }
 else {
    force=false;
  }
}

public ODataUserSynchronizer ( SynchronizerConf sc ) throws IOException , ODataException { super ( sc ) ; String urilit = sc . getConfig ( "service_uri" ) ; serviceUser = sc . getConfig ( "service_username" ) ; servicePass = sc . getConfig ( "service_password" ) ; if ( urilit == null || urilit . isEmpty ( ) ) { throw new IllegalStateException ( "`service_uri` is not set" ) ; } try { client = new ODataClient ( urilit , serviceUser , servicePass ) ; } catch ( URISyntaxException e ) { throw new IllegalStateException ( "`service_uri` is malformed" ) ; } String skip = sc . getConfig ( "skip" ) ; if ( skip != null && ! skip . isEmpty ( ) ) { this . skip = Integer . parseInt ( skip ) ; } else { this . skip = 0 ; } String page_size = sc . getConfig ( "page_size" ) ; if ( page_size != null && ! page_size . isEmpty ( ) ) { pageSize = Integer . decode ( page_size ) ; } else { pageSize = 500 ; } String cfgForce = sc . getConfig ( "force" ) ; if ( cfgForce != null && ! cfgForce . isEmpty ( ) ) { force = Boolean . parseBoolean ( cfgForce ) ; } else { force = false ; } }
creates a new usersynchronizer .
