Saros
Distributed Collaborative Editing and Distributed Party Programming
|
Public Member Functions | |
RecoveryFileActivity (User source, User target, Type type, SPath newPath, SPath oldPath, byte[] data, String encoding) | |
boolean | isValid () |
User | getTarget () |
String | toString () |
Static Public Member Functions | |
static RecoveryFileActivity | created (User source, SPath path, byte[] content, User target, String encoding) |
static RecoveryFileActivity | removed (User source, SPath path, User target, String encoding) |
Subclass of FileActivity that is used during the Recovery-Process and allows the specification of targets. This Activity will be sent from the host to the client that requested the recovery.
TODO This class should be removed once the ITargetedActivities are gone since it is only intended as a separation between FileActivities that are sent to a singleUser and those are sent to every User
de.fu_berlin.inf.dpp.activities.RecoveryFileActivity.RecoveryFileActivity | ( | User | source, |
User | target, | ||
Type | type, | ||
SPath | newPath, | ||
SPath | oldPath, | ||
byte[] | data, | ||
String | encoding | ||
) |
static RecoveryFileActivity de.fu_berlin.inf.dpp.activities.RecoveryFileActivity.created | ( | User | source, |
SPath | path, | ||
byte[] | content, | ||
User | target, | ||
String | encoding | ||
) | [static] |
Utility method for creating a RecoveryFileActivity of type FileActivity.Type#CREATED for a given path.
This method will call the created()-method of the FileActivity. This Method is used if the host has the file to be recovered.
source | The User that has created this Activity. |
path | The SPath of the affected resource. |
content | content of the file denoted by the path |
target | The User this Activity will be send to. |
User de.fu_berlin.inf.dpp.activities.RecoveryFileActivity.getTarget | ( | ) |
Implements de.fu_berlin.inf.dpp.activities.ITargetedActivity.
boolean de.fu_berlin.inf.dpp.activities.RecoveryFileActivity.isValid | ( | ) |
Reimplemented from de.fu_berlin.inf.dpp.activities.FileActivity.
static RecoveryFileActivity de.fu_berlin.inf.dpp.activities.RecoveryFileActivity.removed | ( | User | source, |
SPath | path, | ||
User | target, | ||
String | encoding | ||
) | [static] |
Utility method for creating a RecoveryFileActivity of type FileActivity.Type#REMOVED for a given path.
This method will call the removed()-method of the FileActivity. This Method is used if the file to be recovered doesn't exist on the host.
source | The User that has created this Activity. |
path | The SPath of the affected resource. |
target | The User this Activity will be send to. |
encoding | the encoding the content is encoded with or null |
String de.fu_berlin.inf.dpp.activities.RecoveryFileActivity.toString | ( | ) |
Reimplemented from de.fu_berlin.inf.dpp.activities.FileActivity.