public abstract class PersDefBase extends PersistableDefObject implements PersonalizableDef
PersistableDefObject.CustomizationType, PersistableDefObject.PersonalizationType
DEF_MDS_CLIENT_KEY, DEF_SCOPE_ALL, DEF_SCOPE_PERS, DEF_SCOPE_SESSION, DEF_SCOPE_SHARED, mBaseDefObject, mExtendedDefObjects, mObjectResolved, PERSDEF_MDS_CLIENT_KEY, PROPERTY_EXPRMAP
mFullName, mObjName, mParent, mProperties, RES_ID_SUFFIX, RESID_SUFFIX
XML_STATEMENT
Constructor and Description |
---|
PersDefBase(DefinitionManager defMgr) |
PersDefBase(DefinitionManager defMgr, DefinitionObject staticDef) |
Modifier and Type | Method and Description |
---|---|
abstract void |
applyPersonalization(java.lang.Object instance) |
void |
applyPropertiesPersonalization(NamedObjectImpl obj) |
void |
deregisterDefObject() |
abstract DefinitionObject |
findStaticDefinitionObject(java.lang.String fullName) |
java.lang.String |
getBasePackage() |
java.lang.String |
getFileName() |
DefinitionObject |
getStaticDef() |
DefinitionObject |
getStaticDefWithCheck() |
static java.lang.String |
getTrimmedFullName(java.lang.String fullName) |
protected boolean |
isAuditEnabled() |
protected boolean |
isAuditEnabled(java.lang.String auditEvent) |
void |
loadSubclassXMLContents(DefElement xmlElement, java.lang.String fullName) |
void |
loadXMLContents(DefElement xmlElement, java.lang.String fullName) |
void |
mergePropertyMap(java.util.Map m) |
protected void |
raiseCustomAuditEvent(java.lang.String eventType, java.lang.String operation, java.lang.String descOfOperation) |
void |
registerDefObject() |
void |
registerSessionDefObject() |
void |
removeProperty(java.lang.String hintName, LocaleContext locale) |
void |
resolveDefObject() |
void |
saveXMLContents() |
void |
setFullName(java.lang.String fullName)
Give this object a fully-qualified name.
|
void |
setFullName(java.lang.String fullName, boolean setStaticDef) |
void |
setProperty(java.lang.String hintName, java.lang.Object hintValue, LocaleContext locale) |
void |
setPropertyExpression(java.lang.String hintName, java.lang.String expr) |
void |
setPropertyMap(java.util.Map m)
Replaces all properties.
|
protected void |
setStaticDef(DefinitionObject staticDefObj) |
void |
writeContents(DefWriter jos)
Objects should write their persistence output in this method
|
addDefImport, addExtendedDefObject, adjustPropertyMapForWrite, allocatePropertyMap, applyDiffChildren, applyDiffContents, checkEditable, close, createFromXML, deregisterSessionObject, diffChildren, diffContents, diffObjects, ensureDifferDetails, findDefImport, finishedLoading, getBaseDir, getDefImports, getDefManager, getDefWriter, getDefXMLElementTag, getDefXMLNameSpace, getEditObject, getExtendedDefObjectsInternal, getFullDirName, getFullFileName, getOrigObject, getPropertyMap, getSubstitutedNames, getSyncLock, getXMLElementTag, guaranteePath, hasExtendedDefObjects, isCustomizationEnabled, isCustomizationEnabled, isDirty, isEditable, isNew, isPersonalizationEnabled, isPersonalizationEnabled, loadDefImports, objectRemoved, reapplyChanges, registerClass, remove, removeAndDelete, removeDefImport, removeExtendedDefObject, setCustomizationEnabled, setCustomizationEnabled, setDefaultBaseDir, setDefMgr, setDirty, setEditable, setNew, setOrigObject, setPersonalizationEnabled, setPersonalizationEnabled, staticUpdateChildrenList, updateChildrenList, verifyVersion, verifyVersionNullCheck, writeChildren, writeObject, writeVersion, writeXMLContents
addPropertySetName, enableUpdateCheck, getAllExtendedDefObjects, getBaseDefObject, getContainerDef, getContainerName, getDefScope, getExtendedDefObjects, getMdsKey, getMdsReference, getPropertySetName, getPropertySetNames, getRootBaseDefObject, isBaseDefFor, isDynamicDefinitionObject, isObjectResolved, isSuppressUpdateCheck, loadCustomProperties, loadProperties, loadPropertiesInMap, loadPropertySetNames, loadSchemaProperties, resolveReferences, setBaseDefObject, setBaseDefObject, setDefScope, setMdsKey, setMdsReference, setName, setObjectResolved, setParent, setPropertySetName, staticLoadCustomProperties, staticLoadSchemaProperties, suppressUpdateCheck
getAllProperties, getFullName, getName, getParent, getProperties, getPropertiesAsStrings, getPropertiesMap, getProperty, getProperty, getPropertyExpressionsMap, getRawPropertyValue, getResourcesFromBundle, getStringFromMessageBundle, isPropertyExpression, refreshProperty, removeProperty, requiresNamePrefixedResId, resolveObjectProperty, resolvePropertyRaw, setPropertiesMap, setPropertiesMap2, setProperty
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFullName
getFullName, getName
public PersDefBase(DefinitionManager defMgr)
public PersDefBase(DefinitionManager defMgr, DefinitionObject staticDef)
public abstract DefinitionObject findStaticDefinitionObject(java.lang.String fullName)
findStaticDefinitionObject
in interface PersonalizableDef
public abstract void applyPersonalization(java.lang.Object instance)
applyPersonalization
in interface PersonalizableDef
public java.lang.String getBasePackage()
getBasePackage
in class PersistableDefObject
public static java.lang.String getTrimmedFullName(java.lang.String fullName)
public void setFullName(java.lang.String fullName)
NamedObjectImpl
setFullName
in class PersistableDefObject
fullName
- this object's fully-qualified name; the package name concatenated with the class name.public void setFullName(java.lang.String fullName, boolean setStaticDef)
public java.lang.String getFileName()
getFileName
in class PersistableDefObject
public DefinitionObject getStaticDef()
getStaticDef
in interface PersonalizableDef
public DefinitionObject getStaticDefWithCheck()
protected void setStaticDef(DefinitionObject staticDefObj)
public void resolveDefObject()
resolveDefObject
in interface PersonalizableDef
public void registerDefObject()
registerDefObject
in interface PersonalizableDef
registerDefObject
in class PersistableDefObject
public void registerSessionDefObject()
registerSessionDefObject
in class PersistableDefObject
public void deregisterDefObject()
deregisterDefObject
in interface PersonalizableDef
public void writeContents(DefWriter jos)
PersistentDefinition
writeContents
in interface PersistentDefinition
writeContents
in class PersistableDefObject
jos
- the Output storage for persistencepublic void saveXMLContents()
saveXMLContents
in class PersistableDefObject
public void loadXMLContents(DefElement xmlElement, java.lang.String fullName)
loadXMLContents
in class PersistableDefObject
public void loadSubclassXMLContents(DefElement xmlElement, java.lang.String fullName)
public void applyPropertiesPersonalization(NamedObjectImpl obj)
public void removeProperty(java.lang.String hintName, LocaleContext locale)
removeProperty
in class PersistableDefObject
public void setProperty(java.lang.String hintName, java.lang.Object hintValue, LocaleContext locale)
setProperty
in class PersistableDefObject
public void setPropertyExpression(java.lang.String hintName, java.lang.String expr)
setPropertyExpression
in class PersistableDefObject
public void setPropertyMap(java.util.Map m)
NamedObjectImpl
All existing properties are lost.
setPropertyMap
in class PersistableDefObject
public void mergePropertyMap(java.util.Map m)
mergePropertyMap
in class PersistableDefObject
protected void raiseCustomAuditEvent(java.lang.String eventType, java.lang.String operation, java.lang.String descOfOperation)
protected boolean isAuditEnabled(java.lang.String auditEvent)
protected boolean isAuditEnabled()