Class OAuth2AuthorizationServiceUtil
java.lang.Object
com.liferay.oauth2.provider.service.OAuth2AuthorizationServiceUtil
Provides the remote service utility for OAuth2Authorization. This utility wraps
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.- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<OAuth2Authorization>getApplicationOAuth2Authorizations(long oAuth2ApplicationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) static intgetApplicationOAuth2AuthorizationsCount(long oAuth2ApplicationId) static StringReturns the OSGi service identifier.static OAuth2AuthorizationServicestatic List<OAuth2Authorization>getUserOAuth2Authorizations(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) static intstatic voidrevokeAllOAuth2Authorizations(long oAuth2ApplicationId) static voidrevokeOAuth2Authorization(long oAuth2AuthorizationId)
-
Constructor Details
-
OAuth2AuthorizationServiceUtil
public OAuth2AuthorizationServiceUtil()
-
-
Method Details
-
getApplicationOAuth2Authorizations
public static List<OAuth2Authorization> getApplicationOAuth2Authorizations(long oAuth2ApplicationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getApplicationOAuth2AuthorizationsCount
public static int getApplicationOAuth2AuthorizationsCount(long oAuth2ApplicationId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
getUserOAuth2Authorizations
public static List<OAuth2Authorization> getUserOAuth2Authorizations(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getUserOAuth2AuthorizationsCount
public static int getUserOAuth2AuthorizationsCount() throws com.liferay.portal.kernel.exception.PortalException- Throws:
com.liferay.portal.kernel.exception.PortalException
-
revokeAllOAuth2Authorizations
public static void revokeAllOAuth2Authorizations(long oAuth2ApplicationId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
revokeOAuth2Authorization
public static void revokeOAuth2Authorization(long oAuth2AuthorizationId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getService
-