META-INF.spring.jpa-ticket-reg-context.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cas-server-support-jpa-ticket-registry Show documentation
Show all versions of cas-server-support-jpa-ticket-registry Show documentation
cas-server-support-jpa-ticket-registry
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xmlns:c="http://www.springframework.org/schema/c" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:context="http://www.springframework.org/schema/context" xmlns:util="http://www.springframework.org/schema/util" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd"> <tx:advice id="txCentralAuthenticationServiceAdvice" transaction-manager="ticketTransactionManager"> <tx:attributes> <tx:method name="destroyTicketGrantingTicket" read-only="false" /> <tx:method name="grantServiceTicket" read-only="false" /> <tx:method name="delegateTicketGrantingTicket" read-only="false" /> <tx:method name="validateServiceTicket" read-only="false" /> <tx:method name="createTicketGrantingTicket" read-only="false" /> <tx:method name="createProxyGrantingTicket" read-only="false" /> <tx:method name="grantProxyTicket" read-only="false" /> <tx:method name="getTicket" read-only="false" no-rollback-for="org.apereo.cas.ticket.InvalidTicketException" /> <tx:method name="getTickets" read-only="true" /> </tx:attributes> </tx:advice> <tx:advice id="txRegistryAdvice" transaction-manager="ticketTransactionManager"> <tx:attributes> <tx:method name="deleteTicket" read-only="false" /> <tx:method name="addTicket" read-only="false" /> <tx:method name="updateTicket" read-only="false" /> <tx:method name="getTicket" read-only="true" /> <tx:method name="getTickets" read-only="true" /> <tx:method name="sessionCount" read-only="true" /> <tx:method name="serviceTicketCount" read-only="true" /> </tx:attributes> </tx:advice> <tx:advice id="txRegistrySupportAdvice" transaction-manager="ticketTransactionManager"> <tx:attributes> <tx:method name="getAuthenticationFrom" read-only="false" /> <tx:method name="getAuthenticatedPrincipalFrom" read-only="false" /> <tx:method name="getPrincipalAttributesFrom" read-only="false" /> </tx:attributes> </tx:advice> <tx:advice id="txRegistryLockingAdvice" transaction-manager="ticketTransactionManager"> <tx:attributes> <tx:method name="getOwner" read-only="true" /> <tx:method name="acquire" read-only="false" /> <tx:method name="release" read-only="false" /> </tx:attributes> </tx:advice> <aop:config> <aop:pointcut id="ticketRegistryOperations" expression="execution(* org.apereo.cas.ticket.registry.JpaTicketRegistry.*(..))"/> <aop:pointcut id="ticketRegistrySupportOperations" expression="execution(* org.apereo.cas.ticket.registry.DefaultTicketRegistrySupport.*(..))"/> <aop:pointcut id="ticketRegistryLockingOperations" expression="execution(* org.apereo.cas.ticket.registry.support.JpaLockingStrategy.*(..))"/> <aop:pointcut id="casOperations" expression="execution(* org.apereo.cas.DefaultCentralAuthenticationService.*(..))"/> <aop:advisor advice-ref="txRegistryAdvice" pointcut-ref="ticketRegistryOperations"/> <aop:advisor advice-ref="txRegistrySupportAdvice" pointcut-ref="ticketRegistrySupportOperations"/> <aop:advisor advice-ref="txRegistryLockingAdvice" pointcut-ref="ticketRegistryLockingOperations"/> <aop:advisor advice-ref="txCentralAuthenticationServiceAdvice" pointcut-ref="casOperations"/> </aop:config> </beans>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy