Package org.platformlayer.service.platformlayer.ops.auth.user

Source Code of org.platformlayer.service.platformlayer.ops.auth.user.UserAuthInstall

package org.platformlayer.service.platformlayer.ops.auth.user;

import java.io.File;

import org.platformlayer.ops.Bound;
import org.platformlayer.ops.OpsException;
import org.platformlayer.ops.filesystem.DownloadFileByHash;
import org.platformlayer.ops.standardservice.StandardServiceInstall;
import org.platformlayer.ops.standardservice.StandardTemplateData;

public class UserAuthInstall extends StandardServiceInstall {

  @Bound
  UserAuthInstanceTemplate template;

  @Override
  protected StandardTemplateData getTemplate() {
    return template;
  }

  @Override
  protected void addChildren() throws OpsException {
    super.addChildren();

    for (String extension : template.getExtensions()) {
      String key = extension;

      DownloadFileByHash download = addChild(DownloadFileByHash.class);
      download.filePath = new File(template.getExtensionsPath(), key + ".jar");
      download.specifier = "platformlayerplus:production:" + key + "-1.0-SNAPSHOT.jar";
    }
  }
}
TOP

Related Classes of org.platformlayer.service.platformlayer.ops.auth.user.UserAuthInstall

TOP
Copyright © 2018 www.massapi.com. 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.