Record Class AnnotatedPermitChecker.AccessPermission

java.lang.Object
java.lang.Record
com.atlassian.confluence.impl.security.access.AnnotatedPermitChecker.AccessPermission
Enclosing interface:
AnnotatedPermitChecker

public static record AnnotatedPermitChecker.AccessPermission(boolean permitted, @Nullable Class<? extends Annotation> targetAnnotation) extends Record
Since:
9.1
  • Constructor Details

    • AccessPermission

      public AccessPermission(boolean permitted, @Nullable Class<? extends Annotation> targetAnnotation)
      Creates an instance of a AccessPermission record class.
      Parameters:
      permitted - the value for the permitted record component
      targetAnnotation - the value for the targetAnnotation record component
  • Method Details

    • granted

      public static AnnotatedPermitChecker.AccessPermission granted()
    • denied

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • permitted

      public boolean permitted()
      Returns the value of the permitted record component.
      Returns:
      the value of the permitted record component
    • targetAnnotation

      public @Nullable Class<? extends Annotation> targetAnnotation()
      Returns the value of the targetAnnotation record component.
      Returns:
      the value of the targetAnnotation record component