Package com.avoka.fc.core.service
Class ImportActionService
- java.lang.Object
-
- com.avoka.fc.core.service.BaseService
-
- com.avoka.fc.core.service.CayenneService
-
- com.avoka.fc.core.service.ImportActionService
-
public class ImportActionService extends CayenneService
Provides a service for import action objects.
-
-
Constructor Summary
Constructors Constructor Description ImportActionService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImportAction
createImportActionAndData(String importType, String archiveName, byte[] archiveData, String creatorLoginName)
Create an import action along with an import action data object.-
Methods inherited from class com.avoka.fc.core.service.CayenneService
commitChanges, deleteObject, deleteObjects, findObject, getDataContext, getDataDomain, getObjectForPK, getObjectStore, newObject, performNamedQuery, performNamedQuery, performNamedQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performQuery, performQuery, refetchEntity, refetchObject, registerNewObject, rollbackChanges, toMap, toMap
-
Methods inherited from class com.avoka.fc.core.service.BaseService
getLogger
-
-
-
-
Method Detail
-
createImportActionAndData
public ImportAction createImportActionAndData(String importType, String archiveName, byte[] archiveData, String creatorLoginName)
Create an import action along with an import action data object. This method performs a database commit.- Parameters:
importType
- one ofImportAction.IMPORT_TYPES
archiveName
- the name of the import archivearchiveData
- the import archive file datacreatorLoginName
- the user name of the user importing the archive. If not set, will be obtained viaRemoteUserProvider.getRemoteUser()
. If this fails, an exception is thrown.- Returns:
- an
ImportAction
complete with itsImportActionData
, a status ofImportAction.IMPORT_STATUS_READY
and the client set to the client associated with the current user (if any)
-
-