Bootcamp:Chapter 11
m ((username removed) (log details removed): Moving to Training namespace)
No edit summary
Tag: 2017 source edit
Line 1: Line 1:
This is '''Chapter 11'''. Are you looking for the beginning? [[The 1000 steps program to MDriven Chapter 1|Find it here: Chapter 1]], or [[The 1000 steps program to MDriven Chapter 10|link to Chapter 10 (the previous chapter)]]
This is '''Chapter 11'''. Are you looking for the beginning? [[The 1000 steps program to MDriven Chapter 1|Find it here: Chapter 1]], or [[The 1000 steps program to MDriven Chapter 10|link to Chapter 10 (the previous chapter)]]


'''MDrivenEducation_Video - Chapter 11:''' https://www.youtube.com/watch?v=j7NfjVZgZ38
=== '''Video 11:'''   ===
<html>
 
<p class="video-warn">
  To make your experience smooth, we set the main tags mentioned in the video to the right bar menu of this mini-player. Choose an interesting subtitle on the list and immediately get to the exact theme navigation item place in the video. Now you can pick any topic to be instructed on without watching the whole video.
</p>
 
<div class="video">
  <div class="video__wrapper">
    <iframe src="https://www.youtube.com/embed/j7NfjVZgZ38?si=5Uem-BlrgvUk5Rnp" title="YouTube video player" frameborder="0" allowfullscreen></iframe>
  </div>
  <div class="video__navigation">
<span data-video="j7NfjVZgZ38" data-start="00" tabindex="0"> <strong> Title </strong> </span>
    <span class="navigation-item" data-video="j7NfjVZgZ38" data-start="00" tabindex="0"> Introduction </span>
    <span class="navigation-item" data-video="j7NfjVZgZ38" data-start="220" tabindex="0"> Singleton Pattern </span>
    <span class="navigation-item" data-video="j7NfjVZgZ38" data-start="705" tabindex="0"> CIS Supercross </span>
    <span class="navigation-item" data-video="j7NfjVZgZ38" data-start="912" tabindex="0"> CIS Superclose </span>
    <span class="navigation-item" data-video="j7NfjVZgZ38" data-start="1432" tabindex="0"> External Login </span>
    <span class="navigation-item" data-video="j7NfjVZgZ38" data-start="1765" tabindex="0"> Access Groups </span>
    <span class="navigation-item" data-video="j7NfjVZgZ38" data-start="1920" tabindex="0"> Access Group Editor </span>
  </div>
</div>


=== '''Video 11:'''  ===
</html>
{| class="wikitable"
|'''Title'''
|'''Time(Segment Start)'''
|-
|Introduction
|[https://youtu.be/j7NfjVZgZ38?si=VIGYZy8ppWe8GYgC Introduction]
|-
|Singleton Pattern
|[https://youtu.be/j7NfjVZgZ38?si=VIGYZy8ppWe8GYgC&t=220 Singleton Pattern at 3:40]
|-
|CIS Supercross
|[https://youtu.be/j7NfjVZgZ38?si=VIGYZy8ppWe8GYgC&t=705 CIS Supercross at 11:45]
|-
|CIS Superclose
|[https://youtu.be/j7NfjVZgZ38?si=VIGYZy8ppWe8GYgC&t=912 CIS Superclose at 15:12]
|-
|External Login
|[https://youtu.be/j7NfjVZgZ38?si=VIGYZy8ppWe8GYgC&t=1432 External Login at 23:52]
|-
|Access Groups
|[https://youtu.be/j7NfjVZgZ38?si=VIGYZy8ppWe8GYgC&t=1765 Access Groups at 29:25]
|-
|Access Group Editor
|[https://youtu.be/j7NfjVZgZ38?si=VIGYZy8ppWe8GYgC&t=1920 Access Group Editor at 32:00]
|-
|}


== Chapter 11: User Login, Access Groups, Default Superclass, Singleton Pattern, and Merge Model ==
== Chapter 11: User Login, Access Groups, Default Superclass, Singleton Pattern, and Merge Model ==

Revision as of 05:39, 7 February 2024

This is Chapter 11. Are you looking for the beginning? Find it here: Chapter 1, or link to Chapter 10 (the previous chapter)

Video 11:

To make your experience smooth, we set the main tags mentioned in the video to the right bar menu of this mini-player. Choose an interesting subtitle on the list and immediately get to the exact theme navigation item place in the video. Now you can pick any topic to be instructed on without watching the whole video.

Title Introduction Singleton Pattern CIS Supercross CIS Superclose External Login Access Groups Access Group Editor

Chapter 11: User Login, Access Groups, Default Superclass, Singleton Pattern, and Merge Model

332. Go to the Wiki Model Examples and download the SysUserAuthentication model.

333. Open and Merge in the downloaded file.

334. Verify that the SysSingleton has the property IsSingleton set in the objects inspector.

335. Make sure you understand the Singleton pattern.

336. Start the prototyper with XML persistence.

337. Test the OCLSingleton operator in the prototyper - ensure you get an object.

338. Select the SysSingleton CurrentUser association in the class diagram. Check that Persistent is set to false, and thus, the association is transient.

339. Select the SysSuperClass in the diagram. Check the OnCreate and OnUpdate on the Wiki.

340. Make sure you understand what OnCreate and OnUpdate do. Use the debugger to verify your theory on how it works.

341. Ensure that the SysSuperClass is the default superclass for the AuthenticationPackage.

342. Check the oclIsTypeOf, oclKindOf, and superTypes operators in the debugger.

343. Set the Default superclass of Package1 to the SysSuperClass.

344. Start the debugger or refresh the model. Make sure Person now has the ChangeTime attribute.

345. In the debugger, set the empty Guid property to a new Guid for all persons.

346. When you save the persons, ensure the ChangeTime is updated.

347. Start Local Turnkey Prototyper.

348. Try and login with any user.

349. Register a new user with email and password.

350. Go to the debugger and check that you have a new SysUser object.

351. Go to CarSeeker ViewModel and set AccessGroup to IsLoggedIn. Save.

352. Ensure you cannot see CarSeeker when you are not logged in.

353. Ensure you can see CarSeeker when you are logged in.

354. Go to the AccessGroup-tool button.

355. Check the expressions that build up the IsLoggedIn access group and see that you understand them.

356. Add a new access group: IsAdministrator

357. Refresh the AutoForms. Make sure you get Autoforms for SysUser.

358. Go to AutoformsysUser and set access group IsAdministrator.

359. Do the same for AutoFormSysUserSeeker.

360. Ensure you don't get access.

361. Create a new ViewModel name: AccessDenied. Make it explain that the user does not have access.

362. Use the debugger and set the user as IsAdmin. Save.

363. Ensure you can get into AutoFormSysUserSeeker since you are now an administrator.

364. Create a new user b@b.se (or something else) and log in as that. Confirm that this user does not reach the AutoFormSysUserSeeker, but instead, ends up at the AccessDenied view.

Next Chapter:

The_1000_steps_program_to_MDriven_Chapter_12

This page was edited 3 days ago on 09/16/2024. What links here