public class ChangeDelegator extends BaseDelegator implements IChangeDelegator
MAX_LIMIT_SUPPORTED_MIN_VERSION, QUERY_EXPRESSIONS_SUPPORTED_MIN_VERSION, USER_RESTRICTIONS_SUPPORTED_MIN_VERSION| Constructor and Description |
|---|
ChangeDelegator(IOptionsServer server)
Instantiates a new change delegator.
|
| Modifier and Type | Method and Description |
|---|---|
String |
deletePendingChangelist(int id)
Delete a pending Perforce changelist.
|
String |
deletePendingChangelist(int id,
ChangelistOptions opts)
Delete a pending Perforce changelist.
|
IChangelist |
getChangelist(int id)
Get a specific Perforce changelist from a Perforce server.
|
IChangelist |
getChangelist(int id,
ChangelistOptions opts)
Get a specific Perforce changelist from a Perforce server.
|
public ChangeDelegator(IOptionsServer server)
server - the serverpublic IChangelist getChangelist(int id) throws ConnectionException, RequestException, AccessException
IChangeDelegatorCorresponds fairly well to the p4 command-line command "change -o", and (like "change -o") does not include the associated changelist files (if any) in the returned changelist object -- you must use getChangelistFiles (or similar) to properly populate the changelist for submission, for example.
getChangelist in interface IChangeDelegatorid - the Perforce changelist ID; if id is IChangelist.DEFAULT, get
the default changelist for the current client (if available)ConnectionException - the connection exceptionRequestException - the request exceptionAccessException - the access exceptionpublic String deletePendingChangelist(int id) throws ConnectionException, RequestException, AccessException
IChangeDelegatorNote: any IChangelist object associated with the given changelist will no longer be valid after this operation, and using that object may cause undefined results or even global disaster -- you must ensure that the object is not used again improperly.
deletePendingChangelist in interface IChangeDelegatorid - the ID of the Perforce pending changelist to be deleted.ConnectionException - the connection exceptionRequestException - the request exceptionAccessException - the access exceptionpublic String deletePendingChangelist(int id, ChangelistOptions opts) throws P4JavaException
IChangeDelegatorNote: any IChangelist object associated with the given changelist will no longer be valid after this operation, and using that object may cause undefined results or even global disaster -- you must ensure that the object is not used again improperly.
deletePendingChangelist in interface IChangeDelegatorid - the ID of the Perforce pending changelist to be deleted.opts - ChangelistOptions object describing optional parameters; if
null, no options are set.P4JavaException - if any error occurs in the processing of this methodpublic IChangelist getChangelist(int id, ChangelistOptions opts) throws P4JavaException
IChangeDelegatorCorresponds fairly well to the p4 command-line command "change -o", and (like "change -o") does not include the associated changelist files (if any) in the returned changelist object -- you must use getChangelistFiles (or similar) to properly populate the changelist for submission, for example.
getChangelist in interface IChangeDelegatorid - the Perforce changelist ID; if id is IChangelist.DEFAULT, get
the default changelist for the current client (if available)opts - ChangelistOptions object describing optional parameters; if
null, no options are set.P4JavaException - if any error occurs in the processing of this methodCopyright © 2017 Perforce Software. All Rights Reserved.