01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
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: private String principalName;
30: private String ruleId;
31: private ProfilingRule profilingRule;
32: private String locatorName;
33:
34: /* (non-Javadoc)
35: * @see org.apache.jetspeed.profiler.rules.PrincipalRule#getPrincipalName()
36: */
37: public String getPrincipalName() {
38: return this .principalName;
39: }
40:
41: /* (non-Javadoc)
42: * @see org.apache.jetspeed.profiler.rules.PrincipalRule#setPrincipalName(java.lang.String)
43: */
44: public void setPrincipalName(String name) {
45: this .principalName = name;
46: }
47:
48: /* (non-Javadoc)
49: * @see org.apache.jetspeed.profiler.rules.PrincipalRule#getProfilingRule()
50: */
51: public ProfilingRule getProfilingRule() {
52: return this .profilingRule;
53: }
54:
55: /* (non-Javadoc)
56: * @see org.apache.jetspeed.profiler.rules.PrincipalRule#setProfilingRule(org.apache.jetspeed.profiler.rules.ProfilingRule)
57: */
58: public void setProfilingRule(ProfilingRule rule) {
59: this .profilingRule = rule;
60: this .ruleId = rule.getId();
61: }
62:
63: /**
64: * @return Returns the locatorName.
65: */
66: public String getLocatorName() {
67: return locatorName;
68: }
69:
70: /**
71: * @param locatorName The locatorName to set.
72: */
73: public void setLocatorName(String locatorName) {
74: this.locatorName = locatorName;
75: }
76: }
|