Package com.coveo.pushapiclient
Record Class UserSecurityIdentityBuilder
java.lang.Object
java.lang.Record
com.coveo.pushapiclient.UserSecurityIdentityBuilder
- All Implemented Interfaces:
SecurityIdentityBuilder
public record UserSecurityIdentityBuilder(String[] identities, String securityProvider)
extends Record
implements SecurityIdentityBuilder
Build a security identity of type `USER`.
Typically used in conjunction with DocumentBuilder.withAllowedPermissions(com.coveo.pushapiclient.SecurityIdentityBuilder) or DocumentBuilder.withDeniedPermissions(com.coveo.pushapiclient.SecurityIdentityBuilder).
See SecurityIdentity.
-
Constructor Summary
ConstructorsConstructorDescriptionUserSecurityIdentityBuilder(String identity)Construct a UserSecurityIdentityBuilder for a single identity with an `Email Security Provider`.UserSecurityIdentityBuilder(String[] identities)Construct a UserSecurityIdentityBuilder for multiple identities with an `Email Security Provider`.UserSecurityIdentityBuilder(String[] identities, String securityProvider)Creates an instance of aUserSecurityIdentityBuilderrecord class.UserSecurityIdentityBuilder(String identity, String securityProvider)Construct a UserSecurityIdentityBuilder for a single identity with the given security provider. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build and return a list ofSecurityIdentitybooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.String[]Returns the value of theidentitiesrecord component.Returns the value of thesecurityProviderrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
UserSecurityIdentityBuilder
Construct a UserSecurityIdentityBuilder for a single identity with the given security provider.- Parameters:
identity-securityProvider-
-
UserSecurityIdentityBuilder
Construct a UserSecurityIdentityBuilder for a single identity with an `Email Security Provider`.- Parameters:
identity-
-
UserSecurityIdentityBuilder
Construct a UserSecurityIdentityBuilder for multiple identities with an `Email Security Provider`.- Parameters:
identities-
-
UserSecurityIdentityBuilder
Creates an instance of aUserSecurityIdentityBuilderrecord class.- Parameters:
identities- the value for theidentitiesrecord componentsecurityProvider- the value for thesecurityProviderrecord component
-
-
Method Details
-
build
Description copied from interface:SecurityIdentityBuilderBuild and return a list ofSecurityIdentity- Specified by:
buildin interfaceSecurityIdentityBuilder- Returns:
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
identities
Returns the value of theidentitiesrecord component.- Returns:
- the value of the
identitiesrecord component
-
securityProvider
Returns the value of thesecurityProviderrecord component.- Returns:
- the value of the
securityProviderrecord component
-