1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.jetspeed.profiler.rules.impl;
18
19 import org.apache.jetspeed.profiler.rules.PrincipalRule;
20 import org.apache.jetspeed.profiler.rules.ProfilingRule;
21
22 /***
23 * PrincipalRuleImpl
24 *
25 * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
26 * @version $Id: PrincipalRuleImpl.java 516448 2007-03-09 16:25:47Z ate $
27 */
28 public class PrincipalRuleImpl implements PrincipalRule
29 {
30 private String principalName;
31 private String ruleId;
32 private ProfilingRule profilingRule;
33 private String locatorName;
34
35
36
37
38 public String getPrincipalName()
39 {
40 return this.principalName;
41 }
42
43
44
45
46 public void setPrincipalName(String name)
47 {
48 this.principalName = name;
49 }
50
51
52
53
54
55 public ProfilingRule getProfilingRule()
56 {
57 return this.profilingRule;
58 }
59
60
61
62
63 public void setProfilingRule(ProfilingRule rule)
64 {
65 this.profilingRule = rule;
66 this.ruleId = rule.getId();
67 }
68
69 /***
70 * @return Returns the locatorName.
71 */
72 public String getLocatorName()
73 {
74 return locatorName;
75 }
76 /***
77 * @param locatorName The locatorName to set.
78 */
79 public void setLocatorName(String locatorName)
80 {
81 this.locatorName = locatorName;
82 }
83 }