org.jbpm.formbuilder.server.file
Class MockFileService

java.lang.Object
  extended by org.jbpm.formbuilder.server.file.MockFileService
All Implemented Interfaces:
FileService

public class MockFileService
extends Object
implements FileService


Constructor Summary
MockFileService()
           
 
Method Summary
 void deleteFile(String packageName, String fileName)
           
 byte[] loadFile(String packageName, String fileName)
           
 List<String> loadFilesByType(String packageName, String fileType)
           
 String storeFile(String packageName, String fileName, byte[] content)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockFileService

public MockFileService()
Method Detail

storeFile

public String storeFile(String packageName,
                        String fileName,
                        byte[] content)
                 throws FileException
Specified by:
storeFile in interface FileService
Throws:
FileException

deleteFile

public void deleteFile(String packageName,
                       String fileName)
                throws FileException
Specified by:
deleteFile in interface FileService
Throws:
FileException

loadFilesByType

public List<String> loadFilesByType(String packageName,
                                    String fileType)
                             throws FileException
Specified by:
loadFilesByType in interface FileService
Throws:
FileException

loadFile

public byte[] loadFile(String packageName,
                       String fileName)
                throws FileException
Specified by:
loadFile in interface FileService
Throws:
FileException


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.