Package railo.runtime.security

Examples of railo.runtime.security.SecurityManager


  }
 
 
  public static  void actionCopy(PageContext pc,Resource directory,String strDestination,String serverPassword,boolean createPath, Object acl,int storage, ResourceFilter filter, boolean recurse, int nameconflict) throws PageException {
    // check directory
    SecurityManager securityManager = pc.getConfig().getSecurityManager();
      securityManager.checkFileLocation(pc.getConfig(),directory,serverPassword);
   
     
    if(!directory.exists())
      throw new ApplicationException("directory ["+directory.toString()+"] doesn't exist");
    if(!directory.isDirectory())
      throw new ApplicationException("file ["+directory.toString()+"] exists, but isn't a directory");
    if(!directory.canRead())
      throw new ApplicationException("no access to read directory ["+directory.toString()+"]");
   
    if(StringUtil.isEmpty(strDestination))
      throw new ApplicationException("attribute destination is not defined");
   
    // real to source
    Resource newdirectory=toDestination(pc,strDestination,directory);
   
    if ( nameconflict == NAMECONFLICT_ERROR && newdirectory.exists() )
      throw new ApplicationException("new directory ["+newdirectory.toString()+"] already exist");
   
      securityManager.checkFileLocation(pc.getConfig(),newdirectory,serverPassword);

    try {
      // has already a filter
      if(filter!=null) {
        if(recurse) filter=new OrResourceFilter(new ResourceFilter[]{
View Full Code Here


    /**
     * @throws PageException
     *
     */
    private void doGetDefaultSecurityManager() throws PageException {
        SecurityManager dsm = config.getConfigServer(password).getDefaultSecurityManager();
        _fillSecData(dsm);
    }
View Full Code Here

        SecurityManager dsm = config.getConfigServer(password).getDefaultSecurityManager();
        _fillSecData(dsm);
    }

    private void doGetSecurityManager() throws PageException {
        SecurityManager sm = config.getConfigServer(password).getSecurityManager(getString("admin",action,"id"));
        _fillSecData(sm);
    }
View Full Code Here

    else if (configServer != null) {
      config.setSerialNumber(configServer.getSerialNumber());
    }

    // Security Manger
    SecurityManager securityManager = null;
    if (config instanceof ConfigServerImpl) {
      ConfigServerImpl cs = (ConfigServerImpl) config;
      Element security = getChildByName(doc.getDocumentElement(), "security");

      // Default SecurityManager
View Full Code Here

     */
    // Default query of query DB
    setDatasource(config, datasources, QOQ_DATASOURCE_NAME, "org.hsqldb.jdbcDriver", "", "", -1, "jdbc:hsqldb:.", "sa", "", -1, -1, 60000, true, true, DataSource.ALLOW_ALL,
        false, false, null, new StructImpl(), "");

    SecurityManager sm = config.getSecurityManager();
    short access = sm.getAccess(SecurityManager.TYPE_DATASOURCE);
    int accessCount = -1;
    if (access == SecurityManager.VALUE_YES)
      accessCount = -1;
    else if (access == SecurityManager.VALUE_NO)
      accessCount = 0;
View Full Code Here

  public static Array call(PageContext pc, String destination,String accept, String nameConflict,String mode,String attributes) throws PageException {
    return call(pc, destination, accept, nameConflict, mode, attributes,null);
  }
 
  public static Array call(PageContext pc, String destination,String accept, String nameConflict,String mode,String attributes,Object acl) throws PageException {
      SecurityManager securityManager = pc.getConfig().getSecurityManager();
    int nc = FileUtil.toNameConflict(nameConflict);
      int m=FileTag.toMode(mode);
     
      return FileTag.actionUploadAll(pc,securityManager,destination, nc, accept,true, m, attributes, acl, null);
  }
View Full Code Here

  public static Struct call(PageContext pc, String destination,String fileField,String accept, String nameConflict,String mode,String attributes) throws PageException {
    return call(pc, destination, fileField, accept, nameConflict, mode, attributes,null);
  }
 
  public static Struct call(PageContext pc, String destination,String fileField,String accept, String nameConflict,String mode,String attributes,Object acl) throws PageException {
      SecurityManager securityManager = pc.getConfig().getSecurityManager();
     
      int nc = FileUtil.toNameConflict(nameConflict);
      int m=FileTag.toMode(mode);
     
      return FileTag.actionUpload(pc, securityManager, fileField,  destination, nc, accept,true, m, attributes, acl, null);
View Full Code Here

TOP

Related Classes of railo.runtime.security.SecurityManager

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.