Class DefaultCMSUserService

java.lang.Object
de.hybris.platform.cmsfacades.users.services.impl.DefaultCMSUserService
All Implemented Interfaces:
CMSUserService

public class DefaultCMSUserService extends Object implements CMSUserService
Default implementation of CMSUserService.
  • Constructor Details

    • DefaultCMSUserService

      public DefaultCMSUserService()
  • Method Details

    • getReadableLanguagesForCurrentUser

      public Set<String> getReadableLanguagesForCurrentUser()
      Description copied from interface: CMSUserService
      Retrieves the languages ISO code for which the current user can read.
      Specified by:
      getReadableLanguagesForCurrentUser in interface CMSUserService
      Returns:
      the ISO codes for all readable languages.
    • getReadableLanguagesForUser

      public Set<String> getReadableLanguagesForUser(UserModel userModel)
      Description copied from interface: CMSUserService
      Retrieves the languages ISO code for which the provided user can read.
      Specified by:
      getReadableLanguagesForUser in interface CMSUserService
      Parameters:
      userModel - - The model representing the user whose set of readable languages to retrieve
      Returns:
      the ISO codes for all readable languages.
    • getWriteableLanguagesForCurrentUser

      public Set<String> getWriteableLanguagesForCurrentUser()
      Description copied from interface: CMSUserService
      Retrieves the languages ISO code for which the current user can write.
      Specified by:
      getWriteableLanguagesForCurrentUser in interface CMSUserService
      Returns:
      the ISO codes for all writeable languages.
    • getWriteableLanguagesForUser

      public Set<String> getWriteableLanguagesForUser(UserModel userModel)
      Description copied from interface: CMSUserService
      Retrieves the languages ISO code for which the provided user can write.
      Specified by:
      getWriteableLanguagesForUser in interface CMSUserService
      Parameters:
      userModel - - The model representing the user whose set of writeable languages to retrieve
      Returns:
      the ISO codes for all writeable languages.
    • getLanguagesForUser

      protected Set<String> getLanguagesForUser(UserModel userModel, Function<UserGroupModel,Collection<LanguageModel>> languagesRetrievalFn)
      This method returns languages available to the provided user. Which types of languages are returned is controlled by the languageRetrievalFn provided.
      Parameters:
      userModel - - The model that represent the user whose languages to retrieve.
      languagesRetrievalFn - - Function used to retrieve a collection of languages from a user group model.
      Returns:
      A set of strings. Each string represents a language ISO code.
    • getAllSupportedLanguages

      protected Set<String> getAllSupportedLanguages()
      This method returns all the supported languages in the site.
      Returns:
      a set of strings. Each string represents a language ISO code.
    • getUserGroupsForUser

      protected Set<UserGroupModel> getUserGroupsForUser(UserModel userModel)
      This method returns a set of user groups the provided user belongs to.
      Parameters:
      userModel - - The model representing the user whose user groups to retrieve.
      Returns:
      a set of UserGroupModel instances.
    • getUserService

      protected UserService getUserService()
    • setUserService

      public void setUserService(UserService userService)
    • getStoreSessionFacade

      protected StoreSessionFacade getStoreSessionFacade()
    • setStoreSessionFacade

      public void setStoreSessionFacade(StoreSessionFacade storeSessionFacade)