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 protected ProjectInformation expandInternal(ProjectInformation information) {
7 if (information.getLink().getHref().toString().contains("project1")) {
8 information.setLongName("Project One");
9 information.setLongDescription("This is project One. It comes before project Two.");
10 }
11 return information;
12 }
13 }