public class OperationDefinitionImpl extends DefObject implements java.io.Serializable, DefPersistable, java.lang.Comparable, ExprDef, DebugExprDef
PersistableDefObject.CustomizationType, PersistableDefObject.PersonalizationType
mEditedProperties, mEditedPropertyExprs
DEF_MDS_CLIENT_KEY, DEF_SCOPE_ALL, DEF_SCOPE_PERS, DEF_SCOPE_SESSION, DEF_SCOPE_SHARED, DEF_SCOPE_SITE, mBaseDefObject, mExtendedDefObjects, mObjectResolved, PERSDEF_MDS_CLIENT_KEY, PROPERTY_EXPRMAP
mFullName, mObjName, mParent, mProperties, RES_ID_SUFFIX, RESID_SUFFIX
XML_STATEMENT
Constructor and Description |
---|
OperationDefinitionImpl()
For internal framework use only.
|
OperationDefinitionImpl(java.lang.String tag)
For internal framework use only.
|
OperationDefinitionImpl(java.lang.String uniqueid,
java.lang.String name,
java.lang.String returnType,
java.util.LinkedHashMap<java.lang.String,java.lang.String> params,
java.lang.String body)
For internal framework use only.
|
Modifier and Type | Method and Description |
---|---|
void |
addParameter(OperationParamImpl param)
For internal framework use only.
|
void |
applyDiffChildren(DifferDetails dif,
DiffResolver resolver) |
void |
applyDiffContents(DifferDetails dif,
DiffResolver resolver) |
OperationDefinitionImpl |
clone()
For internal framework use only.
|
int |
compareTo(java.lang.Object operationDef) |
DifferDetails |
diffChildren(DiffMergeable docDef,
DiffMergeable orgDef,
DifferDetails difDetails) |
DifferDetails |
diffContents(DiffMergeable docDef,
DiffMergeable orgDef,
DifferDetails difDetails) |
boolean |
equals(OperationDefinitionImpl opDef) |
ExprEval.Privilege |
getAccess()
For internal framework use only.
|
java.lang.String |
getAccessStr()
For internal framework use only.
|
java.lang.String |
getCacheKey(java.lang.String exprStr)
The key to be used for caching compiled expression instances.
|
java.lang.String |
getCategory()
For internal framework use only.
|
java.lang.String |
getDebugAttrName()
Return the attribute name of the expression owner.
|
java.lang.String |
getDebugComponentName()
Return the component name of the expression owner.
|
java.lang.String |
getDebugExpressionSource()
Return the version of the source that should be displayed in the debugger.
|
int |
getDebugOffset()
Return the offset of the start of the debug source in the
containing ExprDef::ExpressionSource.
|
java.lang.String |
getDebugTriggerName()
Return the name of the trigger or validation rule of the expression.
|
int |
getDefTypeId() |
java.lang.String |
getDefXMLElementTag()
For internal framework use only.
|
java.lang.String |
getDefXMLNameSpace()
For internal framework use only.
|
java.lang.String |
getExample()
For internal framework use only.
|
java.lang.String |
getExpressionSource()
The source string of the expression.
|
java.lang.String |
getExprIdentifier()
A unique identfier for the expression.
|
java.lang.String |
getFullName()
For internal framework use only.
|
java.lang.String |
getHelpText()
For internal framework use only.
|
java.lang.String |
getId()
For internal framework use only.
|
java.util.List<java.lang.String> |
getImplicitVariableNames()
Return a list of implicit variable names.
|
java.lang.String |
getInsertText()
For internal framework use only.
|
java.lang.Class |
getJavaReturnType()
For internal framework use only.
|
java.lang.Class |
getMessageBundleClass() |
java.lang.String |
getMethodBody()
For internal framework use only.
|
java.lang.String |
getMethodName()
For internal framework use only.
|
java.lang.String |
getMethodText()
For internal framework use only
|
protected java.lang.String |
getMethodText(int offset,
boolean global)
For internal framework use only.
|
java.lang.String |
getMethodType()
For internal framework use only.
|
OwnerType |
getOwnerType()
Returns the type of object that owners the expression class.
|
java.lang.String[] |
getParameterNames()
For internal framework use only.
|
java.util.HashMap<java.lang.String,java.lang.String> |
getParameters()
For internal framework use only.
|
java.lang.Class[] |
getParameterTypes()
For internal framework use only.
|
ResourceBundleDef |
getResourceBundleDef() |
java.lang.String |
getReturnType()
For internal framework use only.
|
java.lang.String |
getScriptClassName(java.lang.String exprStr)
Returns the name used for the expression class.
|
java.lang.String |
getSignature()
For internal framework use only.
|
ExprEval.TrustMode |
getTrustMode()
For internal framework use only.
|
java.lang.String |
getTrustModeStr()
For internal framework use only.
|
ExprEval.TypeCheckedMode |
getTypeCheckedMode()
Returns whether the expresion should be type checked when type checking
is enabled for the groovy compiler.
|
java.lang.String |
getXMLElementTag()
For internal framework use only.
|
boolean |
hasReturn()
If the expression has a return value.
|
boolean |
isGroovy()
For internal framework use only.
|
boolean |
isOperationsExpression()
If the expression defines operations.
|
void |
loadXMLContents(DefElement xmlElement,
java.lang.String fullName)
For internal framework use only.
|
OperationParamImpl |
lookupParameter(java.lang.String name)
For internal framework use only.
|
static void |
popPriv(java.lang.Object context,
ExprPrivCounter counter)
For internal framework use only.
|
static void |
pushPriv(java.lang.Object context,
ExprPrivCounter counter)
For internal framework use only.
|
void |
removeParameter(java.lang.String paramId)
For internal framework use only.
|
void |
setAccess(ExprEval.Privilege priv)
For internal framework use only.
|
void |
setAccess(java.lang.String priv)
For internal framework use only.
|
void |
setAccessStr(java.lang.String priv) |
void |
setCategory(java.lang.String category)
For internal framework use only.
|
protected void |
setDefForComponent(ComponentObjectImpl comp)
For internal framework use only.
|
void |
setDefScope(int defScope) |
void |
setExample(java.lang.String example)
For internal framework use only.
|
void |
setHelpText(java.lang.String helpText)
For internal framework use only.
|
void |
setId(java.lang.String id)
For internal framework use only.
|
void |
setInsertText(java.lang.String insertText)
For internal framework use only.
|
void |
setMethodBody(java.lang.String methodBody)
For internal framework use only.
|
void |
setMethodName(java.lang.String methodName)
For internal framework use only.
|
void |
setMethodType(java.lang.String typ)
For internal framework use only.
|
void |
setParameters(java.util.LinkedHashMap<java.lang.String,OperationParamImpl> parameters)
For internal framework use only.
|
void |
setReturnType(java.lang.String typStr)
For internal framework use only.
|
void |
setTrustMode(ExprEval.TrustMode trusted)
For internal framework use only.
|
void |
setTrustModeStr(java.lang.String s) |
void |
setTypeCheckedMode(ExprEval.TypeCheckedMode typeCheckedMode) |
protected void |
unsetDefForComponent(ComponentObjectImpl comp)
For internal framework use only.
|
void |
writeChildren(DefWriter jos)
For internal framework use only.
|
void |
writeContents(DefWriter jos)
For internal framework use only.
|
ensureVariableManager, finishedLoading, getAllProperties, getBaseDefObject, getVariableManager, getVarMgrParents, hasVariables, isDeprecated, isFromCustomization, loadProperties, loadVariables, resolvePropertyRaw, resolveReferences, setBaseDefObject, setBaseDefObject, setName, setParent
addDefImport, addExtendedDefObject, adjustPropertyMapForWrite, allocatePropertyMap, allocatePropertyMapForEdits, checkEditable, checkStructWithOld, close, createFromXML, deregisterSessionObject, diffObjects, ensureDifferDetails, findDefImport, getBaseDir, getBasePackage, getDefImports, getDefManager, getDefWriter, getEditedPropertiesMap, getEditedPropertyExpressionsMap, getEditedPropertyMap, getEditObject, getEditVersionsAsString, getExtendedDefObjectsInternal, getFileName, getFullDirName, getFullFileName, getMajorVersion, getMinorVersion, getOrigObject, getPropertyMap, getSubstitutedNames, getSyncLock, guaranteePath, hasExtendedDefObjects, isCustomizationEnabled, isCustomizationEnabled, isDirty, isEditable, isFromTip, isLoadBase, isMajorVersionChanged, isMinorVersionChanged, isNew, isPersonalizationEnabled, isPersonalizationEnabled, isPropertyExpression, loadDefImports, mergeChanges, mergePropertyMap, objectRemoved, reapplyChanges, registerClass, registerDefObject, registerSessionDefObject, registerSiteDefObject, remove, removeAndDelete, removeDefImport, removeExtendedDefObject, removeProperty, saveXMLContents, setCustomizationEnabled, setCustomizationEnabled, setDefaultBaseDir, setDefMgr, setDirty, setEditable, setEditableFlag, setEditableObject, setFullName, setFullNameInternal, setLoadBase, setMajorVersionChanged, setNew, setOrigObject, setPersonalizationEnabled, setPersonalizationEnabled, setProperty, setPropertyExpression, setPropertyMap, setupDefWriterFromMO, staticUpdateChildrenList, updateChildrenList, verifyVersion, verifyVersionNullCheck, writeObject, writeVersion, writeXMLContents
addPropertySetName, enableUpdateCheck, getAllExtendedDefObjects, getContainerDef, getContainerName, getDefinitionState, getDefScope, getExtendedDefObjects, getMdsKey, getMdsReference, getPropertySetName, getPropertySetNames, getRootBaseDefObject, isBaseDefFor, isDynamicDefinitionObject, isObjectResolved, isSuppressUpdateCheck, loadCustomProperties, loadPropertiesInMap, loadPropertySetNames, loadSchemaProperties, setMdsKey, setMdsReference, setObjectResolved, setPropertySetName, staticLoadCustomProperties, staticLoadSchemaProperties, suppressUpdateCheck
getName, getParent, getProperties, getPropertiesAsStrings, getPropertiesMap, getProperty, getProperty, getPropertyExpressionsMap, getRawPropertyValue, getResourcesFromBundle, getStringFromMessageBundle, refreshProperty, removeProperty, requiresNamePrefixedResId, resolveObjectProperty, setPropertiesMap, setPropertiesMap2, setProperty
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOrigObject, isDirty, isNew, setDirty, setNew, setOrigObject
writeObject
getName
getName
public OperationDefinitionImpl()
public OperationDefinitionImpl(java.lang.String tag)
public OperationDefinitionImpl(java.lang.String uniqueid, java.lang.String name, java.lang.String returnType, java.util.LinkedHashMap<java.lang.String,java.lang.String> params, java.lang.String body)
public void setDefScope(int defScope)
setDefScope
in class DefinitionObject
public java.lang.String getDefXMLElementTag()
getDefXMLElementTag
in interface PersistentDefinition
getDefXMLElementTag
in class PersistableDefObject
public java.lang.String getXMLElementTag()
getXMLElementTag
in interface PersistentDefinition
getXMLElementTag
in class PersistableDefObject
public java.lang.String getId()
public void setId(java.lang.String id)
public java.lang.String getFullName()
getFullName
in interface DiffMergeable
getFullName
in interface DefPersistable
getFullName
in class NamedObjectImpl
public java.lang.String getDefXMLNameSpace()
getDefXMLNameSpace
in interface PersistentDefinition
getDefXMLNameSpace
in class DefObject
public int getDefTypeId()
getDefTypeId
in class DefObject
protected void setDefForComponent(ComponentObjectImpl comp)
setDefForComponent
in class DefObject
protected void unsetDefForComponent(ComponentObjectImpl comp)
unsetDefForComponent
in class DefObject
public ResourceBundleDef getResourceBundleDef()
getResourceBundleDef
in interface VariableManagerOwnerBase
public java.lang.Class getMessageBundleClass()
getMessageBundleClass
in interface VariableManagerOwnerBase
public void writeContents(DefWriter jos)
writeContents
in interface PersistentDefinition
writeContents
in class PersistableDefObject
jos
- the Output storage for persistencepublic void writeChildren(DefWriter jos)
writeChildren
in interface PersistentDefinition
writeChildren
in class DefObject
jos
- the Output storage for persistencepublic OperationDefinitionImpl clone()
clone
in class java.lang.Object
public void loadXMLContents(DefElement xmlElement, java.lang.String fullName)
loadXMLContents
in class PersistableDefObject
public DifferDetails diffContents(DiffMergeable docDef, DiffMergeable orgDef, DifferDetails difDetails)
diffContents
in interface DiffMergeable
diffContents
in class PersistableDefObject
public DifferDetails diffChildren(DiffMergeable docDef, DiffMergeable orgDef, DifferDetails difDetails)
diffChildren
in interface DiffMergeable
diffChildren
in class DefObject
public void applyDiffContents(DifferDetails dif, DiffResolver resolver)
applyDiffContents
in interface DiffMergeable
applyDiffContents
in class PersistableDefObject
public void applyDiffChildren(DifferDetails dif, DiffResolver resolver)
applyDiffChildren
in interface DiffMergeable
applyDiffChildren
in class DefObject
public java.lang.String getCategory()
public void setCategory(java.lang.String category)
public java.lang.String getMethodName()
public java.lang.String getSignature()
public boolean isGroovy()
public java.lang.String getReturnType()
public void setReturnType(java.lang.String typStr)
public java.util.HashMap<java.lang.String,java.lang.String> getParameters()
public OperationParamImpl lookupParameter(java.lang.String name)
public void setParameters(java.util.LinkedHashMap<java.lang.String,OperationParamImpl> parameters)
public void addParameter(OperationParamImpl param)
public void removeParameter(java.lang.String paramId)
public java.lang.String[] getParameterNames()
public java.lang.Class[] getParameterTypes()
public java.lang.Class getJavaReturnType()
public java.lang.String getMethodBody()
public java.lang.String getMethodText()
protected java.lang.String getMethodText(int offset, boolean global)
public void setInsertText(java.lang.String insertText)
public java.lang.String getInsertText()
public void setHelpText(java.lang.String helpText)
public java.lang.String getHelpText()
public void setExample(java.lang.String example)
public java.lang.String getExample()
public void setAccess(ExprEval.Privilege priv)
public void setAccess(java.lang.String priv)
public ExprEval.Privilege getAccess()
public java.lang.String getAccessStr()
public void setAccessStr(java.lang.String priv)
public java.lang.String getTrustModeStr()
public void setTrustModeStr(java.lang.String s)
public void setTrustMode(ExprEval.TrustMode trusted)
public ExprEval.TrustMode getTrustMode()
getTrustMode
in interface ExprDef
public ExprEval.TypeCheckedMode getTypeCheckedMode()
ExprDef
getTypeCheckedMode
in interface ExprDef
public void setTypeCheckedMode(ExprEval.TypeCheckedMode typeCheckedMode)
public boolean equals(OperationDefinitionImpl opDef)
public void setMethodName(java.lang.String methodName)
public java.lang.String getMethodType()
public void setMethodType(java.lang.String typ)
public void setMethodBody(java.lang.String methodBody)
public static void pushPriv(java.lang.Object context, ExprPrivCounter counter)
public static void popPriv(java.lang.Object context, ExprPrivCounter counter)
public int compareTo(java.lang.Object operationDef)
compareTo
in interface java.lang.Comparable
public java.lang.String getExpressionSource()
ExprDef
getExpressionSource
in interface ExprDef
public boolean hasReturn()
ExprDef
public java.lang.String getExprIdentifier()
ExprDef
getExprIdentifier
in interface ExprDef
public java.lang.String getCacheKey(java.lang.String exprStr)
ExprDef
getCacheKey
in interface ExprDef
public java.lang.String getScriptClassName(java.lang.String exprStr)
ExprDef
getScriptClassName
in interface ExprDef
public boolean isOperationsExpression()
ExprDef
isOperationsExpression
in interface ExprDef
public java.util.List<java.lang.String> getImplicitVariableNames()
DebugExprDef
getImplicitVariableNames
in interface DebugExprDef
public java.lang.String getDebugComponentName()
DebugExprDef
getDebugComponentName
in interface DebugExprDef
public java.lang.String getDebugAttrName()
DebugExprDef
getDebugAttrName
in interface DebugExprDef
public java.lang.String getDebugTriggerName()
DebugExprDef
getDebugTriggerName
in interface DebugExprDef
public OwnerType getOwnerType()
ExprDef
getOwnerType
in interface ExprDef
public java.lang.String getDebugExpressionSource()
DebugExprDef
getDebugExpressionSource
in interface DebugExprDef
public int getDebugOffset()
DebugExprDef
getDebugOffset
in interface DebugExprDef