Package railo.runtime.exp

Examples of railo.runtime.exp.SecurityException


    public String getDefaultPassword() throws SecurityException {
      checkReadAccess();
        if(config instanceof ConfigServerImpl) {
            return ((ConfigServerImpl)config).getDefaultPassword();
        }
        throw new SecurityException("can't access default password within this context");
    }
View Full Code Here


     * @throws SecurityException
     */
    public void updateSessionType(String type) throws SecurityException {
      checkWriteAccess();
        boolean hasAccess=ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_SETTING);
        if(!hasAccess) throw new SecurityException("no access to update scope setting");
       
        type=type.toLowerCase().trim();
       
        Element scope=_getRootElement("scope");
        scope.setAttribute("session-type",type);
View Full Code Here

    }
   
    public void updateLocalMode(String mode) throws SecurityException {
      checkWriteAccess();
        boolean hasAccess=ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_SETTING);
        if(!hasAccess) throw new SecurityException("no access to update scope setting");
       
        mode=mode.toLowerCase().trim();
        Element scope=_getRootElement("scope");
        scope.setAttribute("local-mode",mode);
    }
View Full Code Here


  public void updateRestList(Boolean list) throws SecurityException {
    checkWriteAccess();
        boolean hasAccess=true;// TODO ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_REST);
        if(!hasAccess) throw new SecurityException("no access to update rest setting");
       
       
        Element rest=_getRootElement("rest");
        if(list==null) {
          if(rest.hasAttribute("list"))rest.removeAttribute("list");
View Full Code Here

     */
    public void updateUpdate(String type, String location) throws SecurityException {
      checkWriteAccess();
       
        if(!(config instanceof ConfigServer)) {
            throw new SecurityException("can't change update setting from this context, access is denied");
        }
        Element update=_getRootElement("update");
        update.setAttribute("type",type);
        try {
      location=HTTPUtil.toURL(location,true).toString();
View Full Code Here

      charset=SystemUtil.getCharset().name();
   
    // check access
    boolean hasAccess = ConfigWebUtil.hasAccess(config, SecurityManager.TYPE_SETTING);
    if(!hasAccess) {
      throw new SecurityException("no access to update regional setting");
    }
   
    // check encoding
    try {
      IOUtil.checkEncoding(charset);
View Full Code Here


  public void updateCustomTagDeepSearch(boolean customTagDeepSearch) throws SecurityException {
    checkWriteAccess();
    if(!ConfigWebUtil.hasAccess(config, SecurityManager.TYPE_CUSTOM_TAG))
      throw new SecurityException("no access to update custom tag setting");
   
    Element element = _getRootElement("custom-tag");
    element.setAttribute("custom-tag-deep-search",Caster.toString(customTagDeepSearch));
  }
View Full Code Here

  }
 
  public void updateCustomTagLocalSearch(boolean customTagLocalSearch) throws SecurityException {
    checkWriteAccess();
    if(!ConfigWebUtil.hasAccess(config, SecurityManager.TYPE_CUSTOM_TAG))
      throw new SecurityException("no access to update custom tag setting");
   
    Element element = _getRootElement("custom-tag");
    element.setAttribute("custom-tag-local-search",Caster.toString(customTagLocalSearch));
  }
View Full Code Here


  public void updateCustomTagExtensions(String extensions) throws PageException {
    checkWriteAccess();
    if(!ConfigWebUtil.hasAccess(config, SecurityManager.TYPE_CUSTOM_TAG))
      throw new SecurityException("no access to update custom tag setting");
   
    // check
    Array arr = ListUtil.listToArrayRemoveEmpty(extensions, ',');
    ListUtil.trimItems(arr);
    //throw new ApplicationException("you must define at least one extension");
View Full Code Here

   
    // SNSN
   
    boolean hasAccess=ConfigWebUtil.hasAccess(config,SecurityManagerImpl.TYPE_REMOTE);
        if(!hasAccess)
            throw new SecurityException("no access to update remote client settings");
       
       
        Element clients=_getRootElement("remote-clients");
       
        if(StringUtil.isEmpty(url)) throw new ExpressionException("url can 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.