1
Description: Add compatibility with Spring 3.0 Framework
2
Author: Miguel Landaeta <miguel@miguel.cc>
3
Bug-Debian: http://bugs.debian.org/655903
5
Last-Update: 2012-01-22
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;
17
* Identifies previously remembered users by a Base-64 encoded cookie.
18
@@ -357,7 +357,7 @@ public class TokenBasedRememberMeService
22
- return RequestUtils.getBooleanParameter(request, parameter, false);
23
+ return ServletRequestUtils.getBooleanParameter(request, parameter, false);
26
public void loginSuccess(HttpServletRequest request, HttpServletResponse response,
28
+++ acegi-security-1.0.7/core/src/main/java/org/springframework/metadata/Attributes.java
31
+ * Copyright 2002-2005 the original author or authors.
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
37
+ * http://www.apache.org/licenses/LICENSE-2.0
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.
46
+package org.springframework.metadata;
48
+import java.lang.reflect.Field;
49
+import java.lang.reflect.Method;
50
+import java.util.Collection;
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.
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.
63
+ * @author Mark Pollack
64
+ * @author Rod Johnson
66
+ * @see org.springframework.metadata.commons.CommonsAttributes
68
+public interface Attributes {
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>
75
+ Collection getAttributes(Class targetClass);
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
87
+ Collection getAttributes(Class targetClass, Class filter);
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>
94
+ Collection getAttributes(Method targetMethod);
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>
106
+ Collection getAttributes(Method targetMethod, Class filter);
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>
113
+ Collection getAttributes(Field targetField);
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>
125
+ Collection getAttributes(Field targetField, Class filter);