
public class Helper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ENCRYPTONSAVE |
static String |
ISENCRYPTED |
static String |
PARAMETER_PREFIX |
| Constructor and Description |
|---|
Helper() |
| Modifier and Type | Method and Description |
|---|---|
static org.miloss.fgsms.services.interfaces.policyconfiguration.FederationPolicy |
BuildFederation(org.miloss.fgsms.services.interfaces.policyconfiguration.FederationPolicy src,
org.miloss.fgsms.services.interfaces.policyconfiguration.PCS pcs,
org.miloss.fgsms.services.interfaces.common.SecurityWrapper c,
javax.servlet.http.HttpServletRequest req) |
static org.miloss.fgsms.services.interfaces.policyconfiguration.ServicePolicy |
buildFromHttpPost(javax.servlet.http.HttpServletRequest request,
org.miloss.fgsms.services.interfaces.policyconfiguration.ServicePolicy pol)
this function is the sausage maker
|
static org.miloss.fgsms.services.interfaces.policyconfiguration.RuleBaseType |
BuildRule(javax.servlet.http.HttpServletRequest request,
org.miloss.fgsms.services.interfaces.policyconfiguration.PCS pcs,
org.miloss.fgsms.services.interfaces.common.SecurityWrapper c)
constructs a rule from a postback
|
static org.miloss.fgsms.services.interfaces.policyconfiguration.SLAAction |
BuildSLAAction(javax.servlet.http.HttpServletRequest request,
org.miloss.fgsms.services.interfaces.policyconfiguration.PCS pcs,
org.miloss.fgsms.services.interfaces.common.SecurityWrapper c)
from manage.jsp and scheduledEditPost.jsp, occurs when a new sla is
added to a policy expects "Action" = plugin classname
|
static String |
BuildSLAAction(List<org.miloss.fgsms.services.interfaces.policyconfiguration.SLAAction> items,
org.miloss.fgsms.services.interfaces.policyconfiguration.PCS pcs,
org.miloss.fgsms.services.interfaces.common.SecurityWrapper c)
renders an action set as a user readable html string, occurs when
editing existing slas
|
static String |
BuildSLARuleData(org.miloss.fgsms.services.interfaces.policyconfiguration.RuleBaseType rule,
List<org.miloss.fgsms.services.interfaces.policyconfiguration.Plugin> rule_plugins)
Converts a rule instance to a friendly human readable string with
parameter values
|
static String |
BuildSLASingleAction(org.miloss.fgsms.services.interfaces.policyconfiguration.SLAAction item,
org.miloss.fgsms.services.interfaces.policyconfiguration.PCS pcs,
org.miloss.fgsms.services.interfaces.common.SecurityWrapper c)
used on manage.jsp to render SLA info in the tab'd box
|
static boolean |
ContainsSLAID(List<org.miloss.fgsms.services.interfaces.policyconfiguration.SLAregistration> items,
String sla_id) |
static String |
DurationToString(Duration d)
returns xyr xmo xd xhr xmin xs representation of a duration
|
static String |
encode(String text)
base 64 encoder
|
static String |
ExportServicePolicy(org.miloss.fgsms.services.interfaces.policyconfiguration.ServicePolicy pol) |
static boolean |
FederationContains(List<Duration> d,
int timeInMinutes) |
static String |
federationPluginEditableHtml(org.miloss.fgsms.services.interfaces.policyconfiguration.FederationPolicy fp,
int index,
javax.servlet.http.HttpServletRequest request) |
static org.miloss.fgsms.services.interfaces.dataaccessservice.MachineData |
FindMachineRecord(List<org.miloss.fgsms.services.interfaces.dataaccessservice.MachineData> data,
String Domainname,
String Hostname,
String policyURL)
used on index2.jsp
|
static org.miloss.fgsms.services.interfaces.common.ProcessPerformanceData |
FindProcessRecord(List<org.miloss.fgsms.services.interfaces.dataaccessservice.MachineData> data,
String policyURL)
used on index2.jsp
|
static org.miloss.fgsms.services.interfaces.dataaccessservice.QuickStatURIWrapper |
FindRecord(org.miloss.fgsms.services.interfaces.dataaccessservice.GetQuickStatsAllResponseMsg res,
String url) |
static org.miloss.fgsms.services.interfaces.status.GetStatusResponseMsg |
Findrecord(String url,
List<org.miloss.fgsms.services.interfaces.status.GetStatusResponseMsg> list)
used on the index.jsp page of fgsms, finds a particular record
returned from fgsms.StatusService and returns the specific record.
|
static org.miloss.fgsms.services.interfaces.policyconfiguration.FederationPolicy |
FindUDDIFederationRecord(org.miloss.fgsms.services.interfaces.policyconfiguration.FederationPolicyCollection fc)
used on serviceprofile.jsp
|
static List<org.miloss.fgsms.services.interfaces.dataaccessservice.ServiceType> |
GetChildNodes(String uri,
List<org.miloss.fgsms.services.interfaces.dataaccessservice.ServiceType> completelist)
used from tree view of home page, returns all child nodes from
a given parent
|
static org.miloss.fgsms.services.interfaces.common.SecurityWrapper |
GetCurrentSecurityLevel(ProxyLoader pl,
javax.servlet.ServletContext app,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
static int |
GetHalfScreenWidth(javax.servlet.http.Cookie[] cookies) |
static List<org.miloss.fgsms.services.interfaces.dataaccessservice.ServiceType> |
GetParentNodes(List<org.miloss.fgsms.services.interfaces.dataaccessservice.ServiceType> completelist)
used from tree view of home page, returns all nodes that have a
null or empty parent object
|
static String |
GetPluginHelp(org.miloss.fgsms.services.interfaces.policyconfiguration.SLAAction action,
org.miloss.fgsms.services.interfaces.policyconfiguration.PCS pcs,
org.miloss.fgsms.services.interfaces.common.SecurityWrapper c,
String item_type) |
static org.miloss.fgsms.services.interfaces.policyconfiguration.GetPluginInformationResponseMsg |
GetPluginInfo(String clazz,
String type,
org.miloss.fgsms.services.interfaces.policyconfiguration.PCS pcs,
org.miloss.fgsms.services.interfaces.common.SecurityWrapper c) |
static List<org.miloss.fgsms.services.interfaces.policyconfiguration.Plugin> |
GetPluginList(org.miloss.fgsms.services.interfaces.policyconfiguration.PCS pcs,
org.miloss.fgsms.services.interfaces.common.SecurityWrapper c,
String item_type) |
static List<org.miloss.fgsms.services.interfaces.policyconfiguration.Plugin> |
GetPluginList(org.miloss.fgsms.services.interfaces.policyconfiguration.PCS pcs,
org.miloss.fgsms.services.interfaces.common.SecurityWrapper c,
String item_type,
org.miloss.fgsms.services.interfaces.common.PolicyType pt) |
static String |
GetPluginParameterIsEncrypted(List<org.miloss.fgsms.services.interfaces.common.NameValuePair> params,
String parameterName)
returns "checked=checked" if the selected parameter exists and it's
already encrypted
|
static String |
GetPluginParameterValue(List<org.miloss.fgsms.services.interfaces.common.NameValuePair> params,
String parameterName) |
static org.miloss.fgsms.services.interfaces.policyconfiguration.ServicePolicy |
ImportServicePolicy(String pol,
org.miloss.fgsms.services.interfaces.common.PolicyType pt) |
static Properties |
loadForJSP(URL name)
Use this function for loading properties files from web
applications
|
static String |
PluginToReadonlyHtmlString(org.miloss.fgsms.services.interfaces.policyconfiguration.FederationPolicy fp,
int index,
javax.servlet.http.HttpServletRequest request) |
static String |
PrettyPrintXMLToHtml(String xml) |
static String |
PublishRangeToString(List<Duration> items)
used on serviceprofile.jsp
|
static String |
RenderRuleRunAt(org.miloss.fgsms.services.interfaces.policyconfiguration.RunAtLocation val) |
static String |
RenderSLAParametersForEditing(org.miloss.fgsms.services.interfaces.policyconfiguration.RuleBaseType rule)
Renders an SLA Rule for editing via browser
|
static boolean |
RuleHasParameters(org.miloss.fgsms.services.interfaces.policyconfiguration.RuleBaseType rule,
org.miloss.fgsms.services.interfaces.policyconfiguration.PCS pcs,
org.miloss.fgsms.services.interfaces.common.SecurityWrapper c) |
static String |
RuleToString(org.miloss.fgsms.services.interfaces.policyconfiguration.RuleBaseType rule) |
static String |
ShowOpStat(org.miloss.fgsms.services.interfaces.common.SecurityWrapper c,
org.miloss.fgsms.services.interfaces.status.OpStatusService ss,
String url) |
static Duration |
StringToDuration(String d)
returns a duration parsed from xyr xmo xd xhr xmin xs
first it will parse it as a xml representation then as a Long then the
specific format
|
static long |
StringToLongMS(String d)
returns the number of milliseconds from the following string
format: xyr xmo xd xhr xmin xs
|
static String |
stripScripts(String html) |
static String |
ToFriendlyName(org.miloss.fgsms.services.interfaces.policyconfiguration.SLAAction action,
org.miloss.fgsms.services.interfaces.policyconfiguration.PCS pcs,
org.miloss.fgsms.services.interfaces.common.SecurityWrapper c) |
static String |
ToFriendlyName(String action,
org.miloss.fgsms.services.interfaces.policyconfiguration.PCS pcs,
org.miloss.fgsms.services.interfaces.common.SecurityWrapper c)
report type to a friendly name for report types
|
static String |
ToFriendylName(org.miloss.fgsms.services.interfaces.policyconfiguration.RuleBaseType rule,
org.miloss.fgsms.services.interfaces.policyconfiguration.PCS pcs,
org.miloss.fgsms.services.interfaces.common.SecurityWrapper c)
Converts a rule to a friendly human readable name
|
static String |
ToShortActionString(String action) |
public static final String ENCRYPTONSAVE
public static final String ISENCRYPTED
public static final String PARAMETER_PREFIX
public static String RenderRuleRunAt(org.miloss.fgsms.services.interfaces.policyconfiguration.RunAtLocation val)
public static org.miloss.fgsms.services.interfaces.dataaccessservice.MachineData FindMachineRecord(List<org.miloss.fgsms.services.interfaces.dataaccessservice.MachineData> data, String Domainname, String Hostname, String policyURL)
public static org.miloss.fgsms.services.interfaces.common.ProcessPerformanceData FindProcessRecord(List<org.miloss.fgsms.services.interfaces.dataaccessservice.MachineData> data, String policyURL)
public static List<org.miloss.fgsms.services.interfaces.dataaccessservice.ServiceType> GetParentNodes(List<org.miloss.fgsms.services.interfaces.dataaccessservice.ServiceType> completelist)
completelist - public static List<org.miloss.fgsms.services.interfaces.dataaccessservice.ServiceType> GetChildNodes(String uri, List<org.miloss.fgsms.services.interfaces.dataaccessservice.ServiceType> completelist)
uri - completelist - public static org.miloss.fgsms.services.interfaces.policyconfiguration.FederationPolicy FindUDDIFederationRecord(org.miloss.fgsms.services.interfaces.policyconfiguration.FederationPolicyCollection fc)
fc - public static String PublishRangeToString(List<Duration> items)
items - public static org.miloss.fgsms.services.interfaces.dataaccessservice.QuickStatURIWrapper FindRecord(org.miloss.fgsms.services.interfaces.dataaccessservice.GetQuickStatsAllResponseMsg res,
String url)
public static boolean ContainsSLAID(List<org.miloss.fgsms.services.interfaces.policyconfiguration.SLAregistration> items, String sla_id)
public static org.miloss.fgsms.services.interfaces.status.GetStatusResponseMsg Findrecord(String url, List<org.miloss.fgsms.services.interfaces.status.GetStatusResponseMsg> list)
public static Properties loadForJSP(URL name) throws IOException
IOExceptionpublic static String DurationToString(Duration d)
public static Duration StringToDuration(String d) throws DatatypeConfigurationException
DatatypeConfigurationExceptionpublic static long StringToLongMS(String d)
public static String ToFriendlyName(String action, org.miloss.fgsms.services.interfaces.policyconfiguration.PCS pcs, org.miloss.fgsms.services.interfaces.common.SecurityWrapper c)
r - public static String ExportServicePolicy(org.miloss.fgsms.services.interfaces.policyconfiguration.ServicePolicy pol)
public static org.miloss.fgsms.services.interfaces.policyconfiguration.ServicePolicy ImportServicePolicy(String pol, org.miloss.fgsms.services.interfaces.common.PolicyType pt)
public static String BuildSLASingleAction(org.miloss.fgsms.services.interfaces.policyconfiguration.SLAAction item, org.miloss.fgsms.services.interfaces.policyconfiguration.PCS pcs, org.miloss.fgsms.services.interfaces.common.SecurityWrapper c)
item - public static org.miloss.fgsms.services.interfaces.policyconfiguration.FederationPolicy BuildFederation(org.miloss.fgsms.services.interfaces.policyconfiguration.FederationPolicy src,
org.miloss.fgsms.services.interfaces.policyconfiguration.PCS pcs,
org.miloss.fgsms.services.interfaces.common.SecurityWrapper c,
javax.servlet.http.HttpServletRequest req)
public static String BuildSLAAction(List<org.miloss.fgsms.services.interfaces.policyconfiguration.SLAAction> items, org.miloss.fgsms.services.interfaces.policyconfiguration.PCS pcs, org.miloss.fgsms.services.interfaces.common.SecurityWrapper c)
items - public static String RuleToString(org.miloss.fgsms.services.interfaces.policyconfiguration.RuleBaseType rule)
public static String ToFriendylName(org.miloss.fgsms.services.interfaces.policyconfiguration.RuleBaseType rule, org.miloss.fgsms.services.interfaces.policyconfiguration.PCS pcs, org.miloss.fgsms.services.interfaces.common.SecurityWrapper c)
rule - public static String BuildSLARuleData(org.miloss.fgsms.services.interfaces.policyconfiguration.RuleBaseType rule, List<org.miloss.fgsms.services.interfaces.policyconfiguration.Plugin> rule_plugins)
rule - public static String RenderSLAParametersForEditing(org.miloss.fgsms.services.interfaces.policyconfiguration.RuleBaseType rule)
rule - public static org.miloss.fgsms.services.interfaces.policyconfiguration.RuleBaseType BuildRule(javax.servlet.http.HttpServletRequest request,
org.miloss.fgsms.services.interfaces.policyconfiguration.PCS pcs,
org.miloss.fgsms.services.interfaces.common.SecurityWrapper c)
request - public static org.miloss.fgsms.services.interfaces.policyconfiguration.SLAAction BuildSLAAction(javax.servlet.http.HttpServletRequest request,
org.miloss.fgsms.services.interfaces.policyconfiguration.PCS pcs,
org.miloss.fgsms.services.interfaces.common.SecurityWrapper c)
request - pcs - public static org.miloss.fgsms.services.interfaces.common.SecurityWrapper GetCurrentSecurityLevel(ProxyLoader pl, javax.servlet.ServletContext app, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exceptionpublic static boolean RuleHasParameters(org.miloss.fgsms.services.interfaces.policyconfiguration.RuleBaseType rule,
org.miloss.fgsms.services.interfaces.policyconfiguration.PCS pcs,
org.miloss.fgsms.services.interfaces.common.SecurityWrapper c)
public static org.miloss.fgsms.services.interfaces.policyconfiguration.GetPluginInformationResponseMsg GetPluginInfo(String clazz, String type, org.miloss.fgsms.services.interfaces.policyconfiguration.PCS pcs, org.miloss.fgsms.services.interfaces.common.SecurityWrapper c)
clazz - type - FEDERATION_PUBLISH,SLA_RULE,SLA_ACTIONpcs - c - public static String GetPluginHelp(org.miloss.fgsms.services.interfaces.policyconfiguration.SLAAction action, org.miloss.fgsms.services.interfaces.policyconfiguration.PCS pcs, org.miloss.fgsms.services.interfaces.common.SecurityWrapper c, String item_type)
action - pcs - c - item_type - FEDERATION_PUBLISH,SLA_RULE,SLA_ACTIONpublic static List<org.miloss.fgsms.services.interfaces.policyconfiguration.Plugin> GetPluginList(org.miloss.fgsms.services.interfaces.policyconfiguration.PCS pcs, org.miloss.fgsms.services.interfaces.common.SecurityWrapper c, String item_type)
pcs - c - item_type - FEDERATION_PUBLISH,SLA_RULE,SLA_ACTIONpublic static List<org.miloss.fgsms.services.interfaces.policyconfiguration.Plugin> GetPluginList(org.miloss.fgsms.services.interfaces.policyconfiguration.PCS pcs, org.miloss.fgsms.services.interfaces.common.SecurityWrapper c, String item_type, org.miloss.fgsms.services.interfaces.common.PolicyType pt)
public static String ToFriendlyName(org.miloss.fgsms.services.interfaces.policyconfiguration.SLAAction action, org.miloss.fgsms.services.interfaces.policyconfiguration.PCS pcs, org.miloss.fgsms.services.interfaces.common.SecurityWrapper c)
action - pcs - c - item_type - FEDERATION_PUBLISH,SLA_RULE,SLA_ACTIONpublic static int GetHalfScreenWidth(javax.servlet.http.Cookie[] cookies)
public static String ShowOpStat(org.miloss.fgsms.services.interfaces.common.SecurityWrapper c, org.miloss.fgsms.services.interfaces.status.OpStatusService ss, String url)
public static String PluginToReadonlyHtmlString(org.miloss.fgsms.services.interfaces.policyconfiguration.FederationPolicy fp, int index, javax.servlet.http.HttpServletRequest request)
public static String federationPluginEditableHtml(org.miloss.fgsms.services.interfaces.policyconfiguration.FederationPolicy fp, int index, javax.servlet.http.HttpServletRequest request)
public static String GetPluginParameterValue(List<org.miloss.fgsms.services.interfaces.common.NameValuePair> params, String parameterName)
public static String GetPluginParameterIsEncrypted(List<org.miloss.fgsms.services.interfaces.common.NameValuePair> params, String parameterName)
params - parameterName - public static org.miloss.fgsms.services.interfaces.policyconfiguration.ServicePolicy buildFromHttpPost(javax.servlet.http.HttpServletRequest request,
org.miloss.fgsms.services.interfaces.policyconfiguration.ServicePolicy pol)
throws Exception
request - pol - ExceptionCopyright © 2008–2017 MIL-OSS. All rights reserved.