Class UploadHistoryService
- java.lang.Object
-
- fr.paris.lutece.plugins.workflow.modules.upload.services.UploadHistoryService
-
- All Implemented Interfaces:
IUploadHistoryService
public class UploadHistoryService extends java.lang.Object implements IUploadHistoryService
The Class UploadHistoryService.
-
-
Field Summary
-
Fields inherited from interface fr.paris.lutece.plugins.workflow.modules.upload.services.IUploadHistoryService
BEAN_SERVICE
-
-
Constructor Summary
Constructors Constructor Description UploadHistoryService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreate(int nIdResourceHistory, int nidTask, java.util.List<org.apache.commons.fileupload.FileItem> listFiles, fr.paris.lutece.portal.service.plugin.Plugin plugin)Creates the.UploadHistoryfindByPrimaryKey(int nIdHistory, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)Find by primary key.booleanisOwner(int nIdHistory, fr.paris.lutece.portal.business.user.AdminUser adminUser)Checks if is owner.voidremoveByHistory(int nIdHistory, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)Removes the by history.voidremoveByTask(int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)Removes the by task.
-
-
-
Method Detail
-
create
@Transactional("workflow.transactionManager") public void create(int nIdResourceHistory, int nidTask, java.util.List<org.apache.commons.fileupload.FileItem> listFiles, fr.paris.lutece.portal.service.plugin.Plugin plugin)Creates the.- Specified by:
createin interfaceIUploadHistoryService- Parameters:
nIdResourceHistory- the n id resource historynidTask- the nid tasklistFiles- the list filesplugin- the plugin
-
removeByHistory
@Transactional("workflow.transactionManager") public void removeByHistory(int nIdHistory, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)Removes the by history.- Specified by:
removeByHistoryin interfaceIUploadHistoryService- Parameters:
nIdHistory- the n id historynIdTask- the n id taskplugin- the plugin
-
removeByTask
@Transactional("workflow.transactionManager") public void removeByTask(int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)Removes the by task.- Specified by:
removeByTaskin interfaceIUploadHistoryService- Parameters:
nIdTask- the n id taskplugin- the plugin
-
findByPrimaryKey
public UploadHistory findByPrimaryKey(int nIdHistory, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find by primary key.- Specified by:
findByPrimaryKeyin interfaceIUploadHistoryService- Parameters:
nIdHistory- the n id historynIdTask- the n id taskplugin- the plugin- Returns:
- the upload history
-
isOwner
public boolean isOwner(int nIdHistory, fr.paris.lutece.portal.business.user.AdminUser adminUser)Checks if is owner.- Specified by:
isOwnerin interfaceIUploadHistoryService- Parameters:
nIdHistory- the n id historyadminUser- the admin user- Returns:
- true, if is owner
-
-