Class BTFileActivate
java.lang.Object
overit.geocall.bl.BusinessTask<FileActivateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<FileActivateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<FileActivateEvent>
overit.geocallapp.docshare.documents.bl.sharedresource.file.task.BTFileActivate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(FileActivateEvent.class)
public class BTFileActivate
extends ValidPermissionBusinessTask<FileActivateEvent>
Business task that manages file version activation.
When a
When a
FileActivateEvent is launched, this task:
- Activates the specified
BOFileversion - Deactivates all other versions of the same file
- Since:
- 14.0
- See Also:
- GCApi:
- task
-
Field Summary
Fields inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(FileActivateEvent event, PoolKit poolKit) Activates the givenBOFileversion and deactivates all the other related versions.booleanDetermines whether the current state is valid for execution.loadOtherVersions(BOFile file, PoolKit poolKit) Loads all the other versions of the givenBOFile, not including the given one.protected voidupdateFile(BOFile file, PoolKit poolKit) Updates the givenBOFile.Methods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
checkValidExecution, getException, throwExceptionIfInvalidMethods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask
body, getEventMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTFileActivate
public BTFileActivate()
-
-
Method Details
-
isValidExecution
public boolean isValidExecution()Description copied from interface:ValidExecutionDetermines whether the current state is valid for execution.- Returns:
- true if execution is valid, false otherwise