public class RestVariable extends JSONResultVariable
DBObject.DenormalizeAction| Modifier and Type | Field and Description |
|---|---|
static GlobalId |
DBCLASS_GID
Representational State Transfer (ReST) returning JSON using HTTP(S) GET
call which is cachable.
|
static java.lang.String |
DBCLASS_NAME
Representational State Transfer (ReST) returning JSON using HTTP(S) GET
call which is cachable.
|
static java.lang.String |
REST_ERRORS |
static java.lang.String |
REST_WARNINGS |
DEFAULT_VARIABLE_ENCODE, WEB_CLIENTATTRIBUTE_MARVIN, dbClass, ds, NO_LOOP_PARAMS| Constructor and Description |
|---|
RestVariable(DBClass def,
DataSource dataSource)
Std.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
calculateJSON(WebClient wc,
java.util.HashMap<java.lang.String,SiteVariableCalculation> variables,
SiteComponent component) |
protected void |
extFixUp()
The extended fix up routine
|
protected java.lang.Object |
extGetDerivedValue(DBField field,
FldParams params)
OVERRIDE This method for all objects with derived fields that are NOT linked.
|
protected void |
extPreValidate()
OVERRIDE To add functionality to before validation is called.
|
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 |
getExampleURL(java.lang.String... args) |
SqlVariableRunAs |
getLocalRunAs(java.lang.String... args) |
java.lang.String |
getLocalURL(java.lang.String... args) |
java.lang.String |
getRemotePassword(java.lang.String... args) |
java.lang.String |
getRemoteURL(java.lang.String... args) |
java.lang.String |
getRemoteUser(java.lang.String... args) |
boolean |
isLocalCall(java.lang.String... args) |
boolean |
isRemoteAuthorization(java.lang.String... args) |
RestVariable |
setArguments(java.lang.String value,
java.lang.String... args) |
RestVariable |
setCachePeriod(java.lang.String value,
java.lang.String... args) |
RestVariable |
setLocalCall(boolean value,
java.lang.String... args) |
RestVariable |
setLocalRunAs(com.aspc.dal.cms.variable.SQLVariableRunAs value,
java.lang.String... args) |
RestVariable |
setLocalURL(java.lang.String value,
java.lang.String... args) |
RestVariable |
setRemoteAuthorization(boolean value,
java.lang.String... args) |
RestVariable |
setRemotePassword(java.lang.String value,
java.lang.String... args) |
RestVariable |
setRemoteURL(java.lang.String value,
java.lang.String... args) |
RestVariable |
setRemoteUser(java.lang.String value,
java.lang.String... args) |
protected void |
validateSubType(DBField field,
java.lang.Object value)
http://www.regular-expressions.info/email.html
http://tools.ietf.org/html/rfc2822#section-3.4.1
|
getResultJSONextGetDerivedGlobalKey, extValidateRecord, findComponent, findInheritedByComponent, findKey, findOwnedBySite, findSite, getComponent, getID, getInheritedByComponent, getLabel, getName, getOwnedBySite, getPath, getResult, getSequence, getSite, isVisibleToThisComponent, makeQuery, setComponent, setID, setLabel, setName, setSequence, setSiteaddReloadEventListener, 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, extGetValue, extIsMandatory, extIsOnChange, extMarkSavePoint, extPostDeleteRecord, extPostSaveRecord, extPreDeleteRecord, extPreSaveRecord, extPreValidateDelete, extRaiseEvents, extRollbackTo, extSaveRecord, extSetValue, extUndelete, extValidateDelete, 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, validateRecordpublic static final java.lang.String DBCLASS_NAME
public static final GlobalId DBCLASS_GID
public static final java.lang.String REST_ERRORS
public static final java.lang.String REST_WARNINGS
public RestVariable(DBClass def, DataSource dataSource) throws java.lang.Exception
def - The class of this objectdataSource - The datasource for this objectjava.lang.Exception - A serious problem occurred@CheckReturnValue @Nonnull public java.lang.String getArguments(java.lang.String... args)
@Nonnull public RestVariable 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 RestVariable setCachePeriod(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nonnull public java.lang.String getExampleURL(java.lang.String... args)
@CheckReturnValue public boolean isLocalCall(java.lang.String... args)
@Nonnull public RestVariable setLocalCall(boolean 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 RestVariable 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 RestVariable setLocalURL(@MatchesPattern(value="/(feed|[Rr][Ee][sS][tT]/(article.*|(v|V)[0-9]+/[a-zA-Z0-9]+)(|/.*))(\\?.*)*") java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue public boolean isRemoteAuthorization(java.lang.String... args)
@Nonnull public RestVariable setRemoteAuthorization(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nonnull public java.lang.String getRemotePassword(java.lang.String... args)
@Nonnull public RestVariable setRemotePassword(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nonnull public java.lang.String getRemoteURL(java.lang.String... args)
@Nonnull public RestVariable setRemoteURL(@MatchesPattern(value="(https|http)://.*") java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nonnull public java.lang.String getRemoteUser(java.lang.String... args)
@Nonnull public RestVariable setRemoteUser(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@OverridingMethodsMustInvokeSuper
protected void extFixUp()
throws java.lang.Exception
DBObject@OverridingMethodsMustInvokeSuper
protected void extPreValidate()
throws java.lang.Exception
DBObjectextPreValidate in class SiteVariablejava.lang.Exception - a serious problem@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 errorpublic java.lang.Object calculateJSON(WebClient wc, java.util.HashMap<java.lang.String,SiteVariableCalculation> variables, SiteComponent component) throws java.lang.Exception
calculateJSON in class SiteVariablewc - the web clientvariables - the variables.component - java.lang.Exception - a serious problemprotected void validateSubType(@Nonnull
DBField field,
@Nullable
java.lang.Object value)
throws InvalidDataException,
InvalidDataWarning
DBObjectvalidateSubType in class DBObjectfield - The fieldvalue - the valueInvalidDataException - invalidate dataInvalidDataWarning@CheckReturnValue
protected java.lang.Object extGetDerivedValue(@Nonnull
DBField field,
@Nullable
FldParams params)
throws java.lang.Exception
DBObjectextGetDerivedValue in class JSONResultVariablefield - The field to getparams - The parameters for this field eg. language= or default=java.lang.Exception - a serious problemstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.