By bus: Approximately 20-30 minutes, depending on traffic. The Airlink 747 express bus goes directly from Dublin Airport to the Temple Bar area.
By train: Approximately 30-35 minutes. Take the DART train from Dublin Airport to Tara Street Station. From there, you can walk or take a short bus ride to Temple Bar.