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

java.lang.Object
  extended by org.apache.airavata.persistance.registry.jpa.resources.AbstractResource
All Implemented Interfaces:
Resource
Direct Known Subclasses:
ApplicationDescriptorResource, ConfigurationResource, ExecutionErrorResource, ExperimentDataResource, ExperimentMetadataResource, ExperimentResource, GatewayResource, GFacJobDataResource, GFacJobStatusResource, GramDataResource, HostDescriptorResource, NodeDataResource, ProjectResource, PublishWorkflowResource, ServiceDescriptorResource, UserResource, UserWorkflowResource, WorkerResource, WorkflowDataResource

public abstract class AbstractResource
extends Object
implements Resource


Nested Class Summary
 class AbstractResource.ApplicationDescriptorConstants
           
 class AbstractResource.ConfigurationConstants
           
 class AbstractResource.ExecutionErrorConstants
           
 class AbstractResource.ExperimentConstants
           
 class AbstractResource.ExperimentDataConstants
           
 class AbstractResource.GatewayConstants
           
 class AbstractResource.GatewayWorkerConstants
           
 class AbstractResource.GFacJobDataConstants
           
 class AbstractResource.GFacJobStatusConstants
           
 class AbstractResource.GramDataConstants
           
 class AbstractResource.HostDescriptorConstants
           
 class AbstractResource.NodeDataConstants
           
 class AbstractResource.ProjectConstants
           
 class AbstractResource.PublishedWorkflowConstants
           
 class AbstractResource.ServiceDescriptorConstants
           
 class AbstractResource.UserConstants
           
 class AbstractResource.UserWorkflowConstants
           
 class AbstractResource.WorkflowDataConstants
           
 
Field Summary
static String APPLICATION_DESCRIPTOR
           
static String CONFIGURATION
           
static String EXECUTION_ERROR
           
static String EXPERIMENT
           
static String EXPERIMENT_DATA
           
static String EXPERIMENT_METADATA
           
static String GATEWAY
           
static String GATEWAY_WORKER
           
static String GFAC_JOB_DATA
           
static String GFAC_JOB_STATUS
           
static String HOST_DESCRIPTOR
           
static String PROJECT
           
static String PUBLISHED_WORKFLOW
           
static String SERVICE_DESCRIPTOR
           
static String USER_WORKFLOW
           
static String USERS
           
static String WORKFLOW_DATA
           
 
Constructor Summary
protected AbstractResource()
           
 
Method Summary
static
<T> List<T>
getResourceList(List<Resource> resources, Class<?> T)
           
 boolean isExists(ResourceType type, Object name)
          This method will check whether an entry from the given resource type and resource name exists in the database
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.airavata.persistance.registry.jpa.Resource
create, get, get, remove, save
 

Field Detail

GATEWAY

public static final String GATEWAY
See Also:
Constant Field Values

CONFIGURATION

public static final String CONFIGURATION
See Also:
Constant Field Values

USERS

public static final String USERS
See Also:
Constant Field Values

GATEWAY_WORKER

public static final String GATEWAY_WORKER
See Also:
Constant Field Values

PROJECT

public static final String PROJECT
See Also:
Constant Field Values

PUBLISHED_WORKFLOW

public static final String PUBLISHED_WORKFLOW
See Also:
Constant Field Values

USER_WORKFLOW

public static final String USER_WORKFLOW
See Also:
Constant Field Values

HOST_DESCRIPTOR

public static final String HOST_DESCRIPTOR
See Also:
Constant Field Values

SERVICE_DESCRIPTOR

public static final String SERVICE_DESCRIPTOR
See Also:
Constant Field Values

APPLICATION_DESCRIPTOR

public static final String APPLICATION_DESCRIPTOR
See Also:
Constant Field Values

EXPERIMENT

public static final String EXPERIMENT
See Also:
Constant Field Values

EXPERIMENT_DATA

public static final String EXPERIMENT_DATA
See Also:
Constant Field Values

WORKFLOW_DATA

public static final String WORKFLOW_DATA
See Also:
Constant Field Values

EXPERIMENT_METADATA

public static final String EXPERIMENT_METADATA
See Also:
Constant Field Values

EXECUTION_ERROR

public static final String EXECUTION_ERROR
See Also:
Constant Field Values

GFAC_JOB_DATA

public static final String GFAC_JOB_DATA
See Also:
Constant Field Values

GFAC_JOB_STATUS

public static final String GFAC_JOB_STATUS
See Also:
Constant Field Values
Constructor Detail

AbstractResource

protected AbstractResource()
Method Detail

isExists

public boolean isExists(ResourceType type,
                        Object name)
Description copied from interface: Resource
This method will check whether an entry from the given resource type and resource name exists in the database

Specified by:
isExists in interface Resource
Parameters:
type - child resource type
name - child resource name
Returns:
whether the entry exists in the database or not

getResourceList

public static <T> List<T> getResourceList(List<Resource> resources,
                                          Class<?> T)


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