/* $Id: Application.java,v 1.1 2008/01/11 09:08:49 stokin Exp $
*
* Copyright (c)ARGO 21, Corporation. 2005.  All rights reserved.
 * 
 * This file is part of Nautica Workflow.
 * 
 *  Nautica Workflow 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 2 of the License, or
 *  (at your option) any later version.
 * 
 *  Nautica Workflow 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 Nautica Workflow; if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 *  
*/
package jp.co.argo21.nautica.workflow.sample.model;

import java.sql.Timestamp;
import java.text.DateFormat;

import jp.co.argo21.nautica.workflow.soap.message.User;

//import jp.co.argo21.nautica.workflow.security.User;

/**
 * �\����\���N���X�B
 * 
 * @author  ruchida(Argo 21, Corp.)
 * @version $Revision: 1.1 $
 * @since   Nautica Workflow 0.9
 */
public class Application {
    
    /** �\�����ԍ� */
    private String id;
    
    /** �\����� */
    private AppKind kind;
    
    /** ���[�UID */
    private String userid;
    
    /** ���[�U */
    private User user;
    
    /** ��t */
    private Timestamp date;
    
    /**
     * �\�����ԍ���Ԃ��B
     * 
	 * @return �\�����ԍ�
	 */
	public String getId() {
        return id;
    }
    
    /**
     * �\�����ԍ���ݒ肷��B
     * 
	 * @param id �\�����ԍ�
	 */
	public void setId(String id) {
        this.id = id;
    }
    
    /**
     * �\����ʂ�Ԃ��B
     * 
	 * @return �\�����
	 */
	public AppKind getKind() {
        return kind;
    }
    
    /**
     * �\����ʂ�ݒ肷��B
     * 
	 * @param kind �\�����
	 */
	public void setKind(AppKind kind) {
        this.kind = kind;
    }
    
    /**
     * ���[�UID��Ԃ��B
     * 
     * @return ���[�UID
     */
    public String getUserid() {
        return userid;
    }
    
    /**
     * ���[�UID��ݒ肷��B
     * 
     * @param userid ���[�UID
     */
    public void setUserid(String userid) {
        this.userid = userid;
    }
    
    /**
     * ���[�U��Ԃ��B
     * 
	 * @return Returns the user.
	 */
	public User getUser() {
        return user;
    }
    
    /**
     * ���[�U��ݒ肷��B
     * 
	 * @param user ���[�U
	 */
	public void setUser(User user) {
        this.user = user;
    }
    
    /**
     * ��t��Ԃ��B
     * 
	 * @return ��t
	 */
	public Timestamp getDate() {
        return date;
    }
    
    /**
     * ��t��ݒ肷��B
     * 
	 * @param date ��t
	 */
	public void setDate(Timestamp date) {
        this.date = date;
    }
    
    /**
     * ��t��Ԃ��B
     * 
     * @return ��t
     */
    public String getDateString() {
		DateFormat dateInstance = DateFormat.getDateInstance(DateFormat.FULL);
		return dateInstance.format(date);
    }
}
