Files
SCM-Manager/scm-webapp/src/main/java/sonia/scm/ScmState.java

127 lines
2.1 KiB
Java
Raw Normal View History

2010-09-06 14:34:04 +02:00
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package sonia.scm;
//~--- JDK imports ------------------------------------------------------------
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
/**
*
* @author Sebastian Sdorra
*/
@XmlRootElement(name = "state")
@XmlAccessorType(XmlAccessType.FIELD)
public class ScmState
{
/**
* Constructs ...
*
*/
public ScmState() {}
2010-09-08 10:59:54 +02:00
/**
* Constructs ...
*
*
* @param user
* @param repositoryTypes
*/
public ScmState(User user, RepositoryType[] repositoryTypes)
{
this.user = user;
this.repositoryTypes = repositoryTypes;
}
2010-09-06 14:34:04 +02:00
//~--- get methods ----------------------------------------------------------
/**
* Method description
*
*
* @return
*/
public RepositoryType[] getRepositoryTypes()
{
return repositoryTypes;
}
/**
* Method description
*
*
* @return
*/
2010-09-08 10:59:54 +02:00
public User getUser()
2010-09-06 14:34:04 +02:00
{
2010-09-08 10:59:54 +02:00
return user;
2010-09-06 14:34:04 +02:00
}
/**
* Method description
*
*
* @return
*/
public boolean isSuccess()
{
return success;
}
//~--- set methods ----------------------------------------------------------
/**
* Method description
*
*
* @param repositoryTypes
*/
public void setRepositoryTypes(RepositoryType[] repositoryTypes)
{
this.repositoryTypes = repositoryTypes;
}
/**
* Method description
*
*
* @param success
*/
public void setSuccess(boolean success)
{
this.success = success;
}
/**
* Method description
*
*
2010-09-08 10:59:54 +02:00
* @param user
2010-09-06 14:34:04 +02:00
*/
2010-09-08 10:59:54 +02:00
public void setUser(User user)
2010-09-06 14:34:04 +02:00
{
2010-09-08 10:59:54 +02:00
this.user = user;
2010-09-06 14:34:04 +02:00
}
//~--- fields ---------------------------------------------------------------
/** Field description */
@XmlElement(name = "repositoryTypes")
private RepositoryType[] repositoryTypes;
/** Field description */
private boolean success = true;
/** Field description */
2010-09-08 10:59:54 +02:00
private User user;
2010-09-06 14:34:04 +02:00
}