User Tools

Site Tools


auth:ex4

Intro Ex1 Ex2 Ex3 Ex4

Authentication: Other restricted method

Create another aspect. From within this aspect, introduce the @Authenticated annotation (with ADMIN as the role value) to the extraPanel() method of the Main class in package figures.gui. This method initiates the creation of an additional figure editor window.

Use the form declare @method: Method: Annotation to introduce a method annotation.

Rerun the figure editor to verify that the creation of a new figure editor window (with the Main button) requires an administrator.


When done, remove the aspects you created in this track from the build path. Then continue with the Caching track (optional).

auth/ex4.txt · Last modified: 2021/02/05 13:47 (external edit)