Package railo.runtime.exp

Examples of railo.runtime.exp.SecurityException


      // SNSN
     
     
      boolean hasAccess=ConfigWebUtil.hasAccess(config,SecurityManagerImpl.TYPE_REMOTE);
        if(!hasAccess)
            throw new SecurityException("no access to remove remote client settings");
       
     
     
      // check parameters
        if(StringUtil.isEmpty(url))
View Full Code Here


     */
    public void updatePSQ(Boolean psq) throws SecurityException {
      checkWriteAccess();
        boolean hasAccess=ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_DATASOURCE);
       
        if(!hasAccess) throw new SecurityException("no access to update datsource connections");
       
        Element datasources=_getRootElement("data-sources");
        datasources.setAttribute("psq",Caster.toString(psq,""));
        if(datasources.hasAttribute("preserve-single-quote"))
          datasources.removeAttribute("preserve-single-quote");
View Full Code Here

  public void updateInspectTemplate(String str) throws SecurityException {
    checkWriteAccess();
        boolean hasAccess=ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_SETTING);
       
        if(!hasAccess) throw new SecurityException("no access to update");
       
        Element datasources=_getRootElement("java");
        datasources.setAttribute("inspect-template",str);

  }
View Full Code Here

     */
    public void updateScopeCascadingType(String type) throws SecurityException {
      checkWriteAccess();
        boolean hasAccess=ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_SETTING);
       
        if(!hasAccess) throw new SecurityException("no access to update scope setting");
       
       
        Element scope=_getRootElement("scope");
        if(type.equalsIgnoreCase("strict"))        scope.setAttribute("cascading","strict");
        else if(type.equalsIgnoreCase("small"))    scope.setAttribute("cascading","small");
View Full Code Here

     */
    public void updateScopeCascadingType(short type) throws SecurityException {
      checkWriteAccess();
        boolean hasAccess=ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_SETTING);
        if(!hasAccess)
            throw new SecurityException("no access to update scope setting");
       
        //railo.print.ln("********........type:"+type);
        Element scope=_getRootElement("scope");
        if(type==ConfigWeb.SCOPE_STRICT) scope.setAttribute("cascading","strict");
        else if(type==ConfigWeb.SCOPE_SMALL) scope.setAttribute("cascading","small");
View Full Code Here

     */
    public void updateAllowImplicidQueryCall(Boolean allow) throws SecurityException {
      checkWriteAccess();
        boolean hasAccess=ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_SETTING);
       
        if(!hasAccess) throw new SecurityException("no access to update scope setting");
       
        Element scope=_getRootElement("scope");
        scope.setAttribute("cascade-to-resultset",Caster.toString(allow,""));
       
    }
View Full Code Here

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

     */
    public void updateRequestTimeout(TimeSpan span) throws SecurityException, ApplicationException {
      checkWriteAccess();
        boolean hasAccess=ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_SETTING);
       
        if(!hasAccess) throw new SecurityException("no access to update scope setting");
       
        Element scope=_getRootElement("scope");
       
        Element application=_getRootElement("application");
        if(span!=null){
View Full Code Here

     */
    public void updateSessionTimeout(TimeSpan span) throws SecurityException {
      checkWriteAccess();
        boolean hasAccess=ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_SETTING);
       
        if(!hasAccess) throw new SecurityException("no access to update scope setting");
       
        Element scope=_getRootElement("scope");
        if(span!=null)scope.setAttribute("sessiontimeout",span.getDay()+","+span.getHour()+","+span.getMinute()+","+span.getSecond());
        else scope.removeAttribute("sessiontimeout");
    }
View Full Code Here

  private void updateStorage(String storageName,String storage) throws SecurityException, ApplicationException {
    checkWriteAccess();
        boolean hasAccess=ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_SETTING);
       
        if(!hasAccess) throw new SecurityException("no access to update scope setting");
        storage=validateStorage(storage);
       
       
        Element scope=_getRootElement("scope");
        if(!StringUtil.isEmpty(storage,true))scope.setAttribute(storageName+"storage",storage);
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.