Class AccessTokenQueryBuilder
java.lang.Object
com.jalios.jcms.db.AbstractDBQueryBuilder<AccessToken>
com.jalios.jcms.authentication.accesstoken.AccessTokenQueryBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Memberprotected Booleanprotected Booleanprotected Stringprotected StringFields inherited from class com.jalios.jcms.db.AbstractDBQueryBuilder
author, counting, defaultOrder, firstResult, maxResults, noPaging, order -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddCriterions(org.hibernate.Criteria criteria) To override to add the custom criterionprotected voidaddExpireAfterCriterion(org.hibernate.Criteria criteria) Add the expiration after date criterionprotected voidaddExpireBeforeCriterion(org.hibernate.Criteria criteria) Add the expiration before date criterionprotected voidaddMemberCriterion(org.hibernate.Criteria criteria) Add the member criterionprotected voidaddPrefixModeCriterion(org.hibernate.Criteria criteria) Add the prefix mode criterionprotected voidaddTechnicalCriterion(org.hibernate.Criteria criteria) Add the technical criterionprotected voidaddTextCriterion(org.hibernate.Criteria criteria) Add the text criterionvoidaddTokenTypeCriterion(org.hibernate.Criteria criteria) Add the token type criterionexpireAfter(Date expireAfterDate) Set the expire after dateexpireBefore(Date expireBeforeDate) Set the expire after dateSet the Member filter.prefixMode(Boolean prefixMode) Set the prefix mode filterSet the technical filterSet the text filter (searched in Name, URL and methods field of AccessToken)Set the token type filtertoString()Methods inherited from class com.jalios.jcms.db.AbstractDBQueryBuilder
addAuthorCriterion, author, build, count, counting, createCriteria, first, firstResult, getDBDataClass, list, maxResults, noPaging, orderBy, scroll, scroll, setDefaultOrder
-
Field Details
-
member
-
text
-
tokenType
-
prefixMode
-
technical
-
-
Constructor Details
-
AccessTokenQueryBuilder
public AccessTokenQueryBuilder()
-
-
Method Details
-
addCriterions
protected void addCriterions(org.hibernate.Criteria criteria) Description copied from class:AbstractDBQueryBuilderTo override to add the custom criterion- Specified by:
addCriterionsin classAbstractDBQueryBuilder<AccessToken>- Parameters:
criteria- the Criteria
-
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
Set the Member filter.- Parameters:
member- the Member in which AccessToken allows to sign in- Returns:
- this instance for method chaining
-
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
Set the token type filter- Parameters:
tokenType- the toString value of any validAccessTokenManager.TokenType, null or empty to search for all types- Returns:
- this instance for method chaining
-
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
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
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
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
-