public class DBHelpItem extends DBObject
DBObject.DenormalizeAction
Modifier and Type | Field and Description |
---|---|
static GlobalId |
DBCLASS_GID
Provides the help system structure.
|
static java.lang.String |
DBCLASS_NAME
Provides the help system structure.
|
static GlobalKey |
ROOT_HELP_ITEM_GKEY
The root HELP ITEM
|
ATTRIBUTE_MARVIN, dbClass, ds, NO_LOOP_PARAMS
Constructor and Description |
---|
DBHelpItem(DBClass def,
DataSource dataSource)
Std.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
buildHTMLAnchor(DBHelpItem helpItem,
java.lang.String target,
FldParams params) |
static DBHelpItem |
create(MutableDataSource mds)
Make a new instance of this class.
|
java.lang.String |
displayName()
The human display name of this object.
|
protected void |
eventFieldUpdated(DBField field,
java.lang.Object previous,
GlobalKey previousKey,
FldParams params)
Additional business logic when a field is updated.
|
protected void |
extCheckDeleteAccess()
Additional access checking for delete access of this object.
|
protected void |
extCheckModifyAccess()
Additional access checking for write access of this object.
|
protected void |
extCheckModifyAccess(DBField field)
Additional access checking for write access for a field of this object.
|
protected void |
extCheckReadAccess()
Additional access checking for read access of this object.
|
protected void |
extFixUp()
The extended fix up routine
|
protected java.lang.Object |
extGetDerivedValue(DBField field,
FldParams params)
Calculate the derived value for this field.
|
protected boolean |
extIsMandatory(DBField field)
Conditional mandatory field.
|
protected boolean |
extIsOnChange(DBField field)
OVERRIDE This method to specify that when a field is updated it will affect other fields.
|
protected void |
extSetValue(DBField field,
java.lang.Object currentValue,
FldParams params)
We prevent some values from being set by a user.
|
protected ValidationError |
extValidateField(DBField field,
ValidationList list)
Additional validation for a particular field.
|
Person |
findContentAuthor(java.lang.String... args)
Content Author.
|
DBFile |
findHelpFile(java.lang.String... args)
Help File.
|
static DBHelpItem |
findKey(DataSource ds,
int key)
Find the target for this class by the primary key
|
DBHelpItem |
findParentId(java.lang.String... args)
Parent Id.
|
Person |
getContentAuthor(java.lang.String... args) |
java.lang.String |
getDisplayHTML(java.lang.String... args) |
java.lang.String |
getDisplayHTMLPath(java.lang.String... args) |
java.lang.String |
getDisplayShortText(java.lang.String... args) |
DBFile |
getHelpFile(java.lang.String... args) |
java.lang.String |
getHtmlText(java.lang.String... args) |
int |
getID(java.lang.String... args) |
java.util.Date |
getModifiedTS(java.lang.String... args) |
DBHelpItem |
getParentFolder()
The parent folder of this help item.
|
DBHelpItem |
getParentId(java.lang.String... args) |
java.lang.String |
getPath(java.lang.String... args) |
java.lang.String |
getPermittedLayers(java.lang.String... args) |
java.lang.String |
getPlainText(java.lang.String... args) |
protected java.lang.String |
getSection(boolean category,
FldParams params)
Automatically generate section string.
|
int |
getSeq(java.lang.String... args) |
java.lang.String |
getTitle(java.lang.String... args) |
boolean |
hasCreateAccess(java.lang.String... args) |
boolean |
hasDeleteAccess(java.lang.String... args) |
boolean |
hasFullAccess(java.lang.String... args) |
boolean |
hasModifyAccess(java.lang.String... args) |
boolean |
hasReadAccess(java.lang.String... args) |
static DBQuery<DBHelpItem> |
makeQuery(DataSource ds)
Make a new QUERY for this class.
|
DBHelpItem |
setContentAuthor(com.aspc.dal.dbobj.contact.Person value,
java.lang.String... args) |
DBHelpItem |
setHelpFile(com.aspc.dal.file.DBFile value,
java.lang.String... args) |
DBHelpItem |
setHtmlText(java.lang.String value,
java.lang.String... args) |
DBHelpItem |
setID(int value,
java.lang.String... args) |
DBHelpItem |
setModifiedTS(java.util.Date value,
java.lang.String... args) |
DBHelpItem |
setParentId(com.aspc.dal.dbobj.help.DBHelpItem value,
java.lang.String... args) |
DBHelpItem |
setPermittedLayers(java.lang.String value,
java.lang.String... args) |
DBHelpItem |
setPlainText(java.lang.String value,
java.lang.String... args) |
DBHelpItem |
setSeq(int value,
java.lang.String... args) |
DBHelpItem |
setShowSectionsAsHeirachy(boolean value,
java.lang.String... args) |
DBHelpItem |
setTitle(java.lang.String value,
java.lang.String... args) |
boolean |
showSectionsAsHeirachy(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, displayValue, doSearch, dump, equals, eventDataLoaded, extAutoEnterCreate, extCanDeleteDependantObject, extCheckCreateAccess, extCopy, extDelete, extDeleteRecord, extGetDerivedGlobalKey, extGetValue, extMarkSavePoint, extPostDeleteRecord, extPostSaveRecord, extPreDeleteRecord, extPreSaveRecord, extPreValidate, extPreValidateDelete, extRaiseEvents, extRollbackTo, extSaveRecord, 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, validateSubType
public static final GlobalKey ROOT_HELP_ITEM_GKEY
public static final java.lang.String DBCLASS_NAME
public static final GlobalId DBCLASS_GID
public DBHelpItem(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 DBHelpItem setID(int value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public Person getContentAuthor(java.lang.String... args)
@CheckReturnValue @Nonnull public final Person findContentAuthor(java.lang.String... args) throws NotFoundException
Person
(Integer,
Searchable)args
- the optional argumentsNotFoundException
- Person was not found@Nonnull public DBHelpItem setContentAuthor(com.aspc.dal.dbobj.contact.Person value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getDisplayHTML(java.lang.String... args)
@CheckReturnValue @Nonnull public java.lang.String getDisplayHTMLPath(java.lang.String... args)
@CheckReturnValue @Nonnull public java.lang.String getDisplayShortText(java.lang.String... args)
@CheckReturnValue public boolean hasCreateAccess(java.lang.String... args)
@CheckReturnValue public boolean hasDeleteAccess(java.lang.String... args)
@CheckReturnValue public boolean hasFullAccess(java.lang.String... args)
@CheckReturnValue public boolean hasModifyAccess(java.lang.String... args)
@CheckReturnValue public boolean hasReadAccess(java.lang.String... args)
@CheckReturnValue @Nullable public DBFile getHelpFile(java.lang.String... args)
@CheckReturnValue @Nonnull public final DBFile findHelpFile(java.lang.String... args) throws NotFoundException
DBFile
(Integer, Searchable)args
- the optional argumentsNotFoundException
- DBFile was not found@Nonnull public DBHelpItem setHelpFile(com.aspc.dal.file.DBFile value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getHtmlText(java.lang.String... args)
@Nonnull public DBHelpItem setHtmlText(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public java.util.Date getModifiedTS(java.lang.String... args)
@Nonnull public DBHelpItem setModifiedTS(java.util.Date value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public DBHelpItem getParentId(java.lang.String... args)
@CheckReturnValue @Nonnull public final DBHelpItem findParentId(java.lang.String... args) throws NotFoundException
DBHelpItem
(Integer,
Searchable)args
- the optional argumentsNotFoundException
- DBHelpItem was not found@Nonnull public DBHelpItem setParentId(com.aspc.dal.dbobj.help.DBHelpItem value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getPath(java.lang.String... args)
@CheckReturnValue @Nonnull public java.lang.String getPermittedLayers(java.lang.String... args)
@Nonnull public DBHelpItem setPermittedLayers(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getPlainText(java.lang.String... args)
@Nonnull public DBHelpItem setPlainText(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public int getSeq(java.lang.String... args)
@Nonnull public DBHelpItem setSeq(int value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean showSectionsAsHeirachy(java.lang.String... args)
@Nonnull public DBHelpItem setShowSectionsAsHeirachy(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getTitle(java.lang.String... args)
@Nonnull public DBHelpItem setTitle(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@Nonnull @CheckReturnValue public static DBHelpItem create(@Nonnull MutableDataSource mds) throws java.lang.Exception
mds
- the datasourcejava.lang.Exception
- an object of this class could not be created@Nonnull @CheckReturnValue public static DBQuery<DBHelpItem> makeQuery(@Nonnull DataSource ds) throws NotFoundException
ds
- the datasourceNotFoundException
- if class could not be found@Nonnull @CheckReturnValue public static DBHelpItem 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@OverridingMethodsMustInvokeSuper protected void extFixUp() throws java.lang.Exception
DBObject
@CheckReturnValue @Nonnull public java.lang.String displayName()
displayName
in class DBObject
@CheckReturnValue protected boolean extIsMandatory(@Nonnull DBField field)
extIsMandatory
in class DBObject
field
- The field to getDBObject.extIsMandatory( DBField)
@CheckReturnValue @OverridingMethodsMustInvokeSuper @Nullable protected ValidationError extValidateField(@Nonnull DBField field, @Nonnull ValidationList list) throws java.lang.Exception
extValidateField
in class DBObject
list
- The validation listfield
- The field to be validatedjava.lang.Exception
- A serious problem@CheckReturnValue protected java.lang.Object extGetDerivedValue(@Nonnull DBField field, @Nullable FldParams params) throws java.lang.Exception
extGetDerivedValue
in class DBObject
field
- The field to getparams
- The parameters for this field eg. language= or default=java.lang.Exception
- A serious problem@OverridingMethodsMustInvokeSuper protected void extCheckDeleteAccess() throws DBAccessException
DBObject
extCheckDeleteAccess
in class DBObject
DBAccessException
- No access to delete@OverridingMethodsMustInvokeSuper protected void extCheckModifyAccess() throws DBAccessException
DBObject
extCheckModifyAccess
in class DBObject
DBAccessException
- No access to modify@OverridingMethodsMustInvokeSuper protected void extCheckReadAccess() throws DBAccessException
DBObject
extCheckReadAccess
in class DBObject
DBAccessException
- No access to read@OverridingMethodsMustInvokeSuper protected void extCheckModifyAccess(DBField field) throws DBAccessException
DBObject
extCheckModifyAccess
in class DBObject
field
- Can we change this field ?DBAccessException
- No access to changeprotected java.lang.String getSection(boolean category, FldParams params) throws java.lang.Exception
category
- boolean value for categoryparams
- The parameters for this fieldjava.lang.Exception
- A serious problempublic java.lang.String buildHTMLAnchor(DBHelpItem helpItem, java.lang.String target, FldParams params) throws java.lang.Exception
helpItem
- the itemtarget
- the targetparams
- the parametersjava.lang.Exception
- a serious problempublic DBHelpItem getParentFolder()
protected void extSetValue(@Nonnull DBField field, @Nullable java.lang.Object currentValue, @Nullable FldParams params) throws java.lang.Exception
extSetValue
in class DBObject
field
- The field that is being changedcurrentValue
- The new valueparams
- The extra parametersjava.lang.Exception
- A serious problem@CheckReturnValue protected boolean extIsOnChange(@Nonnull DBField field)
extIsOnChange
in class DBObject
field
- The field to check@OverridingMethodsMustInvokeSuper protected void eventFieldUpdated(@Nonnull DBField field, @Nullable java.lang.Object previous, @Nullable GlobalKey previousKey, @Nullable FldParams params) throws java.lang.Exception
eventFieldUpdated
in class DBObject
field
- The field updated.previous
- The previous value for this field.previousKey
- The previous keyparams
- The parameters usedjava.lang.Exception
- A serious problemDBObject.eventFieldUpdated( DBField, Object, GlobalKey, FldParams)
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.