Class SystemServiceImpl

    • Constructor Detail

      • SystemServiceImpl

        public SystemServiceImpl()
    • Method Detail

      • getAvailableLanguageIsos

        public java.util.Set<java.lang.String> getAvailableLanguageIsos()
        Description copied from interface: SystemService
        Returns all available hybris languages iso codes.
        Specified by:
        getAvailableLanguageIsos in interface SystemService
      • getAllReadableLanguageIsos

        public java.util.Set<java.lang.String> getAllReadableLanguageIsos()
        Description copied from interface: SystemService
        Returns all for the user readable available hybris languages iso codes.
        Specified by:
        getAllReadableLanguageIsos in interface SystemService
      • getAllWriteableLanguageIsos

        public java.util.Set<java.lang.String> getAllWriteableLanguageIsos()
        Description copied from interface: SystemService
        Returns all for the user writeable available hybris languages iso codes.
        Specified by:
        getAllWriteableLanguageIsos in interface SystemService
      • getLanguageForLocale

        public LanguageModel getLanguageForLocale​(java.util.Locale loc)
        Description copied from interface: SystemService
        Tries to find a matching hybris language for a given locale. If this fails the method returns the current hybris session language !
        Specified by:
        getLanguageForLocale in interface SystemService
        Parameters:
        loc - the locale to find a hybris language for
      • getUserByUID

        public UserModel getUserByUID​(java.lang.String uid)
        Description copied from interface: SystemService
        get the user with a given uuid
        Specified by:
        getUserByUID in interface SystemService
        Parameters:
        uid - the uuid
        Returns:
        the user
      • getUsersByName

        public java.util.List<java.lang.String> getUsersByName​(java.lang.String name,
                                                               java.lang.String typecode)
        Description copied from interface: SystemService
        get a list of all user with a given name
        Specified by:
        getUsersByName in interface SystemService
        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
      • getUserByName

        public UserModel getUserByName​(java.lang.String name)
        Description copied from interface: SystemService
        get the first user with a given name
        Specified by:
        getUserByName in interface SystemService
        Parameters:
        name - the username
        Returns:
        the user
      • checkPermissionOn

        public boolean checkPermissionOn​(UserModel user,
                                         java.lang.String typeCode,
                                         java.lang.String permissionCode)
      • checkPermissionOn

        public boolean checkPermissionOn​(java.lang.String typeCode,
                                         java.lang.String permissionCode)
        Description copied from interface: SystemService
        check the type access rights for the current user
        Specified by:
        checkPermissionOn in interface SystemService
        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

        public boolean checkAttributePermissionOn​(java.lang.String typeCode,
                                                  java.lang.String attributeQualifier,
                                                  java.lang.String permissionCode)
        Specified by:
        checkAttributePermissionOn in interface SystemService
      • setUserRightsCache

        public void setUserRightsCache​(UserRightsCache urCache)
      • getUserRightFromCache

        protected java.lang.Boolean getUserRightFromCache​(PK relatedObject,
                                                          java.lang.String right)
      • addUserRightToCache

        protected void addUserRightToCache​(PK relatedObject,
                                           java.lang.String right,
                                           boolean value)
      • setUserService

        public void setUserService​(UserService userService)
      • itemExist

        public boolean itemExist​(PK pk)
        Specified by:
        itemExist in interface SystemService
        Parameters:
        pk - the pk of item
        Returns:
        true if item exist, false if it was deleted.