/*
* This is a common dao with basic CRUD operations and is not limited to any
* persistent layer implementation
*
* Copyright (C) 2008 Imran M Yousuf (imyousuf@smartitengineering.com)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
* This library 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
* Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package com.smartitengineering.version.impl.jgit.domain;
import com.smartitengineering.domain.AbstractPersistentDTO;
import org.apache.commons.lang.StringUtils;
/**
*
* @author imyousuf
*/
public class Author
extends AbstractPersistentDTO<Author> {
public static final String PROP_NAME = "name";
public static final String PROP_EMAIL = "email";
protected String name;
protected String email;
/**
* Get the value of email
*
* @return the value of email
*/
public String getEmail() {
return email;
}
/**
* Set the value of email
*
* @param email new value of email
*/
public void setEmail(String email) {
this.email = email;
}
/**
* Get the value of name
*
* @return the value of name
*/
public String getName() {
return name;
}
/**
* Set the value of name
*
* @param name new value of name
*/
public void setName(String name) {
this.name = name;
}
public boolean isValid() {
if (StringUtils.isBlank(email) || name == null) {
return false;
}
return true;
}
}