Class UploadHistoryService
java.lang.Object
fr.paris.lutece.plugins.workflow.modules.upload.services.UploadHistoryService
- All Implemented Interfaces:
IUploadHistoryService
@ApplicationScoped
public class UploadHistoryService
extends 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidcreate(int nIdResourceHistory, int nidTask, List<fr.paris.lutece.portal.service.upload.MultipartItem> listFiles, fr.paris.lutece.portal.service.plugin.Plugin plugin) Creates the.findByPrimaryKey(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.
-
Constructor Details
-
UploadHistoryService
public UploadHistoryService()
-
-
Method Details
-
create
public void create(int nIdResourceHistory, int nidTask, List<fr.paris.lutece.portal.service.upload.MultipartItem> 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
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
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
-