public class CDMUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
createCDMVersions(java.lang.String targetObject,
java.lang.String fileName)
Creates and connects CDM version objects if CDM is available and the
object type is versionable.
|
static java.lang.String |
deleteVersionObject(java.lang.String objectId)
Deletes a version object.
|
static boolean |
isCDMAvailable() |
static boolean |
isTypeVersionable(java.lang.String type)
Determines if the type is versionable or not.
|
public static boolean isCDMAvailable()
public static boolean isTypeVersionable(java.lang.String type)
type
- public static void createCDMVersions(java.lang.String targetObject, java.lang.String fileName) throws TVCException, CDMNotSupported, ObjectIsNotVersionable
targetObject
- The id of the object to create versions forfileName
- The name of the file, used for Title attributeTVCException
ObjectIsNotVersionable
- If the targetObject is not versionableCDMNotSupported
- If CDM is not supportedpublic static java.lang.String deleteVersionObject(java.lang.String objectId) throws TVCException
objectId
- The id of the version object to be deleted.TVCException
- If the object is not a version object, or the object
is not the last revision among the versions, or if the operation
fails due to triggers etc.Copyright © Technia AB. All Rights Reserved.