Interface OAuth2AuthorizationService
- All Superinterfaces:
com.liferay.portal.kernel.service.BaseService
- All Known Implementing Classes:
OAuth2AuthorizationServiceWrapper
@AccessControlled
@ProviderType
@Transactional(isolation=PORTAL,
rollbackFor={com.liferay.portal.kernel.exception.PortalException.class,com.liferay.portal.kernel.exception.SystemException.class})
public interface OAuth2AuthorizationService
extends com.liferay.portal.kernel.service.BaseService
Provides the remote service interface for OAuth2Authorization. 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:
-
Method Summary
Modifier and TypeMethodDescriptiongetApplicationOAuth2Authorizations(long oAuth2ApplicationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) intgetApplicationOAuth2AuthorizationsCount(long oAuth2ApplicationId) Returns the OSGi service identifier.getUserOAuth2Authorizations(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) intvoidrevokeAllOAuth2Authorizations(long oAuth2ApplicationId) voidrevokeOAuth2Authorization(long oAuth2AuthorizationId)
-
Method Details
-
getApplicationOAuth2Authorizations
@Transactional(propagation=SUPPORTS, readOnly=true) 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
@Transactional(propagation=SUPPORTS, readOnly=true) int getApplicationOAuth2AuthorizationsCount(long oAuth2ApplicationId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getOSGiServiceIdentifier
String getOSGiServiceIdentifier()Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
getUserOAuth2Authorizations
@Transactional(propagation=SUPPORTS, readOnly=true) 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
@Transactional(propagation=SUPPORTS, readOnly=true) int getUserOAuth2AuthorizationsCount() throws com.liferay.portal.kernel.exception.PortalException- Throws:
com.liferay.portal.kernel.exception.PortalException
-
revokeAllOAuth2Authorizations
void revokeAllOAuth2Authorizations(long oAuth2ApplicationId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
revokeOAuth2Authorization
void revokeOAuth2Authorization(long oAuth2AuthorizationId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-