예제 #1
0
        public string GetStdGdprUrdPurpose(UrdCodeStd roleCode) //03-12-18
        {
            string rc = GdprUrdPurposeUndefined;

            if (roleCode == UrdCodeStd.Admin)            //https://github.com/wpqs/MxAutoGDPR/wiki/Specification:-Admin-Pages
            {
                rc = "purpose of the admin roleis management of user roles, website control and setting status flag when changes are deployed";
            }
            else if (roleCode == UrdCodeStd.Controller)  //https://github.com/wpqs/MxAutoGDPR/wiki/Specification:-Data-Controller-Pages
            {
                rc = "purpose of the data controller role is terms & condition management, website control, notification of users, control of website design and operation including feature processing details and personal data schema";
            }
            else if (roleCode == UrdCodeStd.Standard)
            {
                rc = "purpose of the standard user is someone registered and using the website";
            }
            else if (roleCode == UrdCodeStd.Guest)
            {
                rc = "purpose of the guest user is someone who is not registered, but still using the website";
            }
            else if (roleCode == UrdCodeStd.System)
            {
                rc = "purpose of the system user is allowing tasks that are automated";
            }
            else if (roleCode == UrdCodeStd.Ghost)
            {
                rc = "purpose of the ghost user is someone who has deleted their account so the system no longer holds their personal information";
            }
            else
            {
                rc = GdprUrdPurposeUndefined;
            }
            return(rc);
        }
예제 #2
0
        public string GetStdGdprUrdName(UrdCodeStd roleCode) //03-12-18
        {
            string rc = AdminRepo.GdprUrdNameUndefined;

            if (roleCode == UrdCodeStd.Admin)
            {
                rc = AdminRepo.GdprUrdAdmin;
            }
            else if (roleCode == UrdCodeStd.Controller)
            {
                rc = AdminRepo.GdprUrdController;
            }
            else if (roleCode == UrdCodeStd.Standard)
            {
                rc = AdminRepo.GdprUrdStandard;
            }
            else if (roleCode == UrdCodeStd.Guest)
            {
                rc = AdminRepo.GdprUrdGuest;
            }
            else if (roleCode == UrdCodeStd.System)
            {
                rc = AdminRepo.GdprUrdSystem;
            }
            else if (roleCode == UrdCodeStd.Ghost)
            {
                rc = AdminRepo.GdprUrdGhost;
            }
            else
            {
                rc = AdminRepo.GdprUrdNameUndefined;
            }
            return(rc);
        }
예제 #3
0
        public string GetStdGdprUrdDescription(UrdCodeStd roleCode) //03-12-18
        {
            string rc = GdprUrdDescriptionUndefined;

            if (roleCode == UrdCodeStd.Admin)
            {
                rc = "admin role";
            }
            else if (roleCode == UrdCodeStd.Controller)
            {
                rc = "data controller role";
            }
            else if (roleCode == UrdCodeStd.Standard)
            {
                rc = "standard user role";
            }
            else if (roleCode == UrdCodeStd.Guest)
            {
                rc = "guest user role";
            }
            else if (roleCode == UrdCodeStd.System)
            {
                rc = "system role";
            }
            else if (roleCode == UrdCodeStd.Ghost)
            {
                rc = "ghost users role";
            }
            else
            {
                rc = GdprUrdDescriptionUndefined;
            }
            return(rc);
        }
예제 #4
0
        public async Task <MxReturnCode <bool> > CreateStdUrdAsync(UrdCodeStd roleCode)
        {
            MxReturnCode <bool> rc = new MxReturnCode <bool>("GdprSeedRepoDummy.CreateUrdAsync()");

            rc.SetResult(true);

            return(rc);
        }
예제 #5
0
        public UrdCodeStd GetStdGdprUrdCode(string gdpaRolename) //03-12-18
        {
            UrdCodeStd rc = UrdCodeStd.Undefined;

            if (gdpaRolename != null)
            {
                if (gdpaRolename == AdminRepo.GdprUrdAdmin)
                {
                    rc = UrdCodeStd.Admin;
                }
                else if (gdpaRolename == AdminRepo.GdprUrdController)
                {
                    rc = UrdCodeStd.Controller;
                }
                else if (gdpaRolename == AdminRepo.GdprUrdStandard)
                {
                    rc = UrdCodeStd.Standard;
                }
                else if (gdpaRolename == AdminRepo.GdprUrdGuest)
                {
                    rc = UrdCodeStd.Guest;
                }
                else if (gdpaRolename == AdminRepo.GdprUrdSystem)
                {
                    rc = UrdCodeStd.System;
                }
                else if (gdpaRolename == AdminRepo.GdprUrdGhost)
                {
                    rc = UrdCodeStd.Ghost;
                }
                else
                {
                    rc = UrdCodeStd.Undefined;
                }
            }
            return(rc);
        }