Skip to main content
[ This file is autogenerated from apexdoc ]

abstract AqRestResource

Base class for a REST resource.

Inheritance

AqRestResource

Implemented types

Aq.Validatable

Group apex/core

Fields​

public SCOPE_TYPE_RESOURCE → String​

public SCOPE_TYPE_PROPERTY → String​

protected parentName → String​

protected validationResults → List<AqResult>​


Methods​

public static String fieldForProperty(sObjectType objectType, String propertyName)​

public static AqRestResource getResource(sObject record, System resourceType)​

public static List<AqRestResource> getResources(List<sObject> records, System resourceType)​

public static AqResult upsertResources(List<AqRestResource> resources, Boolean allOrNothing)​

public virtual Type getResourceType()​

public virtual Type getResourceListType()​

public virtual sObjectType getSObjectType()​

public virtual Type getSObjectListType()​

public virtual String fieldForProperty(String propertyName)​

public virtual void put(sObject record)​

public virtual void get(sObject record)​

protected List<AqRestResource> getList(sObject record, String relationshipName, Type childResourceType, Boolean required)​

protected List<AqRestResource> getList(List<sObject> records, Type resourceType)​

protected virtual void doValidate()​

protected AqResult subValidate(String parentName)​

public AqResult validate()​

protected void addValidationError(String message, String scope)​

protected void requireProperty(String propertyName, object value)​

protected void requirePropertyInSet(String propertyName, String stringValue, Boolean required, Set<String> targetSet)​

protected void validateString(String propertyName, String stringValue, Boolean required, Integer maxLength)​

protected void validateInteger(String propertyName, Integer value, Boolean required, Integer min, Integer max)​

protected void validateId(String propertyName, String stringValue, Boolean required)​

protected void validateTime(String propertyName, String stringValue, Boolean required)​

protected void validateEmail(String propertyName, String stringValue, Boolean required)​

protected void validateZipCode(String propertyName, String stringValue, Boolean required)​

protected void validateSsn(String propertyName, String stringValue, Boolean required)​

protected void validatePattern(String propertyName, String value, Boolean required, String regEx, String patternLabel)​

protected void validateResource(String propertyName, AqRestResource value, Boolean required)​

protected void validateResourceList(String propertyName, List<Object> resourceList, Boolean required, Integer minSize, Integer maxSize)​