}finally{
HibernateUtil.closeSession();
}
}
if(stateError){
throw new DotContentletStateException("Unable to archive one or more contentlets because it is locked");
}
}catch (DotSecurityException e) {
hasNoPermissionOnAllContent = true;
}
if(hasNoPermissionOnAllContent)
throw new DotSecurityException("Unable to archive some content due to lack of permissions");
if(someContentIsLive)
throw new DotContentletStateException("Unable to archive some content because they are live");
}
}
ArchiveThread thread = new ArchiveThread(inodes, user,contentToIndexAfterCommit);