public class MenuComponent extends SiteComponent
DBObject.DenormalizeAction
Modifier and Type | Field and Description |
---|---|
static GlobalId |
DBCLASS_GID
Menu of pages
|
static java.lang.String |
DBCLASS_NAME
Menu of pages
|
SNAP2MAP
ATTRIBUTE_MARVIN, dbClass, ds, NO_LOOP_PARAMS
Constructor and Description |
---|
MenuComponent(DBClass def,
DataSource dataSource)
Std.
|
Modifier and Type | Method and Description |
---|---|
protected void |
extAutoEnterCreate()
Extend this method to add functionality when a new DBObject is created.
You may need to create a FldParams, and setIsAutoEntered(true)
so that system does not misunderstand that this object is changed by user. |
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.
|
HTMLComponent |
extProcess(WebClient client,
Site site,
HTMLPage page) |
protected ValidationError |
extValidateField(DBField field,
ValidationList list)
Additional validation for particular field OVERRIDE THIS METHOD TO ADD VALIDATIONS FOR A FIELD.
|
MenuComponent |
findExtendMenu(java.lang.String... args)
Extend the menu.
|
SiteActiveHTMLParser |
findParser(java.lang.String... args)
The parser to use.
|
Site |
findSite(java.lang.String... args)
owned by site.
|
SiteContainerType |
findType(java.lang.String... args)
The container type.
|
java.lang.String |
getAppendArticleClause(java.lang.String... args) |
int |
getAppendArticleLimit(java.lang.String... args) |
java.lang.String |
getAppendArticleOrderBy(java.lang.String... args) |
java.lang.String |
getAppendArticlePageUri(java.lang.String... args) |
java.lang.String |
getAppendMissingPages(java.lang.String... args) |
MenuComponent |
getExtendMenu(java.lang.String... args) |
java.lang.String |
getLabel(java.lang.String... args) |
int |
getLastMenuSequence(java.lang.String... args) |
SiteActiveHTMLParser |
getParser(java.lang.String... args) |
java.lang.String |
getRawHTML(java.lang.String... args) |
java.lang.String |
getResultJSON(java.lang.String... args) |
Site |
getSite(java.lang.String... args) |
SiteContainerType |
getType(java.lang.String... args) |
MenuComponent |
setAppendArticleClause(java.lang.String value,
java.lang.String... args) |
MenuComponent |
setAppendArticleLimit(int value,
java.lang.String... args) |
MenuComponent |
setAppendArticleOrderBy(java.lang.String value,
java.lang.String... args) |
MenuComponent |
setAppendArticlePageUri(java.lang.String value,
java.lang.String... args) |
MenuComponent |
setAppendMissingPages(java.lang.String value,
java.lang.String... args) |
MenuComponent |
setExtendMenu(com.aspc.dal.cms.component.MenuComponent value,
java.lang.String... args) |
MenuComponent |
setLabel(java.lang.String value,
java.lang.String... args) |
MenuComponent |
setLastMenuSequence(int value,
java.lang.String... args) |
MenuComponent |
setParser(com.aspc.dal.cms.variable.SiteActiveHTMLParser value,
java.lang.String... args) |
MenuComponent |
setRawHTML(java.lang.String value,
java.lang.String... args) |
MenuComponent |
setSite(com.aspc.dal.cms.Site value,
java.lang.String... args) |
MenuComponent |
setType(com.aspc.dal.cms.component.SiteContainerType value,
java.lang.String... args) |
java.lang.String |
toString()
The description.
|
addEdit, addEdit, canHandleNoneType, changeLinks, editHTML, extCopy, extPreDeleteRecord, extPreSaveRecord, extPreValidateDelete, extValidateDelete, extValidateRecord, findContainer, findIcon, findKey, findOwnedBySite, findVisibilityDesktop, findVisibilityMobile, findVisibilityTablet, getAccessibilityWarningCount, getAccessibilityWarningResult, getComponentPath, getContainer, getCreatedTS, getDefaultEncoding, getDerivedStyleClass, getDescendant, getDisplayPath, getDisplayTitle, getDisplayType, getDisplayXPath, getHandlebarsData, getHandlebarsHelpers, getIcon, getIconPath, getKey, getName, getOwnedBySite, getPage, getResult, getSequence, getSnap2Id, getStyleClass, getStyleClassVariable, getTargetWindow, getVisibilityDesktop, getVisibilityMobile, getVisibilityTablet, hasAttributes, isFinalFg, isLocked, isRelevantComponent, makeClone, makeDIV, makeQuery, makeSane, parseText, process, setAccessibilityWarningCount, setAccessibilityWarningResult, setContainer, setCreatedTS, setFinalFg, setHasAttributes, setId, setKey, setName, setSequence, setSnap2Id, setStyleClass, setStyleClassVariable, setVisibilityDesktop, setVisibilityMobile, setVisibilityTablet, shouldShow
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, extCanDeleteDependantObject, extCheckCreateAccess, extCheckDeleteAccess, extCheckModifyAccess, extCheckModifyAccess, extCheckReadAccess, extDelete, extDeleteRecord, extFixUp, extGetValue, extIsMandatory, extIsOnChange, extMarkSavePoint, extPostDeleteRecord, extPostSaveRecord, extRaiseEvents, extRollbackTo, extSaveRecord, extSetValue, extUndelete, 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, touch, undelete, validateField, validateRecord, validateSubType
public static final java.lang.String DBCLASS_NAME
public static final GlobalId DBCLASS_GID
public MenuComponent(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 getAppendArticleClause(java.lang.String... args)
@Nonnull public MenuComponent setAppendArticleClause(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public int getAppendArticleLimit(java.lang.String... args)
@Nonnull public MenuComponent setAppendArticleLimit(int value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getAppendArticleOrderBy(java.lang.String... args)
@Nonnull public MenuComponent setAppendArticleOrderBy(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getAppendArticlePageUri(java.lang.String... args)
@Nonnull public MenuComponent setAppendArticlePageUri(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getAppendMissingPages(java.lang.String... args)
@Nonnull public MenuComponent setAppendMissingPages(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public MenuComponent getExtendMenu(java.lang.String... args)
@CheckReturnValue @Nonnull public final MenuComponent findExtendMenu(java.lang.String... args) throws NotFoundException
MenuComponent
(Integer, Searchable)args
- the optional argumentsNotFoundException
- MenuComponent was not found@Nonnull public MenuComponent setExtendMenu(com.aspc.dal.cms.component.MenuComponent 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 MenuComponent setLabel(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public int getLastMenuSequence(java.lang.String... args)
@Nonnull public MenuComponent setLastMenuSequence(int value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public SiteActiveHTMLParser getParser(java.lang.String... args)
@CheckReturnValue @Nonnull public final SiteActiveHTMLParser findParser(java.lang.String... args) throws NotFoundException
SiteActiveHTMLParser
(String, Searchable)args
- the optional argumentsNotFoundException
- SiteActiveHTMLParser was not found@Nonnull public MenuComponent setParser(com.aspc.dal.cms.variable.SiteActiveHTMLParser value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getRawHTML(java.lang.String... args)
@Nonnull public MenuComponent setRawHTML(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getResultJSON(java.lang.String... args)
@CheckReturnValue @Nullable public Site getSite(java.lang.String... args)
@CheckReturnValue @Nonnull public final Site findSite(java.lang.String... args) throws NotFoundException
Site
(Integer, Mandatory, Searchable)args
- the optional argumentsNotFoundException
- Site was not found@Nonnull public MenuComponent setSite(com.aspc.dal.cms.Site value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public SiteContainerType getType(java.lang.String... args)
@CheckReturnValue @Nonnull public final SiteContainerType findType(java.lang.String... args) throws NotFoundException
SiteContainerType
(String, Searchable)args
- the optional argumentsNotFoundException
- SiteContainerType was not found@Nonnull public MenuComponent setType(com.aspc.dal.cms.component.SiteContainerType value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@OverridingMethodsMustInvokeSuper protected void extAutoEnterCreate() throws java.lang.Exception
DBObject
setIsAutoEntered(true)
so that system does not misunderstand that this object is changed by user.extAutoEnterCreate
in class DBObject
java.lang.Exception
- A serious problem@OverridingMethodsMustInvokeSuper protected void extPreValidate() throws java.lang.Exception
DBObject
extPreValidate
in class SiteComponent
java.lang.Exception
- a serious problem@CheckReturnValue protected ValidationError extValidateField(@Nonnull DBField field, @Nonnull ValidationList list) throws java.lang.Exception
DBObject
extValidateField
in class SiteComponent
field
- The field to be validatedlist
- The validation listjava.lang.Exception
- a serious error@CheckReturnValue @Nullable protected GlobalKey extGetDerivedGlobalKey(@Nonnull DBField field, @Nullable FldParams params) throws java.lang.Exception
DBObject
extGetDerivedGlobalKey
in class SiteComponent
field
- The field that is being changedparams
- The extra parametersjava.lang.Exception
- A serious problem. In general validation is done later.@CheckReturnValue protected java.lang.Object extGetDerivedValue(@Nonnull DBField field, @Nullable FldParams params) throws java.lang.Exception
DBObject
extGetDerivedValue
in class SiteComponent
field
- The field to getparams
- The parameters for this field eg. language= or default=java.lang.Exception
- a serious problem@CheckReturnValue @Nonnull public java.lang.String toString()
DBObject
public HTMLComponent extProcess(WebClient client, Site site, HTMLPage page) throws java.lang.Exception
extProcess
in class SiteComponent
java.lang.Exception
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.