All Downloads are FREE. Search and download functionalities are using the official Maven repository.

custom-sql.default.xml Maven / Gradle / Ivy

There is a newer version: 4.0.96
Show newest version
<?xml version="1.0"?>

<custom-sql>
	<sql id="com.liferay.oauth2.provider.service.persistence.OAuth2AuthorizationFinder.findByPurgeDate">
		<![CDATA[
			SELECT
				{OAuth2Authorization.*}
		 	FROM
			 	OAuth2Authorization
			WHERE
				(OAuth2Authorization.accessTokenExpirationDate < ?) AND
				(
					(
						(OAuth2Authorization.refreshTokenExpirationDate IS NOT NULL) AND
						(OAuth2Authorization.refreshTokenExpirationDate < ?)
					) OR
					(OAuth2Authorization.refreshTokenExpirationDate IS NULL)
				)

		]]>
	</sql>
	<sql id="com.liferay.oauth2.provider.service.persistence.OAuth2ScopeGrantFinder.findByC_A_B_A">
		<![CDATA[
			SELECT
				{OAuth2ScopeGrant.*}, {OAuth2Authorization.*}
		 	FROM
			 	OAuth2ScopeGrant
			INNER JOIN
				OA2Auths_OA2ScopeGrants ON
					OAuth2ScopeGrant.oAuth2ScopeGrantId = OA2Auths_OA2ScopeGrants.oAuth2ScopeGrantId
			INNER JOIN
				OAuth2Authorization ON
					OAuth2Authorization.oAuth2AuthorizationId = OA2Auths_OA2ScopeGrants.oAuth2AuthorizationId
			WHERE
				(OAuth2ScopeGrant.companyId = ?) AND
				(OAuth2ScopeGrant.applicationName = ?) AND
				(OAuth2ScopeGrant.bundleSymbolicName = ?) AND
				(OAuth2Authorization.accessTokenContentHash = ?)
		]]>
	</sql>
</custom-sql>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy