Package com.adobe.granite.security.user
Interface UserPropertiesQueryParams
- 
@ProviderType public interface UserPropertiesQueryParamsGroups together all the criteria and controls that can be used to configure the search for authorizables. 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable AuthorizableTypesgetAuthorizableTypes()Returns theAuthorizableTypesof the query.@Nullable java.lang.StringgetFulltextQuery()Returns the string used during fulltext search.@Nullable java.lang.BooleangetImpersonableUserFilter()Returns whether to filter for the users that the provided user can impersonate:Boolean.TRUEInclude only the users that the provided user can impersonate.Boolean.FALSECurrently not supportednullNo filtering is performed with regards to impersonation. When this methods returns a non null value, it is guaranteed that a non null impersonator principal name has been set.@Nullable java.lang.StringgetImpersonatorPrincipalName()Gets the name of the user that can or cannot impersonate the users from the query.longgetLimit()Returns the limit of the query.longgetOffset()Returns the offset of the query.@NotNull UserPropertiesQueryParamswithAuthorizableTypes(@NotNull AuthorizableTypes authorizableTypes)Sets theAuthorizableTypesof the query.@NotNull UserPropertiesQueryParamswithFulltextQuery(@Nullable java.lang.String fulltextQuery)Sets the string used during fulltext search.@NotNull UserPropertiesQueryParamswithLimit(long limit)Sets the limit of the query.@NotNull UserPropertiesQueryParamswithOffset(long offset)Sets the offset of the query.@NotNull UserPropertiesQueryParamswithOnlyUsersThatCanBeImpersonatedBy(@Nullable java.lang.String impersonatorPrincipalName)Sets whether to filter for the users that the provided user can 
 - 
 
- 
- 
Method Detail
- 
getOffset
long getOffset()
Returns the offset of the query.- Returns:
 - The index of the first resulted item to be returned by the query.
 
 
- 
withOffset
@NotNull @NotNull UserPropertiesQueryParams withOffset(long offset)
Sets the offset of the query.- Parameters:
 offset- The index of the first resulted item to be returned by the query.- Returns:
 this
 
- 
getLimit
long getLimit()
Returns the limit of the query.- Returns:
 - The maximum count of items to be returned by the query.
 
 
- 
withLimit
@NotNull @NotNull UserPropertiesQueryParams withLimit(long limit)
Sets the limit of the query.- Parameters:
 limit- The maximum count of items to be returned by the query.- Returns:
 this
 
- 
getFulltextQuery
@Nullable @Nullable java.lang.String getFulltextQuery()
Returns the string used during fulltext search.- Returns:
 - The fulltext query string.
 
 
- 
withFulltextQuery
@NotNull @NotNull UserPropertiesQueryParams withFulltextQuery(@Nullable @Nullable java.lang.String fulltextQuery)
Sets the string used during fulltext search.- Parameters:
 fulltextQuery- The fulltext query string.- Returns:
 this
 
- 
getAuthorizableTypes
@Nullable @Nullable AuthorizableTypes getAuthorizableTypes()
Returns theAuthorizableTypesof the query.- Returns:
 - The 
AuthorizableTypes. 
 
- 
withAuthorizableTypes
@NotNull @NotNull UserPropertiesQueryParams withAuthorizableTypes(@NotNull @NotNull AuthorizableTypes authorizableTypes)
Sets theAuthorizableTypesof the query.- Parameters:
 authorizableTypes- TheAuthorizableTypes.- Returns:
 this
 
- 
getImpersonableUserFilter
@Nullable @Nullable java.lang.Boolean getImpersonableUserFilter()
Returns whether to filter for the users that the provided user can impersonate:Boolean.TRUE- Include only the users that the provided user can impersonate.
 Boolean.FALSE- Currently not supported
 null- No filtering is performed with regards to impersonation.
 
jcr:readpermissions for the authorizable node.- Returns:
 - The Boolean whether to filter the impersonatees.
 
 
- 
getImpersonatorPrincipalName
@Nullable @Nullable java.lang.String getImpersonatorPrincipalName()
Gets the name of the user that can or cannot impersonate the users from the query.- Returns:
 - the name of the user or 
nullif no filtering is performed with regards to impersonation. 
 
- 
withOnlyUsersThatCanBeImpersonatedBy
@NotNull @NotNull UserPropertiesQueryParams withOnlyUsersThatCanBeImpersonatedBy(@Nullable @Nullable java.lang.String impersonatorPrincipalName)
Sets whether to filter for the users that the provided user can- Parameters:
 impersonatorPrincipalName- the name of the user that can impersonate the users from the query result. If set tonull, no filter will be performed with regards to impersonation- Returns:
 this
 
 - 
 
 -