/** * Sets the "frozen" state of this job.<p> * * This is an internal operation to be used only by the <code>{@link CmsScheduleManager}</code>.<p> * * @param frozen the "frozen" state to set */ protected synchronized void setFrozen(boolean frozen) { if (frozen && !m_frozen) { // "freeze" the job configuration m_parameters = Collections.unmodifiableSortedMap(m_parameters); m_context.freeze(); m_frozen = true; } else if (!frozen && m_frozen) { // "unfreeze" the job configuration m_parameters = new TreeMap(m_parameters); m_frozen = false; } }
/** * Sets the "frozen" state of this job.<p> * * This is an internal operation to be used only by the <code>{@link CmsScheduleManager}</code>.<p> * * @param frozen the "frozen" state to set */ protected synchronized void setFrozen(boolean frozen) { if (frozen && !m_frozen) { // "freeze" the job configuration m_parameters = Collections.unmodifiableSortedMap(m_parameters); m_context.freeze(); m_frozen = true; } else if (!frozen && m_frozen) { // "unfreeze" the job configuration m_parameters = new TreeMap<String, String>(m_parameters); m_frozen = false; } }
/** * Updates the request time in the internal context information of the user with the current system time.<p> * * This is required before executing the job, otherwise the context information request time would be the time * the context object was initially created.<p> */ protected void updateContextRequestTime() { CmsContextInfo context = (CmsContextInfo)m_context.clone(); context.setRequestTime(System.currentTimeMillis()); context.freeze(); m_context = context; } }
/** * Updates the request time in the internal context information of the user with the current system time.<p> * * This is required before executing the job, otherwise the context information request time would be the time * the context object was initially created.<p> */ protected void updateContextRequestTime() { CmsContextInfo context = (CmsContextInfo)m_context.clone(); context.setRequestTime(System.currentTimeMillis()); context.freeze(); m_context = context; } }