|
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.DashboardUtils
public class DashboardUtils
Utilities class that provides general convenience methods.
Field Summary | |
---|---|
static org.apache.commons.logging.Log |
log
|
static char |
MULTI_PORTLET_TOKEN
|
Constructor Summary | |
---|---|
DashboardUtils()
|
Method Summary | |
---|---|
static boolean |
addEntityToPreferences(java.lang.String key,
ConfigResponse userConfig,
AppdefEntityID newId,
int max)
|
static void |
addEntityToPreferences(java.lang.String key,
WebUser user,
AppdefEntityID newId,
int max)
|
static DashboardConfig |
findDashboard(java.util.ArrayList dashboardList,
java.lang.Integer id)
|
static DashboardConfig |
findDashboard(java.lang.Integer id,
WebUser user,
org.hyperic.hq.bizapp.shared.AuthzBoss boss)
Find a given dashboard by its id |
static DashboardConfig |
findDefaultDashboardConfig(WebUser user,
org.hyperic.hq.bizapp.shared.AuthzBoss boss)
Find the user's default dashboard |
static java.util.List |
findEditableDashboardConfigs(WebUser user,
org.hyperic.hq.bizapp.shared.AuthzBoss boss)
Find the user's default dashboard |
static java.util.List |
findEditableDashboards(WebUser user,
org.hyperic.hq.bizapp.shared.AuthzBoss boss)
|
static ConfigResponse |
findUserDashboardConfig(WebUser user,
org.hyperic.hq.bizapp.shared.AuthzBoss boss)
Find the user's dashboard |
static java.util.List |
listAsEntityIds(java.util.List list)
|
static java.util.List |
listAsResources(java.util.List list,
javax.servlet.ServletContext ctx,
WebUser user)
|
static java.util.List |
preferencesAsEntityIds(java.lang.String key,
ConfigResponse userConfig)
|
static java.util.List |
preferencesAsEntityIds(java.lang.String key,
WebUser user)
|
static java.util.List |
preferencesAsResources(java.lang.String key,
javax.servlet.ServletContext ctx,
WebUser user)
|
static java.util.List |
preferencesAsResources(java.lang.String key,
javax.servlet.ServletContext ctx,
WebUser user,
ConfigResponse config)
|
static void |
removePortlet(ConfigResponse config,
java.lang.String portlet)
|
static void |
removePortlet(WebUser user,
java.lang.String portlet)
|
static void |
removeResources(java.lang.String[] ids,
java.lang.String key,
ConfigResponse userConfg)
|
static void |
removeResources(java.lang.String[] ids,
java.lang.String key,
WebUser user)
|
static void |
verifyResources(java.lang.String key,
javax.servlet.ServletContext ctx,
ConfigResponse config,
WebUser user)
|
static void |
verifyResources(java.lang.String key,
javax.servlet.ServletContext ctx,
WebUser user)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final char MULTI_PORTLET_TOKEN
public static final org.apache.commons.logging.Log log
Constructor Detail |
---|
public DashboardUtils()
Method Detail |
---|
public static java.util.List listAsResources(java.util.List list, javax.servlet.ServletContext ctx, WebUser user) throws java.lang.Exception
java.lang.Exception
public static java.util.List listAsEntityIds(java.util.List list)
public static java.util.List preferencesAsResources(java.lang.String key, javax.servlet.ServletContext ctx, WebUser user) throws java.lang.Exception
java.lang.Exception
public static java.util.List preferencesAsResources(java.lang.String key, javax.servlet.ServletContext ctx, WebUser user, ConfigResponse config) throws java.lang.Exception
java.lang.Exception
public static java.util.List preferencesAsEntityIds(java.lang.String key, WebUser user)
public static java.util.List preferencesAsEntityIds(java.lang.String key, ConfigResponse userConfig)
public static void removePortlet(WebUser user, java.lang.String portlet) throws InvalidOptionException, InvalidOptionValueException
InvalidOptionException
InvalidOptionValueException
public static void removePortlet(ConfigResponse config, java.lang.String portlet) throws InvalidOptionException, InvalidOptionValueException
InvalidOptionException
InvalidOptionValueException
public static void removeResources(java.lang.String[] ids, java.lang.String key, WebUser user) throws java.lang.Exception
java.lang.Exception
public static void removeResources(java.lang.String[] ids, java.lang.String key, ConfigResponse userConfg) throws java.lang.Exception
java.lang.Exception
public static void verifyResources(java.lang.String key, javax.servlet.ServletContext ctx, WebUser user) throws java.lang.Exception
java.lang.Exception
public static void verifyResources(java.lang.String key, javax.servlet.ServletContext ctx, ConfigResponse config, WebUser user) throws java.lang.Exception
java.lang.Exception
public static void addEntityToPreferences(java.lang.String key, WebUser user, AppdefEntityID newId, int max) throws java.lang.Exception
java.lang.Exception
public static boolean addEntityToPreferences(java.lang.String key, ConfigResponse userConfig, AppdefEntityID newId, int max)
public static DashboardConfig findDashboard(java.util.ArrayList dashboardList, java.lang.Integer id)
public static DashboardConfig findDashboard(java.lang.Integer id, WebUser user, org.hyperic.hq.bizapp.shared.AuthzBoss boss)
id
- the id of the dashboarduser
- current userboss
- the authzboss
public static ConfigResponse findUserDashboardConfig(WebUser user, org.hyperic.hq.bizapp.shared.AuthzBoss boss) throws SessionNotFoundException, SessionTimeoutException, PermissionException, java.rmi.RemoteException
SessionNotFoundException
SessionTimeoutException
PermissionException
java.rmi.RemoteException
public static DashboardConfig findDefaultDashboardConfig(WebUser user, org.hyperic.hq.bizapp.shared.AuthzBoss boss)
public static java.util.List findEditableDashboardConfigs(WebUser user, org.hyperic.hq.bizapp.shared.AuthzBoss boss) throws SessionNotFoundException, SessionTimeoutException, PermissionException, java.rmi.RemoteException
SessionNotFoundException
SessionTimeoutException
PermissionException
java.rmi.RemoteException
public static java.util.List findEditableDashboards(WebUser user, org.hyperic.hq.bizapp.shared.AuthzBoss boss) throws SessionNotFoundException, SessionTimeoutException, PermissionException, java.rmi.RemoteException
SessionNotFoundException
SessionTimeoutException
PermissionException
java.rmi.RemoteException
|
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 |