public class SiteConfigurationVariable extends SingleValueVariable
DBObject.DenormalizeAction
Modifier and Type | Field and Description |
---|---|
static GlobalId |
DBCLASS_GID
Site Configuration Variable
|
static java.lang.String |
DBCLASS_NAME
Site Configuration Variable
|
DEFAULT_VARIABLE_ENCODE, WEB_CLIENT
ATTRIBUTE_MARVIN, dbClass, ds, NO_LOOP_PARAMS
Constructor and Description |
---|
SiteConfigurationVariable(DBClass def,
DataSource dataSource) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
calculateResult(WebClient wc,
java.util.HashMap<java.lang.String,SiteVariableCalculation> variables,
SiteComponent component) |
static SiteConfigurationVarGroup |
cloneGroup(MutableDataSource mds,
Site clonedSite,
SiteConfigurationVarGroup srcObj,
java.util.HashMap<java.lang.Long,DBObject> clonedMap) |
protected void |
extCopy(DBObject target)
Additional functionality when an object is copied.
|
protected boolean |
extIsMandatory(DBField field)
OVERRIDE This method to specify fields should be mandatory under certain conditions.
|
protected void |
extPreSaveRecord()
OVERRIDE this method to add functionality to stSoftware BEFORE saving the record to the database.
|
SiteConfigurationVarType |
findType(java.lang.String... args)
Variable Type.
|
SiteConfigurationVarGroup |
findVarGroup(java.lang.String... args)
Variable Group.
|
SiteConfigurationVarValues |
findVarValue(java.lang.String... args)
Value of the variable.
|
SiteConfigurationVarType |
getType(java.lang.String... args) |
SiteConfigurationVarGroup |
getVarGroup(java.lang.String... args) |
SiteConfigurationVarValues |
getVarValue(java.lang.String... args) |
static SiteConfigurationVarValues |
makeClone(MutableDataSource mds,
SiteConfigurationVarValues srcObj,
java.util.HashMap<java.lang.Long,DBObject> clonedMap) |
SiteConfigurationVariable |
setType(com.aspc.dal.cms.variable.SiteConfigurationVarType value,
java.lang.String... args) |
SiteConfigurationVariable |
setVarGroup(com.aspc.dal.cms.variable.SiteConfigurationVarGroup value,
java.lang.String... args) |
SiteConfigurationVariable |
setVarValue(com.aspc.dal.cms.variable.SiteConfigurationVarValues value,
java.lang.String... args) |
encodeValue, extGetDerivedValue, findEncoding, getDefault, getEncoding, setDefault, setEncoding
calculateJSON, extGetDerivedGlobalKey, extPreValidate, extValidateRecord, findComponent, findInheritedByComponent, findKey, findOwnedBySite, findSite, getComponent, getID, getInheritedByComponent, getLabel, getName, getOwnedBySite, getPath, getResult, getSequence, getSite, isVisibleToThisComponent, makeQuery, setComponent, setID, setLabel, setName, setSequence, setSite
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, extDelete, extDeleteRecord, extFixUp, extGetValue, extIsOnChange, extMarkSavePoint, extPostDeleteRecord, extPostSaveRecord, extPreDeleteRecord, 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 SiteConfigurationVariable(DBClass def, DataSource dataSource) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public SiteConfigurationVarType getType(java.lang.String... args)
@CheckReturnValue @Nonnull public final SiteConfigurationVarType findType(java.lang.String... args) throws NotFoundException
SiteConfigurationVarType
(String, Mandatory, Searchable)args
- the optional argumentsNotFoundException
- SiteConfigurationVarType was not found@Nonnull public SiteConfigurationVariable setType(com.aspc.dal.cms.variable.SiteConfigurationVarType value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public SiteConfigurationVarGroup getVarGroup(java.lang.String... args)
@CheckReturnValue @Nonnull public final SiteConfigurationVarGroup findVarGroup(java.lang.String... args) throws NotFoundException
SiteConfigurationVarGroup
(Integer, Searchable)args
- the optional argumentsNotFoundException
- SiteConfigurationVarGroup was not found@Nonnull public SiteConfigurationVariable setVarGroup(com.aspc.dal.cms.variable.SiteConfigurationVarGroup value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public SiteConfigurationVarValues getVarValue(java.lang.String... args)
@CheckReturnValue @Nonnull public final SiteConfigurationVarValues findVarValue(java.lang.String... args) throws NotFoundException
SiteConfigurationVarValues
(Integer, Searchable)args
- the optional argumentsNotFoundException
- SiteConfigurationVarValues was not found@Nonnull public SiteConfigurationVariable setVarValue(com.aspc.dal.cms.variable.SiteConfigurationVarValues value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
public java.lang.String calculateResult(WebClient wc, java.util.HashMap<java.lang.String,SiteVariableCalculation> variables, SiteComponent component) throws java.lang.Exception
calculateResult
in class SingleValueVariable
java.lang.Exception
@OverridingMethodsMustInvokeSuper protected void extCopy(@Nonnull DBObject target) throws java.lang.Exception
DBObject
public static SiteConfigurationVarGroup cloneGroup(MutableDataSource mds, Site clonedSite, SiteConfigurationVarGroup srcObj, java.util.HashMap<java.lang.Long,DBObject> clonedMap) throws java.lang.Exception
java.lang.Exception
public static SiteConfigurationVarValues makeClone(MutableDataSource mds, SiteConfigurationVarValues srcObj, java.util.HashMap<java.lang.Long,DBObject> clonedMap) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue protected boolean extIsMandatory(@Nonnull DBField field)
DBObject
extIsMandatory
in class DBObject
field
- The field to check@OverridingMethodsMustInvokeSuper protected void extPreSaveRecord() throws java.lang.Exception
DBObject
extPreSaveRecord
in class DBObject
java.lang.Exception
- A Serious problemstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.