com.liferay.commerce.internal.instance.lifecycle.CommerceServiceScopeMapper Maven / Gradle / Ivy
The newest version!
/**
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
package com.liferay.commerce.internal.instance.lifecycle;
import com.liferay.oauth2.provider.scope.spi.scope.mapper.ScopeMapper;
import java.util.Collections;
import java.util.Set;
import org.osgi.service.component.annotations.Component;
/**
* @author Joao Victor Alves
*/
@Component(
property = "osgi.jaxrs.name=Liferay.Commerce", service = ScopeMapper.class
)
public class CommerceServiceScopeMapper implements ScopeMapper {
@Override
public Set map(String scope) {
return Collections.singleton(scope);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy