public void delete(MediumContentVersionImpl contentVersion, Database db, boolean forceDelete) throws ConstraintException, SystemException, Exception
{
if (!forceDelete && contentVersion.getStateId().intValue() == ContentVersionVO.PUBLISHED_STATE.intValue() && contentVersion.getIsActive().booleanValue() == true)
{
throw new ConstraintException("ContentVersion.stateId", "3300", contentVersion.getOwningContent().getName());
}
contentCategoryController.deleteByContentVersion(contentVersion, db);
DigitalAssetController.getController().deleteByContentVersion(contentVersion, db);
//System.out.println("Removing:" + contentVersion.getId());