Maldives was long a sultanate , first under Dutch and then under British protection .