public class PublishWorkflowResource extends 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.WorkflowDataConstantsAPPLICATION_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 and Description |
|---|
PublishWorkflowResource() |
PublishWorkflowResource(GatewayResource gateway) |
| Modifier and Type | Method and Description |
|---|---|
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) |
getResourceListpublic PublishWorkflowResource()
public PublishWorkflowResource(GatewayResource gateway)
gateway - gateway resourcepublic String getCreatedUser()
public String getPath()
public void setCreatedUser(String createdUser)
createdUser - created userpublic void setPath(String path)
path - path of the workflowpublic String getName()
public String getVersion()
public Timestamp getPublishedDate()
public String getContent()
public void setVersion(String version)
version - version of the workflowpublic void setPublishedDate(Timestamp publishedDate)
publishedDate - published date of the workflowpublic void setContent(String content)
content - content of the workflowpublic Resource create(ResourceType type)
type - type of the child resourcepublic void remove(ResourceType type, Object name)
type - type of the child resourcename - name of the child resourcepublic Resource get(ResourceType type, Object name)
type - type of the child resourcename - name of the child resourcepublic List<Resource> populate(Object[] keys)
keys - object list including gateway name and published workflow namepublic List<Resource> get(ResourceType type)
type - type of the child resourcepublic void save()
public boolean isExists(ResourceType type, Object name)
isExists in interface ResourceisExists in class AbstractResourcetype - type of the child resourcename - name of the child resourcepublic GatewayResource getGateway()
public void setGateway(GatewayResource gateway)
gateway - gateway resourcepublic void setName(String name)
name - published workflow nameCopyright © 2011-2013 The Apache Software Foundation. All Rights Reserved.