简体   繁体   中英

UML - Distinction between user and administrator use cases of the same nature

There's something that's been bothering me while attempting to do a use case diagram.

Both users and administrators can manage articles, both can manage categories, both can carry out crud operations on all of those BUT the administrator has control on every single item whereas a user is limited to a subset of these items.

Should/can a distinction be made in a use case diagram so this is clear?

From the sounds of thing the use cases are the same.

The devil could be contained in the detail of the activity and the scenarios associated with these use cases. These could define the role specific operations, or change in operations of the system in reaction to this role.

You could define them as separate use cases (but this doesn't sound right as you say, it's the same action for both, just with different limits to the action) or, make sure that authentication and the current user role is clearly defined as a predecessor to the above use cases. If you definitely want this information displayed in that diagram in particular.

This has some pretty good use case diagrams with users in different roles

Your "use case" seems to need to be separate in smaller "use cases", some of those "use cases" are the same for admin. and standard-user, some not.

It seems that your admin is a special user with some extra capabilities. You may use genaralization relationship between User and Admin actors then admin automatically do what user can do and show just extra features which admin benefits from the system.

USER ---> (manage articles )

|

|

ADMIN ---> (Cretae new User)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM