org.apache.airavata.persistance.registry.jpa.resources
Class ApplicationDescriptorResource

java.lang.Object
  extended by org.apache.airavata.persistance.registry.jpa.resources.AbstractResource
      extended by org.apache.airavata.persistance.registry.jpa.resources.ApplicationDescriptorResource
All Implemented Interfaces:
Resource

public class ApplicationDescriptorResource
extends AbstractResource


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.airavata.persistance.registry.jpa.resources.AbstractResource
AbstractResource.ApplicationDescriptorConstants, AbstractResource.ConfigurationConstants, AbstractResource.ExecutionErrorConstants, AbstractResource.ExperimentConstants, AbstractResource.ExperimentDataConstants, AbstractResource.GatewayConstants, AbstractResource.GatewayWorkerConstants, AbstractResource.GFacJobDataConstants, AbstractResource.GFacJobStatusConstants, AbstractResource.GramDataConstants, AbstractResource.HostDescriptorConstants, AbstractResource.NodeDataConstants, AbstractResource.ProjectConstants, AbstractResource.PublishedWorkflowConstants, AbstractResource.ServiceDescriptorConstants, AbstractResource.UserConstants, AbstractResource.UserWorkflowConstants, AbstractResource.WorkflowDataConstants
 
Field Summary
 
Fields inherited from class org.apache.airavata.persistance.registry.jpa.resources.AbstractResource
APPLICATION_DESCRIPTOR, CONFIGURATION, EXECUTION_ERROR, EXPERIMENT, EXPERIMENT_DATA, EXPERIMENT_METADATA, GATEWAY, GATEWAY_WORKER, GFAC_JOB_DATA, GFAC_JOB_STATUS, HOST_DESCRIPTOR, PROJECT, PUBLISHED_WORKFLOW, SERVICE_DESCRIPTOR, USER_WORKFLOW, USERS, WORKFLOW_DATA
 
Constructor Summary
ApplicationDescriptorResource()
           
ApplicationDescriptorResource(String name, String gatewayName)
           
 
Method Summary
 Resource create(ResourceType type)
          Since application descriptors are at the leaf level, this method is not valid for application descriptors
 List<Resource> get(ResourceType type)
          Since application descriptors are at the leaf level, this method is not valid for application descriptors
 Resource get(ResourceType type, Object name)
          Since application descriptors are at the leaf level, this method is not valid for application descriptors
 String getContent()
           
 String getGatewayName()
           
 String getHostDescName()
           
 String getName()
           
 String getServiceDescName()
           
 boolean isExists(ResourceType type, Object name)
          Since application descriptors are at the leaf level, this method is not valid for application descriptors
 List<Resource> populate(Object[] keys)
          keys should contain gateway_name, application_descriptor_ID, host_descriptor_ID, service_descriptor_ID
 void remove(ResourceType type, Object name)
          Since application descriptors are at the leaf level, this method is not valid for application descriptors
 void save()
          save application descriptor to database
 void setContent(String content)
           
 void setGatewayName(String gatewayName)
           
 void setHostDescName(String hostDescName)
           
 void setName(String name)
           
 void setServiceDescName(String serviceDescName)
           
 void setUpdatedUser(String updatedUser)
           
 
Methods inherited from class org.apache.airavata.persistance.registry.jpa.resources.AbstractResource
getResourceList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationDescriptorResource

public ApplicationDescriptorResource(String name,
                                     String gatewayName)
Parameters:
name - application descriptor name
gatewayName - gateway name returns ApplicationDescriptorResource

ApplicationDescriptorResource

public ApplicationDescriptorResource()
Method Detail

getGatewayName

public String getGatewayName()
Returns:
gateway name

setGatewayName

public void setGatewayName(String gatewayName)
Parameters:
gatewayName - gateway name

setUpdatedUser

public void setUpdatedUser(String updatedUser)
Parameters:
updatedUser - updated user

getName

public String getName()
Returns:
name of the application descriptor

getContent

public String getContent()
Returns:
content

getHostDescName

public String getHostDescName()
Returns:
host descriptor name

getServiceDescName

public String getServiceDescName()
Returns:
service descriptor name

setContent

public void setContent(String content)
Parameters:
content - content of the application descriptor

setHostDescName

public void setHostDescName(String hostDescName)
Parameters:
hostDescName - host descriptor name

setServiceDescName

public void setServiceDescName(String serviceDescName)
Parameters:
serviceDescName - service descriptor name

create

public Resource create(ResourceType type)
Since application descriptors are at the leaf level, this method is not valid for application descriptors

Parameters:
type - child resource types
Returns:
UnsupportedOperationException

remove

public void remove(ResourceType type,
                   Object name)
Since application descriptors are at the leaf level, this method is not valid for application descriptors

Parameters:
type - child resource types
name - name of the resource

get

public Resource get(ResourceType type,
                    Object name)
Since application descriptors are at the leaf level, this method is not valid for application descriptors

Parameters:
type - child resource types
name - name of the resource
Returns:
UnsupportedOperationException

populate

public List<Resource> populate(Object[] keys)
keys should contain gateway_name, application_descriptor_ID, host_descriptor_ID, service_descriptor_ID

Parameters:
keys - names
Returns:
list of ApplicationDescriptorResources

get

public List<Resource> get(ResourceType type)
Since application descriptors are at the leaf level, this method is not valid for application descriptors

Parameters:
type - child resource types
Returns:
UnsupportedOperationException

save

public void save()
save application descriptor to database


isExists

public boolean isExists(ResourceType type,
                        Object name)
Since application descriptors are at the leaf level, this method is not valid for application descriptors

Specified by:
isExists in interface Resource
Overrides:
isExists in class AbstractResource
Parameters:
type - child resource types
name - name of the resource
Returns:
UnsupportedOperationException

setName

public void setName(String name)
Parameters:
name - application descriptor name


Copyright © 2011-2013 The Apache Software Foundation. All Rights Reserved.