org.kuali.common.jdbc.supplier
Class LocationSupplierUtils

java.lang.Object
  extended by org.kuali.common.jdbc.supplier.LocationSupplierUtils

public class LocationSupplierUtils
extends Object


Constructor Summary
LocationSupplierUtils()
           
 
Method Summary
static String getContextFromContextLocation(String contextLocation)
          Return just the context information prefix of a context location string The expected form of the parameter string is: CONTEXT:LOCATION The return value of this method will return just the CONTEXT string
static String getContextLocation(LocationSupplierContext context, String location)
          Build a "context location" from a context and a location The format of a context location is: CONTEXT:LOCATION If no applicable context information is defined, the CONTEXT token will be set to Constants.NONE
static String getLocationFromContextLocation(String contextLocation)
          Returns a location string with any prefix context information removed The expected form of the parameter string is: CONTEXT:LOCATION The return value of this method will return just the LOCATION token
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocationSupplierUtils

public LocationSupplierUtils()
Method Detail

getLocationFromContextLocation

public static String getLocationFromContextLocation(String contextLocation)
Returns a location string with any prefix context information removed The expected form of the parameter string is: CONTEXT:LOCATION The return value of this method will return just the LOCATION token

Parameters:
contextLocation - the location string with prefixed context information
Returns:
a location string with no context prefix

getContextFromContextLocation

public static String getContextFromContextLocation(String contextLocation)
Return just the context information prefix of a context location string The expected form of the parameter string is: CONTEXT:LOCATION The return value of this method will return just the CONTEXT string

Parameters:
contextLocation - the location string with prefixed context information
Returns:
a context token

getContextLocation

public static String getContextLocation(LocationSupplierContext context,
                                        String location)
Build a "context location" from a context and a location The format of a context location is: CONTEXT:LOCATION If no applicable context information is defined, the CONTEXT token will be set to Constants.NONE

Parameters:
context - object containing context information
location - resource location string
Returns:
a formatted context location


Copyright © 2010-2013 The Kuali Foundation. All Rights Reserved.