Class MerchandiseSecurityConfig

java.lang.Object
com.skava.auth.MerchandiseSecurityConfig
All Implemented Interfaces:
com.skava.core.auth.CustomSecurityConfigurer

@Component public class MerchandiseSecurityConfig extends Object implements com.skava.core.auth.CustomSecurityConfigurer
This class is used to authorize users and it overrides CustomSecurityConfigurer for authorization component.
Author:
Infosys Equinox
  • Constructor Details

    • MerchandiseSecurityConfig

      public MerchandiseSecurityConfig()
  • Method Details

    • customConfigure

      public void customConfigure(org.springframework.security.config.annotation.web.builders.HttpSecurity httpSecurity)
      Specified by:
      customConfigure in interface com.skava.core.auth.CustomSecurityConfigurer
    • getBusinessId

      public Long getBusinessId(Long collectionId)
      This method is used to get business Id of a Collection by collection Id.
      Specified by:
      getBusinessId in interface com.skava.core.auth.CustomSecurityConfigurer
      Parameters:
      collectionId - It is used to get the business Id of a collection.
      Returns:
      It returns the businessId.