@@ -45,12 +45,12 @@ public class LdapFilterPlugin extends AbstractLdapPlugin {
45
45
46
46
protected static final String FILTER_PARAM = "filter" ;
47
47
private static final String SESSION_ALLOWED_PREFIX = "opengrok-filter-plugin-allowed" ;
48
- private String SESSION_ALLOWED = SESSION_ALLOWED_PREFIX ;
48
+ private String sessionAllowed = SESSION_ALLOWED_PREFIX ;
49
49
50
50
private String ldapFilter ;
51
51
52
52
public LdapFilterPlugin () {
53
- SESSION_ALLOWED += "-" + nextId ++;
53
+ sessionAllowed += "-" + nextId ++;
54
54
}
55
55
56
56
@ Override
@@ -66,7 +66,7 @@ public void load(Map<String, Object> parameters) {
66
66
@ Override
67
67
protected boolean sessionExists (HttpServletRequest req ) {
68
68
return super .sessionExists (req )
69
- && req .getSession ().getAttribute (SESSION_ALLOWED ) != null ;
69
+ && req .getSession ().getAttribute (sessionAllowed ) != null ;
70
70
}
71
71
72
72
@ Override
@@ -152,16 +152,16 @@ protected String expandFilter(String filter, LdapUser ldapUser, User user) {
152
152
* @param allowed the new value
153
153
*/
154
154
protected void updateSession (HttpServletRequest req , boolean allowed ) {
155
- req .getSession ().setAttribute (SESSION_ALLOWED , allowed );
155
+ req .getSession ().setAttribute (sessionAllowed , allowed );
156
156
}
157
157
158
158
@ Override
159
159
public boolean checkEntity (HttpServletRequest request , Project project ) {
160
- return ((Boolean ) request .getSession ().getAttribute (SESSION_ALLOWED ));
160
+ return ((Boolean ) request .getSession ().getAttribute (sessionAllowed ));
161
161
}
162
162
163
163
@ Override
164
164
public boolean checkEntity (HttpServletRequest request , Group group ) {
165
- return ((Boolean ) request .getSession ().getAttribute (SESSION_ALLOWED ));
165
+ return ((Boolean ) request .getSession ().getAttribute (sessionAllowed ));
166
166
}
167
167
}
0 commit comments