Class DefaultExternalScopesStrategy
- java.lang.Object
-
- de.hybris.platform.webservicescommons.oauth2.scope.impl.DefaultExternalScopesStrategy
-
- All Implemented Interfaces:
OpenIDExternalScopesStrategy
public class DefaultExternalScopesStrategy extends java.lang.Object implements OpenIDExternalScopesStrategy
-
-
Field Summary
Fields Modifier and Type Field Description protected ExternalScopesDaoexternalScopesDaoprotected UserServiceuserService
-
Constructor Summary
Constructors Constructor Description DefaultExternalScopesStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>getExternalScopes(OAuthClientDetailsModel clientDetailsModel, java.lang.String principal)Gets the external scopes for given clientDetailsModel and principal UID.voidsetExternalScopesDao(ExternalScopesDao externalScopesDao)voidsetUserService(UserService userService)
-
-
-
Field Detail
-
externalScopesDao
protected ExternalScopesDao externalScopesDao
-
userService
protected UserService userService
-
-
Method Detail
-
getExternalScopes
public java.util.List<java.lang.String> getExternalScopes(OAuthClientDetailsModel clientDetailsModel, java.lang.String principal)
Description copied from interface:OpenIDExternalScopesStrategyGets the external scopes for given clientDetailsModel and principal UID.- Specified by:
getExternalScopesin interfaceOpenIDExternalScopesStrategy- Parameters:
clientDetailsModel- the client details modelprincipal- the principal - UID- Returns:
- the list of external scopes that the given principal has assigned directly and by groups that it belongs to
-
setExternalScopesDao
public void setExternalScopesDao(ExternalScopesDao externalScopesDao)
-
setUserService
public void setUserService(UserService userService)
-
-