commit | author | age
|
11924d
|
1 |
/*
|
JM |
2 |
* Copyright 2012 gitblit.com.
|
|
3 |
*
|
|
4 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5 |
* you may not use this file except in compliance with the License.
|
|
6 |
* You may obtain a copy of the License at
|
|
7 |
*
|
|
8 |
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9 |
*
|
|
10 |
* Unless required by applicable law or agreed to in writing, software
|
|
11 |
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13 |
* See the License for the specific language governing permissions and
|
|
14 |
* limitations under the License.
|
|
15 |
*/
|
7bf6e1
|
16 |
package com.gitblit.servlet;
|
11924d
|
17 |
|
cdb2fe
|
18 |
import com.google.inject.Inject;
|
JM |
19 |
import com.google.inject.Singleton;
|
1b34b0
|
20 |
|
JM |
21 |
import com.gitblit.manager.IAuthenticationManager;
|
|
22 |
import com.gitblit.manager.IRepositoryManager;
|
|
23 |
import com.gitblit.manager.IRuntimeManager;
|
|
24 |
|
11924d
|
25 |
|
JM |
26 |
/**
|
|
27 |
* The PagesFilter is an AccessRestrictionFilter which ensures the gh-pages
|
|
28 |
* requests for a view-restricted repository are authenticated and authorized.
|
699e71
|
29 |
*
|
11924d
|
30 |
* @author James Moger
|
699e71
|
31 |
*
|
11924d
|
32 |
*/
|
1b34b0
|
33 |
|
JM |
34 |
@Singleton
|
ff17f7
|
35 |
public class PagesFilter extends RawFilter {
|
116422
|
36 |
|
1b34b0
|
37 |
@Inject
|
JM |
38 |
public PagesFilter(
|
|
39 |
IRuntimeManager runtimeManager,
|
|
40 |
IAuthenticationManager authenticationManager,
|
|
41 |
IRepositoryManager repositoryManager) {
|
|
42 |
|
|
43 |
super(runtimeManager, authenticationManager, repositoryManager);
|
|
44 |
}
|
11924d
|
45 |
|
JM |
46 |
}
|