Commit 14db2fe3 authored by Rustam Lotsmanenko (EPAM)'s avatar Rustam Lotsmanenko (EPAM)
Browse files

add condition on AuthorizationServiceImpl bean

parent 95e8f2c9
Pipeline #18409 failed with stage
in 2 minutes and 1 second
......@@ -10,6 +10,7 @@ import org.opengroup.osdu.core.common.provider.interfaces.IAuthorizationService;
import org.opengroup.osdu.core.common.http.HeadersUtil;
import org.opengroup.osdu.core.common.http.HttpResponse;
import org.opengroup.osdu.core.common.logging.JaxRsDpsLog;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;
......@@ -18,6 +19,7 @@ import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
@ConditionalOnBean(IEntitlementsFactory.class)
@Service
@Lazy
public class AuthorizationServiceImpl implements IAuthorizationService {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment