|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ptc.core.adapter.server.impl.AbstractWebjectDelegate
public abstract class AbstractWebjectDelegate
Provides the general notion of a webject delegate for the Windchill adapter.
Most webject delegates should extend this class.
Supported API: true
Extendable: true
| Field Summary | |
|---|---|
protected String[] |
attributeParams
Deprecated. Contains a list of the values provided by the user for the webject's "ATTRIBUTE" param. |
protected AttributeContainerSpec |
commandFilter
Deprecated. The com.ptc.core.meta.container.common.AttributeContainerSpec to use for commands executed by a webject delegate. |
protected com.ptc.core.meta.container.common.AttributeContainerSet |
containerQueryCriteria
Deprecated. Provides the criteria for finding containers specified by the webject's "CONTAINER_REF" param. |
protected WTContainerRef[] |
containerRefs
Deprecated. Contains a list of wt.inf.container.WTContainerRef objects as specified by the user in the webject's "CONTAINER_REF" param. |
protected String[] |
descriptorParams
Deprecated. Contains a list of the values provided by the user for the webject's "DESCRIPTOR" param. |
protected String[] |
fieldParams
Deprecated. Contains a list of the values provided by the user for the webject's "FIELD" param. |
protected boolean |
formatAttributes
Deprecated. Indicates whether the attribute values in the output group's type instances should be formatted for the end user. |
protected String |
groupOutClass
Deprecated. The class name of objects in the output group as indicated by the webject's "TYPE" param. |
protected String |
groupOutName
Deprecated. The name of the output group as indicated by the webject's "GROUP_OUT" param. |
protected boolean |
includeArgs
Deprecated. Indicates whether to include args in command filters. |
protected boolean |
includeConstraints
Deprecated. Indicates whether to include constraints in command filters. |
protected boolean |
includeDescriptors
Deprecated. Indicates whether to include descriptors in command filters. |
protected Locale |
locale
Deprecated. Indicates the locale of the webject. |
protected String |
modification
Deprecated. For webjects that perform update operations, indicates whether new attribute values are added to existing ones or if the existing values are replaced. |
protected String |
nextOp
Deprecated. The intended next operation to be performed on the webject's result type instance(s). |
protected String[] |
objectRefs
Deprecated. Contains a list of the values provided by the user for the webject's "OBJECT_REF" param. |
protected Hashtable |
referenceAttributes
Deprecated. Contains a list of reference attributes provided by the user with the webject's "ATTRIBUTE" param. |
protected String |
referenceDelimiter
Deprecated. The delimiter for reference attributes specified in the webject's "ATTRIBUTE" param. |
protected boolean |
referenceExceptions
Deprecated. Indicates whether or not access control exceptions thrown while expanding reference attributes should be propagated. |
protected String |
referenceOutputDelimiter
Deprecated. The delimiter for reference attributes returned for expanded references in the webject's output group . |
protected String |
targetType
Deprecated. The target type of the webject delegate's operation as indicated by the webject's "TYPE" param. |
protected List |
unformatted
Deprecated. List of Classes (java types) to remain unformatted if formatAttributes is true. |
protected String |
whereClause
Deprecated. The where clause of the webject delegate's operation as indicated by the webject's "WHERE" param. |
| Method Summary | |
|---|---|
void |
addFilteredTypeInstance(com.infoengine.object.factory.Group group,
TypeInstance typeInstance,
String[] attributes)
Deprecated. Adds the type instance to the group. |
void |
addTypeInstance(com.infoengine.object.factory.Group group,
TypeInstance typeInstance)
Deprecated. Adds the type instance to the group. |
com.ptc.core.command.common.Command |
executeCommand(com.ptc.core.command.common.Command command)
Deprecated. Executes the given command and returns a new command containing the result. |
com.ptc.core.meta.container.common.AttributeContainerSet |
getAttributeContainerSet(String whereclause,
TypeIdentifier typeId)
Deprecated. Returns the AttributeContainerSet for the attributes specified in the where clause. |
AttributeIdentifier |
getAttributeIdentifier(String attribute)
Deprecated. Returns the AttributeIdentifier for the logical form. |
protected AttributeIdentifier |
getAttributeIdentifier(TypeInstance typeInstance,
AttributeTypeIdentifier attrTypeId,
Object value)
Deprecated. Returns an attribute identifier for the provided context. |
String[] |
getAttributes(com.infoengine.object.factory.Webject webject)
Deprecated. Returns a list of logical attribute names specified with the webject's "ATTRIBUTE" param. |
static com.ptc.core.adapter.server.impl.AttributeTranslator |
getAttributeTranslator(AttributeTypeIdentifier attrTypeId)
Deprecated. Returns an attribute translator for the given attribute type identifier. |
static com.ptc.core.adapter.server.impl.AttributeTranslator |
getAttributeTranslator(Class targetClass)
Deprecated. Returns an attribute translator for the given target class. |
AttributeTypeIdentifier |
getAttributeTypeIdentifier(String attribute,
TypeIdentifier typeId)
Deprecated. Returns the AttributeTypeIdentifier for the given attribute and TypeIdentifier. |
AttributeTypeIdentifier[] |
getAttributeTypeIdentifiers(String[] attributes,
TypeIdentifier typeId)
Deprecated. Returns an array of AttributeTypeIdentifiers for a given TypeIdentifier. |
String |
getAttributeValue(TypeInstance typeInstance,
String name)
Deprecated. Returns the Object value of an attribute from the type instance. |
protected com.ptc.core.meta.container.common.AttributeContainerSet |
getContainerQueryCriteria()
Deprecated. Returns search criteria built for the container reference(s) used by the webject. |
protected WTContainerRef[] |
getContainers(com.infoengine.object.factory.Task task,
Enumeration containerRefParams)
Deprecated. Returns a set of container references that will be used by the webject. |
String[] |
getDefaultAttributes(TypeIdentifier typeIdentifier)
Deprecated. Given a type identifier, returns a list of logical attribute names which have been configured as default. |
AttributeContainerSpec |
getFilter(TypeIdentifier typeId,
String[] attributes)
Deprecated. Given the value(s) of the webject's attribute parameter, return a command filter. |
AttributeContainerSpec |
getFilter(TypeInstance instance,
String[] attributes)
Deprecated. Given the value(s) of the webject's attribute parameter, return a command filter. |
String |
getLocalDomain()
Deprecated. Gets the name of the Windchill adapter's local domain. |
protected Locale |
getLocale()
Deprecated. Supported API: true |
String |
getLocalGuid()
Deprecated. Returns the local GUID for the Windchill adapter. |
String |
getOBID(TypeInstance ti)
Deprecated. Returns the obid for the given TypeInstance. |
protected TypeInstance |
getRemoteObject(String ufid,
String objectType,
String objectId)
Deprecated. Returns a type instance representing an object located in a remote repository. |
ResultContainer |
getResultContainer(com.ptc.core.meta.container.common.AttributeContainerSet acs,
TypeIdentifier typeId)
Deprecated. This method does a container-aware query for type instances using the given type identifier and search criteria. |
Vector |
getTargetTypeInstances()
Deprecated. Convenience method that returns a Vector of target type instances specified by the user via the webject's TYPE/WHERE and/or OBJECT_REF params. |
TypeIdentifier |
getTypeIdentifier(String classname)
Deprecated. Returns the type identifier for the given class or type name. |
TypeInstance |
getTypeInstance(Persistable persistable,
String[] attributes)
Deprecated. Returns the type instance corresponding to the given persistable object. |
TypeInstance |
getTypeInstance(String obid)
Deprecated. Returns a TypeInstance for the given obid. |
TypeInstance |
getTypeInstance(String obid,
String[] attributes)
Deprecated. Returns a TypeInstance for the given obid. |
Vector |
getTypeInstances(String className,
String whereclause,
String[] attributes)
Deprecated. This container-aware method returns a Vector of TypeInstances for the given type and search condition(s) in the where clause. |
abstract com.infoengine.object.factory.Task |
invoke(com.infoengine.object.factory.Task task)
Deprecated. Webject delegate subclasses implement this method to perform work. |
protected boolean |
isFormatAttributes()
Deprecated. Supported API: true |
boolean |
isInstanceOf(TypeIdentifier typeIdentifier,
TypeInstance instance)
Deprecated. Determines if the given type instance is an instance of the type. |
boolean |
isLocalDomain(String domain)
Deprecated. Determines if the given domain is equivalent to the Windchill adapter's local domain. |
boolean |
isSubtypeOf(TypeIdentifier typeIdentifier,
TypeIdentifier candidateType)
Deprecated. Determines if the type identifier is a subtype of the candidate type identifier. |
com.infoengine.object.factory.Element |
newTypeInstance(String type)
Deprecated. Uses the NewEntityCommand to construct a new type instance for the given type. |
com.infoengine.object.factory.Element |
newTypeInstance(String type,
String persistenceIdentifier)
Deprecated. Uses the NewEntityCommand to construct a new type instance for the given type. |
void |
preset(com.infoengine.object.factory.Task task)
Deprecated. This convenience method is intended to be called in the invoke() method to convert a standard set of webject param values into the various search structures (SearchInfo, SearchCriteriaInfo, SearchPagingInfo, SearchSortInfo). |
protected TypeInstance |
refreshTypeInstance(TypeIdentifier tid,
String[] attributes)
Deprecated. Gets a refreshed type instance for the type. |
protected TypeInstance |
refreshTypeInstance(TypeInstanceIdentifier typeInstanceID,
String[] attributes)
Deprecated. Gets a refreshed type instance for the type instance ID. |
protected void |
setAttributeValue(TypeInstance typeInstance,
AttributeTypeIdentifier attrTypeId,
AttributeIdentifier ai,
Object value)
Deprecated. Sets the value of the attribute in the type instance. |
void |
setAttributeValue(TypeInstance typeInstance,
String field)
Deprecated. Sets the value of an attribute in the given type instance. |
void |
setAttributeValue(TypeInstance typeInstance,
String name,
String value)
Deprecated. Sets the value of the named attribute in the given type instance. |
protected void |
setFormatAttributes(boolean fa)
Deprecated. Supported API: true |
protected void |
setLocale(Locale l)
Deprecated. Supported API: true |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Locale locale
protected String[] attributeParams
protected String[] fieldParams
protected String groupOutClass
protected String groupOutName
protected String[] objectRefs
protected String targetType
protected String whereClause
protected String nextOp
protected String[] descriptorParams
protected boolean formatAttributes
protected List unformatted
protected boolean includeConstraints
protected boolean includeDescriptors
protected boolean includeArgs
protected String modification
protected Hashtable referenceAttributes
protected String referenceDelimiter
protected boolean referenceExceptions
protected String referenceOutputDelimiter
protected AttributeContainerSpec commandFilter
protected WTContainerRef[] containerRefs
protected com.ptc.core.meta.container.common.AttributeContainerSet containerQueryCriteria
| Method Detail |
|---|
public abstract com.infoengine.object.factory.Task invoke(com.infoengine.object.factory.Task task)
throws WTException
task - This argument is the Info*Engine task executed by the user. The task embeds a Windchill adapter webject, any input group(s) specified by the user, and context groups (such as the @SERVER group).
WTException
public void preset(com.infoengine.object.factory.Task task)
throws WTException
task - The Info*Engine task executed by the user. This is usually the same Task received by the invoke() method.
WTException
public Vector getTypeInstances(String className,
String whereclause,
String[] attributes)
throws WTException
className - Usually the value of the webject parameter "TYPE", e.g. "WCTYPE|wt.part.WTPart".whereclause - The search criteria, usually the value(s) of the webject parameter "WHERE".attributes[] - The attributes to include in the result type instances, usually the value(s) of the webject parameter "ATTRIBUTE".
WTException
public AttributeIdentifier getAttributeIdentifier(String attribute)
throws WTException
attribute - The logical form string for an attribute.
WTException
public AttributeTypeIdentifier getAttributeTypeIdentifier(String attribute,
TypeIdentifier typeId)
throws WTException
attribute - The logical form of an attribute name.typeId - The TypeIdentifier for a type.
WTException
public AttributeTypeIdentifier[] getAttributeTypeIdentifiers(String[] attributes,
TypeIdentifier typeId)
throws WTException
attributes - List of logical attribute names valid for the type identifier, usually the value(s) of the webject's "ATTRIBUTE" param.typeId - The type identifier for which to return attribute type identifiers.
WTException
public com.ptc.core.meta.container.common.AttributeContainerSet getAttributeContainerSet(String whereclause,
TypeIdentifier typeId)
throws WTException
whereclause - Usually the value(s) of the webject parameter "WHERE".typeId - The TypeIdentifier for which whereclause is valid, usually the TypeIdentifier for the "TYPE" parameter of the webject.
WTException
public String getLocalDomain()
throws WTException
WTException
public boolean isLocalDomain(String domain)
throws WTException
domain - The domain to compare to the local domain.
WTException
public String getLocalGuid()
throws WTException
WTException
public ResultContainer getResultContainer(com.ptc.core.meta.container.common.AttributeContainerSet acs,
TypeIdentifier typeId)
throws WTException
acs - The search criteria, usually obtained by resolving the where clause (see getAttributeContainerSet method).typeId - Indicates the type of objects for which to search.
WTException
public TypeIdentifier getTypeIdentifier(String classname)
throws WTException
classname - The type or class name for which to get a type identifier, e.g. "WCTYPE|wt.part.WTPart".
WTException
public TypeInstance getTypeInstance(String obid)
throws WTException
obid - The local or remote identifier.
WTException
public String getOBID(TypeInstance ti)
throws WTException
ti - The TypeInstance for which the obid is obtained.
WTException
public void addTypeInstance(com.infoengine.object.factory.Group group,
TypeInstance typeInstance)
throws WTException
group - The group to which the type instance will be added.typeInstance - The type instance to add to the group.
WTException
public void addFilteredTypeInstance(com.infoengine.object.factory.Group group,
TypeInstance typeInstance,
String[] attributes)
throws WTException
group - The group to which the type instance will be addedtypeInstance - The type instance which will be added to the group.attributes - Specifies the attributes to include for the type instance.
WTException
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.
WTExceptionpublic String[] getAttributes(com.infoengine.object.factory.Webject webject)
webject -
public String getAttributeValue(TypeInstance typeInstance,
String name)
throws WTException
typeInstance - The type instance containing the attribute specified by the name arg.name - The logical form of an attribute name for which to get content.
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 com.ptc.core.command.common.Command executeCommand(com.ptc.core.command.common.Command command)
throws WTException
command - The command to execute.
WTException
public TypeInstance getTypeInstance(String obid,
String[] attributes)
throws WTException
obid - The local or remote identifier.attributes - Contains a list of logical attribute names to include in the result type instance, usually the value of the webject parameter "ATTRIBUTE".
If null or empty, then all attributes valid for the type instance are returned (unless the Windchill adapter has been configured to return a default set of attributes for the target object type).
WTException
public TypeInstance getTypeInstance(Persistable persistable,
String[] attributes)
throws WTException
persistable - The persistable object for which to return a type instance.attributes - A list of logical attribute names to include in the type instance, usually the value(s) specified for the webject's "ATTRIBUTE" param.
If null or empty, then all attributes valid for the type instance are returned (unless the Windchill adapter has been configured to return a default set of attributes for the target object type).
WTException
public AttributeContainerSpec getFilter(TypeInstance instance,
String[] attributes)
throws WTException
instance - The type instance for which to return a filter.attributes - The attributes to include in the filter, usually the value(s) of the webject's "ATTRIBUTE" param.
WTException
public boolean isInstanceOf(TypeIdentifier typeIdentifier,
TypeInstance instance)
throws WTException
typeIdentifier - instance -
WTException
public boolean isSubtypeOf(TypeIdentifier typeIdentifier,
TypeIdentifier candidateType)
throws WTException
typeIdentifier - candidateType -
WTException
public String[] getDefaultAttributes(TypeIdentifier typeIdentifier)
throws WTException
typeIdentifier -
WTException
public AttributeContainerSpec getFilter(TypeIdentifier typeId,
String[] attributes)
throws WTException
typeId - The type identifier for which to return a filter.attributes - The attributes to include in the filter, usually the value(s) of the webject's "ATTRIBUTE" param.
WTException
public Vector getTargetTypeInstances()
throws WTException
WTException
public static com.ptc.core.adapter.server.impl.AttributeTranslator getAttributeTranslator(AttributeTypeIdentifier attrTypeId)
throws WTException
attrTypeId - The attribute type ID of the attribute value
to be translated.
WTException
public static com.ptc.core.adapter.server.impl.AttributeTranslator getAttributeTranslator(Class targetClass)
throws WTException
targetClass - The class of the attribute value to be
translated.
WTException
protected WTContainerRef[] getContainers(com.infoengine.object.factory.Task task,
Enumeration containerRefParams)
throws WTException
task - The task containing the context indicating the
containers to use.containerRefParams - The contents of the webject's "CONTAINER_REF" params
WTException
protected com.ptc.core.meta.container.common.AttributeContainerSet getContainerQueryCriteria()
throws WTException
WTException
protected TypeInstance getRemoteObject(String ufid,
String objectType,
String objectId)
throws WTException
ufid - The ufid pointing to the remote objectobjectType - The type of the remote object. If null, the
type of the remote object is guessed by parsing the ufid.objectId - The remote repository's local ID for the object.
If null, the object ID is guessed by parsing the ufid.
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.
WTException
protected AttributeIdentifier getAttributeIdentifier(TypeInstance typeInstance,
AttributeTypeIdentifier attrTypeId,
Object value)
throws WTException
typeInstance - The type instance providing context for the
attribute identifier.attrTypeId - The type of the attribute identifier.value - Used to determine what kind of attribute identifier to return.
WTExceptionprotected boolean isFormatAttributes()
protected void setFormatAttributes(boolean fa)
protected Locale getLocale()
protected void setLocale(Locale l)
protected TypeInstance refreshTypeInstance(TypeInstanceIdentifier typeInstanceID,
String[] attributes)
throws WTException
typeInstanceID - The instance to refresh.attributes - Logical form of the attributes to include in the command filter.
WTException
protected TypeInstance refreshTypeInstance(TypeIdentifier tid,
String[] attributes)
throws WTException
tid - The type for which to create a type instance.attributes - Logical form of the attributes to include in the command filter.
WTException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||