Class ObjectWebject

java.lang.Object
com.ptc.core.adapter.server.impl.AbstractWebject
com.ptc.core.adapter.server.impl.ObjectWebject
All Implemented Interfaces:
com.infoengine.object.factory.AdapterWebject, com.ptc.core.adapter.server.impl.TypeAwareWebjectDelegate, Externalizable, Serializable
Direct Known Subclasses:
com.ptc.core.adapter.server.impl.QueryObjectsWebjectDelegate

public abstract class ObjectWebject extends AbstractWebject
The base class for Windchill Adapter OBJ webjects. This abstract class contains only the most basic and widely shared functionality used by all Windchill Adapter OBJ webjects.

Supported API: true

Extendable: true
See Also:
  • Method Details

    • preset

      public void preset(com.infoengine.object.factory.Task task) throws WTException
      This convenience method is intended to be called in the invoke() method to convert collect and process webject parameters and basic initialization.

      Supported API: true
      Overrides:
      preset in class AbstractWebject
      Parameters:
      task - The Info*Engine task executed by the user. This is usually the same Task received by the invoke() method.
      Throws:
      WTException
    • setHandleGroupIn

      protected void setHandleGroupIn(boolean b)
      Explicitly tells whether the GROUP_IN parameter should be processed. By default GROUP_IN will be processed in search of ufids to add to the objectRefs array. If a subclass does not desire this behaviour then it should call this method with a value of false. This method should only be called before preset.

      Supported API: true
      Parameters:
      b - The new value for handlGroupIn.
    • getUfidsAsGroup

      protected com.infoengine.object.factory.Group getUfidsAsGroup(com.infoengine.object.factory.Task task)
      Retrieves the default input Group from the VDB and combines any OBJECT_REF parameters with it. The resulting Group will have an attribute named "obid" in each element. The default input group is assumed to be formatted this way (not verified) so callers should skip elements missing an obid attirubte or complain as they see fit. This method should only be called after preset.

      Supported API: true
      Parameters:
      task - The input task.
      Returns:
      Group The ufid group.
    • postProcess

      protected void postProcess(com.infoengine.object.factory.Element e, boolean purgeDefault) throws WTException
      Subclasses can over-ride if they want to tweak the Element as it's added to the results.

      Supported API: true
      Parameters:
      e - The Element added to the results.
      purgeDefault - The flag (true) to purge default contents from the element
      Throws:
      WTException