public class RestTemplateVariable extends DBEmailTemplateVariable
DBObject.DenormalizeAction| Modifier and Type | Field and Description |
|---|---|
static GlobalId |
DBCLASS_GID
RestTemplateVariable
|
static java.lang.String |
DBCLASS_NAME
RestTemplateVariable
|
ATTRIBUTE_MARVIN, dbClass, ds, NO_LOOP_PARAMS| Constructor and Description |
|---|
RestTemplateVariable(DBClass theClass,
DataSource dataSource) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
calculateJSON(java.util.List<Variable> extraVars) |
java.lang.String |
calculateResult(java.util.List<Variable> variables) |
java.lang.String |
encodeValue(java.lang.String value) |
java.lang.String |
execute()
get value of this variable
|
java.lang.String |
execute(java.util.List<Variable> extraVars)
Extra variables
|
protected java.lang.Object |
extGetDerivedValue(DBField field,
FldParams params)
OVERRIDE This method for all objects with derived fields that are NOT linked.
|
protected ValidationError |
extValidateField(DBField field,
ValidationList list)
Additional validation for particular field OVERRIDE THIS METHOD TO ADD VALIDATIONS FOR A FIELD.
|
SqlVariableRunAs |
findLocalRunAs(java.lang.String... args)
Local request Run As.
|
java.lang.String |
getArguments(java.lang.String... args) |
java.lang.String |
getCachePeriod(java.lang.String... args) |
java.lang.String |
getJsonPath(java.lang.String... args) |
SqlVariableRunAs |
getLocalRunAs(java.lang.String... args) |
java.lang.String |
getLocalURL(java.lang.String... args) |
java.lang.String |
getValue(java.util.List<Variable> variables) |
java.util.List<Variable> |
loadVariables(java.util.List<Variable> runtimeVars) |
RestTemplateVariable |
setArguments(java.lang.String value,
java.lang.String... args) |
RestTemplateVariable |
setCachePeriod(java.lang.String value,
java.lang.String... args) |
RestTemplateVariable |
setJsonPath(java.lang.String value,
java.lang.String... args) |
RestTemplateVariable |
setLocalRunAs(com.aspc.dal.cms.variable.SQLVariableRunAs value,
java.lang.String... args) |
RestTemplateVariable |
setLocalURL(java.lang.String value,
java.lang.String... args) |
findKey, findTemplate, getDefaultResult, getID, getName, getResult, getSequence, getTemplate, isIgnoreError, isIgnoreValidating, makeQuery, setDefaultResult, setID, setIgnoreError, setIgnoreValidating, setName, setSequence, setTemplateaddReloadEventListener, archiveCheck, autoEnterCreate, calculateValue, calculateValue, calculateValue, callingRestoreByJournal, changeThreadMode, checkCreateAccess, checkDelete, checkDeleteAccess, checkModifyAccess, checkModifyAccess, checkReadAccess, clearCache, copy, copyFields, copyIncludeField, copyInwardLinks, delete, denormalizedResult, displayLogName, displayName, displayValue, doSearch, dump, equals, eventDataLoaded, eventFieldUpdated, extAutoEnterCreate, extCanDeleteDependantObject, extCheckCreateAccess, extCheckDeleteAccess, extCheckModifyAccess, extCheckModifyAccess, extCheckReadAccess, extCopy, extDelete, extDeleteRecord, extFixUp, extGetDerivedGlobalKey, extGetValue, extIsMandatory, extIsOnChange, extMarkSavePoint, extPostDeleteRecord, extPostSaveRecord, extPreDeleteRecord, extPreSaveRecord, extPreValidate, extPreValidateDelete, extRaiseEvents, extRollbackTo, extSaveRecord, extSetValue, extUndelete, extValidateDelete, extValidateRecord, fetchLinkHolder, findGlobalKey, findGlobalKey, findGlobalKey, findGlobalKey, findLinkedObject, findLinkedObject, findLinkedObject, findRawData, fireEventDataLoaded, fixUp, forceLockedTransaction, getBoolean, getBoolean, getBoolean, getBoolean, getBoolean, getBoolean, getChangedFieldInfo, getChangedFields, getDate, getDate, getDate, getDate, getDate, getDefaultValue, getDisableOnChangeEvent, getDouble, getDouble, getDouble, getDouble, getDouble, getFieldDouble, getFieldInt, getFieldLong, getFieldString, getFormattedString, getFormattedString, getGlobalKey, getGlobalKey, getGlobalKey, getGlobalKey, getGlobalKey, getInt, getInt, getInt, getInt, getInt, getInt, getInwardLinkage, getKeyString, getKeyValue, getLinkedObject, getLinkedObject, getLinkedObject, getLinkedObjectByKey, getLinkedRowId, getLinkedRowId, getLinkedRowIdByData, getLinkHolder, getLockedTransaction, getLong, getLong, getLong, getLong, getLong, getLong, getMutableArrayValue, getMutableArrayValue, getOriginalKey, getOriginalValue, getOriginalValue, getProcessedValue, getPureValue, getRawData, getRawValue, getRawValue, getRowId, getRowKey, getSecondaryCacheGroupKey, getSrcLayerID, getString, getString, getString, getString, getString, getString, getValue, getValue, getValue, getValue, hasAutoChanged, hasAutoChanged, hasChanged, hasChangedByUser, hasChangedByUserField, hasChangedByUserField, hasFieldChanged, hasFieldChanged, hashCode, hasStoredResult, iCheckDeleteAccess, iCheckModifyAccess, iCheckReadAccess, iGetDenormalizedMap, iGetRawValue, iPlaceDenormalizedResult, iPostSaveOrDeleteRecord, iPreSaveOrDeleteRecord, iPreValidate, iRaiseEvents, iSaveOrDeleteRecord, isBrokenLink, isBrokenLink, isChanged, isDataCacheKnownToBeDirty, isDeleted, isEmpty, iSetValue, isForceReindex, isKeyWordField, isMandatory, isNew, isNull, isNull, isOnChange, isReindex, iValidateRecord, lastTouched, makeArchiveDataLoader, makeClone, makeDataLoader, makeDenormalizedDoc, makeLinkedArray, makeModifyAccessException, makeSearchPlan, makeWriteProvider, manualDenormalizeOnSave, markSavePoint, optLockedTransaction, registerWatchedObject, reindex, releaseDenormalized, removeReloadEventListener, restoreByJournal, rollbackTo, setBoolean, setBoolean, setBoolean, setBoolean, setDisableOnChangeEvent, setDouble, setDouble, setInt, setInt, setLong, setLong, setRawData, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, toString, touch, undelete, validateField, validateRecord, validateSubTypepublic static final java.lang.String DBCLASS_NAME
public static final GlobalId DBCLASS_GID
public RestTemplateVariable(DBClass theClass, DataSource dataSource) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nonnull public java.lang.String getArguments(java.lang.String... args)
@Nonnull public RestTemplateVariable setArguments(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nonnull public java.lang.String getCachePeriod(java.lang.String... args)
@Nonnull public RestTemplateVariable setCachePeriod(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nonnull public java.lang.String getJsonPath(java.lang.String... args)
@Nonnull public RestTemplateVariable setJsonPath(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nullable public SqlVariableRunAs getLocalRunAs(java.lang.String... args)
@CheckReturnValue @Nonnull public final SqlVariableRunAs findLocalRunAs(java.lang.String... args) throws NotFoundException
SQLVariableRunAs
(String, Searchable)args - the optional argumentsNotFoundException - SQLVariableRunAs was not found@Nonnull public RestTemplateVariable setLocalRunAs(com.aspc.dal.cms.variable.SQLVariableRunAs value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nonnull public java.lang.String getLocalURL(java.lang.String... args)
@Nonnull public RestTemplateVariable setLocalURL(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @OverridingMethodsMustInvokeSuper @Nullable protected ValidationError extValidateField(@Nonnull DBField field, @Nonnull ValidationList list) throws java.lang.Exception
DBObjectextValidateField in class DBObjectfield - The field to be validatedlist - The validation listjava.lang.Exception - a serious error@CheckReturnValue
protected java.lang.Object extGetDerivedValue(@Nonnull
DBField field,
@Nullable
FldParams params)
throws java.lang.Exception
DBObjectextGetDerivedValue in class DBObjectfield - The field to getparams - The parameters for this field eg. language= or default=java.lang.Exception - a serious problempublic java.lang.String execute()
throws TemplateVariableParseException,
java.lang.Exception
execute in class DBEmailTemplateVariableTemplateVariableParseException - parse exception if ignoreError flag is not checkedjava.lang.Exception@Nonnull public java.lang.String execute(java.util.List<Variable> extraVars) throws TemplateVariableParseException, java.lang.Exception
execute in class DBEmailTemplateVariableextraVars - TemplateVariableParseException - parse exception if ignoreError flag is not checkedjava.lang.Exception - a serious problem.public java.lang.Object calculateJSON(java.util.List<Variable> extraVars) throws java.lang.Exception
java.lang.Exceptionpublic java.util.List<Variable> loadVariables(java.util.List<Variable> runtimeVars) throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String calculateResult(java.util.List<Variable> variables) throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String encodeValue(java.lang.String value)
public java.lang.String getValue(java.util.List<Variable> variables) throws java.lang.Exception
java.lang.ExceptionstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.