/** * Creates a copied instance of this localized exception.<p> * * @param container the message container * @param cause the root cause * * @return a copied instance of this localized exception */ public CmsRuntimeException createException(CmsMessageContainer container, Throwable cause) { return new CmsRuntimeException(container, cause); }
/** * @see org.opencms.loader.I_CmsResourceLoader#service(org.opencms.file.CmsObject, org.opencms.file.CmsResource, javax.servlet.ServletRequest, javax.servlet.ServletResponse) */ @Override public void service(CmsObject cms, CmsResource file, ServletRequest req, ServletResponse res) { throw new CmsRuntimeException( Messages.get().container(Messages.ERR_SERVICE_UNSUPPORTED_1, getClass().getName())); } }
/** * @see org.opencms.loader.I_CmsResourceLoader#service(org.opencms.file.CmsObject, org.opencms.file.CmsResource, javax.servlet.ServletRequest, javax.servlet.ServletResponse) */ public void service(CmsObject cms, CmsResource resource, ServletRequest req, ServletResponse res) { throw new CmsRuntimeException( Messages.get().container(Messages.ERR_SERVICE_UNSUPPORTED_1, getClass().getName())); }
/** * Sets if the subscription functionality is enabled.<p> * * @param enabled the flag indicating if the subscription functionality is enabled */ public void setEnabled(String enabled) { if (m_frozen) { throw new CmsRuntimeException(Messages.get().container(Messages.ERR_CONFIG_SUBSCRIPTIONMANAGER_FROZEN_0)); } m_enabled = Boolean.valueOf(enabled).booleanValue(); }
/** * Sets if the publish queue is re-initialized on startup.<p> * * @param publishQueuePersistance the persistence flag, parsed as <code>boolean</code> */ public void setPublishQueuePersistance(String publishQueuePersistance) { if (m_frozen) { throw new CmsRuntimeException(Messages.get().container(Messages.ERR_CONFIG_FROZEN_0)); } m_publishQueuePersistance = Boolean.valueOf(publishQueuePersistance).booleanValue(); }
/** * This method is called when the flex controller can not be found during initialization.<p> * * Override this if you are reusing old workplace classes in a context where no flex controller is available. */ protected void handleMissingFlexController() { // controller not found - this request was not initialized properly throw new CmsRuntimeException( Messages.get().container(Messages.ERR_MISSING_CMS_CONTROLLER_1, CmsJspBean.class.getName())); }
/** * This method is called when the flex controller can not be found during initialization.<p> * * Override this if you are reusing old workplace classes in a context where no flex controller is available. */ private void handleMissingFlexController() { // controller not found - this request was not initialized properly throw new CmsRuntimeException( Messages.get().container(Messages.ERR_MISSING_CMS_CONTROLLER_1, CmsMacroFormatterResolver.class.getName())); }
/** * Checks if this context info configuration is frozen.<p> * * @throws CmsRuntimeException in case the configuration is already frozen */ protected void checkFrozen() throws CmsRuntimeException { if (m_frozen) { throw new CmsRuntimeException(Messages.get().container(Messages.ERR_CONTEXT_INFO_FROZEN_0)); } } }
/** * @see org.opencms.xml.types.I_CmsXmlContentValue#getStringValue(org.opencms.file.CmsObject) */ public String getStringValue(CmsObject cms) throws CmsRuntimeException { throw new CmsRuntimeException(Messages.get().container(Messages.ERR_NESTED_GETVALUE_0)); }
/** * Sets the publish engine during initialization.<p> * * @param publishEngine the publish engine instance */ public void setPublishEngine(CmsPublishEngine publishEngine) { if (m_frozen) { throw new CmsRuntimeException(Messages.get().container(Messages.ERR_CONFIG_FROZEN_0)); } m_publishEngine = publishEngine; }
/** * Sets the security manager during initialization.<p> * * @param securityManager the security manager */ public void setSecurityManager(CmsSecurityManager securityManager) { if (m_frozen) { throw new CmsRuntimeException(Messages.get().container(Messages.ERR_CONFIG_FROZEN_0)); } m_securityManager = securityManager; }
/** * @see org.opencms.xml.types.I_CmsXmlContentValue#setStringValue(org.opencms.file.CmsObject, java.lang.String) */ public void setStringValue(CmsObject cms, String value) { throw new CmsRuntimeException(Messages.get().container(Messages.ERR_NESTED_SETVALUE_0)); } }
/** * Sets the name of the menu rule set.<p> * * @param name the name of the menu rule set */ public void setName(String name) { if (m_frozen) { throw new CmsRuntimeException(Messages.get().container(Messages.ERR_MENURULE_FROZEN_0)); } m_name = name; }
/** * @see org.opencms.xml.types.I_CmsXmlSchemaType#getSchemaDefinition() */ public String getSchemaDefinition() { throw new CmsRuntimeException(Messages.get().container(Messages.ERR_NESTED_SCHEMA_0)); }
/** * @see org.opencms.xml.types.I_CmsXmlSchemaType#newInstance(java.lang.String, java.lang.String, java.lang.String) */ public I_CmsXmlSchemaType newInstance(String name, String minOccurs, String maxOccurs) { throw new CmsRuntimeException(Messages.get().container(Messages.ERR_NESTED_NEWINSTANCE_0)); }
/** * Sets if the subscription functionality is enabled.<p> * * @param enabled the flag indicating if the subscription functionality is enabled */ public void setEnabled(boolean enabled) { if (m_frozen) { throw new CmsRuntimeException(Messages.get().container(Messages.ERR_CONFIG_SUBSCRIPTIONMANAGER_FROZEN_0)); } m_enabled = enabled; }
/** * Sets the publish list remove mode.<p> * * @param publishListRemoveMode the publish list remove mode */ public void setPublishListRemoveMode(CmsPublishManager.PublishListRemoveMode publishListRemoveMode) { if (m_frozen) { throw new CmsRuntimeException(Messages.get().container(Messages.ERR_CONFIG_FROZEN_0)); } m_publishListRemoveMode = publishListRemoveMode; }
/** * Increments this version number by 1 in the last digit.<p> */ protected void increment() { if (m_number < 1999999999999L) { m_number += (long)Math.pow(1000.0, (4 - m_dots)); setVersion(m_number); } else { throw new CmsRuntimeException(Messages.get().container(Messages.ERR_MODULE_VERSION_NUMBER_0)); } }
/** * Increments this version number by 1 in the last digit.<p> */ protected void increment() { if (m_number < 1999999999999L) { m_number += (long)Math.pow(1000.0, (4 - m_dots)); setVersion(m_number); } else { throw new CmsRuntimeException(Messages.get().container(Messages.ERR_MODULE_VERSION_NUMBER_0)); } }
/** * Checks if this property is frozen, that is read only.<p> */ private void checkFrozen() { if (m_frozen) { throw new CmsRuntimeException(Messages.get().container(Messages.ERR_PROPERTY_FROZEN_1, toString())); } }