Class RelationshipCondition


  • public class RelationshipCondition
    extends java.lang.Object
    RelationshipCondition
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      RelationshipCondition context​(java.lang.Object context)  
      boolean equals​(java.lang.Object o)
      Return true if this RelationshipCondition object is equal to o.
      java.lang.Object getContext()
      Additional context/data to persist along with the condition.
      java.lang.String getName()
      A reference (by name) of the relationship condition defined in the authorization model.
      int hashCode()  
      RelationshipCondition name​(java.lang.String name)  
      void setContext​(java.lang.Object context)  
      void setName​(java.lang.String name)  
      java.lang.String toString()  
      java.lang.String toUrlQueryString()
      Convert the instance into URL query string.
      java.lang.String toUrlQueryString​(java.lang.String prefix)
      Convert the instance into URL query string.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • JSON_PROPERTY_NAME

        public static final java.lang.String JSON_PROPERTY_NAME
        See Also:
        Constant Field Values
      • JSON_PROPERTY_CONTEXT

        public static final java.lang.String JSON_PROPERTY_CONTEXT
        See Also:
        Constant Field Values
    • Constructor Detail

      • RelationshipCondition

        public RelationshipCondition()
    • Method Detail

      • getName

        @Nonnull
        public java.lang.String getName()
        A reference (by name) of the relationship condition defined in the authorization model.
        Returns:
        name
      • setName

        public void setName​(java.lang.String name)
      • getContext

        @Nullable
        public java.lang.Object getContext()
        Additional context/data to persist along with the condition. The keys must match the parameters defined by the condition, and the value types must match the parameter type definitions.
        Returns:
        context
      • setContext

        public void setContext​(java.lang.Object context)
      • equals

        public boolean equals​(java.lang.Object o)
        Return true if this RelationshipCondition object is equal to o.
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toUrlQueryString

        public java.lang.String toUrlQueryString()
        Convert the instance into URL query string.
        Returns:
        URL query string
      • toUrlQueryString

        public java.lang.String toUrlQueryString​(java.lang.String prefix)
        Convert the instance into URL query string.
        Parameters:
        prefix - prefix of the query string
        Returns:
        URL query string