*/
public void moveFile(Long flvRecordingId, Long parentFileExplorerItemId,
Boolean isOwner, Long ownerId) {
try {
FlvRecording fId = this.getFlvRecordingById(flvRecordingId);
fId.setParentFileExplorerItemId(parentFileExplorerItemId);
if (parentFileExplorerItemId == 0) {
if (isOwner) {
//move to personal Folder
fId.setOwnerId(ownerId);
} else {
//move to public room folder
fId.setOwnerId(null);
}
} else {
fId.setOwnerId(null);
}
fId.setUpdated(new Date());
if (fId.getFlvRecordingId() == 0) {
em.persist(fId);
} else {
if (!em.contains(fId)) {
em.merge(fId);
}