public abstract class SiteVariable extends DBObject
DBObject.DenormalizeAction
Modifier and Type | Field and Description |
---|---|
static GlobalId |
DBCLASS_GID
Site Component Variable
|
static java.lang.String |
DBCLASS_NAME
Site Component Variable
|
static java.lang.ThreadLocal<java.lang.String> |
DEFAULT_VARIABLE_ENCODE |
static java.lang.ThreadLocal<WebClient> |
WEB_CLIENT |
ATTRIBUTE_MARVIN, dbClass, ds, NO_LOOP_PARAMS
Constructor and Description |
---|
SiteVariable(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 GlobalKey |
extGetDerivedGlobalKey(DBField field,
FldParams params)
OVERRIDE This method to return a derived global key.
|
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 void |
extValidateRecord(ValidationList list)
Performs additional validations on this record.
|
SiteComponent |
findComponent(java.lang.String... args)
The site component.
|
SiteComponent |
findInheritedByComponent(java.lang.String... args)
This variable is inherited by this component.
|
static SiteVariable |
findKey(DataSource ds,
int key)
Find the target for this class by the primary key
|
Site |
findOwnedBySite(java.lang.String... args)
Owned By Site.
|
Site |
findSite(java.lang.String... args)
The site for this variable.
|
SiteComponent |
getComponent(java.lang.String... args) |
int |
getID(java.lang.String... args) |
SiteComponent |
getInheritedByComponent(java.lang.String... args) |
java.lang.String |
getLabel(java.lang.String... args) |
java.lang.String |
getName(java.lang.String... args) |
Site |
getOwnedBySite(java.lang.String... args) |
java.lang.String |
getPath(java.lang.String... args) |
java.lang.String |
getResult(java.lang.String... args) |
int |
getSequence(java.lang.String... args) |
Site |
getSite(java.lang.String... args) |
boolean |
isVisibleToThisComponent(java.lang.String... args) |
static DBQuery<SiteVariable> |
makeQuery(DataSource ds)
Make a new QUERY for this class.
|
SiteVariable |
setComponent(com.aspc.dal.cms.SiteComponent value,
java.lang.String... args) |
SiteVariable |
setID(int value,
java.lang.String... args) |
SiteVariable |
setLabel(java.lang.String value,
java.lang.String... args) |
SiteVariable |
setName(java.lang.String value,
java.lang.String... args) |
SiteVariable |
setSequence(int value,
java.lang.String... args) |
SiteVariable |
setSite(com.aspc.dal.cms.Site value,
java.lang.String... args) |
addReloadEventListener, 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, extGetValue, extIsMandatory, extIsOnChange, extMarkSavePoint, extPostDeleteRecord, extPostSaveRecord, extPreDeleteRecord, extPreSaveRecord, extPreValidateDelete, extRaiseEvents, extRollbackTo, extSaveRecord, extSetValue, extUndelete, extValidateDelete, extValidateField, 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, validateSubType
public static final java.lang.String DBCLASS_NAME
public static final GlobalId DBCLASS_GID
public static final java.lang.ThreadLocal<java.lang.String> DEFAULT_VARIABLE_ENCODE
public static final java.lang.ThreadLocal<WebClient> WEB_CLIENT
public SiteVariable(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 public int getID(java.lang.String... args)
@Nonnull public SiteVariable setID(int value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getLabel(java.lang.String... args)
@Nonnull public SiteVariable setLabel(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public SiteComponent getComponent(java.lang.String... args)
@CheckReturnValue @Nonnull public final SiteComponent findComponent(java.lang.String... args) throws NotFoundException
SiteComponent
(Integer,
Searchable)args
- the optional argumentsNotFoundException
- SiteComponent was not found@Nonnull public SiteVariable setComponent(com.aspc.dal.cms.SiteComponent value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public SiteComponent getInheritedByComponent(java.lang.String... args)
@CheckReturnValue @Nonnull public final SiteComponent findInheritedByComponent(java.lang.String... args) throws NotFoundException
SiteComponent
(Integer,
Derived, Searchable)args
- the optional argumentsNotFoundException
- SiteComponent was not found@CheckReturnValue @Nonnull public java.lang.String getName(java.lang.String... args)
@Nonnull public SiteVariable setName(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public Site getOwnedBySite(java.lang.String... args)
@CheckReturnValue @Nonnull public final Site findOwnedBySite(java.lang.String... args) throws NotFoundException
Site
(Integer, Derived, Searchable)args
- the optional argumentsNotFoundException
- Site was not found@CheckReturnValue @Nonnull public java.lang.String getPath(java.lang.String... args)
@CheckReturnValue @Nonnull public java.lang.String getResult(java.lang.String... args)
@CheckReturnValue public int getSequence(java.lang.String... args)
@Nonnull public SiteVariable setSequence(int value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public Site getSite(java.lang.String... args)
@CheckReturnValue @Nonnull public final Site findSite(java.lang.String... args) throws NotFoundException
Site
(Integer, Searchable)args
- the optional argumentsNotFoundException
- Site was not found@Nonnull public SiteVariable setSite(com.aspc.dal.cms.Site value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isVisibleToThisComponent(java.lang.String... args)
@Nonnull @CheckReturnValue public static DBQuery<SiteVariable> makeQuery(@Nonnull DataSource ds) throws NotFoundException
ds
- the datasourceNotFoundException
- if class could not be found@Nonnull @CheckReturnValue public static SiteVariable findKey(@Nonnull DataSource ds, int key) throws NotFoundException, java.lang.Exception
ds
- the datasourcekey
- the valueNotFoundException
- if target could not be foundjava.lang.Exception
- a serious problem@CheckReturnValue protected java.lang.Object extGetDerivedValue(@Nonnull DBField field, @Nullable FldParams params) throws java.lang.Exception
DBObject
extGetDerivedValue
in class DBObject
field
- The field to getparams
- The parameters for this field eg. language= or default=java.lang.Exception
- a serious problem@CheckReturnValue @Nullable protected GlobalKey extGetDerivedGlobalKey(@Nonnull DBField field, @Nullable FldParams params) throws java.lang.Exception
DBObject
extGetDerivedGlobalKey
in class DBObject
field
- The field that is being changedparams
- The extra parametersjava.lang.Exception
- A serious problem. In general validation is done later.@OverridingMethodsMustInvokeSuper protected void extValidateRecord(@Nonnull ValidationList list) throws java.lang.Exception
extValidateRecord
in class DBObject
list
- The validation list.java.lang.Exception
- A serious problempublic java.lang.Object calculateJSON(WebClient wc, java.util.HashMap<java.lang.String,SiteVariableCalculation> variables, SiteComponent component) throws java.lang.Exception
wc
- the web clientvariables
- the variables.component
- java.lang.Exception
- a serious problem@OverridingMethodsMustInvokeSuper protected void extPreValidate() throws java.lang.Exception
DBObject
extPreValidate
in class DBObject
java.lang.Exception
- a serious problemstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.