private Site getCurrentSite(String id) { Site site = null; try { site = SiteService.getSite(id); } catch (IdUnusedException e) { log.error(e.getMessage()); } return site; }
public String getCustomUrlLabel(String id) throws IdUnusedException { UrlWrapper wrapper = (UrlWrapper) m_urls.get(id); if (wrapper == null) { throw new IdUnusedException(id); } return wrapper.getLabel(); }
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; }
/** * {@inheritDoc} */ @Override public Site getSite(final String siteId) { try { return this.siteService.getSite(siteId); } catch (final IdUnusedException e) { e.printStackTrace(); return null; } }
throw new EntityNotDefinedException(e.getId()); if ((content == null) || (content.length == 0)) throw new IdUnusedException(ref.getReference()); if (content == null) throw new IdUnusedException(ref.getReference()); if (content == null) throw new IdUnusedException(ref.getReference());
throw new EntityNotDefinedException(e.getId());
private Site getSite(String siteId) { Site site = null; try { site = SiteService.getSite(siteId); } catch (IdUnusedException e) { // TODO Auto-generated catch block e.printStackTrace(); } return site; }
throw new EntityNotDefinedException(e.getId());
private Site getCurrentSite(String id) { Site site = null; try { site = SiteService.getSite(id); } catch (IdUnusedException e) { log.error(e.getMessage()); } return site; }
public CitationCollection getCollection(String collectionId) throws IdUnusedException { CitationCollection edit = m_storage.getCollection(collectionId); if (edit == null) { throw new IdUnusedException(collectionId); } return edit; }
e.printStackTrace(); M_log.warn(":getAllAcceptableAttachments " + e.getMessage());
public String getSiteTile(String siteId) { Site site; try { site = siteService.getSite(siteId); return site.getTitle(); } catch (IdUnusedException e) { // TODO Auto-generated catch block e.printStackTrace(); } return null; }
throw new EntityNotDefinedException(e.getId());
/** * @inheritDoc */ public String getJoinGroupId(String siteID) { Site site = null; try { // get the site site = getDefinedSite(siteID); } catch (IdUnusedException iue) { log.error("Site could not be determined for getting the join group: " + iue.getMessage(), iue); } // pass to the JoinDelegate method to handle the logic return joinSiteDelegate.getJoinGroupId(site); }
/** * @inheritDoc */ public Digest getDigest(String id) throws IdUnusedException { Digest digest = findDigest(id); if (digest == null) throw new IdUnusedException(id); return digest; }
/** * {@inheritDoc} */ @Override public boolean saveSite(final Site site) { try { this.siteService.save(site); } catch (final IdUnusedException e) { e.printStackTrace(); return false; } catch (final PermissionException e) { e.printStackTrace(); return false; } return true; }
throw new EntityNotDefinedException(e.getId());
/** * @inheritDoc */ public boolean isAllowedToJoin(String siteID) { Site site = null; try { // get the site site = getDefinedSite(siteID); } catch (IdUnusedException iue) { log.error("Site could not be determined for allowed to join method: " + iue.getMessage(), iue); return false; } // pass to the JoinDelegate method to handle the logic return joinSiteDelegate.isAllowedToJoin(site); }
public Citation getCitation(String citationId) throws IdUnusedException { checkForUpdates(); Citation citation = (Citation) m_citations.get(citationId); if (citation == null) { throw new IdUnusedException(citationId); } return citation; }