View Javadoc

1   package org.appfuse.webapp.server.services;
2   
3   import java.util.ArrayList;
4   import java.util.List;
5   
6   import org.appfuse.model.LabelValue;
7   import org.appfuse.model.Role;
8   import org.appfuse.webapp.client.proxies.LookupConstantsProxy;
9   import org.springframework.security.access.annotation.Secured;
10  
11  public interface LookupRequestService {
12  
13      /**
14       * Application wide constants to be sent to the client.
15       * 
16       * @see LookupConstantsProxy
17       */
18      public static class LookupConstants {
19  
20          private List<Role> availableRoles = new ArrayList<Role>();
21          private List<LabelValue> countries = new ArrayList<LabelValue>();
22  
23          public List<Role> getAvailableRoles() {
24              return availableRoles;
25          }
26  
27          public void setAvailableRoles(List<Role> availableRoles) {
28              this.availableRoles = availableRoles;
29          }
30  
31          public List<LabelValue> getCountries() {
32              return countries;
33          }
34  
35          public void setCountries(List<LabelValue> countries) {
36              this.countries = countries;
37          }
38  
39      }
40  
41      /**
42       * 
43       * @return
44       */
45      LookupConstants getApplicationConstants();
46  
47      /**
48       * 
49       * @return
50       */
51      @Secured("ROLE_ADMIN")
52      LookupConstants reloadOptions();
53  
54  }