added version to ScmState

This commit is contained in:
Sebastian Sdorra
2011-02-10 16:10:51 +01:00
parent 9f69ff3c6f
commit cd92d776c1
4 changed files with 138 additions and 9 deletions

View File

@@ -67,12 +67,16 @@ public class ScmState
*
*
*
*
* @param provider
* @param securityContext
* @param repositoryTypes
*/
public ScmState(WebSecurityContext securityContext,
public ScmState(SCMContextProvider provider,
WebSecurityContext securityContext,
Collection<Type> repositoryTypes)
{
this.version = provider.getVersion();
this.user = securityContext.getUser();
this.groups = securityContext.getGroups();
this.repositoryTypes = repositoryTypes;
@@ -113,6 +117,17 @@ public class ScmState
return user;
}
/**
* Method description
*
*
* @return
*/
public String getVersion()
{
return version;
}
/**
* Method description
*
@@ -170,6 +185,17 @@ public class ScmState
this.user = user;
}
/**
* Method description
*
*
* @param version
*/
public void setVersion(String version)
{
this.version = version;
}
//~--- fields ---------------------------------------------------------------
/** Field description */
@@ -184,4 +210,7 @@ public class ScmState
/** Field description */
private User user;
/** Field description */
private String version;
}