public class OAuth2AuthorizationServiceUtil
extends java.lang.Object
com.liferay.oauth2.provider.service.impl.OAuth2AuthorizationServiceImpl and is an
access point for service operations in application layer code running on a
remote server. Methods of this service are expected to have security checks
based on the propagated JAAS credentials because this service can be
accessed remotely.OAuth2AuthorizationService| Constructor and Description |
|---|
OAuth2AuthorizationServiceUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<OAuth2Authorization> |
getApplicationOAuth2Authorizations(long oAuth2ApplicationId,
int start,
int end,
OrderByComparator<OAuth2Authorization> orderByComparator) |
static int |
getApplicationOAuth2AuthorizationsCount(long oAuth2ApplicationId) |
static java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static OAuth2AuthorizationService |
getService() |
static java.util.List<OAuth2Authorization> |
getUserOAuth2Authorizations(int start,
int end,
OrderByComparator<OAuth2Authorization> orderByComparator) |
static int |
getUserOAuth2AuthorizationsCount() |
static void |
revokeOAuth2Authorization(long oAuth2AuthorizationId) |
public static java.util.List<OAuth2Authorization> getApplicationOAuth2Authorizations(long oAuth2ApplicationId, int start, int end, OrderByComparator<OAuth2Authorization> orderByComparator) throws PortalException
PortalExceptionpublic static int getApplicationOAuth2AuthorizationsCount(long oAuth2ApplicationId)
throws PortalException
PortalExceptionpublic static java.lang.String getOSGiServiceIdentifier()
public static java.util.List<OAuth2Authorization> getUserOAuth2Authorizations(int start, int end, OrderByComparator<OAuth2Authorization> orderByComparator) throws PortalException
PortalExceptionpublic static int getUserOAuth2AuthorizationsCount()
throws PortalException
PortalExceptionpublic static void revokeOAuth2Authorization(long oAuth2AuthorizationId)
throws PortalException
PortalExceptionpublic static OAuth2AuthorizationService getService()