com.izforge.izpack.util.os
Interface WinSetupQueueCallbackInterface

All Known Implementing Classes:
WinSetupDefaultCallbackHandler

public interface WinSetupQueueCallbackInterface


Field Summary
static int FILEOP_ABORT
          Callback return code to abort the current file queue commit
static int FILEOP_DOIT
          Callback return code to continue with the current operation, same as FILEOP_RETRY
static int FILEOP_NEWPATH
          Callback return code to addionally return a new source path to the current operation (media needed or blocked source file)
static int FILEOP_RETRY
          Callback return code to retry the current operation, same as FILEOP_DOIT
static int FILEOP_SKIP
          Callback return code to skip the current operation
 
Method Summary
 int handleCopyError(String source, String target, int errCode, String errMsg)
          Handles a copy error notification occuring during a file queue commit.
 int handleDeleteError(String target, int errCode, String errMsg)
          Handles a delete error notification occuring during a file queue commit.
 int handleNeedMedia(String tagfile, String description, String sourcePath, String sourceFile)
          Handles a need media notification occuring during a file queue commit.
 int handleRenameError(String source, String target, int errCode, String errMsg)
          Handles a rename error notification occuring during a file queue commit.
 

Field Detail

FILEOP_ABORT

static final int FILEOP_ABORT
Callback return code to abort the current file queue commit

See Also:
Constant Field Values

FILEOP_DOIT

static final int FILEOP_DOIT
Callback return code to continue with the current operation, same as FILEOP_RETRY

See Also:
Constant Field Values

FILEOP_SKIP

static final int FILEOP_SKIP
Callback return code to skip the current operation

See Also:
Constant Field Values

FILEOP_RETRY

static final int FILEOP_RETRY
Callback return code to retry the current operation, same as FILEOP_DOIT

See Also:
Constant Field Values

FILEOP_NEWPATH

static final int FILEOP_NEWPATH
Callback return code to addionally return a new source path to the current operation (media needed or blocked source file)

See Also:
Constant Field Values
Method Detail

handleNeedMedia

int handleNeedMedia(String tagfile,
                    String description,
                    String sourcePath,
                    String sourceFile)
Handles a need media notification occuring during a file queue commit. In that case, a common problem with a source file happened (blocked or does not exist).

Parameters:
tagfile -
description -
sourcePath -
sourceFile -
Returns:
One of the allowed callback return codes

handleCopyError

int handleCopyError(String source,
                    String target,
                    int errCode,
                    String errMsg)
Handles a copy error notification occuring during a file queue commit.

Parameters:
source - Source file
target - Target file
Returns:
One of the allowed callback return codes

handleDeleteError

int handleDeleteError(String target,
                      int errCode,
                      String errMsg)
Handles a delete error notification occuring during a file queue commit.

Parameters:
target - Target file
Returns:
One of the allowed callback return codes

handleRenameError

int handleRenameError(String source,
                      String target,
                      int errCode,
                      String errMsg)
Handles a rename error notification occuring during a file queue commit.

Parameters:
source - Source file
target - Target file
Returns:
One of the allowed callback return codes


Copyright © 2018. All rights reserved.