Interface SystemService

    • Method Detail

      • getAvailableLanguages

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

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

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

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

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

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

        LanguageModel getLanguageForLocale​(java.util.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

        java.util.List<java.lang.String> getUsersByName​(java.lang.String name,
                                                        java.lang.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​(java.lang.String uid)
        get the user with a given uuid
        Parameters:
        uid - the uuid
        Returns:
        the user
      • getUserByName

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

        boolean checkPermissionOn​(java.lang.String typeCode,
                                  java.lang.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​(java.lang.String typeCode,
                                           java.lang.String attributeQualifier,
                                           java.lang.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.