Class ServicelayerManager

    • Field Detail

      • ITEMSAVEDVALUESRELATIONSAVEDVALUESHANDLER

        protected static final OneToManyHandler<SavedValues> ITEMSAVEDVALUESRELATIONSAVEDVALUESHANDLER
        for hmc legacy
        OneToManyHandler for handling 1:n SAVEDVALUES's relation attributes from 'many' side.
    • Constructor Detail

      • ServicelayerManager

        public ServicelayerManager()
    • Method Detail

      • init

        public void init()
        Description copied from class: Manager
        called once for each tenant, so this method fits best to perform some initialization stuff
        Overrides:
        init in class Manager
      • notifyAttributesChanged

        protected void notifyAttributesChanged()
      • afterSessionAttributeChange

        public void afterSessionAttributeChange​(JaloSession session,
                                                java.lang.String attributeName,
                                                java.lang.Object value)
        Description copied from interface: JaloSessionListener
        Notify if the extension manager if the session attributes was changed
        Specified by:
        afterSessionAttributeChange in interface JaloSessionListener
        Parameters:
        session - current session
        attributeName - name of changed attribute
        value - new value
      • isEventActiveAttribute

        protected boolean isEventActiveAttribute​(java.lang.String attributeName)
      • notifyTenantRestart

        public void notifyTenantRestart​(Tenant tenant)
      • notifyInitializationEnd

        public void notifyInitializationEnd​(java.util.Map<java.lang.String,​java.lang.String> params,
                                            JspContext ctx)
                                     throws java.lang.Exception
        Overrides:
        notifyInitializationEnd in class Extension
        Throws:
        java.lang.Exception
      • notifyInitializationStart

        public void notifyInitializationStart​(java.util.Map<java.lang.String,​java.lang.String> params,
                                              JspContext ctx)
                                       throws java.lang.Exception
        Overrides:
        notifyInitializationStart in class Extension
        Throws:
        java.lang.Exception
      • getSessionArtNamesFilter

        public java.util.List<java.lang.String> getSessionArtNamesFilter()
        Returns:
        the sessionArtNamesFilter
      • getSavedValues

        public java.util.Set<SavedValues> getSavedValues​(Item item)
        Getter of the Item.savedValues attribute.
        Returns:
        the savedValues
      • getOrCreateUserProfile

        public UserProfile getOrCreateUserProfile()
        Gets the user profile of the current user. If it is not created yet, it will be created.
        Returns:
        user profile of current user
      • getAllWritableLanguages

        public java.util.Set<Language> getAllWritableLanguages()
        Returns a Set containing all 'writable languages' for the current user as configured in its user profile. If no set is specified at the user profile all groups which the user is a member of will be searched for a property called 'writablelanguages' (which should contain Collections of Languages) and if such properties exist, all contained languages are returned.
        Note: This set will be cached and rebuild per request.
        Returns:
        a Set containing all 'writable languages' for the current user.
      • getAllReadableLanguages

        public java.util.Set<Language> getAllReadableLanguages()
        Returns a Set containing all 'readable languages' for the current user as configured in its user profile. If no set is specified at the user profile all groups which the user is a member of will be searched for a property called 'readablelanguages' (which should contain Collections of Languages) and if such properties exist, all contained languages are returned.
        Note: This set will be cached and rebuild per request.
        Returns:
        a Set containing all 'readable languages' for the current user.
      • getAllLanguages

        public java.util.Set<Language> getAllLanguages()
        Returns all existing Language objects for the given JaloSession.
        Note: This set will be cached and rebuild per request.
        Returns:
        a Set containing all existing Language objects for the given JaloSession.
      • getUserprofile

        public UserProfile getUserprofile​(User item)
        Generated method - Getter of the User.userprofile attribute.
        Returns:
        the userprofile
      • getUserprofile

        public UserProfile getUserprofile​(SessionContext ctx,
                                          User item)
        Generated method - Getter of the User.userprofile attribute.
        Returns:
        the userprofile
      • setUserprofile

        public void setUserprofile​(SessionContext ctx,
                                   User item,
                                   UserProfile value)
        Generated method - Setter of the User.userprofile attribute.
        Parameters:
        value - the userprofile
      • setUserprofile

        public void setUserprofile​(User item,
                                   UserProfile value)
        Generated method - Setter of the User.userprofile attribute.
        Parameters:
        value - the userprofile
      • notifyClusterAboutTenantInitialization

        public void notifyClusterAboutTenantInitialization​(Tenant tenant)
      • publishEvent

        public void publishEvent​(AbstractEvent event)
      • getServiceLayerEnumerationValue

        public <T extends HybrisEnumValue> T getServiceLayerEnumerationValue​(java.lang.String enumerationCode,
                                                                             java.lang.String valueCode)