/*
* Copyright (C) 2009 eXo Platform SAS.
*
* This 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 2.1 of
* the License, or (at your option) any later version.
*
* This software 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 software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.exoplatform.services.jcr.ext.backup.server.bean.response;
import org.exoplatform.services.jcr.config.RepositoryEntry;
import org.exoplatform.services.jcr.config.WorkspaceEntry;
import org.exoplatform.services.jcr.ext.backup.BackupChainLog;
import org.exoplatform.services.jcr.ext.backup.RepositoryBackupChainLog;
import java.util.Calendar;
/**
* Created by The eXo Platform SAS .
*
* @author <a href="mailto:gavrikvetal@gmail.com">Vitaliy Gulyy</a>
* @version $
*/
public class DetailedInfoEx extends DetailedInfo
{
protected WorkspaceEntry workspaceEntry;
protected RepositoryEntry repositoryEntry;
protected String failMessage;
public DetailedInfoEx(int type, BackupChainLog chainLog, Calendar startedTime, Calendar finishedTime, int state,
String repositroryName, String workspaceName, WorkspaceEntry workspaceEntry, String failMessage)
{
super(type, chainLog, startedTime, finishedTime, state, repositroryName, workspaceName);
this.workspaceEntry = workspaceEntry;
this.failMessage = failMessage;
}
public DetailedInfoEx(int type, RepositoryBackupChainLog chainLog, Calendar startedTime, Calendar finishedTime,
int state, String repositroryName, RepositoryEntry repositoryEntry, String failMessage)
{
super(type, chainLog, startedTime, finishedTime, state, repositroryName);
this.repositoryEntry = repositoryEntry;
this.failMessage = failMessage;
}
public String getFailMessage()
{
return failMessage;
}
public void setFailMessage(String failMessage)
{
this.failMessage = failMessage;
}
public WorkspaceEntry getWorkspaceEntry()
{
return workspaceEntry;
}
public void setWorkspaceEntry(WorkspaceEntry workspaceEntry)
{
this.workspaceEntry = workspaceEntry;
}
}