/** * Returns <code>true</code> if the user is the owner of the file, <code>false</code> otherwise. * If the file is <code>null</code>, return <code>true</code>. * * @return See above. */ boolean isUserOwner() { if (fileAnnotation == null) return true; long userID = EditorAgent.getUserDetails().getId(); return EditorUtil.isUserOwner(fileAnnotation, userID); }