View Javadoc
1   /*
2    * Copyright 2009 The Kuali Foundation.
3    * 
4    * Licensed under the Educational Community License, Version 1.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.opensource.org/licenses/ecl1.php
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  package org.kuali.ole.sec.businessobject;
17  
18  import java.util.LinkedHashMap;
19  
20  import org.kuali.ole.sec.SecPropertyConstants;
21  import org.kuali.rice.krad.bo.TransientBusinessObjectBase;
22  
23  
24  /**
25   * Holds information regarding an access restriction that was found. Used by AccessSecurityService to provide information back when checking access
26   */
27  public class AccessSecurityRestrictionInfo extends TransientBusinessObjectBase {
28      private String securityAttributeName;
29      private String propertyName;
30      private String propertyLabel;
31      private String retrictedValue;
32      private String documentNumber;
33  
34      public AccessSecurityRestrictionInfo() {
35  
36      }
37  
38      /**
39       * Gets the securityAttributeName attribute.
40       * 
41       * @return Returns the securityAttributeName.
42       */
43      public String getSecurityAttributeName() {
44          return securityAttributeName;
45      }
46  
47  
48      /**
49       * Sets the securityAttributeName attribute value.
50       * 
51       * @param securityAttributeName The securityAttributeName to set.
52       */
53      public void setSecurityAttributeName(String securityAttributeName) {
54          this.securityAttributeName = securityAttributeName;
55      }
56  
57  
58      /**
59       * Gets the propertyName attribute.
60       * 
61       * @return Returns the propertyName.
62       */
63      public String getPropertyName() {
64          return propertyName;
65      }
66  
67  
68      /**
69       * Sets the propertyName attribute value.
70       * 
71       * @param propertyName The propertyName to set.
72       */
73      public void setPropertyName(String propertyName) {
74          this.propertyName = propertyName;
75      }
76  
77  
78      /**
79       * Gets the retrictedValue attribute.
80       * 
81       * @return Returns the retrictedValue.
82       */
83      public String getRetrictedValue() {
84          return retrictedValue;
85      }
86  
87  
88      /**
89       * Sets the retrictedValue attribute value.
90       * 
91       * @param retrictedValue The retrictedValue to set.
92       */
93      public void setRetrictedValue(String retrictedValue) {
94          this.retrictedValue = retrictedValue;
95      }
96  
97  
98      /**
99       * Gets the propertyLabel attribute.
100      * 
101      * @return Returns the propertyLabel.
102      */
103     public String getPropertyLabel() {
104         return propertyLabel;
105     }
106 
107     /**
108      * Sets the propertyLabel attribute value.
109      * 
110      * @param propertyLabel The propertyLabel to set.
111      */
112     public void setPropertyLabel(String propertyLabel) {
113         this.propertyLabel = propertyLabel;
114     }
115 
116 
117     /**
118      * Gets the documentNumber attribute.
119      * 
120      * @return Returns the documentNumber.
121      */
122     public String getDocumentNumber() {
123         return documentNumber;
124     }
125 
126     /**
127      * Sets the documentNumber attribute value.
128      * 
129      * @param documentNumber The documentNumber to set.
130      */
131     public void setDocumentNumber(String documentNumber) {
132         this.documentNumber = documentNumber;
133     }
134 
135     
136     protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
137         LinkedHashMap m = new LinkedHashMap();
138 
139         m.put(SecPropertyConstants.SECURITY_ATTRIBUTE_NAME, this.securityAttributeName);
140 
141         return m;
142     }
143 
144 }