|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ptc.core.adapter.server.impl.AbstractWebject
com.ptc.core.adapter.server.impl.ActionWebject
public abstract class ActionWebject
The base class for Windchill Adapter ACT webjects. This abstract class contains only the most
basic and widely shared functionality used by all Windchill Adapter ACT webjects.
Supported API: true
Extendable: true
| Nested Class Summary | |
|---|---|
static class |
ActionWebject.Modification
The enumeration used for the MODIFICATION parameter. |
| Field Summary | |
|---|---|
protected String[] |
fieldParams
Contains a list of the values provided by the user for the webject's "FIELD" param. |
protected ActionWebject.Modification |
modification
For webjects that perform update operations, indicates whether new attribute values are added to existing ones or if the existing values are replaced. |
| Fields inherited from class com.ptc.core.adapter.server.impl.AbstractWebject |
|---|
adapterLogger, attributeLogger, attributeParams, commandFilter, containerQueryCriteria, containerRefs, descriptorParams, formatAttributes, groupOutClass, groupOutName, includeArgs, includeConstraints, includeDescriptors, locale, nextOp, objectRefs, referenceAttributes, referenceDelimiter, referenceExceptions, referenceOutputDelimiter, targetType, traceLogger, unformatted, webject, webjectLogger, whereClause |
| Method Summary | |
|---|---|
com.infoengine.object.factory.Element |
newTypeInstance(String type)
Uses the NewEntityCommand to construct a new type instance for the given type. |
com.infoengine.object.factory.Element |
newTypeInstance(String type,
String persistenceIdentifier)
Uses the NewEntityCommand to construct a new type instance for the given type. |
void |
preset(com.infoengine.object.factory.Task task)
This convenience method is intended to be called in the invoke() method to convert collect and process webject parameters and basic initialization. |
protected void |
setAttributeValue(TypeInstance typeInstance,
AttributeTypeIdentifier attrTypeId,
AttributeIdentifier ai,
Object value)
Sets the value of the attribute in the type instance. |
void |
setAttributeValue(TypeInstance typeInstance,
String field)
Sets the value of an attribute in the given type instance. |
void |
setAttributeValue(TypeInstance typeInstance,
String name,
Object value)
Sets the value of the named attribute in the given type instance. |
void |
setAttributeValue(TypeInstance typeInstance,
String name,
String value)
Sets the value of the named attribute in the given type instance. |
protected void |
setModification(ActionWebject.Modification modification)
Overrides the value of the modification parameter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ActionWebject.Modification modification
protected String[] fieldParams
| Method Detail |
|---|
public void preset(com.infoengine.object.factory.Task task)
throws WTException
preset in class AbstractWebjecttask - The Info*Engine task executed by the user. This is usually the same Task received by the invoke() method.
WTException
public void setAttributeValue(TypeInstance typeInstance,
String field)
throws WTException
typeInstance - The type instance to update.field - The value of a webject "FIELD" param specifying the attribute to update and its new value. "FIELD" params are in name=value form, where name is the logical form of an attribute name and value is the string form of the attribute's content.
WTException
public void setAttributeValue(TypeInstance typeInstance,
String name,
String value)
throws WTException
typeInstance - The type instance to update.name - The logical form of an attribute for which to update content.value - The string form of the attribute's new content. This will be translated to Object form as necessary.
WTException
public void setAttributeValue(TypeInstance typeInstance,
String name,
Object value)
throws WTException
typeInstance - The type instance to update.name - The logical form of an attribute for which to update content.value - If the value is a String form of the attribute's new content,
it will be translated to Object form as necessary.
Otherwise the value itself is used.
WTException
protected void setAttributeValue(TypeInstance typeInstance,
AttributeTypeIdentifier attrTypeId,
AttributeIdentifier ai,
Object value)
throws WTException
typeInstance - The type instance to modify.attrTypeId - The type of the attribute identifier.ai - The attribute whose value will be modified.value - The new value to set for the attribute.
WTExceptionprotected void setModification(ActionWebject.Modification modification)
modification - The new value.
public com.infoengine.object.factory.Element newTypeInstance(String type)
throws WTException
type - Specifies the string form of a type identifier for which to create a new type instance, e.g. "WCTYPE|wt.part.WTPart".
WTException
public com.infoengine.object.factory.Element newTypeInstance(String type,
String persistenceIdentifier)
throws WTException
type - The type for which to create a new type instance, e.g. "WCTYPE|wt.part.WTPart".persistenceIdentifier - The persistence identifier to assign to the new type instance.
WTException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||