001    /**
002     * Copyright 2004-2013 The Kuali Foundation
003     *
004     * Licensed under the Educational Community License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     *
008     * http://www.opensource.org/licenses/ecl2.php
009     *
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    package org.kuali.hr.time.task;
017    
018    import org.kuali.hr.core.KPMEConstants;
019    import org.kuali.hr.time.HrBusinessObject;
020    import org.kuali.hr.time.workarea.WorkArea;
021    
022    public class Task extends HrBusinessObject {
023    
024            private static final long serialVersionUID = -7536342291963303862L;
025    
026            public static final String CACHE_NAME = KPMEConstants.APPLICATION_NAMESPACE_CODE + "/" + "Task";
027    
028        private String tkTaskId;
029        private Long task;
030        private Long workArea;
031        private String description;
032        private String administrativeDescription;
033        private String userPrincipalId;
034        
035        private WorkArea workAreaObj;
036            
037            public String getTkTaskId() {
038                    return tkTaskId;
039            }
040    
041            public void setTkTaskId(String tkTaskId) {
042                    this.tkTaskId = tkTaskId;
043            }
044            
045            public Long getTask() {
046                    return task;
047            }
048    
049            public void setTask(Long task) {
050                    this.task = task;
051            }
052    
053            public Long getWorkArea() {
054                    return workArea;
055            }
056    
057            public void setWorkArea(Long workArea) {
058                    this.workArea = workArea;
059            }
060    
061        public String getDescription() {
062            return description;
063        }
064    
065        public void setDescription(String description) {
066            this.description = description;
067        }
068        
069        public String getAdministrativeDescription() {
070            return administrativeDescription;
071        }
072    
073        public void setAdministrativeDescription(String administrativeDescription) {
074            this.administrativeDescription = administrativeDescription;
075        }
076    
077        public String getUserPrincipalId() {
078            return userPrincipalId;
079        }
080    
081        public void setUserPrincipalId(String userPrincipalId) {
082            this.userPrincipalId = userPrincipalId;
083        }
084    
085            public WorkArea getWorkAreaObj() {
086                    return workAreaObj;
087            }
088    
089            public void setWorkAreaObj(WorkArea workAreaObj) {
090                    this.workAreaObj = workAreaObj;
091            }
092    
093            @Override
094            public String getUniqueKey() {
095                    return workArea + "_" + task;
096            }
097    
098            @Override
099            public String getId() {
100                    return getTkTaskId();
101            }
102    
103            @Override
104            public void setId(String id) {
105                    setTkTaskId(id);
106            }
107    
108    }