Package com.coveo.pushapiclient
Record Class GroupSecurityIdentityBuilder
java.lang.Object
java.lang.Record
com.coveo.pushapiclient.GroupSecurityIdentityBuilder
- All Implemented Interfaces:
SecurityIdentityBuilder
public record GroupSecurityIdentityBuilder(String[] identities, String securityProvider)
extends Record
implements SecurityIdentityBuilder
Build a security identity of type `GROUP`.
Typically used in conjunction with DocumentBuilder.withAllowedPermissions(com.coveo.pushapiclient.SecurityIdentityBuilder) or DocumentBuilder.withDeniedPermissions(com.coveo.pushapiclient.SecurityIdentityBuilder).
See SecurityIdentity.
-
Constructor Summary
ConstructorsConstructorDescriptionGroupSecurityIdentityBuilder(String[] identities, String securityProvider)Creates an instance of aGroupSecurityIdentityBuilderrecord class.GroupSecurityIdentityBuilder(String identity, String securityProvider)Construct a GroupSecurityIdentityBuilder with a single identity -
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
-
GroupSecurityIdentityBuilder
Construct a GroupSecurityIdentityBuilder with a single identity- Parameters:
identity-securityProvider-
-
GroupSecurityIdentityBuilder
Creates an instance of aGroupSecurityIdentityBuilderrecord 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
-