本文整理汇总了Java中com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil类的典型用法代码示例。如果您正苦于以下问题:Java DLAppLocalServiceUtil类的具体用法?Java DLAppLocalServiceUtil怎么用?Java DLAppLocalServiceUtil使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DLAppLocalServiceUtil类属于com.liferay.portlet.documentlibrary.service包,在下文中一共展示了DLAppLocalServiceUtil类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: uploadImage
import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil; //导入依赖的package包/类
/**
* Upload image.
*
* @param image
* the image
* @return the uri
* @throws SystemException
* the system exception
* @throws URISyntaxException
* the uRI syntax exception
* @throws IOException
* @throws PortalException
*/
public static URI uploadImage(UploadedFile image) throws SystemException, URISyntaxException, IOException, PortalException,
NullPointerException {
LiferayFacesContext lfc = LiferayFacesContext.getInstance();
ThemeDisplay td = lfc.getThemeDisplay();
ServiceContext serviceContext = new ServiceContext();
serviceContext.setScopeGroupId(td.getScopeGroupId());
long imageFolderId = Long.parseLong(PropsUtil.get("image.folder.id"));
DLFolder folder;
try {
/* Check if folder for image exists */
folder = DLFolderLocalServiceUtil.getDLFolder(imageFolderId);
LOG.debug("Folder for app images exists.");
} catch (PortalException e) {
/* If not -> create */
folder = DLFolderLocalServiceUtil.createDLFolder(imageFolderId);
folder.setName("App-Images");
DLFolderLocalServiceUtil.addDLFolder(folder);
LOG.debug("Created folder for app images.");
}
String uuidExt = null;
FileEntry file = null;
uuidExt = td.getUser().getScreenName() + "_" + UUID.randomUUID().toString() + "_" + new Date().getTime() + "_";
file = DLAppLocalServiceUtil.addFileEntry(td.getUserId(), td.getScopeGroupId(), folder.getFolderId(), uuidExt + image.getName(),
MimeTypesUtil.getContentType(image.getName()), uuidExt + image.getName(), uuidExt + image.getName(), "new",
image.getBytes(), serviceContext);
return new URI(td.getPortalURL() + "/c/document_library/get_file?uuid=" + file.getUuid() + "&groupId=" + td.getScopeGroupId());
}
示例2: deleteMultiMedia
import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil; //导入依赖的package包/类
public MultiMedia deleteMultiMedia(MultiMedia multiMedia) throws SystemException, PortalException {
try {
_log.debug("deleteMultiMedia::ImageId: " + multiMedia.getImageId());
_log.debug("deleteFileEntries: " + multiMediaPersistence.findByimage(multiMedia.getImageId()).size() );
if (multiMediaPersistence.findByimage(multiMedia.getImageId()).size() == 1) {
DLAppLocalServiceUtil.deleteFileEntry(multiMedia.getImageId());
}
// Image image = ImageLocalServiceUtil.fetchImage(multiMedia.getImageId());
// ImageLocalServiceUtil.deleteImage(image);
// ImageLocalServiceUtil.deleteImage(multiMedia.getImageId());
multiMediaPersistence.remove(multiMedia);
// Image image = getImage(imageId);
// imagePersistence.remove( multiMedia.getImageId());
// Hook hook = com.liferay.portal.image.HookFactory.getInstance();
// hook.deleteImage(image);
} catch (Exception e) {
_log.info(e.toString());
}
return multiMedia;
}
示例3: deleteResources
import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil; //导入依赖的package包/类
@Override
public void deleteResources(ActionRequest actionRequest,
ActionResponse actionResponse, LearningActivity larn)
throws PortalException, SystemException, DocumentException,
IOException {
UploadRequest uploadRequest = PortalUtil.getUploadPortletRequest(actionRequest);
ThemeDisplay themeDisplay = (ThemeDisplay) uploadRequest.getAttribute(WebKeys.THEME_DISPLAY);
try {
Folder folder = DLAppLocalServiceUtil.getFolder(themeDisplay.getScopeGroupId(), 0, String.valueOf(larn.getActId()));
java.util.List<FileEntry> files = DLAppLocalServiceUtil.getFileEntries(themeDisplay.getScopeGroupId(), folder.getFolderId());
for(FileEntry file:files){
DLAppLocalServiceUtil.deleteFileEntry(file.getFileEntryId());
}
DLAppLocalServiceUtil.deleteFolder(folder.getFolderId());
} catch (Exception e) {
//No existe carpeta, por lo que no hay recursos asociados que eliminar.
}
super.deleteResources(actionRequest, actionResponse, larn);
}
示例4: deleteFiles
import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil; //导入依赖的package包/类
public void deleteFiles() throws PortalException, SystemException{
if(igFolderId!=0L) {
DLAppLocalServiceUtil.deleteFolder(igFolderId);
}
if(dlFolderId!=0L) {
DLAppLocalServiceUtil.deleteFolder(dlFolderId);
}
}
示例5: importQuestionAnswers
import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil; //导入依赖的package包/类
@Override
public void importQuestionAnswers(PortletDataContext context, Element entryElement, long questionId, long userId, ServiceContext serviceContext) throws SystemException, PortalException{
for(Element aElement:entryElement.elements("questionanswer")){
String patha = aElement.attributeValue("path");
TestAnswer oldanswer=(TestAnswer)context.getZipEntryAsObject(patha);
TestAnswer answer = TestAnswerLocalServiceUtil.addTestAnswer(questionId, oldanswer.getAnswer(), oldanswer.getFeedbackCorrect(), oldanswer.getFeedbacknocorrect(), oldanswer.isIsCorrect());
//Si tenemos ficheros en las descripciones de las respuestas.
for (Element actElementFile : aElement.elements("descriptionfile")) {
FileEntry oldFile = (FileEntry)context.getZipEntryAsObject(actElementFile.attributeValue("path"));
ModuleDataHandlerImpl m = new ModuleDataHandlerImpl();
FileEntry newFile;
long folderId=0;
String description = "";
try {
InputStream input = context.getZipEntryAsInputStream(actElementFile.attributeValue("file"));
long repositoryId = DLFolderConstants.getDataRepositoryId(context.getScopeGroupId(), DLFolderConstants.DEFAULT_PARENT_FOLDER_ID);
folderId = DLFolderUtil.createDLFoldersForLearningActivity(userId,repositoryId,serviceContext).getFolderId();
newFile = DLAppLocalServiceUtil.addFileEntry(userId, repositoryId , folderId , oldFile.getTitle(), "contentType", oldFile.getTitle(), StringPool.BLANK, StringPool.BLANK, IOUtils.toByteArray(input), serviceContext );
description = ImportUtil.descriptionFileParserLarToDescription(answer.getAnswer(), oldFile, newFile);
} catch(DuplicateFileException dfl){
FileEntry existingFile = DLAppLocalServiceUtil.getFileEntry(context.getScopeGroupId(), folderId, oldFile.getTitle());
description = ImportUtil.descriptionFileParserLarToDescription(answer.getAnswer(), oldFile, existingFile);
} catch (Exception e) {
e.printStackTrace();
}
answer.setAnswer(description);
TestAnswerLocalServiceUtil.updateTestAnswer(answer);
}
}
}
示例6: createDLFolders
import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil; //导入依赖的package包/类
private long createDLFolders(Long userId,Long repositoryId,PortletRequest portletRequest,long actId) throws PortalException, SystemException{
//Variables for folder ids
Long dlMainFolderId = 0L;
//Search for folder in Document Library
boolean dlMainFolderFound = false;
//Get main folder
try {
//Get main folder
Folder dlFolderMain = DLAppLocalServiceUtil.getFolder(repositoryId,DLFolderConstants.DEFAULT_PARENT_FOLDER_ID,DOCUMENTLIBRARY_MAINFOLDER+actId);
dlMainFolderId = dlFolderMain.getFolderId();
dlMainFolderFound = true;
//Get portlet folder
} catch (Exception ex){
}
ServiceContext serviceContext= ServiceContextFactory.getInstance( DLFolder.class.getName(), portletRequest);
//Damos permisos al archivo para usuarios de comunidad.
serviceContext.setAddGroupPermissions(true);
//Create main folder if not exist
if(!dlMainFolderFound){
Folder newDocumentMainFolder = DLAppLocalServiceUtil.addFolder(userId, repositoryId,DLFolderConstants.DEFAULT_PARENT_FOLDER_ID, DOCUMENTLIBRARY_MAINFOLDER+actId, DOCUMENTLIBRARY_MAINFOLDER+actId, serviceContext);
dlMainFolderFound = true;
dlMainFolderId = newDocumentMainFolder.getFolderId();
}
//Create portlet folder if not exist
return dlMainFolderId;
}
示例7: createFoldersForLearningActivity
import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil; //导入依赖的package包/类
/**
* Primero se busca si ya existe, si existe se devuelve y sino se crea uno nuevo.
*/
private Folder createFoldersForLearningActivity(Long userId, Long groupId, Long actId, String title, ServiceContext serviceContext) throws PortalException, SystemException{
Folder newFolder = null;
try {
newFolder = DLAppLocalServiceUtil.getFolder(groupId, 0, String.valueOf(actId));
} catch (Exception e) {
newFolder = DLAppLocalServiceUtil.addFolder(userId, groupId,0, String.valueOf(actId), title, serviceContext);
}
return newFolder;
}
示例8: createDLFolders
import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil; //导入依赖的package包/类
private long createDLFolders(Long userId,Long repositoryId,PortletRequest portletRequest) throws PortalException, SystemException{
//Variables for folder ids
Long dlMainFolderId = 0L;
//Search for folder in Document Library
boolean dlMainFolderFound = false;
//Get main folder
try {
//Get main folder
Folder dlFolderMain = DLAppLocalServiceUtil.getFolder(repositoryId,DLFolderConstants.DEFAULT_PARENT_FOLDER_ID,DOCUMENTLIBRARY_MAINFOLDER);
dlMainFolderId = dlFolderMain.getFolderId();
dlMainFolderFound = true;
//Get portlet folder
} catch (Exception ex){
}
ServiceContext serviceContext= ServiceContextFactory.getInstance( DLFolder.class.getName(), portletRequest);
//Damos permisos al archivo para usuarios de comunidad.
serviceContext.setAddGroupPermissions(true);
//Create main folder if not exist
if(!dlMainFolderFound){
Folder newDocumentMainFolder = DLAppLocalServiceUtil.addFolder(userId, repositoryId,DLFolderConstants.DEFAULT_PARENT_FOLDER_ID, DOCUMENTLIBRARY_MAINFOLDER, DOCUMENTLIBRARY_MAINFOLDER, serviceContext);
dlMainFolderFound = true;
dlMainFolderId = newDocumentMainFolder.getFolderId();
}
//Create portlet folder if not exist
return dlMainFolderId;
}
示例9: addDLFileEntry
import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil; //导入依赖的package包/类
protected void addDLFileEntry(
long parentFolderId, String fileName, InputStream inputStream,
long length)
throws Exception {
setServiceContext(fileName);
FileEntry fileEntry = DLAppLocalServiceUtil.addFileEntry(
userId, groupId, parentFolderId, fileName,
MimeTypesUtil.getContentType(fileName),
FileUtil.stripExtension(fileName), StringPool.BLANK,
StringPool.BLANK, inputStream, length, serviceContext);
_fileEntries.put(fileName, fileEntry);
}
示例10: cloneFile
import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil; //导入依赖的package包/类
private long cloneFile(long entryId, LearningActivity actNew, long userId, ServiceContext serviceContext){
long assetEntryId = 0;
boolean addGroupPermissions = serviceContext.isAddGroupPermissions();
try {
if(log.isDebugEnabled()){log.debug("EntryId: "+entryId);}
AssetEntry docAsset = AssetEntryLocalServiceUtil.getAssetEntry(entryId);
//docAsset.getUrl()!=""
//DLFileEntryLocalServiceUtil.getDLFileEntry(fileEntryId)
if(log.isDebugEnabled()){log.debug(docAsset.getClassPK());}
DLFileEntry docfile = DLFileEntryLocalServiceUtil.getDLFileEntry(docAsset.getClassPK());
InputStream is = DLFileEntryLocalServiceUtil.getFileAsStream(userId, docfile.getFileEntryId(), docfile.getVersion());
//Crear el folder
DLFolder dlFolder = DLFolderUtil.createDLFoldersForLearningActivity(userId, serviceContext.getScopeGroupId(), serviceContext);
long repositoryId = DLFolderConstants.getDataRepositoryId(actNew.getGroupId(), DLFolderConstants.DEFAULT_PARENT_FOLDER_ID);
String ficheroStr = docfile.getTitle();
if(!docfile.getTitle().endsWith(docfile.getExtension())){
ficheroStr = ficheroStr +"."+ docfile.getExtension();
}
serviceContext.setAddGroupPermissions(true);
FileEntry newFile = DLAppLocalServiceUtil.addFileEntry(
serviceContext.getUserId(), repositoryId , dlFolder.getFolderId() , ficheroStr, docfile.getMimeType(),
docfile.getTitle(), StringPool.BLANK, StringPool.BLANK, is, docfile.getSize() , serviceContext ) ;
AssetEntry asset = AssetEntryLocalServiceUtil.getEntry(DLFileEntry.class.getName(), newFile.getPrimaryKey());
if(log.isDebugEnabled()){log.debug(" asset : " + asset.getEntryId());};
assetEntryId = asset.getEntryId();
} catch (NoSuchEntryException nsee) {
log.error(" asset not exits ");
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
} finally {
serviceContext.setAddGroupPermissions(addGroupPermissions);
}
return assetEntryId;
}
示例11: createIGFolders
import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil; //导入依赖的package包/类
/**
* Create folders for upload images from our portlet to ImageGallery portlet
* @param request
* @param userId
* @param groupId
* @param serviceContext
* @return
* @throws PortalException
* @throws SystemException
*/
private void createIGFolders(ActionRequest request,Long userId,Long repositoryId, ServiceContext serviceContext) throws PortalException, SystemException{
//Variables for folder ids
Long igMainFolderId = 0L;
Long igPortletFolderId = 0L;
Long igRecordFolderId = 0L;
//Search for folders
boolean igMainFolderFound = false;
boolean igPortletFolderFound = false;
try {
//Get the main folder
Folder igMainFolder = DLAppLocalServiceUtil.getFolder(repositoryId,DLFolderConstants.DEFAULT_PARENT_FOLDER_ID,IMAGEGALLERY_MAINFOLDER);
igMainFolderId = igMainFolder.getFolderId();
igMainFolderFound = true;
//Get the portlet folder
Folder igPortletFolder = DLAppLocalServiceUtil.getFolder(repositoryId,igMainFolderId,IMAGEGALLERY_PORTLETFOLDER);
igPortletFolderId = igPortletFolder.getFolderId();
igPortletFolderFound = true;
} catch (Exception ex) {
//Not found main folder
}
//Create main folder if not exist
if(!igMainFolderFound) {
Folder newImageMainFolder = DLAppLocalServiceUtil.addFolder(userId, repositoryId, DLFolderConstants.DEFAULT_PARENT_FOLDER_ID, IMAGEGALLERY_MAINFOLDER, IMAGEGALLERY_MAINFOLDER_DESCRIPTION, serviceContext);
igMainFolderId = newImageMainFolder.getFolderId();
igMainFolderFound = true;
}
//Create portlet folder if not exist
if(igMainFolderFound && !igPortletFolderFound){
Folder newImagePortletFolder = DLAppLocalServiceUtil.addFolder(userId, repositoryId, igMainFolderId, IMAGEGALLERY_PORTLETFOLDER, IMAGEGALLERY_PORTLETFOLDER_DESCRIPTION, serviceContext);
igPortletFolderFound = true;
igPortletFolderId = newImagePortletFolder.getFolderId();
}
//Create this record folder
if(igPortletFolderFound){
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmmss");
Date date = new Date();
String igRecordFolderName=dateFormat.format(date)+SEPARATOR+userId;
Folder newImageRecordFolder = DLAppLocalServiceUtil.addFolder(userId, repositoryId, igPortletFolderId,igRecordFolderName, "", serviceContext);
igRecordFolderId = newImageRecordFolder.getFolderId();
}
igFolderId = igRecordFolderId;
}
示例12: createIGFolders
import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil; //导入依赖的package包/类
private long createIGFolders(PortletRequest request,long userId,long repositoryId) throws PortalException, SystemException{
//Variables for folder ids
Long igMainFolderId = 0L;
Long igPortletFolderId = 0L;
Long igRecordFolderId = 0L;
//Search for folders
boolean igMainFolderFound = false;
boolean igPortletFolderFound = false;
try {
//Get the main folder
Folder igMainFolder = DLAppLocalServiceUtil.getFolder(repositoryId,DLFolderConstants.DEFAULT_PARENT_FOLDER_ID,IMAGEGALLERY_MAINFOLDER);
igMainFolderId = igMainFolder.getFolderId();
igMainFolderFound = true;
//Get the portlet folder
DLFolder igPortletFolder = DLFolderLocalServiceUtil.getFolder(repositoryId,igMainFolderId,IMAGEGALLERY_PORTLETFOLDER);
igPortletFolderId = igPortletFolder.getFolderId();
igPortletFolderFound = true;
} catch (Exception ex) {
}
ServiceContext serviceContext= ServiceContextFactory.getInstance( DLFolder.class.getName(), request);
//Damos permisos al archivo para usuarios de comunidad.
serviceContext.setAddGroupPermissions(true);
serviceContext.setAddGuestPermissions(true);
//Create main folder if not exist
if(!igMainFolderFound) {
Folder newImageMainFolder=DLAppLocalServiceUtil.addFolder(userId, repositoryId, 0, IMAGEGALLERY_MAINFOLDER, IMAGEGALLERY_MAINFOLDER_DESCRIPTION, serviceContext);
igMainFolderId = newImageMainFolder.getFolderId();
igMainFolderFound = true;
}
//Create portlet folder if not exist
if(igMainFolderFound && !igPortletFolderFound){
Folder newImagePortletFolder = DLAppLocalServiceUtil.addFolder(userId, repositoryId, igMainFolderId, IMAGEGALLERY_PORTLETFOLDER, IMAGEGALLERY_PORTLETFOLDER_DESCRIPTION, serviceContext);
igPortletFolderFound = true;
igPortletFolderId = newImagePortletFolder.getFolderId();
}
//Create this record folder
if(igPortletFolderFound){
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmmss");
Date date = new Date();
String igRecordFolderName=dateFormat.format(date)+StringPool.UNDERLINE+userId;
Folder newImageRecordFolder = DLAppLocalServiceUtil.addFolder(userId,repositoryId, igPortletFolderId,igRecordFolderName, igRecordFolderName, serviceContext);
igRecordFolderId = newImageRecordFolder.getFolderId();
}
return igRecordFolderId;
}
示例13: createIGFolders
import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil; //导入依赖的package包/类
private long createIGFolders(PortletRequest request,long userId,long repositoryId) throws PortalException, SystemException{
//Variables for folder ids
Long igMainFolderId = 0L;
Long igPortletFolderId = 0L;
Long igRecordFolderId = 0L;
//Search for folders
boolean igMainFolderFound = false;
boolean igPortletFolderFound = false;
try {
//Get the main folder
Folder igMainFolder = DLAppLocalServiceUtil.getFolder(repositoryId,DLFolderConstants.DEFAULT_PARENT_FOLDER_ID,IMAGEGALLERY_MAINFOLDER);
igMainFolderId = igMainFolder.getFolderId();
igMainFolderFound = true;
//Get the portlet folder
DLFolder igPortletFolder = DLFolderLocalServiceUtil.getFolder(repositoryId,igMainFolderId,IMAGEGALLERY_PORTLETFOLDER);
igPortletFolderId = igPortletFolder.getFolderId();
igPortletFolderFound = true;
} catch (Exception ex) {
}
ServiceContext serviceContext= ServiceContextFactory.getInstance( DLFolder.class.getName(), request);
//Damos permisos al archivo para usuarios de comunidad.
serviceContext.setAddGroupPermissions(true);
serviceContext.setAddGuestPermissions(true);
//Create main folder if not exist
if(!igMainFolderFound) {
Folder newImageMainFolder=DLAppLocalServiceUtil.addFolder(userId, repositoryId, 0, IMAGEGALLERY_MAINFOLDER, IMAGEGALLERY_MAINFOLDER_DESCRIPTION, serviceContext);
igMainFolderId = newImageMainFolder.getFolderId();
igMainFolderFound = true;
}
//Create portlet folder if not exist
if(igMainFolderFound && !igPortletFolderFound){
Folder newImagePortletFolder = DLAppLocalServiceUtil.addFolder(userId, repositoryId, igMainFolderId, IMAGEGALLERY_PORTLETFOLDER, IMAGEGALLERY_PORTLETFOLDER_DESCRIPTION, serviceContext);
igPortletFolderFound = true;
igPortletFolderId = newImagePortletFolder.getFolderId();
}
//Create this record folder
if(igPortletFolderFound){
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmmss");
Date date = new Date();
String igRecordFolderName=dateFormat.format(date)+SEPARATOR+userId;
Folder newImageRecordFolder = DLAppLocalServiceUtil.addFolder(userId,repositoryId, igPortletFolderId,igRecordFolderName, igRecordFolderName, serviceContext);
igRecordFolderId = newImageRecordFolder.getFolderId();
}
return igRecordFolderId;
}
示例14: getFileToIS
import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil; //导入依赖的package包/类
private String getFileToIS(PortletDataContext context, long entryId, long moduleId){
try {
FileEntry image=DLAppLocalServiceUtil.getFileEntry(entryId);
String pathqu = getEntryPath(context, image);
String pathFile = getImgModulePath(context, moduleId);
context.addZipEntry(pathqu, image);
context.addZipEntry(pathFile + containsCharUpper(image.getTitle()), image.getContentStream());
return pathFile + containsCharUpper(image.getTitle());
} catch (Exception e) {
// TODO Auto-generated catch block
//e.printStackTrace();
log.info("* ERROR! getFileToIS: " + e.getMessage());
}
return "";
}
示例15: parseImage
import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil; //导入依赖的package包/类
private static void parseImage(Element imgElement, Element element, PortletDataContext context, Long moduleId){
String src = imgElement.attributeValue("src");
String []srcInfo = src.split("/");
String fileUuid = "", fileGroupId ="";
if(srcInfo.length >= 6 && srcInfo[1].compareTo("documents") == 0){
fileUuid = srcInfo[srcInfo.length-1];
fileGroupId = srcInfo[2];
String []uuidInfo = fileUuid.split("\\?");
String uuid="";
if(srcInfo.length > 0){
uuid=uuidInfo[0];
}
FileEntry file;
try {
file = DLAppLocalServiceUtil.getFileEntryByUuidAndGroupId(uuid, Long.parseLong(fileGroupId));
String pathqu = getEntryPath(context, file);
String pathFile = getDescriptionModulePath(context, moduleId);
context.addZipEntry(pathqu, file);
context.addZipEntry(pathFile + file.getTitle(), file.getContentStream());
Element entryElementLoc= element.addElement("descriptionfile");
entryElementLoc.addAttribute("path", pathqu);
entryElementLoc.addAttribute("file", pathFile + file.getTitle());
log.info(" + Description file image : " + file.getTitle() +" ("+file.getMimeType()+")");
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
log.info("* ERROR! Description file image : " + e.getMessage());
}
}
}