/* * (c) Copyright 2010-2011 AgileBirds * * This file is part of OpenFlexo. * * OpenFlexo is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * OpenFlexo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with OpenFlexo. If not, see <http://www.gnu.org/licenses/>. * */ package org.openflexo.drm; public class Author extends DRMObject { private String identifier; private String fullName; private String email; public Author(DRMBuilder builder) { this(builder.docResourceCenter); initializeDeserialization(builder); } public Author(DocResourceCenter docResourceCenter) { super(docResourceCenter); } protected static Author createAuthor(String anIdentifier, String aFullName, String anEmail, DocResourceCenter docResourceCenter) { Author returned = new Author(docResourceCenter); returned.identifier = anIdentifier; returned.fullName = aFullName; returned.email = anEmail; return returned; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } public String getFullName() { return fullName; } public void setFullName(String fullName) { this.fullName = fullName; } @Override public String getIdentifier() { return identifier; } public void setIdentifier(String identifier) { this.identifier = identifier; } @Override public String getClassNameKey() { return "author"; } }