Refine search
public String getToolName(String toolId) { if(ReportManager.WHAT_EVENTS_ALLTOOLS.equals(toolId)) { return msgs.getString("all"); }else{ String toolName; try{ toolName = M_tm.getTool(toolId).getTitle(); }catch(Exception e){ try{ LOG.debug("No sakai tool found for toolId: " + toolId + " (tool undeployed?). Using bundle (if supplied) in sitestats/sitestats-impl/impl/src/bundle/org/sakaiproject/sitestats/impl/bundle/ for tool name."); toolName = msgs.getString(toolId, toolId); }catch(Exception e1){ LOG.debug("No translation found for toolId: " + toolId + " - using toolId as tool name. Please specify it in sitestats/sitestats-impl/impl/src/bundle/org/sakaiproject/sitestats/impl/bundle/"); toolName = toolId; } } return toolName; } }
public String getReviewError() { M_log.debug(this.getId() + " getReviewError No attachments submitted."); return null; if (cr == null ) M_log.debug(this + " getReviewError No suitable attachments found in list"); return null; errorMessage = rb.getString("content_review.error.REPORT_ERROR_NO_RETRY_CODE"); } else if (status.equals(ContentReviewItem.REPORT_ERROR_RETRY_CODE)) { errorMessage = rb.getString("content_review.error.REPORT_ERROR_RETRY_CODE"); } else if (status.equals(ContentReviewItem.SUBMISSION_ERROR_NO_RETRY_CODE)) { errorMessage = rb.getString("content_review.error.SUBMISSION_ERROR_NO_RETRY_CODE"); } else if (status.equals(ContentReviewItem.SUBMISSION_ERROR_RETRY_CODE)) { errorMessage = rb.getString("content_review.error.SUBMISSION_ERROR_RETRY_CODE"); } else if (status.equals(ContentReviewItem.SUBMISSION_ERROR_RETRY_EXCEEDED)) { errorMessage = rb.getString("content_review.error.SUBMISSION_ERROR_RETRY_EXCEEDED_CODE"); } else if (status.equals(ContentReviewItem.SUBMISSION_ERROR_USER_DETAILS_CODE)) { errorMessage = rb.getString("content_review.error.SUBMISSION_ERROR_USER_DETAILS_CODE"); } else if (ContentReviewItem.SUBMITTED_AWAITING_REPORT_CODE.equals(status) || ContentReviewItem.NOT_SUBMITTED_CODE.equals(status)) { errorMessage = rb.getString("content_review.pending.info"); errorMessage = rb.getString("content_review.error"); } catch (Exception e) {
out.println("<div class=\"portletBody\">"); out.println("<h4>" + rb.getString("bugreport.senttitle") + "</h4>"); out.println("<p>" + rb.getString("bugreport.sentnote") + "<br /><br /></p>"); out.println("<h4>" + rb.getString("bugreport.recoverytitle") + "</h4>"); out.println("<p>" + rb.getString("bugreport.recoveryinstructions.reported") + ""); out.println("<ul><li>" + rb.getString("bugreport.recoveryinstructions1") + "</li>"); out.println("<li>" + rb.getString("bugreport.recoveryinstructions2") + "</li>"); out.println("<li>" + rb.getString("bugreport.recoveryinstructions3") + "</li></ul><br /><br /></p>"); log.warn(rbDefault.getString("bugreport.troublethanks"), any);
M_log.debug(this.getId() + " getReviewReport(ContentResource) called with cr == null"); return null; errorMessage = rb.getString("content_review.error.REPORT_ERROR_NO_RETRY_CODE"); errorMessage = rb.getString("content_review.error.REPORT_ERROR_RETRY_CODE"); errorMessage = rb.getString("content_review.error.SUBMISSION_ERROR_NO_RETRY_CODE"); errorMessage = rb.getString("content_review.error.SUBMISSION_ERROR_RETRY_CODE"); errorMessage = rb.getString("content_review.error.SUBMISSION_ERROR_RETRY_EXCEEDED_CODE"); errorMessage = rb.getString("content_review.error.SUBMISSION_ERROR_USER_DETAILS_CODE"); errorMessage = rb.getString("content_review.pending.info"); errorMessage = rb.getString("content_review.error"); M_log.warn(this + ":getReviewError(ContentResource) " + e.getMessage()); return null;
private byte[] generateNoDataChart(int width, int height) { BufferedImage img = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB); Graphics2D g2d = img.createGraphics(); g2d.setBackground(parseColor(M_sm.getChartBackgroundColor())); g2d.clearRect(0, 0, width-1, height-1); g2d.setColor(parseColor("#cccccc")); g2d.drawRect(0, 0, width-1, height-1); Font f = new Font("SansSerif", Font.PLAIN, 12); g2d.setFont(f); FontMetrics fm = g2d.getFontMetrics(f); String noData = msgs.getString("no_data"); int noDataWidth = fm.stringWidth(noData); int noDataHeight = fm.getHeight(); g2d.setColor(parseColor("#555555")); g2d.drawString(noData, width/2 - noDataWidth/2, height/2 - noDataHeight/2 + 2); final ByteArrayOutputStream out = new ByteArrayOutputStream(); try{ ImageIO.write(img, "png", out); }catch(IOException e){ LOG.warn("Error occurred while generating SiteStats chart image data", e); } return out.toByteArray(); }
MessageContent mc = getMessageContent(event); StringBuilder message = new StringBuilder(); message.append(rl.getString("SiteEmailNotificationRWiki.5")) .append(mc.title) .append(rl.getString("SiteEmailNotificationRWiki.6")) .append(ServerConfigurationService.getString("ui.service", "Sakai")) .append(" (") .append(ServerConfigurationService.getPortalUrl()) .append(") \n\n") .append(rl.getString("SiteEmailNotificationRWiki.13")) .append(mc.title) .append("\" > ") .append(mc.localName) .append("\n") .append(rl.getString("SiteEmailNotificationRWiki.16")) .append(mc.moddate) .append("\n") .append(rl.getString("SiteEmailNotificationRWiki.18")) .append(mc.user) .append("\n \n") .append(rl.getString("SiteEmailNotificationRWiki.19")) .append(mc.localName) .append(" ") .append(mc.url) .append(" \n \n") .append(rl.getString("SiteEmailNotificationRWiki.4")) .append(mc.content) .append("\n");
String value = getString(key); if (originalLength != value.length()) log.warn("getInt(key, dflt) bundle name=" + this.baseName + ", locale=" + getLocale() + ", key=" + key + ", dflt=" + dflt+ ", Trailing whitespace trimmed."); log.debug("getInt(key, dflt) bundle name=" + this.baseName + ", locale=" + getLocale() + ", key=" + key + ", dflt=" + dflt+ ", NumberFormatException");
private byte[] generateNoDataChart(int width, int height) { BufferedImage img = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB); Graphics2D g2d = img.createGraphics(); g2d.setBackground(parseColor(statsManager.getChartBackgroundColor())); g2d.clearRect(0, 0, width-1, height-1); g2d.setColor(parseColor("#cccccc")); g2d.drawRect(0, 0, width-1, height-1); Font f = new Font("SansSerif", Font.PLAIN, 12); g2d.setFont(f); FontMetrics fm = g2d.getFontMetrics(f); String noData = msgs.getString("no_data"); int noDataWidth = fm.stringWidth(noData); int noDataHeight = fm.getHeight(); g2d.setColor(parseColor("#555555")); g2d.drawString(noData, width/2 - noDataWidth/2, height/2 - noDataHeight/2 + 2); final ByteArrayOutputStream out = new ByteArrayOutputStream(); try{ ImageIO.write(img, "png", out); }catch(IOException e){ log.warn("Error occurred while generating SiteStats chart image data", e); } return out.toByteArray(); }
protected String getHtmlMessage(Event event) { MessageContent mc = getMessageContent(event); StringBuilder sb = new StringBuilder(); sb.append(rl.getString("SiteEmailNotificationRWiki.5")) .append(mc.title) .append(rl.getString("SiteEmailNotificationRWiki.6")) .append(ServerConfigurationService.getString("ui.service", "Sakai")) .append(" (") .append(ServerConfigurationService.getPortalUrl()) .append(") \n\n") .append(rl.getString("SiteEmailNotificationRWiki.13")) .append(mc.title) .append("\" > ") .append(mc.localName) .append("\n") .append(rl.getString("SiteEmailNotificationRWiki.16")) .append(mc.moddate) .append("\n") .append(rl.getString("SiteEmailNotificationRWiki.18")) .append(mc.user) .append("\n \n") .append(rl.getString("SiteEmailNotificationRWiki.19")) .append(mc.localName) .append(" ") .append(mc.url) .append(" \n \n") .append(rl.getString("SiteEmailNotificationRWiki.4")) .append(mc.content) .append("\n");
String subject = serverConfigurationService.getString("ui.service", "Sakai") + " " + rb.getString("notif") + " " + period.firstTime().toStringLocalDate(); body.append(rb.getString("thiaut") + " " + serverConfigurationService.getString("ui.service", "Sakai") + " " + "(" + serverConfigurationService.getServerUrl() + ")" + "\n" + rb.getString("youcan") + "\n"); if (log.isDebugEnabled()) log.debug(this + " sending digest email to: " + to); log.warn(".send: digest to: " + id + " not sent: " + any.toString());
sheet.addHeader("Group", rb.getString("grades.eid"), rb.getString("grades.members"), rb.getString("grades.grade"), rb.getString("grades.submissionTime"),rb.getString("grades.late")); AssignmentSubmission s = gs.getSubmission(); M_log.debug( this + " ZIPGROUP " + ( s == null ? "null": s.getId() )); String sSubAttachmentFolder = submittersName + rb.getString("stuviewsubm.submissatt") + "/"; ZipEntry sSubAttachmentFolderEntry = new ZipEntry(sSubAttachmentFolder); out.putNextEntry(sSubAttachmentFolderEntry); String feedbackSubAttachmentFolder = submittersName + rb.getString("download.feedback.attachment") + "/"; ZipEntry feedbackSubAttachmentFolderEntry = new ZipEntry(feedbackSubAttachmentFolder); out.putNextEntry(feedbackSubAttachmentFolderEntry);
log.warn("Redirecting tool inline url: "+pagerefUrl); res.sendRedirect(pagerefUrl); return; log.debug("allowBuffer="+allowBuffer+" url="+req.getRequestURL()); log.debug("Bypassing buffer to forwardTool per configuration"); ActiveTool tool = ActiveToolManager.getActiveTool(commonToolId); portal.forwardTool(tool, req, res, siteTool, log.debug("Starting the buffer process..."); log.debug(msg); } else { log.warn(msg); rcontext.put("siteTitle", rb.getString("sit_mywor") ); rcontext.put("siteTitleTruncated", rb.getString("sit_mywor") ); rcontext.put("isUserSite", true); }else{
protected String deleteContentLinkDao(Long key, String siteId, boolean isAdminRole, boolean isMaintainRole) return rb.getString("error.maintain.link"); return rb.getString("error.id.not.found"); return rb.getString("error.content.not.found"); return rb.getString("error.placement.not.found"); return rb.getString("error.placement.not.found"); return rb.getString("error.placement.not.found"); siteService.save(site); } catch (Exception e) { return rb.getString("error.placement.not.removed"); M_log.warn(this + " LTI content="+key+" placement="+tool.getId()+" could not find page in site=" + siteStr); M_log.warn(this + " LTI content="+key+" placement="+tool.getId()+" could not remove page from site=" + siteStr); return new String(rb.getFormattedMessage("error.link.placement.update", new Object[]{key.toString()}));
M_log.debug(this + " ENTERING ADD DUPLICATE ASSIGNMENT WITH ID : " + assignmentReference); M_log.debug(this + " addDuplicateAssignment : assignment exists - will copy"); retVal.setTitle(existingAssignment.getTitle() + " - " + rb.getString("assignment.copy")); retVal.setSection(existingAssignment.getSection()); retVal.setOpenTime(existingAssignment.getOpenTime()); M_log.debug(this + " ADD DUPLICATE ASSIGNMENT : LEAVING ADD DUPLICATE ASSIGNMENT WITH ID : " + retVal != null ? retVal.getId() : "");
log.warn("Redirecting tool inline url: "+pagerefUrl); res.sendRedirect(pagerefUrl); return; log.debug("allowBuffer="+allowBuffer+" url="+req.getRequestURL()); log.debug("Bypassing buffer to forwardTool per configuration"); ActiveTool tool = ActiveToolManager.getActiveTool(commonToolId); portal.forwardTool(tool, req, res, siteTool, log.debug("Starting the buffer process..."); log.debug(msg); } else { log.warn(msg); rcontext.put("siteTitle", rb.getString("sit_mywor") ); rcontext.put("siteTitleTruncated", rb.getString("sit_mywor") ); rcontext.put("isUserSite", true); }else{
out.println("<h3>" + rb.getString("bugreport.error") + "</h3>"); out.println("<p>" + rb.getString("bugreport.statement") + "<br /><br /></p>"); out.println("<h4>" + rb.getString("bugreport.sendtitle") + "</h4>"); out.println("<p>" + rb.getString("bugreport.sendinstructions") + "</p>"); out.println("<div class=\"act\">"); out.println("<input type=\"submit\" value=\"" + rb.getString("bugreport.sendsubmit") + "\">"); out.println("</div>"); out.println("</form><br />"); out.println("<h4>" + rb.getString("bugreport.recoverytitle") + "</h4>"); out.println("<p>" + rb.getString("bugreport.recoveryinstructions") + ""); out.println("<ul><li>" + rb.getString("bugreport.recoveryinstructions1") + "</li>"); out.println("<li>" + rb.getString("bugreport.recoveryinstructions2") + "</li>"); out.println("<li>" + rb.getString("bugreport.recoveryinstructions3") + "</li></ul><br /><br /></p>"); out.println("<h4>" + rb.getString("bugreport.detailstitle") + "</h4>"); out.println("<p>" + rb.getString("bugreport.detailsnote") + "</p>"); out.println(rb.getString("bugreport.user") + ": " + FormattedText.escapeHtml(userId, false) + "\n"); out.println(rb.getString("bugreport.usagesession") + ": " + FormattedText.escapeHtml(usageSessionId, false) + "\n"); out.println(rb.getString("bugreport.time") + ": "
M_log.debug(this + ":getGradesSpreadsheet cannot get site context=" + idSite + e.getMessage()); row.createCell(0).setCellValue(rb.getString("download.spreadsheet.title")); row.createCell(0).setCellValue(rb.getString("download.spreadsheet.site") + siteTitle); rb.getString("download.spreadsheet.date") + TimeService.newTime().toStringLocalFull()); cell.setCellValue(rb.getString("download.spreadsheet.column.name")); cell.setCellValue(rb.getString("download.spreadsheet.column.userid")); M_log.warn(" getGradesSpreadSheet " + e.getMessage() + " userId = " + userId); cell = row.createCell(cellNum); cell.setCellType(1); cell.setCellValue(rb.getString("listsub.nosub")); cell.setCellValue(rb.getString("gen.nograd")); cell.setCellValue(rb.getString("gen.nograd")); M_log.warn(" getGradesSpreadsheet Can not output the grade spread sheet for reference= " + ref);
retval = rb.getString("error.maintain.link"); return retval; retval = new String("1" + rb.getString("error.id.not.found")); return retval; Map<String,Object> content = getContentDao(key, siteId, isAdminRole); if ( content == null ) { retval = new String("1" + rb.getString("error.content.not.found")); return retval; M_log.warn(this + " cannot add page and basic lti tool to site " + siteId); M_log.warn(this + " cannot find site " + contentSite);
M_log.debug(this + " ENTERING ADD DUPLICATE ASSIGNMENT CONTENT : " + contentReference); else M_log.debug(this + " ADD DUPL. CONTENT : found match - will copy"); retVal.setTitle(existingContent.getTitle() + " - " + rb.getString("assignment.copy")); retVal.setInstructions(existingContent.getInstructions()); retVal.setHonorPledge(existingContent.getHonorPledge()); M_log.warn(" LEAVING ADD DUPLICATE CONTENT : " + e.toString()); M_log.debug(this + " LEAVING ADD DUPLICATE CONTENT WITH ID : " + retVal != null ? retVal.getId() : "");