Java Doc for BatchInputFileService.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.BatchInputFileService

All known Subclasses:   org.kuali.kfs.service.impl.BatchInputFileServiceImpl,
BatchInputFileService
public interface BatchInputFileService (Code)
Interface defining methods to manage batch input files.




Method Summary
public  booleandelete(UniversalUser user, BatchInputFileType inputType, String deleteFileNameWithNoPath)
     Deletes a batch input file contained on the server if the user has permissions for the files batch input type.
public  Filedownload(UniversalUser user, BatchInputFileType inputType, String downloadFileName)
     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 BatchInputFileType
Parameters:
  downloadFileNameWithNoPath - - name of the file to retrieve, with no path information File - File representation of the batch input, or null if errors occured.
public  booleanhasBeenProcessed(BatchInputFileType inputType, String fileNameWithNoPath)
    
public  booleanisBatchInputTypeActive(BatchInputFileType batchInputFileType)
     Checks if the batch input type is active (can be used for upload).
public  booleanisFileUserIdentifierProperlyFormatted(String fileUserIdentifier)
     Returns whether a file user identifier is properly formatted.
public  booleanisUserAuthorizedForBatchType(BatchInputFileType batchInputFileType, UniversalUser user)
     Checks if the user has permissions to manage the batch input type.
public  List<String>listBatchTypeFilesForUser(BatchInputFileType batchInputFileType, UniversalUser user)
     Returns a list of batch type file names (without path) that the given user has permissions to manage.
public  List<String>listInputFileNamesWithDoneFile(BatchInputFileType batchInputFileType)
    
public  Objectparse(BatchInputFileType batchInputFileType, byte[] fileByteContent)
     Unmarshalls the file contents to an Object using the digestor and digestor rules file specified in the batch input type.
public  Stringsave(UniversalUser user, BatchInputFileType inputType, String fileUserIdentifier, InputStream fileContents, Object parsedObject)
     Stores the inputstream as a file on the server, identified by the given user file name.
public  booleanvalidate(BatchInputFileType inputType, Object parsedObject)
     Using the input type object parses and validates the file contents by calling validate on the batch input type.



Method Detail
delete
public boolean delete(UniversalUser user, BatchInputFileType inputType, String deleteFileNameWithNoPath) 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 deletion fails, this method will place the reason for failure in the GlobalVariables error map.
Parameters:
  user - - user who is requesting the delete
Parameters:
  inputType - - instance of a BatchInputFileType
Parameters:
  deleteFileNameWithNoPath - - name of the file to remove, with no path information whether the file (and its done file) was deleted
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, BatchInputFileType inputType, String downloadFileName) 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 BatchInputFileType
Parameters:
  downloadFileNameWithNoPath - - name of the file to retrieve, with no path information 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(BatchInputFileType inputType, String fileNameWithNoPath)(Code)
Returns whether a the given file has been processed by the associated batch job
Parameters:
  inputType -
Parameters:
  fileNameWithNoPath -



isBatchInputTypeActive
public boolean isBatchInputTypeActive(BatchInputFileType batchInputFileType)(Code)
Checks if the batch input type is active (can be used for upload).
Parameters:
  batchInputFileType - - 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 user identifier is properly formatted.
Parameters:
  fileUserIdentifier -



isUserAuthorizedForBatchType
public boolean isUserAuthorizedForBatchType(BatchInputFileType batchInputFileType, UniversalUser user)(Code)
Checks if the user has permissions to manage the batch input type.
Parameters:
  batchInputFileType - - 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



listBatchTypeFilesForUser
public List<String> listBatchTypeFilesForUser(BatchInputFileType batchInputFileType, UniversalUser user) throws AuthorizationException(Code)
Returns a list of batch type file names (without path) that the given user has permissions to manage. Path is intentionally excluded to prevent security problems arising from giving users access to the full path.
Parameters:
  user - - user for checking permissions List - List of filenames



listInputFileNamesWithDoneFile
public List<String> listInputFileNamesWithDoneFile(BatchInputFileType batchInputFileType)(Code)
Returns a list of existing input files for the batch type that have an associated .done file
Parameters:
  batchInputFileType - - batch type to retieve files for List - List of filenames



parse
public Object parse(BatchInputFileType batchInputFileType, byte[] fileByteContent) throws XMLParseException(Code)
Unmarshalls the file contents to an Object using the digestor and digestor rules file specified in the batch input type.
Parameters:
  batchInputFileType - - batch input file type for the file to parse
Parameters:
  fileByteContent - - byte contents of file to parse - Object built from the file contents based on its xml unmarshalling rules
throws:
  XMLParseException - - if there were errors encountered during parsing of the xml



save
public String save(UniversalUser user, BatchInputFileType inputType, String fileUserIdentifier, InputStream fileContents, Object parsedObject) throws AuthorizationException, FileStorageException(Code)
Stores the inputstream as a file on the server, identified by the given user file name.
Parameters:
  user - - user who is requesting the save
Parameters:
  inputType - - instance of a BatchInputFileType
Parameters:
  fileUserIdentifier - - file identifier specified by user
Parameters:
  fileContents - - contents of the uploaded file
Parameters:
  parsedObject - - object parsed from the input file String - name of file that was saved, or null if errors were enountered
throws:
  FileStorageException - - if errors were encountered while attempting to write the file



validate
public boolean validate(BatchInputFileType inputType, Object parsedObject)(Code)
Using the input type object parses and validates the file contents by calling validate on the batch input type. If there were validation errors, GlobalVariables.errorMap will contain the error messages.
Parameters:
  inputType - - instance of a BatchInputFileType
Parameters:
  parsedObject - - the Object built from parsing xml contents boolean - true if validation was successful, false if there were errors



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