Package railo.runtime.exp

Examples of railo.runtime.exp.SecurityException


  public void updateComponentLocalSearch(Boolean componentLocalSearch) throws SecurityException {
      checkWriteAccess();
    boolean hasAccess=ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_SETTING);
    if(!hasAccess)
            throw new SecurityException("no access to update component Local Search");
       
        Element scope=_getRootElement("component");
        scope.setAttribute("local-search",Caster.toString(componentLocalSearch,""));
  }
View Full Code Here


 
  public void updateComponentPathCache(Boolean componentPathCache) throws SecurityException {
    checkWriteAccess();
    boolean hasAccess=ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_SETTING);
    if(!hasAccess)
            throw new SecurityException("no access to update component Cache Path");
       
        Element scope=_getRootElement("component");
        if(!Caster.toBooleanValue(componentPathCache,false))
          config.clearComponentCache();
        scope.setAttribute("use-cache-path",Caster.toString(componentPathCache,""));
View Full Code Here

        scope.setAttribute("use-cache-path",Caster.toString(componentPathCache,""));
  }
  public void updateCTPathCache(Boolean ctPathCache) throws SecurityException {
    checkWriteAccess();
    if(!ConfigWebUtil.hasAccess(config, SecurityManager.TYPE_CUSTOM_TAG))
      throw new SecurityException("no access to update custom tag setting");
   
     if(!Caster.toBooleanValue(ctPathCache,false))
            config.clearCTCache();
          Element scope=_getRootElement("custom-tag");
        scope.setAttribute("use-cache-path",Caster.toString(ctPathCache,""));
View Full Code Here

    public void updateDebug(Boolean debug, Boolean database, Boolean exception, Boolean tracing, Boolean timer,
        Boolean implicitAccess, Boolean queryUsage) throws SecurityException {
      checkWriteAccess();
        boolean hasAccess=ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_DEBUGGING);
        if(!hasAccess)
            throw new SecurityException("no access to change debugging settings");
        Element debugging=_getRootElement("debugging");
       
        if(debug!=null)debugging.setAttribute("debug",Caster.toString(debug.booleanValue()));
        else debugging.removeAttribute("debug");
       
View Full Code Here

     */
    public void updateDebugTemplate(String template) throws SecurityException {
      checkWriteAccess();
        boolean hasAccess=ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_DEBUGGING);
        if(!hasAccess)
            throw new SecurityException("no access to change debugging settings");

        Element debugging=_getRootElement("debugging");
        //if(template.trim().length()>0)
          debugging.setAttribute("template",template);
    }
View Full Code Here

     */
    public void updateErrorTemplate(int statusCode,String template) throws SecurityException {
      checkWriteAccess();
        boolean hasAccess=ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_DEBUGGING);
        if(!hasAccess)
            throw new SecurityException("no access to change error settings");

        Element error=_getRootElement("error");
        //if(template.trim().length()>0)
          error.setAttribute("template-"+statusCode,template);
    }
View Full Code Here

    public void updateErrorStatusCode(Boolean doStatusCode) throws SecurityException {
      checkWriteAccess();
        boolean hasAccess=ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_DEBUGGING);
        if(!hasAccess)
            throw new SecurityException("no access to change error settings");

        Element error=_getRootElement("error");
        error.setAttribute("status-code",Caster.toString(doStatusCode,""));
    }
View Full Code Here

     */
    public void updateComponentDumpTemplate(String template) throws SecurityException {
      checkWriteAccess();
        boolean hasAccess=ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_SETTING);
        if(!hasAccess)
            throw new SecurityException("no access to update component setting");
       
        Element component=_getRootElement("component");
        //if(template.trim().length()>0)
          component.setAttribute("dump-template",template);
    }
View Full Code Here

         short tagExecute,short tagImport, short tagObject, short tagRegistry,
         short cache, short gateway,short orm,
         short accessRead, short accessWrite) throws SecurityException {
      checkWriteAccess();
        if(!(config instanceof ConfigServer))
            throw new SecurityException("can't change security settings from this context");
       
        Element security=_getRootElement("security");
        updateSecurityFileAccess(security,fileAccess,file);
        security.setAttribute("setting",            SecurityManagerImpl.toStringAccessValue(setting));
        security.setAttribute("file",               SecurityManagerImpl.toStringAccessValue(file));
View Full Code Here

          short tagExecute,short tagImport, short tagObject, short tagRegistry,
          short cache,short gateway,short orm,
          short accessRead, short accessWrite) throws SecurityException, ApplicationException {
      checkWriteAccess();
        if(!(config instanceof ConfigServer))
            throw new SecurityException("can't change security settings from this context");
       
        Element security=_getRootElement("security");
        Element[] children = ConfigWebFactory.getChildren(security,"accessor");
        Element accessor=null;
        for(int i=0;i<children.length;i++) {
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.