|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hyperic.hq.ui.util.ContextUtils
public class ContextUtils
Utilities class that provides convenience methods for operating on the servlet context.
Constructor Summary | |
---|---|
ContextUtils()
|
Method Summary | |
---|---|
static org.hyperic.hq.bizapp.shared.AIBoss |
getAIBoss(javax.servlet.ServletContext ctx)
Consult the cached ServiceLocator for an instance of
AppdefBoss . |
static org.hyperic.hq.bizapp.shared.AppdefBoss |
getAppdefBoss(javax.servlet.ServletContext ctx)
Consult the cached ServiceLocator for an instance of
AppdefBoss . |
static org.hyperic.hq.bizapp.shared.AuthBoss |
getAuthBoss(javax.servlet.ServletContext ctx)
Consult the cached ServiceLocator for an instance of
AuthBoss . |
static org.hyperic.hq.bizapp.shared.AuthzBoss |
getAuthzBoss(javax.servlet.ServletContext ctx)
Consult the cached ServiceLocator for an instance of
AuthzBoss . |
static org.hyperic.hq.bizapp.shared.ConfigBoss |
getConfigBoss(javax.servlet.ServletContext ctx)
Consult the cached ServiceLocator for an instance of
ConfigBoss . |
static org.hyperic.hq.bizapp.shared.ControlBoss |
getControlBoss(javax.servlet.ServletContext ctx)
Consult the cached ServiceLocator for an instance of
ControlBoss . |
static org.hyperic.hq.bizapp.shared.EventLogBoss |
getEventLogBoss(javax.servlet.ServletContext ctx)
Consult the cached ServiceLocator for an instance of
EventBoss . |
static org.hyperic.hq.bizapp.shared.EventsBoss |
getEventsBoss(javax.servlet.ServletContext ctx)
Consult the cached ServiceLocator for an instance of
EventsBoss . |
static org.hyperic.hq.bizapp.shared.GalertBoss |
getGalertBoss(javax.servlet.ServletContext ctx)
|
static org.hyperic.hq.bizapp.shared.MeasurementBoss |
getMeasurementBoss(javax.servlet.ServletContext ctx)
Consult the cached ServiceLocator for an instance of
MeasurementBoss . |
static org.hyperic.hq.bizapp.shared.ProductBoss |
getProductBoss(javax.servlet.ServletContext ctx)
Consult the cached ServiceLocator for an instance of
ProductBoss . |
protected static ServiceLocator |
getServiceLocator(javax.servlet.ServletContext ctx)
Return the cached ServiceLocator , loading it if
necessary. |
static UIUtils |
getUIUtils(javax.servlet.ServletContext ctx)
Consult the cached ServiceLocator for an instance of
UIUtils . |
static org.hyperic.hq.bizapp.shared.UpdateBoss |
getUpdateBoss(javax.servlet.ServletContext ctx)
|
static java.util.Properties |
loadProperties(javax.servlet.ServletContext ctx,
java.lang.String filename)
Load the specified properties file and return the properties. |
static void |
saveProperties(javax.servlet.ServletContext ctx,
java.lang.String filename,
java.util.Properties props)
|
static boolean |
usingJDBCAuthentication(javax.servlet.ServletContext ctx)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContextUtils()
Method Detail |
---|
protected static ServiceLocator getServiceLocator(javax.servlet.ServletContext ctx) throws ServiceLocatorException
ServiceLocator
, loading it if
necessary.
ctx
- the ServletContext
ServiceLocatorException
public static org.hyperic.hq.bizapp.shared.AppdefBoss getAppdefBoss(javax.servlet.ServletContext ctx) throws ServiceLocatorException
ServiceLocator
for an instance of
AppdefBoss
.
ctx
- the ServletContext
ServiceLocatorException
public static org.hyperic.hq.bizapp.shared.AIBoss getAIBoss(javax.servlet.ServletContext ctx) throws ServiceLocatorException
ServiceLocator
for an instance of
AppdefBoss
.
ctx
- the ServletContext
ServiceLocatorException
public static org.hyperic.hq.bizapp.shared.ConfigBoss getConfigBoss(javax.servlet.ServletContext ctx) throws ServiceLocatorException
ServiceLocator
for an instance of
ConfigBoss
.
ctx
- the ServletContext
ServiceLocatorException
public static org.hyperic.hq.bizapp.shared.AuthBoss getAuthBoss(javax.servlet.ServletContext ctx) throws ServiceLocatorException
ServiceLocator
for an instance of
AuthBoss
.
ctx
- the ServletContext
ServiceLocatorException
public static org.hyperic.hq.bizapp.shared.AuthzBoss getAuthzBoss(javax.servlet.ServletContext ctx) throws ServiceLocatorException
ServiceLocator
for an instance of
AuthzBoss
.
ctx
- the ServletContext
ServiceLocatorException
public static org.hyperic.hq.bizapp.shared.EventsBoss getEventsBoss(javax.servlet.ServletContext ctx) throws ServiceLocatorException
ServiceLocator
for an instance of
EventsBoss
.
ctx
- the ServletContext
ServiceLocatorException
public static org.hyperic.hq.bizapp.shared.MeasurementBoss getMeasurementBoss(javax.servlet.ServletContext ctx) throws ServiceLocatorException
ServiceLocator
for an instance of
MeasurementBoss
.
ctx
- the ServletContext
ServiceLocatorException
public static org.hyperic.hq.bizapp.shared.ProductBoss getProductBoss(javax.servlet.ServletContext ctx) throws ServiceLocatorException
ServiceLocator
for an instance of
ProductBoss
.
ctx
- the ServletContext
ServiceLocatorException
public static org.hyperic.hq.bizapp.shared.EventLogBoss getEventLogBoss(javax.servlet.ServletContext ctx) throws ServiceLocatorException
ServiceLocator
for an instance of
EventBoss
.
ctx
- the ServletContext
ServiceLocatorException
public static org.hyperic.hq.bizapp.shared.ControlBoss getControlBoss(javax.servlet.ServletContext ctx) throws ServiceLocatorException
ServiceLocator
for an instance of
ControlBoss
.
ctx
- the ServletContext
ServiceLocatorException
public static org.hyperic.hq.bizapp.shared.GalertBoss getGalertBoss(javax.servlet.ServletContext ctx) throws ServiceLocatorException
ServiceLocatorException
public static org.hyperic.hq.bizapp.shared.UpdateBoss getUpdateBoss(javax.servlet.ServletContext ctx) throws ServiceLocatorException
ServiceLocatorException
public static boolean usingJDBCAuthentication(javax.servlet.ServletContext ctx) throws java.lang.Exception
java.lang.Exception
public static void saveProperties(javax.servlet.ServletContext ctx, java.lang.String filename, java.util.Properties props) throws java.lang.Exception
java.lang.Exception
public static java.util.Properties loadProperties(javax.servlet.ServletContext ctx, java.lang.String filename) throws java.lang.Exception
ctx
- the ServletContext
filename
- the fully qualifed name of the properties file
java.lang.Exception
- if a problem occurs while loading the filepublic static UIUtils getUIUtils(javax.servlet.ServletContext ctx) throws ServiceLocatorException
ServiceLocator
for an instance of
UIUtils
.
ctx
- the ServletContext
ServiceLocatorException
|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |