|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.blojsom.plugin.admin.BaseAdminPlugin
org.blojsom.plugin.admin.FileUploadPlugin
FileUploadPlugin
| Field Summary |
| Constructor Summary | |
FileUploadPlugin()
Default constructor. |
|
| Method Summary | |
protected long |
getDirectorySize(java.io.File directory)
Return the size of a directory by getting the size of all its files and all of its directories files |
void |
init()
Initialize this plugin. |
Entry[] |
process(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
Blog blog,
java.util.Map context,
Entry[] entries)
Process the blog entries |
void |
setFileUploadProperties(java.util.Properties fileUploadProperties)
Set the file upload properties |
| Methods inherited from class org.blojsom.plugin.admin.BaseAdminPlugin |
addOperationResultMessage, authenticateUser, checkPermission, cleanup, destroy, formatAdminResource, getAdminResource, getUsernameFromSession, setAuthorizationProvider, setResourceManager, setServletConfig |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FileUploadPlugin()
| Method Detail |
public void setFileUploadProperties(java.util.Properties fileUploadProperties)
fileUploadProperties - File upload properties
public void init()
throws PluginException
init in interface Plugininit in class BaseAdminPluginPluginException - If there is an error initializing the pluginprotected long getDirectorySize(java.io.File directory)
directory - Directory whose size should be retrieved
public Entry[] process(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
Blog blog,
java.util.Map context,
Entry[] entries)
throws PluginException
process in interface Pluginprocess in class BaseAdminPluginhttpServletRequest - RequesthttpServletResponse - Responseblog - Blog instancecontext - Contextentries - Blog entries retrieved for the particular request
PluginException - If there is an error processing the blog entries
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||