@ProviderType
public interface ScopeLocator
LiferayOAuth2Scopes based on a
portal instance configuration of the OAuth2 framework. Scope aliases can
match multiple LiferayOAuth2Scopes from OAuth2 frameworks in
different portal instances.| Modifier and Type | Method and Description |
|---|---|
LiferayOAuth2Scope |
getLiferayOAuth2Scope(long companyId,
java.lang.String applicationName,
java.lang.String scope) |
java.util.Collection<LiferayOAuth2Scope> |
getLiferayOAuth2Scopes(long companyId)
Returns all the application exported scopes.
|
java.util.Collection<LiferayOAuth2Scope> |
getLiferayOAuth2Scopes(long companyId,
java.lang.String scopesAlias)
Returns the application exported scopes matching the given portal
instance's scopes alias.
|
java.util.Collection<LiferayOAuth2Scope> |
getLiferayOAuth2Scopes(long companyId,
java.lang.String scopesAlias,
java.lang.String applicationName)
Returns the application exported scopes matching the given portal
instance's scopes alias, filtered by application name.
|
java.util.Collection<java.lang.String> |
getScopeAliases(long companyId)
Returns the scope aliases available for the given portal instance.
|
java.util.Collection<java.lang.String> |
getScopeAliases(long companyId,
java.lang.String applicationName)
Returns the scope aliases available for the given portal instance,
filtered by application name.
|
LiferayOAuth2Scope getLiferayOAuth2Scope(long companyId, java.lang.String applicationName, java.lang.String scope)
java.util.Collection<LiferayOAuth2Scope> getLiferayOAuth2Scopes(long companyId)
companyId - the ID of the portal instance containing the scopesjava.util.Collection<LiferayOAuth2Scope> getLiferayOAuth2Scopes(long companyId, java.lang.String scopesAlias)
companyId - the ID of the portal instance containing the scopesscopesAlias - the alias mapped to scopesjava.util.Collection<LiferayOAuth2Scope> getLiferayOAuth2Scopes(long companyId, java.lang.String scopesAlias, java.lang.String applicationName)
companyId - the ID of the portal instance containing the scopesscopesAlias - the alias mapped to scopesapplicationName - the application containing the scopesjava.util.Collection<java.lang.String> getScopeAliases(long companyId)
companyId - the ID of the portal instance containing the scope
aliasesnull scope aliasesjava.util.Collection<java.lang.String> getScopeAliases(long companyId,
java.lang.String applicationName)
companyId - the ID of the portal instance containing the scope
aliasesapplicationName - the application exporting the scopesnull scope aliases, filtered by application
name