The Bmaj7 guitar chord is a movable barre chord that can be played up and down the neck to achieve different chords. For example if you moved this whole chord up on fret you would be playing Cmaj7.
Like all barre chords it’s based on an open chord, in this case the Amaj7 chord shape.