@Internal public class SpacePermissionQueryBuilderImpl extends Object implements SpacePermissionQueryBuilder
Modifier and Type | Method and Description |
---|---|
String |
getHqlPermissionFilterString(String spacePermissionTableAlias)
Creates an HQL string of conditions / filter to add to the "WHERE" clause of an HQL query, filtering down to
SpacePermission rows which match / grant access to the user.
|
@Nullable ConfluenceUser |
getUser()
Returns the user this query builder was constructed for.
|
void |
substituteHqlQueryParameters(org.hibernate.query.Query query)
Substitutes values into the parameters added by
SpacePermissionQueryBuilder.getHqlPermissionFilterString(java.lang.String) |
public String getHqlPermissionFilterString(String spacePermissionTableAlias)
SpacePermissionQueryBuilder
SpacePermissionQueryBuilder.substituteHqlQueryParameters(org.hibernate.query.Query)
MUST be called subsequently, to substitute in the
required parameters.getHqlPermissionFilterString
in interface SpacePermissionQueryBuilder
spacePermissionTableAlias
- alias of the SpacePermission table being queriedpublic void substituteHqlQueryParameters(org.hibernate.query.Query query)
SpacePermissionQueryBuilder
SpacePermissionQueryBuilder.getHqlPermissionFilterString(java.lang.String)
substituteHqlQueryParameters
in interface SpacePermissionQueryBuilder
query
- the full HQL query, containing the contents of a previous call to
SpacePermissionQueryBuilder.getHqlPermissionFilterString(java.lang.String)
(as well as other SQL clauses added elsewhere)public @Nullable ConfluenceUser getUser()
SpacePermissionQueryBuilder
null
for anonymous.getUser
in interface SpacePermissionQueryBuilder
Copyright © 2003–2019 Atlassian. All rights reserved.