Java 类com.liferay.portal.kernel.util.TempFileEntryUtil 实例源码

项目:ch-inofix-timetracker    文件:TaskRecordServiceImpl.java   
@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);
}
项目:ch-inofix-timetracker    文件:TaskRecordServiceImpl.java   
@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);
}
项目:ch-inofix-timetracker    文件:TaskRecordServiceImpl.java   
@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));
}
项目:ch-inofix-contact-manager    文件:ContactServiceImpl.java   
@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);
}
项目:ch-inofix-contact-manager    文件:ContactServiceImpl.java   
@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);
}
项目:ch-inofix-contact-manager    文件:ContactServiceImpl.java   
@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));
}
项目:ch-inofix-data-manager    文件:MeasurementServiceImpl.java   
@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));
}