| java.lang.Object org.kuali.kfs.service.impl.BatchInputFileSetServiceImpl
BatchInputFileSetServiceImpl | public class BatchInputFileSetServiceImpl implements BatchInputFileSetService(Code) | | Base implementation to manipulate batch input file sets from the batch upload screen
|
Method Summary | |
protected void | assertNoFilesInSetExist(UniversalUser user, BatchInputFileSetType inputType, String fileUserIdentifier) Checks whether files associated with the set are already persisted on the file system or the done file. | protected boolean | canDelete(UniversalUser user, BatchInputFileSetType inputType, String fileUserIdentifier) | public boolean | delete(UniversalUser user, BatchInputFileSetType inputType, String fileUserIdentifier) | public File | download(UniversalUser user, BatchInputFileSetType inputType, String fileType, String fileUserIdentifier) | protected String | generateDoneFileName(UniversalUser user, BatchInputFileSetType inputType, String fileUserIdentifier) | protected String | generateFileName(UniversalUser user, BatchInputFileSetType inputType, String fileUserIdentifier, String fileType) | public boolean | hasBeenProcessed(UniversalUser user, BatchInputFileSetType inputType, String fileUserIdentifier) | public boolean | isBatchInputTypeActive(BatchInputFileSetType batchInputFileSetType) | public boolean | isFileUserIdentifierProperlyFormatted(String fileUserIdentifier) | public boolean | isUserAuthorizedForBatchType(BatchInputFileSetType batchInputFileSetType, UniversalUser user) | public Set<String> | listBatchTypeFileUserIdentifiersForUser(BatchInputFileSetType batchInputFileSetType, UniversalUser user) | public Map<String, String> | save(UniversalUser user, BatchInputFileSetType inputType, String fileUserIdentifer, Map<String, InputStream> typeToStreamMap, boolean suppressDoneFileCreation) |
assertNoFilesInSetExist | protected void assertNoFilesInSetExist(UniversalUser user, BatchInputFileSetType inputType, String fileUserIdentifier) throws FileStorageException(Code) | | Checks whether files associated with the set are already persisted on the file system or the done file. If so, then an
exception is thrown
Parameters: user - the user who uploaded or will upload the file Parameters: inputType - the file set type Parameters: fileUserIdentifier - the file identifier |
generateDoneFileName | protected String generateDoneFileName(UniversalUser user, BatchInputFileSetType inputType, String fileUserIdentifier)(Code) | | Generates the file name of the done file, if supported by the underlying input type
Parameters: user - the user who uploaded or will upload the file Parameters: inputType - the file set type Parameters: fileUserIdentifier - the file identifier Parameters: fileType - the file type the file name, starting with the directory path |
generateFileName | protected String generateFileName(UniversalUser user, BatchInputFileSetType inputType, String fileUserIdentifier, String fileType)(Code) | | Generates the file name of a file (not the done file)
Parameters: user - the user who uploaded or will upload the file Parameters: inputType - the file set type Parameters: fileUserIdentifier - the file identifier Parameters: fileType - the file type the file name, starting with the directory path |
|
|