-
Notifications
You must be signed in to change notification settings - Fork 0
SAP Commerce ‐ Groovin' on a Sunday afternoon
Arthur Perry edited this page Sep 6, 2023
·
5 revisions
import de.hybris.platform.servicelayer.search.FlexibleSearchService;
import de.hybris.platform.apiregistryservices.model.ExposedOAuthCredentialModel;
import de.hybris.platform.servicelayer.search.SearchResult;
FlexibleSearchService fss = spring.getBean 'flexibleSearchService';
SearchResult<ExposedOAuthCredentialModel> rs = fss.search("select {pk} from {ExposedOAuthCredential} where {id} = 'kyma-trial'");
println 'Result count: ' + rs.count
rs.result.each {
println 'client : ' + it.id + ' password : ' + it.password;
}
return "Groovy Rocks!"