Package org.buildndeploy.shared.model

Examples of org.buildndeploy.shared.model.InitBundle


  // ========================================================================= //
  //      INITILIZING                              //
  // ========================================================================= //
 
  public InitBundle getInitBundle(String username, String secretKey) {
    InitBundle b = new InitBundle();
    // Access Level
    boolean accessLevel = SessionUtil.authenticateUser(username, secretKey, getThreadLocalRequest());
    b.setAccessLevel(accessLevel);
    // Blobstore URL
    String blobstoreUrl = BlobstoreUtil.getUrl();
    log.info("setting blob url");
    b.setBlobstoreUrl(blobstoreUrl);
    // Channel Token
    // TODO exposed to crafted request
    String channelToken = ChannelUtil.proccesClientId(username);
    b.setChannelToken(channelToken);
    // Initial Files
    Collection<BlobInfo> files = FileCollection.get().getBlobInfos();
    String json = new Gson().toJson(files);
    b.setFiles(json);
    return b;
  }
View Full Code Here

TOP

Related Classes of org.buildndeploy.shared.model.InitBundle

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.