@Internal
public interface 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
getHqlPermissionFilterString(java.lang.String) |
String getHqlPermissionFilterString(String spacePermissionTableAlias)
substituteHqlQueryParameters(org.hibernate.query.Query)
MUST be called subsequently, to substitute in the
required parameters.spacePermissionTableAlias
- alias of the SpacePermission table being queriedvoid substituteHqlQueryParameters(org.hibernate.query.Query query)
getHqlPermissionFilterString(java.lang.String)
query
- the full HQL query, containing the contents of a previous call to
getHqlPermissionFilterString(java.lang.String)
(as well as other SQL clauses added elsewhere)@Nullable ConfluenceUser getUser()
null
for anonymous.Copyright © 2003–2021 Atlassian. All rights reserved.