public class PerforceClient
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PerforceClient.Builder |
| Constructor and Description |
|---|
PerforceClient(com.perforce.p4java.server.IOptionsServer server,
com.perforce.p4java.client.IClient client) |
| Modifier and Type | Method and Description |
|---|---|
void |
closeConnection() |
void |
commitWorkingCopy(int changeListId,
java.lang.String commitMessage) |
void |
createLabel(java.lang.String labelName,
java.lang.String description,
java.lang.String changeListId) |
int |
createNewChangeList()
Creates a new changelist and returns it's id number
|
void |
deleteChangeList(int changeListId) |
void |
deleteLabel(java.lang.String labelName) |
void |
editFile(int changeListId,
java.io.File file) |
int |
getDefaultChangeListId() |
void |
initConnection() |
void |
revertWorkingCopy(int changeListId) |
public PerforceClient(com.perforce.p4java.server.IOptionsServer server,
com.perforce.p4java.client.IClient client)
throws java.lang.Exception
java.lang.Exceptionpublic void initConnection()
throws java.lang.Exception
java.lang.Exceptionpublic int createNewChangeList()
throws java.io.IOException
java.io.IOException - In case of errors communicating with perforce serverpublic void editFile(int changeListId,
java.io.File file)
throws java.io.IOException
java.io.IOExceptionpublic void commitWorkingCopy(int changeListId,
java.lang.String commitMessage)
throws java.io.IOException
java.io.IOExceptionpublic void createLabel(java.lang.String labelName,
java.lang.String description,
java.lang.String changeListId)
throws java.io.IOException
java.io.IOExceptionpublic void deleteLabel(java.lang.String labelName)
throws java.io.IOException
java.io.IOExceptionpublic void revertWorkingCopy(int changeListId)
throws java.io.IOException
java.io.IOExceptionpublic int getDefaultChangeListId()
throws java.io.IOException
java.io.IOExceptionpublic void deleteChangeList(int changeListId)
throws java.io.IOException
java.io.IOExceptionpublic void closeConnection()
throws java.io.IOException
java.io.IOException