This legislation is not directed towards undercover operations, and without these provisions I am certain that from 1999 to 2002 undercover operations were ongoing. What these provisions relate to is not undercover operations, but justified conduct that otherwise constitutes a criminal offence.
On June 1st, 2006. See this statement in context.