Package com.skava.ratingandreviews.auth
Class RatingsAndReviewsSecurityConfig
java.lang.Object
com.skava.ratingandreviews.auth.RatingsAndReviewsSecurityConfig
- All Implemented Interfaces:
com.skava.core.auth.CustomSecurityConfigurer
@Component
public class RatingsAndReviewsSecurityConfig
extends Object
implements com.skava.core.auth.CustomSecurityConfigurer
ListSecurityConfig class
This Class provides authentication and access-control features for the web layer of an application and via configuring lot of filters in a order to filter any request before accessing any secured resource.
- Version:
- $Id: $Id
- Author:
- Infosys Equinox This Class override
CustomSecurityConfigurer
for authorization component.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
customConfigure
(org.springframework.security.config.annotation.web.builders.HttpSecurity httpSecurity) customConfigure method is Spring Security will create a session when it needs ones other wise throw the error messagegetBusinessId
(Long collectionId) getBusinessId method is used to return the business id from collection id
-
Constructor Details
-
RatingsAndReviewsSecurityConfig
-
-
Method Details
-
customConfigure
public void customConfigure(org.springframework.security.config.annotation.web.builders.HttpSecurity httpSecurity) customConfigure method is Spring Security will create a session when it needs ones other wise throw the error message- Specified by:
customConfigure
in interfacecom.skava.core.auth.CustomSecurityConfigurer
-
getBusinessId
getBusinessId method is used to return the business id from collection id- Specified by:
getBusinessId
in interfacecom.skava.core.auth.CustomSecurityConfigurer
- Parameters:
collectionId
- Holds a valid collection identifier of this microservice. The requested operation will be performed on this collection identifier. A collection is the topmost entity of a microservice under which all the other entities/resources reside. Each collection represents an instance of the microservice with the configured properties. These properties can be modified to bring in a different behavior per collection of the same microservice. The Store association is the process of associating a microservice collection to a store along with its respective sub-entity. This way, the storefront can fetch/store the required information from that respective association.- Returns:
- businessId the business identifier Gets the businessId from the collectionId
-