@Security public class ImportServiceSecurity extends CRUDServiceSecurity<ImportedFileDTO,ImportedFile,ImportedFileData,ImportType> implements ImportService
ImportServiceentityClass| Constructor and Description |
|---|
ImportServiceSecurity() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
abort(java.lang.Long importedFileId)
Attempts to trigger the abort process of the given import.
|
protected void |
checkCreateNew(ImportType params)
Checks whether creating new entities with the given context parameters is allowed, throwing
PermissionDeniedException if not |
protected boolean |
doHasManageAccess(ImportedFile entity)
Should be implemented in order to return whether the caller is allowed to manage the given entity, for the given
operation
|
boolean |
doHasViewAccess(ImportedFile entity)
Should be implemented in order to return whether the caller is allowed to view the given entity.
|
protected ImportServiceLocal |
getImplementation()
Should be implemented in order to return the actual implementation of the service
|
ImportedLineData |
getImportedLineData(java.lang.Long importedLineId)
Returns the imported line data
|
ImportProgressVO |
getImportProgress(long importedFileId)
Returns a double between 0 and 1 indicating the progress of the given import.
|
ImportedFileSearchData |
getSearchData(ImportedFileQuery params)
Returns information to perform searches over imports.
|
boolean |
isAccessible(SessionData sessionData,
ImportedFile entity)
Must be implemented in order to determine whether the given entity is accessible for the given session data.
|
void |
markAsSkipped(java.lang.Long importedFileId,
java.util.List<java.lang.Long> lineIds,
boolean skipped)
Sets if the lines should be skipped by the import process or not based on the skipped parameter.
|
protected void |
onBeforeSave(ImportedFileDTO dto,
ImportedFile entity) |
void |
process(java.lang.Long importedFileId)
Starts an import
|
void |
saveDescription(java.lang.Long importedFileId,
java.lang.String descrption)
Saves the description for the specified imported file id.
|
void |
saveImportedLine(ImportedLineDTO importedLineDTO)
Saves the values of the imported line
|
Page<ImportedFileVO> |
search(ImportedFileQuery params)
Returns the imports that satisfy the query restrictions.
|
Page<ImportedLineVO> |
searchImportedLines(ImportedLineQuery params)
Returns the imported lines that matches the query restrictions.
|
java.lang.Long |
upload(ImportedFileDTO dto,
SerializableInputStream input)
Uploads a file to be imported
|
canPerformOperation, canViewHistoryLog, checkManageAccess, checkOperation, checkViewAccess, customizeData, find, getConfirmationPasswordInputForRemove, getData, getDataForNew, getEntityClass, hasManageAccess, hasViewAccess, load, remove, removeAll, removeAllWithConfirmationPassword, removeWithConfirmationPassword, resolveEntityCheck, save, saveWithConfirmationPasswordcheckGuest, checkId, checkIds, checkInternalName, checkLoggedIn, checkManagesUser, checkRelatesToUser, checkVO, checkVOs, doInitialize, getEntityCheckRegistry, getUser, initializecanManage, checkManagesUser, checkPermission, checkRelatesToUser, checkValue, clearAlreadyValidated, getAccountHandler, getAuthHandler, getBaseEntityManagerHandler, getChannelConfiguration, getConfiguration, getConversionHandler, getCustomFieldValueHandler, getEntityManagerHandler, getGroupsHandler, getLoggedBasicUser, getLoggedUser, getProducts, getProductsHandler, getReportHandler, getTranslatedName, getTranslatedValue, getUserLocatorHandler, getValidationResult, hasPermission, hasValue, inSameNetwork, inSameNetworkOrGlobal, isAdmin, isAlreadyValidated, isBroker, isGlobalAdmin, isGlobalAdminInNetwork, isGuest, isLoggedIn, isMember, isNetworkAdmin, isOperator, isRelatedToUser, isSystem, isUserManager, isUserManagerOf, message, message, permission, permission, permissionOptionalValue, permissionOptionalValue, toDate, toDateTime, validatedelete, detach, find, flush, from, getApplicationContext, getConfigurationHandler, getDataTranslationHandler, getFormatter, getFormatter, getFormatter, getLogger, getNotificationHandler, getProfileFieldHandler, getRemoteAddress, getSessionData, getTransactionHandler, getTranslationHandler, message, message, persist, processBatch, refresh, remove, subQuery, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetData, getDataForNew, load, remove, removeAll, savepublic boolean abort(java.lang.Long importedFileId)
throws FrameworkException
ImportServiceabort in interface ImportServiceFrameworkExceptionpublic boolean doHasViewAccess(ImportedFile entity)
CRUDServiceSecuritydoHasViewAccess in class CRUDServiceSecurity<ImportedFileDTO,ImportedFile,ImportedFileData,ImportType>public ImportedLineData getImportedLineData(java.lang.Long importedLineId)
ImportServicegetImportedLineData in interface ImportServicepublic ImportProgressVO getImportProgress(long importedFileId) throws FrameworkException
ImportServicegetImportProgress in interface ImportServiceFrameworkExceptionpublic ImportedFileSearchData getSearchData(ImportedFileQuery params) throws FrameworkException
ImportServicegetSearchData in interface ImportServiceFrameworkExceptionpublic boolean isAccessible(SessionData sessionData, ImportedFile entity)
CRUDServiceSecurityCRUDServiceSecurity.hasViewAccess(BaseEntity). If the only condition for an entity is
CRUDServiceSecurity.hasViewAccess(BaseEntity), this method
should return false.isAccessible in class CRUDServiceSecurity<ImportedFileDTO,ImportedFile,ImportedFileData,ImportType>public void markAsSkipped(java.lang.Long importedFileId,
java.util.List<java.lang.Long> lineIds,
boolean skipped)
throws FrameworkException
ImportServicemarkAsSkipped in interface ImportServiceFrameworkExceptionpublic void process(java.lang.Long importedFileId)
ImportServiceprocess in interface ImportServicepublic void saveDescription(java.lang.Long importedFileId,
java.lang.String descrption)
ImportServicesaveDescription in interface ImportServicepublic void saveImportedLine(ImportedLineDTO importedLineDTO)
ImportServicesaveImportedLine in interface ImportServicepublic Page<ImportedFileVO> search(ImportedFileQuery params) throws FrameworkException
ImportServicesearch in interface ImportServiceFrameworkExceptionpublic Page<ImportedLineVO> searchImportedLines(ImportedLineQuery params)
ImportServicesearchImportedLines in interface ImportServicepublic java.lang.Long upload(ImportedFileDTO dto, SerializableInputStream input) throws FrameworkException
ImportServiceupload in interface ImportServiceFrameworkExceptionprotected void checkCreateNew(ImportType params)
CRUDServiceSecurityPermissionDeniedException if notcheckCreateNew in class CRUDServiceSecurity<ImportedFileDTO,ImportedFile,ImportedFileData,ImportType>protected boolean doHasManageAccess(ImportedFile entity)
CRUDServiceSecuritydoHasManageAccess in class CRUDServiceSecurity<ImportedFileDTO,ImportedFile,ImportedFileData,ImportType>protected ImportServiceLocal getImplementation()
CRUDServiceSecuritygetImplementation in class CRUDServiceSecurity<ImportedFileDTO,ImportedFile,ImportedFileData,ImportType>protected void onBeforeSave(ImportedFileDTO dto, ImportedFile entity)
onBeforeSave in class CRUDServiceSecurity<ImportedFileDTO,ImportedFile,ImportedFileData,ImportType>