1 package com.atlassian.plugins.rest.test;
2
3 import com.atlassian.plugins.rest.common.expand.AbstractRecursiveEntityExpander;
4
5 public class ProjectInformationExpander extends AbstractRecursiveEntityExpander<ProjectInformation>
6 {
7 protected ProjectInformation expandInternal(ProjectInformation information)
8 {
9 if (information.getLink().getHref().toString().contains("project1"))
10 {
11 information.setLongName("Project One");
12 information.setLongDescription("This is project One. It comes before project Two.");
13 }
14 return information;
15 }
16 }