From blow picture, we can have a simply conception in our mind that how solenoid locking the door, and how should we design the lock solenoids.
The solenoid mostly are DC current, if we use a AC current, we often added a adaptor transfer AC to DC.
We have a ready solenoid door lock, you can have a check below: NCE-0837L