new SecurityPolicyBuilder()
Methods
-
addAggregations(aggregations)
-
Set the aggregations.
Parameters:
Name Type Description aggregationsArray.<module:domain~Aggregation> | Set.<module:domain~Aggregation> the aggregations to add
Returns:
this object
-
addLocationPrecisions(locationPrecisions)
-
Add location precisions.
Parameters:
Name Type Description locationPrecisionsArray.<module:domain~LocationPrecision> | Set.<module:domain~LocationPrecision> the precisions to add
Returns:
this object
-
addNodeIds(nodeIds)
-
Add a set of node IDs.
Parameters:
Name Type Description nodeIdsArray.<number> | Set.<number> the node IDs to add
Returns:
this object
-
addNodeMetadataPaths(nodeMetadataPaths)
-
Add a set of node metadata paths.
Parameters:
Name Type Description nodeMetadataPathsArray.<string> | Set.<string> the path expressions to add
Returns:
this object
-
addPolicy(policy)
-
Merge all properties from another SecurityPolicy.
Parameters:
Name Type Description policymodule:domain~SecurityPolicy the SecurityPolicy to merge
Returns:
this object
-
addSourceIds(sourceIds)
-
Add source IDs.
Parameters:
Name Type Description sourceIdsArray.<string> | Set.<string> the source IDs to add
Returns:
this object
-
addUserMetadataPaths(userMetadataPaths)
-
Add a set of user metadata paths.
Parameters:
Name Type Description userMetadataPathsArray.<string> | Set.<string> the path expressions to add
Returns:
this object
-
build()
-
Create a new
SecurityPolicyout of the properties configured on this builder.Returns:
the new policy instance
-
withAggregations(aggregations)
-
Set the aggregations.
Parameters:
Name Type Description aggregationsArray.<module:domain~Aggregation> | Set.<module:domain~Aggregation> the aggregations to use
Returns:
this object
-
withLocationPrecisions(locationPrecisions)
-
Set the location precisions.
Parameters:
Name Type Description locationPrecisionsArray.<module:domain~LocationPrecision> | Set.<module:domain~LocationPrecision> the precisions to use
Returns:
this object
-
withMinAggregation(minAggregation)
-
Set a minimum aggregation level.
Parameters:
Name Type Description minAggregationmodule:domain~Aggregation the minimum aggregation level to set
Returns:
this object
-
withMinLocationPrecision(minLocationPrecision)
-
Treat the configured
locationPrecisionsset as a single minimum value or a list of exact values.By default if
locationPrecisionsis configured with a single value it will be treated as a minimum value, and anymodule:domain~LocationPrecisionwith amodule:domain~LocationPrecision#precisionequal to or higher than that value's level will be included in the generatedmodule:domain~SecurityPolicy#locationPrecisionsset. Set this tonullto disable that behavior and treatlocationPrecisionsas the exact values to include in the generatedmodule:domain~SecurityPolicy#locationPrecisionsset.Parameters:
Name Type Description minLocationPrecisionmodule:domain~LocationPrecision | null nullto treat configured location precision values as-is, or else the minimum thresholdReturns:
this object
-
withNodeIds(nodeIds)
-
Set the node IDs.
Parameters:
Name Type Description nodeIdsArray.<number> | Set.<number> the node IDs to use
Returns:
this object
-
withNodeMetadataPaths(nodeMetadataPaths)
-
Set the node metadata paths.
Parameters:
Name Type Description nodeMetadataPathsArray.<string> | Set.<string> the path expressions to use
Returns:
this object
-
withPolicy(policy)
-
Apply all properties from another SecurityPolicy.
Parameters:
Name Type Description policymodule:domain~SecurityPolicy the SecurityPolicy to apply
Returns:
this object
-
withSourceIds(sourceIds)
-
Set the source IDs.
Parameters:
Name Type Description sourceIdsArray.<string> | Set.<string> the source IDs to use
Returns:
this object
-
withUserMetadataPaths(userMetadataPaths)
-
Set the user metadata paths.
Parameters:
Name Type Description userMetadataPathsArray.<string> | Set.<string> the path expressions to use
Returns:
this object