tcOrganizationOperationsIntf service

Java API

  1. Java API

List

List all organizations

tcOrganizationOperationsIntf service = (tcOrganizationOperationsIntf) oimClient.getService(tcOrganizationOperationsIntf.class);
tcResultSet resultSet = service.findOrganizations(new HashMap());

Find

Find the organization named "Xellerate Users".

tcOrganizationOperationsIntf service = (tcOrganizationOperationsIntf) oimClient.getService(tcOrganizationOperationsIntf.class);
Map criteria = new HashMap();
criteria.put("Organizations.Organization Name", "Xellerate Users");
tcResultSet resultSet = service.findOrganizations(criteria);

Misc

Get list of "Organizations.Type" valid values

tcLookupOperationsIntf lookupService = (tcLookupOperationsIntf) oimClient.getService(tcLookupOperationsIntf.class);
tcResultSet lookupValues = lookupService.getLookupValues("Lookup.Organization.Type", null);
for (int j = 0; j < lookupValues.getRowCount(); j++) {
  lookupValues.goToRow(j);
  System.out.println(lookupValues.getStringValue("Lookup Definition.Lookup Code Information.Code Key"));
}

prints
Company
Department
Branch

See also

  1. Open A Client Connection To Oim Server
  2. Print tcResultSet
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License