Subversion Repositories XServices

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
102 brianR 1
/*
2
 *   Copyright 2013 Brian Rosenberger (Brutex Network)
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
 */
16
 
17
package net.brutex.xservices.util.cache;
18
 
19
import java.io.File;
20
import java.util.List;
21
 
185 brianR 22
import org.apache.logging.log4j.Logger;
102 brianR 23
 
24
/**
25
 * @author Brian Rosenberger, bru(at)brutex.de
26
 *
27
 */
28
public class FindingsConfigBean {
185 brianR 29
 
30
	private Logger logger;
102 brianR 31
	private final int instanceid;
185 brianR 32
 
102 brianR 33
	private File cvsconfig;
34
	private int cacheinterval = 15;
35
	private List<Object> filepatterns;
36
	private List<Object> contentpatterns;
37
 
38
	public FindingsConfigBean(int instanceid, Logger logger) {
39
		this.instanceid = instanceid;
40
		this.logger = logger;
185 brianR 41
		logger.debug("Initialise FindingsConfigBean instance '" + instanceid + "'");
42
 
102 brianR 43
	}
44
 
45
	/**
46
	 * @return the cache interval
47
	 */
48
	public int getCacheinterval() {
49
		return cacheinterval;
50
	}
51
 
52
	/**
185 brianR 53
	 * @param cacheinterval
54
	 *            the cache interval to set
102 brianR 55
	 */
56
	public void setCacheinterval(int cacheinterval) {
57
		this.cacheinterval = cacheinterval;
58
	}
185 brianR 59
 
102 brianR 60
	/**
61
	 * @return the cvsconfig
62
	 */
63
	public File getCvsconfig() {
64
		return cvsconfig;
65
	}
66
 
67
	/**
185 brianR 68
	 * @param cvsconfig
69
	 *            the cvsconfig to set
102 brianR 70
	 */
71
	public void setCvsconfig(File cvsconfig) {
72
		this.cvsconfig = cvsconfig;
73
	}
74
 
75
	/**
76
	 * @return the filepatterns
77
	 */
78
	public List<Object> getFilepatterns() {
79
		return filepatterns;
80
	}
81
 
82
	/**
185 brianR 83
	 * @param filepatterns
84
	 *            the filepatterns to set
102 brianR 85
	 */
86
	public void setFilepatterns(List<Object> filepatterns) {
87
		this.filepatterns = filepatterns;
88
	}
89
 
90
	/**
91
	 * @return the contentpatterns
92
	 */
93
	public List<Object> getContentpatterns() {
94
		return contentpatterns;
95
	}
96
 
97
	/**
185 brianR 98
	 * @param contentpatterns
99
	 *            the contentpatterns to set
102 brianR 100
	 */
101
	public void setContentpatterns(List<Object> contentpatterns) {
102
		this.contentpatterns = contentpatterns;
103
	}
104
 
105
	/**
106
	 * @param instanceid
107
	 */
185 brianR 108
 
102 brianR 109
}