Package io.jmix.core.usersubstitution
Interface UserSubstitutionProvider
- All Known Implementing Classes:
DatabaseUserSubstitutionProvider
,InMemoryUserSubstitutionProvider
public interface UserSubstitutionProvider
Interface to be implemented by classes that provide
UserSubstitution
. Each provider is responsible for
extracting an information from a specific source (in-memory, database, etc.)-
Method Summary
Modifier and TypeMethodDescriptiongetUserSubstitutions
(String username, Date date) Method returns a collection ofUserSubstitution
available for the givenusername
and active at the givendate
.
-
Method Details
-
getUserSubstitutions
Method returns a collection ofUserSubstitution
available for the givenusername
and active at the givendate
. IfUserSubstitution.startDate
andUserSubstitution.endDate
are null then this substitution is considered active.
-