COMPLETE INTEGRABILITY FOR LAGRANGIANS DEPENDENT ON ACCELERATION IN A SPACETIME OF CONSTANT CURVATURE