Class AccessTokenQueryBuilder
- java.lang.Object
-
- com.jalios.jcms.db.AbstractDBQueryBuilder<AccessToken>
-
- com.jalios.jcms.authentication.accesstoken.AccessTokenQueryBuilder
-
public class AccessTokenQueryBuilder extends AbstractDBQueryBuilder<AccessToken>
-
-
Field Summary
Fields Modifier and Type Field Description protected Member
member
protected java.lang.Boolean
prefixMode
protected java.lang.Boolean
technical
protected java.lang.String
text
protected java.lang.String
tokenType
-
Fields inherited from class com.jalios.jcms.db.AbstractDBQueryBuilder
author, counting, defaultOrder, firstResult, maxResults, noPaging, order
-
-
Constructor Summary
Constructors Constructor Description AccessTokenQueryBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addCriterions(org.hibernate.Criteria criteria)
To override to add the custom criterionprotected void
addExpireAfterCriterion(org.hibernate.Criteria criteria)
Add the expiration after date criterionprotected void
addExpireBeforeCriterion(org.hibernate.Criteria criteria)
Add the expiration before date criterionprotected void
addMemberCriterion(org.hibernate.Criteria criteria)
Add the member criterionprotected void
addPrefixModeCriterion(org.hibernate.Criteria criteria)
Add the prefix mode criterionprotected void
addTechnicalCriterion(org.hibernate.Criteria criteria)
Add the technical criterionprotected void
addTextCriterion(org.hibernate.Criteria criteria)
Add the text criterionvoid
addTokenTypeCriterion(org.hibernate.Criteria criteria)
Add the token type criterionAccessTokenQueryBuilder
expireAfter(java.util.Date expireAfterDate)
Set the expire after dateAccessTokenQueryBuilder
expireBefore(java.util.Date expireBeforeDate)
Set the expire after dateAccessTokenQueryBuilder
member(Member member)
Set the Member filter.AccessTokenQueryBuilder
prefixMode(java.lang.Boolean prefixMode)
Set the prefix mode filterAccessTokenQueryBuilder
technical(java.lang.Boolean technical)
Set the technical filterAccessTokenQueryBuilder
text(java.lang.String text)
Set the text filter (searched in Name, URL and methods field of AccessToken)AccessTokenQueryBuilder
tokenType(java.lang.String tokenType)
Set the token type filterjava.lang.String
toString()
-
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 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
-
-
Method Detail
-
addCriterions
protected void addCriterions(org.hibernate.Criteria criteria)
Description copied from class:AbstractDBQueryBuilder
To override to add the custom criterion- Specified by:
addCriterions
in 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
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 validAccessTokenManager.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 classjava.lang.Object
- Since:
- jcms-10.0.8 / JCMS-4770
-
-