/** * Initializes the form fields with values from the given job bean.<P> * * @param info the job bean with which to fill the form */ public void loadFromBean(CmsScheduledJobInfo info) { // all other fields already populated by field group, we still need to handle the parameters for (Map.Entry<String, String> entry : info.getParameters().entrySet()) { addParamLine(entry.getKey(), entry.getValue()); } }
/** * @see org.opencms.configuration.I_CmsConfigurationParameterHandler#getConfiguration() */ public Map getConfiguration() { // this configuration does not support parameters if (LOG.isDebugEnabled()) { LOG.debug(org.opencms.configuration.Messages.get().getBundle().key( org.opencms.configuration.Messages.LOG_GET_CONFIGURATION_1, this)); } return getParameters(); }
/** * @see org.opencms.configuration.I_CmsConfigurationParameterHandler#getConfiguration() */ public CmsParameterConfiguration getConfiguration() { // this configuration does not support parameters if (LOG.isDebugEnabled()) { LOG.debug( org.opencms.configuration.Messages.get().getBundle().key( org.opencms.configuration.Messages.LOG_GET_CONFIGURATION_1, this)); } return new CmsParameterConfiguration(getParameters()); }
/** * @see org.opencms.workplace.list.A_CmsListDialog#fillDetails(java.lang.String) */ @Override protected void fillDetails(String detailId) { // get all scheduled jobs from manager Iterator<CmsListItem> i = getList().getAllContent().iterator(); while (i.hasNext()) { CmsListItem item = i.next(); CmsScheduledJobInfo job = OpenCms.getScheduleManager().getJob(item.getId()); if (detailId.equals(LIST_DETAIL_CONTEXTINFO)) { // job details: context info item.set(LIST_DETAIL_CONTEXTINFO, job.getContextInfo()); } else if (detailId.equals(LIST_DETAIL_PARAMETER)) { // job details: parameter StringBuffer params = new StringBuffer(32); Iterator<String> paramIt = job.getParameters().keySet().iterator(); while (paramIt.hasNext()) { String param = paramIt.next(); String value = job.getParameters().get(param); params.append(param).append("="); params.append(value).append("<br>"); } item.set(LIST_DETAIL_PARAMETER, params); } else { continue; } } }
String result = job.launch(cms, jobInfo.getParameters()); if (CmsStringUtil.isNotEmpty(result) && LOG.isInfoEnabled()) { LOG.info(Messages.get().getBundle().key(
String result = job.launch(cms, jobInfo.getParameters()); if (CmsStringUtil.isNotEmpty(result) && LOG.isInfoEnabled()) { LOG.info(