private void createMenuInterest(MenuCommand InterestMenu) { InterestMenu.addCommand("1.Add Interest", new AddInterestCommand()); InterestMenu.addCommand("2.Add Interest to a user", new AddInterestToAUserCommand()); InterestMenu.addCommand("3.Print all Interests", new PrinAllInterestsCommand()); InterestMenu.addCommand("4.Principal Menu", menuCommand); }
private void createMenuGroupAdmin(MenuCommand GroupAdminMenu) { GroupAdminMenu.addCommand("1.Add Admin to a Group", new AddAdminToAGroupCommand()); GroupAdminMenu.addCommand("2.Print all Admins", new PrintAllAdminsCommand()); GroupAdminMenu.addCommand("3.Delete Admin from a Group", new DeleteAdminToAGroupCommand()); GroupAdminMenu.addCommand("4.Find Admin from a Group", new FindAdminToAGroupCommand()); GroupAdminMenu.addCommand("5.Principal menu", menuCommand); }
private void createMenuUser(MenuCommand UserMenu) { UserMenu.addCommand("1.Add User", new CreateUserCommand()); UserMenu.addCommand("2.Delete User", new DeleteUserCommand()); UserMenu.addCommand("3.Update User", new UpdateUserCommand()); UserMenu.addCommand("4.Show all Users", new PrintAllUsersCommand()); UserMenu.addCommand("5.Principal menu", menuCommand); }
private void createMenuGroup(MenuCommand GroupMenu) { GroupMenu.addCommand("1.Add Group", new CreateGroupCommand()); GroupMenu.addCommand("2.Delete Group", new DeleteGroupCommand()); GroupMenu.addCommand("3.Update Group", new UpdateGroupCommand()); GroupMenu.addCommand("4.Show all Groups", new PrintAllGroupsCommand()); GroupMenu.addCommand("5.Add users to group", new AddUsersToGroup()); GroupMenu.addCommand("6.Print all users from a group", new PrintAllUsersFromAGroupCommand()); GroupMenu.addCommand("7.Print all groups for a user", new PrintAllGroupsForAUserCommand()); GroupMenu.addCommand("8.Principal menu", menuCommand); }