Package railo.commons.io.res.type.s3

Examples of railo.commons.io.res.type.s3.S3


  public static final Collection.Key PERMISSION = KeyImpl.intern("permission");
 
 
  public static Object call(PageContext pc , String url) throws PageException {
       
    S3Resource res=toS3Resource(pc,url,"StoreGetACL");
    try {
      return toArrayStruct(res.getAccessControlPolicy().getAccessControlList());
    } catch (IOException e) {
      throw Caster.toPageException(e);
    }
    }
View Full Code Here


      throw Caster.toPageException(e);
    }
  }

  public static String _call(PageContext pc , String url, Object objACL) throws PageException, IOException {
    S3Resource res=toS3Resource(pc,url,"StoreAddACL");
    AccessControlPolicy acp = res.getAccessControlPolicy();
   
    List<AccessControl> acl = acp.getAccessControlList();
    List<AccessControl> newACL = AccessControl.toAccessControlList(objACL);
   
    Iterator<AccessControl> it = newACL.iterator();
    while(it.hasNext()){
      acl.add(it.next());
    }
    AccessControlPolicy.removeDuplicates(acl);
    res.setAccessControlPolicy(acp);
   
    return null;
  }
View Full Code Here

      throw Caster.toPageException(e);
    }
  }

  public static String _call(PageContext pc , String url, Object objACL) throws PageException, IOException {
    S3Resource res=toS3Resource(pc,url,"StoreSetACL");
    invoke(res, objACL);
    return null;
  }
View Full Code Here

  private static void setACL(Resource res,Object acl) throws PageException {
    String scheme = res.getResourceProvider().getScheme();
   
    if("s3".equalsIgnoreCase(scheme)){
      S3Resource s3r=(S3Resource) res;
     
      if(acl!=null){
        try {
          // old way
          if(Decision.isString(acl)) {
            s3r.setACL(S3.toIntACL(Caster.toString(acl)));
          }
          // new way
          else {
            StoreSetACL.invoke(s3r, acl);
          }
View Full Code Here

    updateUI();
  }

  @Override
  public void stagesChanged(StagesChangeEvent e) {
    StageChangeAction action = e.getAction();
    switch (action) {
    case Remove:
      rocket.removeStage(e.getStage());
      break;
    case MoveUp:
View Full Code Here

    rocket.addStage();
    refreshStagesPanel();
  }

  private void addStagePanel(Stage stage) {
    StagePanel stagePanel = new StagePanel(stage);
    stagePanel.addStageRemoveListener(this);
    stagesPanel.add(stagePanel, 0);
    updateUI();
  }
View Full Code Here

        .setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

    JSplitPane splitPane = new JSplitPane();
    frmTsiolkovskyEquationSolver.getContentPane().add(splitPane);

    deltavPanel = new DeltavPanel();
    deltavPanel.addSolutionListener(this);
    fuelPanel = new FuelPanel();
    fuelPanel.addSolutionListener(this);

    JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);
View Full Code Here

    JSplitPane splitPane = new JSplitPane();
    frmTsiolkovskyEquationSolver.getContentPane().add(splitPane);

    deltavPanel = new DeltavPanel();
    deltavPanel.addSolutionListener(this);
    fuelPanel = new FuelPanel();
    fuelPanel.addSolutionListener(this);

    JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);
    splitPane.setLeftComponent(tabbedPane);
    tabbedPane.add(deltavPanel);
View Full Code Here

TOP

Related Classes of railo.commons.io.res.type.s3.S3

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.