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

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

public class ConfigurationResource
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
ConfigurationResource()
           
ConfigurationResource(String configKey, String configVal)
           
 
Method Summary
 Resource create(ResourceType type)
          Since Configuration does not depend on any other data structures at the system, this method is not valid
 List<Resource> get(ResourceType type)
          Since Configuration does not depend on any other data structures at the system, this method is not valid
 Resource get(ResourceType type, Object name)
          Since Configuration does not depend on any other data structures at the system, this method is not valid
 String getCategoryID()
           
 String getConfigVal()
           
 boolean isExists(ResourceType type, Object name)
          Since Configuration does not depend on any other data structures at the system, this method is not valid
 List<Resource> populate(Object[] keys)
          key should be the configuration name
 void remove(ResourceType type, Object name)
          Since Configuration does not depend on any other data structures at the system, this method is not valid
 void save()
          save configuration to database
 void setCategoryID(String categoryID)
           
 void setConfigKey(String configKey)
           
 void setConfigVal(String configVal)
           
 void setExpireDate(Timestamp expireDate)
           
 
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

ConfigurationResource

public ConfigurationResource()

ConfigurationResource

public ConfigurationResource(String configKey,
                             String configVal)
Parameters:
configKey - configuration key
configVal - configuration value
Method Detail

create

public Resource create(ResourceType type)
Since Configuration does not depend on any other data structures at the system, this method is not valid

Parameters:
type - child resource types
Returns:
UnsupportedOperationException

remove

public void remove(ResourceType type,
                   Object name)
Since Configuration does not depend on any other data structures at the system, this method is not valid

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

get

public Resource get(ResourceType type,
                    Object name)
Since Configuration does not depend on any other data structures at the system, this method is not valid

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

populate

public List<Resource> populate(Object[] keys)
key should be the configuration name

Parameters:
keys - names
Returns:
list of ConfigurationResources

get

public List<Resource> get(ResourceType type)
Since Configuration does not depend on any other data structures at the system, this method is not valid

Parameters:
type - child resource types
Returns:
UnsupportedOperationException

setExpireDate

public void setExpireDate(Timestamp expireDate)
Parameters:
expireDate - expire date of the configuration

save

public void save()
save configuration to database


isExists

public boolean isExists(ResourceType type,
                        Object name)
Since Configuration does not depend on any other data structures at the system, this method is not valid

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

getConfigVal

public String getConfigVal()
Returns:
configuration value

setConfigKey

public void setConfigKey(String configKey)
Parameters:
configKey - configuration key

setConfigVal

public void setConfigVal(String configVal)
Parameters:
configVal - configuration value

getCategoryID

public String getCategoryID()

setCategoryID

public void setCategoryID(String categoryID)


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