Class TranslationCollectionHelper

java.lang.Object
com.ptc.tml.collection.TranslationCollectionHelper

public class TranslationCollectionHelper extends Object


Supported API: true
  • Method Details

    • createTranslationCollections

      public static Collection<TranslationCollection> createTranslationCollections(String oid, String outputDir, Collection<String> languages, NavigationCriteria navCriteria, String userName, boolean isImmediate, boolean isQuote, TmlLog log) throws TranslationException
      Creates a new instances of TranslationCollections from an EPMDocument structure; one TC per language The oid ought to correspond to either an EPMDocument or a WTPart rooting a SIS structure

      Supported API: true
      Throws:
      TranslationException
    • deleteCollection

      public static void deleteCollection(TranslationCollection coll) throws TranslationException
      Deletes a translation collection from the database
      Parameters:
      coll -
      Throws:
      TranslationException -

      Supported API: true
    • deleteDependentCollections

      public static int deleteDependentCollections(TranslationCollection coll) throws WTException
      Deletes a translation collection and any pivot collections that depend on it

      Supported API: true
      Throws:
      WTException
    • recalculateRemainingAcceptanceCount

      public static long recalculateRemainingAcceptanceCount(TranslationCollection coll) throws TranslationException
      This method iterates through the content of the TranslationCollection and re-calculates the remaining acceptance count. If the cached value on the collection is incorrect, it is updated. The re-calculated value is returned (whether the cached value is correct or not).
      Parameters:
      coll -
      Returns:
      Throws:
      TranslationException -

      Supported API: true