public class ContentTypesDisplayMapper extends Object implements DisplayMapper
Modifier and Type | Field and Description |
---|---|
static String |
CSS_CLASS_PREFIX |
static String |
DEFAULT_ATTACHMENT_CLASS_NAME |
static String |
DEFAULT_CLASS_NAME |
static org.slf4j.Logger |
log |
Constructor and Description |
---|
ContentTypesDisplayMapper()
Deprecated.
since 4.2 - get the mapper from the spring context because it needs wiring
|
ContentTypesDisplayMapper(UserAccessor userAccessor,
ContentUiSupport contentUiSupport) |
Modifier and Type | Method and Description |
---|---|
String |
getClassName(SearchResult result)
Get the CSS class name for the supplied SearchResult.
|
String |
getClassName(SearchResult result)
Get the CSS class name for the supplied SearchResult.
|
static String |
getIconForAttachment(String contentType,
String fileName)
Decide the icon for an attachment based firstly on it's contentType.
|
String |
getIconUriReferenceForUsername(String username) |
String |
getIconUrlForUsername(String username)
Deprecated.
since 5.10 use
getIconUriReferenceForUsername(java.lang.String) |
public static final org.slf4j.Logger log
public static final String CSS_CLASS_PREFIX
public static final String DEFAULT_CLASS_NAME
public static final String DEFAULT_ATTACHMENT_CLASS_NAME
@Deprecated public ContentTypesDisplayMapper()
public ContentTypesDisplayMapper(UserAccessor userAccessor, ContentUiSupport contentUiSupport)
public String getClassName(SearchResult result)
result
- the SearchResult that a CSS class is required for.SearchResult
.public String getClassName(SearchResult result)
getClassName
in interface DisplayMapper
result
- the SearchResult that a CSS class is required for.SearchResult
.public static String getIconForAttachment(String contentType, String fileName)
contentType
- fileName
- @Deprecated public String getIconUrlForUsername(String username)
getIconUriReferenceForUsername(java.lang.String)
username
- the username to find an icon for.public String getIconUriReferenceForUsername(String username)
username
- the username to find an icon for.Copyright © 2003–2017 Atlassian. All rights reserved.