org.broadleafcommerce.openadmin.server.service
Class UtilityRemoteService

java.lang.Object
  extended by org.broadleafcommerce.openadmin.server.service.UtilityRemoteService
All Implemented Interfaces:
com.google.gwt.user.client.rpc.RemoteService, UtilityService, org.springframework.context.ApplicationContextAware

@Service(value="blUtilityRemoteService")
public class UtilityRemoteService
extends java.lang.Object
implements org.springframework.context.ApplicationContextAware, UtilityService

Author:
jfischer

Field Summary
protected  java.lang.String storeFrontWebAppContext
           
 
Constructor Summary
UtilityRemoteService()
           
 
Method Summary
 java.lang.String getStoreFrontWebAppContext()
          Retrieve the current web application context (if any) for the actual store front associated with this admin instance.
 java.lang.String getWebAppContext()
          Retrieve the current web application context (if any) in use for this admin application.
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 void setStoreFrontWebAppContext(java.lang.String storeFrontWebAppContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

storeFrontWebAppContext

protected java.lang.String storeFrontWebAppContext
Constructor Detail

UtilityRemoteService

public UtilityRemoteService()
Method Detail

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
                           throws org.springframework.beans.BeansException
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Throws:
org.springframework.beans.BeansException

getWebAppContext

public java.lang.String getWebAppContext()
                                  throws ServiceException
Description copied from interface: UtilityService
Retrieve the current web application context (if any) in use for this admin application. When a web app context is in use, it appears as the first part of the url. For example, in the url http://localhost:8080/broadleafdemo/admin.html, the web app context is 'broadleafdemo'. Null may be returned if there is no app context.

Specified by:
getWebAppContext in interface UtilityService
Returns:
The first part of the app url that constitutes the web application context (if any).
Throws:
ServiceException

getStoreFrontWebAppContext

public java.lang.String getStoreFrontWebAppContext()
Description copied from interface: UtilityService
Retrieve the current web application context (if any) for the actual store front associated with this admin instance. For example, if the storefront is http://localhost:8080/myStore, then the store front web app context is 'myStore'. Null may be returned if there is no web app context set for the storefront.

Specified by:
getStoreFrontWebAppContext in interface UtilityService
Returns:
The first part of the storefront url that constitutes the web application context (if any)

setStoreFrontWebAppContext

public void setStoreFrontWebAppContext(java.lang.String storeFrontWebAppContext)


Copyright © 2011. All Rights Reserved.