public class ConnectionHelper extends Object
Modifier and Type | Field and Description |
---|---|
protected AuthorisationConfig |
authorisationConfig |
protected com.perforce.p4java.server.IOptionsServer |
connection |
protected ConnectionConfig |
connectionConfig |
Constructor and Description |
---|
ConnectionHelper(P4StandardCredentials credential) |
ConnectionHelper(P4StandardCredentials credential,
hudson.model.TaskListener listener) |
ConnectionHelper(String credentialID,
hudson.model.TaskListener listener) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkVersion(int min)
Checks the Perforce server version number and returns true if greater
than or equal to the min version.
|
void |
deleteClient(Workspace workspace) |
void |
disconnect()
Disconnect from the Perforce Server.
|
static P4StandardCredentials |
findCredential(String id)
Finds a Perforce Credential based on the String id.
|
boolean |
isConnected() |
boolean |
isUnicode() |
protected void |
log(String msg) |
boolean |
login() |
void |
logout() |
void |
stop() |
boolean |
validateFileSpecs(List<com.perforce.p4java.core.file.IFileSpec> fileSpecs,
boolean quiet,
String... ignore) |
boolean |
validateFileSpecs(List<com.perforce.p4java.core.file.IFileSpec> fileSpecs,
String... ignore)
Look for a message in the returned FileSpec from operation.
|
protected final ConnectionConfig connectionConfig
protected final AuthorisationConfig authorisationConfig
protected final com.perforce.p4java.server.IOptionsServer connection
public ConnectionHelper(String credentialID, hudson.model.TaskListener listener) throws Exception
Exception
public ConnectionHelper(P4StandardCredentials credential, hudson.model.TaskListener listener) throws Exception
Exception
public ConnectionHelper(P4StandardCredentials credential) throws Exception
Exception
public boolean isConnected()
public boolean isUnicode()
public boolean checkVersion(int min)
min
- public void disconnect() throws Exception
Exception
public boolean validateFileSpecs(List<com.perforce.p4java.core.file.IFileSpec> fileSpecs, String... ignore) throws Exception
fileSpecs
- ignore
- ConverterException
Exception
public boolean validateFileSpecs(List<com.perforce.p4java.core.file.IFileSpec> fileSpecs, boolean quiet, String... ignore) throws Exception
Exception
public static P4StandardCredentials findCredential(String id)
protected void log(String msg)
Copyright © 2004-2014. All Rights Reserved.