Interface CMSUserService
- All Known Implementing Classes:
DefaultCMSUserService
public interface CMSUserService
Service interface to get user data.
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves the languages ISO code for which the current user can read.getReadableLanguagesForUser(UserModel userModel) Retrieves the languages ISO code for which the provided user can read.Retrieves the languages ISO code for which the current user can write.getWriteableLanguagesForUser(UserModel userModel) Retrieves the languages ISO code for which the provided user can write.
-
Method Details
-
getReadableLanguagesForCurrentUser
Retrieves the languages ISO code for which the current user can read.- Returns:
- the ISO codes for all readable languages.
-
getWriteableLanguagesForCurrentUser
Retrieves the languages ISO code for which the current user can write.- Returns:
- the ISO codes for all writeable languages.
-
getReadableLanguagesForUser
Retrieves the languages ISO code for which the provided user can read.- Parameters:
userModel- - The model representing the user whose set of readable languages to retrieve- Returns:
- the ISO codes for all readable languages.
-
getWriteableLanguagesForUser
Retrieves the languages ISO code for which the provided user can write.- Parameters:
userModel- - The model representing the user whose set of writeable languages to retrieve- Returns:
- the ISO codes for all writeable languages.
-