Package org.codehaus.cargo.ant
Class UserElement
- java.lang.Object
-
- org.codehaus.cargo.ant.UserElement
-
public class UserElement extends Object
Holds configuration data for the<user>
tag used to configure the ANT plugin
-
-
Constructor Summary
Constructors Constructor Description UserElement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addConfiguredRole(RoleElement roleElement)
User
createUser()
Create user object.String
getName()
String
getPassword()
List<RoleElement>
getRoles()
void
setName(String name)
void
setPassword(String password)
-
-
-
Method Detail
-
getName
public String getName()
- Returns:
- User name.
-
setName
public void setName(String name)
- Parameters:
name
- User name.
-
getPassword
public String getPassword()
- Returns:
- User password.
-
setPassword
public void setPassword(String password)
- Parameters:
password
- User password.
-
getRoles
public List<RoleElement> getRoles()
- Returns:
- User roles.
-
addConfiguredRole
public void addConfiguredRole(RoleElement roleElement)
- Parameters:
roleElement
- the nested user role
-
createUser
public User createUser()
Create user object.- Returns:
- Cargo user object.
-
-