Privacy And Copyright Protection In Generative Ai A Lifecycle Perspective