|
OpenAPI 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AQPerforce
An interface to Perforce revision control system.
Method Summary | |
---|---|
void |
add(Object files)
Open one or more Perforce client workspace files for adding to the Perforce server. |
void |
close()
Disconnects the object from Perforce server. |
void |
connect(String url,
String client,
String folder,
Object username,
Object password)
Establishes connection to the perforce server. |
void |
connect(String url,
String client,
String folder,
Object username,
Object password,
String charset)
Establishes connection to the perforce server. |
List<IFileSpec> |
deleteFiles(Object files,
int changeListId,
boolean noUpdate)
Open a Perforce client workspace file(s) for deletion from a Perforce depot. |
void |
edit(Object files)
Open one or more Perforce client workspace files for editing. |
IClient |
getClient(String name)
Get an IClient object for a specific named Perforce client. |
List<IClientSummary> |
getClients(String userName,
String queryString,
int maxResults)
Get a list of IClientSummary objects for all Perforce clients known to this Perforce server. |
List<IFileSpec> |
getDepotFiles(Object files,
boolean allRevs)
List all Perforce depot files known to the Perforce server that conform to the passed-in wild-card file specification(s). |
List<IDepot> |
getDepots()
Get a list of all Perforce depots known to this Perforce server. |
List<IFileSpec> |
getDiffFiles(Object files,
boolean diffNonTextFiles,
boolean openedDifferentMissing,
boolean openedForIntegrate,
boolean unopenedMissing,
boolean unopenedDifferent,
boolean unopenedWithStatus,
boolean openedSame)
Return a list of files that differ in some (arbitrarily complex) way from depot. |
String[] |
getDirectories(Object files,
boolean clientOnly,
boolean deletedOnly,
boolean haveListOnly)
List any directories matching the passed-in file specifications. |
AQRevision[] |
getHistory(String filename)
Returns the file's complete revision history. |
AQRevision[] |
getHistory(String filename,
int count)
Returns the file's revision history. |
AQRevision |
getRevision(String filename)
Returns the file revision. |
byte[] |
getRevisionContents(String filename,
String revision)
Returns the binary contents of the specified revision. |
IServerInfo |
getServerInfo()
Returns a snapshot set of data on the Perforce server associated with this server interface. |
IUser |
getUser(String name)
Get the user details of a specific Perforce user from the Perforce server. |
IUserGroup |
getUserGroup(String name)
Get the named Perforce user group. |
List<IUserGroup> |
getUserGroups(String userOrGroupName,
boolean indirect,
boolean displayValues)
Get a list of Perforce user groups from the server. |
List<IUserSummary> |
getUsers()
Get a list of Perforce users known to this Perforce server. |
List<IFileSpec> |
haveList(Object files)
Return a list of all Perforce-managed files and versions that the Perforce server believes this Perforce client workspace has as of the latest sync. |
List<IFileSpec> |
lockFiles(Object files,
int changeListId)
Lock an opened file against changelist submission. |
List<IFileSpec> |
moveFile(int changelistId,
boolean listOnly,
boolean noClientMove,
String fileType,
String fromFile,
String toFile)
Move a file already opened for edit or add (the fromFile) to the destination file (the toFile). |
void |
revert(Object files)
Revert an open Perforce client workspace file back to the revision previously synced from the Perforce depot, discarding any pending changelists or integrations that have been made so far. |
void |
setVerbose(boolean verbose)
Sets the amount of diagnostic messages sent to the debugger console. |
void |
submit(Object files,
String comment)
This method submits changes in the specified file(s) or folder(s) to the Perforce revision control system. |
void |
sync(Object files)
This method syncs the local filesystem with the latest Perforce revision. |
List<IFileSpec> |
unlockFiles(Object files,
int changeListId,
boolean force)
Release locked files but leave them open. |
Method Detail |
---|
void setVerbose(boolean verbose)
verbose
- (Default value - true).void connect(String url, String client, String folder, Object username, Object password) throws Exception
url
- Server URL string.client
- Perforce workspace client name.folder
- Filesystem folder under Perforce revision control.username
- A String
or a AQOpaqueObject
containing the user name.password
- A String
password or a AQOpaqueObject
containing the password.
Exception
void connect(String url, String client, String folder, Object username, Object password, String charset) throws Exception
url
- Server URL string.client
- Perforce workspace client name.folder
- Filesystem folder under Perforce revision control.username
- A String
or a AQOpaqueObject
containing the user name.password
- A String
password or a AQOpaqueObject
containing the password.charset
- A String
or a AQOpaqueObject
containing the charset.
Exception
void close() throws IOException
close
in interface Closeable
IOException
void submit(Object files, String comment) throws Exception
files
- A file name, or a javascript array of file names.comment
-
Exception
void sync(Object files) throws Exception
files
- A file name, or a javascript array of file names.
Exception
void edit(Object files) throws Exception
files
- A file name, or a javascript array of file names.
Exception
void add(Object files) throws Exception
files
- A file name, or a javascript array of file names.
Exception
void revert(Object files) throws Exception
files
- A file name, or a javascript array of file names.
Exception
AQRevision getRevision(String filename) throws Exception
filename
- Workspace file name.
Exception
AQRevision[] getHistory(String filename) throws Exception
filename
- Workspace file name.
Exception
AQRevision[] getHistory(String filename, int count) throws Exception
filename
- Workspace file name.count
- Maximum number of revisions to return.
Exception
byte[] getRevisionContents(String filename, String revision) throws Exception
filename
- Workspace file name.revision
- Revision number or "head" for head revision or "have" for have revision.
Exception
List<IFileSpec> deleteFiles(Object files, int changeListId, boolean noUpdate) throws Exception
files
- A file name, or a javascript array of file names.changeListId
- If positive, the opened files are put into the pending changelist identified by changeListId; this changelist must have been
previously created. If zero or negative, the file is opened in the 'default' (unnumbered) changelist.noUpdate
- If true, don't actually do the open, just return the files that would have been opened for deletion.
IFileSpec
objects representing the opened files.
Not all fields in these specs will be valid or set.
Exception
List<IFileSpec> moveFile(int changelistId, boolean listOnly, boolean noClientMove, String fileType, String fromFile, String toFile) throws Exception
changelistId
- If not IChangelist.UNKNOWN, the files are opened in the numbered pending changelist instead of the 'default' changelist.listOnly
- If true, don't actually perform the move, just return what would happen if the move was performed.noClientMove
- If true, bypasses the client file rename. This option can be used to tell the server that the user has already renamed a file on
the client. The use of this option can confuse the server if you are wrong about the client's contents. Only works for 2009.2 and
later servers; earlier servers will produce a RequestException if you set this true.fileType
- If not null, the file is reopened as that filetype.fromFile
- The original file; must be already open for edit.toFile
- The target file.
Exception
List<IFileSpec> lockFiles(Object files, int changeListId) throws Exception
files
- A file name, or a javascript array of file names.changeListId
- If IChangelist.DEFAULT or larger than zero, lock all files associated this changelist ID.
Exception
List<IFileSpec> unlockFiles(Object files, int changeListId, boolean force) throws Exception
files
- A file name, or a javascript array of file names.changeListId
- If IChangelist.DEFAULT or larger than zero, lock all files associated this changelist ID.force
- Force the lock on non-owned filespecs. Requires appropriate permissions.
Exception
List<IClientSummary> getClients(String userName, String queryString, int maxResults) throws Exception
userName
- If not null, restrict listings to clients owned by the user 'userName'.queryString
- If not null, limits output to clients whose name matches the query pattern passed-in.
Note this option does not work for earlier Perforce servers.maxResults
- If > 0, restrict output to the first maxResults results.
IClientSummary
objects for Perforce clients known to this Perforce server.
Exception
IClient getClient(String name) throws Exception
IClient
object for a specific named Perforce client.
name
- A non-null Perforce client name.
IClient
representing the specified Perforce client, or null if no such client.
Exception
List<IUserSummary> getUsers() throws Exception
IUserSummary
objects representing the underlying Perforce users (if any).
Exception
IUser getUser(String name) throws Exception
name
- If null, get the current user details, otherwise use the passed-in user name.
IUser
details for the user, or null if no such user is known.
Exception
List<IDepot> getDepots() throws Exception
IDepot
objects representing the underlying Perforce depots.
Exception
List<IFileSpec> getDiffFiles(Object files, boolean diffNonTextFiles, boolean openedDifferentMissing, boolean openedForIntegrate, boolean unopenedMissing, boolean unopenedDifferent, boolean unopenedWithStatus, boolean openedSame) throws Exception
files
- A file name, or a javascript array of file names.diffNonTextFiles
- Include non-text files in the diff lists.openedDifferentMissing
- Corresponds to the "-sa" option for the p4 command line.openedForIntegrate
- Corresponds to the "-sb" option for the p4 command line.unopenedMissing
- Corresponds to the "-sd" option for the p4 command line.unopenedDifferent
- Corresponds to the "-se" option for the p4 command line.unopenedWithStatus
- Corresponds to the "-sl" option for the p4 command line.openedSame
- Corresponds to the "-sr" option for the p4 command line.
Exception
String[] getDirectories(Object files, boolean clientOnly, boolean deletedOnly, boolean haveListOnly) throws Exception
files
- A file name, or a javascript array of file names.clientOnly
- If true, limit the returns to directories that are mapped in the current Perforce client workspace.deletedOnly
- If true, includes directories with only deleted files.haveListOnly
- If true, lists directories of files on the 'have' list.
Exception
List<IFileSpec> getDepotFiles(Object files, boolean allRevs) throws Exception
files
- A file name, or a javascript array of file names.allRevs
- If true, list all revisions of qualifying files.
Exception
IUserGroup getUserGroup(String name) throws Exception
name
- Non-null group name.
IUserGroup
representing the named user group if it exists on the server;
null otherwise (but see note in main comments above which make no sense, frankly).
Exception
List<IUserGroup> getUserGroups(String userOrGroupName, boolean indirect, boolean displayValues) throws Exception
userOrGroupName
- If non-null, restrict the list to the specified group or username.indirect
- If true, also displays groups that the specified user or group belongs to indirectly via subgroups.displayValues
- If true, display the MaxResults, MaxScanRows, MaxLockTime, and Timeout values for the named group.
Exception
List<IFileSpec> haveList(Object files) throws Exception
files
- A file name, or a javascript array of file names.
Exception
IServerInfo getServerInfo() throws Exception
Exception
|
OpenAPI 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |