@Test public void testGetUserInfo() throws ApiException { UserInfo userInfo = this.conn.getUserInfo(); assertEquals("$", userInfo.getCurrencySymbol()); assertEquals("00D50000000Ixbm", userInfo.getOrganizationId().toString()); assertEquals("Team Lazer Beez", userInfo.getOrganizationName()); assertEquals("USD", userInfo.getOrgDefaultCurrencyIsoCode()); assertEquals("00e5000000185Q9", userInfo.getProfileId().toString()); assertNull(userInfo.getRoleId()); assertNull(userInfo.getUserDefaultCurrencyIsoCode()); assertEquals(USER, userInfo.getUserEmail()); assertEquals("sftestorg3 mpierce", userInfo.getUserFullName()); assertEquals("00550000001gvBO", userInfo.getUserId().toString()); assertEquals("en_US", userInfo.getUserLanguage()); assertEquals("en_US", userInfo.getUserLocale()); assertEquals(USER, userInfo.getUserName()); assertEquals("America/Los_Angeles", userInfo.getUserTimeZone()); assertEquals("Standard", userInfo.getUserType()); assertEquals("Theme3", userInfo.getUserUiSkin()); assertFalse(userInfo.isAccessibilityMode()); assertFalse(userInfo.isOrganizationMultiCurrency()); assertFalse(userInfo.isOrgDisallowHtmlAttachments()); assertFalse(userInfo.isOrgHasPersonAccounts()); assertEquals(5242880, userInfo.getOrgAttachmentFileSizeLimit()); assertEquals(7200, userInfo.getSessionSecondsValid()); }
@Nonnull @Override public synchronized UserInfo getUserInfo() throws ApiException { logger.entry(); GetUserInfo param = new GetUserInfo(); GetUserInfoResponse response; GetUserInfoOp op = this.new GetUserInfoOp(); response = op.execute(param); UserInfo result = new UserInfo(response.getResult()); logger.exit(result); return result; }
PartnerConnectionImpl extends AbstractSalesforceConnection implements PartnerConnection { @Nonnull @Override public synchronized UserInfo getUserInfo() throws ApiException { logger.entry(); GetUserInfo param = new GetUserInfo(); GetUserInfoResponse response; GetUserInfoOp op = this.new GetUserInfoOp(); response = op.execute(param); UserInfo result = new UserInfo(response.getResult()); logger.exit(result); return result; } }
PartnerConnectionImpl extends AbstractSalesforceConnection implements PartnerConnection { @Nonnull @Override public synchronized UserInfo getUserInfo() throws ApiException { logger.entry(); GetUserInfo param = new GetUserInfo(); GetUserInfoResponse response; GetUserInfoOp op = this.new GetUserInfoOp(); response = op.execute(param); UserInfo result = new UserInfo(response.getResult()); logger.exit(result); return result; } private  PartnerConnectionImpl(@Nonnull CallSemaphore semaphore, @Nonnull ConnectionBundleImpl bundle,
            MetricRegistry metricRegistry); }
PartnerConnectionImpl extends AbstractSalesforceConnection implements PartnerConnection { @Nonnull @Override public synchronized UserInfo getUserInfo() throws ApiException { logger.entry(); GetUserInfo param = new GetUserInfo(); GetUserInfoResponse response; GetUserInfoOp op = this.new GetUserInfoOp(); response = op.execute(param); UserInfo result = new UserInfo(response.getResult()); logger.exit(result); return result; } private  PartnerConnectionImpl(@Nonnull CallSemaphore semaphore, @Nonnull ConnectionBundleImpl bundle,
            MetricRegistry metricRegistry); @Override synchronized int count(@Nonnull String sObjectType, @Nonnull String condition); @Override synchronized int count(@Nonnull String sObjectType); @Override synchronized int countAll(@Nonnull String sObjectType, @Nonnull String condition); @Override synchronized int countAll(@Nonnull String sObjectType); @Nonnull @Override synchronized List<SaveResult> create(@Nonnull List<SObject> sObjects); @Nonnull @Override synchronized List<DeleteResult> delete(@Nonnull List<Id> ids); @Nonnull @Override synchronized DescribeGlobalResult describeGlobal(); @Nonnull @Override synchronized SObjectDescription describeSObject(@Nonnull String sObjectType); @Nonnull @Override synchronized List<SObjectDescription> describeSObjects(@Nonnull List<String> sObjectTypes); @Nonnull @Override synchronized List<EmptyRecycleBinResult> emptyRecycleBin(@Nonnull List<Id> ids); @Nonnull @Override synchronized DateTime getServerTimestamp(); @Nonnull @Override synchronized UserInfo getUserInfo(); @Nonnull @Override synchronized PartnerQueryResult query(@Nonnull String queryStr); @Nonnull @Override synchronized PartnerQueryResult queryAll(@Nonnull String queryStr); @Nonnull @Override synchronized PartnerQueryResult queryMore(@Nonnull PartnerQueryLocator locator); @Nonnull @Override synchronized List<SObject> retrieve(@Nonnull String sObjectType, @Nonnull List<Id> ids,
            @Nonnull List<String> fieldList); @Nonnull @Override synchronized Map<Id, SObject> retrieveExtended(@Nonnull String sObjectType, @Nonnull List<Id> ids,
            @Nonnull List<String> fields,
            int maxFieldNameChunkSize); @Nonnull @Override synchronized List<UndeleteResult> undelete(@Nonnull List<Id> ids); @Nonnull @Override synchronized List<SaveResult> update(@Nonnull List<SObject> sObjects); @Nonnull @Override synchronized List<UpsertResult> upsert(@Nonnull String externalIdFieldName, @Nonnull List<SObject> sObjects); }
PartnerConnectionImpl extends AbstractSalesforceConnection implements PartnerConnection { @Nonnull @Override public synchronized UserInfo getUserInfo() throws ApiException { logger.entry(); GetUserInfo param = new GetUserInfo(); GetUserInfoResponse response; GetUserInfoOp op = this.new GetUserInfoOp(); response = op.execute(param); UserInfo result = new UserInfo(response.getResult()); logger.exit(result); return result; } private  PartnerConnectionImpl(@Nonnull CallSemaphore semaphore, @Nonnull ConnectionBundleImpl bundle,
            MetricRegistry metricRegistry); @Override synchronized int count(@Nonnull String sObjectType, @Nonnull String condition); @Override synchronized int count(@Nonnull String sObjectType); @Override synchronized int countAll(@Nonnull String sObjectType, @Nonnull String condition); @Override synchronized int countAll(@Nonnull String sObjectType); @Nonnull @Override synchronized List<SaveResult> create(@Nonnull List<SObject> sObjects); @Nonnull @Override synchronized List<DeleteResult> delete(@Nonnull List<Id> ids); @Nonnull @Override synchronized DescribeGlobalResult describeGlobal(); @Nonnull @Override synchronized SObjectDescription describeSObject(@Nonnull String sObjectType); @Nonnull @Override synchronized List<SObjectDescription> describeSObjects(@Nonnull List<String> sObjectTypes); @Nonnull @Override synchronized List<EmptyRecycleBinResult> emptyRecycleBin(@Nonnull List<Id> ids); @Nonnull @Override synchronized DateTime getServerTimestamp(); @Nonnull @Override synchronized UserInfo getUserInfo(); @Nonnull @Override synchronized PartnerQueryResult query(@Nonnull String queryStr); @Nonnull @Override synchronized PartnerQueryResult queryAll(@Nonnull String queryStr); @Nonnull @Override synchronized PartnerQueryResult queryMore(@Nonnull PartnerQueryLocator locator); @Nonnull @Override synchronized List<SObject> retrieve(@Nonnull String sObjectType, @Nonnull List<Id> ids,
            @Nonnull List<String> fieldList); @Nonnull @Override synchronized Map<Id, SObject> retrieveExtended(@Nonnull String sObjectType, @Nonnull List<Id> ids,
            @Nonnull List<String> fields,
            int maxFieldNameChunkSize); @Nonnull @Override synchronized List<UndeleteResult> undelete(@Nonnull List<Id> ids); @Nonnull @Override synchronized List<SaveResult> update(@Nonnull List<SObject> sObjects); @Nonnull @Override synchronized List<UpsertResult> upsert(@Nonnull String externalIdFieldName, @Nonnull List<SObject> sObjects);  }