Package com.ptc.tml.collection
Class TranslationCollectionHelper
java.lang.Object
com.ptc.tml.collection.TranslationCollectionHelper
Supported API: true
-
Method Summary
Modifier and TypeMethodDescriptionstatic Collection<TranslationCollection>createTranslationCollections(String oid, String outputDir, Collection<String> languages, NavigationCriteria navCriteria, String userName, boolean isImmediate, boolean isQuote, TmlLog log) 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: truestatic voidDeletes a translation collection from the databasestatic intDeletes a translation collection and any pivot collections that depend on it
Supported API: truestatic longThis method iterates through the content of the TranslationCollection and re-calculates the remaining acceptance count.
-
Method Details
-
deleteCollection
Deletes a translation collection from the database- Parameters:
coll-- Throws:
TranslationException-
Supported API: true
-
deleteDependentCollections
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