Java Doc for BatchInputFileSetService.java in  » ERP-CRM-Financial » Kuali-Financial-System » org » kuali » kfs » service » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ERP CRM Financial » Kuali Financial System » org.kuali.kfs.service 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.kuali.kfs.service.BatchInputFileSetService

All known Subclasses:   org.kuali.kfs.service.impl.BatchInputFileSetServiceImpl,
BatchInputFileSetService
public interface BatchInputFileSetService (Code)
This interface defines the methods needed to save/download/delete file sets in the batch upload system




Method Summary
public  booleandelete(UniversalUser user, BatchInputFileSetType inputType, String fileUserIdentifier)
     Deletes a batch input file contained on the server if the user has permissions for the files batch input type.
public  Filedownload(UniversalUser user, BatchInputFileSetType inputType, String fileType, String fileUserIdentifier)
     Returns the contents of a batch input file contained on the server if the user has permissions for the files batch input type.
Parameters:
  user - - user who is requesting the download
Parameters:
  inputType - - instance of a BatchInputFileSetType
Parameters:
  fileType - - the type of the file to retrieve
Parameters:
  fileUserIdentifier - file identifier specified by user File - File representation of the batch input, or null if errors occured.
public  booleanhasBeenProcessed(UniversalUser user, BatchInputFileSetType inputType, String fileUserIdentifier)
    
public  booleanisBatchInputTypeActive(BatchInputFileSetType batchInputFileSetType)
     Checks if the batch input type is active (can be used for upload).
public  booleanisFileUserIdentifierProperlyFormatted(String fileUserIdentifier)
     Returns whether a file set identifier is properly formatted.
public  booleanisUserAuthorizedForBatchType(BatchInputFileSetType batchInputFileSetType, UniversalUser user)
     Checks if the user has permissions to manage the batch input type.
public  Set<String>listBatchTypeFileUserIdentifiersForUser(BatchInputFileSetType batchInputFileSetType, UniversalUser user)
     Returns a list of batch type file names (including path) that the given user has permissions to manage.
public  Map<String, String>save(UniversalUser user, BatchInputFileSetType inputType, String fileUserIdentifer, Map<String, InputStream> typeToStreamMap, boolean suppressDoneFileCreation)
    



Method Detail
delete
public boolean delete(UniversalUser user, BatchInputFileSetType inputType, String fileUserIdentifier) throws AuthorizationException, FileNotFoundException(Code)
Deletes a batch input file contained on the server if the user has permissions for the files batch input type. Also deletes the associated .done file if one exists. If the file set may not be deleted, then the GlobalVariable's error map will be populated with the reason why.
Parameters:
  user - - user who is requesting the delete
Parameters:
  inputType - - instance of a BatchInputFileSetType
Parameters:
  fileUserIdentifier - file identifier specified by user whether the file was successfully downloaded
throws:
  AuthorizationException - - if user does not have permission to delete batch files of this type FileNotFoundException -if given file does not exist on the file system



download
public File download(UniversalUser user, BatchInputFileSetType inputType, String fileType, String fileUserIdentifier) throws AuthorizationException, FileNotFoundException(Code)
Returns the contents of a batch input file contained on the server if the user has permissions for the files batch input type.
Parameters:
  user - - user who is requesting the download
Parameters:
  inputType - - instance of a BatchInputFileSetType
Parameters:
  fileType - - the type of the file to retrieve
Parameters:
  fileUserIdentifier - file identifier specified by user File - File representation of the batch input, or null if errors occured. Check GlobalVariables.errorMap for errormessages.
throws:
  AuthorizationException - - if user does not have permission to view batch files of this type FileNotFoundException - ifgiven file does not exist on the file system



hasBeenProcessed
public boolean hasBeenProcessed(UniversalUser user, BatchInputFileSetType inputType, String fileUserIdentifier)(Code)
Returns whether a file set for a given user has already been processed
Parameters:
  user -
Parameters:
  inputType -
Parameters:
  fileUserIdentifier -



isBatchInputTypeActive
public boolean isBatchInputTypeActive(BatchInputFileSetType batchInputFileSetType)(Code)
Checks if the batch input type is active (can be used for upload).
Parameters:
  BatchInputFileSetType - - input type to check is active boolean - true if type is active, false if not active



isFileUserIdentifierProperlyFormatted
public boolean isFileUserIdentifierProperlyFormatted(String fileUserIdentifier)(Code)
Returns whether a file set identifier is properly formatted.
Parameters:
  fileUserIdentifier -



isUserAuthorizedForBatchType
public boolean isUserAuthorizedForBatchType(BatchInputFileSetType batchInputFileSetType, UniversalUser user)(Code)
Checks if the user has permissions to manage the batch input type.
Parameters:
  batchInputFileSetType - - input type to check user permissions on
Parameters:
  user - - user to check boolean - true if user has permissions for the type, false if the user does not have permission



listBatchTypeFileUserIdentifiersForUser
public Set<String> listBatchTypeFileUserIdentifiersForUser(BatchInputFileSetType batchInputFileSetType, UniversalUser user) throws AuthorizationException(Code)
Returns a list of batch type file names (including path) that the given user has permissions to manage.
Parameters:
  user - - user for checking permissions List - List of filenames



save
public Map<String, String> save(UniversalUser user, BatchInputFileSetType inputType, String fileUserIdentifer, Map<String, InputStream> typeToStreamMap, boolean suppressDoneFileCreation) throws AuthorizationException, FileStorageException(Code)
Stores the input streams (the values in the Map parameter) as files on the server, identified by the given user file name and file user identifier
Parameters:
  user - - user who is requesting the save
Parameters:
  inputType - - instance of a BatchInputFileSetType
Parameters:
  fileUserIdentifer - - file identifier specified by user
Parameters:
  typeToStreamMap - - contents of the uploaded files, keyed by the input file type a Map of type to file name mappings of the saved files
throws:
  FileStorageException - - if errors were encountered while attempting to write the file



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.