Examples of AiravataUser


Examples of org.apache.airavata.registry.api.AiravataUser

    @Path(ResourcePathConstants.BasicRegistryConstants.GET_USER)
    @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
    public Response getAiravataUser() {
        AiravataRegistry2 airavataRegistry = RegPoolUtils.acquireRegistry(context);
        try {
            AiravataUser airavataUser = airavataRegistry.getAiravataUser();
            if (airavataUser != null) {
                Response.ResponseBuilder builder = Response.status(Response.Status.OK);
                builder.entity(airavataUser);
                return builder.build();
            } else {
View Full Code Here

Examples of org.apache.airavata.registry.api.AiravataUser

        AiravataRegistry2 airavataRegistry = RegPoolUtils.acquireRegistry(context);
        try {
            AiravataExperiment experiment = new AiravataExperiment();
            experiment.setExperimentId(experimentID);
            Gateway gateway = airavataRegistry.getGateway();
            AiravataUser airavataUser = airavataRegistry.getAiravataUser();
            experiment.setGateway(gateway);
            experiment.setUser(airavataUser);
            DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
            Date formattedDate = dateFormat.parse(submittedDate);
            experiment.setSubmittedDate(formattedDate);
View Full Code Here

Examples of org.apache.airavata.registry.api.AiravataUser

  public static AiravataRegistry2 getRegistry(URI registryURI,
      String gateway, String username, PasswordCallback callback)
      throws RegistryException, AiravataConfigurationException {
    return AiravataRegistryFactory.getRegistry(registryURI, new Gateway(
        gateway), new AiravataUser(username), callback);
  }
View Full Code Here

Examples of org.apache.airavata.registry.api.AiravataUser

    public static AiravataRegistry2 acquireRegistry(ServletContext context) {
        AiravataRegistry2 airavataRegistry=null;
        String user =  WorkflowContext.getRequestUser();
        String gatewayId = WorkflowContext.getGatewayId();
        Gateway gateway = new Gateway(gatewayId);
        AiravataUser airavataUser = new AiravataUser(user);
        /*RegistryInstancesPool registryInstancesPool =
                (RegistryInstancesPool) context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY_POOL);
        Map<RegIdentifier,AiravataRegistry2> registryMap = registryInstancesPool.getRegistryInstancesList();
        boolean foundReg=false;*/
        try{
View Full Code Here

Examples of org.apache.airavata.registry.api.AiravataUser

//            e.printStackTrace();
//        }
        try {
          username=ServerSettings.getSystemUser();
            registry = AiravataRegistryFactory.getRegistry(new Gateway(ServerSettings.getDefaultGatewayId()),
                    new AiravataUser(username));
        } catch (AiravataConfigurationException e) {
            log.error("Error initializing AiravataRegistry2");
        } catch (RegistryAccessorNotFoundException e) {
            log.error("Error initializing AiravataRegistry2");
        } catch (RegistryAccessorInstantiateException e) {
View Full Code Here

Examples of org.apache.airavata.registry.api.AiravataUser

  public static AiravataRegistry2 getRegistry(URI registryURI,
      String gateway, String username, PasswordCallback callback)
      throws RegistryException, AiravataConfigurationException {
    return AiravataRegistryFactory.getRegistry(registryURI, new Gateway(
        gateway), new AiravataUser(username), callback);
  }
View Full Code Here

Examples of org.apache.airavata.registry.api.AiravataUser

  public static AiravataRegistry2 getRegistry(URI registryURI,
      String gateway, String username, PasswordCallback callback)
      throws RegistryException, AiravataConfigurationException {
    return AiravataRegistryFactory.getRegistry(registryURI, new Gateway(
        gateway), new AiravataUser(username), callback);
  }
View Full Code Here

Examples of org.apache.airavata.registry.api.AiravataUser

           * Create database
           */
        Map<String,String> config = new HashMap<String,String>();
            config.put("org.apache.jackrabbit.repository.home","target");

        jcrRegistry = AiravataRegistryFactory.getRegistry(new Gateway("default"), new AiravataUser("admin"));

   
        /*
           * Host
           */
 
View Full Code Here

Examples of org.apache.airavata.registry.api.AiravataUser

        } catch (IOException e) {
            e.printStackTrace();
        }
        try {
            registry = AiravataRegistryFactory.getRegistry(new Gateway((String) properties.get(GATEWAY_ID)),
                    new AiravataUser(username));
        } catch (AiravataConfigurationException e) {
            log.error("Error initializing AiravataRegistry2");
        } catch (RegistryAccessorNotFoundException e) {
            log.error("Error initializing AiravataRegistry2");
        } catch (RegistryAccessorInstantiateException e) {
View Full Code Here

Examples of org.apache.airavata.registry.api.AiravataUser

    @Before
    public void setUp() throws Exception {
        Map<String,String> config = new HashMap<String,String>();
            config.put("org.apache.jackrabbit.repository.home","target");

        jcrRegistry = AiravataRegistryFactory.getRegistry(new Gateway("default"), new AiravataUser("admin"));


        // Host
        URL url = this.getClass().getClassLoader().getResource(GRAM_PROPERTIES);
        Properties properties = new Properties();
View Full Code Here
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.