org.jbpm.formbuilder.server.file
Class GuvnorFileService
java.lang.Object
org.jbpm.formbuilder.server.file.GuvnorFileService
- All Implemented Interfaces:
- FileService, org.springframework.beans.factory.InitializingBean
public class GuvnorFileService
- extends Object
- implements FileService, org.springframework.beans.factory.InitializingBean
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GuvnorFileService
public GuvnorFileService()
getBaseUrl
public String getBaseUrl()
setBaseUrl
public void setBaseUrl(String baseUrl)
getUser
public String getUser()
setUser
public void setUser(String user)
getPassword
public String getPassword()
setPassword
public void setPassword(String password)
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
- Throws:
Exception
setHelper
public void setHelper(GuvnorHelper helper)
getHelper
public GuvnorHelper getHelper()
extractFileExtension
public String extractFileExtension(String fileName)
stripFileExtension
public String stripFileExtension(String fileName)
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-2014 JBoss by Red Hat. All Rights Reserved.