protected boolean existsDirectory(String path) { try { contentHostingService.getCollection(path); } catch (IdUnusedException e) { return false; } catch (TypeException e) { log.error(e.getMessage(), e); } catch (PermissionException e) { log.error("ResourcesHandler.existsDirectory: {}", e.toString()); } return true; }
private ContentResource getFirstAcceptableAttachement(List attachments) { for( int i =0; i < attachments.size();i++ ) { Reference attachment = (Reference)attachments.get(i); try { ContentResource res = m_contentHostingService.getResource(attachment.getId()); if (contentReviewService.isAcceptableContent(res)) { return res; } } catch (PermissionException e) { // TODO Auto-generated catch block e.printStackTrace(); M_log.warn(":geFirstAcceptableAttachment " + e.getMessage()); } catch (IdUnusedException e) { // TODO Auto-generated catch block e.printStackTrace(); M_log.warn(":geFirstAcceptableAttachment " + e.getMessage()); } catch (TypeException e) { // TODO Auto-generated catch block e.printStackTrace(); M_log.warn(":geFirstAcceptableAttachment " + e.getMessage()); } } return null; }
throw new TypeException(new_id); throw new TypeException(new_id);
e.printStackTrace(); }catch(TypeException e){ e.printStackTrace();
filename = getContainingFolderDisplayName(rootId, filename); } catch(TypeException e){ log.warn("Unexpected error occurred when trying to create Zip archive:" + extractName(rootId), e.getCause()); return; } catch(IdUnusedException e ){
protected boolean existsDirectory(String path) { try { contentHostingService.getCollection(path); } catch (IdUnusedException e) { return false; } catch (TypeException e) { log.error(e.getMessage(), e); } catch (PermissionException e) { log.error("ResourcesHandler.existsDirectory: {}", e.toString()); } return true; }
e.printStackTrace(); M_log.warn(":getAllAcceptableAttachments " + e.getMessage());
} catch (TypeException e) { log.warn("cannot remove resourceId=" + resourceId + ":" + e.getMessage()); log.warn("TypeException from ContentHostingService:" + e.getMessage()); } catch (InUseException e) { log.warn("cannot remove resourceId=" + resourceId + ":"
} catch (TypeException e) { log.warn("cannot remove resourceId=" + resourceId + ":" + e.getMessage()); log.warn("TypeException from ContentHostingService:" + e.getMessage()); } catch (InUseException e) { log.warn("cannot remove resourceId=" + resourceId + ":"
throw new TypeException(new_id); throw new TypeException(new_id);
/** * Pulls a ContentResource from ContentHostingService. * * @param String * The resourceId of the resource to get * * @return ContentResource * If found, null otherwise */ private ContentResource getAResource(String resourceId) throws PermissionException, IdUnusedException { ContentResource crEdit = null; try { crEdit = contentHostingService.getResource(resourceId); } catch (TypeException e) { LOG.error("TypeException while attempting to pull resource: " + resourceId + " for site: " + getSiteId() + ". " + e.getMessage(), e); throw new PodcastException(e); } return crEdit; }
throw new TypeException(new_folder_id); throw new TypeException(new_folder_id);
log.error(e.getMessage(), e); } catch (TypeException e) { log.error(e.getMessage(), e); } catch (InUseException e) { log.error(e.getMessage(), e);
throw new TypeException(new_folder_id); throw new TypeException(new_folder_id);
log.error(e.getMessage(), e); } catch (TypeException e) { log.error(e.getMessage(), e); } catch (InUseException e) { log.error(e.getMessage(), e);
throw new TypeException(new_id); throw new TypeException(new_id);
+ siteId + ": " + e.getMessage(), e); throw new PodcastException(e);
if (props.isLiveProperty(name)) throw new TypeException(name);