Package org.exoplatform.caldav.client
Record Class AccessControlEntry.AcePrincipal
java.lang.Object
java.lang.Record
org.exoplatform.caldav.client.AccessControlEntry.AcePrincipal
- Record Components:
kind- which formhref- the principal href, forAccessControlEntry.AcePrincipal.Kind.HREFonlypropertyNamespace- the property's namespace, forAccessControlEntry.AcePrincipal.Kind.PROPERTYonlypropertyName- the property's local name, forAccessControlEntry.AcePrincipal.Kind.PROPERTYonly
- Enclosing class:
AccessControlEntry
public static record AccessControlEntry.AcePrincipal(AccessControlEntry.AcePrincipal.Kind kind, String href, String propertyNamespace, String propertyName)
extends Record
Whom an entry applies to: one of the six forms RFC 3744 ยง5.5.1 allows.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe forms ofDAV:principal. -
Constructor Summary
ConstructorsConstructorDescriptionAcePrincipal(AccessControlEntry.AcePrincipal.Kind kind, String href, String propertyNamespace, String propertyName) Creates an instance of aAcePrincipalrecord 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.href()Returns the value of thehrefrecord component.A principal named by its href.kind()Returns the value of thekindrecord component.A principal of a form that carries nothing but its kind.The principal a property of the resource names.Returns the value of thepropertyNamerecord component.Returns the value of thepropertyNamespacerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AcePrincipal
public AcePrincipal(AccessControlEntry.AcePrincipal.Kind kind, String href, String propertyNamespace, String propertyName) Creates an instance of aAcePrincipalrecord class.- Parameters:
kind- the value for thekindrecord componenthref- the value for thehrefrecord componentpropertyNamespace- the value for thepropertyNamespacerecord componentpropertyName- the value for thepropertyNamerecord component
-
-
Method Details
-
href
A principal named by its href.- Parameters:
href- the principal's href- Returns:
- the principal
-
of
A principal of a form that carries nothing but its kind.- Parameters:
kind-AccessControlEntry.AcePrincipal.Kind.ALL,AccessControlEntry.AcePrincipal.Kind.AUTHENTICATED,AccessControlEntry.AcePrincipal.Kind.UNAUTHENTICATEDorAccessControlEntry.AcePrincipal.Kind.SELF- Returns:
- the principal
-
property
The principal a property of the resource names.- Parameters:
namespace- the property's namespacename- the property's local name- Returns:
- the principal
-
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). -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
href
Returns the value of thehrefrecord component.- Returns:
- the value of the
hrefrecord component
-
propertyNamespace
Returns the value of thepropertyNamespacerecord component.- Returns:
- the value of the
propertyNamespacerecord component
-
propertyName
Returns the value of thepropertyNamerecord component.- Returns:
- the value of the
propertyNamerecord component
-