Interface SystemService

All Known Implementing Classes:
MockSystemService, SystemServiceImpl

public interface SystemService
  • Method Details

    • getAvailableLanguages

      Set<LanguageModel> getAvailableLanguages()
      Returns all available hybris languages as beans.
    • getAvailableLanguageIsos

      Set<String> getAvailableLanguageIsos()
      Returns all available hybris languages iso codes.
    • getAllReadableLanguages

      Set<LanguageModel> getAllReadableLanguages()
      Returns all for the user readable hybris languages as beans.
    • getAllReadableLanguageIsos

      Set<String> getAllReadableLanguageIsos()
      Returns all for the user readable available hybris languages iso codes.
    • getAllWriteableLanguages

      Set<LanguageModel> getAllWriteableLanguages()
      Returns all for the user writeable hybris languages as beans.
    • getAllWriteableLanguageIsos

      Set<String> getAllWriteableLanguageIsos()
      Returns all for the user writeable available hybris languages iso codes.
    • getLanguageForLocale

      LanguageModel getLanguageForLocale(Locale loc)
      Tries to find a matching hybris language for a given locale. If this fails the method returns the current hybris session language !
      Parameters:
      loc - the locale to find a hybris language for
    • getCurrentLanguage

      LanguageModel getCurrentLanguage()
      get the current hybris session language
      Returns:
      the current hybris session language
    • getUsersByName

      List<String> getUsersByName(String name, String typecode)
      get a list of all user with a given name
      Parameters:
      name - the name of the users
      typecode - the typecode of the class representing a user, or null for class User
      Returns:
      the user list
    • getUserByUID

      UserModel getUserByUID(String uid)
      get the user with a given uuid
      Parameters:
      uid - the uuid
      Returns:
      the user
    • getUserByName

      UserModel getUserByName(String name)
      get the first user with a given name
      Parameters:
      name - the username
      Returns:
      the user
    • checkPermissionOn

      boolean checkPermissionOn(String typeCode, String permissionCode)
      check the type access rights for the current user
      Parameters:
      typeCode - the code of the type to check
      permissionCode - the code of the right to check, see AccessManager
      Returns:
      true, if the current user has the specified access right, false otherwise
    • checkAttributePermissionOn

      boolean checkAttributePermissionOn(String typeCode, String attributeQualifier, String permissionCode)
    • setSessionLanguage

      void setSessionLanguage(LanguageModel lang)
      set the language of the current session
      Parameters:
      lang - the language
    • getCurrentUser

      UserModel getCurrentUser()
      get the user from the current session
      Returns:
      the user
    • getCatalogVersion

      CatalogVersionModel getCatalogVersion(TypedObject typedObject)
      get the catalog version for passed typedObject
      Parameters:
      typedObject -
      Returns:
      appropriate catalog version when found
    • itemExist

      boolean itemExist(PK pk)
      Parameters:
      pk - the pk of item
      Returns:
      true if item exist, false if it was deleted.