public class EcoGridServicesController extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AUTHENTICATEDQUERYSERVICETYPE |
static java.lang.String |
AUTHSERVICETYPE |
protected static java.lang.String |
FALSE |
static java.lang.String |
IDENTIFIERSERVICETYPE |
protected static boolean |
isDebugging |
protected static org.apache.commons.logging.Log |
log |
static java.lang.String |
PUTSERVICETYPE |
static java.lang.String |
QUERYSERVICETYPE |
protected static java.lang.String |
TRUE |
Modifier and Type | Method and Description |
---|---|
protected DocumentType[] |
addNewDocType(DocumentType[] currentArray,
java.util.Vector newTypeVector) |
void |
addService(EcoGridService service)
Add a service to service list.
|
java.lang.String |
authenticateForService(EcoGridService service)
Provides an authentication credential for the given service object (if
possible) Note that there may not be adequate information in the
EcoGridServicesController to support authentication for every service.
|
void |
clearServicesList() |
void |
deleteServicesFile() |
static java.util.Vector |
filterQueryServicesList(java.util.Vector inputServices)
Filters out the non-query services given a list of EcoGridServices
|
static EcoGridServicesController |
getInstance()
Method to get an object from this singleton class
|
java.util.Vector |
getQueryServicesList()
Finds a list of query services this is a convenience method for the more
general form that takes a full list of types
|
java.util.Vector |
getSelectedServicesList()
Method to get selected service with selected document types from service
list vector.
|
EcoGridService |
getService(java.lang.String endPoint)
Used for tying together related services Finds the EcoGridService for a
given endpoint
|
EcoGridService |
getService(java.lang.String serviceGroup,
java.lang.String serviceType)
Finds the EcoGridService for a given serviceGroup/serviceType pairing
|
Domain |
getServiceDomain(EcoGridService service) |
java.util.Vector |
getServiceGroupList(java.lang.String serviceGroup)
Finds a list of services for a given serviceGroup name
|
java.util.Vector |
getServicesList()
Method to get the full service list vector
|
java.util.Vector |
getServicesList(java.lang.String serviceType)
Finds a list of services for a given serviceType name this is a
convenience method for the more general form that takes a full list of
types
|
java.util.Vector |
getServicesList(java.util.Vector serviceTypeList)
Finds a list of services with serviceTypes in the given type list
|
protected void |
init() |
void |
mergeServicesList(java.util.Vector newServices)
Rather than completely overwriting the existing services, this method
allows new services to be merged with the existing ones.
|
void |
print()
Print out every service in the list
|
void |
readServices() |
static java.util.Vector |
registryEntries2EcogridServices(org.ecoinformatics.ecogrid.registry.stub.RegistryEntryType[] list,
boolean selectable) |
void |
removeService(EcoGridService service)
Remove a given service from current query service list.
|
void |
setServicesList(java.util.Vector serviceList) |
void |
updateService(EcoGridService service)
Method to update a existed EcoGridService
|
void |
writeServices() |
protected static org.apache.commons.logging.Log log
protected static boolean isDebugging
protected static final java.lang.String TRUE
protected static final java.lang.String FALSE
public static final java.lang.String AUTHENTICATEDQUERYSERVICETYPE
public static final java.lang.String QUERYSERVICETYPE
public static final java.lang.String AUTHSERVICETYPE
public static final java.lang.String PUTSERVICETYPE
public static final java.lang.String IDENTIFIERSERVICETYPE
public static EcoGridServicesController getInstance()
protected void init()
public void removeService(EcoGridService service)
service
- EcoGridServicepublic void addService(EcoGridService service) throws InvalidEcoGridServiceException
service
- EcoGridServiceInvalidEcoGridServiceException
public void clearServicesList()
protected DocumentType[] addNewDocType(DocumentType[] currentArray, java.util.Vector newTypeVector)
public void updateService(EcoGridService service) throws InvalidEcoGridServiceException
service
- EcoGridServiceInvalidEcoGridServiceException
public java.util.Vector getServicesList()
public void setServicesList(java.util.Vector serviceList)
public void mergeServicesList(java.util.Vector newServices)
newServices
- list of new EcoGridServices to merge with the existing
servicesInvalidEcoGridServiceException
- cascades up from the add() and update() methods used by this
methodpublic java.lang.String authenticateForService(EcoGridService service)
service
- an any given EcoGridService that might need authentication
credentials to use This service must be part of a service
group that has registered a valid authentication service that
will provide the credential for use by other service typespublic Domain getServiceDomain(EcoGridService service)
service
- public EcoGridService getService(java.lang.String endPoint)
endPoint
- the URL of the servicepublic EcoGridService getService(java.lang.String serviceGroup, java.lang.String serviceType)
serviceGroup
- the name of the group of services to search withinserviceType
- the type of service to locatepublic java.util.Vector getServiceGroupList(java.lang.String serviceGroup)
serviceGroup
- the name of the group of services to search withinpublic java.util.Vector getServicesList(java.lang.String serviceType)
serviceType
- the name of the serviceType of services to search withinpublic java.util.Vector getServicesList(java.util.Vector serviceTypeList)
serviceTypeList
- list of serviceTypes to match onpublic java.util.Vector getQueryServicesList()
public java.util.Vector getSelectedServicesList()
public void readServices()
public void deleteServicesFile()
public void writeServices() throws java.lang.Exception
java.lang.Exception
public void print()
public static java.util.Vector filterQueryServicesList(java.util.Vector inputServices)
list
- of many different kinds of servicespublic static java.util.Vector registryEntries2EcogridServices(org.ecoinformatics.ecogrid.registry.stub.RegistryEntryType[] list, boolean selectable)