1 5 6 package org.exoplatform.services.wsrp.consumer.impl; 7 8 import org.exoplatform.services.wsrp.consumer.*; 9 import org.exoplatform.services.wsrp.type.StateChange; 10 11 17 18 public class ConsumerEnvironmentImpl implements ConsumerEnvironment{ 19 20 private String consumerAgent = "exoplatform.1.0"; 21 private String userAuthentication; 22 23 private PortletRegistry portletRegistry; 24 private PortletDriverRegistry portletDriverRegistry; 25 private ProducerRegistry producerRegistry; 26 private UserRegistry userRegistry; 27 private URLTemplateComposer urlTemplateComposer; 28 private URLRewriter urlRewriter; 29 private String [] supportedLocales; 30 private String [] supportedModes; 31 private String [] windowStates; 32 private StateChange stateChange; 33 private String [] characterEncodingSet; 34 private String [] mimeTypes; 35 36 public ConsumerEnvironmentImpl(PortletRegistry portletRegistry, 37 PortletDriverRegistry portletDriverRegistry, 38 ProducerRegistry producerRegistry, 39 UserRegistry userRegistry, 40 URLTemplateComposer urlTemplateComposer, 41 URLRewriter urlRewriter) { 42 this.portletRegistry = portletRegistry; 43 this.portletDriverRegistry = portletDriverRegistry; 44 this.producerRegistry = producerRegistry; 45 this.userRegistry = userRegistry; 46 this.urlTemplateComposer = urlTemplateComposer; 47 this.urlRewriter = urlRewriter; 48 } 49 50 public PortletRegistry getPortletRegistry() { 51 return portletRegistry; 52 } 53 54 public PortletDriverRegistry getPortletDriverRegistry() { 55 return portletDriverRegistry; 56 } 57 58 public ProducerRegistry getProducerRegistry() { 59 return producerRegistry; 60 } 61 62 public UserRegistry getUserRegistry() { 63 return userRegistry; 64 } 65 66 public URLTemplateComposer getTemplateComposer() { 67 return urlTemplateComposer; 68 } 69 70 public URLRewriter getURLRewriter() { 71 return urlRewriter; 72 } 73 74 public String getConsumerAgent() { 75 return consumerAgent; 76 } 77 78 public void setConsumerAgent(String name) { 79 this.consumerAgent = name; 80 } 81 82 public String getUserAuthentication() { 83 return userAuthentication; 84 } 85 86 public void setUserAuthentication(String authMethod) { 87 this.userAuthentication = authMethod; 88 } 89 90 public String [] getSupportedLocales() { 91 return supportedLocales; 92 } 93 94 public void setSupportedLocales(String [] locales) { 95 this.supportedLocales = locales; 96 } 97 98 public String [] getSupportedModes() { 99 return supportedModes; 100 } 101 102 public void setSupportedModes(String [] modes) { 103 this.supportedModes = modes; 104 } 105 106 public String [] getSupportedWindowStates() { 107 return windowStates; 108 } 109 110 public void setSupportedWindowStates(String [] states) { 111 this.windowStates = states; 112 } 113 114 public StateChange getPortletStateChange() { 115 return stateChange; 116 } 117 118 public void setPortletStateChange(StateChange portletStateChange) { 119 this.stateChange = portletStateChange; 120 } 121 122 public String [] getCharacterEncodingSet() { 123 return characterEncodingSet; 124 } 125 126 public void setCharacterEncodingSet(String [] charEncoding) { 127 this.characterEncodingSet = charEncoding; 128 } 129 130 public String [] getMimeTypes() { 131 return mimeTypes; 132 } 133 134 public void setMimeTypes(String [] mimeTypes) { 135 this.mimeTypes = mimeTypes; 136 } 137 } | Popular Tags |