if ( log.isDebug() ) { log.logDebug( BaseMessages.getString( PKG, "SalesforceInput.Log.UserInfos" ) + " : " + this.userInfo.getUserFullName() ); log.logDebug( "----------------------------------------->" ); log.logDebug( BaseMessages.getString( PKG, "SalesforceInput.Log.UserName" ) + " : " + this.userInfo.getUserFullName() ); log.logDebug( BaseMessages.getString( PKG, "SalesforceInput.Log.UserEmail" ) + " : " + this.userInfo.getUserEmail() ); log.logDebug( BaseMessages.getString( PKG, "SalesforceInput.Log.UserLanguage" ) + " : " + this.userInfo.getUserLanguage() ); log.logDebug( BaseMessages.getString( PKG, "SalesforceInput.Log.UserOrganization" ) + " : " + this.userInfo.getOrganizationName() ); log.logDebug( "<-----------------------------------------" );
/** * Initializes the security context from a GetUserInfoResult object. * {@inheritDoc} */ @Override public void init(GetUserInfoResult userInfo) { this.orgId = userInfo.getOrganizationId(); this.userId = userInfo.getUserId(); this.userName = userInfo.getUserName(); this.language = userInfo.getUserLanguage(); this.locale = userInfo.getUserLocale(); this.timeZone = userInfo.getUserTimeZone(); }
boolean _equals; _equals = true && this.accessibilityMode == other.isAccessibilityMode() && ((this.currencySymbol == null && other.getCurrencySymbol() == null) || (this.currencySymbol != null && this.currencySymbol.equals(other.getCurrencySymbol()))) && this.orgAttachmentFileSizeLimit == other.getOrgAttachmentFileSizeLimit() && ((this.orgDefaultCurrencyIsoCode == null && other.getOrgDefaultCurrencyIsoCode() == null) || (this.orgDefaultCurrencyIsoCode != null && this.orgDefaultCurrencyIsoCode.equals(other.getOrgDefaultCurrencyIsoCode()))) && this.orgDisallowHtmlAttachments == other.isOrgDisallowHtmlAttachments() && this.orgHasPersonAccounts == other.isOrgHasPersonAccounts() && ((this.organizationId == null && other.getOrganizationId() == null) || (this.organizationId != null && this.organizationId.equals(other.getOrganizationId()))) && this.organizationMultiCurrency == other.isOrganizationMultiCurrency() && ((this.organizationName == null && other.getOrganizationName() == null) || (this.organizationName != null && this.organizationName.equals(other.getOrganizationName()))) && ((this.profileId == null && other.getProfileId() == null) || (this.profileId != null && this.profileId.equals(other.getProfileId()))) && ((this.roleId == null && other.getRoleId() == null) || (this.roleId != null && this.roleId.equals(other.getRoleId()))) && this.sessionSecondsValid == other.getSessionSecondsValid() && ((this.userDefaultCurrencyIsoCode == null && other.getUserDefaultCurrencyIsoCode() == null) || (this.userDefaultCurrencyIsoCode != null && this.userDefaultCurrencyIsoCode.equals(other.getUserDefaultCurrencyIsoCode()))) &&
/** * Constructs a Java package name based on a Force.com store name * (organization name). * * @param userInfo the Force.com user who is running the code generation * @return a non {@code null} {@code String} which conforms * to Java class naming standards */ public static String constructPackageName(GetUserInfoResult userInfo) { String orgName = userInfo.getOrganizationName(); if (orgName != null) { String orgNameDenorm = userInfo.getOrganizationName().replaceAll("(,|\\.|\\s)", "").toLowerCase(); return "com." + orgNameDenorm + ".model"; } return "com.force.model"; }
/** * {@inheritDoc} */ public void send(String message) { SObject user = new SObject(); user.setType("User"); try { user.setId(connection.getUserInfo().getUserId()); user.setField("CurrentStatus", message); SaveResult[] results = connection.update(new SObject[]{user}); if (!results[0].isSuccess()) { l.error("Error updating user status: " + results[0].getErrors()[0].getMessage()); throw new SfdcException("Error updating user status: " + results[0].getErrors()[0].getMessage()); } } catch (ConnectionException e) { l.debug("Error sending the SFDC chatter message.", e); throw new SfdcException("Error sending the SFDC chatter message.", e); } }
try { results = Connector.newConnection(config).retrieve("Name", "Profile", new String[] {userInfoResult.getProfileId()}); } catch (ConnectionException e) { results = null;
sessionProp.setProperty(SalesforceConstant.SESSION_ID, sessionId); sessionProp.setProperty(SalesforceConstant.SERVICE_ENDPOINT, serviceEndPoint); sessionProp.setProperty(SalesforceConstant.MAX_VALID_SECONDS, String.valueOf(result.getSessionSecondsValid())); try { sessionProp.store(sessionOutput, null);
_hashCode += (isAccessibilityMode() ? Boolean.TRUE : Boolean.FALSE).hashCode(); if (getCurrencySymbol() != null) { _hashCode += getCurrencySymbol().hashCode(); _hashCode += getOrgAttachmentFileSizeLimit(); if (getOrgDefaultCurrencyIsoCode() != null) { _hashCode += getOrgDefaultCurrencyIsoCode().hashCode(); _hashCode += (isOrgDisallowHtmlAttachments() ? Boolean.TRUE : Boolean.FALSE).hashCode(); _hashCode += (isOrgHasPersonAccounts() ? Boolean.TRUE : Boolean.FALSE).hashCode(); if (getOrganizationId() != null) { _hashCode += getOrganizationId().hashCode(); _hashCode += (isOrganizationMultiCurrency() ? Boolean.TRUE : Boolean.FALSE).hashCode(); if (getOrganizationName() != null) { _hashCode += getOrganizationName().hashCode(); if (getProfileId() != null) { _hashCode += getProfileId().hashCode(); if (getRoleId() != null) { _hashCode += getRoleId().hashCode(); _hashCode += getSessionSecondsValid(); if (getUserDefaultCurrencyIsoCode() != null) { _hashCode += getUserDefaultCurrencyIsoCode().hashCode(); if (getUserEmail() != null) { _hashCode += getUserEmail().hashCode();
try { results = Connector.newConnection(config).retrieve("Name", "Profile", new String[] {userInfoResult.getProfileId()}); } catch (ConnectionException e) { results = null;
sessionProp.setProperty(SalesforceConstant.SESSION_ID, sessionId); sessionProp.setProperty(SalesforceConstant.SERVICE_ENDPOINT, serviceEndPoint); sessionProp.setProperty(SalesforceConstant.MAX_VALID_SECONDS, String.valueOf(result.getSessionSecondsValid())); try { sessionProp.store(sessionOutput, null);
/** * Initializes the security context from a GetUserInfoResult object. * {@inheritDoc} */ @Override public void init(GetUserInfoResult userInfo) { this.orgId = userInfo.getOrganizationId(); this.userId = userInfo.getUserId(); this.userName = userInfo.getUserName(); this.language = userInfo.getUserLanguage(); this.locale = userInfo.getUserLocale(); this.timeZone = userInfo.getUserTimeZone(); }