Class BTDirectoryInsert
java.lang.Object
overit.geocall.bl.BusinessTask<DirectoryInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<DirectoryInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<DirectoryInsertEvent>
overit.geocallapp.docshare.documents.bl.sharedresource.task.BTSharedResourceInsert<DirectoryInsertEvent>
overit.geocallapp.docshare.documents.bl.sharedresource.directory.task.BTDirectoryInsert
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(DirectoryInsertEvent.class)
public class BTDirectoryInsert
extends BTSharedResourceInsert<DirectoryInsertEvent>
Business task in order to insert a
When the
BODirectory. When the
DirectoryInsertEvent is launched
the BT notices the call and inserts the BODirectory basing on the event's input. Error Code:
- 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 voidcompleteData(BOSharedResource sharedResource, PoolKit poolKit) Completes the data of the given shared resource before the insertion.protected voidexecute(DirectoryInsertEvent event, PoolKit poolKit) Inserts the givenBODirectoryand writes the newly generated id into the event journal.protected BODirectoryinsertRoot(PoolKit poolKit) Inserts the root directory.booleanDetermines whether the current state is valid for execution.protected BODirectoryLoads the root directory.protected voidnotifyInsert(BODirectory directory, PoolKit poolKit) Notifies the insert of the directory by calling theDirectoryNotificationEvent.protected voidvalidate(BOSharedResource directory, PoolKit poolKit) Validates the given shared resource.Methods inherited from class overit.geocallapp.docshare.documents.bl.sharedresource.task.BTSharedResourceInsert
loadParentMethods 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
-
BTDirectoryInsert
public BTDirectoryInsert()
-
-
Method Details
-
loadRoot
Loads the root directory.- Parameters:
poolKit- thePoolKit- Returns:
- the root directory
- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
insertRoot
Inserts the root directory.- Parameters:
poolKit- thePoolKit- Returns:
- the created root directory
- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
isValidExecution
public boolean isValidExecution()Description copied from interface:ValidExecutionDetermines whether the current state is valid for execution.- Specified by:
isValidExecutionin interfaceValidExecution- Overrides:
isValidExecutionin classBTSharedResourceInsert<DirectoryInsertEvent>- Returns:
- true if execution is valid, false otherwise