Record Class DocumentAudience
java.lang.Object
java.lang.Record
org.exoplatform.documents.model.DocumentAudience
- Record Components:
owner- the user name of the file's owner, possibly nullusers- the user names the file is shared with one by onespaceGroupId- the group id of the space whose documents hold the file, or null
-
Constructor Summary
ConstructorsConstructorDescriptionDocumentAudience(String owner, List<String> users, String spaceGroupId) Creates an instance of aDocumentAudiencerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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 thespaceGroupIdrecord component.final StringtoString()Returns a string representation of this record class.users()Returns the value of theusersrecord component.
-
Constructor Details
-
DocumentAudience
Creates an instance of aDocumentAudiencerecord class.- Parameters:
owner- the value for theownerrecord componentusers- the value for theusersrecord componentspaceGroupId- the value for thespaceGroupIdrecord 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). -
owner
-
users
-
spaceGroupId
Returns the value of thespaceGroupIdrecord component.- Returns:
- the value of the
spaceGroupIdrecord component
-