Class PutFileAction
- java.lang.Object
-
- dk.netarkivet.common.distribute.bitrepository.action.putfile.PutFileAction
-
- All Implemented Interfaces:
ClientAction
public class PutFileAction extends java.lang.Object implements ClientAction
Action class to put files to Bitmag.
-
-
Constructor Summary
Constructors Constructor Description PutFileAction(org.bitrepository.modify.putfile.PutFileClient client, java.lang.String collectionID, java.io.File targetFile, java.lang.String fileID)
Constructor to instantiate the put-file action
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
actionIsSuccess()
void
performAction()
Method to perform the implemented action
-
-
-
Constructor Detail
-
PutFileAction
public PutFileAction(org.bitrepository.modify.putfile.PutFileClient client, java.lang.String collectionID, java.io.File targetFile, java.lang.String fileID)
Constructor to instantiate the put-file action- Parameters:
client
- The client to perform the action oncollectionID
- The ID of a known collection to put the file intargetFile
- The File to put in the bitrepositoryfileID
- ID for the targetFile to have in the bitrepository once it's been uploaded
-
-
Method Detail
-
actionIsSuccess
public boolean actionIsSuccess()
-
performAction
public void performAction()
Description copied from interface:ClientAction
Method to perform the implemented action- Specified by:
performAction
in interfaceClientAction
-
-