Class BulkConfig
java.lang.Object
org.gluu.oxtrust.model.scim2.provider.config.BulkConfig
A class that holds values representing the configuration options for SCIM BULK operation (see section 5 of RFC 7643).
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of BulkConfig with all its fields unassigned.BulkConfig(boolean supported, int maxOperations, long maxPayloadSize) Creates a BulkConfig instance based on parameters supplied. -
Method Summary
Modifier and TypeMethodDescriptionintRetrieves the maximum number of operations supported in a bulk.longRetrieves the maximum payload size allowed in a bulk.booleanIndicates whether the PATCH operation is supported.voidsetMaxOperations(int maxOperations) voidsetMaxPayloadSize(long maxPayloadSize) voidsetSupported(boolean supported)
-
Constructor Details
-
BulkConfig
public BulkConfig()Creates an instance of BulkConfig with all its fields unassigned. -
BulkConfig
public BulkConfig(boolean supported, int maxOperations, long maxPayloadSize) Creates a BulkConfig instance based on parameters supplied.- Parameters:
supported- Specifies whether the bulk operation is supported.maxOperations- Specifies the maximum number of operations supported per bulk.maxPayloadSize- Specifies the maximum payload size in bytes supported per bulk.
-
-
Method Details
-
isSupported
public boolean isSupported()Indicates whether the PATCH operation is supported.- Returns:
- A boolean value
-
getMaxOperations
public int getMaxOperations()Retrieves the maximum number of operations supported in a bulk.- Returns:
- The maximum number of operations.
-
getMaxPayloadSize
public long getMaxPayloadSize()Retrieves the maximum payload size allowed in a bulk.- Returns:
- The maximum payload size in bytes.
-
setSupported
public void setSupported(boolean supported) -
setMaxOperations
public void setMaxOperations(int maxOperations) -
setMaxPayloadSize
public void setMaxPayloadSize(long maxPayloadSize)
-