Package ddf.catalog.util.impl
Class Requests
java.lang.Object
ddf.catalog.util.impl.Requests
Class for static request helper method
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisEnterprise(ddf.catalog.operation.Request req) Returns true if this request will be run on a remote catalog.static booleanisLocal(ddf.catalog.operation.Request req) Returns true if this request will be run on the local catalog.static booleanisLocal(Map<String, Serializable> props) Returns true if this request will be run on the local catalog.
-
Method Details
-
isEnterprise
public static boolean isEnterprise(ddf.catalog.operation.Request req) Returns true if this request will be run on a remote catalog. This does not mean that this same request will not be run on the local catalog. Implementation requires the catalog framework to set the needed properties for this method to work.- Parameters:
req- The request to check- Returns:
- Returns true if the request contains remote store ids otherwise returns false
-
isLocal
public static boolean isLocal(ddf.catalog.operation.Request req) Returns true if this request will be run on the local catalog. This does not mean that this same request will not be run on a remote catalog. Implementation requires the catalog framework to set the needed properties for this method to work.- Parameters:
req- The request to check- Returns:
- Returns true if the request contains the local catalog id in its store ids otherwise returns false
-
isLocal
Returns true if this request will be run on the local catalog. This does not mean that this same request will not be run on a remote catalog. Implementation requires the catalog framework to set the needed properties for this method to work.- Parameters:
props- Property map of a request- Returns:
- Returns true if the properties contains the local catalog id in its store ids otherwise returns false
-