Class RevisionJSDataHandler

java.lang.Object
com.ptc.windchill.enterprise.revise.processors.handler.RevisionJSDataHandler
All Implemented Interfaces:
com.ptc.core.htmlcomp.jstable.JSDataHandler
Direct Known Subclasses:
DefaultRevisionJSDataHandler

public abstract class RevisionJSDataHandler extends Object implements com.ptc.core.htmlcomp.jstable.JSDataHandler
Abstract Data Handler for the "New Revision" column in the revise wizard.

Supported API: true

Extendable: true
  • Method Summary

    Modifier and Type
    Method
    Description
    com.ptc.core.htmlcomp.jstable.JSPropertyValue
    getJSPropertyValue(String attribute, Locale locale, Object object, com.ptc.core.htmlcomp.jstable.JSDataObject rowobj)
    Using the attribute calls either the getNewRevisionJSData or getRevisionOverrideAllowedJSData methods.
    abstract com.ptc.core.htmlcomp.jstable.JSPropertyValue
    getNewRevisionJSData(String attribute, Locale locale, Object object, com.ptc.core.htmlcomp.jstable.JSDataObject rowobj)
    Handles the New Revision Column value.
    abstract com.ptc.core.htmlcomp.jstable.JSPropertyValue
    getRevisionOverrideAllowedJSData(String attribute, Locale locale, Object object, com.ptc.core.htmlcomp.jstable.JSDataObject rowobj)
    Checks if user is allowed to override the New Revision Column value.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.ptc.core.htmlcomp.jstable.JSDataHandler

    init
  • Method Details

    • getJSPropertyValue

      public com.ptc.core.htmlcomp.jstable.JSPropertyValue getJSPropertyValue(String attribute, Locale locale, Object object, com.ptc.core.htmlcomp.jstable.JSDataObject rowobj) throws WTException
      Using the attribute calls either the getNewRevisionJSData or getRevisionOverrideAllowedJSData methods. Use ReviseConstants.NEW_REVISION_COLUMN_ID call getNewRevisionJSData and ReviseConstants.ISREVISIONOVERRIDEALLOWED to call getRevisionOverrideAllowedJSData.

      Supported API: true
      Specified by:
      getJSPropertyValue in interface com.ptc.core.htmlcomp.jstable.JSDataHandler
      Parameters:
      attribute -
      locale -
      object - The row object.
      rowobj - The row object.
      Returns:
      The boolean property value JSBooleanPropertyValue for the new revision column.
      Throws:
      WTException
    • getNewRevisionJSData

      public abstract com.ptc.core.htmlcomp.jstable.JSPropertyValue getNewRevisionJSData(String attribute, Locale locale, Object object, com.ptc.core.htmlcomp.jstable.JSDataObject rowobj) throws WTException
      Handles the New Revision Column value.

      Supported API: true
      Parameters:
      attribute -
      locale -
      object - The row object.
      rowobj - The row object.
      Returns:
      The string property value JSStringPropertyValue for the new revision column.
      Throws:
      WTException
    • getRevisionOverrideAllowedJSData

      public abstract com.ptc.core.htmlcomp.jstable.JSPropertyValue getRevisionOverrideAllowedJSData(String attribute, Locale locale, Object object, com.ptc.core.htmlcomp.jstable.JSDataObject rowobj) throws WTException
      Checks if user is allowed to override the New Revision Column value.

      Supported API: true
      Parameters:
      attribute -
      locale -
      object - The row object.
      rowobj - The row object.
      Returns:
      The boolean property value JSBooleanPropertyValue for the new revision column.
      Throws:
      WTException