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

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

public class PublishWorkflowResource
extends AbstractResource


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.airavata.persistance.registry.jpa.resources.AbstractResource
AbstractResource.ApplicationDescriptorConstants, AbstractResource.ConfigurationConstants, AbstractResource.ExperimentConstants, AbstractResource.ExperimentDataConstants, AbstractResource.GatewayConstants, AbstractResource.GatewayWorkerConstants, 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, EXPERIMENT, EXPERIMENT_DATA, EXPERIMENT_METADATA, GATEWAY, GATEWAY_WORKER, HOST_DESCRIPTOR, PROJECT, PUBLISHED_WORKFLOW, SERVICE_DESCRIPTOR, USER_WORKFLOW, USERS, WORKFLOW_DATA
 
Constructor Summary
PublishWorkflowResource()
           
PublishWorkflowResource(GatewayResource gateway)
           
 
Method Summary
 Resource create(ResourceType type)
          Since published workflows are at the leaf level of the data structure, this method is not valid
 List<Resource> get(ResourceType type)
          since published workflows are at the leaf level of the data structure, this method is not valid
 Resource get(ResourceType type, Object name)
          Since published workflows are at the leaf level of the data structure, this method is not valid
 String getContent()
           
 String getCreatedUser()
           
 GatewayResource getGateway()
           
 String getName()
           
 String getPath()
           
 Timestamp getPublishedDate()
           
 String getVersion()
           
 boolean isExists(ResourceType type, Object name)
          Since published workflows are at the leaf level of the data structure, this method is not valid
 List<Resource> populate(Object[] keys)
           
 void remove(ResourceType type, Object name)
          Since published workflows are at the leaf level of the data structure, this method is not valid
 void save()
          save published workflow to the database
 void setContent(String content)
           
 void setCreatedUser(String createdUser)
           
 void setGateway(GatewayResource gateway)
           
 void setName(String name)
           
 void setPath(String path)
           
 void setPublishedDate(Timestamp publishedDate)
           
 void setVersion(String version)
           
 
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

PublishWorkflowResource

public PublishWorkflowResource()

PublishWorkflowResource

public PublishWorkflowResource(GatewayResource gateway)
Parameters:
gateway - gateway resource
Method Detail

getCreatedUser

public String getCreatedUser()
Returns:
created user

getPath

public String getPath()
Returns:
path of the workflow

setCreatedUser

public void setCreatedUser(String createdUser)
Parameters:
createdUser - created user

setPath

public void setPath(String path)
Parameters:
path - path of the workflow

getName

public String getName()
Returns:
name of the publish workflow

getVersion

public String getVersion()
Returns:
version

getPublishedDate

public Timestamp getPublishedDate()
Returns:
published date

getContent

public String getContent()
Returns:
content of the workflow

setVersion

public void setVersion(String version)
Parameters:
version - version of the workflow

setPublishedDate

public void setPublishedDate(Timestamp publishedDate)
Parameters:
publishedDate - published date of the workflow

setContent

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

create

public Resource create(ResourceType type)
Since published workflows are at the leaf level of the data structure, this method is not valid

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

remove

public void remove(ResourceType type,
                   Object name)
Since published workflows are at the leaf level of the data structure, this method is not valid

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

get

public Resource get(ResourceType type,
                    Object name)
Since published workflows are at the leaf level of the data structure, this method is not valid

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

populate

public List<Resource> populate(Object[] keys)
Parameters:
keys - object list including gateway name and published workflow name
Returns:
published workflow resource

get

public List<Resource> get(ResourceType type)
since published workflows are at the leaf level of the data structure, this method is not valid

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

save

public void save()
save published workflow to the database


isExists

public boolean isExists(ResourceType type,
                        Object name)
Since published workflows are at the leaf level of the data structure, this method is not valid

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

getGateway

public GatewayResource getGateway()
Returns:
gateway resource

setGateway

public void setGateway(GatewayResource gateway)
Parameters:
gateway - gateway resource

setName

public void setName(String name)
Parameters:
name - published workflow name


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