Subversion Repositories XServices

Rev

Rev 102 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

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