public interface ScopeLocator
LiferayOAuth2Scope
s based on a portal instance configuration of OAuth2
Framework.LiferayOAuth2Scope
s
based on particular portal instance configuration of OAuth2 Framework.Modifier and Type | Method and Description |
---|---|
java.util.Collection<LiferayOAuth2Scope> |
getLiferayOAuth2Scopes(long companyId,
java.lang.String scopesAlias)
Returns a collection of application exported scopes matching a
scopesAlias in the given portal instance. |
java.util.Collection<LiferayOAuth2Scope> |
getLiferayOAuth2Scopes(long companyId,
java.lang.String scopesAlias,
java.lang.String applicationName)
Returns a collection of application exported scopes matching a
scopesAlias in the given portal instance, filtered by applicationName . |
java.util.Collection<java.lang.String> |
getScopeAliases(long companyId)
Returns a list of scope aliases available for the given portal instance.
|
java.util.Collection<java.lang.String> |
getScopeAliases(long companyId,
java.lang.String applicationName)
Returns a list of scope aliases available for the given portal instance,
filtered by application name.
|
java.util.Collection<LiferayOAuth2Scope> getLiferayOAuth2Scopes(long companyId, java.lang.String scopesAlias)
scopesAlias
in the given portal instance.companyId
- the company for which the scopes are to be locatedscopesAlias
- the scope alias the scopes are mapped tojava.util.Collection<LiferayOAuth2Scope> getLiferayOAuth2Scopes(long companyId, java.lang.String scopesAlias, java.lang.String applicationName)
scopesAlias
in the given portal instance, filtered by applicationName
.companyId
- the company for which the scopes are to be locatedscopesAlias
- the scope alias the scopes are mapped toapplicationName
- the application for which the scopes are to be
locatedapplicationName
java.util.Collection<java.lang.String> getScopeAliases(long companyId)
companyId
- the portal instance contextnull
collection of scope aliases from the
portal instancejava.util.Collection<java.lang.String> getScopeAliases(long companyId, java.lang.String applicationName)
companyId
- the portal instance contextapplicationName
- name of application exporting the scopesnull
collection of scope aliases from the
portal instance filtered by applicationName