Package railo.runtime.exp

Examples of railo.runtime.exp.SecurityException


    public void setMailLog(String logFile, String level) throws PageException {
      checkWriteAccess();
      boolean hasAccess=ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_MAIL);
       
        if(!hasAccess)
            throw new SecurityException("no access to update mail server settings");
        ConfigWebUtil.getFile(config,config.getRootDirectory(),logFile,FileUtil.TYPE_FILE);
       
        Element mail=_getRootElement("mail");
        mail.setAttribute("log",logFile);
        mail.setAttribute("log-level",level);
View Full Code Here


    public void setMailSpoolEnable(Boolean spoolEnable) throws SecurityException {
      checkWriteAccess();
      boolean hasAccess=ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_MAIL);
       
        if(!hasAccess)
            throw new SecurityException("no access to update mail server settings");
        Element mail=_getRootElement("mail");
        mail.setAttribute("spool-enable",Caster.toString(spoolEnable,""));
        //config.setMailSpoolEnable(spoolEnable);
    }
View Full Code Here

     */
    public void setMailTimeout(Integer timeout) throws SecurityException {
      checkWriteAccess();
      boolean hasAccess=ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_MAIL);
        if(!hasAccess)
            throw new SecurityException("no access to update mail server settings");
        Element mail=_getRootElement("mail");
        mail.setAttribute("timeout",Caster.toString(timeout,""));
        //config.setMailTimeout(timeout);
    }
View Full Code Here

     * @throws SecurityException
     */
    public void setMailDefaultCharset(String charset) throws PageException {
      checkWriteAccess();
      boolean hasAccess = ConfigWebUtil.hasAccess(config, SecurityManager.TYPE_MAIL);
      if(!hasAccess) throw new SecurityException("no access to update mail server settings");
       
      if(!StringUtil.isEmpty(charset)){
      try {
        IOUtil.checkEncoding(charset);
      } catch (IOException e) {
View Full Code Here

     */
    public void updateMailServer(String hostName,String username,String password, int port, boolean tls, boolean ssl) throws PageException {
      checkWriteAccess();
      boolean hasAccess=ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_MAIL);
        if(!hasAccess)
            throw new SecurityException("no access to update mail server settings");
       
        /*try {
            SMTPVerifier.verify(hostName,username,password,port);
        } catch (SMTPException e) {
            throw Caster.toPageException(e);
View Full Code Here

        else physical=physical.trim();
        if(archive==null) archive="";
        else archive=archive.trim();
        primary=primary.trim();
        if(!hasAccess)
            throw new SecurityException("no access to update mappings");
       
        // check virtual
            if(virtual==null || virtual.length()==0)
                throw new ExpressionException("virtual path cannot be a empty value");
            virtual=virtual.replace('\\','/');
View Full Code Here

      checkWriteAccess();
      boolean hasAccess=true;// TODO ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_REST);
        virtual=virtual.trim();
        physical=physical.trim();
        if(!hasAccess)
            throw new SecurityException("no access to update REST mapping");
       
        // check virtual
            if(virtual==null || virtual.length()==0)
                throw new ExpressionException("virtual path cannot be a empty value");
            virtual=virtual.replace('\\','/');
View Full Code Here

      _updateCustomTag(virtual, physical, archive, primary, inspect);
    }
    private void _updateCustomTag(String virtual,String physical,String archive,String primary, short inspect) throws ExpressionException, SecurityException {
      boolean hasAccess=ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_CUSTOM_TAG);
        if(!hasAccess)
            throw new SecurityException("no access to change custom tag settings");
        if(physical==null)physical="";
        if(archive==null)archive="";
       
        //virtual="/custom-tag";
        if(StringUtil.isEmpty(virtual))virtual=createVirtual(physical,archive);
View Full Code Here

     */
    public void updateJavaCFX(String name,String strClass) throws PageException {
      checkWriteAccess();
      boolean hasAccess=ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_CFX_SETTING);
       
        if(!hasAccess) throw new SecurityException("no access to change cfx settings");
       
       
        try {
          Class clazz = ClassUtil.loadClass(config.getClassLoader(),strClass);
      if(!Reflector.isInstaneOf(clazz, CustomTag.class))
View Full Code Here

   
    public void updateCPPCFX(String name, String procedure, String strServerLibrary, boolean keepAlive) throws PageException {
      checkWriteAccess();
      boolean hasAccess=ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_CFX_SETTING);
       
        if(!hasAccess) throw new SecurityException("no access to change cfx settings");
       
        // name
        if(StringUtil.isEmpty(name))
            throw new ExpressionException("name cannot be a empty value");
       
View Full Code Here

TOP

Related Classes of railo.runtime.exp.SecurityException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.