public final enum

ContentTypeEnum

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ com.atlassian.confluence.search.service.ContentTypeEnum

Class Overview

An enum representing the different content types that may be specified in a search.

Summary

Enum Values
ContentTypeEnum  ATTACHMENT   
ContentTypeEnum  BLOG   
ContentTypeEnum  COMMENT   
ContentTypeEnum  MAIL   
ContentTypeEnum  PAGE   
ContentTypeEnum  PERSONAL_INFORMATION   
ContentTypeEnum  PERSONAL_SPACE_DESCRIPTION   
ContentTypeEnum  SPACE_DESCRIPTION   
ContentTypeEnum  USER_STATUS   
Public Methods
static ContentTypeEnum get(String representation)
This method is deprecated. since 3.0. Use getByRepresentation(String) or getByClassName(String) instead.
static ContentTypeEnum getByClassName(String className)
static ContentTypeEnum getByRepresentation(String representation)
String getRepresentation()
Class<? extends EntityObject> getType()
String getTypeClass()
This method is deprecated. since 3.1 use getTypeName()
String getTypeName()
String toString()
static ContentTypeEnum valueOf(String name)
final static ContentTypeEnum[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final ContentTypeEnum ATTACHMENT

public static final ContentTypeEnum BLOG

public static final ContentTypeEnum COMMENT

public static final ContentTypeEnum MAIL

public static final ContentTypeEnum PAGE

public static final ContentTypeEnum PERSONAL_INFORMATION

public static final ContentTypeEnum PERSONAL_SPACE_DESCRIPTION

public static final ContentTypeEnum SPACE_DESCRIPTION

public static final ContentTypeEnum USER_STATUS

Public Methods

public static ContentTypeEnum get (String representation)

This method is deprecated.
since 3.0. Use getByRepresentation(String) or getByClassName(String) instead.

public static ContentTypeEnum getByClassName (String className)

Parameters
className fully qualified class name e.g. "com.atlassian.confluence.pages.Page"
Returns
  • the ContentTypeEnum for the supplied class name. null if none found.

public static ContentTypeEnum getByRepresentation (String representation)

Parameters
representation the String representation of the enum. e.g. CONTENT_TYPE
Returns
  • the ContentTypeEnum for the supplied String. null is returned if the parameter does not map to a ContentTypeEnum.

public String getRepresentation ()

public Class<? extends EntityObject> getType ()

public String getTypeClass ()

This method is deprecated.
since 3.1 use getTypeName()

public String getTypeName ()

public String toString ()

public static ContentTypeEnum valueOf (String name)

public static final ContentTypeEnum[] values ()