public class V1Instance extends Object
Constructor and Description |
---|
V1Instance(String applicationPath)
Initialize a V1Instance to communicate with an installation of VersionOne
at a given URL using Integrated Authentication.
|
V1Instance(String applicationPath,
String userName,
String password)
Initialize a V1Instance to communicate with an installation of VersionOne
at a given URL using basic authentication.
|
V1Instance(String applicationPath,
String userName,
String password,
ProxySettings proxySettings)
Initialize a V1Instance to communicate with an installation of VersionOne
through a proxy
|
Modifier and Type | Method and Description |
---|---|
V1InstanceCreator |
create() |
V1InstanceGetter |
get() |
ApiClientInternals |
getApiClient()
Allows access to the underlying API Client structures.
|
com.versionone.apiclient.Asset |
getAsset(Object id)
Retrieve an asset stored in asset cache.
|
InstanceConfiguration |
getConfiguration() |
CookiesManager |
getCookiesJar()
Cookies manager for working with cookies which send to the VersionOne server.
|
Map<String,String> |
getCustomHttpHeaders()
Http headers list for sending to the VersionOne
key - name of parameter
value - value of parameter
|
<T extends ListValue> |
getListValueByName(Class<T> clazz,
String value) |
Member |
getLoggedInMember() |
Collection<Member> |
getMembers() |
Collection<Project> |
getProjects() |
Object |
getPropertyOnCustomType(CustomListValue entity,
String name,
boolean cachable) |
Collection<Team> |
getTeams() |
Collection<TestSuite> |
getTestSuites() |
boolean |
isValidationEnabled() |
void |
setApiClient(ApiClientInternals apiClient) |
void |
setAsset(Object id,
com.versionone.apiclient.Asset asset) |
void |
setValidationEnabled(boolean status) |
void |
validate()
Validate the application path, user name and password used to construct
this instance.
|
public V1Instance(String applicationPath)
applicationPath
- Location of the VersionOne application. Ex:
http://server/versionone/public V1Instance(String applicationPath, String userName, String password)
applicationPath
- Location of the VersionOne application. Ex:
http://server/versionone/userName
- VersionOne member's user name to authenticate
with. If using Integrated Authentication, must be
in "user@domain" format.password
- VersionOne member's password to authenticate
with.public V1Instance(String applicationPath, String userName, String password, ProxySettings proxySettings)
applicationPath
- Location of the VersionOne application. Ex:
http://server/versionone/userName
- VersionOne member's user name to authenticate
with. If using Integrated Authentication, must be
in "user@domain" format.password
- VersionOne member's password to authenticate
with.proxySettings
- Settings for proxy to connect to VersionOne
application.public Map<String,String> getCustomHttpHeaders()
public CookiesManager getCookiesJar()
public void validate() throws AuthenticationException, ApplicationUnavailableException
ApplicationUnavailableException
- The application path is unavailable or
invalid.AuthenticationException
- The supplied user name or password was
invalid.public InstanceConfiguration getConfiguration() throws ApplicationUnavailableException, SDKException
ApplicationUnavailableException
- if any connection problems occurSDKException
- if any problems occur with reading settingspublic boolean isValidationEnabled()
public void setValidationEnabled(boolean status)
status
- Required validator fields statuspublic Member getLoggedInMember()
public Collection<Project> getProjects()
public Collection<Member> getMembers()
public Collection<Team> getTeams()
public Collection<TestSuite> getTestSuites()
public ApiClientInternals getApiClient()
public void setApiClient(ApiClientInternals apiClient)
apiClient
- used by all SDK classes to access to API Client.public com.versionone.apiclient.Asset getAsset(Object id)
id
- asset will be found by.public void setAsset(Object id, com.versionone.apiclient.Asset asset)
public Object getPropertyOnCustomType(CustomListValue entity, String name, boolean cachable) throws SDKException
SDKException
public V1InstanceGetter get()
public V1InstanceCreator create()
Copyright © 2013 Version One, Inc.. All rights reserved.