Package se.conciliate.extensions.store
Interface MTUser
- All Superinterfaces:
MTUserHeader
Full interface for users. A user has a unique username and
represents a user of the system that can login and work in
one or more repositories. For local repositories there is no security
model and no actual login procedure is involved. In this case the
users are defined per repository and are used only to make it clear
who has created or modified models and symbols in the repository. For
server repositories the users are used to login to the server and
the current users privileges determines the available repositories
and what can be done in them.
- Since:
- 3.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
static class
Nested classes/interfaces inherited from interface se.conciliate.extensions.store.MTUserHeader
MTUserHeader.RepositoryPrivilege, MTUserHeader.ServerPrivilege
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPrivilege
(MTRepository repository, MTUserHeader.RepositoryPrivilege priv) void
default String
getSetting
(String key) void
removePrivilege
(MTRepository repository, MTUserHeader.RepositoryPrivilege priv) void
void
save()
Saves changes to a user.void
setFirstName
(String firstName) Sets the first name of the user.void
setLastName
(String lastName) Sets the last name of the user.default void
setSetting
(String key, String value) Methods inherited from interface se.conciliate.extensions.store.MTUserHeader
expand, getAvatar24, getFirstName, getFullName, getGlobalID, getGroups, getLastName, getUserId, hasPrivileges, hasPrivileges, hasPrivileges, hasPrivileges, hasPrivilegesInAnyRepository, hasServerPrivileges, hasServerPrivileges, isAdmin, isEnabled
-
Method Details
-
save
Saves changes to a user.- Throws:
MTAccessException
- Since:
- 3.0
-
setFirstName
Sets the first name of the user.- Parameters:
firstName
- The new first name.- Since:
- 3.0
-
setLastName
Sets the last name of the user.- Parameters:
lastName
- The new last name.- Since:
- 3.0
-
addPrivilege
-
removePrivilege
-
addPrivilege
-
removePrivilege
-
getSetting
-
setSetting
-