Commits

Marcin Grzejszczak committed 952527f

Refactoring and removal of .class

Comments (0)

Files changed (18)

AOP/src/main/pl/grzejszczak/marcin/aop/interceptor/SecurityInterceptor.java

 		}
 
 		Annotation annotation = checkTheAnnotation(arguments);
-		boolean atrAccessSecurityAnnotationPresent = (annotation != null);
+		boolean securityAnnotationPresent = (annotation != null);
 
-		if (atrAccessSecurityAnnotationPresent) {
+		if (securityAnnotationPresent) {
 			boolean userHasRole = verifyRole(annotation);
 			if (!userHasRole) {
 				LOGGER.info("Current user doesn't have permission to have this component created");

AOP/target/classes/aopApplicationContext.xml

-<?xml version="1.0" encoding="UTF-8"?>
-<beans xmlns="http://www.springframework.org/schema/beans"
-	xmlns:context="http://www.springframework.org/schema/context"
-	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-	xmlns:aop="http://www.springframework.org/schema/aop"
-	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
-        http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
-        http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
-        http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.1.xsd
-        http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd">
-
-	<aop:aspectj-autoproxy />
-	<context:annotation-config />
-	<context:component-scan base-package="pl.grzejszczak.marcin.aop">
-		<context:exclude-filter type="annotation" expression="org.aspectj.lang.annotation.Aspect"/>
-	</context:component-scan>
-	<bean class="pl.grzejszczak.marcin.aop.interceptor.SecurityInterceptor" factory-method="aspectOf"/>	
-
-</beans>

AOP/target/classes/log4j.xml

-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
-<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
-
-	<!-- Appenders -->
-	<appender name="console" class="org.apache.log4j.ConsoleAppender">
-		<param name="Target" value="System.out" />
-		<layout class="org.apache.log4j.PatternLayout">
-			<param name="ConversionPattern" value="%d %-5p [%t] %c:%L %m%n" />
-		</layout>
-	</appender>
-	
-	<!-- Application Loggers -->
-	<logger name="pl.grzejszczak.marcin">
-		<level value="DEBUG" />
-	</logger>
-	
-	<!-- 3rdparty Loggers -->
-	<logger name="org.springframework.core">
-		<level value="INFO" />
-	</logger>
-	
-	<logger name="org.springframework.beans">
-		<level value="INFO" />
-	</logger>
-	
-	<logger name="org.springframework.context">
-		<level value="INFO" />
-	</logger>
-
-	<logger name="org.springframework.web">
-		<level value="INFO" />
-	</logger>
-	
-	<logger name="org.springframework.security">
-		<level value="INFO" />
-	</logger>
-	
-	<logger name="com.juancavallotti.jdto">
-		<level value="WARN" />
-	</logger>
-
-
-	<!-- Root Logger -->
-	<root>
-		<priority value="INFO" />
-		<appender-ref ref="console" />
-	</root>
-	
-</log4j:configuration>

AOP/target/classes/pl/grzejszczak/marcin/aop/AopIntegrationTest.class

Binary file removed.

AOP/target/classes/pl/grzejszczak/marcin/aop/AopTest.class

Binary file removed.

AOP/target/classes/pl/grzejszczak/marcin/aop/annotation/SecurityAnnotation.class

Binary file removed.

AOP/target/classes/pl/grzejszczak/marcin/aop/interceptor/SecurityInterceptor.class

Binary file removed.

AOP/target/classes/pl/grzejszczak/marcin/aop/service/UserService.class

Binary file removed.

AOP/target/classes/pl/grzejszczak/marcin/aop/service/UserServiceImpl.class

Binary file removed.

AOP/target/classes/pl/grzejszczak/marcin/aop/type/Role.class

Binary file removed.

AOP/target/classes/pl/grzejszczak/marcin/aop/ui/SomeComponentForAdmin.class

Binary file removed.

AOP/target/classes/pl/grzejszczak/marcin/aop/ui/SomeComponentForAdminAndGuest.class

Binary file removed.

AOP/target/classes/pl/grzejszczak/marcin/aop/ui/SomeComponentForGuest.class

Binary file removed.

AOP/target/classes/pl/grzejszczak/marcin/aop/ui/SomeComponentForWriter.class

Binary file removed.

AOP/target/classes/pl/grzejszczak/marcin/aop/ui/UIComponent.class

Binary file removed.

AOP/target/classes/pl/grzejszczak/marcin/aop/ui/UIFactory.class

Binary file removed.

AOP/target/classes/pl/grzejszczak/marcin/aop/ui/UIFactoryImpl.class

Binary file removed.

AOP/target/classes/pl/grzejszczak/marcin/aop/user/UserHolder.class

Binary file removed.