public class SessionHelper extends CredentialsHelper
Constructor and Description |
---|
SessionHelper(P4BaseCredentials credential,
hudson.model.TaskListener listener) |
SessionHelper(String credentialID,
hudson.model.TaskListener listener) |
Modifier and Type | Method and Description |
---|---|
void |
abort() |
boolean |
checkVersion(int min)
Checks the Perforce server version number and returns true if greater
than or equal to the min version.
|
protected void |
disconnect()
Disconnect from the Perforce Server.
|
com.perforce.p4java.server.IOptionsServer |
getConnection() |
PerforceScm.DescriptorImpl |
getP4SCM() |
String |
getTicket() |
String |
getTrust() |
Validate |
getValidate() |
boolean |
hasAborted() |
void |
invalidateSession() |
static void |
invalidateSession(String user)
Remove all entries for a specific user.
|
boolean |
isConnected() |
boolean |
isUnicode() |
boolean |
login() |
void |
logout() |
findCredential, findCredential, findCredential, findCredential, getAuthorisationConfig, getCredential, getListener, getPort, getRetry, getTick, getUser, log
public SessionHelper(P4BaseCredentials credential, hudson.model.TaskListener listener) throws IOException
IOException
public SessionHelper(String credentialID, hudson.model.TaskListener listener) throws IOException
IOException
public void invalidateSession()
public static void invalidateSession(String user)
user
- p4userpublic com.perforce.p4java.server.IOptionsServer getConnection()
public Validate getValidate()
public String getTicket()
public boolean isConnected()
public boolean isUnicode() throws com.perforce.p4java.exception.ConnectionException, com.perforce.p4java.exception.AccessException, com.perforce.p4java.exception.RequestException
com.perforce.p4java.exception.ConnectionException
com.perforce.p4java.exception.AccessException
com.perforce.p4java.exception.RequestException
public boolean checkVersion(int min)
min
- Minimum server versionprotected void disconnect()
public boolean hasAborted()
public void abort()
public PerforceScm.DescriptorImpl getP4SCM()
Copyright © 2016–2022. All rights reserved.