Class Category
java.lang.Object
com.atlassian.confluence.search.contentnames.Category
Represents a category in which results coming back from a content name search can be put in.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Category
A category for attachment results.static final Category
A category for blog results.static final Category
A category for comments.static final Category
A category for page and blog results combined.static final Category
A category for custom content.static final Category
A category for page results.static final Category
A category for people results.static final Category
A category for personal spaces.static final Category
A category for space results. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getCategories
(String contentType) Returns a Set of Categories the content of specific type belongs to.static Category
getCategory
(String type) Return a Category for the supplied type.getName()
int
hashCode()
toString()
-
Field Details
-
PAGES
A category for page results. -
BLOGS
A category for blog results. -
CONTENT
A category for page and blog results combined. -
ATTACHMENTS
A category for attachment results. -
PEOPLE
A category for people results. -
SPACES
A category for space results. -
COMMENTS
A category for comments. -
PERSONAL_SPACE
A category for personal spaces. -
CUSTOM
A category for custom content.
-
-
Constructor Details
-
Category
-
-
Method Details
-
getCategory
Return a Category for the supplied type. If the type supplied matches one of the standard category types then that existing Category will be returned. Otherwise a new category will be created and returned.- Parameters:
type
- must not be null- Returns:
- the matching category or a newly created one if there is no standard category for the type
-
getCategories
Returns a Set of Categories the content of specific type belongs to. Most of the content types belong to a one corresponding category, for example: "attachment" belongs to Category Attachment. But the content type "page" belongs to Categories Page and Content and similarly the content type "blogpost" belongs to Categories BlogPost and Content. -
getName
-
equals
-
hashCode
public int hashCode() -
toString
-