Subversion Repositories XServices

Rev

Rev 198 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 198 Rev 199
1
/*
1
/*
2
 *   Copyright 2013 Brian Rosenberger (Brutex Network)
2
 *   Copyright 2013 Brian Rosenberger (Brutex Network)
3
 *
3
 *
4
 *   Licensed under the Apache License, Version 2.0 (the "License");
4
 *   Licensed under the Apache License, Version 2.0 (the "License");
5
 *   you may not use this file except in compliance with 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
6
 *   You may obtain a copy of the License at
7
 *
7
 *
8
 *       http://www.apache.org/licenses/LICENSE-2.0
8
 *       http://www.apache.org/licenses/LICENSE-2.0
9
 *
9
 *
10
 *   Unless required by applicable law or agreed to in writing, software
10
 *   Unless required by applicable law or agreed to in writing, software
11
 *   distributed under the License is distributed on an "AS IS" BASIS,
11
 *   distributed under the License is distributed on an "AS IS" BASIS,
12
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 *   See the License for the specific language governing permissions and
13
 *   See the License for the specific language governing permissions and
14
 *   limitations under the License.
14
 *   limitations under the License.
15
 */
15
 */
16
 
16
 
17
package net.brutex.xservices.util.cache;
17
package net.brutex.xservices.util.cache;
-
 
18
 
-
 
19
import lombok.extern.slf4j.Slf4j;
-
 
20
import org.slf4j.Logger;
18
 
21
 
19
import java.io.File;
22
import java.io.File;
20
import java.util.List;
23
import java.util.List;
21
 
-
 
-
 
24
 
22
import org.apache.logging.log4j.Logger;
25
 
23
 
26
 
24
/**
27
/**
25
 * @author Brian Rosenberger, bru(at)brutex.de
28
 * @author Brian Rosenberger, bru(at)brutex.de
26
 *
29
 *
27
 */
30
 */
-
 
31
@Slf4j
28
public class FindingsConfigBean {
32
public class FindingsConfigBean {
29
 
-
 
-
 
33
 
30
	private Logger logger;
34
 
31
	private final int instanceid;
35
	private final int instanceid;
32
 
36
 
33
	private File cvsconfig;
37
	private File cvsconfig;
34
	private int cacheinterval = 15;
38
	private int cacheinterval = 15;
35
	private List<Object> filepatterns;
39
	private List<Object> filepatterns;
36
	private List<Object> contentpatterns;
40
	private List<Object> contentpatterns;
37
 
41
 
38
	public FindingsConfigBean(int instanceid, Logger logger) {
42
	public FindingsConfigBean(int instanceid) {
39
		this.instanceid = instanceid;
-
 
-
 
43
		this.instanceid = instanceid;
40
		this.logger = logger;
44
 
41
		logger.debug("Initialise FindingsConfigBean instance '" + instanceid + "'");
45
		log.debug("Initialise FindingsConfigBean instance '" + instanceid + "'");
42
 
46
 
43
	}
47
	}
44
 
48
 
45
	/**
49
	/**
46
	 * @return the cache interval
50
	 * @return the cache interval
47
	 */
51
	 */
48
	public int getCacheinterval() {
52
	public int getCacheinterval() {
49
		return cacheinterval;
53
		return cacheinterval;
50
	}
54
	}
51
 
55
 
52
	/**
56
	/**
53
	 * @param cacheinterval
57
	 * @param cacheinterval
54
	 *            the cache interval to set
58
	 *            the cache interval to set
55
	 */
59
	 */
56
	public void setCacheinterval(int cacheinterval) {
60
	public void setCacheinterval(int cacheinterval) {
57
		this.cacheinterval = cacheinterval;
61
		this.cacheinterval = cacheinterval;
58
	}
62
	}
59
 
63
 
60
	/**
64
	/**
61
	 * @return the cvsconfig
65
	 * @return the cvsconfig
62
	 */
66
	 */
63
	public File getCvsconfig() {
67
	public File getCvsconfig() {
64
		return cvsconfig;
68
		return cvsconfig;
65
	}
69
	}
66
 
70
 
67
	/**
71
	/**
68
	 * @param cvsconfig
72
	 * @param cvsconfig
69
	 *            the cvsconfig to set
73
	 *            the cvsconfig to set
70
	 */
74
	 */
71
	public void setCvsconfig(File cvsconfig) {
75
	public void setCvsconfig(File cvsconfig) {
72
		this.cvsconfig = cvsconfig;
76
		this.cvsconfig = cvsconfig;
73
	}
77
	}
74
 
78
 
75
	/**
79
	/**
76
	 * @return the filepatterns
80
	 * @return the filepatterns
77
	 */
81
	 */
78
	public List<Object> getFilepatterns() {
82
	public List<Object> getFilepatterns() {
79
		return filepatterns;
83
		return filepatterns;
80
	}
84
	}
81
 
85
 
82
	/**
86
	/**
83
	 * @param filepatterns
87
	 * @param filepatterns
84
	 *            the filepatterns to set
88
	 *            the filepatterns to set
85
	 */
89
	 */
86
	public void setFilepatterns(List<Object> filepatterns) {
90
	public void setFilepatterns(List<Object> filepatterns) {
87
		this.filepatterns = filepatterns;
91
		this.filepatterns = filepatterns;
88
	}
92
	}
89
 
93
 
90
	/**
94
	/**
91
	 * @return the contentpatterns
95
	 * @return the contentpatterns
92
	 */
96
	 */
93
	public List<Object> getContentpatterns() {
97
	public List<Object> getContentpatterns() {
94
		return contentpatterns;
98
		return contentpatterns;
95
	}
99
	}
96
 
100
 
97
	/**
101
	/**
98
	 * @param contentpatterns
102
	 * @param contentpatterns
99
	 *            the contentpatterns to set
103
	 *            the contentpatterns to set
100
	 */
104
	 */
101
	public void setContentpatterns(List<Object> contentpatterns) {
105
	public void setContentpatterns(List<Object> contentpatterns) {
102
		this.contentpatterns = contentpatterns;
106
		this.contentpatterns = contentpatterns;
103
	}
107
	}
104
 
108
 
105
	/**
109
	/**
106
	 * @param instanceid
110
	 * @param instanceid
107
	 */
111
	 */
108
 
112
 
109
}
113
}