Package org.pac4j.core.profile.service
Interface ProfileService<U extends CommonProfile>
- All Known Implementing Classes:
AbstractProfileService,InMemoryProfileService
public interface ProfileService<U extends CommonProfile>
Profile services: creation, update, delete and retrievals in the storage.
- Since:
- 2.0.0
- Author:
- Jerome Leleu
-
Method Summary
Modifier and TypeMethodDescriptionvoidCreate a profile with the associated password in the storage.Find a profile by its identifier.findByLinkedId(String linkedId) Find a profile by its linked identifier.voidRmove a profile in the storage.voidremoveById(String id) Remove a profile by its identifier in the storage.voidUpdate a profile (with the associated password) in the storage.
-
Method Details
-
create
Create a profile with the associated password in the storage.- Parameters:
profile- the profilepassword- the password
-
update
Update a profile (with the associated password) in the storage.- Parameters:
profile- the profilepassword- the optional password
-
remove
Rmove a profile in the storage.- Parameters:
profile- the profile
-
removeById
Remove a profile by its identifier in the storage.- Parameters:
id- the profile identifier
-
findById
Find a profile by its identifier.- Parameters:
id- the identifier- Returns:
- the found profile
-
findByLinkedId
Find a profile by its linked identifier.- Parameters:
linkedId- the linked identifier- Returns:
- the found profile
-