~ubuntu-branches/ubuntu/precise/acegi-security/precise

« back to all changes in this revision

Viewing changes to debian/patches/spring3.patch

  • Committer: Package Import Robot
  • Author(s): James Page, Miguel Landaeta, James Page
  • Date: 2012-01-31 12:42:18 UTC
  • mfrom: (3.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20120131124218-842hqe7x8fdzzoyg
Tags: 1.0.7-3
* Team Upload

[ Miguel Landaeta ]
* Replace dependencies on Spring Framework 2.5 libraries with 3.0 ones.
* Add spring3.patch. (Closes: #655903).

[ James Page ]
* d/control,rules,*.classpath: Dropped dependency on javahelper - not 
  required.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: Add compatibility with Spring 3.0 Framework
 
2
Author: Miguel Landaeta <miguel@miguel.cc>
 
3
Bug-Debian: http://bugs.debian.org/655903
 
4
Forwarded: no
 
5
Last-Update: 2012-01-22
 
6
 
 
7
--- acegi-security-1.0.7.orig/core/src/main/java/org/acegisecurity/ui/rememberme/TokenBasedRememberMeServices.java
 
8
+++ acegi-security-1.0.7/core/src/main/java/org/acegisecurity/ui/rememberme/TokenBasedRememberMeServices.java
 
9
@@ -39,7 +39,7 @@ import org.springframework.beans.factory
 
10
 import org.springframework.context.ApplicationContext;
 
11
 import org.springframework.util.Assert;
 
12
 import org.springframework.util.StringUtils;
 
13
-import org.springframework.web.bind.RequestUtils;
 
14
+import org.springframework.web.bind.ServletRequestUtils;
 
15
 
 
16
 /**
 
17
  * Identifies previously remembered users by a Base-64 encoded cookie.
 
18
@@ -357,7 +357,7 @@ public class TokenBasedRememberMeService
 
19
                        return true;
 
20
                }
 
21
 
 
22
-               return RequestUtils.getBooleanParameter(request, parameter, false);
 
23
+               return ServletRequestUtils.getBooleanParameter(request, parameter, false);
 
24
        }
 
25
 
 
26
        public void loginSuccess(HttpServletRequest request, HttpServletResponse response,
 
27
--- /dev/null
 
28
+++ acegi-security-1.0.7/core/src/main/java/org/springframework/metadata/Attributes.java
 
29
@@ -0,0 +1,98 @@
 
30
+/*
 
31
+ * Copyright 2002-2005 the original author or authors.
 
32
+ * 
 
33
+ * Licensed under the Apache License, Version 2.0 (the "License");
 
34
+ * you may not use this file except in compliance with the License.
 
35
+ * You may obtain a copy of the License at
 
36
+ * 
 
37
+ *      http://www.apache.org/licenses/LICENSE-2.0
 
38
+ * 
 
39
+ * Unless required by applicable law or agreed to in writing, software
 
40
+ * distributed under the License is distributed on an "AS IS" BASIS,
 
41
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
42
+ * See the License for the specific language governing permissions and
 
43
+ * limitations under the License.
 
44
+ */
 
45
+
 
46
+package org.springframework.metadata;
 
47
+
 
48
+import java.lang.reflect.Field;
 
49
+import java.lang.reflect.Method;
 
50
+import java.util.Collection;
 
51
+
 
52
+/**
 
53
+ * Interface for accessing attributes at runtime. This is a facade,
 
54
+ * which can accommodate any attributes API such as Jakarta Commons Attributes,
 
55
+ * or (possibly in future) a Spring attributes implementation.
 
56
+ *
 
57
+ * <p>The purpose of using this interface is to decouple Spring code from any
 
58
+ * specific attributes implementation. Even once JSR-175 is available, there
 
59
+ * is still value in such a facade interface, as it allows for hierarchical
 
60
+ * attribute sources: for example, an XML file or properties file might override
 
61
+ * some attributes defined in source-level metadata with JSR-175 or another framework.
 
62
+ *
 
63
+ * @author Mark Pollack
 
64
+ * @author Rod Johnson
 
65
+ * @since 30.09.2003
 
66
+ * @see org.springframework.metadata.commons.CommonsAttributes
 
67
+ */
 
68
+public interface Attributes {
 
69
+
 
70
+       /**
 
71
+        * Return the class attributes of the target class.
 
72
+        * @param targetClass the class that contains attribute information
 
73
+        * @return a collection of attributes, possibly an empty collection, never <code>null</code>
 
74
+        */
 
75
+       Collection getAttributes(Class targetClass);
 
76
+
 
77
+       /**
 
78
+        * Return the class attributes of the target class of a given type.
 
79
+        * <p>The class attributes are filtered by providing a <code>Class</code>
 
80
+        * reference to indicate the type to filter on. This is useful if you know
 
81
+        * the type of the attribute you are looking for and don't want to sort
 
82
+        * through the unfiltered Collection yourself.
 
83
+        * @param targetClass the class that contains attribute information
 
84
+        * @param filter specify that only this type of class should be returned
 
85
+        * @return return only the Collection of attributes that are of the filter type
 
86
+        */
 
87
+       Collection getAttributes(Class targetClass, Class filter);
 
88
+
 
89
+       /**
 
90
+        * Return the method attributes of the target method.
 
91
+        * @param targetMethod the method that contains attribute information
 
92
+        * @return a Collection of attributes, possibly an empty Collection, never <code>null</code>
 
93
+        */
 
94
+       Collection getAttributes(Method targetMethod);
 
95
+
 
96
+       /**
 
97
+        * Return the method attributes of the target method of a given type.
 
98
+        * <p>The method attributes are filtered by providing a <code>Class</code>
 
99
+        * reference to indicate the type to filter on. This is useful if you know
 
100
+        * the type of the attribute you are looking for and don't want to sort
 
101
+        * through the unfiltered Collection yourself.
 
102
+        * @param targetMethod the method that contains attribute information
 
103
+        * @param filter specify that only this type of class should be returned
 
104
+        * @return a Collection of attributes, possibly an empty Collection, never <code>null</code>
 
105
+        */
 
106
+       Collection getAttributes(Method targetMethod, Class filter);
 
107
+
 
108
+       /**
 
109
+        * Return the field attributes of the target field.
 
110
+        * @param targetField the field that contains attribute information
 
111
+        * @return a Collection of attribute, possibly an empty Collection, never <code>null</code>
 
112
+        */
 
113
+       Collection getAttributes(Field targetField);
 
114
+
 
115
+       /**
 
116
+        * Return the field attributes of the target method of a given type.
 
117
+        * <p>The field attributes are filtered by providing a <code>Class</code>
 
118
+        * reference to indicate the type to filter on. This is useful if you know
 
119
+        * the type of the attribute you are looking for and don't want to sort
 
120
+        * through the unfiltered Collection yourself.
 
121
+        * @param targetField the field that contains attribute information
 
122
+        * @param filter specify that only this type of class should be returned
 
123
+        * @return a Collection of attributes, possibly an empty Collection, never <code>null</code>
 
124
+        */
 
125
+       Collection getAttributes(Field targetField, Class filter);
 
126
+
 
127
+}