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