Interface WarlockTicketService.Term

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      boolean decode(String str) Whether it can decode and match exactly.
      boolean decode(String str, boolean exactly) Whether the string can decode into Term and its value
      static String encode(WarlockTicketService.Term term) encode term to string
      int getSize() Number of field to encode and decode.
      abstract int getType()
      abstract void setType(int type)
      abstract long getUserId() the userid of the resource visitor
      abstract void setUserId(long userId) the userid of the resource visitor
      abstract String getScopes() the scope of resource, space seperated (corresponds to the permissions)
      abstract void setScopes(String scopes) the scope of resource, space seperated (corresponds to the permissions)
      abstract String getClientId() the clientId of the resource visitor, Support for one-to-many scenarios
      abstract void setClientId(String clientId) the clientId of the resource visitor, Support for one-to-many scenarios
      abstract String getSessionId() the sessionId of the resource owner, no session in api
      abstract void setSessionId(String sessionId) the sessionId of the resource owner, no session in api
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • decode

         boolean decode(String str)

        Whether it can decode and match exactly.

      • decode

         boolean decode(String str, boolean exactly)

        Whether the string can decode into Term and its value

      • getSize

         int getSize()

        Number of field to encode and decode.

      • setType

         abstract void setType(int type)
      • getUserId

         abstract long getUserId()

        the userid of the resource visitor

      • setUserId

         abstract void setUserId(long userId)

        the userid of the resource visitor

      • getScopes

         abstract String getScopes()

        the scope of resource, space seperated (corresponds to the permissions)

      • setScopes

         abstract void setScopes(String scopes)

        the scope of resource, space seperated (corresponds to the permissions)

      • getClientId

         abstract String getClientId()

        the clientId of the resource visitor, Support for one-to-many scenarios

      • setClientId

         abstract void setClientId(String clientId)

        the clientId of the resource visitor, Support for one-to-many scenarios

      • getSessionId

         abstract String getSessionId()

        the sessionId of the resource owner, no session in api

      • setSessionId

         abstract void setSessionId(String sessionId)

        the sessionId of the resource owner, no session in api