1 package com.atlassian.sal.core.search;
2
3 import com.atlassian.sal.api.ApplicationProperties;
4 import com.atlassian.sal.api.UrlMode;
5 import com.atlassian.sal.api.search.ResourceType;
6
7
8
9 public class BasicResourceType implements ResourceType {
10 private String name;
11 private String url;
12 private String type;
13
14 public BasicResourceType(ApplicationProperties applicationProperties, String type) {
15 this.name = applicationProperties.getDisplayName();
16 this.url = applicationProperties.getBaseUrl(UrlMode.AUTO);
17 this.type = type;
18 }
19
20 public String getName() {
21 return name;
22 }
23
24 public String getUrl() {
25 return url;
26 }
27
28 public String getType() {
29 return type;
30 }
31 }