Java Doc for BatchInputFileServiceImpl.java in  » ERP-CRM-Financial » Kuali-Financial-System » org » kuali » kfs » service » impl » 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.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.kuali.kfs.service.impl.BatchInputFileServiceImpl

BatchInputFileServiceImpl
public class BatchInputFileServiceImpl implements BatchInputFileService(Code)
Provides batch input file management, including listing files, parsing, downloading, storing, and deleting.




Method Summary
protected  booleancanDelete(UniversalUser user, BatchInputFileType inputType, File fileToDelete)
     This method indicates whether a file can be deleted.
public  booleandelete(UniversalUser user, BatchInputFileType batchInputFileType, String deleteFileNameWithNoPath)
    
public  Filedownload(UniversalUser user, BatchInputFileType batchInputFileType, String downloadFileNameWithNoPath)
    
protected  FilegenerateDoneFileObject(File batchInputFile)
     This method is responsible for creating a File object that represents the done file.
public  booleanhasBeenProcessed(BatchInputFileType inputType, String fileName)
    
public  booleanisBatchInputTypeActive(BatchInputFileType batchInputFileType)
    
public  booleanisFileUserIdentifierProperlyFormatted(String fileUserIdentifier)
    
public  booleanisUserAuthorizedForBatchType(BatchInputFileType batchInputFileType, UniversalUser user)
    
public  List<String>listBatchTypeFilesForUser(BatchInputFileType batchInputFileType, UniversalUser user)
     Fetches workgroup for batch type from system parameter and verifies user is a member.
protected  List<File>listBatchTypeFilesForUserAsFiles(BatchInputFileType batchInputFileType, UniversalUser user)
    
public  List<String>listInputFileNamesWithDoneFile(BatchInputFileType batchInputFileType)
    
public  Objectparse(BatchInputFileType batchInputFileType, byte[] fileByteContent)
     Uses the apache commons digestor to unmarshell the xml.
protected  FileretrieveFileToDownloadOrDelete(BatchInputFileType batchInputFileType, UniversalUser user, String fileName)
     This method will attempt to find the File object representing the file to download or delete.
public  Stringsave(UniversalUser user, BatchInputFileType batchInputFileType, String fileUserIdentifier, InputStream fileContents, Object parsedObject)
    
public  booleanvalidate(BatchInputFileType batchInputFileType, Object parsedObject)
     Defers to batch type to do any validation on the parsed contents.



Method Detail
canDelete
protected boolean canDelete(UniversalUser user, BatchInputFileType inputType, File fileToDelete)(Code)
This method indicates whether a file can be deleted. It will also place an error in the GlobalVariables error map to indicate to the UI the reason that the file could not be deleted.
Parameters:
  user -
Parameters:
  inputType -
Parameters:
  deleteFileNameWithNoPath -
throws:
  AuthorizationException -
throws:
  FileNotFoundException -



delete
public boolean delete(UniversalUser user, BatchInputFileType batchInputFileType, String deleteFileNameWithNoPath) throws AuthorizationException, FileNotFoundException(Code)

See Also:   org.kuali.kfs.service.BatchInputFileService.delete(org.kuali.core.bo.user.UniversalUserorg.kuali.kfs.batch.BatchInputFileTypejava.lang.String)



download
public File download(UniversalUser user, BatchInputFileType batchInputFileType, String downloadFileNameWithNoPath) throws AuthorizationException, FileNotFoundException(Code)

See Also:   org.kuali.kfs.service.BatchInputFileService.download(org.kuali.core.bo.user.UniversalUserorg.kuali.kfs.batch.BatchInputFileTypejava.lang.String)



generateDoneFileObject
protected File generateDoneFileObject(File batchInputFile)(Code)
This method is responsible for creating a File object that represents the done file. The real file represented on disk may not exist
Parameters:
  batchInputFile - a File object representing the done file. The real file may not exist on disk, but the return value can be used tocreate that file.



hasBeenProcessed
public boolean hasBeenProcessed(BatchInputFileType inputType, String fileName)(Code)



isBatchInputTypeActive
public boolean isBatchInputTypeActive(BatchInputFileType batchInputFileType)(Code)

See Also:   org.kuali.kfs.service.BatchInputFileService.isBatchInputTypeActive(org.kuali.kfs.batch.BatchInputFileType)



isFileUserIdentifierProperlyFormatted
public boolean isFileUserIdentifierProperlyFormatted(String fileUserIdentifier)(Code)
For this implementation, a file user identifier must consist of letters and digits
See Also:   org.kuali.kfs.service.BatchInputFileService.isFileUserIdentifierProperlyFormatted(java.lang.String)



isUserAuthorizedForBatchType
public boolean isUserAuthorizedForBatchType(BatchInputFileType batchInputFileType, UniversalUser user)(Code)

See Also:   org.kuali.kfs.service.BatchInputFileService.isUserAuthorizedForBatchType(org.kuali.kfs.batch.BatchInputFileTypeorg.kuali.core.bo.user.UniversalUser)



listBatchTypeFilesForUser
public List<String> listBatchTypeFilesForUser(BatchInputFileType batchInputFileType, UniversalUser user) throws AuthorizationException(Code)
Fetches workgroup for batch type from system parameter and verifies user is a member. Then a list of all files for the batch type are retrieved. For each file, the file and user is sent through the checkAuthorization method of the batch input type implementation for finer grained security. If the method returns true, the filename is added to the user's list.
See Also:   org.kuali.kfs.service.BatchInputFileService.listBatchTypeFilesForUser(org.kuali.kfs.batch.BatchInputFileTypeorg.kuali.core.bo.user.UniversalUser)



listBatchTypeFilesForUserAsFiles
protected List<File> listBatchTypeFilesForUserAsFiles(BatchInputFileType batchInputFileType, UniversalUser user) throws AuthorizationException(Code)



listInputFileNamesWithDoneFile
public List<String> listInputFileNamesWithDoneFile(BatchInputFileType batchInputFileType)(Code)

See Also:   org.kuali.kfs.service.BatchInputFileService.listInputFileNamesWithDoneFile(org.kuali.kfs.batch.BatchInputFileType)



parse
public Object parse(BatchInputFileType batchInputFileType, byte[] fileByteContent) throws XMLParseException(Code)
Uses the apache commons digestor to unmarshell the xml. The BatchInputFileType specifies the location of the digestor rules xml which tells the digestor how to build the object graph from the xml.
See Also:   org.kuali.kfs.service.BatchInputFileService.parse(org.kuali.kfs.batch.BatchInputFileTypebyte[])



retrieveFileToDownloadOrDelete
protected File retrieveFileToDownloadOrDelete(BatchInputFileType batchInputFileType, UniversalUser user, String fileName)(Code)
This method will attempt to find the File object representing the file to download or delete. USE EXTREME CAUTION when overridding this method, as a badly implemented method may cause a security vulnerability.
Parameters:
  batchInputFileType -
Parameters:
  user -
Parameters:
  fileName - the file name, WITHOUT any path components the File object, if a file exists in the directory specified by the batchInputFileType. null if no file can be foundin the directory specified by batchInputFileType.



save
public String save(UniversalUser user, BatchInputFileType batchInputFileType, String fileUserIdentifier, InputStream fileContents, Object parsedObject) throws AuthorizationException, FileStorageException(Code)

See Also:   org.kuali.kfs.service.BatchInputFileService.save(org.kuali.core.bo.user.UniversalUserorg.kuali.kfs.batch.BatchInputFileTypejava.lang.Stringjava.io.InputStream)



validate
public boolean validate(BatchInputFileType batchInputFileType, Object parsedObject)(Code)
Defers to batch type to do any validation on the parsed contents.
See Also:   org.kuali.kfs.service.BatchInputFileService.validate(org.kuali.kfs.batch.BatchInputFileTypejava.lang.Object)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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