Class ClientSystemFileMatchCommands
java.lang.Object
com.perforce.p4java.impl.mapbased.rpc.func.client.ClientSystemFileMatchCommands
Implements the simpler lower-level file commands that typically
correspond to system commands such as chmod, delete, etc.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedClientSystemFileMatchCommands(Properties props, RpcServer server) -
Method Summary
Modifier and TypeMethodDescriptionackMatch(RpcConnection rpcConnection, CommandEnv cmdEnv, Map<String, Object> resultsMap) exactMatch(RpcConnection rpcConnection, CommandEnv cmdEnv, Map<String, Object> resultsMap) static voidgetFiles(File dir, FilenameFilter filter, List<File> files) Recursively get all files in a directory.reconcileAdd(RpcConnection rpcConnection, CommandEnv cmdEnv, Map<String, Object> resultsMap) Reconcile add confirm - scans the directory (local syntax) and returns files in the directory using the full path.reconcileEdit(RpcConnection rpcConnection, CommandEnv cmdEnv, Map<String, Object> resultsMap) "inquire" about file, for 'p4 reconcile'reconcileFlush(RpcConnection rpcConnection, CommandEnv cmdEnv, Map<String, Object> resultsMap) Reconcile flush - remove the skip add files map from the reconcile handler.
-
Field Details
-
TRACE_PREFIX
- See Also:
-
DEFAULT_TMPFILE_PFX
- See Also:
-
DEFAULT_TMPFILE_SFX
- See Also:
-
SYSTEM_TMPDIR_PROPS_KEY
- See Also:
-
SYSTEM_TMPDIR_DEFAULT
- See Also:
-
PERMS_RW
- See Also:
-
RECONCILE_HANDLE
- See Also:
-
-
Constructor Details
-
ClientSystemFileMatchCommands
-
-
Method Details
-
ackMatch
protected RpcPacketDispatcher.RpcPacketDispatcherResult ackMatch(RpcConnection rpcConnection, CommandEnv cmdEnv, Map<String, Object> resultsMap) throws ConnectionException- Throws:
ConnectionException
-
exactMatch
protected RpcPacketDispatcher.RpcPacketDispatcherResult exactMatch(RpcConnection rpcConnection, CommandEnv cmdEnv, Map<String, Object> resultsMap) throws ConnectionException- Throws:
ConnectionException
-
reconcileEdit
protected RpcPacketDispatcher.RpcPacketDispatcherResult reconcileEdit(RpcConnection rpcConnection, CommandEnv cmdEnv, Map<String, Object> resultsMap) throws ConnectionException"inquire" about file, for 'p4 reconcile'This routine performs clientCheckFile's scenario 1 checking, but also saves the list of files that are in the depot so they can be compared to the list of files on the client when reconciling later for add.
- Parameters:
rpcConnection- rpcConnectioncmdEnv- cmdEnvresultsMap- resultsMap- Returns:
- RpcPacketDispatcherResult
- Throws:
ConnectionException- on error
-
reconcileAdd
protected RpcPacketDispatcher.RpcPacketDispatcherResult reconcileAdd(RpcConnection rpcConnection, CommandEnv cmdEnv, Map<String, Object> resultsMap) throws ConnectionExceptionReconcile add confirm - scans the directory (local syntax) and returns files in the directory using the full path. This supports traversing sub-directories.- Parameters:
rpcConnection- rpcConnectioncmdEnv- cmdEnvresultsMap- resultsMap- Returns:
- RpcPacketDispatcherResult
- Throws:
ConnectionException- on error
-
reconcileFlush
protected RpcPacketDispatcher.RpcPacketDispatcherResult reconcileFlush(RpcConnection rpcConnection, CommandEnv cmdEnv, Map<String, Object> resultsMap) throws ConnectionExceptionReconcile flush - remove the skip add files map from the reconcile handler.- Parameters:
rpcConnection- rpcConnectioncmdEnv- cmdEnvresultsMap- resultsMap- Returns:
- RpcPacketDispatcherResult
- Throws:
ConnectionException- on error
-
getFiles
Recursively get all files in a directory.Note: must pass in a non-null 'files' list as a parameter.
- Parameters:
dir- dirfilter- filterfiles- files
-