public final class NoOpClauseSanitiser extends Object implements ClauseSanitiser
| Modifier and Type | Field and Description |
|---|---|
static NoOpClauseSanitiser |
NOOP_CLAUSE_SANITISER |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
clone() |
Clause |
sanitise(ApplicationUser user,
TerminalClause clause)
Given a user and a clause, will return a sanitised clause that when possible will not contain any information
that the specified user does not have permission to see.
|
public static final NoOpClauseSanitiser NOOP_CLAUSE_SANITISER
public Clause sanitise(ApplicationUser user, TerminalClause clause)
ClauseSanitiserGiven a user and a clause, will return a sanitised clause that when possible will not contain any information that the specified user does not have permission to see. For example, if the given clause names a project that the user cannot browse, a sanitiser might return a new clause with the name of the project replaced with the id.
It is important that the returned clause is equivalent to the input clause, within the constraints of the permissible clauses for the specified user.
sanitise in interface ClauseSanitiseruser - the user performing the searchclause - the clause to be sanitisedprotected Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionCopyright © 2002-2017 Atlassian. All Rights Reserved.