public class UserResource 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 |
|---|
UserResource() |
| Modifier and Type | Method and Description |
|---|---|
Resource |
create(ResourceType type)
User is a hypothical data structure.
|
List<Resource> |
get(ResourceType type)
This method will list all the child resources for the given resource type
|
Resource |
get(ResourceType type,
Object name)
This method will return the given child resource from the database
|
String |
getGatewayName() |
String |
getPassword() |
ProjectResource |
getProjectResource() |
String |
getUserName() |
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
|
void |
remove(ResourceType type,
Object name)
This method will remove the given child resource from the database
|
void |
save()
save user to the database
|
void |
setGatewayName(String gatewayName) |
void |
setPassword(String password) |
void |
setProjectResource(ProjectResource projectResource) |
void |
setUserName(String userName) |
getResourceListpublic void setUserName(String userName)
userName - user namepublic String getUserName()
public String getGatewayName()
public void setGatewayName(String gatewayName)
gatewayName - gateway namepublic Resource create(ResourceType type)
type - child resource typepublic void remove(ResourceType type, Object name)
Resourcetype - child resource typename - child resource namepublic Resource get(ResourceType type, Object name)
Resourcetype - child resource typename - child resource namepublic List<Resource> get(ResourceType type)
Resourcetype - child resource typepublic void save()
public boolean isExists(ResourceType type, Object name)
ResourceisExists in interface ResourceisExists in class AbstractResourcetype - child resource typename - child resource namepublic ProjectResource getProjectResource()
public void setProjectResource(ProjectResource projectResource)
projectResource - project resourcepublic String getPassword()
public void setPassword(String password)
password - passwordCopyright © 2011-2013 The Apache Software Foundation. All Rights Reserved.