当前位置: 首页>>代码示例>>Java>>正文


Java UploadedFile.delete方法代码示例

本文整理汇总了Java中org.richfaces.model.UploadedFile.delete方法的典型用法代码示例。如果您正苦于以下问题:Java UploadedFile.delete方法的具体用法?Java UploadedFile.delete怎么用?Java UploadedFile.delete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.richfaces.model.UploadedFile的用法示例。


在下文中一共展示了UploadedFile.delete方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: uploadImage

import org.richfaces.model.UploadedFile; //导入方法依赖的package包/类
public void uploadImage(FileUploadEvent event) {
	UploadedFile uploadedFile = event.getUploadedFile();
	this.uploadedImage = null;
	try {
		GluuImage image = imageService.constructImage((GluuCustomPerson) Component.getInstance("currentPerson"), uploadedFile);
		image.setStoreTemporary(true);
		if (imageService.createImageFiles(image)) {
			this.uploadedImage = image;
		}
	} finally {
		try {
			uploadedFile.delete();
		} catch (IOException ex) {
			log.error("Failed to remove temporary image", ex);
		}
	}
}
 
开发者ID:AgarwalNeha1,项目名称:gluu,代码行数:18,代码来源:CustomAttributeAction.java

示例2: uploadImage

import org.richfaces.model.UploadedFile; //导入方法依赖的package包/类
public void uploadImage(FileUploadEvent event) {
	UploadedFile uploadedFile = event.getUploadedFile();
	this.uploadedImage = null;
	try {
		GluuImage image = imageService.constructImage(identity.getUser(), uploadedFile);
		image.setStoreTemporary(true);
		if (imageService.createImageFiles(image)) {
			this.uploadedImage = image;
		}
	} finally {
		try {
			uploadedFile.delete();
		} catch (IOException ex) {
			log.error("Failed to remove temporary image", ex);
		}
	}
}
 
开发者ID:GluuFederation,项目名称:oxTrust,代码行数:18,代码来源:CustomAttributeAction.java

示例3: setCustLogoImage

import org.richfaces.model.UploadedFile; //导入方法依赖的package包/类
public void setCustLogoImage(FileUploadEvent event) {
	UploadedFile uploadedFile = event.getUploadedFile();
	try {
		setCustLogoImageImpl(uploadedFile);
	} finally {
		try {
			uploadedFile.delete();
		} catch (IOException ex) {
			log.error("Failed to remove temporary image", ex);
		}
	}
}
 
开发者ID:AgarwalNeha1,项目名称:gluu,代码行数:13,代码来源:UpdateOrganizationAction.java

示例4: setFaviconImage

import org.richfaces.model.UploadedFile; //导入方法依赖的package包/类
public void setFaviconImage(FileUploadEvent event) {
	UploadedFile uploadedFile = event.getUploadedFile();
	try {
		setFaviconImageImpl(uploadedFile);
	} finally {
		try {
			uploadedFile.delete();
		} catch (IOException ex) {
			log.error("Failed to remove temporary image", ex);
		}
	}
}
 
开发者ID:AgarwalNeha1,项目名称:gluu,代码行数:13,代码来源:UpdateOrganizationAction.java

示例5: setIconImage

import org.richfaces.model.UploadedFile; //导入方法依赖的package包/类
@Restrict("#{s:hasPermission('uma', 'access')}")
public void setIconImage(FileUploadEvent event) {
	UploadedFile uploadedFile = event.getUploadedFile();
	try {
		setIconImageImpl(uploadedFile);
	} finally {
		try {
			uploadedFile.delete();
		} catch (IOException ex) {
			log.error("Failed to remove temporary image", ex);
		}
	}
}
 
开发者ID:AgarwalNeha1,项目名称:gluu,代码行数:14,代码来源:UpdateScopeDescriptionAction.java

示例6: setIconImage

import org.richfaces.model.UploadedFile; //导入方法依赖的package包/类
public void setIconImage(FileUploadEvent event) {
	UploadedFile uploadedFile = event.getUploadedFile();
	try {
		setIconImageImpl(uploadedFile);
	} finally {
		try {
			uploadedFile.delete();
		} catch (IOException ex) {
			log.error("Failed to remove temporary image", ex);
		}
	}
}
 
开发者ID:GluuFederation,项目名称:oxTrust,代码行数:13,代码来源:UpdateScopeDescriptionAction.java


注:本文中的org.richfaces.model.UploadedFile.delete方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。