Class UserDirectoryServiceImpl
java.lang.Object
com.foreach.across.modules.user.services.UserDirectoryServiceImpl
- All Implemented Interfaces:
UserDirectoryService
- Since:
- 2.0.0
- Author:
- Arne Vandamme
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the list of user directories that should be used for authentication, in authentication precedence order.Get the default directory that should be used for all principals that do not have a specific directory set.save
(UserDirectory userDirectory) Create or update a directory instance.
-
Constructor Details
-
UserDirectoryServiceImpl
public UserDirectoryServiceImpl()
-
-
Method Details
-
getDefaultUserDirectory
Description copied from interface:UserDirectoryService
Get the default directory that should be used for all principals that do not have a specific directory set. Usually the default internal directory is returned. This is the initial user directory created with idUserDirectory.DEFAULT_INTERNAL_DIRECTORY_ID
. It should never be removed.- Specified by:
getDefaultUserDirectory
in interfaceUserDirectoryService
- Returns:
- instance
-
getActiveUserDirectories
Description copied from interface:UserDirectoryService
Get the list of user directories that should be used for authentication, in authentication precedence order.- Specified by:
getActiveUserDirectories
in interfaceUserDirectoryService
- Returns:
- active user directories sorted according to their order property
-
getUserDirectories
- Specified by:
getUserDirectories
in interfaceUserDirectoryService
- Returns:
- all user directories
-
save
Description copied from interface:UserDirectoryService
Create or update a directory instance.- Specified by:
save
in interfaceUserDirectoryService
- Parameters:
userDirectory
- dto- Returns:
- persisted entity
-