Package thredds.core
Class AllowedServices
- java.lang.Object
-
- thredds.core.AllowedServices
-
- All Implemented Interfaces:
thredds.server.catalog.AllowedServicesIF
@Component public class AllowedServices extends Object implements thredds.server.catalog.AllowedServicesIF
Manage Lists of Services- Since:
- 1/23/2015
- See Also:
- "src/main/webapp/WEB-INF/tdsGlobalConfig.xml"
-
-
Constructor Summary
Constructors Constructor Description AllowedServices()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddGlobalServices(List<thredds.client.catalog.Service> services)voidclearGlobalServices()thredds.client.catalog.ServicefindGlobalService(String name)voidfinish()List<String>getDisallowedServices(List<thredds.client.catalog.Service> services)Checks if a list of services are allowed.Collection<thredds.client.catalog.Service>getGlobalServices()thredds.client.catalog.ServicegetStandardCollectionServices(ucar.nc2.constants.FeatureType featType)thredds.client.catalog.ServicegetStandardService(StandardService type)thredds.client.catalog.ServicegetStandardServices(String featTypeName)thredds.client.catalog.ServicegetStandardServices(ucar.nc2.constants.FeatureType featType)booleanisAllowed(StandardService type)booleanisAThreddsDataset(String filename)voidmakeDebugActions()voidsetAllow(Map<String,Boolean> map)voidsetAllowService(StandardService service, Boolean allow)voidsetGridServices(List<String> list)voidsetIsAThreddsDataset(List<String> list)voidsetIsNotAThreddsDataset(List<String> list)voidsetPointCollectionServices(List<String> list)voidsetPointServices(List<String> list)voidsetRadialServices(List<String> list)
-
-
-
Method Detail
-
setAllowService
public void setAllowService(StandardService service, Boolean allow)
-
finish
public void finish()
-
getStandardServices
public thredds.client.catalog.Service getStandardServices(String featTypeName)
-
getStandardServices
public thredds.client.catalog.Service getStandardServices(ucar.nc2.constants.FeatureType featType)
- Specified by:
getStandardServicesin interfacethredds.server.catalog.AllowedServicesIF
-
getStandardCollectionServices
public thredds.client.catalog.Service getStandardCollectionServices(ucar.nc2.constants.FeatureType featType)
-
isAllowed
public boolean isAllowed(StandardService type)
-
getStandardService
@Nullable public thredds.client.catalog.Service getStandardService(StandardService type)
-
clearGlobalServices
public void clearGlobalServices()
-
addGlobalServices
public void addGlobalServices(List<thredds.client.catalog.Service> services)
-
findGlobalService
public thredds.client.catalog.Service findGlobalService(String name)
-
getGlobalServices
public Collection<thredds.client.catalog.Service> getGlobalServices()
-
getDisallowedServices
public List<String> getDisallowedServices(List<thredds.client.catalog.Service> services)
Checks if a list of services are allowed.- Parameters:
services- check this list of services- Returns:
- A list of disallowed services, may be empty not null
-
makeDebugActions
public void makeDebugActions()
-
isAThreddsDataset
public boolean isAThreddsDataset(String filename)
- Specified by:
isAThreddsDatasetin interfacethredds.server.catalog.AllowedServicesIF
-
-