/*
* Salesforce DTO generated by camel-salesforce-maven-plugin
* Generated on: Thu Mar 09 16:15:49 ART 2017
*/
package $packageName;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Generated;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import org.apache.camel.component.salesforce.api.dto.AbstractDescribedSObjectBase;
import org.apache.camel.component.salesforce.api.dto.ChildRelationShip;
import org.apache.camel.component.salesforce.api.dto.InfoUrls;
import org.apache.camel.component.salesforce.api.dto.NamedLayoutInfo;
import org.apache.camel.component.salesforce.api.dto.RecordTypeInfo;
import org.apache.camel.component.salesforce.api.dto.SObjectDescription;
import org.apache.camel.component.salesforce.api.dto.SObjectDescriptionUrls;
import org.apache.camel.component.salesforce.api.dto.SObjectField;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Salesforce DTO for SObject ComplexCalculatedFormula
*/
@Generated("org.apache.camel.maven.CamelSalesforceMojo")
@XStreamAlias("ComplexCalculatedFormula")
public class ComplexCalculatedFormula extends AbstractDescribedSObjectBase {
private static final SObjectDescription DESCRIPTION = createSObjectDescription();
// ComplexCalculatedFormula
private String ComplexCalculatedFormula;
@JsonProperty("ComplexCalculatedFormula")
public String getComplexCalculatedFormula() {
return this.ComplexCalculatedFormula;
}
@JsonProperty("ComplexCalculatedFormula")
public void setComplexCalculatedFormula(String ComplexCalculatedFormula) {
this.ComplexCalculatedFormula = ComplexCalculatedFormula;
}
@Override
public final SObjectDescription description() {
return DESCRIPTION;
}
private static SObjectDescription createSObjectDescription() {
final SObjectDescription description = new SObjectDescription();
description.setMergeable(false);
description.setUndeletable(true);
description.setCreateable(true);
description.setSearchLayoutable("true");
description.setQueryable(true);
description.setLabel("Complex Calculated Formula");
description.setTriggerable(true);
description.setReplicateable(true);
description.setCustom(false);
final SObjectDescriptionUrls sObjectDescriptionUrls1 = new SObjectDescriptionUrls();
sObjectDescriptionUrls1.setDescribe("/services/data/v34.0/sobjects/Case/describe");
sObjectDescriptionUrls1.setCaseArticleSuggestions("/services/data/v34.0/sobjects/Case/suggestedArticles");
sObjectDescriptionUrls1.setLayouts("/services/data/v34.0/sobjects/Case/describe/layouts");
sObjectDescriptionUrls1.setSobject("/services/data/v34.0/sobjects/Case");
sObjectDescriptionUrls1.setUiEditTemplate("https://salesforce-host/{ID}/e");
sObjectDescriptionUrls1.setQuickActions("/services/data/v34.0/sobjects/Case/quickActions");
sObjectDescriptionUrls1.setCaseRowArticleSuggestions("/services/data/v34.0/sobjects/Case/{ID}/suggestedArticles");
sObjectDescriptionUrls1.setRowTemplate("/services/data/v34.0/sobjects/Case/{ID}");
sObjectDescriptionUrls1.setListviews("/services/data/v34.0/sobjects/Case/listviews");
sObjectDescriptionUrls1.setCompactLayouts("/services/data/v34.0/sobjects/Case/describe/compactLayouts");
sObjectDescriptionUrls1.setApprovalLayouts("/services/data/v34.0/sobjects/Case/describe/approvalLayouts");
sObjectDescriptionUrls1.setUiNewRecord("https://salesforce-host/500/e");
sObjectDescriptionUrls1.setUiDetailTemplate("https://salesforce-host/{ID}");
description.setUrls(sObjectDescriptionUrls1);
description.setName("ComplexCalculatedFormula");
description.setLayoutable(true);
description.setCompactLayoutable(true);
description.setDeprecatedAndHidden(false);
final List<SObjectField> fields1 = new ArrayList<>();
description.setFields(fields1);
final SObjectField sObjectField1 = new SObjectField();
fields1.add(sObjectField1);
sObjectField1.setWriteRequiresMasterRead(false);
sObjectField1.setNillable(true);
sObjectField1.setCreateable(false);
sObjectField1.setEncrypted(false);
sObjectField1.setDigits("0");
sObjectField1.setDependentPicklist(false);
sObjectField1.setLabel("A complex calculated formula");
sObjectField1.setHighScaleNumber(false);
sObjectField1.setDisplayLocationInDecimal(false);
sObjectField1.setName("ComplexCalculatedFormula");
sObjectField1.setHtmlFormatted(true);
sObjectField1.setDeprecatedAndHidden(false);
sObjectField1.setRestrictedPicklist(false);
sObjectField1.setNameField(false);
sObjectField1.setCaseSensitive(false);
sObjectField1.setPermissionable(true);
sObjectField1.setCascadeDelete(false);
sObjectField1.setDefaultedOnCreate(false);
sObjectField1.setExternalId(false);
sObjectField1.setSoapType("xsd:string");
sObjectField1.setGroupable(false);
sObjectField1.setCustom(true);
sObjectField1.setScale(0);
sObjectField1.setCalculated(true);
sObjectField1.setRestrictedDelete(false);
sObjectField1.setNamePointing(false);
sObjectField1.setIdLookup(false);
sObjectField1.setType("string");
sObjectField1.setSortable(true);
sObjectField1.setLength(1300);
sObjectField1.setPrecision(0);
sObjectField1.setByteLength(3900);
sObjectField1.setQueryByDistance(false);
sObjectField1.setFilterable(true);
sObjectField1.setCalculatedFormula("IF( RecordType.Id = \"012F0000000rmbC\", \r\n\r\nIF(Case_Age__c > 30, \r\nIMAGE(\"/img/samples/color_red.gif\", \"red\", 30, 30),\r\nIF( Case_Age__c > 15,\r\nIMAGE(\"/img/samples/color_yellow.gif\", \"yellow\", 30, 30),\r\nIMAGE(\"/img/samples/color_green.gif\", \"green\", 30, 30)\r\n)),\r\n\r\n\r\nIF(Case_Age__c > 10, \r\nIMAGE(\"/img/samples/color_red.gif\", \"red\", 30, 30),\r\nIF( Case_Age__c > 5,\r\nIMAGE(\"/img/samples/color_yellow.gif\", \"yellow\", 30, 30),\r\nIMAGE(\"/img/samples/color_green.gif\", \"green\", 30, 30)\r\n))\r\n)");
sObjectField1.setUpdateable(false);
sObjectField1.setUnique(false);
sObjectField1.setAutoNumber(false);
description.setActivateable(false);
description.setLabelPlural("ComplexCalculatedFormulas");
description.setDeletable(true);
description.setFeedEnabled(true);
description.setSearchable(true);
description.setCustomSetting(false);
description.setRetrieveable(true);
description.setKeyPrefix("500");
return description;
}
}