com.atlassian.confluence.search.contentnames
Class SearchResult

java.lang.Object
  extended by com.atlassian.confluence.search.contentnames.SearchResult

public class SearchResult
extends java.lang.Object

Represents a search result from a content name search.


Constructor Summary
SearchResult(java.lang.Long id, java.lang.String name, java.lang.String url, java.lang.String contentType)
           
 
Method Summary
 Category getCategory()
           
 java.lang.String getContentPluginKey()
           
 java.lang.String getContentType()
           
 java.util.Date getCreatedDate()
           
 java.lang.String getCreator()
          Deprecated. since 5.2. Usernames should not be used as keys. Please use getCreator() instead.
 ConfluenceUser getCreatorUser()
          Returns the creator of this result.
 java.lang.Long getId()
           
 java.util.Date getLastModifiedDate()
           
 java.lang.String getLastModifier()
          Deprecated. since 5.2. Usernames should not be used as keys. Please use getLastModifier() instead.
 ConfluenceUser getLastModifierUser()
          Returns the last modifier of this result.
 java.lang.String getName()
           
 java.lang.String getOwnerType()
           
 java.lang.String getParentTitle()
           
 java.lang.String getPreviewKey()
          The previewKey property provides information a client can use to show a relevant preview/icon for this result.
 java.lang.String getSpaceKey()
           
 java.lang.String getSpaceName()
           
 java.lang.String getUrl()
           
 java.lang.String getUsername()
           
 void setCategory(Category category)
           
 void setContentPluginKey(java.lang.String contentPluginKey)
           
 void setContentType(java.lang.String contentType)
           
 void setCreatedDate(java.util.Date createdDate)
           
 void setCreatorKey(com.atlassian.sal.api.user.UserKey creatorKey)
           
 void setLastModifiedDate(java.util.Date lastModifiedDate)
           
 void setLastModifierKey(com.atlassian.sal.api.user.UserKey lastModifierKey)
           
 void setName(java.lang.String name)
           
 void setOwnerType(java.lang.String ownerType)
           
 void setParentTitle(java.lang.String parentTitle)
           
 void setPreviewKey(java.lang.String previewKey)
           
 void setSpaceKey(java.lang.String spaceKey)
           
 void setSpaceName(java.lang.String spaceName)
           
 void setUrl(java.lang.String url)
           
 void setUsername(java.lang.String username)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SearchResult

public SearchResult(java.lang.Long id,
                    java.lang.String name,
                    java.lang.String url,
                    java.lang.String contentType)
Method Detail

getId

public java.lang.Long getId()

getName

public java.lang.String getName()

getUrl

public java.lang.String getUrl()

getContentType

public java.lang.String getContentType()

getPreviewKey

public java.lang.String getPreviewKey()
The previewKey property provides information a client can use to show a relevant preview/icon for this result. For example, when the result represents an Attachment the previewKey will contain it's mime type (if it has one). If the result represents a PersonalInformation then the previewKey will contain the username.

Returns:
information about this result that can be used to find the preview information that may be shown for this result.

getCategory

public Category getCategory()

getSpaceName

public java.lang.String getSpaceName()

getSpaceKey

public java.lang.String getSpaceKey()

getOwnerType

public java.lang.String getOwnerType()

getCreatedDate

public java.util.Date getCreatedDate()

getLastModifiedDate

public java.util.Date getLastModifiedDate()

getParentTitle

public java.lang.String getParentTitle()

setName

public void setName(java.lang.String name)

setUrl

public void setUrl(java.lang.String url)

setContentType

public void setContentType(java.lang.String contentType)

setPreviewKey

public void setPreviewKey(java.lang.String previewKey)

setCategory

public void setCategory(Category category)

setSpaceName

public void setSpaceName(java.lang.String spaceName)

setSpaceKey

public void setSpaceKey(java.lang.String spaceKey)

setOwnerType

public void setOwnerType(java.lang.String ownerType)

setCreatedDate

public void setCreatedDate(java.util.Date createdDate)

setLastModifiedDate

public void setLastModifiedDate(java.util.Date lastModifiedDate)

setParentTitle

public void setParentTitle(java.lang.String parentTitle)

setContentPluginKey

public void setContentPluginKey(java.lang.String contentPluginKey)

getContentPluginKey

public java.lang.String getContentPluginKey()

getCreator

@Deprecated
public java.lang.String getCreator()
Deprecated. since 5.2. Usernames should not be used as keys. Please use getCreator() instead.

Returns the username of the creator of this result.

Returns:
username of the creator of this result

getCreatorUser

public ConfluenceUser getCreatorUser()
Returns the creator of this result.

Returns:
creator of this result
Since:
5.2

setCreatorKey

public void setCreatorKey(com.atlassian.sal.api.user.UserKey creatorKey)
Since:
5.2

getLastModifier

@Deprecated
public java.lang.String getLastModifier()
Deprecated. since 5.2. Usernames should not be used as keys. Please use getLastModifier() instead.

Returns the username of the last modifier of this result.

Returns:
username of the last modifier of this result

getLastModifierUser

public ConfluenceUser getLastModifierUser()
Returns the last modifier of this result.

Returns:
last modifier of this result
Since:
5.2

setLastModifierKey

public void setLastModifierKey(com.atlassian.sal.api.user.UserKey lastModifierKey)

getUsername

public java.lang.String getUsername()

setUsername

public void setUsername(java.lang.String username)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2003-2014 Atlassian. All Rights Reserved.