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.sys.OLEPropertyConstants;
21  import org.kuali.rice.core.api.mo.common.active.MutableInactivatable;
22  import org.kuali.rice.core.api.util.type.KualiInteger;
23  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
24  
25  /**
26   * Security Attribute represents attributes that can used within the security system to define restrictions.
27   */
28  public class SecurityAttribute extends PersistableBusinessObjectBase implements MutableInactivatable {
29      private KualiInteger id;
30      private String name;
31      private boolean active;
32  
33      public SecurityAttribute() {
34          super();
35      }
36  
37      /**
38       * Gets the id attribute.
39       * 
40       * @return Returns the id.
41       */
42      public KualiInteger getId() {
43          return id;
44      }
45  
46      /**
47       * Sets the id attribute value.
48       * 
49       * @param id The id to set.
50       */
51      public void setId(KualiInteger id) {
52          this.id = id;
53      }
54  
55      /**
56       * Gets the name attribute.
57       * 
58       * @return Returns the name.
59       */
60      public String getName() {
61          return name;
62      }
63  
64      /**
65       * Sets the name attribute value.
66       * 
67       * @param name The name to set.
68       */
69      public void setName(String name) {
70          this.name = name;
71      }
72  
73      /**
74       * Gets the active attribute.
75       * 
76       * @return Returns the active.
77       */
78      public boolean isActive() {
79          return active;
80      }
81  
82      /**
83       * Sets the active attribute value.
84       * 
85       * @param active The active to set.
86       */
87      public void setActive(boolean active) {
88          this.active = active;
89      }
90  
91      /**
92       * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper()
93       */
94      
95      protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
96          LinkedHashMap m = new LinkedHashMap();
97  
98          m.put(OLEPropertyConstants.ID, this.id);
99  
100         return m;
101     }
102 }