Record Class DocumentAccessChange
java.lang.Object
java.lang.Record
org.exoplatform.documents.model.DocumentAccessChange
- Record Components:
storedIdentities- the identities of the access list the document reads: its own, or its folder's when it has none of its ownrequestedIdentities- the identities a save of the requested permissions writes on the document's access list, empty when no permissions are requestedowner- the document's owner as stored (exo:owner), null when it has nonedriveRootIdentities- the identities of the access list of the space's drive root
public record DocumentAccessChange(Set<String> storedIdentities, Set<String> requestedIdentities, String owner, Set<String> driveRootIdentities)
extends Record
What a change of a space document's access is decided on, each identity as
an access list writes it: a user name, a membership such as
manager:/spaces/team, or any-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedriveRootIdentitiesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.owner()Returns the value of theownerrecord component.Returns the value of therequestedIdentitiesrecord component.Returns the value of thestoredIdentitiesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DocumentAccessChange
public DocumentAccessChange(Set<String> storedIdentities, Set<String> requestedIdentities, String owner, Set<String> driveRootIdentities) Creates an instance of aDocumentAccessChangerecord class.- Parameters:
storedIdentities- the value for thestoredIdentitiesrecord componentrequestedIdentities- the value for therequestedIdentitiesrecord componentowner- the value for theownerrecord componentdriveRootIdentities- the value for thedriveRootIdentitiesrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
storedIdentities
Returns the value of thestoredIdentitiesrecord component.- Returns:
- the value of the
storedIdentitiesrecord component
-
requestedIdentities
Returns the value of therequestedIdentitiesrecord component.- Returns:
- the value of the
requestedIdentitiesrecord component
-
owner
-
driveRootIdentities
Returns the value of thedriveRootIdentitiesrecord component.- Returns:
- the value of the
driveRootIdentitiesrecord component
-