Class AccessTokenQueryBuilder

    • Field Detail

      • member

        protected Member member
      • text

        protected java.lang.String text
      • tokenType

        protected java.lang.String tokenType
      • prefixMode

        protected java.lang.Boolean prefixMode
      • technical

        protected java.lang.Boolean technical
    • Constructor Detail

      • AccessTokenQueryBuilder

        public AccessTokenQueryBuilder()
    • Method Detail

      • addMemberCriterion

        protected void addMemberCriterion​(org.hibernate.Criteria criteria)
        Add the member criterion
        Parameters:
        criteria - the Criteria
      • addTextCriterion

        protected void addTextCriterion​(org.hibernate.Criteria criteria)
        Add the text criterion
        Parameters:
        criteria - the Criteria
      • addTokenTypeCriterion

        public void addTokenTypeCriterion​(org.hibernate.Criteria criteria)
        Add the token type criterion
        Parameters:
        criteria - the Criteria
      • addPrefixModeCriterion

        protected void addPrefixModeCriterion​(org.hibernate.Criteria criteria)
        Add the prefix mode criterion
        Parameters:
        criteria - the Criteria
      • addTechnicalCriterion

        protected void addTechnicalCriterion​(org.hibernate.Criteria criteria)
        Add the technical criterion
        Parameters:
        criteria - the Criteria
      • addExpireAfterCriterion

        protected void addExpireAfterCriterion​(org.hibernate.Criteria criteria)
        Add the expiration after date criterion
        Parameters:
        criteria - the Criteria
        Since:
        jcms-10.0.8 / JCMS-4770
      • addExpireBeforeCriterion

        protected void addExpireBeforeCriterion​(org.hibernate.Criteria criteria)
        Add the expiration before date criterion
        Parameters:
        criteria - the Criteria
        Since:
        jcms-10.0.8 / JCMS-4770
      • member

        public AccessTokenQueryBuilder member​(Member member)
        Set the Member filter.
        Parameters:
        member - the Member in which AccessToken allows to sign in
        Returns:
        this instance for method chaining
      • text

        public AccessTokenQueryBuilder text​(java.lang.String text)
        Set the text filter (searched in Name, URL and methods field of AccessToken)
        Parameters:
        text - null or empty for no text field, or any string value to search in AccessTokens
        Returns:
        this instance for method chaining
      • tokenType

        public AccessTokenQueryBuilder tokenType​(java.lang.String tokenType)
        Set the token type filter
        Parameters:
        tokenType - the toString value of any valid AccessTokenManager.TokenType, null or empty to search for all types
        Returns:
        this instance for method chaining
      • prefixMode

        public AccessTokenQueryBuilder prefixMode​(java.lang.Boolean prefixMode)
        Set the prefix mode filter
        Parameters:
        prefixMode - null for no prefixmode filter, true to search for AccessToken in prefix mode, false to search for AccessToken in exact mode
        Returns:
        this instance for method chaining
      • technical

        public AccessTokenQueryBuilder technical​(java.lang.Boolean technical)
        Set the technical filter
        Parameters:
        technical - null for no technical filter, true to search for programmatically created AccessToken, false to search for manually created AccessToken
        Returns:
        this instance for method chaining
      • expireAfter

        public AccessTokenQueryBuilder expireAfter​(java.util.Date expireAfterDate)
        Set the expire after date
        Parameters:
        expireAfterDate - date after which searched tokens must expire
        Returns:
        this instance for method chaining
        Since:
        jcms-10.0.8 / JCMS-4770
      • expireBefore

        public AccessTokenQueryBuilder expireBefore​(java.util.Date expireBeforeDate)
        Set the expire after date
        Parameters:
        expireBeforeDate - date before which searched tokens must expire
        Returns:
        this instance for method chaining
        Since:
        jcms-10.0.8 / JCMS-4770
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        Since:
        jcms-10.0.8 / JCMS-4770