Package railo.runtime.exp

Examples of railo.runtime.exp.SecurityException


   
    public void updateScriptProtect(String strScriptProtect) throws SecurityException {
      checkWriteAccess();
        boolean hasAccess=ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_SETTING);
        if(!hasAccess)
            throw new SecurityException("no access to update script protect");
       
        Element scope=_getRootElement("application");
        scope.setAttribute("script-protect",strScriptProtect.trim());
    }
View Full Code Here


   
    public void updateAllowURLRequestTimeout(Boolean allowURLRequestTimeout) throws SecurityException {
      checkWriteAccess();
        boolean hasAccess=ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_SETTING);
        if(!hasAccess)
            throw new SecurityException("no access to update AllowURLRequestTimeout");
       
        Element scope=_getRootElement("application");
        scope.setAttribute("allow-url-requesttimeout",Caster.toString(allowURLRequestTimeout,""));
    }
View Full Code Here

     */
    public void updateTimeZone(String timeZone) throws SecurityException {
      checkWriteAccess();
        boolean hasAccess=ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_SETTING);
        if(!hasAccess)
            throw new SecurityException("no access to update regional setting");
       
        Element regional=_getRootElement("regional");
        regional.setAttribute("timezone",timeZone.trim());
       
    }
View Full Code Here

            }
       }
       
       boolean hasAccess=ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_SETTING);
       if(!hasAccess)
            throw new SecurityException("no access to update regional setting");
       
        Element scope=_getRootElement("regional");
        scope.setAttribute("timeserver",timeServer.trim());
        if(useTimeServer!=null)scope.setAttribute("use-timeserver",Caster.toString(useTimeServer));
        else scope.removeAttribute("use-timeserver");
View Full Code Here

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

  public void updateComponentDeepSearch(Boolean deepSearch) throws SecurityException {
    checkWriteAccess();
      boolean hasAccess=ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_SETTING);
      if(!hasAccess)
          throw new SecurityException("no access to update component setting");
      //config.resetBaseComponentPage();
      Element scope=_getRootElement("component");
      //if(baseComponent.trim().length()>0)
      if(deepSearch!=null)
      scope.setAttribute("deep-search",Caster.toString(deepSearch.booleanValue()));
View Full Code Here

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

      checkWriteAccess();
       
     
      boolean hasAccess=ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_SETTING);
        if(!hasAccess)
            throw new SecurityException("no access to update component setting");
       
        Element scope=_getRootElement("component");

        if(StringUtil.isEmpty(strAccess)){
          scope.setAttribute("data-member-default-access","");
View Full Code Here

     */
    public void updateTriggerDataMember(Boolean triggerDataMember) throws SecurityException {
      checkWriteAccess();
        boolean hasAccess=ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_SETTING);
        if(!hasAccess)
            throw new SecurityException("no access to update trigger-data-member");
       
        Element scope=_getRootElement("component");
        scope.setAttribute("trigger-data-member",Caster.toString(triggerDataMember,""));
    }
View Full Code Here

  public void updateComponentUseShadow(Boolean useShadow) throws SecurityException {
      checkWriteAccess();
    boolean hasAccess=ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_SETTING);
    if(!hasAccess)
            throw new SecurityException("no access to update use-shadow");
       
        Element scope=_getRootElement("component");
        scope.setAttribute("use-shadow",Caster.toString(useShadow,""));
  }
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.