com.atlassian.jira.jql.permission
Class NoOpClauseSanitiser
java.lang.Object
com.atlassian.jira.jql.permission.NoOpClauseSanitiser
- All Implemented Interfaces:
- ClauseSanitiser
public final class NoOpClauseSanitiser
- extends java.lang.Object
- implements ClauseSanitiser
A No-Op sanitiser that simply returns the input clause.
- Since:
- v4.0
Method Summary |
protected java.lang.Object |
clone()
|
Clause |
sanitise(com.opensymphony.user.User 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. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NOOP_CLAUSE_SANITISER
public static final NoOpClauseSanitiser NOOP_CLAUSE_SANITISER
sanitise
public Clause sanitise(com.opensymphony.user.User user,
TerminalClause clause)
- Description copied from interface:
ClauseSanitiser
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. 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.
- Specified by:
sanitise
in interface ClauseSanitiser
- Parameters:
user
- the user performing the searchclause
- the clause to be sanitised
- Returns:
- the sanitised clause; never null.
clone
protected java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Overrides:
clone
in class java.lang.Object
- Throws:
java.lang.CloneNotSupportedException
Copyright © 2002-2010 Atlassian. All Rights Reserved.