/** * Create a new tag with the given name and creator. Note that this method will not check for any tag name collisions. Note that the created tag will also * be assigned to the global root vertex. * * @param name * Name of the new tag. * @param project * Root project of the tag. * @param creator * User that is used to assign creator and editor references of the new tag. * @return */ default Tag create(String name, Project project, User creator) { return create(name, project, creator, null); }
tag = tagFamily.create(tagReference.getName(), project, user); user.addCRUDPermissionOnRole(tagFamily, CREATE_PERM, tag); batch.store(tag, false);