예제 #1
0
        public static void Execute(ConfirmInviteToJoinGroupParameters parameters)
        {
            PrepareParameters(parameters);
            TBRGroupRoot GroupRoot = ConfirmInviteToJoinGroupImplementation.GetTarget_GroupRoot(parameters.GroupID);
            string       AccountID = ConfirmInviteToJoinGroupImplementation.GetTarget_AccountID(parameters.MemberEmailAddress);

            ConfirmInviteToJoinGroupImplementation.ExecuteMethod_ConfirmPendingInvitationToGroupRoot(parameters.MemberEmailAddress, GroupRoot);
            ConfirmInviteToJoinGroupImplementation.ExecuteMethod_StoreObjects(GroupRoot);

            {     // Local block to allow local naming
                RefreshAccountGroupMembershipsParameters operationParameters = ConfirmInviteToJoinGroupImplementation.RefreshAccountAndGroupContainers_GetParameters(GroupRoot, AccountID);
                RefreshAccountGroupMemberships.Execute(operationParameters);
            }     // Local block closing
        }
예제 #2
0
        public static void Execute(RemoveMemberFromGroupParameters parameters)
        {
            PrepareParameters(parameters);
            TBRGroupRoot   GroupRoot          = RemoveMemberFromGroupImplementation.GetTarget_GroupRoot(parameters.GroupID);
            string         AccountIDOfEmail   = RemoveMemberFromGroupImplementation.GetTarget_AccountIDOfEmail(parameters.EmailAddress, parameters.AccountID);
            TBRAccountRoot AccountRoot        = RemoveMemberFromGroupImplementation.GetTarget_AccountRoot(AccountIDOfEmail);
            string         MemberEmailAddress = RemoveMemberFromGroupImplementation.GetTarget_MemberEmailAddress(parameters.EmailAddress, AccountRoot, GroupRoot);

            RemoveMemberFromGroupImplementation.ExecuteMethod_RemoveMemberFromGroup(MemberEmailAddress, GroupRoot);
            RemoveMemberFromGroupImplementation.ExecuteMethod_StoreObjects(GroupRoot);

            {     // Local block to allow local naming
                RefreshAccountGroupMembershipsParameters operationParameters = RemoveMemberFromGroupImplementation.RefreshAccountAndGroupContainers_GetParameters(GroupRoot, AccountIDOfEmail);
                RefreshAccountGroupMemberships.Execute(operationParameters);
            }     // Local block closing
        }
예제 #3
0
        public static void Execute(InviteMemberToGroupParameters parameters)
        {
            PrepareParameters(parameters);
            TBRGroupRoot      GroupRoot       = InviteMemberToGroupImplementation.GetTarget_GroupRoot(parameters.GroupID);
            TBEmailValidation EmailValidation = InviteMemberToGroupImplementation.GetTarget_EmailValidation(parameters.MemberEmailAddress, parameters.GroupID);
            string            AccountID       = InviteMemberToGroupImplementation.GetTarget_AccountID(parameters.MemberEmailAddress);

            InviteMemberToGroupImplementation.ExecuteMethod_AddAsPendingInvitationToGroupRoot(parameters.MemberEmailAddress, GroupRoot);
            InviteMemberToGroupImplementation.ExecuteMethod_StoreObjects(GroupRoot, EmailValidation);
            InviteMemberToGroupImplementation.ExecuteMethod_SendEmailConfirmation(EmailValidation, GroupRoot);

            {     // Local block to allow local naming
                RefreshAccountGroupMembershipsParameters operationParameters = InviteMemberToGroupImplementation.RefreshAccountAndGroupContainers_GetParameters(GroupRoot, AccountID);
                RefreshAccountGroupMemberships.Execute(operationParameters);
            }     // Local block closing
        }
예제 #4
0
        public static void Execute(CreateGroupParameters parameters)
        {
            PrepareParameters(parameters);
            TBRGroupRoot   GroupRoot   = CreateGroupImplementation.GetTarget_GroupRoot(parameters.GroupName);
            TBRAccountRoot AccountRoot = CreateGroupImplementation.GetTarget_AccountRoot(parameters.AccountID);

            TBEmail[] AccountEmails = CreateGroupImplementation.GetTarget_AccountEmails(AccountRoot);
            CreateGroupImplementation.ExecuteMethod_AddAsInitiatorToGroupRoot(GroupRoot, AccountEmails);
            CreateGroupImplementation.ExecuteMethod_StoreObjects(GroupRoot);
            CreateGroupImplementation.ExecuteMethod_InitializeGroupContentAndMasters(GroupRoot);

            {     // Local block to allow local naming
                RefreshAccountGroupMembershipsParameters operationParameters = CreateGroupImplementation.RefreshAccountAndGroupContainers_GetParameters(parameters.AccountID, GroupRoot);
                RefreshAccountGroupMemberships.Execute(operationParameters);
            }     // Local block closing
        }
예제 #5
0
        public static void Execute(AssignCollaboratorRoleParameters parameters)
        {
            PrepareParameters(parameters);
            TBRGroupRoot       GroupRoot          = AssignCollaboratorRoleImplementation.GetTarget_GroupRoot(parameters.GroupID);
            Collaborator       Collaborator       = AssignCollaboratorRoleImplementation.GetTarget_Collaborator(parameters.GroupContainer, parameters.CollaboratorID);
            string             AccountID          = AssignCollaboratorRoleImplementation.GetTarget_AccountID(Collaborator);
            TBRAccountRoot     AccountRoot        = AssignCollaboratorRoleImplementation.GetTarget_AccountRoot(AccountID);
            string             EmailAddress       = AssignCollaboratorRoleImplementation.GetTarget_EmailAddress(GroupRoot, AccountRoot);
            TBCollaboratorRole TBCollaboratorRole = AssignCollaboratorRoleImplementation.GetTarget_TBCollaboratorRole(GroupRoot, EmailAddress);

            AssignCollaboratorRoleImplementation.ExecuteMethod_AssignCollaboratorRole(parameters.RoleToAssign, TBCollaboratorRole);
            AssignCollaboratorRoleImplementation.ExecuteMethod_StoreObjects(GroupRoot);

            {     // Local block to allow local naming
                RefreshAccountGroupMembershipsParameters operationParameters = AssignCollaboratorRoleImplementation.RefreshAccountAndGroupContainers_GetParameters(GroupRoot, AccountID);
                RefreshAccountGroupMemberships.Execute(operationParameters);
            }     // Local block closing
        }