@Override public FileEntry addTempFileEntry(long groupId, String folderName, String fileName, InputStream inputStream, String mimeType) throws PortalException { TimetrackerPortletPermission.check(getPermissionChecker(), groupId, TimetrackerActionKeys.IMPORT_TASK_RECORDS); return TempFileEntryUtil.addTempFileEntry(groupId, getUserId(), DigesterUtil.digestHex(Digester.SHA_256, folderName), fileName, inputStream, mimeType); }
@Override public void deleteTempFileEntry(long groupId, String folderName, String fileName) throws PortalException { TimetrackerPortletPermission.check(getPermissionChecker(), groupId, TimetrackerActionKeys.EXPORT_IMPORT_TASK_RECORDS); TempFileEntryUtil.deleteTempFileEntry(groupId, getUserId(), DigesterUtil.digestHex(Digester.SHA_256, folderName), fileName); }
@Override public String[] getTempFileNames(long groupId, String folderName) throws PortalException { TimetrackerPortletPermission.check(getPermissionChecker(), groupId, TimetrackerActionKeys.EXPORT_IMPORT_TASK_RECORDS); return TempFileEntryUtil.getTempFileNames(groupId, getUserId(), DigesterUtil.digestHex(Digester.SHA_256, folderName)); }
@Override public FileEntry addTempFileEntry(long groupId, String folderName, String fileName, InputStream inputStream, String mimeType) throws PortalException { ContactManagerPortletPermission.check(getPermissionChecker(), groupId, ContactManagerActionKeys.EXPORT_IMPORT_CONTACTS); return TempFileEntryUtil.addTempFileEntry(groupId, getUserId(), DigesterUtil.digestHex(Digester.SHA_256, folderName), fileName, inputStream, mimeType); }
@Override public void deleteTempFileEntry(long groupId, String folderName, String fileName) throws PortalException { ContactManagerPortletPermission.check(getPermissionChecker(), groupId, ContactManagerActionKeys.EXPORT_IMPORT_CONTACTS); TempFileEntryUtil.deleteTempFileEntry(groupId, getUserId(), DigesterUtil.digestHex(Digester.SHA_256, folderName), fileName); }
@Override public String[] getTempFileNames(long groupId, String folderName) throws PortalException { ContactManagerPortletPermission.check(getPermissionChecker(), groupId, ContactManagerActionKeys.EXPORT_IMPORT_CONTACTS); return TempFileEntryUtil.getTempFileNames(groupId, getUserId(), DigesterUtil.digestHex(Digester.SHA_256, folderName)); }
@Override public String[] getTempFileNames(long groupId, String folderName) throws PortalException { DataManagerPortletPermission.check(getPermissionChecker(), groupId, MeasurementActionKeys.EXPORT_IMPORT_MEASUREMENTS); return TempFileEntryUtil.getTempFileNames(groupId, getUserId(), DigesterUtil.digestHex(Digester.SHA_256, folderName)); }