public class

Category

extends Object
java.lang.Object
   ↳ com.atlassian.confluence.search.contentnames.Category

Class Overview

Represents a category in which results coming back from a content name search can be put in.

Summary

Fields
public static final Category ATTACHMENTS A category for attachment results.
public static final Category BLOGS A category for blog results.
public static final Category COMMENTS A category for comments.
public static final Category CONTENT A category for page and blog results combined.
public static final Category CUSTOM A category for custom content.
public static final Category MAIL A category for mail.
public static final Category PAGES A category for page results.
public static final Category PEOPLE A category for people results.
public static final Category PERSONAL_SPACE A category for personal spaces.
public static final Category SPACES A category for space results.
Public Constructors
Category(String name)
Public Methods
boolean equals(Object o)
static Category getCategory(String type)
Return a Category for the supplied type.
String getName()
int hashCode()
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static final Category ATTACHMENTS

A category for attachment results.

public static final Category BLOGS

A category for blog results.

public static final Category COMMENTS

A category for comments.

public static final Category CONTENT

A category for page and blog results combined.

public static final Category CUSTOM

A category for custom content.

public static final Category MAIL

A category for mail.

public static final Category PAGES

A category for page results.

public static final Category PEOPLE

A category for people results.

public static final Category PERSONAL_SPACE

A category for personal spaces.

public static final Category SPACES

A category for space results.

Public Constructors

public Category (String name)

Public Methods

public boolean equals (Object o)

public static Category getCategory (String type)

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

public String getName ()

public int hashCode ()

public String toString ()