001    /**
002     * Copyright 2005-2011 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 edu.sampleu.bookstore.bo;
017    
018    import org.kuali.rice.core.api.mo.common.active.MutableInactivatable;
019    import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
020    
021    import java.util.ArrayList;
022    import java.util.List;
023    
024    /**
025     * Author Business Object class file for Author maintenance object.
026     */
027    
028    public class Author extends PersistableBusinessObjectBase implements MutableInactivatable {
029    
030            private static final long serialVersionUID = -4883752918652513985L;
031            private Long authorId;
032            private String authorName;
033            private String email;
034            private String phoneNbr;
035            private boolean active = true;
036    
037            private List<Address> addresses = new ArrayList<Address>();
038    
039            private List<Book> books = new ArrayList<Book>();
040    
041            // private Account account;
042            //      
043            // public Account getAccount() {
044            // return account;
045            // }
046            //
047            // public void setAccount(Account account) {
048            // this.account = account;
049            // }
050    
051            public List<Book> getBooks() {
052                    return books;
053            }
054    
055            public void setBooks(List<Book> books) {
056                    this.books = books;
057            }
058    
059            public List<Address> getAddresses() {
060                    return addresses;
061            }
062    
063            public void setAddresses(List<Address> addresses) {
064                    this.addresses = addresses;
065            }
066    
067            public Long getAuthorId() {
068                    return authorId;
069            }
070    
071            public void setAuthorId(Long authorId) {
072                    this.authorId = authorId;
073            }
074    
075            public String getAuthorName() {
076                    return authorName;
077            }
078    
079            public void setAuthorName(String authorName) {
080                    this.authorName = authorName;
081            }
082    
083            public String getEmail() {
084                    return email;
085            }
086    
087            public void setEmail(String email) {
088                    this.email = email;
089            }
090    
091            public String getPhoneNbr() {
092                    return phoneNbr;
093            }
094    
095            public void setPhoneNbr(String phoneNbr) {
096                    this.phoneNbr = phoneNbr;
097            }
098    
099            public boolean isActive() {
100                    return active;
101            }
102    
103            public void setActive(boolean active) {
104                    this.active = active;
105            }
106    
107             
108    
109    }