Application Configuration Example

In this example, the Spring configuration for an instance of the Web UI restricts access to the Consumer Signup and the Consumer Portal applications only.

  
 ...   
<!-- MOBILISER CONTROLLING APPLICATION -->   
<bean id = "mobiliserApplication"     
  class = "com.sybase365.mobiliser.web.application.MobiliserApplication">     
  <property name = "authenticatedApplications">      
   <util:list>       
    <ref bean = "consumerPortal" />     
   </util:list>    </property>    
  <property name = "unauthenticatedApplications">     
   <util:list> </util:list>   
  </property>    
  <property name = "signupApplications">     
   <util:list>      
    <ref bean = "consumerSignup" />     
   </util:list>    
  </property>   
</bean> 
...
<!-- CONTRIBUTING APPLICATIONS --> 
<bean id = "consumerPortal"   
 class = "com.sybase365.mobiliser.web.consumer.pages.portal.ConsumerPortalApplication">   
 <property name = "bookmarkablePages">     
  <util:map>       
   <entry key = "/consumer" value = "com.sybase365.mobiliser.web.consumer.pages.portal.selfcare.Consumer" \>     
  </util:map>   
 </property>   
 <property name="loginPrivilege">       
  <util:constant static-field="com.sybase365.mobiliser.web.util.Constants.PRIV_CONSUMER_LOGIN" />   
 </property>   
 <property name = "homepage"      
 class = "com.sybase365.mobiliser.web.consumer.portal.pages.selfcare.ConsumerHomePage" />
</bean> 
...