com.atlassian.confluence.search.v2.query
Class ContributorQuery

java.lang.Object
  extended by com.atlassian.confluence.search.v2.query.AbstractUserQuery
      extended by com.atlassian.confluence.search.v2.query.ContributorQuery
All Implemented Interfaces:
SearchQuery

public class ContributorQuery
extends AbstractUserQuery
implements SearchQuery

Creates a query to find content a user has contributed to (any edit or create is considered a contribution)


Constructor Summary
ContributorQuery(String contributor)
          Creates a new contributor query for a particular user.
ContributorQuery(com.atlassian.sal.api.user.UserKey userKey)
           
 
Method Summary
 String getContributor()
          Deprecated. since 5.7 use getUsername() or getUserKey() instead
 String getKey()
           
 
Methods inherited from class com.atlassian.confluence.search.v2.query.AbstractUserQuery
equals, getParameters, getUserkey, getUsername, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.confluence.search.v2.SearchQuery
getParameters
 

Constructor Detail

ContributorQuery

public ContributorQuery(String contributor)
Creates a new contributor query for a particular user.

Parameters:
contributor - username of the user to query against.

ContributorQuery

public ContributorQuery(@NotNull
                        com.atlassian.sal.api.user.UserKey userKey)
Method Detail

getKey

public String getKey()
Specified by:
getKey in interface SearchQuery
Returns:
the plugin key

getContributor

@Deprecated
public String getContributor()
Deprecated. since 5.7 use getUsername() or getUserKey() instead



Copyright © 2003–2015 Atlassian. All rights reserved.